/* =============================
  Fichier : styles.css
  Dernière modification : 14/03/2026
  Modifications :
  - Ajout / validation bannière cookies élégante
  - Bouton persistant de gestion des cookies
  - Compatible avec le nouveau index.html et le tracking GA4
============================= */

:root{
  --bg:#ffffff;
  --ink:#0f0f0f;
  --muted:#6c6c6c;

  --accent:#2E7D32;
  --accent-dark:#256528;

  --card:#ffffff;
  --soft:#f5f5f5;
  --line:#e7e7e7;

  --radius:16px;
  --shadow:0 10px 30px rgba(0,0,0,.08);
  --container:1120px;
}

/* =========================
   BASE
   ========================= */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.55;
}
img{max-width:100%;display:block}
a{color:inherit}
.muted{color:var(--muted)}
.container{max-width:var(--container);margin:0 auto;padding:0 18px}

:focus-visible{
  outline:3px solid rgba(46,125,50,.35);
  outline-offset:2px;
}

/* =========================
   HEADER / NAV
   ========================= */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(1.2) blur(10px);
  border-bottom:1px solid var(--line);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 0;
}
.brand{display:flex;align-items:center;text-decoration:none}
.brand__logo{
  height: clamp(52px, 3.2vw, 60px);
  width:auto;
}

.nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.nav a{text-decoration:none;opacity:.85}
.nav a:hover{opacity:1}

/* Mobile header: logo large + boutons dessous */
@media (max-width: 640px){
  .header__inner{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .brand{justify-content:center}
  .brand__logo{
    height:auto;
    width: min(520px, 100%);
  }
  .nav{
    justify-content:center;
    gap:10px;
  }
}

/* =========================
   BUTTONS
   ========================= */
.btn{
  display:inline-block;
  background:var(--accent);
  color:#fff;
  border:1px solid var(--accent);
  padding:12px 16px;
  border-radius:999px;
  font-weight:650;
  text-decoration:none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover{background:var(--accent-dark);border-color:var(--accent-dark);transform:translateY(-1px)}
.btn--sm{padding:9px 12px;font-size:.95rem}
.btn--xs{padding:8px 10px;font-size:.9rem}

/* Ghost (utile surtout footer + sections) */
.btn--ghost{
  background:transparent;
  color:#fff;
  border-color:rgba(255,255,255,.55);
}
.btn--ghost:hover{background:rgba(255,255,255,.12)}
.section .btn--ghost{
  color:var(--ink);
  border-color:rgba(15,15,15,.25);
}
.section .btn--ghost:hover{background:rgba(15,15,15,.06)}

/* =========================
   HERO
   ========================= */
.hero{
  position:relative;
  min-height: clamp(520px, 70vh, 720px);
  display:flex;
  align-items:flex-end;
  color:#fff;
  background:#000;
  overflow:hidden;
}

/* Sur mobile : pour descendre le bloc texte hero */
@media (max-width: 768px){
  .hero__content{
    padding-top:70px;
  }
  .hero{ min-height:480px; }
}

/* Image hero */
.hero__bg{
  position:absolute;
  inset:0;
  background-image: var(--hero-img, url('../img/hero.jpg'));
  background-size: cover;
  background-position: 47% center;
  background-repeat:no-repeat;
  z-index:0;
}

/* Hotfix: force le bon chemin si variable manquante */
.hero.hero--home .hero__bg{
  background-image: var(--hero-img, url('../img/hero.jpg')) !important;
}

/* Overlay */
.hero__overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.1));
  z-index:1;
}

/* Overlay plus léger sur GSM */
@media (max-width: 640px){
  .hero__overlay{ background: rgba(0,0,0,0); }
}

/* Contenu */
.hero__content{
  position:relative;
  z-index:2;
  width:100%;
  padding:0 0 50px;
}

/* Titre */
.hero h1{
  margin:0 0 10px;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  line-height:1.08;
}
.hero__content h1{
  text-shadow:
    0 4px 8px rgba(0,0,0,1),
    0 10px 25px rgba(0,0,0,1),
    0 20px 50px rgba(0,0,0,0.95);
}
.hero .muted{
  color:black;
  text-shadow:
    -3px -3px 0 #fff,
     3px -3px 0 #fff,
    -3px  3px 0 #fff,
     3px  3px 0 #fff,
     0   -3px 0 #fff,
     0    3px 0 #fff,
    -3px  0   0 #fff,
     3px  0   0 #fff,
     0  4px 10px rgba(0,0,0,0.6);
}

