/* Mise en page : une colonne éditoriale sur fond papier, une bande encre pour l'exemple de rapport, le point rouge comme seul signal. */
:root {
  --papier: #F6F3EC;
  --surface: #FFFFFF;
  --encre: #16233F;
  --ardoise: #5B6475;
  --filet: #D9D4C7;
  --rouge: #C2483A;
  --rouge-texte: #A63A2E;
  --bande: #16233F;
  --bande-texte: #F6F3EC;
  --bande-doux: #B9C2D4;
  --bande-surface: #1F2F52;
  --point-bande: #E0644F;
  --todo-fond: #FBE7C6;
  --todo-texte: #6B4A12;
  --titre: "Fraunces", Georgia, "Times New Roman", serif;
  --texte: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --largeur: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papier: #10192E; --surface: #17233F; --encre: #F1EDE4; --ardoise: #AEB7C9; --filet: #2A3A5E;
    --rouge: #E0644F; --rouge-texte: #F08A76; --bande: #0B1222; --bande-texte: #F1EDE4; --bande-doux: #AEB7C9;
    --bande-surface: #17233F; --point-bande: #E0644F; --todo-fond: #4A3713; --todo-texte: #F8DFA8; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --papier: #10192E; --surface: #17233F; --encre: #F1EDE4; --ardoise: #AEB7C9; --filet: #2A3A5E;
  --rouge: #E0644F; --rouge-texte: #F08A76; --bande: #0B1222; --bande-texte: #F1EDE4; --bande-doux: #AEB7C9;
  --bande-surface: #17233F; --point-bande: #E0644F; --todo-fond: #4A3713; --todo-texte: #F8DFA8; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--papier); color: var(--encre);
  font-family: var(--texte); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--rouge-texte); }
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--titre); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap {
  max-width: var(--largeur); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ardoise); }
.todo { background: var(--todo-fond); color: var(--todo-texte); padding: 1px 6px; border-radius: 4px; font-weight: 700; font-size: 0.92em; overflow-wrap: anywhere; }

/* En-tête */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--papier); border-bottom: 1px solid transparent; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--papier); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo span { font-family: var(--titre); font-weight: 600; font-size: 30px; line-height: 1; }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 700; font-size: 15px; }
.nav a { text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: 999px; background: var(--rouge); color: #FFFFFF; font-weight: 800; font-size: 16px; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { color: #FFFFFF; background: var(--rouge-texte); transform: translateY(-1px); }
.btn.petit { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn.clair { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 2px var(--encre); }
.btn.clair:hover { color: var(--encre); background: var(--surface); }
@media (max-width: 760px) { .nav .lien { display: none; } }

/* Ouverture */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; padding-block: 56px 72px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); }
.hero h1 .rouge { color: var(--rouge); }
.hero .chapo { font-size: 20px; color: var(--ardoise); margin-top: 22px; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ias { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; font-size: 14px; font-weight: 700; color: var(--ardoise); }
.ias span { display: inline-flex; align-items: center; gap: 8px; }
.ias span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--filet); }

.conv { background: var(--surface); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 1px 2px rgba(22,35,63,.06), 0 18px 40px -24px rgba(22,35,63,.35); }
.conv .q { align-self: flex-end; max-width: 88%; background: var(--papier); border-radius: 16px 16px 4px 16px; padding: 12px 16px; font-weight: 500; }
.conv .r { display: flex; flex-direction: column; gap: 10px; font-size: 15.5px; }
.conv .r .src { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ardoise); }
.conv ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.conv li { display: flex; align-items: baseline; gap: 10px; padding: 10px 12px; border-radius: 10px; }
.conv li b { font-weight: 800; }
.conv li .rg { font-variant-numeric: tabular-nums; color: var(--ardoise); font-weight: 700; width: 1.2em; flex: none; }
.conv li.vous { background: var(--papier); box-shadow: inset 0 0 0 1.5px var(--filet); }
.conv li.vous .etat { margin-left: auto; font-size: 13px; font-weight: 800; color: var(--rouge-texte); white-space: nowrap; }
.conv .note { font-size: 13px; color: var(--ardoise); }

/* Bandeau email */
.recu { border-block: 1px solid var(--filet); }
.recu .wrap { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 40px; padding-block: 40px; align-items: start; }
.recu h2 { font-size: 28px; }
.recu .txt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; color: var(--ardoise); }
.recu .txt strong { color: var(--encre); display: block; margin-bottom: 4px; }

/* Sections génériques */
.sec .wrap { padding-block: 88px; }
.sec-tete { display: flex; flex-direction: column; gap: 14px; max-width: 40em; margin-bottom: 48px; }
.sec-tete h2 { font-size: clamp(32px, 4.2vw, 46px); }
.sec-tete p { color: var(--ardoise); font-size: 18px; }

.etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: e; }
.etape { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--encre); padding-top: 22px; }
.etape .n { font-family: var(--titre); font-size: 20px; color: var(--rouge-texte); }
.etape h3 { font-size: 24px; }
.etape p { color: var(--ardoise); }
.etape .chiffre { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--encre); }

/* Exemple de rapport */
.rapport { background: var(--bande); color: var(--bande-texte); }
.rapport .sec-tete p, .rapport .eyebrow { color: var(--bande-doux); }
.rapport .wrap { padding-block: 88px; }
.fiche { background: var(--bande-surface); border-radius: 20px; padding: 32px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; }
.fiche h3 { font-size: 24px; }
.fiche .meta { font-size: 14px; color: var(--bande-doux); margin-top: 6px; }
.badge-ex { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--bande); background: var(--bande-doux); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.tableau { overflow-x: auto; margin-top: 24px; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; min-width: 520px; }
th { text-align: right; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--bande-doux); font-weight: 800; padding: 0 8px 10px; }
th:first-child, td:first-child { text-align: left; padding-left: 0; }
td { text-align: right; padding: 12px 8px; border-top: 1px solid rgba(185,194,212,.18); }
td.tot { font-weight: 800; }
tr.vous td { color: #FFFFFF; }
tr.vous td:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--point-bande); margin-right: 8px; vertical-align: middle; }
.barre { display: block; height: 6px; border-radius: 3px; background: rgba(185,194,212,.18); margin-top: 6px; overflow: hidden; }
.barre i { display: block; height: 100%; background: var(--bande-doux); border-radius: 3px; }
tr.vous .barre i { background: var(--point-bande); }
.pourquoi { display: flex; flex-direction: column; gap: 18px; }
.pourquoi ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.pourquoi li { padding-left: 18px; position: relative; color: var(--bande-doux); }
.pourquoi li::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--bande-doux); }
.pourquoi li strong { color: var(--bande-texte); }
.pourquoi .plan { border-top: 1px solid rgba(185,194,212,.25); padding-top: 18px; }
.pourquoi .plan li::before { background: var(--point-bande); }
.legende { font-size: 13px; color: var(--bande-doux); margin-top: 18px; }

