@charset "utf-8";
/* Tama et les Pléiades — feuille de style unique. Les images sont dans ../img/. */

* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --night: #0d1117; }
/* overscroll-behavior:none -> pas de « rebond » au-delà du haut/bas (sinon, surtout en
   iframe, on voit du noir derrière en tirant trop haut au lieu de s'arrêter sur la scène 1). */
html { background: var(--night); overscroll-behavior: none; }
body { background: var(--night); overflow-x: hidden; overscroll-behavior: none; }

/* Une seule zone de défilement pilote la scène épinglée unique.
   (Rallongée pour tenir le texte sur fond noir à la toute fin.) */
.scroller { height: 3460vh; }

.viewport {
	position: relative;
	width: 100%;
	height: 100vh;
	height: 100lvh;
	/* --vph = hauteur de la fenêtre BARRE D'URL MASQUÉE (large viewport), posée en JS.
	   C'est la seule hauteur qui ne bouge pas quand on fait défiler sur mobile : en se
	   calant sur la hauteur courante, le repli de la barre d'URL faisait apparaître une
	   bande en bas et l'image semblait se décaler à chaque geste. Ici la scène déborde
	   simplement sous la barre, comme tout fond plein écran. */
	height: var(--vph, 100lvh);
	overflow: hidden;
	background: var(--night);
	opacity: 0;
	transition: opacity .5s ease;
}
body.ready .viewport { opacity: 1; }
/* À la toute fin (épilogue à l'écran) : on RETIRE complètement la scène épinglée du
   rendu (display:none) pour libérer toutes ses couches GPU (35 images, halos blur,
   fusions, particules) -> évite le crash mémoire de Safari mobile à l'arrivée du
   texte récapitulatif. Tout est noir à cet instant : le masquage est invisible. */