/* Lead */
.hero__lead{
  max-width:760px;
  line-height:1.35;
}
@media (min-width: 980px){
  .hero__lead{ margin-top:6px; }
}
@media (max-width: 640px){
  .hero__lead{
    font-size:.95rem;
    line-height:1.25;
  }
  .hero__content{ padding-bottom:36px; }
}

/* Animation très subtile */
@media (prefers-reduced-motion: no-preference){
  .hero__bg{
    will-change: transform;
    animation: heroKenBurns 18s ease-in-out infinite alternate;
  }
  @keyframes heroKenBurns{
    from{ transform: scale(1) translate3d(0,0,0); }
    to  { transform: scale(1.04) translate3d(-1.2%, -0.8%, 0); }
  }

  .hero__content{
    animation: heroContentIn .6s ease-out both;
  }
  @keyframes heroContentIn{
    from{ opacity:0; transform: translateY(6px); }
    to  { opacity:1; transform: translateY(0); }
  }
}

/* ===== Promo link ===== */
.promo-qa--link{
  display:block;
  text-decoration:none;
  color:inherit;
}

.promo-qa--link:hover{
  border-color:#bbb;
  transform:translateY(-2px);
}

.promo-qa--link:hover .promo-q{
  text-decoration:underline;
}

/* =========================
   SECTIONS / TYPO
   ========================= */
.section{padding:60px 0}
.section--alt{background:var(--soft)}
h2{font-size:1.7rem;margin:0 0 12px}
h3{margin:0 0 8px}

/* =========================
   GRID / CARDS
   ========================= */
.grid{display:grid;gap:22px}