/* Méthode / engagements */
.engag { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.engag div { background: var(--surface); border-radius: 16px; padding: 26px 28px; display: flex; flex-direction: column; gap: 8px; }
.engag h3 { font-size: 21px; }
.engag p { color: var(--ardoise); font-size: 16px; }

/* Tarifs */
.offres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.offre { background: var(--surface); border-radius: 18px; padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: inset 0 0 0 1px var(--filet); }
.offre.phare { box-shadow: inset 0 0 0 2px var(--encre); }
.offre h3 { font-size: 22px; }
.prix { font-family: var(--titre); font-size: 40px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.prix small { font-family: var(--texte); font-size: 15px; font-weight: 700; color: var(--ardoise); }
.offre .pour { font-size: 15px; color: var(--ardoise); min-height: 3em; }
.offre ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 15px; flex-grow: 1; }
.offre li { padding-left: 22px; position: relative; }
.offre li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--encre); }
.offre.phare li::before { background: var(--rouge); }
.offre .btn { margin-top: 8px; }
.tarifs-note { margin-top: 22px; font-size: 14px; color: var(--ardoise); }

/* FAQ */
.faq { display: flex; flex-direction: column; max-width: 52em; }
.faq details { border-top: 1px solid var(--filet); }
.faq details:last-child { border-bottom: 1px solid var(--filet); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 800; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--titre); font-size: 28px; color: var(--rouge-texte); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: var(--ardoise); max-width: 44em; }

/* Contact */
.contact .boite { background: var(--surface); border-radius: 24px; padding: 48px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.contact h2 { font-size: clamp(30px, 4vw, 42px); }
.contact p { color: var(--ardoise); margin-top: 14px; }
.contact .canaux { display: flex; flex-direction: column; gap: 14px; }
.contact .canal { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; border-radius: 14px; background: var(--papier); }
.contact .canal span { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ardoise); }
.contact .canal b { font-size: 18px; word-break: break-word; }

/* Pied */
.pied { border-top: 1px solid var(--filet); }
.pied .wrap { padding-block: 44px; display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 32px; font-size: 14px; color: var(--ardoise); }
.pied h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--encre); }
.pied ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.pied .filet { display: flex; height: 4px; width: 72px; border-radius: 2px; overflow: hidden; margin-top: 16px; }
.pied .filet i { flex: 1; }
.pied .filet i:nth-child(1) { background: var(--encre); }
.pied .filet i:nth-child(2) { background: var(--surface); box-shadow: inset 0 0 0 1px var(--filet); }
.pied .filet i:nth-child(3) { background: var(--rouge); }

@media (max-width: 960px) {
  .hero .wrap, .fiche, .contact .boite { grid-template-columns: minmax(0, 1fr); }
  .offres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recu .wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero .wrap { padding-block: 32px 56px; gap: 40px; }
  .hero .chapo { font-size: 18px; }
  .etapes, .engag, .offres, .recu .txt, .pied .wrap { grid-template-columns: minmax(0, 1fr); }
  .sec .wrap, .rapport .wrap { padding-block: 64px; }
  .fiche, .contact .boite { padding: 24px; }
  .logo span { font-size: 26px; }
}

/* ---------- Pages intérieures ---------- */
.page-tete .wrap { padding-block: 56px 40px; display: flex; flex-direction: column; gap: 16px; max-width: calc(var(--largeur)); }
.page-tete h1 { font-size: clamp(36px, 5vw, 56px); max-width: 16em; }
.page-tete .chapo { font-size: 19px; color: var(--ardoise); max-width: 38em; }
.page-tete .meta-ligne { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; font-weight: 700; color: var(--ardoise); }
.corps .wrap { padding-block: 8px 88px; display: flex; flex-direction: column; gap: 40px; }

.prose { max-width: 44em; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: 28px; margin-top: 24px; }
.prose h3 { font-size: 20px; margin-top: 8px; }
.prose p, .prose li { color: var(--ardoise); }
.prose strong { color: var(--encre); }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.prose table { min-width: 0; font-size: 15px; }
.prose th { text-align: left; color: var(--ardoise); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--filet); }
.prose td { text-align: left; padding: 10px 12px 10px 0; border-top: 0; border-bottom: 1px solid var(--filet); color: var(--ardoise); vertical-align: top; }
.sommaire { display: flex; flex-wrap: wrap; gap: 8px; }
.sommaire a { font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--surface); text-decoration: none; box-shadow: inset 0 0 0 1px var(--filet); }

.carte { background: var(--surface); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.carte h2, .carte h3 { font-size: 22px; }
.carte p { color: var(--ardoise); }
.grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grille-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.carte .grand { font-family: var(--titre); font-size: 20px; font-weight: 600; color: var(--encre); overflow-wrap: anywhere; }
.carte .etiquette { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ardoise); }

