/* Page « Questions fréquentes » : le sentier. Repose sur site-panorama.css (barre du haut, polices, couleurs) et
   site-applis.css (boutons, liens, intitulés). À gauche le titre et les thèmes, à droite les questions du thème choisi. */
.page-sentier { background: #10151c; }
.sentier .stage { position: relative; min-height: max(100vh, 700px); padding: clamp(104px, 14vh, 150px) max(clamp(28px, 5vw, 90px), (100vw - 1560px) / 2) clamp(36px, 6vh, 70px) var(--col, 44%); overflow: hidden; isolation: isolate; color: var(--cream); display: grid; align-items: center; }
.sentier .fond { position: absolute; z-index: -2; max-width: none; }
.sentier .stage::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(8, 20, 40, 0) 36%, rgba(8, 20, 40, 0.5) 58%, rgba(8, 20, 40, 0.62)), linear-gradient(180deg, rgba(8, 20, 40, 0.42), rgba(8, 20, 40, 0) 22%); }

/* --- à droite : le titre, puis le panneau --- */
.s-col { display: grid; gap: clamp(18px, 3vh, 32px); min-width: 0; }
.s-gauche { display: grid; gap: clamp(10px, 1.6vh, 18px); }
.s-gauche p, .s-gauche h1 { margin: 0; }
.s-gauche .sur { color: #fff; }
.stage.la .sur::before { transform: scaleX(1); transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1) 80ms; }
.sentier h1 { font: 600 clamp(38px, 4.2vw, 78px)/0.98 Bricolage, DM, sans-serif; letter-spacing: -0.04em; text-wrap: balance; text-shadow: 0 2px 28px rgba(6, 22, 48, 0.45); }
.sentier h1 em { font-family: "Iowan Old Style", Baskerville, Georgia, serif; font-weight: 400; color: #ffd9b0; }
.stage.la .mot > span { transform: none; transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 80ms + 160ms); }
.s-chapeau { max-width: 62ch; font-size: clamp(15px, 1.15vw, 20px); line-height: 1.5; color: rgba(255, 255, 255, 0.94); text-shadow: 0 1px 16px rgba(6, 22, 48, 0.6); }

