/* Prima CAE — feuille de style commune aux trois espaces.
   Vert pin + jaune soleil sur fond clair ; formes arrondies, ombres douces ; la couleur vive vient des photos. */

@font-face {
  font-family: "Bricolage";
  src: url("/static/fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2-variations");
  font-weight: 200 800; font-stretch: 75% 100%; 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: "Bricolage";
  src: url("/static/fonts/bricolage-grotesque-latin-ext-standard-normal.woff2") format("woff2-variations");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  src: url("/static/fonts/figtree-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 300 900; 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("/static/fonts/figtree-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 300 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --pin: #0e3b2f;            /* vert profond : titres, bandes sombres */
  --pin-nuit: #08261f;
  --feuille: #0f7a57;        /* vert d'action : liens, sélection, « éligible » */
  --menthe: #e6f3ec;         /* fond teinté */
  --menthe-vive: #cfe9db;
  --soleil: #ffc738;         /* bouton principal */
  --soleil-vif: #ffb50f;
  --papier: #ffffff;
  --brume: #f4f6f3;          /* fond de section */
  --trait: #dce4de;
  --encre: #14211d;
  --gris: #586862;
  --rouge: #b3261e;
  --titre: "Bricolage", "Figtree", system-ui, sans-serif;
  --texte: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --marge: clamp(20px, 4vw, 56px);
  --largeur: 1200px;
  --rayon: 20px;
  --rayon-champ: 14px;
  --ombre: 0 1px 2px rgba(14, 59, 47, .06), 0 10px 30px rgba(14, 59, 47, .08);
  --ombre-forte: 0 2px 4px rgba(8, 38, 31, .08), 0 24px 60px rgba(8, 38, 31, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--papier); color: var(--encre);
  font: 400 17px/1.55 var(--texte); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--feuille); outline-offset: 3px; border-radius: 6px; }

.cadre { max-width: var(--largeur); margin: 0 auto; padding-inline: var(--marge); }

/* ------------------------------------------------------------------ typographie */
.titre-geant { font-family: var(--titre); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98;
  font-size: clamp(40px, 5.6vw, 78px); text-wrap: balance; }
.titre { font-family: var(--titre); font-weight: 750; letter-spacing: -0.03em; line-height: 1.04;
  font-size: clamp(31px, 3.7vw, 50px); text-wrap: balance; color: var(--pin); }
.titre-moyen { font-family: var(--titre); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; font-size: 25px; color: var(--pin); }
.chapo { font-size: clamp(18px, 1.45vw, 20.5px); line-height: 1.5; color: var(--gris); max-width: 50ch; }
.etiquette { font-weight: 700; font-size: 12.5px; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; }
.sourd { color: var(--gris); }

/* ------------------------------------------------------------------ en-tête */
.entete { background: var(--papier); border-bottom: 1px solid var(--trait); position: sticky; top: 0; z-index: 30; }
.entete > div { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--pin);
  font-family: var(--titre); font-weight: 800; font-size: 23px; letter-spacing: -0.03em; }
.marque i { width: 26px; height: 26px; border-radius: 9px; background: var(--soleil); display: grid; place-items: center; }
.marque i::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pin); }
.nav { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 28px); font-size: 16px; font-weight: 500; }
.nav a { text-decoration: none; padding: 8px 2px; color: var(--encre); }
.nav a:hover { color: var(--feuille); }
.nav a.pilule { padding: 9px 18px; border-radius: 999px; background: var(--menthe); color: var(--pin); font-weight: 600; }
.nav a.pilule:hover, .nav a.pilule[aria-current="page"] { background: var(--pin); color: var(--papier); }

