/* Bartali Courtage — feuille de style commune (mobile d'abord).
   Identité : bordeaux, ivoire, terracotta, champagne (logo d'origine).
   Contrastes vérifiés WCAG AA — voir docs/design/palette.md. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --bx: #4B2338;
  --bx-800: #3A1A2B;
  --bx-900: #2E1422;
  --ivoire: #F6F2EC;
  --creme: #FBF8F3;
  --blanc: #FFFFFF;
  --tc: #C98374;          /* terracotta décoratif uniquement */
  --tc-btn: #A0503F;      /* boutons : blanc 5,65:1 */
  --tc-btn-hover: #8C4334;
  --tc-text: #9A4B3B;     /* texte d'accent : 5,47:1 sur ivoire */
  --champ: #D8C39A;
  --champ-clair: #EFE4CF;
  --muted: #665060;       /* texte secondaire : 6,54:1 */
  --ligne: #E6DACB;
  --wa: #1E7A46;          /* WhatsApp accessible : 5,35:1 */
  --ok: #1E6B45;
  --erreur: #A3261B;
  --rayon: 14px;
  --rayon-s: 10px;
  --ombre: 0 1px 2px rgba(46, 20, 34, .06), 0 8px 24px rgba(46, 20, 34, .07);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --largeur: 1160px;
  --gouttiere: 20px;
  --barre-mobile: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--bx);
  background: var(--ivoire);
  padding-bottom: var(--barre-mobile);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--bx); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--tc-text); }
