/* TOYNIMA — pages Aide, Accessibilité, Presse, Aperçu et 404 (agent B). Complète site.css, avec ses variables.
   Tout est rangé sous la classe de page posée sur <body> (p-aide, p-accessibilite, p-presse, p-apercu, p-404). */

/* ------------------------------------------------------------ commun */
.p-aide [id], .p-accessibilite [id], .p-presse [id], .p-apercu [id] { scroll-margin-top: 84px; }

/* un chemin dans les menus du jeu : Options › Jeu › Mode doux */
.chemin { display: inline; background: var(--secondaire); color: var(--creme); border-radius: 8px; padding: .05em .45em;
  font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* sommaire en pastilles (aide, aperçu) */
.sommaire ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; }
.sommaire a { display: block; padding: 8px 16px; border-radius: 999px; background: var(--panneau); border: 2px solid rgba(255, 255, 255, .07);
  color: var(--creme); text-decoration: none; font-weight: 600; font-size: .95rem; }
.sommaire a:hover { border-color: var(--accent); color: var(--accent); }

/* ------------------------------------------------------------ aide : sommaire à gauche (collant), questions à droite */
.aide { display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 780px); gap: clamp(28px, 4vw, 56px); align-items: start; }
.aide .sommaire { position: sticky; top: 88px; }
.aide .sommaire ul { flex-direction: column; align-items: stretch; margin: 0; }
.aide .sommaire a { border-radius: var(--r-tuile); }
@media (max-width: 860px) {
  .aide { grid-template-columns: 1fr; }
  .aide .sommaire { position: static; }
  .aide .sommaire ul { flex-direction: row; }
  .aide .sommaire a { border-radius: 999px; }
}
.aide-theme { margin-bottom: 8px; }
.aide-theme > h2 { margin-top: 1.4em; }
.aide-theme:first-child > h2 { margin-top: .4em; }
details.faq > div > :last-child { margin-bottom: 0; }
details.faq > div ul, details.faq > div ol { margin: 0 0 1em; padding-left: 1.3em; }
details.faq > div li { margin-bottom: .35em; }
details.faq[open] { border-color: rgba(255, 212, 71, .35); }
.aide-theme.carte { margin-top: 2.4em; }
.aide-theme.carte > h2 { margin-top: 0; }

/* ------------------------------------------------------------ accessibilité */
.forme { white-space: nowrap; font-weight: 700; color: var(--creme); }
.p-accessibilite .prose section + section { margin-top: .4em; }

/* ------------------------------------------------------------ presse */
.p-presse .page-titre .boutons { margin-top: 8px; }
.presse-deux { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.presse-deux .prose { max-width: none; }
.presse-deux .prose > h2:first-child { margin-top: 0; }
@media (max-width: 960px) { .presse-deux { grid-template-columns: 1fr; } }
.prose table.fiche th { width: 36%; }
.prose table.fiche ul { margin: 0; padding-left: 1.1em; }
.prose table.fiche li { margin-bottom: .2em; }
.prose table.fiche td p { margin: .4em 0 0; color: var(--doux); font-size: .95rem; }
.presse-longue p { color: var(--chaud); }
.p-presse .presse-h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--creme); text-shadow: 0 3px 0 var(--contour); margin: 0 0 .7em; }
.prose ul.telechargements { padding-left: 0; }
.presse-aide { color: var(--doux); margin-top: -.4em; }
.galerie .media-absent { margin-bottom: 16px; }
.logos { list-style: none; padding: 0; margin: 0; }
.logo-carte { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.logo-carte small { color: var(--doux); }
.logo-apercu { width: 100%; height: 240px; display: grid; place-items: center; padding: 18px; border-radius: var(--r-carte);
  background: radial-gradient(circle at 50% 40%, #3A3260 0%, var(--fond) 100%); }
.logo-apercu picture { max-width: 280px; width: 100%; }
.logo-apercu img { width: auto; max-width: 100%; max-height: 200px; margin-inline: auto; }
.telechargements li.kit a { background: var(--accent); color: var(--encre); border-color: var(--levre); box-shadow: 0 4px 0 var(--levre); }
.telechargements li.kit a:hover { background: var(--accent-survol); }
.telechargements li.kit small { color: var(--encre); opacity: .75; }
.telechargements a span { min-width: 0; }
.telechargements small { flex: none; align-self: center; }
@media (max-width: 600px) { .telechargements a { flex-direction: column; gap: 4px; } .telechargements small { align-self: flex-start; } }

/* ------------------------------------------------------------ aperçu */
.apercu-sous { display: block; font-size: .45em; color: var(--chaud); text-shadow: none; margin-top: .35em; font-weight: 600; }
.apercu-langue { padding: 24px 0 48px; }
.apercu-langue + .apercu-langue { border-top: 2px solid var(--ligne); padding-top: 48px; }
.apercu-langue > h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.apercu-video { margin: 0; }
.apercu-video figcaption h3 { font-size: 1.15rem; color: var(--chaud); margin-bottom: .7em; }
.apercu-langue .telechargements { margin-top: 36px; max-width: 640px; }
.apercu-contact { color: var(--doux); text-align: center; }

/* ------------------------------------------------------------ 404 */
.erreur { min-height: min(78svh, 760px); display: grid; align-items: center; padding: clamp(48px, 8vw, 96px) 0; }
.erreur-in { display: grid; justify-items: center; text-align: center; gap: 22px; }
.erreur-lune { position: relative; width: 120px; height: 120px; margin: 0; border-radius: 50%; transform: rotate(-12deg);
  box-shadow: inset 30px -8px 0 0 #FFD447, -6px 6px 40px -10px rgba(255, 212, 71, .45); }
.erreur-lune span { position: absolute; font-family: "Coiny", "Fredoka", sans-serif; color: var(--doux); animation: zzz 3.6s ease-in-out infinite; }
.erreur-lune span:nth-child(1) { right: -22px; top: 6px; font-size: 1.1rem; }
.erreur-lune span:nth-child(2) { right: -40px; top: -18px; font-size: 1.4rem; animation-delay: .6s; }
.erreur-lune span:nth-child(3) { right: -62px; top: -46px; font-size: 1.8rem; animation-delay: 1.2s; }
@keyframes zzz { 0%, 100% { opacity: .25; transform: translateY(4px); } 50% { opacity: 1; transform: translateY(-4px); } }
.erreur h1 { font-size: clamp(2rem, 5vw, 3.4rem); text-shadow: 0 3px 0 var(--contour); margin: 0; }
.erreur-fr, .erreur-en { display: block; }
.erreur-en { font-size: .55em; color: var(--doux); margin-top: .45em; text-shadow: none; }
.erreur-mots { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); max-width: 860px; width: 100%; margin: 10px 0 18px; }
.erreur-mots .citation { margin: 0; text-align: left; }
.erreur-mots .citation p { margin: 0; }
.erreur-boutons { justify-content: center; }
.erreur-aide { color: var(--doux); margin: 0; }
.presse-chiffres { margin-top: clamp(24px, 4vw, 48px); }
.p-presse .chiffres { gap: 18px; }
.p-presse .chiffres li { flex: 0 1 140px; min-width: 0; }
.aide-theme ul.puces { padding-left: 0; }