/* ------------------------------------------------------------------ boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px;
  padding: 0 28px; border: 0; border-radius: 999px; background: var(--pin); color: var(--papier);
  font-weight: 700; font-size: 17px; text-decoration: none; transition: background .18s, color .18s, box-shadow .18s;
}
.bouton:hover { background: var(--pin-nuit); }
.bouton.soleil { background: var(--soleil); color: var(--pin-nuit); box-shadow: 0 6px 18px rgba(255, 181, 15, .32); }
.bouton.soleil:hover { background: var(--soleil-vif); }
.bouton.clair { background: var(--papier); color: var(--pin); box-shadow: inset 0 0 0 1.5px var(--trait); }
.bouton.clair:hover { box-shadow: inset 0 0 0 1.5px var(--pin); background: var(--papier); }
.bouton[disabled] { opacity: .5; cursor: not-allowed; }
.bouton .fleche { display: inline-block; transition: transform .18s; }
.bouton:hover .fleche { transform: translateX(3px); }
.lien-bouton { background: none; border: 0; padding: 0; color: var(--feuille); font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px; font-size: 16px; }

/* ------------------------------------------------------------------ accueil : ouverture */
.ouverture { position: relative; background: var(--pin-nuit); color: var(--papier); isolation: isolate; }
.ouverture-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ouverture::after { content: ""; position: absolute; inset: 0; background: rgba(8, 38, 31, .58); z-index: -1; }
.ouverture > div { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 480px); gap: clamp(28px, 5vw, 80px);
  align-items: center; padding-block: clamp(48px, 8vh, 104px); min-height: min(86vh, 820px); }
.ouverture .chapo { color: rgba(255, 255, 255, .88); margin-top: 24px; max-width: 44ch; }
.reperes { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 34px 0 0; padding: 0; list-style: none; font-size: 15.5px; font-weight: 500; }
.reperes li { display: flex; align-items: center; gap: 9px; }
.reperes li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none; background: var(--soleil)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 3 6-6.6' fill='none' stroke='%2308261f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }

.depart { background: var(--papier); color: var(--encre); border-radius: 28px; padding: clamp(22px, 2.6vw, 34px);
  box-shadow: var(--ombre-forte); }