/* Bandeau d'état : info, succès, alerte */
.etat { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--filet); }
.etat::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: .55em; background: var(--ardoise); }
.etat.ok::before { background: #2F7A55; }
.etat.alerte::before { background: var(--rouge); }
.etat p { color: var(--ardoise); }
.etat strong { color: var(--encre); }

/* Bandeau « maquette » sur les pages d'exemple */
.maquette { background: var(--todo-fond); color: var(--todo-texte); font-size: 14px; font-weight: 700; }
.maquette .wrap { padding-block: 10px; }

/* Formulaires */
.formulaire { display: flex; flex-direction: column; gap: 18px; max-width: 34em; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label { font-weight: 800; font-size: 15px; }
.champ .aide { font-size: 14px; color: var(--ardoise); }
.champ input, .champ select, .champ textarea {
  font: inherit; color: var(--encre); background: var(--surface); border: 1.5px solid var(--filet);
  border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%;
}
.champ textarea { min-height: 110px; resize: vertical; }
.case { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ardoise); }
.case input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--rouge); }
button.btn { border: 0; cursor: pointer; font-family: inherit; }

/* Contenus à copier */
.a-copier { background: var(--surface); border-radius: 16px; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: inset 0 0 0 1px var(--filet); }
.a-copier .haut { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.a-copier .type { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--rouge-texte); }
.a-copier .texte { white-space: pre-wrap; color: var(--encre); font-size: 16px; }
.a-copier .ou { font-size: 14px; color: var(--ardoise); }
.copier { font: inherit; font-size: 14px; font-weight: 800; color: var(--encre); background: var(--papier); border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--encre); }
.copier.fait { background: var(--encre); color: var(--papier); }

/* Liste d'établissements */
.etabs { display: flex; flex-direction: column; gap: 12px; }
.etab { background: var(--surface); border-radius: 16px; padding: 20px 24px; display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 0.8fr)) auto; gap: 16px; align-items: center; box-shadow: inset 0 0 0 1px var(--filet); }
.etab .nom { font-weight: 800; font-size: 17px; }
.etab .lieu { font-size: 14px; color: var(--ardoise); }
.etab .chiffre { font-variant-numeric: tabular-nums; font-family: var(--titre); font-size: 24px; font-weight: 600; }
.etab .chiffre small { font-family: var(--texte); font-size: 13px; color: var(--ardoise); font-weight: 700; display: block; }
.tendance-haut { color: #2F7A55; font-weight: 800; }
.tendance-bas { color: var(--rouge-texte); font-weight: 800; }

/* Rapport : chiffres clés */
.cles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cle { background: var(--surface); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.cle .ia { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ardoise); }
.cle .val { font-family: var(--titre); font-size: 36px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cle .sur { font-size: 14px; color: var(--ardoise); }
.tableau-clair { overflow-x: auto; background: var(--surface); border-radius: 16px; padding: 8px 24px 16px; }
.tableau-clair table { min-width: 560px; }
.tableau-clair th { color: var(--ardoise); }
.tableau-clair td { border-top: 1px solid var(--filet); }
.tableau-clair tr.vous td { color: var(--encre); font-weight: 800; }
.tableau-clair tr.vous td:first-child::before { background: var(--rouge); }
.tableau-clair .barre { background: var(--papier); }
.tableau-clair .barre i { background: var(--ardoise); }
.tableau-clair tr.vous .barre i { background: var(--rouge); }

.photo-tom { width: 100%; max-width: 280px; aspect-ratio: 4 / 5; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--filet); display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.marque-blanche { display: inline-flex; align-items: center; gap: 10px; font-family: var(--titre); font-size: 22px; font-weight: 600; }
.marque-blanche i { width: 34px; height: 34px; border-radius: 8px; background: var(--ardoise); display: inline-block; }

@media (max-width: 960px) {
  .cles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etab { grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, auto)); }
  .etab .btn { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .grille-2, .grille-3 { grid-template-columns: minmax(0, 1fr); }
  .page-tete .wrap { padding-block: 32px 28px; }
  .corps .wrap { padding-block: 0 64px; }
  .carte { padding: 22px; }
}
.defile { overflow-x: auto; max-width: 100%; }
.prose .defile table { min-width: 560px; }
@media (max-width: 960px) {
  .etab { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etab > div:first-child, .etab .btn { grid-column: 1 / -1; }
}

/* ================= Accueil : version « on met le paquet » ================= */
.btn.grand { min-height: 56px; padding: 0 30px; font-size: 17px; }
.eyebrow .pastille { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rouge); margin-right: 10px; vertical-align: 1px; box-shadow: 0 0 0 0 var(--rouge); animation: pouls 2.4s ease-out infinite; }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--rouge) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }

