/* Site wayalto.com — l'identité vient de la carte de randonnée (scripts/site/generer.ts).
   Couleurs de la marque (docs/DESIGN-SYSTEME.md) : sapin, pousse, or, brume, nuit.
   Polices servies par le site (licence OFL) : Barlow Semi Condensed pour les titres
   et la navigation (le vernaculaire des panneaux), Source Serif 4 pour la lecture.
   ⚠️ Volontairement CLAIR, sans mode sombre (10/11/2026) : une carte papier reste
   une carte papier, et le mode sombre noircissait la carte sur les téléphones. */

@font-face { font-family: 'Barlow SC'; src: url('/polices/barlow-sc-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow SC'; src: url('/polices/barlow-sc-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow SC'; src: url('/polices/barlow-sc-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Source Serif'; src: url('/polices/source-serif-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Source Serif'; src: url('/polices/source-serif-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Source Serif'; src: url('/polices/source-serif-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --sapin: #134e30;
  --pousse: #1b7a4b;
  --or: #f0b740;
  --or-trait: #d99a12;
  --nuit: #0b1d2a;
  --brume: #f2f7f4;
  --papier: #fbfcfa;
  --texte: #14241c;
  --doux: #4a5a54;
  --trait: #d6e2db;
  --maitresse: #5d8a72;
  /* La couleur du circuit montré : posée par la page, celle de son effort dans l'appli. */
  --circuit: #c62828;
  --titres: 'Barlow SC', 'Arial Narrow', system-ui, sans-serif;
  --lecture: 'Source Serif', Georgia, 'Times New Roman', serif;
  --douceur: cubic-bezier(0.22, 0.7, 0.18, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--texte);
  font: 1.0625rem/1.65 var(--lecture);
  font-feature-settings: 'kern', 'liga';
  -webkit-font-smoothing: antialiased;
  /* Le pied reste en bas de l'écran, même sur une page courte (la 404). */
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
}
a { color: var(--pousse); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--titres); color: var(--sapin); letter-spacing: 0.005em; }
h1 { font-weight: 700; font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); line-height: 1.04; margin: 0 0 0.4em; }
h2 { font-weight: 600; font-size: 1.6rem; line-height: 1.15; margin: 2.2em 0 0.5em; }
h3 { font-weight: 600; font-size: 1.2rem; margin: 0 0 0.6em; }
p, ul, ol, dl { margin: 0 0 1em; }

.evitement { position: absolute; left: -999px; top: 8px; background: var(--or); color: var(--nuit); padding: 8px 14px; font-family: var(--titres); z-index: 10; }
.evitement:focus { left: 8px; }

/* En-tête : la marque à gauche (le repère DÉTOURÉ, sans case autour), le menu à droite,
   « Essayer l'appli » en bouton. */
.entete {
  position: relative; z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  padding: 12px clamp(16px, 4vw, 40px);
  font-family: var(--titres);
}
.marque { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--sapin); }
.marque img { display: block; height: 54px; width: auto; filter: drop-shadow(0 3px 4px rgba(19, 78, 48, 0.18)); transition: transform 0.3s var(--douceur); }
.marque:hover img { transform: translateY(-2px); }
.marque-nom { display: flex; flex-direction: column; font-weight: 700; font-size: 1.95rem; line-height: 0.95; letter-spacing: 0.01em; }
.marque-nom small { font-weight: 500; font-size: 0.86rem; letter-spacing: 0.06em; color: var(--pousse); margin-top: 4px; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 1.07rem; font-weight: 500; }
.menu a { color: var(--doux); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.menu a:hover { color: var(--sapin); }
.menu a[aria-current='page'] { color: var(--sapin); border-bottom-color: var(--or); }
.menu .menu-action { color: var(--nuit); background: var(--or); border: 0; border-radius: 999px; padding: 6px 16px 7px; font-weight: 600; }
.menu .menu-action:hover { color: var(--nuit); background: #f5c860; }
@media (max-width: 560px) {
  .entete { padding: 10px 16px; gap: 8px 12px; }
  .marque img { height: 40px; }
  .marque-nom { font-size: 1.5rem; }
  .marque-nom small { font-size: 0.78rem; }
  .menu { gap: 2px 14px; font-size: 0.98rem; }
  .menu a:first-child { display: none; } /* « Accueil » : le logo y ramène déjà, la place manque */
  .menu .menu-action { padding: 5px 12px 6px; }
}

/* ── Accueil : un seul voyage sur la vraie carte ────────────────────────────
   La carte (MapLibre, le moteur de l'appli : scripts/site/web/recit.ts) reste fixe à
   l'écran ; les panneaux défilent par-dessus et la caméra suit le défilement.
   Sans script : l'aperçu fixe de la carte, puis les panneaux les uns sous les autres. */
.recit { position: relative; }
.scene { position: relative; height: 72vh; min-height: 420px; overflow: hidden; background: #f8f4f0; }
.apercu { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#carte { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s var(--douceur); }
.carte-prete #carte { opacity: 1; }
html:not(.recit-actif) #carte, .carte-impossible #carte { display: none; }
.scene-voile { position: absolute; inset: 0; pointer-events: none; }
/* L'attribution OpenStreetMap, obligatoire (ODbL), discrète. */
.scene .maplibregl-ctrl-attrib { font: 0.75rem system-ui, sans-serif; background: rgba(255, 255, 255, 0.8); }
.scene .maplibregl-ctrl-bottom-right { z-index: 3; }

.etape { padding: 32px clamp(16px, 4vw, 40px); }
.cartouche, .panneau { max-width: 520px; }
.cartouche {
  background: var(--papier);
  border: 1.5px solid var(--sapin);
  outline: 1px solid var(--sapin); outline-offset: 4px;
  padding: clamp(18px, 3vw, 32px) clamp(18px, 3vw, 34px) clamp(16px, 2.6vw, 24px);
}
.cartouche h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.05rem); }
.cartouche p { color: var(--doux); }
.statut {
  display: inline-block; margin: 0.2em 0 0;
  font: 600 1.05rem var(--titres); color: var(--nuit) !important;
  background: var(--or); padding: 3px 12px 4px; border-radius: 3px;
}
.defiler { display: none; }

.panneau {
  background: rgba(251, 252, 250, 0.95);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--trait); border-radius: 12px;
  box-shadow: 0 22px 48px -28px rgba(11, 29, 42, 0.45);
  padding: 22px 26px 18px;
}
.panneau h2 { margin: 0 0 0.45em; font-size: 1.75rem; }
.panneau h3 { font-size: 1.1rem; margin: 0.9em 0 0.45em; }
.panneau p { color: var(--doux); }
.symboles { list-style: none; padding: 0; margin: 0.4em 0 0.3em; display: grid; gap: 6px; font: 500 1.02rem var(--titres); color: var(--sapin); }
.symboles li { display: flex; align-items: center; gap: 12px; }
.symboles svg { width: 40px; height: 20px; flex: none; }
.points { padding-left: 1.1em; margin: 0 0 0.6em; color: var(--doux); font-size: 0.97rem; line-height: 1.45; }
.points li { margin-bottom: 0.25em; }
.points li::marker { color: var(--pousse); }
.credit, .petit-texte { font-size: 0.8rem; margin: 0; }
.petit-texte { font-size: 0.92rem; margin-top: 0.6em; }

/* Les panneaux avec une vraie capture de l'appli, dans un cadre de téléphone. */
.panneau-capture { max-width: 680px; display: grid; grid-template-columns: minmax(0, 1fr) 176px; gap: 20px; align-items: start; }
.telephone { border-radius: 22px; padding: 6px; background: #1d2939; box-shadow: 0 20px 40px -24px rgba(11, 29, 42, 0.6); }
.telephone img { display: block; width: 100%; height: auto; border-radius: 17px; }

.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0.6em 0 0.8em; }
.chiffres div { border-left: 3px solid var(--circuit); padding-left: 10px; }
.chiffres dt { font: 500 0.92rem var(--titres); color: var(--doux); }
.chiffres dd { margin: 0; font: 700 1.4rem/1.15 var(--titres); color: var(--sapin); }
.profil { margin: 0; }
.profil svg { display: block; width: 100%; height: 64px; }
.p-aire { fill: color-mix(in srgb, var(--circuit) 9%, transparent); }
/* ⚠️ Pas de vector-effect: non-scaling-stroke : avec, le tiret calculé sur pathLength (le
   tracé qui se dessine) s'arrêtait avant la fin du graphique (vu le 11/11/2026). */
.p-ligne { fill: none; stroke: var(--circuit); stroke-width: 2.4; stroke-linejoin: round; }
.profil figcaption { display: flex; justify-content: space-between; font: 500 0.85rem var(--titres); color: var(--doux); }
.voix { font: italic 1.25rem/1.4 var(--lecture); color: var(--sapin) !important; border-left: 3px solid var(--or); padding-left: 14px; }

/* L'itinéraire personnalisé : les quatre temps, puis la liste dans l'ordre trouvé. */
.iti-temps { list-style: none; padding: 0; margin: 0 0 0.9em; display: grid; gap: 4px; font: 500 1.05rem/1.35 var(--titres); color: var(--sapin); }
.iti-temps li { padding-left: 16px; border-left: 3px solid var(--trait); transition: color 0.4s, border-color 0.4s, opacity 0.4s; }
.iti-liste { list-style: none; padding: 10px 14px; margin: 0 0 0.8em; background: var(--brume); border-radius: 10px; display: grid; gap: 5px; font: 500 1rem/1.3 var(--titres); color: var(--texte); }
.iti-liste li { display: flex; align-items: center; gap: 10px; }
.iti-liste span { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; font: 700 0.8rem var(--titres); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.12); }
.iti-d { background: #12b76a; }
.iti-a { background: #d92d20; }
.iti-n { background: #1f6f8b; }
.iti-total { font: 500 1.15rem var(--titres); color: var(--sapin) !important; margin-bottom: 0.4em; }
.iti-total strong { font-size: 1.5rem; }
.iti-note { font-size: 0.92rem; margin: 0; }

/* Où marcher, ce qui arrive, les questions : des panneaux comme les autres. */
.pays { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pays li { font: 500 1rem var(--titres); color: var(--sapin); background: var(--brume); border: 1px solid var(--trait); border-radius: 999px; padding: 3px 12px; }
.pays-detail { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pays-detail li { font-size: 0.97rem; line-height: 1.45; color: var(--doux); background: var(--brume); border-radius: 10px; padding: 9px 12px; }
.pays-detail strong { font-family: var(--titres); font-weight: 600; color: var(--sapin); }
.ou-partie { margin: 0.8em 0 0; font-size: 0.97rem; }
.ou-suite { margin: 0.8em 0 0.2em; }
.arrive-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.arrive-liste li { background: var(--brume); border: 1px solid var(--trait); border-radius: 10px; padding: 11px 14px; color: var(--doux); font-size: 0.97rem; line-height: 1.45; }
.arrive-liste strong { display: block; font: 600 1.1rem var(--titres); color: var(--sapin); margin-bottom: 2px; }
.panneau details { border-top: 1px solid var(--trait); }
.panneau details:last-of-type { border-bottom: 1px solid var(--trait); }
.panneau summary { cursor: pointer; list-style: none; padding: 11px 34px 11px 0; position: relative; font: 600 1.1rem/1.3 var(--titres); color: var(--sapin); }
.panneau summary::-webkit-details-marker { display: none; }
.panneau summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--pousse); border-bottom: 2px solid var(--pousse); transform: translateY(-70%) rotate(45deg); transition: transform 0.3s var(--douceur); }
.panneau details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.panneau details p { margin: 0 0 12px; font-size: 0.97rem; }
.panneau-essayer { text-align: left; }

/* Le récit (script présent) : la carte fixe, les panneaux par-dessus. */
.recit-actif .scene { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }
.recit-actif .etapes { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; pointer-events: none; }
.recit-actif .etape { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.recit-actif .cartouche, .recit-actif .panneau, .recit-actif .defiler { pointer-events: auto; }
/* Les étapes qui ont un mouvement propre durent plus longtemps ; leur panneau reste à l'écran. */
.recit-actif .etape[data-plan='lieux'] { min-height: 110svh; }
.recit-actif .etape[data-plan='circuit'] { min-height: 120svh; }
.recit-actif .etape[data-plan='guidage'] { min-height: 100svh; }
.recit-actif .etape[data-plan='voyage'] { min-height: 170svh; }
.recit-actif .etape[data-plan='iti'] { min-height: 190svh; }
/* « Où marcher » n'est PAS collé : il défile avec la page, comme les deux derniers
   panneaux (collé, il restait immobile après la fin du dézoom : une pause). */
.recit-actif .etape:is([data-plan='lieux'], [data-plan='circuit'], [data-plan='guidage'], [data-plan='voyage'], [data-plan='iti']) { align-items: flex-start; }
.recit-actif .etape:is([data-plan='lieux'], [data-plan='circuit'], [data-plan='guidage'], [data-plan='voyage'], [data-plan='iti']) > .panneau { position: sticky; top: 13vh; }
.recit-actif .etape-titre { flex-direction: column; justify-content: center; align-items: flex-start; }
.recit-actif .etape .cartouche,
.recit-actif .etape .panneau { opacity: 0.15; transform: translateY(24px); transition: opacity 0.35s var(--douceur), transform 0.35s var(--douceur); }
.recit-actif .etape.actif .cartouche,
.recit-actif .etape.actif .panneau { opacity: 1; transform: none; }
.recit-actif .defiler { display: block; margin: 28px 0 0 4px; font: 500 1rem var(--titres); color: var(--sapin); }
.recit-actif .defiler span::after { content: ''; display: inline-block; width: 9px; height: 9px; margin-left: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); animation: invite 1.8s ease-in-out infinite; }
@keyframes invite { 50% { transform: translateY(2px) rotate(45deg); } }
.recit-actif .scene-voile { background: linear-gradient(to right, rgba(251, 252, 250, 0.7) 0, rgba(251, 252, 250, 0.3) 30%, rgba(251, 252, 250, 0) 46%); transition: opacity 0.8s; }
/* Sur les vues larges (l'Europe), le voile se voyait comme une bande blanche : retiré. */
.recit-actif .scene:is([data-etape='ou'], [data-etape='arrive'], [data-etape='essayer']) .scene-voile { opacity: 0; }
/* Le profil du circuit se dessine avec lui (--trace, posé par le script). */
.recit-actif .p-ligne { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--trace, 0)); }
/* Le panneau de l'itinéraire suit les temps de la carte. */
.recit-actif .iti-temps li { opacity: 0.4; }
.recit-actif .iti-temps li.fait { opacity: 0.75; border-left-color: var(--pousse); }
.recit-actif .iti-temps li.maintenant { opacity: 1; border-left-color: var(--or); color: var(--nuit); }
.recit-actif .iti-liste { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; overflow: hidden; transition: opacity 0.5s, max-height 0.6s var(--douceur), padding 0.6s, margin 0.6s; }
.recit-actif .iti-ordonne .iti-liste { opacity: 1; max-height: 16em; padding-top: 10px; padding-bottom: 10px; margin-bottom: 0.8em; }
.recit-actif .iti-total { opacity: 0; transition: opacity 0.4s; }
.recit-actif .iti-trace .iti-total { opacity: 1; }
.recit-actif .iti-fin { opacity: 0; transition: opacity 0.5s; }
.recit-actif .iti-calcule .iti-fin { opacity: 1; }
@keyframes monte { from { opacity: 0; transform: translateY(24px); } }
.recit-actif .etape-titre .cartouche { animation: monte 0.9s 0.35s var(--douceur) both; }
/* Mouvement réduit : rien ne glisse ni ne monte. */
.mouvement-reduit * { transition: none !important; animation: none !important; }

/* Sur téléphone : la carte dans le haut de l'écran, le panneau collé en bas,
   comme la fiche dans l'appli. */
@media (max-width: 760px) {
  .scene { height: 62vh; }
  .recit-actif .etape { align-items: flex-end !important; padding: 0 12px 14px; }
  .recit-actif .etape-titre { justify-content: flex-end; align-items: stretch !important; }
  .recit-actif .etape > .panneau { position: sticky !important; bottom: 14px; top: auto !important; }
  .recit-actif .scene-voile { background: linear-gradient(to bottom, rgba(251, 252, 250, 0) 50%, rgba(251, 252, 250, 0.6) 72%, var(--papier) 94%); }
  .cartouche { padding: 16px 18px 14px; }
  .panneau { padding: 15px 16px 11px; max-height: 58svh; overflow-y: auto; }
  .panneau h2 { font-size: 1.35rem; }
  .panneau p { font-size: 0.95rem; line-height: 1.48; }
  .panneau-capture { grid-template-columns: minmax(0, 1fr) 92px; gap: 12px; }
  .telephone { border-radius: 12px; padding: 3px; }
  .telephone img { border-radius: 10px; }
  .points:not(.points-visibles), .petit-texte, .credit, .iti-note { display: none; }
  .recit-actif .etape .cartouche, .recit-actif .etape .panneau { opacity: 0; }
  .recit-actif .etape.actif .cartouche, .recit-actif .etape.actif .panneau { opacity: 1; }
  .chiffres dd { font-size: 1.15rem; }
  .profil svg { height: 48px; }
  .recit-actif .iti-temps li:not(.maintenant) { display: none; }
  .iti-liste { font-size: 0.92rem; gap: 3px; padding: 8px 12px; }
  /* Le premier écran tient en entier sous l'en-tête (~115 px) : titre, phrase, étiquette. */
  .recit-actif .etape-titre { min-height: 86vh; min-height: 86svh; }
  .cartouche h1 { font-size: 1.75rem; }
  .cartouche p { font-size: 0.97rem; line-height: 1.5; margin-bottom: 0.7em; }
  /* Sur téléphone, l'invitation passe AU-DESSUS du cartouche, en étiquette : en bas, elle
     tombait sous la barre du navigateur (demande du propriétaire, 10/11/2026). */
  .recit-actif .defiler {
    order: -1; align-self: flex-start; margin: 0 0 12px;
    background: rgba(251, 252, 250, 0.92); border: 1px solid var(--trait); border-radius: 999px;
    padding: 5px 14px; font-size: 0.95rem; box-shadow: 0 8px 20px -14px rgba(11, 29, 42, 0.5);
  }
}

.bouton { display: inline-block; background: var(--sapin); color: var(--papier); text-decoration: none; font: 600 1.12rem var(--titres); border-radius: 999px; padding: 13px 28px; transition: background 0.2s, transform 0.2s; }
.bouton:hover { background: var(--pousse); transform: translateY(-1px); }
.bouton-clair { background: var(--papier); color: var(--sapin); box-shadow: inset 0 0 0 1.5px var(--sapin); }
.bouton-clair:hover { background: var(--brume); color: var(--sapin); }

/* ── Pages de texte ──────────────────────────────────────────────────────── */
.doc, .simple { max-width: 1120px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 40px) 64px; }
.simple { max-width: 780px; }
.doc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0 64px; }
.doc-titre { grid-column: 1 / -1; border-bottom: 1.5px solid var(--sapin); margin-bottom: 32px; padding-bottom: 20px; }
.date { font: 500 1rem var(--titres); color: var(--doux); margin: 0 0 0.8em; }
.chapeau { font-size: 1.2rem; color: var(--doux); max-width: 62ch; margin: 0; }
.doc-sommaire { position: sticky; top: 24px; align-self: start; font-family: var(--titres); }
.doc-sommaire summary { font-weight: 600; font-size: 1.1rem; color: var(--sapin); cursor: pointer; list-style: none; }
.doc-sommaire summary::-webkit-details-marker { display: none; }
.doc-sommaire ol { margin: 10px 0 0; padding: 0; list-style: none; }
.doc-sommaire a { display: block; padding: 5px 0 5px 12px; color: var(--doux); text-decoration: none; font-size: 1rem; line-height: 1.3; border-left: 2px solid var(--trait); transition: color 0.2s, border-color 0.2s; }
.doc-sommaire a:hover { color: var(--sapin); border-left-color: var(--or); }
.doc-texte { max-width: 68ch; }
.doc-texte section { scroll-margin-top: 20px; }
.doc-texte section:first-child h2 { margin-top: 0; }
.doc-texte h2 { font-size: 1.45rem; }
.doc-texte ul { padding-left: 1.2em; }
.doc-texte li { margin-bottom: 0.45em; }
.doc-texte li::marker { color: var(--maitresse); }

@media (max-width: 860px) {
  .doc { display: block; }
  .doc-sommaire { position: static; background: var(--brume); padding: 12px 16px; margin-bottom: 28px; border-radius: 8px; }
  .doc-sommaire summary::after { content: ' (afficher)'; font-weight: 500; color: var(--doux); }
  .doc-sommaire details[open] summary::after { content: ''; }
}

.deux-voies { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 12px; }
.voie { background: var(--brume); padding: 4px 22px 8px; border-radius: 12px; }
.voie h2 { margin-top: 0.8em; font-size: 1.35rem; }
.etapes-num { padding: 0; list-style: none; counter-reset: e; }
.etapes-num li { counter-increment: e; position: relative; padding-left: 40px; margin-bottom: 0.7em; }
.etapes-num li::before {
  content: counter(e); position: absolute; left: 0; top: 0.05em;
  width: 26px; height: 26px; border-radius: 50%; background: var(--sapin); color: var(--papier);
  font: 600 0.95rem/26px var(--titres); text-align: center;
}
.petit { font-size: 0.85rem; color: var(--doux); word-break: break-all; }

/* ── Pied : une bande fine, comme sur la plupart des sites (11/11/2026) ───── */
.pied { border-top: 1px solid var(--trait); background: var(--papier); color: var(--doux); font-size: 0.86rem; }
.pied-contenu { max-width: 1120px; margin: 0 auto; padding: 16px clamp(16px, 4vw, 40px) 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; }
.pied-marque { display: flex; align-items: center; gap: 7px; font: 700 1.05rem var(--titres); color: var(--doux); text-decoration: none; }
.pied-marque img { opacity: 0.75; }
.pied-marque img { display: block; height: 23px; width: auto; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 4px 16px; font: 500 0.95rem var(--titres); }
.pied-liens a { color: var(--doux); text-decoration: none; transition: color 0.2s; }
.pied-liens a:hover { color: var(--sapin); }
.pied-liens a:hover { text-decoration: underline; }
.pied-mentions { margin: 0; flex-basis: 100%; font-size: 0.8rem; }
.pied a { color: var(--doux); }
/* Sur l'accueil, le pied se fond dans le bas de la carte (11/11/2026) : pas de trait,
   un dégradé du transparent vers le papier, posé par-dessus les derniers centimètres. */
.accueil .pied { border-top: 0; background: linear-gradient(to bottom, rgba(251, 252, 250, 0), rgba(251, 252, 250, 0.75) 65%); margin-top: -80px; padding-top: 36px; position: relative; z-index: 3; }

/* ── Les pages sobres (Questions, Contact, Essayer, introuvable) ───────────
   Largeur FIXE : un volet de question qui s'ouvre n'élargit plus la page. En fond,
   des courbes de niveau très pâles, à la couleur de celles de l'appli (#8C6272). */
.sobre-page main {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='420' viewBox='0 0 640 420'%3E%3Cg fill='none' stroke='%238C6272' stroke-opacity='.11' stroke-width='1.2'%3E%3Cpath d='M-20 300c90-60 160-90 250-70s150 60 240 20 130-110 190-120'/%3E%3Cpath d='M-20 330c90-55 170-80 255-62s155 64 246 26 128-104 180-112'/%3E%3Cpath d='M-20 360c95-50 175-72 262-55s158 66 250 32 126-98 170-104'/%3E%3Cpath d='M-20 270c88-64 152-98 244-78s146 56 234 14 132-116 202-128'/%3E%3Cpath d='M-20 240c86-70 146-104 238-86s142 52 228 8 134-122 214-136'/%3E%3Cpath d='M120 120c40-30 90-36 120-14s14 62-30 70-120-20-90-56z'/%3E%3Cpath d='M100 124c50-46 118-52 156-22s16 84-40 94-150-26-116-72z'/%3E%3C/g%3E%3C/svg%3E") top right / 640px auto no-repeat,
    linear-gradient(to bottom, var(--brume), var(--papier) 340px);
}
.sobre { width: min(760px, 100% - 32px); margin: 0 auto; padding: clamp(36px, 7vw, 72px) 0 72px; }
.sobre-entete { margin-bottom: 30px; }
.sobre-entete h1 { margin-bottom: 0.3em; }
.sobre-titre { font-size: 1.35rem; margin: 1.8em 0 0.6em; }
.volets { display: grid; gap: 10px; }
.volets details { background: rgba(255, 255, 255, 0.85); border: 1px solid var(--trait); border-radius: 12px; padding: 0 18px; transition: box-shadow 0.25s; }
.volets details[open] { box-shadow: 0 16px 32px -24px rgba(11, 29, 42, 0.45); }
.volets summary { cursor: pointer; list-style: none; padding: 15px 34px 15px 0; position: relative; font: 600 1.12rem/1.3 var(--titres); color: var(--sapin); }
.volets summary::-webkit-details-marker { display: none; }
.volets summary::after { content: ''; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--pousse); border-bottom: 2px solid var(--pousse); transform: translateY(-70%) rotate(45deg); transition: transform 0.3s var(--douceur); }
.volets details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.volets details p { margin: 0 0 16px; color: var(--doux); }
.contact-adresse { margin: 0 0 8px; }
.cartes-contact { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cartes-contact a { display: grid; gap: 4px; height: 100%; text-decoration: none; background: rgba(255, 255, 255, 0.85); border: 1px solid var(--trait); border-radius: 12px; padding: 14px 16px; transition: border-color 0.2s, transform 0.2s; }
.cartes-contact a:hover { border-color: var(--pousse); transform: translateY(-2px); }
.cartes-contact strong { font: 600 1.08rem var(--titres); color: var(--sapin); }
.cartes-contact span { color: var(--doux); font-size: 0.95rem; line-height: 1.45; }
.cartes-contact em { font: 500 0.85rem var(--titres); color: var(--pousse); font-style: normal; }
.etapes-essayer li { margin-bottom: 1em; }
.encart { background: rgba(255, 255, 255, 0.88); border: 1px solid var(--trait); border-radius: 14px; padding: 4px 22px 14px; margin-top: 26px; }
.boutons { display: flex; flex-wrap: wrap; gap: 10px; }
.introuvable { min-height: 50vh; }

main { flex: 1 0 auto; }