.depart h2 { font-family: var(--titre); font-weight: 750; letter-spacing: -0.025em; font-size: 26px; line-height: 1.12; color: var(--pin); }
.depart form { margin-top: 22px; display: grid; gap: 20px; }
.champ-titre { font-weight: 700; font-size: 15.5px; margin-bottom: 10px; display: block; color: var(--pin); }
.profils { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.profils legend { padding: 0; }
.profil { position: relative; }
.profil input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.profil span { display: flex; align-items: center; min-height: 48px; padding: 8px 14px; border-radius: 12px;
  background: var(--brume); box-shadow: inset 0 0 0 1.5px transparent; font-weight: 600; font-size: 15.5px; line-height: 1.2;
  transition: background .15s, box-shadow .15s, color .15s; }
.profil input:hover + span { box-shadow: inset 0 0 0 1.5px var(--menthe-vive); background: var(--menthe); }
.profil input:checked + span { background: var(--pin); color: var(--papier); }
.profil input:focus-visible + span { outline: 3px solid var(--feuille); outline-offset: 2px; }
.ligne-cp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ligne-cp.cote { grid-template-columns: minmax(0, 1fr) auto; }
.saisie { width: 100%; min-height: 56px; padding: 0 18px; border: 1.5px solid var(--trait); border-radius: var(--rayon-champ);
  background: var(--papier); font-size: 17.5px; appearance: none; transition: border-color .15s, box-shadow .15s; }
.saisie:hover { border-color: #b9c7bf; }
.saisie:focus { outline: none; border-color: var(--feuille); box-shadow: 0 0 0 4px rgba(15, 122, 87, .16); }
.saisie::placeholder { color: #94a39c; }
.saisie.cp { font-weight: 700; letter-spacing: 0.14em; font-size: 21px; font-variant-numeric: tabular-nums; }
select.saisie { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230e3b2f' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position: calc(100% - 18px) 50%; background-repeat: no-repeat; padding-right: 46px; }
.message { font-size: 15px; min-height: 22px; }
.message.erreur { color: var(--rouge); font-weight: 600; }
.message.ok { color: var(--feuille); font-weight: 600; }

/* ------------------------------------------------------------------ sections d'accueil */
.section { padding-block: clamp(64px, 8.5vw, 120px); }
.section.teintee { background: var(--brume); }
.section-tete { display: grid; gap: 14px; margin-bottom: clamp(30px, 4vw, 54px); max-width: 760px; }
.pour-qui { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.tuile-photo { text-align: left; background: none; border: 0; padding: 0; display: block; min-width: 0; width: 100%; }
.tuile-photo .image { display: block; aspect-ratio: 4 / 3; border-radius: var(--rayon); overflow: hidden; background: var(--menthe); }
.tuile-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tuile-photo:hover img { transform: scale(1.04); }
.tuile-photo b { display: block; margin-top: 14px; font-family: var(--titre); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; color: var(--pin); }
.tuile-photo small { display: block; margin-top: 3px; font-size: 15.5px; color: var(--gris); }

.etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); counter-reset: etape; }
.etape { background: var(--papier); border-radius: var(--rayon); padding: 28px 28px 30px; counter-increment: etape; box-shadow: var(--ombre); }
.etape::before { content: counter(etape); font-family: var(--titre); font-weight: 800; font-size: 20px; width: 44px; height: 44px;
  border-radius: 50%; background: var(--menthe); color: var(--pin); display: grid; place-items: center; margin-bottom: 22px; }
.etape h3 { font-family: var(--titre); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; color: var(--pin); }
.etape p { color: var(--gris); font-size: 16.5px; }

.preuves { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(30px, 6vw, 96px); align-items: center; }
.preuves .section-tete { margin-bottom: 0; }
.chiffres-cles { margin: 30px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.chiffres-cles div { border-top: 2px solid var(--menthe-vive); padding-top: 14px; }
.chiffres-cles dt { font-family: var(--titre); font-weight: 800; font-size: 30px; letter-spacing: -0.03em; color: var(--pin); line-height: 1.1; }
.chiffres-cles dd { margin: 4px 0 0; color: var(--gris); font-size: 15.5px; line-height: 1.4; }
.exemple-legende { font-size: 14.5px; color: var(--gris); margin-top: 16px; text-align: center; }

.bande-pro { background: var(--pin); color: var(--papier); }
.bande-pro > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  padding-block: clamp(48px, 7vw, 96px); }
.bande-pro img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 28px; }
.bande-pro .texte { display: grid; gap: 20px; align-content: center; }
.bande-pro .titre { color: var(--papier); }
.bande-pro .chapo { color: rgba(255, 255, 255, .82); }
.bande-pro .bouton { justify-self: start; margin-top: 6px; }

.pied { background: var(--pin-nuit); color: rgba(255, 255, 255, .72); padding-block: 44px 52px; font-size: 14.5px; }
.pied > div { display: grid; gap: 14px; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 26px; color: var(--papier); font-weight: 500; }
.pied a { text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied p { max-width: 90ch; }

/* ------------------------------------------------------------------ parcours */
.fil { background: var(--brume); border-bottom: 1px solid var(--trait); }
.fil > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 60px; padding-block: 10px; }
.fil .lieu { font-weight: 600; font-size: 15px; color: var(--pin); display: inline-flex; align-items: center; gap: 8px;
  background: var(--papier); border-radius: 999px; padding: 7px 14px; box-shadow: inset 0 0 0 1px var(--trait); }
.fil .pas { display: flex; gap: 6px; margin-left: auto; font-size: 14.5px; color: var(--gris); list-style: none; padding: 0; margin-block: 0; flex-wrap: wrap; }
.fil .pas li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; font-weight: 600; }
.fil .pas li::before { content: attr(data-n); width: 24px; height: 24px; border-radius: 50%; background: var(--papier);
  box-shadow: inset 0 0 0 1px var(--trait); display: grid; place-items: center; font-size: 13px; }
.fil .pas li[aria-current="step"] { background: var(--pin); color: var(--papier); }
.fil .pas li[aria-current="step"]::before { background: var(--soleil); color: var(--pin-nuit); box-shadow: none; }
.bande-client { background: var(--soleil); }
.bande-client > div { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding-block: 10px; font-size: 15.5px; color: var(--pin-nuit); }
.bande-client input { min-height: 42px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--papier); width: min(100%, 300px); }

