* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--police-texte); color: var(--texte); background: var(--fond); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--lien); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--menthe); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, .lead, .sous-titre { text-wrap: balance; }
h1, h2, h3 { font-family: var(--police-titre); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; margin: 0; }
code { font-family: var(--police-mono); font-size: .9em; }
.wrap { max-width: var(--largeur); margin: 0 auto; padding: 0 1.5rem; }

/* Navigation */
.top { position: sticky; top: 0; z-index: 10; background: var(--nav-fond); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--trait); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--texte); font-family: var(--police-titre); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; display: block; }
.top nav { display: flex; gap: 1.6rem; }
.top nav a { color: var(--texte-doux); font-size: .82rem; }
.top nav a:hover { color: var(--texte); text-decoration: none; }

/* Accueil */
.hero { position: relative; overflow: hidden; text-align: center; padding: 5.5rem 0 3rem; }
.hero > .wrap { position: relative; }
.chemin { position: absolute; top: 2rem; width: min(26vw, 360px); height: auto; pointer-events: none; display: none; }
.chemin-g { left: 0; }
.chemin-d { right: 0; }
.chemin path { fill: none; stroke: var(--trait); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.chemin .station { fill: var(--fond); stroke: var(--trait); stroke-width: 6; }
.chemin .arrivee { fill: var(--menthe); stroke: none; }
@media (min-width: 1000px) { .chemin { display: block; } }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5rem); max-width: 14ch; margin: 0 auto 1.25rem; }
.hero .lead { max-width: 36rem; margin: 0 auto; font-size: clamp(1.1rem, 2.4vw, 1.4rem); line-height: 1.4; color: var(--texte-doux); letter-spacing: -.01em; }
.actions { margin-top: 2rem; display: flex; gap: 1.5rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: .8rem 1.6rem; border-radius: 980px; background: var(--marine); color: var(--fond); font-size: 1.05rem; font-weight: 500; }
.btn:hover { background: var(--marine-survol); text-decoration: none; }
.lien-fleche { font-size: 1.15rem; }
.lien-fleche::after { content: " \203A"; }

/* Itinéraire */
.route { list-style: none; margin: 4rem auto 0; padding: 0; max-width: 860px; display: grid; gap: 0; text-align: left; }
.route li { position: relative; padding: 0 0 1.75rem 2.75rem; }
.route li::before { content: ""; position: absolute; left: 11px; top: 1.4rem; bottom: -.2rem; width: 3px; background: var(--trait); border-radius: 2px; }
.route li:last-child { padding-bottom: 0; }
.route li:last-child::before { display: none; }
.route li::after { content: ""; position: absolute; left: 0; top: .15rem; width: 24px; height: 24px; border-radius: 50%; background: var(--fond); border: 3px solid var(--texte); }
.route li.arrivee::after { background: var(--menthe); border-color: var(--menthe); }
.route h3 { font-size: 1.15rem; letter-spacing: -.015em; margin-bottom: .2rem; }
.route p { margin: 0; color: var(--texte-doux); font-size: .98rem; }
@media (min-width: 760px) {
  .route { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1.5rem; }
  .route li { padding: 3rem 0 0 0; }
  .route li::before { left: 0; right: -1.5rem; top: 10px; bottom: auto; width: auto; height: 3px; }
  .route li::after { top: 0; }
}