:focus-visible { outline: 3px solid var(--tc); outline-offset: 2px; border-radius: 4px; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: .35em; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6.4vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 4.4vw, 2.3rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; letter-spacing: 0; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lien-evitement { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--bx); color: #fff; padding: 10px 16px; border-radius: 8px; }
.lien-evitement:focus { left: 8px; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }
.conteneur-etroit { max-width: 780px; }
.section { padding: 56px 0; }
.section-blanche { background: var(--blanc); border-block: 1px solid var(--ligne); }
.section-creme { background: var(--creme); }
.section-bx { background: var(--bx); color: var(--ivoire); }
.section-bx h2, .section-bx h3, .section-bx a:not(.btn) { color: var(--ivoire); }
.surtitre { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tc-text); margin-bottom: .7em; }
.section-bx .surtitre { color: var(--champ); }
.chapeau { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.section-bx .chapeau { color: var(--champ-clair); }
.centre { text-align: center; }
.centre .chapeau { margin-inline: auto; }
.petit { font-size: .88rem; }
.discret { color: var(--muted); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.3em; border-radius: 999px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-principal { background: var(--tc-btn); color: #fff; }
.btn-principal:hover { background: var(--tc-btn-hover); color: #fff; }
.btn-secondaire { background: transparent; color: var(--bx); border-color: var(--bx); }
.btn-secondaire:hover { background: var(--bx); color: #fff; }
.btn-clair { background: var(--ivoire); color: var(--bx); }
.btn-clair:hover { background: #fff; color: var(--bx); }
.btn-contour-clair { color: var(--ivoire); border-color: var(--champ); background: transparent; }
.btn-contour-clair:hover { background: var(--ivoire); color: var(--bx); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #17633a; color: #fff; }
.btn-bloc { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.actions-pile { display: grid; gap: 10px; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 40; background: rgba(246, 242, 236, .96); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--ligne); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bx); }
.marque img { width: 38px; height: 38px; }
.marque-nom { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; line-height: 1.1; }
.marque-nom small { display: block; font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav-principale { display: none; }
.nav-principale a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 2px; border-bottom: 2px solid transparent; }
.nav-principale a[aria-current="page"] { border-bottom-color: var(--tc); }
.entete-actions { display: flex; align-items: center; gap: 8px; }
.entete-actions .btn { min-height: 42px; padding: .5em 1em; font-size: .92rem; }
.entete-tel { display: none; }
.bouton-menu { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 0; background: transparent; color: var(--bx); border-radius: 10px; cursor: pointer; }
.bouton-menu svg { width: 26px; height: 26px; }
.menu-mobile { position: fixed; inset: 0; z-index: 60; background: var(--bx); color: var(--ivoire); padding: 18px var(--gouttiere) 32px; overflow-y: auto; }
.menu-mobile[hidden] { display: none; }
.menu-mobile-tete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.menu-mobile-tete .bouton-menu { color: var(--ivoire); }
.menu-mobile nav a { display: block; color: var(--ivoire); text-decoration: none; font-family: var(--serif); font-size: 1.4rem; padding: 10px 0; border-bottom: 1px solid rgba(216, 195, 154, .25); }
.menu-mobile .actions-pile { margin-top: 24px; }

@media (min-width: 980px) {
  body { padding-bottom: 0; }
  .nav-principale { display: flex; gap: 16px; }
  .bouton-menu { display: none; }
  .entete-tel { display: inline-flex; }
}

/* ---------- Barre d'actions mobile ---------- */
.barre-mobile { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--ligne); box-shadow: 0 -4px 18px rgba(46, 20, 34, .08); }
.barre-mobile a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: 12px; text-decoration: none; font-size: .8rem; font-weight: 700; }
.barre-mobile svg { width: 20px; height: 20px; }
.barre-mobile .bm-tel { color: var(--bx); border: 1.5px solid var(--bx); }
.barre-mobile .bm-wa { background: var(--wa); color: #fff; }
.barre-mobile .bm-rdv { background: var(--tc-btn); color: #fff; }
@media (min-width: 980px) { .barre-mobile { display: none; } }

/* ---------- Héros ---------- */
.heros { padding: 28px 0 40px; }
.heros-grille { display: grid; gap: 26px; align-items: center; }
.heros-identite { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.heros-identite img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--champ); }
.heros-identite p { margin: 0; font-size: .92rem; line-height: 1.35; }
.heros-identite strong { display: block; font-size: 1rem; }
.heros h1 { margin-bottom: .35em; }
.heros h1 em { font-style: italic; color: var(--tc-text); }
.heros .chapeau { font-size: 1.12rem; }
.heros .actions .btn { flex: 1 1 220px; }
.heros-portrait { display: none; }
.preuves { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: .9rem; color: var(--muted); }
.preuves li { display: flex; align-items: center; gap: 6px; margin: 0; }
.preuves svg { width: 18px; height: 18px; color: var(--tc-text); flex: none; }
@media (min-width: 900px) {
  .heros { padding: 64px 0 72px; }
  .heros-grille { grid-template-columns: 1.25fr .75fr; gap: 56px; }
  .heros-identite img { display: none; }
  .heros-identite { margin-bottom: 10px; }
  .heros-portrait { display: block; position: relative; }
  .heros-portrait img { width: 100%; max-width: 400px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px 24px 24px; box-shadow: var(--ombre); margin-left: auto; }
  .heros-portrait figcaption { position: absolute; left: -8px; bottom: 24px; background: var(--blanc); padding: 12px 16px; border-radius: 12px; box-shadow: var(--ombre); font-size: .85rem; line-height: 1.35; max-width: 240px; }
}

/* ---------- Grilles & cartes ---------- */
.grille { display: grid; gap: 16px; }
.grille > * { min-width: 0; }
@media (min-width: 640px) { .grille-2 { grid-template-columns: repeat(2, 1fr); } .grille-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grille-3 { grid-template-columns: repeat(3, 1fr); } .grille-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 979px) { .grille-4 { grid-template-columns: repeat(2, 1fr); } }
.carte { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 22px; }
.carte h3 { margin-bottom: .35em; }
.carte p:last-child { margin-bottom: 0; }
.carte-lien { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.carte-lien:hover { border-color: var(--tc); box-shadow: var(--ombre); transform: translateY(-2px); color: inherit; }
.carte-lien .suite { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--tc-text); }
.carte-icone { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--champ-clair); color: var(--bx); margin-bottom: 14px; }
.carte-icone svg { width: 24px; height: 24px; }
.carte-outil { border-width: 2px; }
.carte-outil.mise-en-avant { border-color: var(--tc); }

/* ---------- Étapes ---------- */
.etapes { counter-reset: etape; list-style: none; padding: 0; display: grid; gap: 14px; }
@media (min-width: 900px) { .etapes { grid-template-columns: repeat(4, 1fr); } }
.etapes li { counter-increment: etape; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 20px; margin: 0; }
.etapes li::before { content: counter(etape, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--tc-text); margin-bottom: 6px; }
.etapes h3 { font-size: 1.08rem; }
.etapes p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- Citation / avis ---------- */
.citation { font-family: var(--serif); font-size: clamp(1.3rem, 3.4vw, 1.8rem); line-height: 1.35; font-style: italic; margin: 0; }
.avis { display: flex; flex-direction: column; }
.avis blockquote { margin: 0 0 14px; font-size: 1rem; }
.avis-etoiles { color: var(--tc-text); letter-spacing: 2px; margin-bottom: 8px; }
.avis footer { margin-top: auto; font-size: .88rem; color: var(--muted); }
.avis footer strong { color: var(--bx); }

/* ---------- Bloc agence / zone ---------- */
.villes { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 16px 0 0; }
.villes li { margin: 0; }
.villes a, .villes span { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--blanc); border: 1px solid var(--ligne); text-decoration: none; font-weight: 600; font-size: .92rem; }
.villes a:hover { border-color: var(--tc); }

/* ---------- FAQ ---------- */
.faq details { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon-s); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--tc-text); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 16px; color: var(--muted); }

/* ---------- Fil d'Ariane ---------- */
.ariane { font-size: .85rem; color: var(--muted); padding-top: 18px; }
.ariane ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ariane li { margin: 0; }
.ariane li + li::before { content: "›"; margin-right: 6px; }

/* ---------- Page intérieure ---------- */
.page-tete { padding-top: 26px; padding-bottom: 34px; }
.page-tete h1 { font-size: clamp(1.9rem, 5.6vw, 2.8rem); }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.35rem, 3.6vw, 1.8rem); }
.prose h3 { margin-top: 1.3em; }
.encadre { background: var(--champ-clair); border-radius: var(--rayon); padding: 18px 20px; margin: 1.4em 0; }
.encadre p:last-child { margin: 0; }
.encadre-alerte { background: #FBEDEA; border-left: 4px solid var(--tc-btn); }
.tableau { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1em 0; background: var(--blanc); }
.tableau th, .tableau td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.tableau th { background: var(--creme); }
.defile-x { overflow-x: auto; }

/* ---------- CTA final ---------- */
.cta-final { text-align: center; }
.cta-final .actions { justify-content: center; }

/* ---------- Formulaires ---------- */
.formulaire { display: grid; gap: 16px; }
.champ { display: grid; gap: 6px; }
.champ label, .champ legend { font-weight: 700; font-size: .95rem; }
.champ .aide { font-size: .85rem; color: var(--muted); }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: 400 1rem var(--sans); color: var(--bx);
  background: var(--blanc); border: 1.5px solid #CDBBA8; border-radius: var(--rayon-s);
}
.champ textarea { min-height: 110px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--bx); box-shadow: 0 0 0 3px rgba(201, 131, 116, .35); }
.champ [aria-invalid="true"] { border-color: var(--erreur); }
.champ-erreur { color: var(--erreur); font-size: .88rem; font-weight: 600; }
.champ-erreur:empty { display: none; }
.deux-col { display: grid; gap: 16px; }
@media (min-width: 640px) { .deux-col { grid-template-columns: 1fr 1fr; } }
.case { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.case input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--tc-btn); }
.pot-de-miel { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.choix { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; }
@media (min-width: 640px) { .choix-2 { grid-template-columns: 1fr 1fr; } }
.choix label { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 56px; background: var(--blanc); border: 1.5px solid var(--ligne); border-radius: var(--rayon-s); cursor: pointer; font-weight: 600; }
.choix label:hover { border-color: var(--tc); }
.choix input { width: 20px; height: 20px; accent-color: var(--tc-btn); flex: none; }
.choix input:checked + span { color: var(--tc-text); }
.choix label:has(input:checked) { border-color: var(--tc-btn); background: #FDF6F3; }
.message-statut { padding: 16px 18px; border-radius: var(--rayon-s); font-weight: 600; }
.message-statut[hidden] { display: none; }
.message-ok { background: #E8F3EC; color: var(--ok); }
.message-ko { background: #FBEDEA; color: var(--erreur); }
.mention-form { font-size: .82rem; color: var(--muted); }

/* ---------- Diagnostic (étapes) ---------- */
.diag { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 18px; padding: 22px; box-shadow: var(--ombre); }
.diag-progression { height: 6px; background: var(--ligne); border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.diag-progression span { display: block; height: 100%; background: var(--tc-btn); width: 0; transition: width .25s; }
.diag-etape-num { font-size: .82rem; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.diag fieldset { border: 0; padding: 0; margin: 0; }
.diag legend { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin-bottom: 14px; padding: 0; }
.diag-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.diag-nav .btn { flex: 1; }
.diag-resultat h2 { font-size: 1.5rem; }

/* ---------- Simulateur ---------- */
.onglets { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 18px; }
.onglets button { flex: none; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ligne); background: var(--blanc); font: 600 .95rem var(--sans); color: var(--bx); cursor: pointer; }
.onglets button[aria-selected="true"] { background: var(--bx); color: #fff; border-color: var(--bx); }
.sim-grille { display: grid; gap: 20px; }
@media (min-width: 900px) { .sim-grille { grid-template-columns: 1fr 1fr; align-items: start; } }
.sim-resultat { background: var(--bx); color: var(--ivoire); border-radius: 18px; padding: 22px; position: sticky; top: 84px; }
.sim-resultat h3, .sim-resultat .sim-titre { color: var(--champ); font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.sim-chiffre { font-family: var(--serif); font-size: clamp(2rem, 7vw, 2.7rem); line-height: 1.1; margin: 4px 0 14px; color: #fff; }
.sim-lignes { list-style: none; padding: 0; margin: 0 0 14px; }
.sim-lignes li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(216, 195, 154, .25); margin: 0; font-size: .95rem; }
.sim-lignes strong { color: #fff; white-space: nowrap; }
.sim-resultat .petit { color: var(--champ-clair); }
.sim-alerte { background: rgba(255, 255, 255, .1); border-radius: 10px; padding: 10px 12px; font-size: .9rem; margin-bottom: 14px; }
.sim-alerte:empty { display: none; }
.hypotheses { font-size: .88rem; color: var(--muted); }
.hypotheses summary { cursor: pointer; font-weight: 700; color: var(--bx); }
.repere-taux { display: grid; gap: 10px; }
@media (min-width: 640px) { .repere-taux { grid-template-columns: repeat(3, 1fr); } }
.repere-taux div { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon-s); padding: 14px; }
.repere-taux strong { display: block; font-family: var(--serif); font-size: 1.5rem; }
.repere-taux span { font-size: .85rem; color: var(--muted); }

/* ---------- Bandeau légal & pied de page ---------- */
.bandeau-legal { background: var(--bx-900); color: #E9DCCB; font-size: .78rem; line-height: 1.5; padding: 12px 0; }
.bandeau-legal a { color: #fff; }
.bandeau-legal p { margin: 0; }
.pied { background: var(--bx); color: var(--ivoire); padding: 44px 0 30px; font-size: .95rem; }
.pied a { color: var(--ivoire); text-decoration: none; }
.pied a:hover { text-decoration: underline; color: #fff; }
.pied-grille { display: grid; gap: 28px; }
@media (min-width: 760px) { .pied-grille { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.pied h2 { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--champ); margin-bottom: 12px; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 8px; }
.pied-bas { border-top: 1px solid rgba(216, 195, 154, .25); margin-top: 30px; padding-top: 18px; font-size: .85rem; color: #E9DCCB; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* ---------- Divers ---------- */
.icone-inline { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -.18em; }
.pastille { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--champ-clair); font-size: .8rem; font-weight: 700; }
.liste-coches { list-style: none; padding: 0; }
.liste-coches li { position: relative; padding-left: 30px; }
.liste-coches li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--champ-clair) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A4B3B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.js .apparition { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.js .apparition.visible { opacity: 1; transform: none; }
@media print { .entete, .barre-mobile, .menu-mobile, .cta-final { display: none !important; } body { padding: 0; background: #fff; } }

/* ---------- Ajustements petits écrans ---------- */
.entete-actions .btn { white-space: nowrap; }
@media (max-width: 599px) {
  .marque-nom small { display: none; }
  .marque-nom { font-size: 1.1rem; }
  .entete-actions .btn-principal span { display: none; }
  .entete-actions .btn-principal { width: 44px; padding: 0; }
}

/* ---------- En-tête : jamais de libellé coupé ---------- */
.nav-principale a, .marque-nom, .entete-actions .btn { white-space: nowrap; }
@media (min-width: 980px) and (max-width: 1279px) {
  .marque-nom small, .entete-tel { display: none; }
  .nav-principale { gap: 16px; }
}
@media (min-width: 1280px) { .marque-nom small { display: block; } }
/* Le logo mène déjà à l'accueil : le lien « Accueil » reste dans le menu mobile seulement. */
.marque { flex-shrink: 0; }
@media (min-width: 980px) { .nav-principale a[href="/"] { display: none; } }

/* === Outils de conversion (checklist) === */
.checklist-zone { padding-bottom: 56px; display: grid; gap: 24px; }
.checklist-questions { display: grid; gap: 22px; }
.checklist-question { border: 0; padding: 0; margin: 0; min-width: 0; }
.checklist-co { margin-top: 14px; }
.checklist-note { margin: 0; }
.checklist-resultat { box-shadow: var(--ombre); scroll-margin-top: 84px; }
.checklist-resultat:focus { outline: none; }
.checklist-titre { font-size: 1.5rem; margin-bottom: .2em; }
.checklist-compteur { font-weight: 700; color: var(--tc-text); margin-bottom: 8px; position: sticky; top: 64px; z-index: 2; background: var(--blanc); padding: 6px 0; }
.checklist-barre { display: block; width: 100%; height: 8px; margin-bottom: 18px; border: 0; border-radius: 99px; background: var(--ligne); overflow: hidden; -webkit-appearance: none; appearance: none; color: var(--tc-btn); }
.checklist-barre::-webkit-progress-bar { background: var(--ligne); border-radius: 99px; }
.checklist-barre::-webkit-progress-value { background: var(--tc-btn); border-radius: 99px; }
.checklist-barre::-moz-progress-bar { background: var(--tc-btn); border-radius: 99px; }
.checklist-groupe h3 { font-size: 1.08rem; margin: 18px 0 8px; }
.checklist-pieces { list-style: none; padding: 0; margin: 0; }
.checklist-pieces li { margin: 0; border-top: 1px solid var(--ligne); }
.checklist-piece { padding: 12px 4px; min-height: 48px; font-size: .97rem; cursor: pointer; }
.checklist-piece:hover { background: var(--creme); }
.checklist-piece input:checked ~ span .checklist-libelle { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.checklist-detail { display: block; font-size: .85rem; color: var(--muted); }
.checklist-si { margin-left: 8px; font-size: .72rem; padding: 2px 8px; vertical-align: .1em; }
.checklist-actions .btn { flex: 1 1 auto; }
.checklist-imprime-seul { display: none; }
.checklist-sources { font-size: .9rem; }
.checklist-sources li { margin-bottom: .6em; }
@media print {
  html:has(#checklist-outil) .ariane,
  html:has(#checklist-outil) .page-tete,
  html:has(#checklist-outil) .checklist-questions,
  html:has(#checklist-outil) .checklist-actions,
  html:has(#checklist-outil) #envoyer-checklist,
  html:has(#checklist-outil) .section-blanche,
  html:has(#checklist-outil) .pied,
  html:has(#checklist-outil) .lien-evitement { display: none !important; }
  html:has(#checklist-outil) .bandeau-legal { background: #fff; color: #000; padding: 8px 0; font-size: 8pt; }
  html:has(#checklist-outil) .bandeau-legal a { color: #000; }
  .checklist-imprime-seul { display: block; border-bottom: 1px solid #000; margin-bottom: 10px; }
  .checklist-zone { padding: 0; }
  .checklist-resultat { border: 0; box-shadow: none; padding: 0; }
  .checklist-barre { display: none; }
  .checklist-compteur { position: static; }
  .checklist-groupe { break-inside: avoid; }
  .checklist-piece { padding: 5px 0; min-height: 0; }
  .checklist-piece input:checked ~ span .checklist-libelle { text-decoration: none; color: #000; }
}
/* === fin outils de conversion === */

/* === Repères et actualités (veille automatique) === */
.repere { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 639px) { .repere { padding: 16px 18px; } .repere-valeur { font-size: 1.8rem; } }
.repere-libelle { font-family: var(--sans); font-size: .95rem; font-weight: 700; color: var(--muted); margin: 0; }
.repere-valeur { font-family: var(--serif); font-size: 2.1rem; line-height: 1.1; color: var(--bx); margin: 4px 0; font-variant-numeric: tabular-nums; }
.repere-detail { font-size: .9rem; margin: 0; }
.repere-source { font-size: .85rem; color: var(--muted); margin-top: auto; padding-top: 8px; }
.reperes-avertissement { margin-top: 10px; }
.reperes-bas { margin-top: 26px; gap: 28px; }
.reperes-titre { font-size: 1.1rem; margin: 18px 0 8px; }
.actus { list-style: none; padding: 0; margin: 0; }
.actus li { padding: 10px 0; border-bottom: 1px solid var(--ligne); }
.actus time { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--tc-text); }
.actu-source { display: block; font-size: .82rem; color: var(--muted); }
.lien-fleche { font-weight: 700; }
.lien-fleche::after { content: " →"; }
.reperes-graphique { width: 100%; max-width: 560px; height: auto; color: var(--bx); margin: 8px 0 16px; }
/* === fin repères et actualités === */

/* === Prochaine étape === */
.prochaine-etape { border-left: 4px solid var(--tc); margin-top: 2em; }
.prochaine-etape-titre { font-family: var(--serif); font-size: 1.15rem; color: var(--bx); margin-bottom: .3em; }
.prochaine-etape .actions { margin-top: 14px; }
@media (max-width: 639px) { .prochaine-etape .btn { width: 100%; justify-content: center; } }
/* === fin prochaine étape === */

/* === Guides & actualités (centre de ressources) === */
.ressources-filtres { padding-top: 4px; padding-bottom: 20px; }
.ressources-filtres ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.ressources-filtres a { display: inline-block; white-space: nowrap; padding: 9px 14px; min-height: 44px; border: 1px solid var(--ligne); border-radius: 999px; background: var(--blanc); text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--bx); }
@media (min-width: 768px) { .ressources-filtres ul { flex-wrap: wrap; overflow-x: visible; } }
.ressources-filtres a:hover,.ressources-filtres a:focus-visible { border-color: var(--tc); }
.ressources-grille { margin-top: 18px; }
.ressource { gap: 6px; }
.ressource-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ressource-cat { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tc-text); }
.ressource-nouveau { font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--champ-clair); color: var(--bx); }
.ressource-titre { font-size: 1.15rem; margin: 2px 0 4px; }
.ressource p { margin: 0; color: var(--muted); font-size: .95rem; }
.ressource-date { margin-top: auto; padding-top: 10px; font-size: .84rem; color: var(--muted); }
[id^="theme-"], #actualites, #outils { scroll-margin-top: 90px; }
/* === fin guides & actualités === */
/* En-tête : 7 entrées de menu + téléphone tiennent sans débordement de 980 à 1920 px (vérifié le 14/10/2026). */
@media (min-width: 1280px) { .nav-principale { gap: 14px; } .entete-actions { gap: 8px; } }
.ressources-grille + p { margin-top: 24px; }

/* ---------- Appels à l'action automatiques (src/data/appels-action.json) ---------- */
.encart-action { margin: 1.6em 0; padding: 12px 16px; border: 1px solid var(--ligne); border-left: 3px solid var(--tc); border-radius: var(--rayon); background: var(--blanc); }
.encart-action p { margin: 0; }
.encart-action .lien-fleche { white-space: nowrap; font-weight: 600; }
.prochaine-etape-rdv { margin-top: 12px; font-size: .95rem; }
.prochaine-etape-rdv a { font-weight: 600; }