.ecran { padding-block: clamp(32px, 4.5vw, 64px) clamp(64px, 8vw, 110px); min-height: 62vh; }
.ecran-tete { display: grid; gap: 12px; margin-bottom: clamp(26px, 3.4vw, 42px); max-width: 800px; }
.retour { display: inline-flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 600; margin-bottom: 20px; background: none;
  border: 0; padding: 4px 0; color: var(--feuille); }
.retour:hover { text-decoration: underline; text-underline-offset: 3px; }

.cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(264px, 1fr)); gap: 16px; }
.carte { text-align: left; background: var(--papier); border: 1.5px solid var(--trait); border-radius: var(--rayon); padding: 24px 24px 20px;
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 6px; min-height: 216px;
  transition: border-color .18s, box-shadow .18s, transform .18s; }
.carte:hover, .carte:focus-visible { border-color: var(--feuille); box-shadow: var(--ombre); transform: translateY(-2px); }
.carte .picto { width: 54px; height: 54px; border-radius: 16px; background: var(--menthe); color: var(--pin); display: grid; place-items: center; margin-bottom: 14px; }
.carte .picto svg { width: 30px; height: 30px; }
.carte b { font-family: var(--titre); font-weight: 700; font-size: 21.5px; letter-spacing: -0.02em; line-height: 1.15; color: var(--pin); }
.carte p { color: var(--gris); font-size: 15.5px; line-height: 1.42; }
.carte .bas { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; font-size: 14.5px; font-weight: 600; color: var(--feuille); }
.rond { width: 36px; height: 36px; border-radius: 50%; background: var(--brume); display: grid; place-items: center; color: var(--pin); transition: background .18s; flex: none; }
.carte:hover .rond, .rangee:hover .rond { background: var(--soleil); }

.rangees { display: grid; gap: 12px; max-width: 880px; }
.rangee { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: center; text-align: left;
  padding: 20px 22px; border: 1.5px solid var(--trait); border-radius: var(--rayon); background: var(--papier);
  transition: border-color .18s, box-shadow .18s; }
.rangee b { font-family: var(--titre); font-weight: 700; font-size: 20px; letter-spacing: -0.015em; color: var(--pin); }
.rangee p { grid-column: 1; color: var(--gris); font-size: 15.5px; }
.rangee .rond { grid-row: 1 / span 2; grid-column: 2; }
.rangee:hover { border-color: var(--feuille); box-shadow: var(--ombre); }