/* Sections */
section { padding: 5rem 0; }
section.alt { background: var(--fond-2); }
section h2 { font-size: clamp(2rem, 5vw, 3.25rem); text-align: center; max-width: 18ch; margin: 0 auto 1rem; }
.sous-titre { text-align: center; max-width: 36rem; margin: 0 auto 3rem; color: var(--texte-doux); font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.4; }
.tuiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 3rem; }
.tuiles.deux { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.tuile { background: var(--fond-2); border-radius: var(--rayon); padding: 2.25rem 2rem 2.5rem; }
section.alt .tuile { background: var(--fond); }
.tuile h3 { font-size: 1.5rem; margin-bottom: .75rem; }
.tuile p { margin: 0; color: var(--texte-doux); font-size: 1.02rem; }

/* Bande sombre : le message essentiel */
.nuit { background: var(--nuit); color: var(--nuit-texte); text-align: center; }
.nuit h2 { max-width: 14ch; }
.nuit p { max-width: 38rem; margin: 0 auto; font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.45; color: var(--nuit-doux); }
.nuit p strong { color: var(--nuit-texte); font-weight: 600; }

/* Niveaux d'une preuve */
.niveaux { list-style: none; margin: 0 auto; padding: 0; max-width: 640px; }
.niveaux li { position: relative; padding: 0 0 2rem 3rem; }
.niveaux li::before { content: ""; position: absolute; left: 11px; top: 1.6rem; bottom: -.3rem; width: 3px; background: var(--trait); border-radius: 2px; }
.niveaux li:last-child { padding-bottom: 0; }
.niveaux li:last-child::before { display: none; }
.niveaux li::after { content: ""; position: absolute; left: 0; top: .2rem; width: 24px; height: 24px; border-radius: 50%; background: var(--fond-2); border: 3px solid var(--texte-doux); }
.niveaux li.ok::after { background: var(--menthe); border-color: var(--menthe); }
.niveaux li.attente::after { border-color: var(--ambre); }
.niveaux strong { display: block; font-family: var(--police-titre); font-size: 1.25rem; letter-spacing: -.015em; }
.niveaux span { color: var(--texte-doux); }
.etat { font-family: var(--police-mono); font-size: .78rem; margin-left: .6rem; }
.niveaux li.ok .etat { color: var(--menthe-texte); }
.niveaux li.attente .etat { color: var(--texte-doux); }

/* Passeport : lignes à repère, lisibles, sans cartes compactes */
.points { margin: 3rem auto 0; max-width: 860px; }
.point { display: grid; gap: .75rem 3rem; grid-template-columns: 1fr; padding: 2.25rem 0; border-top: 1px solid var(--trait); }
.point:last-child { border-bottom: 1px solid var(--trait); }
.point dt { font-family: var(--police-titre); font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.point dt .repere { display: block; font-size: clamp(2.4rem, 7vw, 3.5rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; margin-bottom: .5rem; color: var(--texte); }
.point:nth-child(3) dt .repere { color: var(--menthe-texte); }
.point dd { margin: 0; font-size: 1.15rem; line-height: 1.5; letter-spacing: -.01em; }
.point dd p { margin: 0 0 .9rem; }
.point dd p strong { font-weight: 600; }
.point dd .reserve { font-size: .95rem; color: var(--texte-doux); }
.point details { font-size: .98rem; color: var(--texte-doux); }
.point summary { cursor: pointer; color: var(--lien); list-style: none; width: fit-content; }
.point summary::-webkit-details-marker { display: none; }
.point summary::after { content: " \203A"; display: inline-block; transition: transform .2s; }
.point details[open] summary::after { transform: rotate(90deg); }
.point details p { margin: .6rem 0 0; font-size: .98rem; }
@media (min-width: 760px) { .point { grid-template-columns: 15rem 1fr; align-items: start; } }

/* Auditeurs et pilote */
.colonnes { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 3rem; }
.colonnes.deux { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.colonnes h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.colonnes p { margin: 0; color: var(--texte-doux); }
.limite { max-width: 40rem; margin: 3rem auto 0; text-align: center; color: var(--texte-doux); }
.centre { text-align: center; }
.centre p { max-width: 38rem; margin: 0 auto 1rem; color: var(--texte-doux); font-size: 1.1rem; }
.centre p.contact { font-size: 1.4rem; color: var(--texte); margin-top: 1.5rem; }

/* Pied de page */
footer { background: var(--fond-2); border-top: 1px solid var(--trait); padding: 2rem 0 2.5rem; font-size: .8rem; color: var(--texte-doux); }
footer p { margin: .4rem 0 0; max-width: 46rem; }
footer .brand { font-size: .95rem; }
footer .brand img { width: 24px; height: 24px; }

/* Pages de texte (mentions légales) */
.texte-page { padding: 4rem 0 3rem; max-width: 42rem; }
.texte-page h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
.texte-page h2 { font-size: 1.3rem; margin: 2rem 0 .4rem; letter-spacing: -.015em; }
.texte-page p { color: var(--texte); }
.notice { margin: 1rem 0; padding: .9rem 1.1rem; background: var(--fond-2); border-radius: 12px; color: var(--texte-doux); font-size: .95rem; }

/* Page de la clé de reçus */
.cle dt { margin-top: 1rem; font-weight: 600; }
.cle dd { margin: .2rem 0 0; }
.empreinte { display: block; overflow-wrap: anywhere; word-break: break-all; padding: .6rem .8rem; background: var(--fond-2); border-radius: 8px; }
.texte-page pre { overflow-x: auto; padding: .8rem 1rem; background: var(--fond-2); border-radius: 8px; font-size: .85rem; }

@media (max-width: 759px) {
  .hero { padding: 3.5rem 0 2rem; }
  section { padding: 3.5rem 0; }
  .top nav { gap: 1rem; }
  .top nav a:nth-child(n+3) { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
