@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/figtree-latin.woff2) format("woff2");
  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";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/figtree-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --noir: #2B2D42;
  --fonce: #222435;
  --accent: #EF6F6C;
  --texte-accent: #1A1A1A;
  --encre: #111;
  --gris-1: #545454;
  --gris-2: #767676;
  --ligne: #e2e2e2;
  --fond-2: #f3f3f3;
  --fond: #fff;
  --vert: #0e8345;
  --vert-fond: #e6f4ec;
  --orange: #b25a00;
  --orange-fond: #fdf1e2;
  --rouge: #c0282d;
  --rouge-fond: #fcebeb;
  --rayon: 12px;
  --max: 1120px;
  --gouttiere: 20px;
  color-scheme: light;
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--encre);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid #276ef1; outline-offset: 2px; border-radius: 6px; }
[id] { scroll-margin-top: 88px; }

.conteneur { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gouttiere); }
@media (min-width: 768px) { :root { --gouttiere: 32px; } }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 10; background: var(--noir); color: #fff; }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; min-height: 44px; }
.marque svg { width: 28px; height: 28px; }
.entete nav { display: flex; gap: 4px; }
.entete nav a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 14px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; transition: background .15s; }
.entete nav a:hover { background: #333; }
.entete nav a[aria-current="page"] { background: #fff; color: #000; }
@media (max-width: 520px) { .entete nav a.optionnel { display: none; } }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 10px; border: 0;
  font: inherit; font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer;
  background: var(--noir); color: #fff; transition: background .15s, transform .1s;
}
.bouton:hover { background: #333; }
.bouton:active { transform: scale(.98); }
.bouton.clair { background: var(--fond-2); color: var(--noir); }
.bouton.clair:hover { background: #e2e2e2; }
.bouton[aria-disabled="true"] { background: #d6d6d6; color: #545454; cursor: not-allowed; }
.bouton svg { width: 20px; height: 20px; }

/* Accueil */
.heros { background: var(--noir); color: #fff; padding: 56px 0 72px; }
.heros h1 { font-size: clamp(34px, 6.2vw, 60px); line-height: 1.06; letter-spacing: -0.025em; margin: 0 0 20px; font-weight: 700; max-width: 16ch; text-wrap: balance; }
.heros p.chapeau { font-size: clamp(18px, 2.2vw, 21px); color: #cfcfcf; margin: 0 0 32px; max-width: 58ch; }
.formulaire { display: flex; gap: 10px; flex-wrap: wrap; max-width: 680px; }
.formulaire label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.formulaire input {
  flex: 1 1 280px; min-height: 56px; border-radius: 10px; border: 2px solid transparent; padding: 0 18px;
  font: inherit; font-size: 18px; background: #fff; color: #000; min-width: 0;
}
.formulaire input:focus { outline: none; border-color: #276ef1; }
.formulaire .bouton { background: #fff; color: #000; min-height: 56px; flex: 0 0 auto; }
.formulaire .bouton:hover { background: #e2e2e2; }
@media (max-width: 520px) { .formulaire .bouton { flex: 1 1 100%; } }
.heros .bouton[data-paiement] { background: #fff; color: #000; }
.heros .bouton[data-paiement]:hover { background: #e2e2e2; }
.heros .bouton[data-paiement][aria-disabled="true"] { background: #3a3a3a; color: #bdbdbd; }
.sous-formulaire { margin: 14px 0 0; font-size: 15px; color: #a6a6a6; }
.erreur-form { margin: 12px 0 0; color: #ffb4b4; font-size: 15px; min-height: 1em; }

.section { padding: 72px 0; }
.section.grise { background: var(--fond-2); }
.section h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; }
.section .intro { color: var(--gris-1); max-width: 62ch; margin: 0 0 40px; font-size: 18px; }
.grille { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.carte { background: var(--fond); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 24px; }
.section.grise .carte { border-color: transparent; }
.carte h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.carte p { margin: 0; color: var(--gris-1); font-size: 16px; }
.carte .num { font-size: 14px; font-weight: 700; color: var(--gris-2); margin-bottom: 12px; display: block; }

.etapes { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding: 0; margin: 0; }
.etapes li { list-style: none; }
.etape b { display: block; font-size: 19px; margin-bottom: 6px; }
.etape p { margin: 0; color: var(--gris-1); }
.etape .rond { width: 40px; height: 40px; border-radius: 50%; background: var(--noir); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 16px; }

.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; font-size: 18px; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--gris-1); max-width: 70ch; }

/* Résultats */
.res-tete { background: var(--noir); color: #fff; padding: 40px 0 48px; }
.res-tete .domaine { font-size: 15px; color: #a6a6a6; margin: 0 0 6px; word-break: break-all; }
.res-tete h1 { margin: 0; font-size: clamp(28px, 4.4vw, 44px); letter-spacing: -0.02em; line-height: 1.1; }
.score-bloc { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 28px; }
.jauge { position: relative; width: 148px; height: 148px; flex: 0 0 auto; }
.jauge svg { width: 148px; height: 148px; transform: rotate(-90deg); }
.jauge .valeur { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.jauge .valeur b { font-size: 48px; line-height: 1; letter-spacing: -0.03em; display: block; }
.jauge .valeur span { font-size: 14px; color: #a6a6a6; }
.jauge circle { fill: none; stroke-width: 12; }
.jauge .piste { stroke: #333; }
.jauge .arc { stroke-linecap: round; transition: stroke-dashoffset .9s cubic-bezier(.2,.7,.2,1); }
.niveau { font-size: 24px; font-weight: 700; margin: 0 0 6px; }
.niveau-texte { margin: 0; color: #cfcfcf; max-width: 52ch; }

.priorites { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.priorite { border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.priorite .gain { font-size: 14px; font-weight: 600; color: var(--vert); background: var(--vert-fond); align-self: flex-start; padding: 4px 10px; border-radius: 999px; }
.priorite h3 { margin: 0; font-size: 18px; }
.priorite p { margin: 0; color: var(--gris-1); font-size: 16px; }

.criteres { border-top: 1px solid var(--ligne); }
.critere { border-bottom: 1px solid var(--ligne); }
.critere summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 18px 0; min-height: 44px; }
.critere summary::-webkit-details-marker { display: none; }
.critere .titre { font-weight: 600; }
.critere .constat-court { display: block; font-weight: 400; color: var(--gris-1); font-size: 15px; margin-top: 2px; }
.critere .pts { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pastille { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.pastille svg { width: 16px; height: 16px; }
.pastille.ok { background: var(--vert-fond); color: var(--vert); }
.pastille.partiel { background: var(--orange-fond); color: var(--orange); }
.pastille.ko { background: var(--rouge-fond); color: var(--rouge); }
.critere .corps { padding: 0 0 22px 42px; display: grid; gap: 12px; }
.critere .corps p { margin: 0; max-width: 72ch; }
.critere .corps .etiquette { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gris-2); margin-bottom: 2px; }
.bots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.bots li { display: flex; justify-content: space-between; gap: 8px; background: var(--fond-2); border-radius: 8px; padding: 8px 12px; font-size: 15px; }
.bots .oui { color: var(--vert); font-weight: 600; }
.bots .non { color: var(--rouge); font-weight: 600; }
@media (max-width: 520px) { .critere .corps { padding-left: 0; } }

.offre { background: var(--noir); color: #fff; border-radius: 16px; padding: 32px; display: grid; gap: 20px; grid-template-columns: 1fr auto; align-items: center; }
.offre h2 { color: #fff; margin: 0 0 8px; }
.offre p { margin: 0; color: #cfcfcf; }
.offre .prix { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.offre .prix small { display: block; font-size: 13px; font-weight: 400; color: #a6a6a6; letter-spacing: 0; }
.offre .actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.offre .bouton { background: #fff; color: #000; }
.offre .bouton:hover { background: #e2e2e2; }
.offre .bouton[aria-disabled="true"] { background: #3a3a3a; color: #bdbdbd; }
.offre .lien-discret { color: #cfcfcf; font-size: 15px; text-align: center; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 760px) { .offre { grid-template-columns: 1fr; padding: 24px; } }

.renonce { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: inherit; opacity: .85; cursor: pointer; max-width: 460px; margin: 0 0 14px; min-height: 44px; }
.renonce input { width: 22px; height: 22px; flex: 0 0 auto; margin: 0; accent-color: #276ef1; }
.renonce.a-cocher { opacity: 1; outline: 2px solid #f5a524; outline-offset: 6px; border-radius: 6px; }
.chargement { padding: 72px 0; }
.chargement ol { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; max-width: 520px; }
.chargement li { display: flex; gap: 12px; align-items: center; color: var(--gris-2); transition: color .3s; }
.chargement li.fait { color: var(--encre); }
.chargement li .point { width: 10px; height: 10px; border-radius: 50%; background: var(--ligne); flex: 0 0 auto; transition: background .3s; }
.chargement li.fait .point { background: var(--noir); }
.barre { height: 4px; background: var(--ligne); border-radius: 4px; overflow: hidden; max-width: 520px; margin-top: 8px; }
.barre i { display: block; height: 100%; width: 30%; background: var(--noir); border-radius: 4px; animation: glisse 1.2s ease-in-out infinite; }
@keyframes glisse { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }

.encart { background: var(--fond-2); border-radius: var(--rayon); padding: 20px 22px; color: var(--gris-1); font-size: 15px; }

/* Texte long (mentions, confidentialité, rapport) */
.prose { max-width: 72ch; }
.prose h1 { font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 24px; }
.prose h2 { font-size: 22px; margin: 40px 0 10px; letter-spacing: -0.01em; }
.prose p, .prose li { color: #333; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }

.liste-rapport { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.liste-rapport li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.liste-rapport li b { display: block; }
.liste-rapport li span { color: var(--gris-1); }
.liste-rapport .coche { width: 28px; height: 28px; border-radius: 50%; background: var(--noir); color: #fff; display: grid; place-items: center; }
.liste-rapport .coche svg { width: 14px; height: 14px; }

/* Pied */
.pied { border-top: 1px solid var(--ligne); padding: 32px 0 40px; font-size: 15px; color: var(--gris-1); }
.pied .conteneur { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.pied nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.pied a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 6px; }
.pied a:hover { text-decoration: underline; }

/* Apparition douce */
.apparait { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.apparait.vu { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .apparait { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}


/* ===== Marque blanche : couleurs de l'agence (ajouté par outils/construire.mjs) ===== */
.bandeau-demo { background: #fdf1e2; color: #6b3a00; text-align: center; font-size: 14px; padding: 8px 16px; }
.marque span { overflow-wrap: anywhere; }
.entete nav a:hover { background: rgba(255,255,255,.14); }
.entete nav a[aria-current="page"] { background: #fff; color: var(--noir); }
.bouton:hover { background: var(--fonce); }
.bouton.clair:hover { background: #e2e2e2; }
.formulaire .bouton, .offre .bouton, .heros .bouton { background: var(--accent); color: var(--texte-accent); }
.formulaire .bouton:hover, .offre .bouton:hover, .heros .bouton:hover { background: var(--accent); filter: brightness(.93); }
.heros .bouton.clair, .offre .bouton.clair { background: rgba(255,255,255,.12); color: #fff; }
.heros .bouton.clair:hover, .offre .bouton.clair:hover { background: rgba(255,255,255,.2); filter: none; }
.heros p.chapeau, .niveau-texte, .offre p { color: rgba(255,255,255,.84); }
.sous-formulaire, .res-tete .domaine, .jauge .valeur span, .offre .prix small { color: rgba(255,255,255,.72); }
.offre .lien-discret { color: rgba(255,255,255,.84); }
.jauge .piste { stroke: rgba(255,255,255,.18); }
.formulaire input:focus { border-color: var(--accent); }
.actions-agence { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
.bande-agence { border-top: 1px solid var(--ligne); }
@media (max-width: 520px) { .actions-agence .bouton { flex: 1 1 100%; } }

/* Présentation imprimable (kit de vente) */
.a4 { max-width: 800px; margin: 0 auto; padding: 40px 20px 56px; }
.a4-tete { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 22px; }
.a4-tete svg { width: 40px; height: 40px; }
.a4-sur { margin: 40px 0 8px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--noir); }
.a4 h1 { font-size: clamp(28px, 4.6vw, 42px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; }
.a4-chapeau { font-size: 19px; color: var(--gris-1); margin: 0 0 32px; }
.a4-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.a4-colonnes > div { border: 1px solid var(--ligne); border-top: 4px solid var(--noir); border-radius: var(--rayon); padding: 20px 22px; }
.a4-colonnes h2 { font-size: 20px; margin: 0 0 8px; }
.a4-colonnes ul { margin: 0; padding-left: 20px; color: var(--gris-1); }
.a4-essai { margin: 28px 0; background: var(--noir); color: #fff; border-radius: var(--rayon); padding: 22px 24px; font-size: 20px; overflow-wrap: anywhere; }
.a4-essai span { font-weight: 700; color: var(--accent); }
.a4-pied { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; border-top: 2px solid var(--noir); padding-top: 14px; color: var(--gris-1); overflow-wrap: anywhere; }
.a4-pied b { color: var(--encre); }
.a4-imprimer { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
@page { size: A4; margin: 14mm; }
@media print {
  .bandeau-demo, .a4-imprimer { display: none !important; }
  .a4 { padding: 0; max-width: none; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