/* questions : formulaire à gauche, estimation en direct à droite */
.questions-grille { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 380px); gap: clamp(28px, 5vw, 88px); align-items: start; }
.formulaire { display: grid; gap: 26px; max-width: 640px; }
.question { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.question > label, .question > legend { font-weight: 700; font-size: 17.5px; padding: 0; color: var(--pin); }
.question .aide { color: var(--gris); font-size: 15px; margin-top: -4px; }
.choix { display: grid; gap: 8px; }
.choix.deux { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option span { display: flex; align-items: center; min-height: 52px; padding: 10px 16px 10px 48px; border: 1.5px solid var(--trait);
  border-radius: var(--rayon-champ); position: relative; line-height: 1.3; background: var(--papier); transition: border-color .15s, background .15s; }
.option span::before { content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  border: 1.5px solid #a9b8b0; border-radius: 50%; background: var(--papier); transition: border-color .15s, background .15s; }
.option input:hover + span { border-color: var(--feuille); }
.option input:checked + span { border-color: var(--feuille); background: var(--menthe); font-weight: 600; color: var(--pin); }
.option input:checked + span::before { border-color: var(--feuille); background: var(--feuille)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 3 6-6.6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.option input:focus-visible + span { outline: 3px solid var(--feuille); outline-offset: 2px; }
.avec-unite { display: grid; grid-template-columns: minmax(0, 210px) auto; align-items: center; gap: 12px; }
.avec-unite .unite { color: var(--gris); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 8px; }

.apercu { position: sticky; top: 94px; border-radius: 24px; background: var(--papier); box-shadow: var(--ombre-forte); overflow: hidden; }
.apercu-tete { padding: 12px 22px; background: var(--pin); color: var(--papier); }
.apercu.refus .apercu-tete, .apercu.attente .apercu-tete { background: var(--brume); color: var(--gris); }
.apercu-corps { padding: 22px 22px 24px; display: grid; gap: 4px; }
.apercu .texte { display: grid; gap: 4px; }
.apercu .jusqua { color: var(--gris); font-size: 15.5px; }
.apercu .montant { font-family: var(--titre); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-size: 58px; color: var(--pin); font-variant-numeric: tabular-nums; }
.apercu .fourchette { color: var(--gris); font-size: 15px; margin-top: 6px; }
.apercu .motif { font-size: 16px; line-height: 1.45; }
.apercu .bouton { width: 100%; margin-top: 18px; min-height: 52px; font-size: 16.5px; }
.apercu .code { font-size: 13.5px; font-weight: 600; color: var(--gris); margin-top: 12px; }

/* résultat : le reçu */
.resultat { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 72px); align-items: start; }
.recu { border-radius: 28px; background: var(--papier); box-shadow: var(--ombre-forte); overflow: hidden; }
.recu-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 26px; background: var(--pin); color: var(--papier); flex-wrap: wrap; }
.recu-tete .statut { display: inline-flex; align-items: center; gap: 10px; }
.recu-tete .statut::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--soleil)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 3 6-6.6' fill='none' stroke='%2308261f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.recu.refus .recu-tete { background: var(--brume); color: var(--gris); }
.recu.refus .recu-tete .statut::before { display: none; }
.recu-tete a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.recu-corps { padding: 28px 26px 30px; display: grid; gap: 6px; }
.recu-corps h2 { font-weight: 600; font-size: 18.5px; line-height: 1.3; margin-bottom: 14px; color: var(--pin); }
.recu .jusqua { font-size: 17px; color: var(--gris); }
.recu .montant { font-family: var(--titre); font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; color: var(--pin);
  font-size: clamp(64px, 9vw, 108px); font-variant-numeric: tabular-nums; }
.recu .fourchette { margin-top: 12px; color: var(--gris); }
.recu .motif { font-size: 19px; line-height: 1.45; }
.recu-lignes { margin: 0; padding: 6px 26px 16px; border-top: 2px dashed var(--trait); }
.recu-lignes div { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--trait); font-size: 15.5px; }
.recu-lignes div:last-child { border-bottom: 0; }
.recu-lignes dt { color: var(--gris); }
.recu-lignes dd { margin: 0; font-weight: 600; text-align: right; color: var(--pin); font-variant-numeric: tabular-nums; }
.recu.petit .montant { font-size: clamp(54px, 6vw, 76px); }

