/* Quai — feuille commune (site public + espace client).
   Jetons : --encre --papier --blanc --carton --signal --signal-fonce --gris --filet --texte-2 --ok --alerte, --r-s/--r/--r-l (coins), --f-titre/--f-texte.
   Mise en page : .conteneur (1200 px), .conteneur-etroit (860 px), .section, .grille-2/.grille-3/.grille-auto, .pile (espacement vertical).
   Texte : .titre-xl .titre-l .titre-m .titre-s, .chapeau (intro), .petit, .muet, .centre.
   Boutons : .btn + .btn-encre | .btn-signal | .btn-ligne | .btn-clair (sur fond encre) | .btn-lien ; tailles .btn-l .btn-s ; .btn-bloc (pleine largeur).
   Formulaires : .champ (label + input/select/textarea), .champ-aide, .case (checkbox + texte), .choix (radio carte), .erreur-champ.
   Blocs : .carte, .carte-encre, .carte-carton, .pastille (.pastille-signal .pastille-ok .pastille-encre), .alerte (.alerte-erreur .alerte-ok .alerte-info),
           .tableau (table), .segment (bascule segmentée : boutons [aria-pressed]), .liste-coches (li avec coche), .faq (details/summary),
           .stats (dl de chiffres), .etapes (ol numérotée), .bandeau-test.
   Structure : .entete/.nav (en-tête du site), .pied (pied de page), .menu-mobile. */

:root {
  --encre: #0F1115;
  --encre-2: #1B1E24;
  --papier: #F7F6F3;
  --papier-2: #EFECE6;
  --blanc: #FFFFFF;
  --carton: #C9A878;
  --carton-clair: #EFE3D0;
  --signal: #E2461F;
  --signal-fonce: #C23A18;
  --gris: #5B616B;
  --gris-clair: #A9AFB8;
  --filet: #E3E0DA;
  --filet-fort: #D5D1C9;
  --texte-2: #2B2F36;
  --ok: #1E7A4C;
  --ok-fond: #E5F2EA;
  --alerte: #A3300F;
  --alerte-fond: #FBE9E3;
  --info-fond: #F1ECE3;
  --r-s: 8px;
  --r: 12px;
  --r-l: 18px;
  --f-titre: 'Bricolage Grotesque', 'Public Sans', system-ui, sans-serif;
  --f-texte: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gouttiere: 16px;
  color-scheme: light;
}
@media (min-width: 640px) { :root { --gouttiere: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--papier); color: var(--encre);
  font-family: var(--f-texte); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-titre); letter-spacing: -0.025em; line-height: 1.06; }
p { margin: 0; }
a { color: var(--encre); text-underline-offset: 3px; }
a:hover { color: var(--signal-fonce); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--carton-clair); }
.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: 12px; top: -60px; z-index: 50; background: var(--encre); color: var(--blanc); padding: 10px 14px; border-radius: var(--r-s); }
.lien-evitement:focus { top: 12px; color: var(--blanc); }

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