.une { position: relative; overflow: hidden; }
.une::before {
  content: ""; position: absolute; right: -180px; top: -160px; width: 640px; height: 640px; border-radius: 50%;
  border: 90px solid var(--encre); opacity: .045; clip-path: inset(0 0 0 0); pointer-events: none;
}
.une .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 64px; align-items: center; padding-block: 64px 80px; }
.une h1 { font-size: clamp(44px, 6.6vw, 84px); line-height: 1.02; letter-spacing: -0.025em; margin-top: 18px; }
.une h1 .souligne { color: var(--rouge); position: relative; white-space: nowrap; }
.une h1 .souligne::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 0.09em; background: currentColor; border-radius: 99px; transform-origin: left; animation: trait .9s .4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes trait { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.une .chapo { font-size: 20px; color: var(--ardoise); margin-top: 24px; max-width: 32em; }
.une .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.preuves { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 36px; }
.preuves li { display: flex; flex-direction: column; font-size: 14px; color: var(--ardoise); font-weight: 600; }
.preuves b { font-family: var(--titre); font-size: 34px; line-height: 1.1; color: var(--encre); font-weight: 600; font-variant-numeric: tabular-nums; }

/* La démo animée */
.demo { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.demo-metiers { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-metiers button { font: inherit; font-size: 14px; font-weight: 800; color: var(--encre); background: transparent; border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--filet); transition: background-color .2s, color .2s, box-shadow .2s; }
.demo-metiers button:hover { box-shadow: inset 0 0 0 1.5px var(--encre); }
.demo-metiers button.actif { background: var(--encre); color: var(--papier); box-shadow: none; }
.demo-fenetre { background: var(--surface); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 1px 2px rgba(22,35,63,.06), 0 30px 60px -30px rgba(22,35,63,.45); transform: rotate(-1.2deg); transition: transform .4s ease; }
.demo:hover .demo-fenetre { transform: rotate(0deg); }
.demo-ias { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; background: var(--papier); border-radius: 12px; padding: 4px; }
.demo-ias span { text-align: center; font-size: 13px; font-weight: 800; padding: 8px 4px; border-radius: 9px; color: var(--ardoise); transition: background-color .3s, color .3s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-ias span.actif { background: var(--surface); color: var(--encre); box-shadow: 0 1px 3px rgba(22,35,63,.15); }
.demo-q { align-self: flex-end; max-width: 92%; background: var(--encre); color: var(--papier); border-radius: 18px 18px 4px 18px; padding: 14px 18px; font-weight: 600; font-size: 16px; min-height: 3.3em; }
.curseur { display: inline-block; width: 2px; height: 1.05em; background: currentColor; vertical-align: -0.15em; margin-left: 2px; animation: clign 1s steps(1) infinite; }
@keyframes clign { 50% { opacity: 0; } }
.demo-r { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.demo-r li { display: flex; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: 12px; font-size: 15.5px; animation: entre .45s cubic-bezier(.2,.8,.2,1) both; }
.demo-r li:nth-child(2) { animation-delay: .08s; } .demo-r li:nth-child(3) { animation-delay: .16s; } .demo-r li:nth-child(4) { animation-delay: .24s; }
@keyframes entre { from { transform: translateY(8px); opacity: .25; } to { transform: none; opacity: 1; } }
.demo-r .rg { font-variant-numeric: tabular-nums; color: var(--ardoise); font-weight: 800; width: 1.1em; flex: none; }
.demo-r b { font-weight: 800; }
.demo-r em { font-style: normal; color: var(--ardoise); font-size: 14px; margin-left: auto; text-align: right; }
.demo-r li.vous { background: var(--papier); box-shadow: inset 0 0 0 1.5px var(--filet); }
.demo-r li.vous .statut { margin-left: auto; font-size: 13px; font-weight: 800; color: var(--ardoise); white-space: nowrap; }
.demo-r li.vous.cite { background: color-mix(in srgb, var(--rouge) 10%, var(--surface)); box-shadow: inset 0 0 0 1.5px var(--rouge); }
.demo-r li.vous.cite .statut { color: var(--rouge-texte); }
.demo-r li.vous.cite .statut::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rouge); margin-right: 6px; vertical-align: 1px; }
.demo-pied { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ardoise); padding-inline: 4px; }
.demo-pied b { color: var(--rouge-texte); font-size: 15px; }

/* Bande de questions qui défilent */
.defilant { overflow: hidden; background: var(--encre); color: var(--papier); padding-block: 18px; }
.defilant-piste { display: flex; gap: 48px; width: max-content; animation: defile 48s linear infinite; font-family: var(--titre); font-size: 22px; font-weight: 500; }
.defilant-piste span { white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.defilant-piste span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--point-bande); }
@keyframes defile { to { transform: translateX(-50%); } }

/* Étapes en grand */
.etapes.grandes .etape { border-top-width: 3px; }
.etapes.grandes .n { font-size: 64px; line-height: 1; font-weight: 600; color: var(--rouge); letter-spacing: -0.03em; }
.lien-fleche { font-weight: 800; text-decoration: none; border-bottom: 2px solid var(--rouge); padding-bottom: 2px; }
.lien-fleche::after { content: " →"; color: var(--rouge); }