.details { display: grid; gap: 12px; }
.details details { border: 1.5px solid var(--trait); border-radius: var(--rayon); background: var(--papier); padding: 0 22px; }
.details details[open] { border-color: var(--menthe-vive); }
.details summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 17.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: var(--pin); align-items: center; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: ""; width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--brume)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230e3b2f' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat; transition: transform .2s; }
.details details[open] summary::after { transform: rotate(180deg); }
.details ul { margin: 0 0 22px; padding-left: 20px; display: grid; gap: 9px; color: #2a3a34; font-size: 16px; }
.alertes { background: #fff6da; border-radius: var(--rayon); padding: 18px 22px; display: grid; gap: 10px; font-size: 16px; margin-top: 20px; color: #4a3a05; }
.dossier { border-radius: var(--rayon); background: var(--papier); box-shadow: inset 0 0 0 1.5px var(--trait); padding: 20px 24px; margin-top: 24px; }
.dossier h3 { font-weight: 700; font-size: 17px; margin-bottom: 8px; color: var(--pin); }
.dossier ul { list-style: none; padding: 0; margin: 0; }
.dossier li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--trait); font-size: 15.5px; }
.dossier li span:last-child { font-weight: 600; white-space: nowrap; color: var(--pin); font-variant-numeric: tabular-nums; }
.dossier .total { border-top: 2px solid var(--pin); font-weight: 700; }
.note { font-size: 14.5px; color: var(--gris); margin-top: 18px; max-width: 62ch; }

/* formulaires génériques */
.grille-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.champ { display: grid; gap: 8px; }
.champ label { font-weight: 700; font-size: 15.5px; color: var(--pin); }
.champ small { color: var(--gris); font-size: 14.5px; }
.case { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15.5px; line-height: 1.45; cursor: pointer; }
.case input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--feuille); }
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 10px 18px; }

/* tableaux (installateurs, gestion) */
.onglets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; background: var(--brume); padding: 6px; border-radius: 999px; width: fit-content; max-width: 100%; }
.onglets button { background: none; border: 0; padding: 10px 18px; font-weight: 600; font-size: 15.5px; color: var(--gris); border-radius: 999px; transition: background .15s, color .15s; }
.onglets button:hover { color: var(--pin); }
.onglets button[aria-selected="true"] { background: var(--papier); color: var(--pin); box-shadow: 0 1px 3px rgba(14, 59, 47, .14); }
.tableau { width: 100%; border-collapse: collapse; font-size: 15px; }
.tableau th { text-align: left; font-weight: 700; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gris);
  padding: 10px 16px 12px 0; border-bottom: 2px solid var(--trait); white-space: nowrap; }
.tableau td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--trait); vertical-align: top; }
.tableau td.chiffre, .tableau th.chiffre { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: 0; font-weight: 600; }
.tableau .saisie { min-height: 44px; font-size: 15px; padding-left: 12px; }
.defile { overflow-x: auto; }
.pastille { display: inline-block; font-weight: 700; font-size: 12.5px; letter-spacing: 0.03em; padding: 5px 10px; border-radius: 999px; white-space: nowrap; background: var(--menthe); color: var(--pin); }
.pastille.non { background: var(--brume); color: var(--gris); }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 34px; }
.chiffres div { padding: 20px 22px; border-radius: var(--rayon); background: var(--brume); }
.chiffres b { display: block; font-family: var(--titre); font-weight: 800; font-size: 36px; line-height: 1.1; letter-spacing: -0.03em; color: var(--pin); font-variant-numeric: tabular-nums; }
.chiffres span { color: var(--gris); font-size: 14.5px; }
.vide { padding: 34px 28px; color: var(--gris); max-width: 62ch; background: var(--brume); border-radius: var(--rayon); }
.nouveaute { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 6px 22px; padding: 18px 0; border-bottom: 1px solid var(--trait); }
.nouveaute time { font-weight: 600; font-size: 14.5px; color: var(--feuille); }
.nouveaute b { font-weight: 700; color: var(--pin); }
.nouveaute p { grid-column: 2; color: var(--gris); font-size: 15.5px; }