body.at-end .viewport { display: none; }
body.at-end { background: #000; }
/* Écrans TRÈS larges (téléphone en paysage, moniteurs ultra-larges) : on encadre la
   scène à un format ~16:10 maxi, centré, avec des bandes nuit sur les côtés.
   Évite le sur-zoom des illustrations verticales et garde un cadrage cohérent. */
@media (min-aspect-ratio: 19/10) {
	.viewport { max-width: calc(var(--vph, 100lvh) * 1.6); margin-left: auto; margin-right: auto; }
}

/* Moteur de rendu canvas (rendu.js) : les illustrations sont peintes dans un seul canvas.
   Les couches HTML restent en place (GSAP les anime, le moteur relit leur état) mais ne
   sont plus dessinées par le navigateur : plus de dizaines de couches graphiques géantes. */
.rendu { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
body.rendu-canvas .plane,
body.rendu-canvas .starfx,
body.rendu-canvas .starhalo,
body.rendu-canvas .fx { visibility: hidden; }
body.rendu-canvas .fx > * { animation: none; }   /* particules recalculées par rendu.js */

/* Chaque scène est superposée plein-cadre ; le fondu croisé joue sur son opacité. */
.scene {
	position: absolute; inset: 0;
	opacity: 0;
	will-change: opacity;
	/* Les scènes s'empilent : même transparentes, elles ne doivent intercepter aucun
	   clic. Seule la narration de la scène en cours en reçoit (voir .phrase-voix). */
	pointer-events: none;
}
.scene.scene1 { opacity: 1; }   /* la première est visible d'emblée */

.plane {
	position: absolute;
	/* Overscan : les plans débordent du cadre de 2.6% de chaque côté -> leurs bords
	   coupés restent TOUJOURS hors écran pendant le panoramique et l'inclinaison.
	   Fait via le layout (pas de transform) -> aucune couche GPU en plus (sûr iPad). */
	inset: -2.6%;
	background-size: cover;
	background-position-x: center;
	background-repeat: no-repeat;
}

/* ---- Scène 1 ---- */
.scene1 .p1 { background-image: url(../img/s1-p1.webp); }
.scene1 .p2 { background-image: url(../img/s1-p2.webp); }
.scene1 .p3 { background-image: url(../img/s1-p3.webp); mix-blend-mode: plus-lighter; }
.scene1 .p4 { background-image: url(../img/s1-p4.webp); }
.scene1 .p5 { background-image: url(../img/s1-p5.webp); }
.scene1 .p6 { background-image: url(../img/s1-p6.webp); }
/* ---- Scène 2 ---- */
.scene2 .p1 { background-image: url(../img/s2-p1.webp); }
.scene2 .p2 { background-image: url(../img/s2-p2.webp); }
.scene2 .p3 { background-image: url(../img/s2-p3.webp); }
.scene2 .p4 { background-image: url(../img/s2-p4.webp); }
.scene2 .p5 { background-image: url(../img/s2-p5.webp); }
.scene2 .p6 { background-image: url(../img/s2-p6.webp); }
.scene2 .p7 { background-image: url(../img/s2-p7.webp); }
/* Le fond peint de la scène 2 démarre à ~6% du bord gauche (calque décentré vers la
   droite dans le PSD) -> bord noir à gauche. On étire ces fonds de 8% vers la gauche
   (ancré à droite) pour combler, sans toucher aux sujets découpés. */
.scene2 .p6, .scene2 .p7 { transform: scaleX(1.08); transform-origin: right center; }
/* ---- Scène 3 ---- */
.scene3 .p1 { background-image: url(../img/s3-p1.webp); }
.scene3 .p2 { background-image: url(../img/s3-p2.webp); }
.scene3 .p3 { background-image: url(../img/s3-p3.webp); }
/* ---- Scène 4 ---- */
.scene4 .p1  { background-image: url(../img/s4-p1.webp);  mix-blend-mode: plus-lighter; }
.scene4 .p2  { background-image: url(../img/s4-p2.webp);  }
.scene4 .p3  { background-image: url(../img/s4-p3.webp);  }
.scene4 .p4  { background-image: url(../img/s4-p4.webp);  }
.scene4 .p5  { background-image: url(../img/s4-p5.webp);  }
.scene4 .p6  { background-image: url(../img/s4-p6.webp);  }
.scene4 .p7  { background-image: url(../img/s4-p7.webp);  }
.scene4 .p8  { background-image: url(../img/s4-p8.webp);  }
.scene4 .p9  { background-image: url(../img/s4-p9.webp);  }
.scene4 .p10 { background-image: url(../img/s4-p10.webp); }
.scene4 .p11 { background-image: url(../img/s4-p11.webp); }
/* ---- Scène 5 ---- */
.scene5 .p1 { background-image: url(../img/s5-p1.webp); }   /* '0' = étoiles : plan le plus proche -> amplitude/inclinaison maximales */
.scene5 .p2 { background-image: url(../img/s5-p2.webp); }
.scene5 .p3 { background-image: url(../img/s5-p3.webp); }
.scene5 .p4 { background-image: url(../img/s5-p4.webp); mix-blend-mode: difference; }   /* calque '3' */
.scene5 .p5 { background-image: url(../img/s5-p5.webp); }
.scene5 .p6 { background-image: url(../img/s5-p6.webp); }
.scene5 .p7 { background-image: url(../img/s5-p7.webp); }
.scene5 .p8 { background-image: url(../img/s5-p8.webp); }

.hint {
	position: fixed; left: 50%; bottom: 4vh; transform: translateX(-50%);
	color: #b9c2d6; font: 600 14px/1 system-ui, sans-serif; letter-spacing: .25em;
	text-transform: uppercase; opacity: 0; z-index: 30; pointer-events: none;
	transition: opacity .6s ease;
}
.hint.visible { opacity: .8; }

/* Commandes en haut à gauche, côte à côte : plein écran (16px), son (68px), voix (120px).
   Icônes = émojis 🔊 / 🔇 et 🗣️ (rendu propre à chaque système : Apple, Android, Windows). */
.emoji {
	font: 20px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
	pointer-events: none;
}
/* Pendant la lecture, les commandes s'estompent après quelques secondes sans geste et
   reviennent au moindre mouvement de souris, toucher ou touche (interface.js). */
.fs-btn, .sound-btn, .voice-btn, .lang-switch { transition-property: background, transform, opacity; }
body.commandes-cachees .fs-btn,
body.commandes-cachees .sound-btn,
body.commandes-cachees .voice-btn,
body.commandes-cachees .lang-switch { opacity: 0; pointer-events: none; transition: opacity .8s ease; }

/* Bouton son (activer / couper) */
.sound-btn {
	position: fixed; top: 16px; left: 68px; z-index: 40;
	width: 44px; height: 44px; border: 0; border-radius: 50%;
	display: grid; place-items: center; cursor: pointer;
	color: #eef1f7; background: rgba(13,17,23,.45);
	box-shadow: 0 0 0 1px rgba(255,255,255,.22) inset;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	transition: background .25s, transform .15s;
}
.sound-btn:hover  { background: rgba(13,17,23,.72); }
.sound-btn:active { transform: scale(.94); }
.sound-btn .ic-off { display: none; }
.sound-btn.muted .ic-on  { display: none; }
.sound-btn.muted .ic-off { display: block; }

/* Bouton voix off : à droite du bouton son. */
.voice-btn {
	position: fixed; top: 16px; left: 120px; z-index: 40;
	width: 44px; height: 44px; border: 0; border-radius: 50%;
	display: grid; place-items: center; cursor: pointer;
	color: #eef1f7; background: rgba(13,17,23,.45);
	box-shadow: 0 0 0 1px rgba(255,255,255,.22) inset;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	transition: background .25s, transform .15s, opacity .25s;
}
.voice-btn:hover  { background: rgba(13,17,23,.72); }
.voice-btn:active { transform: scale(.94); }
/* Actif : liseré doré, comme la langue sélectionnée. */
.voice-btn.on { background: rgba(244,213,141,.20); color: #fff;
	box-shadow: 0 0 0 1px rgba(244,213,141,.75) inset; }
.voice-btn .ic-vx-off { display: none; }
.voice-btn:not(.on) .ic-vx-on  { display: none; }
.voice-btn:not(.on) .ic-vx-off { display: block; }
/* Voix coupée : l'émoji grisé, barré d'un trait. */
.voice-btn .ic-vx-off { position: relative; filter: grayscale(1); opacity: .75; }
.voice-btn .ic-vx-off::after {
	content: ''; position: absolute; left: -3px; right: -3px; top: 50%; height: 2px;
	background: #eef1f7; border-radius: 1px; transform: rotate(-45deg);
	box-shadow: 0 0 0 1px rgba(13,17,23,.6);
}
/* Langue sans enregistrement : bouton estompé et inopérant. */
.voice-btn[disabled] { opacity: .32; cursor: not-allowed; }

/* Bouton plein écran (en haut à gauche) — utile surtout en iframe. */
.fs-btn {
	position: fixed; top: 16px; left: 16px; z-index: 40;
	width: 44px; height: 44px; border: 0; border-radius: 50%;
	display: grid; place-items: center; cursor: pointer;
	color: #eef1f7; background: rgba(13,17,23,.45);
	box-shadow: 0 0 0 1px rgba(255,255,255,.22) inset;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	transition: background .25s, transform .15s;
}
.fs-btn:hover  { background: rgba(13,17,23,.72); }
.fs-btn:active { transform: scale(.94); }
.fs-btn svg { width: 22px; height: 22px; pointer-events: none; }
.fs-btn .ic-fs-off { display: none; }
body.is-fs .fs-btn .ic-fs-on  { display: none; }
body.is-fs .fs-btn .ic-fs-off { display: block; }

/* Astuce plein écran iPhone : iOS n'expose aucune API plein écran hors vidéo, le seul
   vrai plein écran passe par « Sur l'écran d'accueil » (meta apple-mobile-web-app-capable). */
.fs-tip {
	position: fixed; top: 68px; left: 16px; z-index: 60;
	max-width: min(21rem, calc(100vw - 32px));
	padding: 12px 34px 12px 14px; border-radius: 12px;
	background: rgba(13,17,23,.93); color: #eef1f7;
	box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 10px 30px rgba(0,0,0,.55);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	font: 400 13px/1.5 system-ui, -apple-system, Arial, sans-serif;
	opacity: 0; transform: translateY(-6px); pointer-events: none;
	transition: opacity .25s ease, transform .25s ease;
}
.fs-tip.show { opacity: 1; transform: none; pointer-events: auto; cursor: pointer; }
.fs-tip strong { color: #f4d58d; font-weight: 600; }
.fs-tip__x {
	position: absolute; top: 2px; right: 4px; width: 30px; height: 30px;
	border: 0; background: none; color: #9aa3b5; cursor: pointer;
	font: 400 21px/1 system-ui, -apple-system, Arial, sans-serif;
}
.fs-tip__x:hover { color: #fff; }

/* Langue (haut-droite) : un bouton qui montre la langue en cours et ouvre la liste. */
.lang-switch { position: fixed; top: 16px; right: 16px; z-index: 41; }
.lang-cur {
	display: flex; align-items: center; gap: 7px; height: 44px; padding: 0 14px 0 15px; cursor: pointer;
	border: 0; border-radius: 999px; color: #eef1f7; background: rgba(13,17,23,.45);
	box-shadow: 0 0 0 1px rgba(255,255,255,.22) inset;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	font: 600 13px/1 system-ui, -apple-system, Arial, sans-serif;
	transition: background .2s, transform .15s;
}
.lang-cur:hover { background: rgba(13,17,23,.72); }
.lang-cur:active { transform: scale(.96); }
.lang-cur__choix { display: flex; align-items: center; gap: 7px; pointer-events: none; }
.lang-cur .flag { font-size: 16px; line-height: 1; }
.lang-cur .flag--mq { display: block; width: 18px; height: 12px; border-radius: 1.5px; box-shadow: 0 0 0 .5px rgba(255,255,255,.45); }
/* petit chevron, retourné quand la liste est ouverte */
.lang-cur__fleche { width: 7px; height: 7px; margin: -3px 0 0 2px; border: solid currentColor;
	border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: .8; transition: transform .2s; }
.lang-switch.ouvert .lang-cur__fleche { transform: translateY(4px) rotate(-135deg); }
.lang-menu {
	position: absolute; top: calc(100% + 8px); right: 0; min-width: 100%;
	display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 16px;
	background: rgba(13,17,23,.88); box-shadow: 0 0 0 1px rgba(255,255,255,.16) inset, 0 12px 30px rgba(0,0,0,.5);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	opacity: 0; transform: translateY(-6px); visibility: hidden;
	transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
}
.lang-switch.ouvert .lang-menu { opacity: 1; transform: none; visibility: visible; transition: opacity .2s ease, transform .2s ease; }
.lang-menu .lang-btn { width: 100%; white-space: nowrap; padding: 10px 14px; font-size: 13px; gap: 8px;
	background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.lang-menu .lang-btn:hover { background: rgba(255,255,255,.08); }
.lang-menu .lang-btn.active { background: rgba(244,213,141,.18); box-shadow: 0 0 0 1px rgba(244,213,141,.6) inset; }
.lang-btn {
	display: flex; align-items: center; gap: 5px; cursor: pointer;
	border: 0; border-radius: 999px; padding: 8px 12px;
	font: 600 12px/1 system-ui, -apple-system, Arial, sans-serif;
	color: #eef1f7; background: rgba(13,17,23,.45);
	box-shadow: 0 0 0 1px rgba(255,255,255,.22) inset;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	transition: background .2s, box-shadow .2s;
}
.lang-btn .flag { font-size: 14px; line-height: 1; }
/* Les Marquises n'ont pas d'émoji drapeau : on dessine le vrai (jaune/rouge,
   triangle blanc à la hampe, matatiki noir). */
.lang-btn .flag--mq { display: block; flex: 0 0 auto; width: 16px; height: 11px;
	border-radius: 1.5px; box-shadow: 0 0 0 .5px rgba(255,255,255,.45); }
.lang-btn:hover { background: rgba(13,17,23,.72); }
.lang-btn.active { background: rgba(244,213,141,.20); color: #fff; box-shadow: 0 0 0 1px rgba(244,213,141,.75) inset; }
@media (max-height: 560px) { .lang-btn { padding: 6px 10px; } .lang-menu .lang-btn { padding: 8px 12px; } }
/* 5 langues : sur écran étroit on resserre les pastilles (elles passent sur 2 lignes). */
@media (max-width: 720px) { .lang-btn { padding: 6px 9px; font-size: 11px; gap: 4px; } .lang-btn .flag { font-size: 12px; } }
@media (max-width: 420px) { .lang-btn { padding: 5px 8px; font-size: 10px; } .lang-cur { padding: 0 12px; } }

/* Voile noir final : placé DANS la scène 5, sous la narration (z 12), au-dessus des
   calques/particules -> au fondu au noir, seul le texte de la scène 5 reste visible. */
.blackout {
	position: absolute; inset: 0; z-index: 11;
	background: #000; opacity: 0; pointer-events: none;
}

/* Écran-titre (scène 1) */
.title {
	position: absolute; inset: 0; z-index: 15;
	display: flex; align-items: center; justify-content: center;
	text-align: center; pointer-events: none;
	will-change: opacity, transform;
}
.title__scrim {
	position: absolute; inset: 0;
	background: radial-gradient(ellipse 85% 65% at 50% 44%,
		rgba(13,17,23,.62), rgba(13,17,23,.18) 68%, rgba(13,17,23,0));
}
.title__inner { position: relative; padding: 0 6vw; }
.title__main {
	color: #f4f1e8;
	font: 700 clamp(2.2rem, 7vw, 5.5rem)/1.06 Georgia, "Times New Roman", serif;
	letter-spacing: .01em;
	text-shadow: 0 2px 30px rgba(0,0,0,.75), 0 0 10px rgba(0,0,0,.5);
}
.title__sub {
	margin-top: 1.25rem;
	color: #cdd3e0;
	font: 400 clamp(.9rem, 2vw, 1.3rem)/1.4 system-ui, sans-serif;
	letter-spacing: .35em; text-transform: uppercase;
	text-shadow: 0 1px 16px rgba(0,0,0,.75);
}
/* Bouton « Activer le son » : overlay fixe, au-dessus de tout, donc cliquable de façon
   fiable (le clic est le geste exigé par Chrome/Brave pour démarrer l'audio). */
.sound-start {
	position: fixed; left: 50%; top: 60%; transform: translateX(-50%);
	z-index: 36; pointer-events: auto; cursor: pointer;
	border: 1px solid rgba(255,255,255,.45); border-radius: 999px;
	background: rgba(13,17,23,.55); color: #f4f1e8;
	font: 600 clamp(.8rem, 1.5vw, 1rem)/1 system-ui, sans-serif;
	letter-spacing: .12em; text-transform: uppercase;
	padding: .9em 1.6em;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	animation: softpulse 2.2s ease-in-out infinite;
}
.sound-start:hover { background: rgba(13,17,23,.8); }
.sound-start.hidden { display: none; }
@keyframes softpulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
	50%      { box-shadow: 0 0 0 7px rgba(255,255,255,.09); }
}

/* Narration (texte d'histoire) */
.narration {
	/* jamais sous la barre de commandes (boutons de 44 px à 16 px du haut) */
	position: absolute; left: 6vw; top: max(11vh, 72px);
	max-width: min(36rem, 82vw); z-index: 12;
	opacity: 0; pointer-events: none;
	will-change: opacity, transform;
}
/* Voix off active : chaque phrase du texte de la scène en cours est cliquable et
   relance la voix à son début. Survol doré à la souris ; au doigt, la phrase
   touchée s'allume brièvement (pas de survol sur écran tactile). */
body.voix-cliquable .narration.narration-active { pointer-events: auto; }
body.voix-cliquable .narration-active .phrase-voix { cursor: pointer; transition: color .3s ease; }
@media (hover: hover) {
	body.voix-cliquable .narration-active .phrase-voix:hover { color: #f4d58d; }
}
.phrase-voix.phrase-touchee { color: #f4d58d; }
.narration p {
	color: #eef1f7;
	font: 400 clamp(1.02rem, 1.6vw, 1.45rem)/1.62 Georgia, "Times New Roman", serif;
	text-shadow: 0 1px 18px rgba(0,0,0,.9), 0 0 6px rgba(0,0,0,.7);
}
.narration p + p { margin-top: 1em; }
.narration em { font-style: italic; }
/* Scène 3 : narration à droite */
.scene3 .narration { left: auto; right: 6vw; text-align: right; }
/* Scène 4 : narration au-dessus de l'hameçon, en bas à gauche */
.scene4 .narration { top: auto; bottom: 24vh; }

/* ---- Effets d'ambiance (vivants même à l'arrêt) ---- */
/* Couche par scène : scintillement d'étoiles + poussière d'étoiles flottante.
   Insérée entre les calques et la narration ; suit le fondu de sa scène. */
.fx {
	position: absolute; inset: 0;
	pointer-events: none; overflow: hidden;
	mix-blend-mode: screen;   /* plus stable que plus-lighter sur Safari/iPad */
}
/* Étoiles : juste au-dessus du calque de fond -> les calques de premier plan
   les masquent (elles scintillent dans le ciel profond) = illusion réaliste. */
.fx-stars { z-index: auto; }
/* Poussière : au premier plan, elle flotte devant la scène. */
.fx-dust  { z-index: 4; }
.fx .star {
	position: absolute; border-radius: 50%; background: #fff;
	box-shadow: 0 0 4px 1px rgba(255,244,214,.55);   /* lueur légère (pas de filtre) */
	opacity: 0;
	animation: twinkle var(--dur) ease-in-out var(--delay) infinite;
}
@keyframes twinkle {
	0%, 100% { opacity: 0; transform: scale(.55); }
	50%      { opacity: var(--max); transform: scale(1); }
}
.fx .dust {
	position: absolute; border-radius: 50%;
	background: radial-gradient(circle, rgba(255,240,200,.95), rgba(255,240,200,0) 70%);
	opacity: 0;
	animation: drift var(--dur) linear var(--delay) infinite;
}
@keyframes drift {
	0%   { opacity: 0; transform: translateY(10vh) translateX(0); }
	12%  { opacity: var(--max); }
	88%  { opacity: var(--max); }
	100% { opacity: 0; transform: translateY(-16vh) translateX(var(--drift)); }
}
/* Embers (scène 1) : particules dorées à trajectoire ALÉATOIRE (4 points de passage). */
.fx .ember {
	position: absolute; border-radius: 50%;
	background: radial-gradient(circle, rgba(255,216,140,.95), rgba(255,196,110,0) 70%);
	opacity: 0;
	animation: ember var(--dur) ease-in-out var(--delay) infinite;
}
@keyframes ember {
	0%   { opacity: 0; transform: translate(0, 0); }
	12%  { opacity: var(--max); }
	30%  { transform: translate(var(--x1), var(--y1)); }
	55%  { transform: translate(var(--x2), var(--y2)); }
	80%  { opacity: var(--max); transform: translate(var(--x3), var(--y3)); }
	100% { opacity: 0; transform: translate(var(--x4), var(--y4)); }
}

/* ---- Parallaxe d'inclinaison (souris desktop / gyroscope mobile) ----
   Seuls les 3 plans de devant s'inclinent (profondeur sans multiplier les couches
   GPU = sûr sur iPad). --px/--py (-1..1) sont posés en JS sur :root. */
.p1, .p2, .p3, .p4, .p5 {
	transform: translate3d(calc(var(--px, 0) * var(--depth, 6) * -0.12vw),
	                       calc(var(--py, 0) * var(--depth, 6) * -0.09vh), 0);
}
.p1 { --depth: 20; } .p2 { --depth: 15; } .p3 { --depth: 11; } .p4 { --depth: 8; } .p5 { --depth: 5; }
/* Scène 1 : étoiles + ciel lointain figés (pas d'inclinaison). */
.scene1 .p3, .scene1 .p4, .scene1 .p5 { transform: none; }
/* Scène 5 : seules les étoiles (p1) s'inclinent ; tout le reste est lointain/figé. */
.scene5 .p2, .scene5 .p3, .scene5 .p4, .scene5 .p5 { transform: none; }
/* Le scintillement (copies screen) suit EXACTEMENT l'inclinaison de p1 (même
   profondeur 20) -> plus aucun décalage avec le calque d'étoiles d'origine. */
.scene5 .starfx {
	transform: translate3d(calc(var(--px, 0) * 20 * -0.12vw),
	                       calc(var(--py, 0) * 20 * -0.09vh), 0);
}
/* Scintillement supplémentaire : la couche étoiles superposée en SCREEN, clignotant
   de façon irrégulière (2 passes à des rythmes différents) -> vraie impression de
   scintillement par-dessus les étoiles peintes. */
.scene1 .starfx {
	position: absolute; inset: -2.6%;
	background-image: url(../img/s1-p3.webp);
	background-size: cover; background-position-x: center; background-repeat: no-repeat;
	mix-blend-mode: screen; pointer-events: none; opacity: 0;
	will-change: opacity;   /* la position est animée par GSAP (suit p3) */
}
.scene1 .starfx--a { animation: twinkleA 2.4s ease-in-out infinite; }
.scene1 .starfx--b { animation: twinkleB 3.7s ease-in-out .5s infinite; }
@keyframes twinkleA { 0%,100% { opacity: 0; }   30% { opacity: .95; } 55% { opacity: .15; } 80% { opacity: .6; } }
@keyframes twinkleB { 0%,100% { opacity: .1; }  45% { opacity: .85; } 70% { opacity: .25; } }

/* Scène 2 : halo lumineux autour de l'étoile (p5). Copie floue de l'étoile en
   fusion « screen » -> ne fait qu'ajouter de la lumière (glow), jamais d'aplat.
   Sa position est animée par GSAP (PANS.scene2.starhalo) pour suivre l'étoile. */
.scene2 .starhalo {
	position: absolute; inset: -2.6%;
	background-image: url(../img/s2-p5.webp);
	background-size: cover; background-position-x: center; background-repeat: no-repeat;
	mix-blend-mode: screen; pointer-events: none;
	filter: blur(16px) brightness(1.6);
	opacity: .5; will-change: opacity;
	animation: haloPulse 2.6s ease-in-out infinite;
}
@keyframes haloPulse { 0%,100% { opacity: .35; } 50% { opacity: .85; } }

/* Scène 4 : halo lumineux autour de l'hameçon (p10) — il doit être l'élément
   le plus brillant du ciel. Même principe que le halo de l'étoile (scène 2). */
.scene4 .starhalo {
	position: absolute; inset: -2.6%;
	background-image: url(../img/s4-p10.webp);
	background-size: cover; background-position-x: center; background-repeat: no-repeat;
	mix-blend-mode: screen; pointer-events: none;
	filter: blur(15px) brightness(2.1);
	opacity: .6; will-change: opacity;
	animation: haloPulse 2.8s ease-in-out infinite;
}

/* Scène 5 : scintillement FORT du calque d'étoiles '0' (p1). Deux copies en fusion
   « screen » qui pulsent à des rythmes décalés -> les étoiles flamboient. Position
   animée par GSAP (PANS.scene5.starfx) pour suivre exactement le calque d'étoiles. */
.scene5 .starfx {
	position: absolute; inset: -2.6%;
	background-image: url(../img/s5-p1.webp);
	background-size: cover; background-position-x: center; background-repeat: no-repeat;
	mix-blend-mode: screen; pointer-events: none; opacity: 0;
	will-change: opacity;
}
.scene5 .starfx--a { animation: twinkleA 2.0s ease-in-out infinite; }
.scene5 .starfx--b { animation: twinkleB 3.1s ease-in-out .4s infinite; }

/* ---- Page d'accueil ---- */
.welcome {
	position: fixed; inset: 0; z-index: 70; background: #000;
	display: flex; flex-direction: column;
	/* défilable : le bouton reste atteignable même sur écran court (téléphone en paysage) */
	overflow-y: auto; -webkit-overflow-scrolling: touch;
	text-align: center;
	opacity: 1; transition: opacity 1s ease;
}
.welcome.gone { opacity: 0; pointer-events: none; }
/* margin:auto -> centré quand ça tient, défilable SANS rogner le haut/bas quand ça déborde */
.welcome__inner { position: relative; margin: auto; width: 100%; max-width: 52rem; box-sizing: border-box; padding: clamp(14px, 4vh, 44px) 6vw; }
/* Constellation de chargement (l'hameçon de Māui / Scorpion) : les étoiles
   s'allument au fur et à mesure du préchargement. */
.welcome__constel {
	width: min(60vw, 30vh, 280px); height: auto; display: block; margin: 0 auto clamp(.6rem, 3vh, 2.2rem);
	overflow: visible;
}
/* Traits de liaison : très discrets au départ, plus marqués une fois chargé. */
.welcome__constel line { stroke: #fff; stroke-width: 6; opacity: .05; transition: opacity .8s ease; }
.welcome.loaded .welcome__constel line { opacity: .4; }
/* Étoiles (points fournis) : éteintes, puis allumées une à une au préchargement. */
.welcome__constel .cstar { fill: #fff; opacity: .1; transition: opacity .5s ease; }
.welcome__constel .cstar.lit { opacity: 1; }
.welcome.loaded .welcome__constel .cstar { animation: twinkleC 3.4s ease-in-out infinite; }
@keyframes twinkleC { 0%,100% { opacity: .65; } 50% { opacity: 1; } }
.welcome__loadtxt {
	margin-top: clamp(1rem, 3vh, 1.8rem); color: #7e8799;
	font: 600 12px/1 system-ui, sans-serif; letter-spacing: .3em; text-transform: uppercase;
}
.welcome.loaded .welcome__loadtxt { display: none; }
.welcome__title {
	color: #f4f1e8;
	font: 700 clamp(2.1rem, min(6.6vw, 8.5vh), 4.6rem)/1.06 Georgia, "Times New Roman", serif;
	letter-spacing: .01em; text-shadow: 0 2px 30px rgba(0,0,0,.6);
	opacity: 0; transform: scale(1.08); animation: welcomeIn 1.6s ease-out .3s forwards;
}
.welcome__sub {
	margin-top: clamp(.5rem, 1.6vh, 1.1rem); color: #cdd3e0;
	font: 400 clamp(.85rem, 2vw, 1.2rem)/1.4 system-ui, sans-serif;
	letter-spacing: .35em; text-transform: uppercase;
	opacity: 0; animation: welcomeIn 1.4s ease-out .9s forwards;
}
.welcome__instr {
	margin: clamp(.9rem, 3vh, 2rem) auto 0; max-width: 30rem; color: #8f98aa;
	font: 400 clamp(.82rem, 1.5vw, .98rem)/1.55 system-ui, sans-serif;
	opacity: 0; animation: welcomeIn 1.4s ease-out 1.4s forwards;
}
.welcome__instr strong { color: #eef1f7; }
/* Choix de la langue : les pastilles de la barre de lecture, en plus grand. */
.welcome__langs {
	margin-top: clamp(1rem, 4vh, 2.4rem);
	display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
	opacity: 0; animation: welcomeIn 1.4s ease-out 1.2s forwards;
}
.welcome .lang-btn { padding: 10px 15px; font-size: 13px; gap: 7px; }
.welcome .lang-btn .flag { font-size: 16px; }
.welcome .lang-btn .flag--mq { width: 18px; height: 12px; }
/* Les boutons n'apparaissent QUE lorsque tout est chargé (.welcome.loaded). */
.welcome__actions {
	margin-top: clamp(1rem, 3.5vh, 2.2rem);
	display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 16px;
	opacity: 0; transform: translateY(8px); pointer-events: none;
	transition: opacity .7s ease, transform .7s ease;
}
.welcome.loaded .welcome__actions { opacity: 1; transform: none; pointer-events: auto; }
.welcome__btn {
	display: inline-flex; align-items: center; gap: .65em; cursor: pointer;
	border: 1px solid rgba(255,255,255,.5); border-radius: 999px;
	background: rgba(255,255,255,.06); color: #f4f1e8;
	font: 600 clamp(.92rem, 1.7vw, 1.08rem)/1 system-ui, sans-serif;
	letter-spacing: .12em; text-transform: uppercase; padding: 1.05em 2em;
	transition: background .25s, transform .15s;
}
.welcome__btn:hover  { background: rgba(255,255,255,.16); }
.welcome__btn:active { transform: scale(.96); }
/* « Écouter » = l'action principale (doré) ; « Lire en silence » = discrète. */
.welcome__btn--ecoute { border-color: rgba(244,213,141,.85); background: rgba(244,213,141,.16); color: #fff; }
.welcome__btn--ecoute:hover { background: rgba(244,213,141,.28); }
.welcome__ic { font-size: 1.3em; flex: 0 0 auto; margin: -.2em 0; }
.welcome__btn--lecture { border-color: rgba(255,255,255,.26); background: transparent; color: #cdd3e0; }
/* Langue sans enregistrement : un seul bouton, « Commencer l'histoire ». */
.welcome.sans-voix .welcome__btn--lecture,
.welcome.sans-voix .welcome__ic { display: none; }
/* Écran court (téléphone en paysage) : on compacte pour que tout tienne d'emblée. */
@media (max-height: 560px) {
	.welcome__inner   { padding: 3vh 6vw; }
	.welcome__constel { width: min(26vw, 120px); margin-bottom: .7rem; }
	.welcome__title   { font-size: clamp(1.5rem, 6.5vw, 2.6rem); }
	.welcome__sub     { margin-top: .5rem; letter-spacing: .25em; }
	.welcome__instr   { margin-top: .9rem; }
	.welcome__langs   { margin-top: .8rem; gap: 6px; }
	.welcome .lang-btn { padding: 7px 11px; font-size: 12px; }
	.welcome__actions { margin-top: .9rem; }
	.welcome__btn     { padding: .8em 1.6em; }
	.welcome__loadtxt { margin-top: 1rem; }
}
@keyframes welcomeIn { to { opacity: 1; transform: scale(1); } }

/* « défiler » qui saute (deux bonds, puis une pause) : au départ, puis en rappel après
   la lecture de chaque page (relance.js). */
@keyframes hintSaut {
	0%, 34%, 100% { transform: translate(-50%, 0);     animation-timing-function: cubic-bezier(.3, 0, .5, 1); }
	10%           { transform: translate(-50%, -16px); animation-timing-function: cubic-bezier(.5, 0, .7, 1); }
	20%           { transform: translate(-50%, 0);     animation-timing-function: cubic-bezier(.3, 0, .5, 1); }
	27%           { transform: translate(-50%, -7px);  animation-timing-function: cubic-bezier(.5, 0, .7, 1); }
}
.hint.saute { animation: hintSaut 2s infinite; }
@media (prefers-reduced-motion: reduce) { .hint.saute { animation: none; } }

/* ---- Épilogue pédagogique (défile après l'histoire) ---- */
/* Outro : espace de scroll supplémentaire APRÈS l'épilogue (fond noir). */
.outro { height: 120vh; background: #000; }
/* Voile noir final : se remplit pendant le scroll dans l'outro -> la page se fond au noir. */
.final-black { position: fixed; inset: 0; z-index: 50; background: #000; opacity: 0; pointer-events: none; }
/* ---- Fin : page « contenus bonus » façon jeu vidéo (une seule page, à faire défiler) ---- */
.epilogue {
	--or: #f4d58d; --nuit: #0d1117;
	position: relative; color: #eef1f7; padding: 18vh 6vw 16vh; overflow: hidden;
	background:
		radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.7), transparent 60%),
		radial-gradient(1px 1px at 78% 9%, rgba(255,255,255,.6), transparent 60%),
		radial-gradient(1.5px 1.5px at 33% 42%, rgba(255,255,255,.55), transparent 60%),
		radial-gradient(1px 1px at 88% 37%, rgba(255,255,255,.5), transparent 60%),
		radial-gradient(1px 1px at 52% 71%, rgba(255,255,255,.5), transparent 60%),
		radial-gradient(1.5px 1.5px at 8% 83%, rgba(255,255,255,.45), transparent 60%),
		radial-gradient(1px 1px at 67% 92%, rgba(255,255,255,.5), transparent 60%),
		radial-gradient(ellipse 90% 40% at 50% 0%, rgba(40,70,120,.35), transparent 70%),
		linear-gradient(#000 0, #06101c 30%, #070d18 70%, #000 100%);
}
.epilogue p  { font: 400 clamp(1rem,1.5vw,1.18rem)/1.7 Georgia,serif; color: #dfe4ee; }
.epilogue em { font-style: italic; color: #fff; }
.epilogue strong { color: #f4f1e8; }
/* apparition au fil du défilement (bonus.js) */
.bonus-revele { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.bonus-revele.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .bonus-revele { opacity: 1; transform: none; transition: none; } }

/* Mise en page éditoriale, à la main : titres centrés en Georgia (graisse normale), beaucoup d'air,
   cadres au trait fin, aucune lueur ni dégradé de « carte de jeu ». Même nuit, même or. */
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.epilogue { --trait: rgba(238,241,247,.2); --doux: #aab2c3; }

/* En-tête : sommaire cliquable */
.bonus-hero { text-align: center; max-width: 52rem; margin: 0 auto 18vh; }
.bonus-hero__etiquette { font: italic 400 clamp(1rem, 1.6vw, 1.2rem)/1.4 Georgia, serif !important; color: var(--or) !important; }
.bonus-hero__titre { margin-top: .35em; font: 400 clamp(2.2rem, 6vw, 4.2rem)/1.08 Georgia, serif; letter-spacing: -.01em; color: #f4f1e8; }
.bonus-hero__succes { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 2.6em auto 0; max-width: 44rem; }
.bonus-hero__succes a {
	display: inline-flex; align-items: center; gap: .5em; padding: .55em 1.1em; border-radius: 999px;
	border: 1px solid var(--trait); color: #eef1f7; text-decoration: none;
	font: 400 .95rem/1 Georgia, serif; transition: border-color .2s, background .2s;
}
.bonus-hero__succes a:hover, .bonus-hero__succes a:focus-visible { border-color: var(--or); background: rgba(244,213,141,.06); outline: none; }
.bonus-hero__succes span { font-size: 1rem; }

/* Un bonus = titre centré, filet doré, puis le contenu dans une colonne de lecture */
.bonus { max-width: 44rem; margin: 0 auto 20vh; }
.bonus__titre { margin: 0; text-align: center; font: 400 clamp(1.7rem, 4vw, 2.7rem)/1.15 Georgia, serif; color: #f4f1e8; }
.bonus__titre::after { content: ''; display: block; width: 44px; height: 1px; margin: .7em auto 1.3em; background: var(--or); }
.bonus__intro { max-width: 40rem; margin: 0 auto 2em; }
.bonus__intro p { margin: 0 0 .5em; color: #cdd3e0 !important; }
.bonus__intro p:first-child { text-align: center; font-style: italic; margin-bottom: 1em; }
.bonus__carte { position: relative; padding: 1.6em 1.8em; border-radius: 18px; border: 1px solid var(--trait); }
.bonus__duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .bonus__duo { grid-template-columns: 1fr; } }
.bonus__saison { font: italic 400 1.15rem/1.2 Georgia, serif !important; margin-bottom: .7em; }
.bonus__carte--nia .bonus__saison  { color: #f4c460 !important; }
.bonus__carte--raro .bonus__saison { color: #8fb4e6 !important; }
.bonus__carte--nia  { border-color: rgba(244,196,96,.45); }
.bonus__carte--raro { border-color: rgba(143,180,230,.4); }
/* « Le savais-tu ? » : une bulle au trait fin, avec sa petite pointe */
.bonus__carte--astuce { border-radius: 22px; }
.bonus__carte--astuce::after {
	content: ''; position: absolute; left: 2.4em; bottom: -9px; width: 16px; height: 16px; transform: rotate(45deg);
	background: #070d18; border-right: 1px solid var(--trait); border-bottom: 1px solid var(--trait);
}

/* Panorama du ciel depuis la pointe Tahara'a (ciel.js) : plus large que les autres bonus */
.bonus:has(.pano) { max-width: 72rem; }
.pano { display: grid; gap: 18px; }
.pano__ciel { width: 100%; aspect-ratio: 2 / 1; min-height: 260px; height: auto; display: block; border-radius: 18px;
	box-shadow: 0 0 0 1px var(--trait);
	touch-action: none; cursor: grab; outline: none; }   /* gestes gérés par ciel.js, page comprise */
.pano__ciel:active { cursor: grabbing; }
/* poignée « lever la tête » posée sur le bord droit du ciel : un vrai contrôle tactile */
.pano__vue { position: relative; }
/* courte, en bas à droite : le bandeau de la boussole et ses étiquettes restent au-dessus, sans chevauchement */
.pano__tete { position: absolute; right: 10px; top: auto; height: clamp(104px, 32%, 180px); width: 38px; padding: 8px 0 12px;
	display: flex; flex-direction: column; align-items: center; gap: 6px; border-radius: 19px; background: rgba(5,9,18,.45);
	touch-action: none; cursor: ns-resize; outline: none; --tete: 0; }
.pano__tete:focus-visible .pano__tete-rail { box-shadow: 0 0 0 3px rgba(244,213,141,.6); }
.pano__tete-icone { font-size: 18px; line-height: 1; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.pano__tete-rail { position: relative; flex: 1; width: 8px; border-radius: 4px; min-height: 40px;
	background: rgba(5,9,18,.55); box-shadow: 0 0 0 1px rgba(244,213,141,.45) inset; }
.pano__tete-bouton { position: absolute; left: 50%; width: 24px; height: 24px; border-radius: 50%;
	top: calc((1 - var(--tete)) * 100%); transform: translate(-50%, -50%);
	background: #f4d58d; box-shadow: 0 0 0 2px #0d1117, 0 2px 8px rgba(0,0,0,.5); }
.pano__ciel:focus-visible { box-shadow: 0 0 0 3px rgba(244,213,141,.6); }
/* Trois colonnes fixes : date | heure | moment, puis saison | Pléiades | Matau, puis lune.
   Chaque case a la hauteur de sa phrase la plus longue (ciel.js, figeTextes) : rien ne bouge. */
.pano__infos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 1.6em; align-items: start; }
.pano__infos .ciel__aide { grid-column: 1 / -1; }
/* Gros plan de Matari'i (ciel.js, loupe) : à côté de la phrase sur la lune, taille fixe */
.pano__infos .ciel__loupe { grid-column: 2 / -1; grid-row: span 2; margin: .5em 0 0; }
.ciel__loupe-ciel { display: block; width: 100%; height: 220px; border-radius: 12px; box-shadow: 0 0 0 1px var(--trait); }
.epilogue .ciel__loupe-titre { margin: .45em 0 0; font: 400 .82rem/1.45 system-ui, sans-serif; color: var(--doux); }
.ciel__heure, .ciel__moment { font-weight: 700; color: #f4f1e8 !important; font-variant-numeric: tabular-nums; }
.bonus__intro p { margin: 0 0 .45em; }
.pano__infos .ciel__date::first-letter { text-transform: uppercase; }
/* Téléphone ou petite fenêtre : le ciel bord à bord, à la hauteur de l'écran visible (barres du
   navigateur déduites), sans cadre. En portrait, un ciel plus haut : ciel.js passe alors à un
   champ de 90° (deux fois plus grand) et la boussole se fait glisser pour tourner la tête. */
@media (max-width: 920px) {
	.pano__vue { width: 100vw; margin-left: calc(50% - 50vw); }
	.pano__ciel { border-radius: 0; box-shadow: none; aspect-ratio: auto; min-height: 0;
		height: min(50vw, calc(100vh - 12px)); height: min(50vw, calc(100svh - 12px)); }
}
@media (max-width: 920px) and (orientation: portrait) {
	.pano__ciel { height: clamp(420px, 72vh, 680px); height: clamp(420px, 72svh, 680px); }
}
/* Encadré sur écran étroit : date sur toute la largeur, heure et moment côte à côte, puis une
   phrase par ligne. Chaque case garde la hauteur de sa phrase la plus longue (figeTextes). */
@media (max-width: 600px) {
	.pano__infos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pano__infos .ciel__date, .pano__infos .ciel__saison, .pano__infos .ciel__astre { grid-column: 1 / -1; }
	.pano__infos .ciel__loupe { grid-column: 1 / -1; grid-row: auto; }
	.ciel__infos { padding: 1.1em 1.1em; }
}

/* Panneau d'informations sous le panorama */
.ciel__infos { padding: 1.4em 1.6em; border-radius: 18px; border: 1px solid var(--trait); }
.ciel__infos p { margin: .5em 0; }
.ciel__date { font-weight: 700; color: #f4f1e8 !important; }
.ciel__badge { display: inline-block; margin-right: .45em; padding: .2em .65em; border-radius: 999px;
	font: italic 400 .92rem/1.3 Georgia, serif; }
.ciel__badge--nia  { background: #f4c460; color: #0d1117; }
.ciel__badge--raro { background: #8fb4e6; color: #0d1117; }
.ciel__aide { margin-top: .9em; padding-top: 1em; border-top: 1px solid var(--trait); }
.epilogue .ciel__aide p, .ciel__touches li { font: 400 .86rem/1.6 system-ui, sans-serif; color: var(--doux); }
.epilogue .ciel__aide p { margin: 0 0 .9em; }
.epilogue .ciel__aide .ciel__aide-titre { margin: 0 0 .3em; color: #dfe4ee; font-weight: 600; }
.ciel__touches { list-style: none; margin: 0 0 .9em; padding: 0; }
.ciel__touches kbd { display: inline-block; min-width: 1.7em; padding: .05em .4em; border-radius: 5px; text-align: center;
	border: 1px solid var(--trait); border-bottom-width: 2px; font: 600 .8rem/1.4 system-ui, sans-serif; color: #eef1f7; }

/* Générique : comme la fin d'un film, rôle en italique doré, nom dessous, filets fins */
.bonus--generique { text-align: center; }
.epilogue .credits p { color: var(--doux); }
.epilogue .credits__roles { margin: 1.6em auto 0; max-width: 34rem; }
.epilogue .credits__roles span { display: block; padding: 1em 0; border-top: 1px solid var(--trait); font: 400 1.1rem/1.4 Georgia, serif; color: #f4f1e8; }
/* trois groupes (Création, Traductions, Voix) : un intitulé, puis les rôles entre filets */
.epilogue .credits__groupe { margin: 2.4em 0 .7em; font: 400 1.35rem/1.2 Georgia, serif; color: #f4f1e8; }
.epilogue .credits__groupe:first-child { margin-top: 0; }
.epilogue .credits__roles span:has(+ .credits__groupe), .epilogue .credits__roles span:last-child { border-bottom: 1px solid var(--trait); }
.epilogue .credits__roles strong { display: block; margin-bottom: .3em; font: italic 400 .95rem/1.3 Georgia, serif; color: var(--or); }
.replay {
	display: inline-flex; align-items: center; gap: .5em; margin-top: 2.4em; cursor: pointer;
	border: 1px solid var(--or); border-radius: 999px; background: transparent;
	color: #f4f1e8; font: 400 1.05rem/1 Georgia, serif; padding: .9em 1.8em; transition: background .25s;
}
.replay:hover { background: rgba(244,213,141,.1); }
.replay:active { transform: scale(.97); }
body.reduce .loader { display: none; }

/* Repli sans animation : scènes empilées verticalement, textes visibles */
body.reduce .viewport { height: auto; opacity: 1; }
body.reduce .scene { position: relative; inset: auto; opacity: 1 !important; height: 100vh; }
body.reduce .narration { opacity: 1 !important; }
/* Bonus 01 : un simple chapeau centré, sans cadre (comme le sous-titre d'une section) */
.bonus > .bonus__carte:not(.bonus__carte--astuce) { border: 0; padding: 0; text-align: center; }
.bonus > .bonus__carte:not(.bonus__carte--astuce) p { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: #e6e9f0; }
/* Sous-partie du calendrier : le ciel depuis la pointe du Tahara'a (la colonne de lecture reste étroite,
   seul le ciel prend toute la largeur) */
.bonus__sous-titre { margin: 3.4em 0 1em; text-align: center; font: italic 400 clamp(1.3rem, 2.6vw, 1.75rem)/1.2 Georgia, serif; color: #f4f1e8; }
.bonus:has(.pano) .bonus__duo { max-width: 44rem; margin-inline: auto; }
/* « Le savais-tu ? » : deux faits, en liste */
.bonus__liste { margin: 0; padding-left: 1.2em; }
.bonus__liste li { margin: 0 0 .7em; padding-left: .3em; font: 400 clamp(1rem,1.5vw,1.18rem)/1.7 Georgia, serif; color: #dfe4ee; }
.bonus__liste li:last-child { margin-bottom: 0; }
.bonus__liste li::marker { color: var(--or); }

/* Le Tārena : roue des 30 nuits (SVG, tarena.js) et fiche de la nuit. Tireo en haut, la lune au
   centre avec sa phase réelle ; chaque case est d'autant plus claire que la lune l'est cette nuit-là. */
.tarena { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 2em; align-items: center; margin: 1.5em 0 1.2em; }
.tarena__roue { width: 100%; height: auto; display: block; }
.tarena__secteur { fill: rgba(244,213,141, calc(.08 + .5 * var(--ecl))); stroke: rgba(7,13,24,.9); stroke-width: 1; cursor: pointer; transition: fill .2s; }
.tarena__secteur:hover { fill: rgba(244,213,141,.75); }
.tarena__secteur.actif { fill: #f4d58d; stroke: #fff6dc; stroke-width: 2; }
.tarena__secteur.saute { fill: rgba(143,180,230,.12); stroke-dasharray: 3 3; }   /* Mutu sautée (lunaison de 29 jours) */
.tarena__n { font: 600 9px/1 system-ui, sans-serif; fill: rgba(7,13,24,.85); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.tarena__lune-fond { fill: #1c2436; stroke: rgba(238,241,247,.15); }
.tarena__lune { fill: #f2efe2; }
.epilogue .tarena__date { margin: 0 0 .3em; font: italic 400 1rem/1.4 Georgia, serif; color: var(--doux); }
.epilogue .tarena__date::first-letter { text-transform: uppercase; }
.epilogue .tarena__nuit { margin: 0 0 .6em; }
.tarena__num { display: block; font: 600 .78rem/1.2 system-ui, sans-serif; letter-spacing: .08em; color: var(--or); }
.tarena__nom { display: block; font: 400 clamp(1.8rem, 4vw, 2.4rem)/1.15 Georgia, serif; color: #f4f1e8; }
.epilogue .tarena__conseil { margin: 0 0 1.2em; color: #dfe4ee; }
.tarena__boutons { display: flex; flex-wrap: wrap; gap: 8px; }
.tarena__boutons button { padding: .55em 1em; border-radius: 999px; border: 1px solid var(--trait); background: transparent; color: #eef1f7;
	font: 400 .92rem/1 Georgia, serif; cursor: pointer; }
.tarena__boutons button:hover, .tarena__boutons button:focus-visible { border-color: var(--or); outline: none; }
.epilogue .tarena__source { font: 400 .82rem/1.55 system-ui, sans-serif; color: var(--doux); }
@media (max-width: 640px) {
	.tarena { grid-template-columns: 1fr; gap: 1.2em; }
	.tarena__roue { max-width: 18rem; margin: 0 auto; }
}