/* ---------- mise en page ---------- */
.conteneur { max-width: 1200px; margin: 0 auto; padding: 0 var(--gouttiere); }
.conteneur-etroit { max-width: 860px; margin: 0 auto; padding: 0 var(--gouttiere); }
.section { padding: 72px 0; }
.section-s { padding: 48px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section-encre { background: var(--encre); color: var(--blanc); }
.section-encre a:not(.btn) { color: var(--blanc); }
.section-blanche { background: var(--blanc); border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.grille-2, .grille-3, .grille-auto { display: grid; gap: 20px; }
@media (min-width: 760px) { .grille-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 900px) { .grille-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.grille-auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.pile > :not(:first-child) { margin-top: 16px; }
.pile-s > :not(:first-child) { margin-top: 8px; }
.pile-l > :not(:first-child) { margin-top: 32px; }
.ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ligne-entre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- texte ---------- */
.titre-xl { font-size: clamp(40px, 7.2vw, 84px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; }
.titre-l { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; letter-spacing: -0.035em; }
.titre-m { font-size: clamp(24px, 2.8vw, 34px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; }
.titre-s { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.chapeau { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--texte-2); max-width: 36em; }
.petit { font-size: 15px; }
.tres-petit { font-size: 13px; }
.muet { color: var(--gris); }
.section-encre .muet, .carte-encre .muet { color: var(--gris-clair); }
.centre { text-align: center; }
.centre .chapeau { margin-left: auto; margin-right: auto; }
.mesure { max-width: 34em; }
.chiffre { font-family: var(--f-titre); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 20px; border-radius: var(--r-s); border: 1px solid transparent;
  font: 600 16px/1.2 var(--f-texte); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-encre { background: var(--encre); color: var(--blanc); }
.btn-encre:hover { background: #2A2E36; color: var(--blanc); }
.btn-signal { background: var(--signal); color: var(--blanc); }
.btn-signal:hover { background: var(--signal-fonce); color: var(--blanc); }
.btn-ligne { background: transparent; color: var(--encre); border-color: var(--encre); }
.btn-ligne:hover { background: var(--encre); color: var(--blanc); }
.btn-clair { background: var(--blanc); color: var(--encre); }
.btn-clair:hover { background: var(--carton-clair); color: var(--encre); }
.btn-lien { background: none; border: 0; padding: 0; min-height: 0; color: var(--encre); text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }
.btn-lien:hover { color: var(--signal-fonce); }
.btn-l { min-height: 54px; padding: 15px 26px; font-size: 17px; border-radius: 10px; }
.btn-s { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.btn-bloc { display: flex; width: 100%; }
.section-encre .btn-ligne, .carte-encre .btn-ligne { color: var(--blanc); border-color: rgba(255,255,255,.55); }
.section-encre .btn-ligne:hover, .carte-encre .btn-ligne:hover { background: var(--blanc); color: var(--encre); }

/* ---------- formulaires ---------- */
.champ { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; }
.champ input, .champ select, .champ textarea {
  font: 400 16px/1.4 var(--f-texte); color: var(--encre); width: 100%;
  padding: 13px 14px; border: 1px solid var(--filet-fort); border-radius: 10px; background: var(--blanc);
  transition: border-color .15s ease;
}
.champ textarea { min-height: 110px; resize: vertical; }
.champ input:hover, .champ select:hover, .champ textarea:hover { border-color: #B9B4AA; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px rgba(226,70,31,.22); }
.champ-aide { font-weight: 400; font-size: 13px; color: var(--gris); }
.erreur-champ { font-weight: 500; font-size: 13px; color: var(--alerte); }
.case { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--texte-2); cursor: pointer; }
.case input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--encre); }
.choix { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--filet-fort); border-radius: 10px; background: var(--blanc); cursor: pointer; font-size: 15px; transition: border-color .15s ease; }
.choix input { width: 18px; height: 18px; margin: 0; accent-color: var(--encre); flex: 0 0 auto; }
.choix:hover { border-color: var(--gris); }
.choix:has(input:checked) { border: 2px solid var(--encre); padding: 13px 15px; }
.choix:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.choix:has(input:focus-visible) { outline: 3px solid var(--signal); outline-offset: 2px; }
.choix-prix { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-size: 14px; font-weight: 600; margin-bottom: 10px; }

/* ---------- blocs ---------- */
.carte { background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--r-l); padding: 28px; }
.carte-s { padding: 20px; border-radius: var(--r); }
.carte-encre { background: var(--encre); color: var(--blanc); border-color: var(--encre); }
.carte-carton { background: var(--carton-clair); border-color: #E2D3BA; }
.carte-forte { border: 2px solid var(--encre); padding: 27px; }
.pastille { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--blanc); border: 1px solid var(--filet); font-size: 14px; font-weight: 600; line-height: 1.3; }
.pastille-point::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); flex: 0 0 auto; }
.pastille-signal { background: var(--signal); border-color: var(--signal); color: var(--blanc); }
.pastille-encre { background: var(--encre); border-color: var(--encre); color: var(--blanc); }
.pastille-ok { background: var(--ok-fond); border-color: #C7E2D2; color: var(--ok); }
.pastille-carton { background: var(--carton-clair); border-color: #E2D3BA; color: #5A4423; }
.alerte { padding: 14px 16px; border-radius: 10px; font-size: 15px; line-height: 1.5; border: 1px solid transparent; }
.alerte-erreur { background: var(--alerte-fond); border-color: #F2C7B8; color: var(--alerte); }
.alerte-ok { background: var(--ok-fond); border-color: #C7E2D2; color: var(--ok); }
.alerte-info { background: var(--info-fond); border-color: #E6DCCB; color: var(--texte-2); }
.tableau { width: 100%; border-collapse: collapse; font-size: 15px; }
.tableau th { text-align: left; font-weight: 600; font-size: 13px; color: var(--gris); padding: 10px 12px; border-bottom: 1px solid var(--filet-fort); }
.tableau td { padding: 12px; border-bottom: 1px solid var(--filet); vertical-align: top; }
.tableau .nombre { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.defile-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.segment { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; border-radius: 12px; background: var(--papier-2); }
.segment button { font: 600 15px/1.2 var(--f-texte); min-height: 44px; padding: 10px 18px; border: 0; border-radius: 9px; background: transparent; color: var(--gris); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.segment button:hover { color: var(--encre); }
.segment button[aria-pressed="true"] { background: var(--blanc); color: var(--encre); box-shadow: 0 1px 2px rgba(15,17,21,.14); }
.segment-encre { background: var(--encre); }
.segment-encre button { color: #C8CBD0; }
.segment-encre button:hover { color: var(--blanc); }
.segment-encre button[aria-pressed="true"] { background: var(--blanc); color: var(--encre); box-shadow: none; }

.liste-coches { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.liste-coches li { position: relative; padding-left: 30px; line-height: 1.45; }
.liste-coches li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' stroke='black' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' stroke='black' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.liste-coches li.fort { font-weight: 600; }
.liste-coches li.fort::before { background: var(--signal); }

.faq details { border-top: 1px solid var(--filet-fort); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--filet-fort); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: .9; font-weight: 400; transition: transform .2s ease; flex: 0 0 auto; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--gris); line-height: 1.65; max-width: 44em; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--filet); border: 1px solid var(--filet); border-radius: var(--r-l); overflow: hidden; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.stats > div { background: var(--blanc); padding: 20px 22px; }
.stats dt { font-size: 14px; color: var(--gris); margin-bottom: 4px; }
.stats dd { margin: 0; font-family: var(--f-titre); font-weight: 800; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.025em; line-height: 1.1; }
.stats > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 760px) { .stats > div:last-child:nth-child(odd) { grid-column: auto; } }

.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: etape; }
@media (min-width: 900px) { .etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.etapes li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.etapes .num { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--encre); color: var(--blanc); font-family: var(--f-titre); font-weight: 800; font-size: 20px; }
.etapes h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.015em; }
.etapes p { color: var(--gris); }

.bandeau-test { background: var(--carton-clair); color: #4A3A20; font-size: 14px; text-align: center; padding: 8px var(--gouttiere); border-bottom: 1px solid #E2D3BA; }

/* ---------- en-tête ---------- */
.entete { position: sticky; top: 0; z-index: 20; background: rgba(247,246,243,.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--filet); }
.entete-int { max-width: 1200px; margin: 0 auto; padding: 12px var(--gouttiere); display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); }
.marque img, .marque svg { width: 32px; height: 32px; display: block; }
.marque span { font-family: var(--f-titre); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; }
.marque:hover { color: var(--encre); }
.nav { display: none; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav .btn { padding: 10px 18px; min-height: 42px; }
@media (min-width: 860px) { .nav { display: flex; } .bouton-menu { display: none !important; } }
.bouton-menu { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--filet-fort); border-radius: 10px; background: var(--blanc); cursor: pointer; color: var(--encre); }
.bouton-menu svg { width: 22px; height: 22px; }
.menu-mobile { border-top: 1px solid var(--filet); background: var(--papier); padding: 8px var(--gouttiere) 20px; }
.menu-mobile[hidden] { display: none; }
.menu-mobile a:not(.btn) { display: block; padding: 14px 2px; border-bottom: 1px solid var(--filet); text-decoration: none; font-size: 17px; font-weight: 500; }
.menu-mobile a[aria-current="page"] { font-weight: 700; }
.menu-mobile .btn { margin-top: 16px; }
@media (min-width: 860px) { .menu-mobile { display: none !important; } }

/* ---------- pied ---------- */
.pied { border-top: 1px solid var(--filet); background: var(--papier); }
.pied-int { max-width: 1200px; margin: 0 auto; padding: 40px var(--gouttiere) 48px; display: grid; gap: 24px; font-size: 14px; color: var(--gris); }
@media (min-width: 760px) { .pied-int { grid-template-columns: 1fr auto; align-items: start; } }
.pied nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.pied a { color: var(--texte-2); }
.pied .marque span { font-size: 20px; }
.pied .marque img { width: 26px; height: 26px; }