.deux-colonnes { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 480px); gap: clamp(30px, 6vw, 96px); align-items: start; }
.deux-colonnes .titre-geant { color: var(--pin); }
.liste-atouts { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.liste-atouts li { padding: 4px 0 4px 44px; display: grid; gap: 3px; position: relative; }
.liste-atouts li::before { content: ""; position: absolute; left: 0; top: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--menthe)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 3 6-6.6' fill='none' stroke='%230f7a57' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; }
.liste-atouts b { font-weight: 700; font-size: 18px; color: var(--pin); }
.liste-atouts span { color: var(--gris); font-size: 16px; }
.panneau { border-radius: 28px; padding: clamp(22px, 2.8vw, 34px); display: grid; gap: 20px; background: var(--papier); box-shadow: var(--ombre-forte); }
.panneau.plat { box-shadow: none; background: var(--brume); }
.photo-pro { border-radius: 28px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-top: 36px; }

.prose { max-width: 760px; display: grid; gap: 18px; }
.prose h2 { font-family: var(--titre); font-weight: 750; font-size: 27px; letter-spacing: -0.02em; margin-top: 30px; color: var(--pin); }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.prose a { color: var(--feuille); font-weight: 600; }

.sans-marge { margin-bottom: 0; margin-top: 0; }
.a-droite { margin-left: auto; }
.espace-haut { margin-top: 28px; }
.espace-bas { margin-bottom: 28px; }

/* ------------------------------------------------------------------ mouvement */
@media (prefers-reduced-motion: no-preference) {
  .apparait { animation: apparait .3s ease-out both; }
  @keyframes apparait { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ------------------------------------------------------------------ écrans moyens et petits */
@media (max-width: 960px) {
  .ouverture > div { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .depart { max-width: 560px; }
  .pour-qui { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etapes, .preuves, .resultat, .deux-colonnes { grid-template-columns: minmax(0, 1fr); }
  .bande-pro > div { grid-template-columns: minmax(0, 1fr); }
  .questions-grille { grid-template-columns: minmax(0, 1fr); }
  .apercu { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 40; border-radius: 20px 20px 0 0; display: grid;
    grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px var(--marge) calc(12px + env(safe-area-inset-bottom)); }
  .apercu-tete, .apercu .fourchette, .apercu .code { display: none; }
  .apercu-corps { padding: 0; display: contents; }
  .apercu .texte { gap: 0; min-width: 0; }
  .apercu .jusqua { font-size: 13.5px; }
  .apercu .montant { font-size: 32px; }
  .apercu .motif { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .apercu .bouton { width: auto; margin-top: 0; min-height: 50px; padding: 0 20px; }
  .avec-apercu { padding-bottom: 140px; }
  .avec-apercu .formulaire .actions { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .entete > div { height: 62px; }
  .marque { font-size: 20px; }
  .nav { font-size: 15px; gap: 12px; }
  .nav .facultatif { display: none; }
  .ouverture > div { padding-block: 36px 40px; }
  .reperes { margin-top: 24px; gap: 8px 18px; font-size: 14.5px; }
  .depart { border-radius: 24px; }
  .pour-qui { gap: 14px; }
  .tuile-photo b { font-size: 17.5px; }
  .tuile-photo small { font-size: 14.5px; }
  .chiffres-cles { grid-template-columns: minmax(0, 1fr); }
  .grille-2 { grid-template-columns: minmax(0, 1fr); }
  .ligne-cp.cote { grid-template-columns: minmax(0, 1fr); }
  .fil .pas { margin-left: 0; width: 100%; }
  .fil .pas li { padding-right: 10px; font-size: 13.5px; }
  .nouveaute { grid-template-columns: minmax(0, 1fr); }
  .nouveaute p { grid-column: 1; }
  .actions .bouton { width: 100%; }
  .recu .montant { font-size: clamp(56px, 17vw, 84px); }
  .recu-corps, .recu-tete, .recu-lignes { padding-inline: 20px; }
  .onglets { border-radius: 20px; }
}