/* --- à gauche : les cinq thèmes, peints sur les cinq planches du poteau. Chaque planche a sa pente (la photo est en légère perspective). --- */
.themes { position: absolute; z-index: 1; height: 0; }
.themes button { position: absolute; left: 0; top: var(--haut); width: 100%; height: calc(var(--cq) * 12.6); display: grid; grid-template-columns: calc(var(--cq) * 8.4) minmax(0, 1fr); align-items: center; gap: calc(var(--cq) * 1); padding: 0 calc(var(--cq) * 3.6) 0 calc(var(--cq) * 4.2); border: 0; border-radius: calc(var(--cq) * 0.8); background: none; color: #170d03; text-align: left; text-shadow: 0 1px 0 rgba(255, 244, 222, 0.45); cursor: pointer; transform: skewY(var(--pente)); transform-origin: 0 50%; opacity: 0; transition: color 240ms ease, background 320ms ease, opacity 700ms ease calc(520ms + var(--n) * 90ms), translate 520ms cubic-bezier(0.16, 1, 0.3, 1); }
.stage.la .themes button { opacity: 1; }
.themes button i { font: italic 400 calc(var(--cq) * 5.4)/1 "Iowan Old Style", Baskerville, Georgia, serif; color: #7a2a06; }
.themes button b { font: 700 calc(var(--cq) * 6.3)/1.05 Bricolage, DM, sans-serif; letter-spacing: -0.02em; white-space: nowrap; }
.themes button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.themes button:hover { translate: calc(var(--cq) * 1.2) 0; background: rgba(28, 16, 6, 0.14); }
/* le thème choisi : la planche est peinte en sombre, le texte en clair */
.themes button[aria-selected="true"] { background: rgba(24, 14, 6, 0.82); color: #fff6e6; text-shadow: none; box-shadow: inset 0 0 0 1px rgba(255, 217, 176, 0.25); }
.themes button[aria-selected="true"] i { color: #ffb37a; }
.themes button:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.themes button:nth-child(1) { --n: 0; --haut: calc(var(--cq) * 1.4); --pente: 8deg; }
.themes button:nth-child(2) { --n: 1; --haut: calc(var(--cq) * 21.8); --pente: 5.5deg; }
.themes button:nth-child(3) { --n: 2; --haut: calc(var(--cq) * 41.6); --pente: 3.5deg; }
.themes button:nth-child(4) { --n: 3; --haut: calc(var(--cq) * 61.6); --pente: 1.4deg; }
.themes button:nth-child(5) { --n: 4; --haut: calc(var(--cq) * 81.1); --pente: -0.5deg; }
.s-gauche > .s-chapeau, .s-droite { opacity: 0; translate: 0 18px; transition: opacity 800ms ease 500ms, translate 1000ms cubic-bezier(0.16, 1, 0.3, 1) 500ms; }
.stage.la .s-gauche > .s-chapeau, .stage.la .s-droite { opacity: 1; translate: 0 0; }
.stage.la .s-droite { transition-delay: 700ms; }

/* --- à droite : le panneau du thème, en verre sombre sur la photo --- */
.panneau { padding: clamp(22px, 2.6vw, 44px) clamp(22px, 2.8vw, 48px) clamp(14px, 1.8vw, 30px); border: 1px solid rgba(247, 241, 227, 0.2); border-radius: 18px; background: rgba(10, 20, 36, 0.62); box-shadow: 0 30px 80px rgba(4, 12, 26, 0.45); backdrop-filter: blur(16px) saturate(1.1); animation: panneau-arrive 620ms cubic-bezier(0.16, 1, 0.3, 1); }
.panneau[hidden] { display: none; }
@keyframes panneau-arrive { from { opacity: 0; translate: 22px 0; } }
.panneau p, .panneau h2, .panneau h3 { margin: 0; }
.p-sur { font: 700 clamp(11px, 0.82vw, 13px)/1 DM, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper-clair); }
.panneau h2 { margin: 8px 0 clamp(12px, 2vh, 20px); font: italic 400 clamp(28px, 2.7vw, 46px)/1.05 "Iowan Old Style", Baskerville, Georgia, serif; color: #fff; }
.panneau details { border-top: 1px solid rgba(247, 241, 227, 0.22); }
.panneau summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: clamp(13px, 2vh, 19px) 0; list-style: none; cursor: pointer; }
.panneau summary::-webkit-details-marker { display: none; }
.panneau summary h3 { font: 600 clamp(17px, 1.4vw, 24px)/1.22 Bricolage, DM, sans-serif; letter-spacing: -0.015em; color: rgba(255, 255, 255, 0.92); transition: color 200ms ease; }
.panneau summary:hover h3, .panneau details[open] summary h3 { color: #ffd9b0; }
/* le signe : un plus qui devient un moins */
.panneau summary i { position: relative; width: 30px; height: 30px; border: 1px solid rgba(247, 241, 227, 0.4); border-radius: 50%; transition: background 240ms ease, border-color 240ms ease, rotate 420ms cubic-bezier(0.16, 1, 0.3, 1); }
.panneau summary i::before, .panneau summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: #fff; transition: rotate 420ms cubic-bezier(0.16, 1, 0.3, 1); }
.panneau summary i::after { rotate: 90deg; }
.panneau details[open] summary i { background: var(--copper); border-color: var(--copper); rotate: 180deg; }
.panneau details[open] summary i::after { rotate: 0deg; }
.panneau summary:focus-visible { outline: 2px solid var(--copper-clair); outline-offset: 4px; border-radius: 6px; }
.rep { padding: 0 48px clamp(16px, 2.4vh, 24px) 0; }
.rep p { max-width: 62ch; font-size: clamp(15px, 1.12vw, 19px); line-height: 1.6; color: rgba(247, 241, 227, 0.92); }
.panneau details[open] .rep { animation: rep-arrive 520ms cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes rep-arrive { from { opacity: 0; translate: 0 -8px; } }
.rep a { color: #ffd9b0; font-weight: 600; text-underline-offset: 4px; }
.rep a:hover { color: #fff; }

/* --- la question qui n'est pas là --- */
.autre-question { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; padding: clamp(40px, 7vh, 76px) max(clamp(28px, 5vw, 90px), (100vw - 1560px) / 2); background: #1b2330; color: var(--cream); }
.autre-question h2 { margin: 0 0 8px; font: 600 clamp(30px, 3.4vw, 60px)/1 Bricolage, DM, sans-serif; letter-spacing: -0.035em; }
.autre-question h2 em { font-family: "Iowan Old Style", Baskerville, Georgia, serif; font-weight: 400; color: #ffd9b0; }
.autre-question p { margin: 0; font-size: clamp(16px, 1.2vw, 20px); color: rgba(247, 241, 227, 0.86); }
.autre-question .actions { margin: 0; }

/* --- le pied de page --- */
.pied-quai { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(28px, 5vw, 90px); row-gap: clamp(14px, 2.2vh, 22px); align-items: start; padding: clamp(36px, 6vh, 64px) max(clamp(28px, 5vw, 90px), (100vw - 1560px) / 2) clamp(20px, 3.4vh, 34px); background: #10151c; color: var(--cream); }
.pied-quai .pied-meta { grid-column: 1 / -1; margin: 0; }
.pied-quai h3 { margin: 0; }
@media (max-width: 960px) {
  .pied-quai { grid-template-columns: 1fr; } .pied-quai .pied-colonnes { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .stage .mot > span { transform: none; }
  .s-gauche > *, .s-droite, .themes button { opacity: 1 !important; translate: 0 0 !important; transition: none !important; }
  .panneau, .panneau details[open] .rep { animation: none; }
}

/* ============ Sur téléphone : le poteau en hauteur (photo dédiée). Premier écran : le titre dans le ciel, les cinq thèmes sur les planches, la phrase sur la dune.
   Les questions du thème choisi viennent dessous. ============ */
@media (max-width: 760px) {
  .sentier { --ecran: 100vh; }
  @supports (height: 100svh) { .sentier { --ecran: 100svh; } }
  /* height: auto reprend la main sur le height: 100vh de la feuille du bureau ; overflow: clip (et non hidden) pour que scrollIntoView fasse défiler la fenêtre, pas le bloc */
  .sentier .stage { display: block; height: auto; min-height: 0; padding: var(--ecran) 16px 34px; overflow: clip; background: #10151c; }
  .sentier .stage::before { inset: 0; height: auto; background: linear-gradient(180deg, rgba(8, 20, 40, 0.5), rgba(8, 20, 40, 0) 24%, rgba(16, 21, 28, 0) 60%, rgba(16, 21, 28, 0.82) calc(var(--ecran) - 150px), #10151c calc(var(--ecran) - 10px)); }
  .s-col { display: block; }
  .s-gauche { position: absolute; left: 20px; right: 20px; top: 0; height: var(--ecran); display: block; pointer-events: none; }
  .s-gauche .sur { position: absolute; left: 0; top: 96px; }
  .sentier h1 { position: absolute; left: 0; right: 0; top: 122px; font-size: clamp(34px, 10.4vw, 46px); }
  /* le ciel est clair en haut de la photo : le titre s'écrit en sombre */
  .sentier h1 { color: #14233a; text-shadow: 0 1px 14px rgba(255, 255, 255, 0.5); } .sentier h1 em { color: #a2400f; }
  .s-gauche .sur { color: #14233a; }
  /* la phrase passe sous le premier écran, sur le fond sombre : plus de ligne à cheval sur le bord de la photo */
  .s-chapeau { position: absolute; left: 0; right: 0; top: calc(var(--ecran) + 22px); max-width: none; font-size: 16px; }
  .sentier .fond { mask-image: linear-gradient(180deg, #000 55%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  /* sur un écran bas, la phrase sous les planches passerait sous les questions : les questions commencent après elle */
  .s-col { padding-top: 172px; }
  .s-chapeau::after { content: "Touchez un thème pour lire les réponses, juste dessous."; display: block; margin-top: 10px; font: 600 13px/1.4 DM, sans-serif; letter-spacing: 0.04em; color: #ffd9b0; }
  /* les planches sont vues de face : pas de pente, chaque thème à la hauteur de sa planche */
  .themes button { height: calc(var(--cq) * 15.3); grid-template-columns: calc(var(--cq) * 9.5) minmax(0, 1fr); padding: 0 calc(var(--cq) * 3.4) 0 calc(var(--cq) * 4.4); transform: none; }
  .themes button:hover { translate: 0 0; }
  .themes button i { font-size: calc(var(--cq) * 5.6); }
  .themes button b { font-size: calc(var(--cq) * 6.2); }
  .themes button:nth-child(1) { --haut: 0px; } .themes button:nth-child(2) { --haut: calc(var(--cq) * 18.66); } .themes button:nth-child(3) { --haut: calc(var(--cq) * 36.47); }
  .themes button:nth-child(4) { --haut: calc(var(--cq) * 54.43); } .themes button:nth-child(5) { --haut: calc(var(--cq) * 72.57); }
  .s-droite { position: relative; scroll-margin-top: 84px; }
  .panneau { padding: 22px 18px 12px; border-radius: 14px; scroll-margin-top: 84px; backdrop-filter: none; background: rgba(22, 30, 42, 0.94); }
  .panneau h2 { font-size: 30px; }
  .panneau summary { gap: 12px; padding: 15px 0; }
  .panneau summary h3 { font-size: 18px; }
  .rep { padding-right: 0; } .rep p { font-size: 16px; }
  .autre-question { padding: 40px 20px; } .autre-question h2 { font-size: 32px; }
  .autre-question .actions { display: grid; gap: 14px; justify-items: start; }
  .pied-quai { padding: 34px 20px 22px; } .pied-quai .pied-meta { flex-direction: column; gap: 8px; line-height: 1.4; }
}

/* le bas de la photo s'éteint vers le bandeau qui suit : plus de coupure nette */
.sentier .stage::after { content: ""; position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: 220px; background: linear-gradient(180deg, rgba(16, 21, 28, 0), #10151c); pointer-events: none; }
@media (max-width: 760px) { .sentier .stage::after { content: none; } }