.cards3{
  display:grid;
  gap:18px;
  grid-template-columns:repeat(3,1fr);
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover{transform:translateY(-2px)}
.card--media{padding:0;overflow:hidden}
.card__media img{width:100%;aspect-ratio:4/3;object-fit:cover}
.card__body{padding:16px}

/* Responsive grids */
.grid--2{
  grid-template-columns:1.2fr .8fr;
  align-items:start;
}

@media(max-width:980px){
  .grid--2{grid-template-columns:1fr}
  .cards3{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:640px){
  .cards3{grid-template-columns:1fr}
}
.sidecol{
  display:flex;
  flex-direction:column;
  gap:20px;
}

/* =========================
   PROMO "PARTICULIERS"
   ========================= */
.promo-static{
  margin:14px 0 18px;
  padding:0;
  overflow-x:hidden;
}

.promo-kicker{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:.80rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  opacity:.78;
  margin:2px 0 10px;
}
.promo-kicker .dot{
  width:10px;
  height:30px;
  border-radius:999px;
  background: rgba(46,125,50,1);
  box-shadow: 0 0 0 6px rgba(46,125,50,.12);
}

/* Badge */
.promo-badge{
  position:relative;
  overflow:hidden;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:6px 32px;
  border-radius:999px;
  background: linear-gradient(90deg, #c80000, #ff3b30, #c80000);
  color:#fff;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.22em;
  font-size:.78rem;
  box-shadow:
    0 10px 24px rgba(200,0,0,.35),
    inset 0 -1px 0 rgba(255,255,255,.35);
  white-space:nowrap;
  max-width:100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.promo-badge:hover{
  transform: translateY(-2px);
  box-shadow:
    0 14px 30px rgba(0,0,0,.16),
    0 10px 24px rgba(200,0,0,.28),
    inset 0 -1px 0 rgba(255,255,255,.35);
}
.promo-badge::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:999px;
  background:#fff;
  box-shadow: 0 0 0 6px rgba(255,255,255,.22);
  flex:0 0 auto;
}

@media (max-width: 520px){
  .promo-badge{
    white-space:normal;
    text-align:center;
    line-height:1.25;
    padding:8px 14px;
    letter-spacing:.12em;
    font-size:.74rem;
  }
}

/* Q/A bulles */
.promo-qa{
  padding:12px 12px;
  border-radius:16px;
  background: rgba(0,0,0,.03);
  border:1px solid rgba(0,0,0,.07);
  margin:5px 0;
  transform:translateY(0);
  transition: transform .18s ease, background .18s ease;
}
.promo-q{font-weight:900;margin:0 0 6px}
.promo-a{margin:0;opacity:.92}

@media (prefers-reduced-motion: no-preference){
  .promo-qa:hover{
    transform: translateY(-2px);
    background: rgba(46,125,50,.06);
  }
}

/* CTA promo */
.promo-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  text-decoration:none;
  font-weight:800;
  background: rgba(46,125,50,1);
  color:#fff;
  border:1px solid rgba(46,125,50,1);
  box-shadow: 0 12px 24px rgba(46,125,50,.18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.promo-cta:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(46,125,50,.22);
}
@media (max-width:640px){
  .promo-cta{width:100%}
}

/* Filet fin style "ghost button" */
.promo-more{
  display:inline-block;
  margin-left:10px;
  padding:3px 10px;
  border:1px solid rgba(0,0,0,.25);
  border-radius:14px;
  font-size:0.85em;
  transition:all .2s ease;
}

/* Interaction élégante au survol */
.promo-qa--link:hover .promo-more{
  border-color:var(--accent);
  color:var(--accent);
}

/* =========================
   PAGEHERO / FORMS
   ========================= */
.pagehero{
  padding:42px 0 22px;
  background:var(--soft);
  border-bottom:1px solid var(--line);
}
.pagehero h1{
  margin:0 0 10px;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height:1.12;
}
.pagehero .lead{margin:0 0 14px;color: rgba(15,15,15,.72)}

.mediaframe{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background:#fff;
  box-shadow: var(--shadow);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.mediaframe--flat{box-shadow:none}
.mediaframe--logo img{
  width:min(520px, 100%);
  height:auto;
}

.form{margin-top:14px}
.form label{display:block;font-weight:650;margin:0 0 12px}
.form input,
.form select,
.form textarea{
  width:100%;
  margin-top:8px;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  font:inherit;
  outline:none;
}
.form textarea{resize:vertical; min-height:140px}
.form input:focus,
.form select:focus,
.form textarea:focus{
  border-color: rgba(46,125,50,.55);
  box-shadow: 0 0 0 4px rgba(46,125,50,.14);
}
.form__row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
@media(max-width:640px){
  .form__row{grid-template-columns:1fr}
}

/* Lists */
.contactlist{list-style:none;padding:0;margin:0}
.contactlist li{margin:8px 0}
.contactlist a{text-decoration:none}
.contactlist a:hover{text-decoration:underline}

.checklist{list-style:none;padding:0;margin:10px 0 0}
.checklist li{
  position:relative;
  padding-left:28px;
  margin:10px 0;
}
.checklist li::before{
  content:"✓";
  position:absolute;
  left:0; top:0;
  width:18px; height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--accent);
  font-weight:900;
}
.checklist{
  padding-left:18px;
  margin:10px 0;
}

.checklist li{
  margin-bottom:6px;
}

/* =========================
   INLINE IMAGES / LOGOS
   ========================= */
.inline-visual{margin-top:18px}
.inline-visual img{
  width:min(600px, 100%);
  height:auto;
  border-radius:16px;
  border:1px solid var(--line);
  box-shadow: var(--shadow);
}
.inline-visual--logo img{
  max-width:240px;
  width:100%;
  height:auto;
  display:block;
  margin:16px auto 0;
}

/* =========================
   PHOTO + LOGO alignés
   ========================= */
.inline-media{
  margin-top:18px;
  display:grid;
  grid-template-columns: 1fr minmax(160px, 240px);
  gap:16px;
  align-items:center;
}

.inline-media__photo,
.inline-media__logo{ margin:0; }

.inline-media__photo img{
  width:min(600px, 100%);
  height:auto;
  border-radius:16px;
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  display:block;
}

.inline-media__logo{
  display:grid;
  place-items:center;
}

.inline-media__logo img{
  width:100%;
  max-width:240px;
  height:auto;
  display:block;
}

@media (max-width:720px){
  .inline-media{ grid-template-columns: 1fr; }
  .inline-media__logo img{ max-width:200px; }
}

#references p{
  line-height:1.6;
}

.brand-inline{margin-bottom:12px}
.brand-inline img{
  width:min(420px, 100%);
  height:auto;
  display:block;
}
.mediaframe--portrait img{
  width:100%;
  height:auto;
  display:block;
  border-radius:6px;
}

@media (min-width: 980px){
  .mediaframe--portrait{
    max-width:420px;
  }
}

.thermo-image img{
  width:100%;
  height:auto;
  display:block;
  border-radius:8px;
}

@media (min-width: 981px){
  .thermo-image{
    grid-column:2;
    margin-top:20px;
  }
}

.card--cta{
  text-align:center;
}

.card--cta .btn{
  font-size:1.05rem;
  padding:14px 22px;
}

/* =========================
   FOOTER — ORDER & BUTTONS
   ========================= */
.footer{
  background:#111;
  color:#fff;
  padding:34px 0;
}
.footer__inner{
  display:grid;
  grid-template-columns:1.4fr .8fr .8fr;
  gap:18px;
}
.footer__logo{height:70px}

.footer__nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:flex-start;
}

.footer__legal{
  width:100%;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}

.footer .btn--ghost{
  background:transparent;
  color: rgba(255,255,255,.78);
  border-color: rgba(255,255,255,.28);
}
.footer .btn--ghost:hover{
  background: rgba(255,255,255,.08);
  color:#fff;
  border-color: rgba(255,255,255,.45);
}

.footer__links{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.footer__links a{
  color: rgba(255,255,255,.82);
  text-decoration:none;
}
.footer__links a:hover{
  color:#fff;
  text-decoration:underline;
}

@media(max-width:980px){
  .footer__inner{grid-template-columns:1fr}
}

/* =========================
   CARTE SPÉCIALE — FRELON + AUTRES PRESTATIONS
   ========================= */
.card--highlight{
  background:#eef7fb;
  border:1px solid rgba(0,0,0,.05);
}

.card__body--media{
  display:flex;
  align-items:center;
  gap:16px;
}

.card__media-inline img{
  width:170px;
  max-width:100%;
  height:auto;
}

.card__lead{
  margin:0;
  font-weight:600;
  line-height:1.4;
}

.card--highlight h3 {
  color:#000;
  font-size:1.35rem;
  font-weight:800;
  letter-spacing:0.02em;
}
.card--highlight p {
  color:#000;
  font-size:1.12rem;
  font-weight:500;
  line-height:1.55;
}

@media (max-width:640px){
  .card__body--media{
    flex-direction:column;
    text-align:center;
  }
  .card__media-inline img{width:90px}
}

.card__media-inline--lg img{
  width:170px;
}

/* =========================
   Cookies - version élégante
   ========================= */
.cookie-banner{
  position:fixed;
  left:24px;
  right:24px;
  bottom:24px;
  z-index:9999;
}

.cookie-banner[hidden]{
  display:none !important;
}

.cookie-banner__box{
  max-width:760px;
  margin:0 auto;
  background:rgba(17,17,17,.96);
  color:#f5f5f5;
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  box-shadow:0 14px 42px rgba(0,0,0,.28);
  backdrop-filter:blur(8px);
  padding:16px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.cookie-banner__text{
  margin:0;
  font-size:14px;
  line-height:1.55;
  color:rgba(255,255,255,.92);
}

.cookie-banner__text a{
  color:#a8df65;
  text-decoration:underline;
  text-underline-offset:2px;
}

.cookie-banner__actions{
  display:flex;
  gap:10px;
  flex-shrink:0;
}

.cookie-btn{
  appearance:none;
  border:none;
  border-radius:999px;
  padding:10px 16px;
  font:inherit;
  font-weight:600;
  cursor:pointer;
  transition:transform .18s ease, opacity .18s ease, background .18s ease;
}

.cookie-btn:hover{
  transform:translateY(-1px);
}

.cookie-btn--primary{
  background:#a8df65;
  color:#111;
}

.cookie-btn--ghost{
  background:transparent;
  color:#fff;
  border:1px solid rgba(255,255,255,.35);
}

/* =========================
   Bouton gestion cookies
   ========================= */

.cookie-manage{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:9998;

  font-size:12px;
  padding:6px 10px;

  border-radius:20px;
  border:1px solid rgba(0,0,0,.15);

  background:rgba(255,255,255,.75);
  color:#333;

  backdrop-filter:blur(4px);

  cursor:pointer;

  opacity:.65;
  transition:all .2s ease;
}

.cookie-manage:hover{
  opacity:1;
  transform:translateY(-1px);
}
@media (max-width: 760px){
  .cookie-banner{
    left:14px;
    right:14px;
    bottom:14px;
  }

  .cookie-banner__box{
    flex-direction:column;
    align-items:flex-start;
    padding:15px;
    border-radius:16px;
  }

  .cookie-banner__actions{
    width:100%;
  }

  .cookie-btn{
    flex:1 1 auto;
    text-align:center;
  }

  .cookie-manage{
    right:14px;
    bottom:14px;
  }
}