/* Exemple de rapport : jauge en forme de C et classement en course */
.rapport-grille { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.rapport-grille .sec-tete { display: flex; flex-direction: column; gap: 18px; }
.rapport-grille .fiche { display: flex; flex-direction: column; gap: 26px; transform: rotate(1deg); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.fiche-haut { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.jauge { position: relative; width: 132px; height: 132px; flex: none; color: var(--bande-texte); }
.jauge svg { width: 100%; height: 100%; overflow: visible; }
.jauge path { fill: none; stroke-width: 7; stroke-linecap: round; }
.jauge .fond { stroke: currentColor; opacity: .14; }
.jauge .plein { stroke: var(--point-bande); stroke-dasharray: var(--p) 100; animation: jauge 1.4s .3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes jauge { from { stroke-dasharray: 0 100; } }
.jauge-val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--titre); font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; padding-right: 10px; }
.jauge-val small { font-family: var(--texte); font-size: 13px; font-weight: 700; opacity: .7; margin-left: 2px; align-self: center; margin-top: 10px; }
.clair .jauge, .jauge.clair { color: var(--encre); }
.jauge.clair .plein { stroke: var(--rouge); }
.course { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.course li { display: grid; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr) 4.5em; gap: 14px; align-items: center; font-size: 15px; }
.course .nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--bande-doux); }
.course .piste { height: 12px; border-radius: 6px; background: rgba(185,194,212,.14); overflow: hidden; }
.course .piste i { display: block; height: 100%; width: var(--l); border-radius: 6px; background: var(--bande-doux); animation: course 1.2s .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes course { from { width: 0; } }
.course .pts { font-variant-numeric: tabular-nums; font-weight: 800; text-align: right; }
.course .pts em { font-style: normal; font-size: 12px; color: #7FD3A6; margin-left: 4px; }
.course li.vous .nom { color: var(--bande-texte); font-weight: 800; }
.course li.vous .piste i { background: var(--point-bande); }
.fiche-plan { font-size: 15px; color: var(--bande-doux); border-top: 1px solid rgba(185,194,212,.2); padding-top: 18px; }
.fiche-plan b { color: var(--bande-texte); }
/* même composant sur fond clair (instantané, rapport) */
.course.clair .nom { color: var(--ardoise); }
.course.clair .piste { background: var(--papier); }
.course.clair .piste i { background: var(--ardoise); }
.course.clair li.vous .nom { color: var(--encre); }
.course.clair li.vous .piste i { background: var(--rouge); }
.course.clair .pts em { color: #2F7A55; }

/* Engagements avec signe */
.engag div { position: relative; padding-top: 30px; }
.engag-n { font-family: var(--titre); font-size: 40px; line-height: 1; color: var(--rouge); font-weight: 600; }

/* Tarifs : l'offre phare en encre */
.offre.phare { background: var(--encre); color: var(--papier); box-shadow: 0 30px 60px -30px rgba(22,35,63,.6); position: relative; transform: translateY(-8px); }
.offre.phare .prix small, .offre.phare .pour { color: color-mix(in srgb, var(--papier) 72%, transparent); }
.offre.phare li::before { background: var(--point-bande); }
.ruban { position: absolute; top: -12px; left: 24px; background: var(--rouge); color: #FFFFFF; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }

/* Appel final */
.final { background: var(--bande); color: var(--bande-texte); text-align: left; position: relative; overflow: hidden; }
.final .wrap { padding-block: 104px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; position: relative; }
.final h2 { font-size: clamp(40px, 6vw, 76px); letter-spacing: -0.02em; max-width: 11em; }
.final p { color: var(--bande-doux); font-size: 19px; max-width: 30em; }
.final-logo { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); width: min(360px, 40vw); color: var(--bande-texte); opacity: .12; }
.final-logo svg { width: 100%; height: auto; display: block; }
.final-logo circle { fill: var(--point-bande); }
.final .final-logo { opacity: .16; }

@media (max-width: 960px) {
  .une .wrap, .rapport-grille { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .demo-fenetre, .rapport-grille .fiche { transform: none; }
  .offre.phare { transform: none; }
}
@media (max-width: 640px) {
  .une .wrap { padding-block: 32px 56px; }
  .une .chapo { font-size: 18px; }
  .preuves b { font-size: 28px; }
  .defilant-piste { font-size: 18px; }
  .etapes.grandes .n { font-size: 48px; }
  .jauge { width: 104px; height: 104px; }
  .jauge-val { font-size: 26px; }
  .course li { grid-template-columns: minmax(0, 6.5em) minmax(0, 1fr) 4em; gap: 10px; font-size: 14px; }
  .final .wrap { padding-block: 72px; }
  .final-logo { opacity: .08; }
  .demo-r em { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* En-tête avec score (instantané, rapport) */
.tete-score .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.tete-texte { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tete-visuel { background: var(--surface); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 24px; box-shadow: 0 30px 60px -34px rgba(22,35,63,.45); min-width: 0; }
.tete-visuel .course { width: 100%; }
.jauge.grande { width: 180px; height: 180px; }
.jauge.grande .jauge-val { font-size: 48px; }
@media (max-width: 960px) { .tete-score .wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .jauge.grande { width: 140px; height: 140px; } .jauge.grande .jauge-val { font-size: 38px; } .tete-visuel { padding: 20px; } }
@media (max-width: 640px) {
  .une::before { display: none; }
  .preuves { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .preuves li { font-size: 12.5px; }
}
/* Offre sans abonnement */
.audit { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 26px 28px; border-radius: 18px; border: 2px dashed var(--filet); background: var(--papier); }
.audit-texte { display: flex; flex-direction: column; gap: 8px; flex: 1 1 32em; min-width: 0; }
.audit h3 { font-size: 24px; }
.audit .prix-inline { color: var(--rouge-texte); }
.audit small { font-family: var(--texte); font-size: 15px; font-weight: 700; color: var(--ardoise); }
.audit p { color: var(--ardoise); max-width: 46em; }
.audit b { color: var(--encre); }
.audit .etiquette { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ardoise); }

/* Guide pas à pas */
.avancement { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 15px; color: var(--ardoise); margin-top: 8px; }
.avancement-barre { flex: 0 1 320px; height: 10px; border-radius: 5px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--filet); overflow: hidden; }
.avancement-barre i { display: block; height: 100%; background: var(--rouge); border-radius: 5px; transition: width .4s ease; }
.avancement b { color: var(--encre); }
.guide { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pas { background: var(--surface); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--filet); overflow: hidden; }
.pas-tete { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px 24px 8px; }
.pas-n { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--titre); font-size: 22px; font-weight: 600; background: var(--papier); color: var(--encre); }
.pas-titre h2 { font-size: 22px; }
.pas-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ardoise); font-weight: 700; margin-top: 4px; }
.impact { padding: 1px 8px; border-radius: 999px; background: var(--papier); }
.impact.fort { color: var(--rouge-texte); }
.fait { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; cursor: pointer; white-space: nowrap; }
.fait input { width: 22px; height: 22px; accent-color: var(--rouge); }
.pas details { padding: 0 24px 20px; }
.pas summary { cursor: pointer; font-weight: 800; font-size: 14px; color: var(--ardoise); padding: 8px 0 4px 62px; }
.pas-corps { display: flex; flex-direction: column; gap: 14px; padding: 8px 0 0 62px; }
.pourquoi-pas { color: var(--ardoise); }
.pourquoi-pas b { color: var(--encre); }
.sous-pas { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.sous-pas li::marker { font-weight: 800; color: var(--rouge-texte); }
.bloque { font-size: 14px; color: var(--ardoise); }
.copier-lien { font: inherit; font-weight: 800; color: var(--encre); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.pas.est-fait .pas-n { background: var(--encre); color: var(--papier); }
.pas.est-fait h2 { text-decoration: line-through; text-decoration-color: var(--rouge); text-decoration-thickness: 2px; }
@media (max-width: 640px) {
  .pas-tete { grid-template-columns: auto minmax(0, 1fr); padding: 18px 18px 6px; gap: 14px; }
  .fait { grid-column: 2; }
  .pas details { padding: 0 18px 18px; }
  .pas summary, .pas-corps { padding-left: 0; }
  .pas-titre h2 { font-size: 19px; }
}

/* Guides détaillés pour débutants */
.detaille a { display: inline-block; font-weight: 800; color: var(--rouge-texte); background: var(--papier); padding: 8px 14px; border-radius: 10px; text-decoration: none; }
.detaille a:hover { text-decoration: underline; }
.rassure { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 36px; }
.rassure > div { background: var(--surface); border-radius: 16px; padding: 18px 20px; box-shadow: inset 0 0 0 1px var(--filet); }
.rassure b { display: block; font-family: var(--titre); font-size: 18px; margin-bottom: 4px; }
.rassure p { color: var(--ardoise); font-size: 15px; margin: 0; }
.etapes-simples { list-style: none; counter-reset: simple; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.etapes-simples > li { counter-increment: simple; position: relative; background: var(--surface); border-radius: 18px; padding: 24px 26px 24px 90px; box-shadow: inset 0 0 0 1px var(--filet); display: flex; flex-direction: column; gap: 14px; }
.etapes-simples > li::before { content: counter(simple); position: absolute; left: 24px; top: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--rouge); color: #fff; font-family: var(--titre); font-size: 24px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.etapes-simples h2 { font-size: 24px; }
.etapes-simples p { margin: 0; }
.vous-voyez { font-size: 15px; color: var(--ardoise); border-left: 3px solid var(--rouge); padding: 4px 0 4px 12px; }
kbd { font-family: var(--texte); font-size: .85em; font-weight: 800; padding: 1px 7px; border-radius: 6px; background: var(--papier); box-shadow: inset 0 -2px 0 var(--filet), inset 0 0 0 1px var(--filet); white-space: nowrap; }
.a-copier.code pre.texte { margin: 0; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px; line-height: 1.55; white-space: pre; overflow-x: auto; background: var(--papier); padding: 14px 16px; border-radius: 10px; max-width: 100%; }
.outils { display: flex; flex-direction: column; gap: 10px; }
.outils details { background: var(--papier); border-radius: 14px; padding: 0 18px; }
.outils details[open] { padding-bottom: 18px; }
.outils details > *:not(summary) { margin-top: 12px; }
.outils summary { cursor: pointer; padding: 14px 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; list-style: none; }
.outils summary::-webkit-details-marker { display: none; }
.outils summary::before { content: "+"; font-weight: 800; color: var(--rouge-texte); width: 14px; }
.outils details[open] > summary::before { content: "−"; }
.outil-nom { font-weight: 800; font-size: 17px; }
.outil-aide { font-size: 14px; color: var(--ardoise); }
.outils .a-copier { background: var(--surface); }
@media (max-width: 640px) {
  .rassure { grid-template-columns: 1fr; }
  .etapes-simples > li { padding: 76px 18px 20px; }
  .etapes-simples > li::before { left: 18px; top: 18px; }
  .etapes-simples h2 { font-size: 21px; }
}

/* Accord en ligne */
.formulaire.accord { max-width: 46em; }
.accord .carte { display: flex; flex-direction: column; gap: 12px; }
.accord .sous-choix { margin-left: 32px; }
.accord .valider { background: var(--papier); }
@media (max-width: 640px) { .accord .sous-choix { margin-left: 0; } }

/* Tarif fondateur */
.prix-normal { font-size: 13px; font-weight: 700; color: var(--ardoise); margin-top: -4px; }
.offre.phare .prix-normal { color: color-mix(in srgb, var(--papier) 72%, transparent); }
.fondateur-note { text-align: center; font-size: 15px; color: var(--ardoise); margin-top: 18px; }
.fondateur-note b { color: var(--rouge-texte); }

/* Tarifs au mois ou à l'année */
.periode { display: flex; width: fit-content; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--filet); margin: 0 auto 26px; }
.periode button { font: inherit; font-weight: 800; font-size: 15px; border: 0; border-radius: 999px; padding: 10px 18px; background: none; color: var(--ardoise); cursor: pointer; }
.periode button[aria-pressed="true"] { background: var(--encre); color: var(--papier); }
.periode .gain { font-size: 12px; color: var(--rouge-texte); margin-left: 4px; }
.periode button[aria-pressed="true"] .gain { color: var(--point-bande); }
[data-vue="mois"] .v-an, .v-mois { display: none; }
[data-vue="mois"] .v-mois { display: inline; }
.prix-detail { font-size: 13px; font-weight: 700; color: var(--ardoise); margin-top: -4px; }
.offre.phare .prix-detail { color: color-mix(in srgb, var(--papier) 72%, transparent); }

/* Page commande */
.commande { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.commande-choix { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.bloc-choix { border: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bloc-choix legend { float: left; width: 100%; font-family: var(--titre); font-size: 22px; font-weight: 600; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.bloc-choix legend small { font-family: var(--texte); font-size: 13px; font-weight: 700; color: var(--ardoise); }
.pastille { width: 30px; height: 30px; border-radius: 50%; background: var(--encre); color: var(--papier); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.bloc-choix.formulaire { max-width: none; }
.choix-cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choix { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--papier); cursor: pointer; }
.choix input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--rouge); flex: none; }
.choix > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.choix small { font-size: 13px; color: var(--ardoise); }
.choix:has(input:checked) { box-shadow: inset 0 0 0 2px var(--encre); }
.choix:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.tarif-ligne { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tarif-ligne em, .badge { font-style: normal; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.une-fois { background: var(--surface); color: var(--encre); box-shadow: inset 0 0 0 1px var(--filet); }
.recurrent { background: var(--encre); color: var(--papier); }
.periode-commande { margin: 4px 0 0; }
.recap { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }
.recap-bloc { display: flex; flex-direction: column; gap: 10px; }
.recap-titre { font-weight: 800; }
.recap-lignes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.recap-lignes li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: baseline; }
.recap-lignes li b { font-variant-numeric: tabular-nums; }
.ensuite { padding: 14px 16px; border-radius: 12px; background: var(--papier); }
.legende { font-size: 12px; color: var(--ardoise); }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--filet); padding-top: 12px; }
.total b { font-family: var(--titre); font-size: 32px; }
@media (max-width: 900px) {
  .commande { grid-template-columns: minmax(0, 1fr); }
  .recap { position: static; }
  .choix-cartes { grid-template-columns: minmax(0, 1fr); }
}

/* Facture */
.sous-titre { font-size: 20px; margin-top: 10px; }
.facture { background: #FFFFFF; color: #16233F; border-radius: 8px; padding: clamp(22px, 5vw, 56px); box-shadow: 0 1px 0 var(--filet), 0 18px 40px rgba(22, 35, 63, .08); max-width: 820px; display: flex; flex-direction: column; gap: 28px; font-size: 15px; }
.facture .logo { color: #16233F; margin-bottom: 10px; }
.facture-tete { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.facture-num { text-align: right; }
.facture-num h1 { font-size: 34px; margin-bottom: 6px; }
.facture-client .etiquette { color: #5B6475; }
.facture-lignes { width: 100%; border-collapse: collapse; min-width: 520px; }
.facture-lignes th { text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #5B6475; border-bottom: 2px solid #16233F; padding: 8px 10px; }
.facture-lignes td { padding: 12px 10px; border-bottom: 1px solid #D9D4C7; vertical-align: top; }
.facture-lignes small { color: #5B6475; }
.facture-lignes td:not(:first-child), .facture-lignes th:not(:first-child) { text-align: right; white-space: nowrap; }
.facture-lignes tfoot td { border-bottom: 0; padding: 6px 10px; text-align: right; }
.facture-lignes tfoot .net td { font-weight: 800; font-size: 17px; border-top: 2px solid #16233F; }
.facture-mentions { font-size: 13px; color: #5B6475; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 640px) { .facture-num { text-align: left; } }

/* Options sous les offres */
.options { margin-top: 36px; }
.options-titre { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ardoise); margin-bottom: 14px; }
.options-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.option { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px; border-radius: 16px; background: var(--papier); box-shadow: inset 0 0 0 1px var(--filet); color: inherit; text-decoration: none; transition: box-shadow .2s ease, transform .2s ease; }
.option:hover { box-shadow: inset 0 0 0 2px var(--encre); transform: translateY(-2px); }
.option h3 { font-size: 20px; }
.option p { font-size: 14px; color: var(--ardoise); margin: 0; }
.option .option-prix { font-family: var(--titre); font-size: 26px; font-weight: 600; color: var(--encre); }
.option .option-prix small { font-family: var(--texte); font-size: 13px; font-weight: 700; color: var(--ardoise); }
.option-tag { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--rouge-texte); }
.option-lien { margin-top: auto; padding-top: 6px; font-weight: 800; font-size: 14px; }
@media (max-width: 860px) { .options-grille { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .option, .option:hover { transition: none; transform: none; } }
.prix-carte { display: flex; flex-direction: column; gap: 10px; }
.prix-carte p:not(.prix):not(.aide) { color: var(--ardoise); margin: 0 0 8px; }
.prix-carte .prix { color: var(--encre); }

/* Création de site */
.questionnaire { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.grille-champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.choix-liste { display: flex; flex-direction: column; gap: 10px; }
.styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.style-choix { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; background: var(--papier); cursor: pointer; position: relative; }
.style-choix input { position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; accent-color: var(--rouge); }
.style-choix:has(input:checked) { box-shadow: inset 0 0 0 2px var(--encre); }
.style-choix small { font-size: 13px; color: var(--ardoise); }
.style-apercu { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; height: 72px; padding: 6px; border-radius: 10px; background: var(--a); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); margin-bottom: 4px; }
.style-apercu i:nth-child(1) { grid-row: span 2; border-radius: 6px; background: var(--b); }
.style-apercu i:nth-child(2) { border-radius: 6px; background: var(--c); }
.style-apercu i:nth-child(3) { border-radius: 999px; background: var(--b); opacity: .5; }
.depot { position: relative; }
.depot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.depot label { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 16px; border: 2px dashed var(--filet); border-radius: 14px; background: var(--papier); text-align: center; }
.depot small { color: var(--ardoise); }
.frise { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; counter-reset: f; }
.frise li { counter-increment: f; position: relative; padding-top: 44px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.frise li::before { content: counter(f); position: absolute; top: 0; left: 0; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; background: var(--surface); color: var(--ardoise); box-shadow: inset 0 0 0 2px var(--filet); z-index: 1; }
.frise li::after { content: ""; position: absolute; top: 15px; left: 32px; right: -8px; height: 2px; background: var(--filet); }
.frise li:last-child::after { display: none; }
.frise li span { color: var(--ardoise); }
.frise li.fini::before { content: "✓"; background: var(--encre); color: var(--papier); box-shadow: none; }
.frise li.fini::after { background: var(--encre); }
.frise li.encours::before { background: var(--rouge); color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--rouge) 22%, transparent); }
.apercu-carte { display: flex; flex-direction: column; gap: 14px; }
.apercu-vignette { display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--filet), 0 14px 30px rgba(22, 35, 63, .1); text-decoration: none; }
.vignette-barre { display: flex; gap: 6px; padding: 10px 12px; background: #E7E4DC; }
.vignette-barre i { width: 9px; height: 9px; border-radius: 50%; background: #C9C4B7; }
.vignette-corps { display: flex; flex-direction: column; gap: 6px; padding: 30px 24px 34px; background: linear-gradient(120deg, #F5F3EE 55%, #C9D1BE); color: #2F3A2A; }
.vignette-corps b { font-family: var(--titre); font-size: 26px; font-weight: 500; }
.vignette-corps small { color: #66705F; }
.vignette-corps em { font-style: normal; font-weight: 800; font-size: 13px; color: #fff; background: #5C6B52; border-radius: 999px; padding: 8px 14px; width: fit-content; margin-top: 8px; }
.statut-site { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; text-decoration: none; box-shadow: inset 0 0 0 2px var(--rouge); margin-bottom: 18px; }
.statut-site b { flex: 1 1 18em; }
.options-merci { margin-top: 8px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 760px) {
  .grille-champs, .styles { grid-template-columns: minmax(0, 1fr); }
  .frise { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .frise li { padding: 4px 0 0 46px; min-height: 32px; }
  .frise li::after { top: 32px; left: 15px; right: auto; bottom: -14px; width: 2px; height: auto; }
}

/* Bulle d'aide « Une question ? » (assets/aide.js) : bouton rond en bas à droite, fenêtre de discussion. */
.aide-bouton { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--texte); }
.aide-etiquette { background: var(--surface); color: var(--encre); font-size: 15px; font-weight: 700; padding: 9px 16px; border-radius: 999px; box-shadow: 0 0 0 1px var(--filet), 0 6px 18px rgba(22, 35, 63, 0.12); transition: opacity .2s, transform .2s; }
.aide-rond { width: 58px; height: 58px; border-radius: 50%; background: var(--bande); color: var(--bande-texte); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1px var(--filet), 0 8px 22px rgba(22, 35, 63, 0.28); transition: transform .25s; }
.aide-rond svg { width: 36px; height: 36px; }
.aide-point { fill: var(--point-bande); }
.aide-bouton:hover .aide-rond { transform: scale(1.06); }
.aide-ouverte .aide-etiquette { opacity: 0; transform: translateX(8px); pointer-events: none; }
.aide-fenetre { position: fixed; right: 20px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 360px; max-width: calc(100vw - 40px); height: 480px; max-height: calc(100vh - 120px); display: flex; flex-direction: column; overflow: hidden; background: var(--papier); border-radius: 16px; box-shadow: 0 0 0 1px var(--filet), 0 18px 48px rgba(22, 35, 63, 0.22); transform-origin: bottom right; animation: aide-ouvrir .25s ease-out; font-size: 15px; line-height: 1.5; }
.aide-fenetre[hidden] { display: none; }
/* Fenêtre toujours sur fond blanc, même quand le site est en mode sombre. */
.aide-fenetre { color-scheme: light; color: #16233F; --papier: #FFFFFF; --surface: #F6F3EC; --encre: #16233F; --ardoise: #5B6475; --filet: #D9D4C7; --rouge-texte: #A63A2E; --bande: #16233F; --bande-texte: #F6F3EC; --bande-doux: #B9C2D4; --bande-surface: #1F2F52; }
.aide-entete { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--bande); color: var(--bande-texte); }
.aide-logo { display: flex; color: var(--bande-texte); }
.aide-logo svg { width: 32px; height: 32px; }
.aide-titres { flex: 1; display: flex; flex-direction: column; }
.aide-titres strong { font-family: var(--titre); font-weight: 600; font-size: 18px; line-height: 1.2; }
.aide-titres span { font-size: 13px; color: var(--bande-doux); }
.aide-fermer { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--bande-texte); font-size: 26px; line-height: 1; cursor: pointer; }
.aide-fermer:hover { background: var(--bande-surface); }
.aide-fil { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.aide-msg { align-self: flex-start; max-width: 88%; background: var(--surface); color: var(--encre); padding: 10px 13px; border-radius: 14px 14px 14px 4px; box-shadow: 0 0 0 1px var(--filet); animation: aide-arrivee .25s ease-out; overflow-wrap: anywhere; }
.aide-moi { align-self: flex-end; background: var(--bande); color: var(--bande-texte); box-shadow: none; border-radius: 14px 14px 4px 14px; }
.aide-lien { display: block; margin-top: 6px; color: var(--rouge-texte); font-weight: 700; }
.aide-choix { display: flex; flex-wrap: wrap; gap: 6px; animation: aide-arrivee .25s ease-out; }
.aide-puce { font: inherit; font-size: 14px; font-weight: 600; min-height: 36px; padding: 6px 13px; border-radius: 999px; border: 1.5px solid var(--encre); background: var(--surface); color: var(--encre); cursor: pointer; text-align: left; }
.aide-puce:hover { background: var(--encre); color: var(--papier); }
.aide-discret { border-color: var(--filet); color: var(--ardoise); }
.aide-form { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.aide-form input, .aide-form textarea { font: inherit; font-size: 16px; width: 100%; padding: 8px 10px; border: 1px solid var(--filet); border-radius: 8px; background: var(--papier); color: var(--encre); resize: vertical; }
.aide-piege { position: absolute; left: -9999px; }
.aide-erreur { margin: 0; font-size: 13px; color: var(--rouge-texte); }
.aide-erreur:empty { display: none; }
.aide-envoyer { align-self: flex-start; background: var(--encre); color: var(--papier); }
.aide-envoyer:disabled { opacity: .6; cursor: wait; }
.aide-pied { margin: 0; padding: 8px; font-size: 12px; text-align: center; color: var(--ardoise); border-top: 1px solid var(--filet); background: var(--papier); }
@keyframes aide-ouvrir { from { opacity: 0; transform: scale(.92) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes aide-arrivee { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .aide-fenetre, .aide-msg, .aide-choix { animation: none; } .aide-rond, .aide-etiquette { transition: none; } }
@media (max-width: 640px) {
  .aide-fenetre { inset: 0 0 auto; width: auto; max-width: none; height: var(--aide-hauteur, 100dvh); max-height: none; border-radius: 0; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .aide-ouverte .aide-bouton { display: none; }
  .aide-replie .aide-etiquette { opacity: 0; transform: translateX(8px); pointer-events: none; }
  .aide-bouton { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

/* Avis clients (formulaire, relecture, page /avis, bloc de l'accueil) */
.avis-erreur { background: #fdecea; color: #8a1c12; border-radius: 12px; padding: 12px 16px; font-weight: 700; }
.avis-etat { background: var(--surface); border-radius: 12px; padding: 12px 16px; }
.avis-note-choix { display: flex; gap: 10px; align-items: center; font-size: 15px; padding: 4px 0; }
.avis-note-choix input { width: 20px; height: 20px; accent-color: var(--rouge); }
.avis-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.avis-carte { background: var(--surface); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.avis-carte blockquote { margin: 0; font-size: 17px; line-height: 1.55; overflow-wrap: anywhere; }
.avis-etoiles { color: var(--rouge); font-size: 20px; letter-spacing: 2px; margin: 0; }
.avis-auteur { color: var(--ardoise); font-size: 14px; margin: 0; overflow-wrap: anywhere; }
.avis-regles { display: flex; flex-direction: column; gap: 10px; padding-left: 1.2em; color: var(--ardoise); }
[data-avis-accueil][hidden], [data-supprimer][hidden], .avis-erreur[hidden] { display: none; }
