:root {
  --encre: #16191d;
  --texte: #363c44;
  --doux: #5f666f;
  --fond: #f4f5f7;
  --papier: #ffffff;
  --trait: #dfe2e6;
  --trait-fort: #c9ced4;
  --accent: #1d4e89;
  --accent-fonce: #163d6c;
  --accent-pale: #e8eef6;
  --pli: #c2410c;
  --large: 1120px;
}

* { 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(--texte);
  font: 16px/1.55 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--encre); margin: 0 0 .55em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.75rem); line-height: 1.2; font-weight: 650; }
h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
a:hover { color: var(--accent-fonce); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.bouton:focus-visible { outline-color: var(--encre); }
.empreinte { word-break: break-all; font-size: .8em; }
code { font-family: Consolas, "Cascadia Mono", monospace; font-size: .9em; background: var(--fond); padding: 1px 5px; border-radius: 3px; }
.conteneur { max-width: var(--large); margin: 0 auto; padding: 0 24px; }
.num { font-variant-numeric: tabular-nums; }

.evitement { position: absolute; left: -999px; top: 8px; z-index: 30; background: var(--papier); padding: 8px 12px; }
.evitement:focus { left: 16px; }

/* en-tete */
.entete { background: var(--papier); border-bottom: 1px solid var(--trait); position: sticky; top: 0; z-index: 10; }
.entete .conteneur { display: flex; align-items: center; gap: 32px; min-height: 64px; }
.marque { font-weight: 650; font-size: 1.25rem; color: var(--encre); text-decoration: none; letter-spacing: -0.015em; display: flex; align-items: center; gap: 9px; }
.marque svg { display: block; }
.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav a { color: var(--texte); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--encre); text-decoration: underline; text-underline-offset: 4px; }
section[id] { scroll-margin-top: 80px; }

