/* ============================================================
   POLICE — Figtree (SIL Open Font License 1.1), auto-hébergée.
   Alternative LIBRE à « Trip Sans » (fonte propriétaire du site
   climafroid.be, sous licence exclusive Tripadvisor/Colophon).
   Métriques quasi identiques : cap-height 0.700 (identique),
   x-height 0.500 (vs 0.494) — le rendu reste très proche.
   Fichier variable unique (400→900), latin + latin-ext. ~30 Ko.
   Licence : voir fonts/FIGTREE-OFL.txt
   ============================================================ */
@font-face{font-family:'Figtree';src:url(fonts/figtree-latin.woff2) format('woff2');
  font-weight:400 900;font-style:normal;font-display:swap;
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Figtree';src:url(fonts/figtree-latin-ext.woff2) format('woff2');
  font-weight:400 900;font-style:normal;font-display:swap;
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}

/* ============================================================
   CHARTE COULEUR CLIMAFROID — reprise de climafroid.be
   (config Tailwind officielle du site).
   ============================================================ */
:root{
  --brand-orange:#FF5800;   /* orange officiel — boutons, accents, sélections */
  --orange-dark:#DD4D00;    /* orange foncé — dégradés, hover                 */
  --mango:#F29231;          /* mangue — mises en évidence secondaires         */
  --blue:#AAC4E6;           /* bleu — accents froids                          */
  --maroon:#6B3232;         /* bordeaux officiel — fond d'en-tête, titres     */
  --maroon-dark:#4E2525;    /* bordeaux foncé — dégradé d'en-tête             */
  --cream:#E6E7D5;          /* crème officiel — texte sur bordeaux, fond page */

  /* Neutres dérivés */
  --surface:#FFFFFF;
  --ink:#3A2A2A;
  --muted:#8A7A72;
  --line:#DDD9C9;
  --line-strong:#CBC5B4;
  --ok:#1F9D6B;
  --shadow:0 1px 2px rgba(78,37,37,.06),0 8px 30px rgba(78,37,37,.10);
  --radius:14px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Figtree',system-ui,sans-serif;
  color:var(--ink);
  background:var(--cream);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,.display{font-family:'Figtree',sans-serif;color:var(--maroon)}

/* ---------- Barre de progression fixe ---------- */
.progress-track{position:fixed;top:0;left:0;right:0;height:4px;background:transparent;z-index:60}
.progress-bar{height:100%;width:0;background:linear-gradient(90deg,var(--brand-orange),var(--orange-dark));transition:width .3s ease}

/* ---------- En-tête ---------- */
.hero{
  background:linear-gradient(160deg,var(--maroon-dark),var(--maroon));
  color:var(--cream);padding:44px 22px 96px;position:relative;overflow:hidden;
}
.hero::after{
  content:"";position:absolute;right:-80px;top:-90px;width:340px;height:340px;border-radius:50%;
  background:radial-gradient(circle at center,rgba(255,88,0,.32),transparent 70%);
}
.hero-inner{max-width:900px;margin:0 auto;position:relative;z-index:1}
.hero h1,.hero h2{color:var(--cream)}
/* align-items:flex-start : sans cela le SVG s'étire sur toute la largeur
   du conteneur flex et le logo apparaît centré. */
.brand{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin-bottom:30px}
/* Badge officiel orange (PNG fourni par le client, 240×300). */
.brand-logo{display:block;width:auto;height:104px}
@media(max-width:560px){.brand-logo{height:84px}}
.brand-tag{font-size:12px;opacity:.82;letter-spacing:.5px;text-transform:uppercase}
.hero h1{font-size:clamp(26px,5vw,40px);font-weight:700;line-height:1.12;max-width:16ch}
.hero p{margin-top:14px;max-width:52ch;opacity:.92;font-size:16px}
.hero-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.chip{
  background:rgba(230,231,213,.12);border:1px solid rgba(230,231,213,.28);
  padding:7px 13px;border-radius:100px;font-size:13px;font-weight:500;backdrop-filter:blur(4px);
}

/* ---------- Mise en page ---------- */
.wrap{max-width:900px;margin:-64px auto 0;padding:0 22px 80px;position:relative;z-index:2}
.layout{display:grid;grid-template-columns:1fr;gap:22px}
@media(min-width:900px){.layout{grid-template-columns:220px 1fr;align-items:start}}

/* Navigation latérale (desktop) */
.sidenav{display:none}
@media(min-width:900px){
  .sidenav{display:block;position:sticky;top:24px}
  .sidenav ol{list-style:none;border-left:2px solid var(--line-strong);padding-left:0}
  .sidenav a{
    display:block;padding:9px 16px;margin-left:-2px;border-left:2px solid transparent;
    color:var(--muted);text-decoration:none;font-size:13.5px;font-weight:500;transition:.2s;
  }
  .sidenav a:hover{color:var(--brand-orange)}
  .sidenav a.active{color:var(--maroon);border-left-color:var(--brand-orange);font-weight:600}
}

/* ---------- Cartes de section ---------- */
.card{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:26px 24px;margin-bottom:20px;scroll-margin-top:20px;
}
.card-head{display:flex;align-items:baseline;gap:12px;margin-bottom:6px}
.card-num{
  font-family:'Figtree';font-weight:700;font-size:13px;color:var(--brand-orange);
  background:#FFE7DB;border-radius:8px;padding:3px 9px;flex:none;
}
.card h2{font-size:20px;font-weight:600}
.card-sub{color:var(--muted);font-size:14px;margin:2px 0 20px}

/* ---------- Champs ---------- */
.grid{display:grid;gap:16px}
@media(min-width:560px){.grid.cols-2{grid-template-columns:1fr 1fr}.grid.cols-3{grid-template-columns:1fr 1fr 1fr}}
.field{display:flex;flex-direction:column;gap:6px}
.field.full{grid-column:1/-1}
label{font-size:13.5px;font-weight:600;color:var(--ink)}
.req{color:var(--brand-orange);font-weight:700}
.hint{font-size:12.5px;color:var(--muted);font-weight:400}
input[type=text],input[type=tel],input[type=email],input[type=number],select,textarea{
  font:inherit;font-size:15px;color:var(--ink);background:#fff;
  border:1.5px solid var(--line-strong);border-radius:10px;padding:11px 13px;width:100%;transition:.15s;
}
textarea{resize:vertical;min-height:92px}
input:focus,select:focus,textarea:focus{
  outline:none;border-color:var(--brand-orange);box-shadow:0 0 0 3px rgba(255,88,0,.22);
}
select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238A7A72' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;padding-right:38px}

/* Choix (radio / checkbox en pilules) */
.choices{display:flex;flex-wrap:wrap;gap:9px}
.choice{position:relative}
.choice input{position:absolute;opacity:0;inset:0;cursor:pointer}
.choice span{
  display:block;padding:9px 15px;border:1.5px solid var(--line-strong);border-radius:100px;
  font-size:14px;font-weight:500;cursor:pointer;transition:.15s;background:#fff;user-select:none;
}
.choice input:hover+span{border-color:var(--brand-orange)}
.choice input:checked+span{background:var(--brand-orange);border-color:var(--brand-orange);color:#fff}
.choice input:focus-visible+span{box-shadow:0 0 0 3px rgba(255,88,0,.3)}

/* Cases multiples (liste) */
.check-list{display:grid;gap:10px}
@media(min-width:560px){.check-list.two{grid-template-columns:1fr 1fr}}
.check-item{display:flex;gap:10px;align-items:flex-start;padding:11px 13px;border:1.5px solid var(--line);border-radius:10px;cursor:pointer;transition:.15s}
.check-item:hover{border-color:var(--brand-orange);background:#FBF6F2}
.check-item input{margin-top:3px;width:17px;height:17px;accent-color:var(--brand-orange);flex:none}
.check-item .ci-text{font-size:14px}
.check-item .ci-text small{display:block;color:var(--muted);font-size:12.5px}

/* Encart info */
.note{
  display:flex;gap:11px;background:#FBF1E9;border:1px solid #F3D9C8;border-left:4px solid var(--brand-orange);
  border-radius:10px;padding:13px 15px;font-size:13.5px;color:var(--maroon);margin-top:4px;
}
.note svg{flex:none;margin-top:1px}

/* Zone conditionnelle */
.conditional{display:none;margin-top:16px;padding-top:16px;border-top:1px dashed var(--line-strong)}
.conditional.show{display:block;animation:reveal .3s ease}
@keyframes reveal{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

/* ---------- Upload photos ---------- */
.shots{display:grid;gap:8px;grid-template-columns:1fr;margin-bottom:16px}
@media(min-width:560px){.shots{grid-template-columns:1fr 1fr}}
.shot{display:flex;gap:10px;align-items:center;font-size:13.5px;color:var(--muted)}
.shot b{color:var(--ink);font-weight:600}
.shot .dot{width:9px;height:9px;border-radius:50%;background:var(--brand-orange);flex:none}
.dropzone{
  display:block;border:2px dashed var(--line-strong);border-radius:12px;padding:28px 18px;text-align:center;
  cursor:pointer;transition:.2s;background:#FBF6F2;
}
.dropzone:hover,.dropzone.drag{border-color:var(--brand-orange);background:#FBEFE7}
.dropzone svg{color:var(--brand-orange);margin-bottom:8px}
.dropzone .dz-title{font-weight:600;font-size:15px;color:var(--maroon)}
.dropzone .dz-sub{font-size:13px;color:var(--muted);margin-top:2px}
.previews{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px;margin-top:14px}
.thumb{position:relative;border-radius:9px;overflow:hidden;aspect-ratio:1;border:1px solid var(--line)}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb .doc{width:100%;height:100%;display:grid;place-items:center;background:#FBF6F2;color:var(--muted);font-size:12px;font-weight:600;padding:6px;text-align:center;word-break:break-all}

/* ---------- Pied / envoi ---------- */
.actions{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:24px}
.consent{display:flex;gap:11px;align-items:flex-start;font-size:13px;color:var(--muted);margin-bottom:18px}
.consent input{margin-top:2px;width:17px;height:17px;accent-color:var(--brand-orange);flex:none}
.consent a{color:var(--brand-orange)}
.btn{
  font:inherit;font-family:'Figtree';font-weight:600;font-size:16px;border:none;cursor:pointer;border-radius:11px;
  padding:14px 26px;width:100%;color:#fff;background:var(--brand-orange);transition:.15s;
}
.btn:hover{background:var(--maroon)}
.btn:disabled{opacity:.55;cursor:not-allowed}
.err-summary{display:none;background:#FDECE7;border:1px solid #F6C4B4;color:#B23C16;border-radius:10px;padding:12px 15px;font-size:13.5px;margin-bottom:16px}
.err-summary.show{display:block}
.field-error input,.field-error select,.field-error textarea,.field-error .choice span,.field-error .check-item{border-color:var(--brand-orange)!important}
.err-msg{color:var(--brand-orange);font-size:12.5px;font-weight:600;margin-top:2px}

/* Écran de confirmation */
.done{text-align:center;padding:20px 6px}
.done .tick{width:66px;height:66px;border-radius:50%;background:#E4F6EE;color:var(--ok);display:grid;place-items:center;margin:0 auto 18px}
.done h2{font-size:24px;margin-bottom:8px;color:var(--maroon)}
.done p{color:var(--muted);max-width:44ch;margin:0 auto 18px}
.recap{text-align:left;background:#FBF6F2;border:1px solid var(--line);border-radius:12px;padding:18px;max-width:520px;margin:0 auto;font-size:14px}
.recap dt{font-weight:600;color:var(--maroon);font-size:12px;text-transform:uppercase;letter-spacing:.4px;margin-top:12px}
.recap dt:first-child{margin-top:0}
.recap dd{color:var(--ink)}

footer{text-align:center;color:var(--muted);font-size:12.5px;padding:26px 22px 40px}
footer a{color:var(--brand-orange);text-decoration:none}

/* Honeypot — masqué aux humains, hors flux, non focusable */
.hp{position:absolute!important;left:-9999px!important;top:-9999px!important;width:1px;height:1px;overflow:hidden}

@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}html{scroll-behavior:auto}}