/* boutons */
.bouton {
  display: inline-block; padding: 11px 20px; border-radius: 4px; font-weight: 600; font-size: .97rem; line-height: 1.3;
  text-decoration: none; border: 1px solid var(--accent); background: var(--accent); color: #fff; white-space: nowrap;
}
.bouton:hover { background: var(--accent-fonce); border-color: var(--accent-fonce); color: #fff; }
.bouton.second { background: var(--papier); color: var(--accent); }
.bouton.second:hover { background: var(--accent-pale); color: var(--accent-fonce); }
.nav .bouton { padding: 8px 16px; color: #fff; }
.nav .bouton:hover { text-decoration: none; }

/* sections */
section { padding: 88px 0; }
section.gris { background: var(--fond); }
.intro { max-width: 700px; margin-bottom: 40px; }
.intro p { font-size: 1.06rem; }
.petit { font-size: .88rem; color: var(--doux); }

/* accroche */
.accroche { padding: 48px 0 64px; background: var(--fond); border-bottom: 1px solid var(--trait); }
.accroche .grille-accroche { display: grid; grid-template-columns: 1fr; gap: 48px; }
.accroche .texte-accroche { max-width: 760px; }
.accroche h1 { max-width: 24ch; }
.surtitre { font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--accent); margin-bottom: 14px; }
.chapeau { font-size: 1.125rem; max-width: 34em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 16px; }

/* captures */
.capture { margin: 0; background: var(--papier); border: 1px solid var(--trait-fort); border-radius: 4px; overflow: hidden; }
.capture img { display: block; width: 100%; height: auto; }
.capture figcaption { font-size: .85rem; color: var(--doux); padding: 9px 14px; border-top: 1px solid var(--trait); background: var(--papier); }

/* rangées texte + capture */
.rangee { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; padding: 44px 0; border-top: 1px solid var(--trait); }
.rangee:first-of-type { border-top: 0; padding-top: 8px; }
.rangee.inverse .capture { order: -1; }
.rangee ul { margin: 0; padding-left: 18px; }
.rangee li { margin-bottom: 6px; }
.rangee .capture.etroite { max-width: 520px; justify-self: center; }

/* fiche technique */
.specs { display: grid; grid-template-columns: 200px 1fr; gap: 0; margin: 0; border-top: 1px solid var(--trait); }
.specs dt, .specs dd { padding: 13px 0; border-bottom: 1px solid var(--trait); margin: 0; }
.specs dt { font-weight: 600; color: var(--encre); padding-right: 24px; }

/* bandeau confidentialite */
.bandeau { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.bandeau p:last-child { margin-bottom: 0; }

/* limites */
.limites { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.limites ul { margin: 0; padding-left: 18px; }
.limites li { margin-bottom: 6px; }

/* tarifs */
.table-defile { overflow-x: auto; }
.comparatif { width: 100%; border-collapse: collapse; background: var(--papier); border: 1px solid var(--trait); min-width: 560px; }
.comparatif th, .comparatif td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--trait); vertical-align: middle; }
.comparatif thead th { font-size: 1.05rem; color: var(--encre); background: var(--papier); border-bottom: 1px solid var(--trait-fort); }
.comparatif tbody th { font-weight: 500; color: var(--doux); width: 30%; }
.comparatif strong { font-size: 1.6rem; color: var(--encre); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.comparatif tr:last-child th, .comparatif tr:last-child td { border-bottom: 0; }
.sous-tableau { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.note { margin-top: 18px; font-size: .9rem; color: var(--doux); }

.formules-mobile { display: none; }
.formules-mobile > div { background: var(--papier); border: 1px solid var(--trait); border-radius: 4px; padding: 20px 22px; margin-bottom: 14px; }
.formules-mobile h3 { margin-bottom: .2em; }
.formules-mobile .prix { font-size: 1.6rem; font-weight: 700; color: var(--encre); letter-spacing: -0.02em; }
.formules-mobile ul { margin: 10px 0 0; padding-left: 18px; }
@media (max-width: 600px) {
  .table-defile { display: none; }
  .formules-mobile { display: block; }
}

/* commander */
.etapes-commande { counter-reset: n; list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.etapes-commande li { counter-increment: n; padding-top: 14px; border-top: 1px solid var(--trait-fort); }
.etapes-commande li::before { content: counter(n) "."; display: block; font-weight: 600; color: var(--doux); margin-bottom: 6px; font-variant-numeric: tabular-nums; }

/* questions */
.questions { max-width: 860px; }
details { border-bottom: 1px solid var(--trait); }
details:first-child { border-top: 1px solid var(--trait); }
summary { cursor: pointer; padding: 16px 36px 16px 0; font-weight: 600; color: var(--encre); list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+" / ""; position: absolute; right: 6px; top: 13px; font-size: 1.25rem; font-weight: 400; color: var(--doux); }
details[open] summary::after { content: "\2013" / ""; }
summary:focus-visible { outline-offset: 4px; }
details p { margin: 0 0 18px; max-width: 70ch; }

/* essai */
.essai { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.carte { background: var(--papier); border: 1px solid var(--trait); border-radius: 4px; padding: 26px 28px; }
.carte h3 { margin-bottom: .4em; }
.carte p:last-child { margin-bottom: 0; }

/* pied */
.pied { padding: 36px 0 40px; font-size: .88rem; color: var(--doux); border-top: 1px solid var(--trait); background: var(--fond); }
.pied .conteneur { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: flex-start; }
.pied .identite p { margin: 0; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.pied a { color: var(--doux); text-decoration: none; }
.pied a:hover { color: var(--encre); text-decoration: underline; }

/* pages juridiques */
.document { max-width: 780px; padding: 56px 24px 80px; margin: 0 auto; }
.document h1 { font-size: 2rem; }
.document h2 { font-size: 1.15rem; margin-top: 2em; }
.document .maj { color: var(--doux); font-size: .9rem; margin-bottom: 2em; }
.document ul { padding-left: 20px; }
.document li { margin-bottom: 4px; }
.document table { border-collapse: collapse; width: 100%; margin: 0 0 1em; font-size: .95rem; }
.document caption { text-align: left; font-weight: 600; color: var(--encre); padding-bottom: 8px; }
.document td, .document th { border: 1px solid var(--trait); padding: 8px 10px; text-align: left; vertical-align: top; }
.document th { background: var(--fond); color: var(--encre); font-weight: 600; }

/* a completer avant publication (voir SITE_A_COMPLETER.txt) */
.a-completer { background: #fff3bf; outline: 1px dashed #c79a00; padding: 0 3px; border-radius: 2px; }

@media (max-width: 900px) {
  .accroche .grille-accroche, .rangee, .bandeau, .limites, .essai { grid-template-columns: 1fr; gap: 32px; }
  .rangee.inverse .capture { order: 0; }
  .etapes-commande { grid-template-columns: 1fr; gap: 20px; }
  .entete .conteneur { flex-wrap: wrap; gap: 6px 16px; padding-top: 10px; padding-bottom: 10px; }
  .nav { width: 100%; margin-left: 0; gap: 18px; }
  .nav a:not(.bouton) { padding: 4px 0; white-space: nowrap; font-size: .92rem; }
  .nav .option { display: none; }
  .nav .bouton { margin-left: auto; padding: 6px 12px; font-size: .88rem; }
  section { padding: 60px 0; }
  .specs { grid-template-columns: 1fr; }
  .specs dt { border-bottom: 0; padding-bottom: 2px; }
  .specs dd { padding-top: 0; }
}
@media (max-width: 520px) {
  .conteneur { padding: 0 16px; }
  .bouton { white-space: normal; }
  .actions .bouton, .sous-tableau .bouton { width: 100%; text-align: center; }
  .pied nav { margin-left: 0; }
}
