/* Casteria, le site : L'ACCUEIL EN SCÈNE (INTERFACES, 07/10 ; le propriétaire : « le même style [...] mobile et pc mais
   adapté à mon serveur avec mes images et informations [...] design, 3d, interaction, animation »). Chaque section a sa
   couleur (le soir du palais, le vert de l'île, le parchemin de la carte, le violet des boss, le rouge de la planète) et,
   entre deux, une bande qui les lie : des feuilles, un bord déchiré, des braises. Les choses du jeu sont des rendus de
   nos modèles, détourés, en couches (js/scene.js). Chargé après style.css, carrousel.css et voyage.css. */

:root {
  --orange: #FF8A2B; --orange-fonce: #C9531A; --orange-clair: #FFB45E;
  --nuit-3: #140A22; --violet-pan: #2A0F40; --vert-pan: #10351F; --parchemin-pan: #F2D7A3; --encre-pan: #4A2C12;
}

/* ---------- la barre du haut, en verre, posée au-dessus de la page ---------- */
.barre.verre { left: 50%; right: auto; top: 12px; width: min(1180px, 100% - 24px); transform: translateX(-50%); padding: 8px 14px 8px 18px;
  border-radius: 18px; background: rgba(24, 12, 36, .42); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
.barre.verre.posee { background: rgba(20, 10, 30, .86); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); padding: 6px 14px 6px 18px; }

/* ---------- les gestes : un bouton orange en relief, un bouton de verre ---------- */
.bouton-orange { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px 13px; border-radius: 14px; border: 0; text-decoration: none; cursor: pointer;
  font-family: "Lilita One", sans-serif; font-size: 20px; letter-spacing: .4px; color: #fff; text-shadow: 0 2px 0 rgba(120, 40, 0, .55);
  background: linear-gradient(180deg, var(--orange-clair), var(--orange) 55%, #F2741F); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 5px 0 var(--orange-fonce), 0 14px 26px rgba(201, 83, 26, .35);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.bouton-orange:hover { transform: translateY(-2px); filter: brightness(1.06); }
.bouton-orange:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), 0 2px 0 var(--orange-fonce), 0 8px 16px rgba(201, 83, 26, .3); }
.bouton-orange.grand { font-size: 23px; padding: 14px 26px 15px; }
.bouton-orange .triangle { width: 0; height: 0; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; filter: drop-shadow(0 2px 0 rgba(120, 40, 0, .5)); }
.bouton-verre { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 14px; text-decoration: none; font-weight: 700; font-size: 17px; color: #fff;
  background: rgba(33, 21, 45, .6); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .15s ease, background .2s ease; }
.bouton-verre:hover { background: rgba(50, 30, 66, .85); transform: translateY(-2px); }
/* LE DISCORD, à côté de « Jouer gratuitement » (19/10/2026, le propriétaire : « avec sur mobile un beau logo Discord et sur
   PC un beau logo et le texte Discord ! ») : la forme, la taille et le relief du bouton orange, au bleu de Discord (#5865F2,
   le logo blanc) : il se reconnaît d'un coup d'œil, il est de la nuit violette de l'image, et, froid à côté de l'orange, il
   ne lui prend pas la vedette. Le logo de la marque, en ligne (net à toute taille) ; sur un téléphone, le logo seul (plus
   bas : le mot reste dans la page, pour les lecteurs d'écran). Il mène à /discord. */
.bouton-discord { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px 13px; border-radius: 14px; border: 0; text-decoration: none; cursor: pointer; white-space: nowrap;
  font-family: "Lilita One", sans-serif; font-size: 20px; letter-spacing: .4px; color: #fff; text-shadow: 0 2px 0 rgba(28, 33, 110, .55);
  background: linear-gradient(180deg, #7C86F8, #5865F2 55%, #4E5AE6); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 5px 0 #3B44A8, 0 14px 26px rgba(88, 101, 242, .35);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.bouton-discord:hover { transform: translateY(-2px); filter: brightness(1.08); }
.bouton-discord:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), 0 2px 0 #3B44A8, 0 8px 16px rgba(88, 101, 242, .3); }
.bouton-discord.grand { font-size: 23px; padding: 14px 26px 15px; }
.bouton-discord .logo-discord { display: block; width: 1.3em; height: auto; flex: 0 0 auto; filter: drop-shadow(0 2px 0 rgba(28, 33, 110, .5)); }
.bouton-discord .mot { display: block; overflow: hidden; }
.bouton-orange:focus-visible, .bouton-verre:focus-visible, .bouton-discord:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.sur-titre { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--orange-clair); }
.sur-titre.encre { color: #B4501E; }

/* ============================ LE HAUT DE PAGE EN SCÈNE ============================ */
.vitrine-tete.scene-tete { min-height: 100svh; padding: 92px 0 34px; display: flex; flex-direction: column; justify-content: flex-end; text-align: center; overflow: hidden; background: #24122E; }
.vitrine-tete.scene-tete::before { background: linear-gradient(180deg, rgba(20, 10, 30, .55) 0%, rgba(20, 10, 30, 0) 22%, rgba(20, 10, 30, 0) 52%, rgba(20, 10, 30, .55) 74%, var(--vert-pan) 100%); }
.vitrine-tete.scene-tete::after { display: none; }
.scene-tete .fond { inset: -40px; }
.scene-tete .fond .pointeur { position: absolute; inset: 0; }
.scene-tete .fond img { width: 100%; height: 100%; object-fit: cover; object-position: 56% 40%; filter: saturate(1.15) contrast(1.05); animation: none; transform: none; }
/* (13/10/2026 ; le propriétaire : « pas juste une image de fond mais plusieurs de gauche a droite [...] 4 image de gauche a
   droite collé », « trop de bestiole par dessus ca fais moche ») LE FOND EN QUATRE PANNEAUX collés : le voyage de gauche à
   droite (ton île, un boss, la mer, la planète) ; chacun dérive à peine, à son rythme ; sur téléphone : deux par deux */
.scene-tete .fond.panneaux { inset: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.scene-tete .fond.panneaux .panneau { position: relative; overflow: hidden; }
.scene-tete .fond.panneaux .panneau + .panneau { border-left: 3px solid #140A22; }
.scene-tete .fond.panneaux img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.12) contrast(1.04); transform: scale(1.06); animation: panneau-derive 20s ease-in-out infinite alternate; }
.scene-tete .fond.panneaux .p1 img { object-position: 36% 50%; }
.scene-tete .fond.panneaux .p2 img { object-position: 60% 36%; animation-delay: -5s; }
.scene-tete .fond.panneaux .p3 img { object-position: 66% 50%; animation-delay: -10s; }
.scene-tete .fond.panneaux .p4 img { object-position: 50% 58%; animation-delay: -15s; }
@keyframes panneau-derive { from { transform: scale(1.06) translateY(0); } to { transform: scale(1.14) translateY(-1.5%); } }
html.photo .scene-tete .fond.panneaux img { animation: none; }
@media (prefers-reduced-motion: reduce) { .scene-tete .fond.panneaux img { animation: none; } }
@media (max-width: 760px) {
  .scene-tete .fond.panneaux { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .scene-tete .fond.panneaux .panneau + .panneau { border-left: 0; }
  .scene-tete .fond.panneaux .p2, .scene-tete .fond.panneaux .p4 { border-left: 2px solid #140A22; }
  .scene-tete .fond.panneaux .p3, .scene-tete .fond.panneaux .p4 { border-top: 2px solid #140A22; }
}
/* les rayons : de grands faisceaux tièdes qui tournent à peine */
.scene-tete .rayons { position: absolute; inset: -20%; z-index: -1; pointer-events: none; mix-blend-mode: screen; opacity: .55;
  background: conic-gradient(from 200deg at 62% 18%, transparent 0 8deg, rgba(255, 196, 120, .18) 11deg, transparent 15deg 26deg, rgba(255, 210, 140, .14) 29deg, transparent 34deg 48deg, rgba(255, 190, 110, .12) 52deg, transparent 58deg 360deg);
  animation: rayons 22s ease-in-out infinite alternate; }
@keyframes rayons { to { transform: rotate(5deg) scale(1.04); } }
/* les choses du jeu en volume */
.scene.sprites { position: absolute; inset: 0; height: auto; z-index: 0; pointer-events: none; }
.sprite { position: absolute; will-change: transform; }
.sprite .pointeur, .sprite .entree { position: relative; will-change: transform; }
.sprite img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 18px rgba(10, 4, 20, .5)); user-select: none; }
.sp-phenix { left: 5%; top: 15%; width: 14%; }
.sp-baleine { right: 4%; top: 13%; width: 17%; }
.sp-roi { left: 18%; bottom: 17%; width: 11%; }
.sp-yeti { left: -2%; bottom: -3%; width: 25%; }
.sp-kraken { right: -3%; bottom: -5%; width: 26%; }
.sp-caisse { right: 23%; bottom: 6%; width: 9%; }
/* l'arrivée : chaque chose entre de son côté, l'une après l'autre (seulement avec le script : sans lui, tout est là) */
.scene-js .entree { opacity: 0; transition: transform 1.2s cubic-bezier(.18, .9, .25, 1.12), opacity .7s ease; }
.scene-js .e-haut { transform: translateY(-140px) scale(.9); } .scene-js .e-bas { transform: translateY(160px) scale(.9); }
.scene-js .e-gauche { transform: translateX(-180px) rotate(-6deg); } .scene-js .e-droite { transform: translateX(180px) rotate(6deg); }
.scene-prete .entree { opacity: 1; transform: none; }
.sp-baleine .entree { transition-delay: .1s; } .sp-phenix .entree { transition-delay: .2s; } .sp-roi .entree { transition-delay: .35s; }
.sp-yeti .entree { transition-delay: .45s; } .sp-kraken .entree { transition-delay: .55s; } .sp-caisse .entree { transition-delay: .7s; }
/* le balancement */
.flotte { animation: flotte-sol 5s ease-in-out infinite; }
.f-vol { animation: flotte-vol 6s ease-in-out infinite; } .f-lent { animation: flotte-vol 8.5s ease-in-out -2s infinite; }
.f-sol { animation: flotte-sol 5.5s ease-in-out -1s infinite; } .f-vif { animation: flotte-vif 3.4s ease-in-out infinite; }
@keyframes flotte-vol { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(2deg); } }
@keyframes flotte-sol { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes flotte-vif { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
/* les poussières lumineuses */
.poussieres { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.poussieres span { position: absolute; bottom: -12px; width: var(--t); height: var(--t); border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #FFFBE6, rgba(255, 217, 138, .6) 45%, rgba(255, 217, 138, 0) 72%); animation: poussiere linear infinite; }
@keyframes poussiere { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: .9; } 80% { opacity: .6; } 100% { transform: translate(40px, -92svh); opacity: 0; } }
/* le centre : le logo géant et son reflet qui passe, la phrase, les gestes */
.scene-tete .centre { position: relative; z-index: 2; width: min(860px, 100% - 32px); margin: 0 auto; display: flex; flex-direction: column; align-items: center; flex: 1; }
.logo-geant { position: relative; width: min(330px, 46vw); margin: 0 auto auto; }
.logo-geant .logo { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); animation: flotte-sol 6s ease-in-out infinite; }
.logo-geant .reflet { position: absolute; inset: 0; pointer-events: none; -webkit-mask: url("../assets/logo/casteria-logo.png") center / contain no-repeat; mask: url("../assets/logo/casteria-logo.png") center / contain no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .7) 48%, transparent 58%) -150% 0 / 250% 100% no-repeat; animation: reflet 5.5s ease-in-out 1.6s infinite; }
@keyframes reflet { 0% { background-position: -150% 0; } 35%, 100% { background-position: 250% 0; } }
.vitrine-tete.scene-tete h1 { margin: 18px 0 0; font-size: clamp(32px, 4.2vw, 58px); line-height: 1.02; text-shadow: 0 4px 0 #140a03, 0 0 34px rgba(0, 0, 0, .45); }
.vitrine-tete.scene-tete h1 span { display: block; color: #fff; } .vitrine-tete.scene-tete h1 span.or { color: var(--or-clair); }
.scene-tete .accroche-heros { margin: 12px auto 0; max-width: 640px; padding: 0 16px; font-size: clamp(16px, 1.55vw, 21px); line-height: 1.35; font-weight: 600; color: #FFF6E0; text-shadow: 0 2px 8px rgba(0, 0, 0, .85), 0 0 22px rgba(0, 0, 0, .5); }
.scene-tete .gestes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.scene-tete .preuves { margin: 14px 0 0; font-size: 14px; color: #F1E6D0; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.scene-tete .preuves i { font-style: normal; margin: 0 8px; color: var(--or-clair); }

/* ============================ LES PANS DE COULEUR ET LEURS BANDES ============================ */
.pan { position: relative; padding: 110px 0; }
.pan h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.05; }
.pan .tete { text-align: center; max-width: 780px; margin: 0 auto 50px; }
.pan .tete p { font-size: 19px; margin: 14px 0 0; }
.pan-vert { background: radial-gradient(90% 70% at 80% 20%, rgba(108, 192, 74, .16), transparent 60%), linear-gradient(180deg, var(--vert-pan), #0B2616); color: #EFF8E8; }
.pan-violet { background: radial-gradient(80% 60% at 20% 0%, rgba(176, 122, 224, .2), transparent 60%), linear-gradient(180deg, var(--violet-pan), #1B0B2B); color: #F4EAFF; }
.pan-nuit { background: linear-gradient(180deg, #1B0B2B, var(--nuit-3)); color: #F4EAFF; }
.pan-parchemin { background: var(--parchemin-pan) url("../assets/matieres/parchemin.png") 0 0 / 96px 96px repeat; color: var(--encre-pan); image-rendering: pixelated; padding: 84px 0 110px; }
.pan-parchemin > * { image-rendering: auto; }
.deux-colonnes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: center; }
.deux-colonnes .texte p { font-size: 18px; }
.pan .gestes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* le feuillage qui déborde du haut du pan vert (un feuillage en pixels, dessiné ici) */
.feuillage.haut { position: absolute; left: 0; right: 0; top: -38px; height: 76px; z-index: 3; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='76' shape-rendering='crispEdges'%3E%3Cg fill='%232E6B1F'%3E%3Crect x='0' y='28' width='40' height='48'/%3E%3Crect x='36' y='16' width='48' height='60'/%3E%3Crect x='80' y='32' width='36' height='44'/%3E%3Crect x='112' y='8' width='44' height='68'/%3E%3Crect x='152' y='24' width='40' height='52'/%3E%3C/g%3E%3Cg fill='%233E8E2F'%3E%3Crect x='8' y='36' width='24' height='16'/%3E%3Crect x='44' y='24' width='24' height='20'/%3E%3Crect x='88' y='40' width='16' height='12'/%3E%3Crect x='120' y='16' width='24' height='16'/%3E%3Crect x='160' y='32' width='20' height='16'/%3E%3C/g%3E%3Cg fill='%236CC04A'%3E%3Crect x='12' y='36' width='8' height='8'/%3E%3Crect x='52' y='24' width='8' height='8'/%3E%3Crect x='124' y='16' width='8' height='8'/%3E%3Crect x='164' y='32' width='8' height='8'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 192px 76px repeat-x;
  filter: drop-shadow(0 -6px 10px rgba(0, 0, 0, .25)); }
/* le bord déchiré du parchemin, dessus et dessous */
.dechirure { position: absolute; left: 0; width: 100%; height: 48px; fill: var(--parchemin-pan); z-index: 2; pointer-events: none; filter: drop-shadow(0 -4px 6px rgba(0, 0, 0, .18)); }
.dechirure.dessus { top: -47px; }
.dechirure.dessous { bottom: -47px; filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .25)); }
/* de grandes feuilles aux coins du parchemin */
.feuille-coin { position: absolute; width: 170px; height: 170px; z-index: 3; pointer-events: none; opacity: .95;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170' viewBox='0 0 34 34' shape-rendering='crispEdges'%3E%3Cpath fill='%232E6B1F' d='M2 30h4v-4h4v-4h4v-4h4v-4h4v-4h4V6h4V2h2v10h-2v6h-2v4h-4v4h-4v2h-6v2h-8v2H2z'/%3E%3Cpath fill='%236CC04A' d='M8 26h4v-4h4v-4h4v-4h4v-4h4V8h2v4h-2v4h-4v4h-4v2h-4v2h-4v2H8z'/%3E%3Cpath fill='%23A8E07A' d='M14 22h2v-2h2v-2h2v-2h2v2h-2v2h-2v2h-2v2h-2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.feuille-coin.g { left: -30px; top: 30px; transform: rotate(-12deg); }
.feuille-coin.d { right: -34px; bottom: 10px; transform: scaleX(-1) rotate(-20deg); }

/* ---------- ton aventure commence ici ---------- */
.trois-gestes { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.trois-gestes li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; }
.trois-gestes b { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-family: "Lilita One", sans-serif; font-weight: 400; color: #fff; background: linear-gradient(180deg, var(--orange-clair), var(--orange)); box-shadow: 0 3px 0 var(--orange-fonce); }
.fenetre-launcher { position: relative; }
.fenetre-launcher .capture { width: 100%; height: auto; border-radius: 16px; border: 3px solid rgba(255, 255, 255, .16); box-shadow: 0 30px 60px rgba(0, 0, 0, .5); transform: rotate(2deg); }
.fenetre-launcher .sort { position: absolute; right: -6%; bottom: -14%; width: 40%; }
.fenetre-launcher .sort img { width: 100%; height: auto; filter: drop-shadow(0 16px 16px rgba(0, 0, 0, .5)); }
.on-t-attend { position: absolute; left: 6%; bottom: -12%; margin: 0; font-family: "Lilita One", sans-serif; font-size: 26px; color: var(--or-clair); transform: rotate(-6deg); text-shadow: 0 3px 0 #0B2616; }

/* ---------- la carte au trésor ---------- */
.carte-tresor { position: relative; height: 560px; max-width: 1000px; margin: 0 auto; }
.carte-tresor .fil { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #C0392B; stroke-width: 3; stroke-dasharray: 9 7; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .2)); }
.morceau { position: absolute; width: 210px; padding: 26px 18px 22px; text-align: center; transform: translate(-50%, -50%) rotate(var(--r, -2deg));
  background: #FBEBC6 url("../assets/matieres/parchemin.png") 0 0 / 96px 96px; color: var(--encre-pan);
  clip-path: polygon(3% 4%, 18% 0, 36% 3%, 55% 0, 74% 4%, 97% 1%, 100% 22%, 97% 45%, 100% 70%, 96% 97%, 76% 100%, 52% 96%, 30% 100%, 8% 97%, 0 76%, 3% 50%, 0 24%);
  filter: drop-shadow(0 10px 14px rgba(74, 44, 18, .3)); transition: transform 1s cubic-bezier(.2, .9, .25, 1.1), opacity .7s ease; }
.morceau img { position: absolute; left: -6px; top: -14px; width: 92px; height: auto; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .3)); }
.morceau img.pixel { width: 54px; left: 12px; top: 8px; }
.morceau img.rond { width: 74px; height: 74px; object-fit: cover; border-radius: 50%; border: 3px solid #C0392B; left: 6px; top: 6px; }
.morceau b { display: block; font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 58px; line-height: 1; color: var(--encre-pan); }
.morceau span { display: block; margin-top: 4px; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #8A5A2B; }
/* (19/10/2026, le propriétaire : « faut pas dire le nombre ! ») le morceau des boss dit un mot, plus large qu'un nombre : sur
   un ordinateur (le morceau de 210 px, son image dans le coin), un peu plus petit et à droite de l'image, qui le cachait */
@media (min-width: 961px) { .morceau b.mot { font-size: 52px; padding-left: 34px; } }
.m1 { left: 15%; top: 19.6%; --r: -4deg; } .m2 { left: 52%; top: 28.6%; --r: 2deg; } .m3 { left: 85%; top: 25%; --r: 4deg; }
.m4 { left: 25%; top: 75%; --r: 3deg; } .m5 { left: 76%; top: 76.8%; --r: -3deg; }
.scene-js .morceau.monte:not(.vu) { opacity: 0; transform: translate(-50%, -20%) rotate(calc(var(--r) * 5)) scale(.85); }
.m2 { transition-delay: .1s; } .m3 { transition-delay: .2s; } .m4 { transition-delay: .3s; } .m5 { transition-delay: .4s; }

/* ---------- ce qui monte en arrivant ---------- */
.scene-js .monte:not(.morceau) { transition: transform .8s cubic-bezier(.2, .9, .25, 1), opacity .7s ease; }
.scene-js .monte:not(.morceau):not(.vu) { opacity: 0; transform: translateY(40px); }

/* ---------- les boss (la pile, les panoplies) sur la nuit ---------- */
.pan-nuit.boss-bande .texte { padding-bottom: 0; }
.pan-nuit.boss-bande .geste { color: var(--orange-clair); }

/* la bande des braises, entre la nuit des boss et le rouge de la planète */
.bande-braises { position: relative; height: 140px; overflow: hidden; background: linear-gradient(180deg, var(--nuit-3), #2A0A08 70%, #0B0710); }
.bande-braises i { position: absolute; bottom: -10px; width: 6px; height: 6px; background: #FFB347; box-shadow: 0 0 10px #FF7A1F, 0 0 18px #FF5A1F; animation: braise 5s linear infinite; }
.bande-braises i:nth-child(1) { left: 6%; animation-delay: -1s; } .bande-braises i:nth-child(2) { left: 14%; animation-delay: -3.5s; width: 4px; height: 4px; }
.bande-braises i:nth-child(3) { left: 22%; animation-delay: -2s; } .bande-braises i:nth-child(4) { left: 31%; animation-delay: -4.2s; width: 5px; height: 5px; }
.bande-braises i:nth-child(5) { left: 40%; animation-delay: -.6s; } .bande-braises i:nth-child(6) { left: 49%; animation-delay: -2.8s; width: 4px; height: 4px; }
.bande-braises i:nth-child(7) { left: 58%; animation-delay: -1.7s; } .bande-braises i:nth-child(8) { left: 66%; animation-delay: -3.9s; width: 5px; height: 5px; }
.bande-braises i:nth-child(9) { left: 74%; animation-delay: -.3s; } .bande-braises i:nth-child(10) { left: 82%; animation-delay: -2.4s; }
.bande-braises i:nth-child(11) { left: 90%; animation-delay: -4.6s; width: 4px; height: 4px; } .bande-braises i:nth-child(12) { left: 96%; animation-delay: -1.2s; }
@keyframes braise { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(18px, -150px); opacity: 0; } }
.planete .planete-fond img { transform: scale(1.15); }

/* ---------- les nouveautés ---------- */
.nouveautes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.nouveaute { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.nouveaute-art img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.nouveaute-meta { display: flex; align-items: center; gap: 10px; margin: 14px 16px 0; font-size: 13px; color: #CDB9E0; }
.etiquette { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--orange-clair); border: 1px solid rgba(255, 180, 94, .55); padding: 2px 7px; }
.nouveaute h3 { margin: 8px 16px 0; font-size: 23px; color: #fff; }
.nouveaute p { margin: 8px 16px 18px; font-size: 15px; line-height: 1.5; color: #DCCDEB; }

/* ---------- la boutique : ses choses en couches ---------- */
.boutique-scene .puces { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.boutique-scene .puces li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.boutique-scene .puces img { width: 24px; height: 24px; }
.couches { position: relative; height: 440px; }
.couches .pointeur { position: absolute; }
.couches img { width: 100%; height: auto; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .5)); }
.couches .c1 { left: 2%; top: 0; width: 46%; } .couches .c2 { left: 30%; top: 26%; width: 46%; }
.couches .c3 { right: 6%; top: 6%; width: 16%; } .couches .c4 { left: 0; bottom: 0; width: 34%; }

/* ---------- le final ---------- */
.final { position: relative; isolation: isolate; overflow: hidden; padding: 140px 0 130px; color: #FFF1E0; background: #0B0710; }
.final-fond { position: absolute; inset: -30px; z-index: -2; }
.final-fond .pointeur { position: absolute; inset: 0; }
.final-fond img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 7, 16, .92) 0%, rgba(11, 7, 16, .7) 40%, rgba(11, 7, 16, .15) 75%), linear-gradient(180deg, #0B0710 0%, transparent 18%, transparent 80%, #0B0710 100%); }
.final h2 { font-size: clamp(44px, 6vw, 84px); color: #fff; text-shadow: 0 4px 0 #140a03; }
.final .texte p { font-size: 19px; }
.final-sprite { position: relative; display: flex; justify-content: center; }
.final-sprite .pointeur { width: min(380px, 80%); }
.final-sprite img { width: 100%; height: auto; filter: drop-shadow(0 22px 22px rgba(0, 0, 0, .6)); }
.etincelles i { position: absolute; width: 18px; height: 18px; background: #FFC24D; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); filter: drop-shadow(0 0 6px rgba(255, 179, 64, .6)); animation: scintille 2.8s ease-in-out infinite; }
.etincelles i:nth-child(1) { left: 58%; top: 18%; } .etincelles i:nth-child(2) { left: 72%; top: 30%; animation-delay: -.7s; width: 12px; height: 12px; }
.etincelles i:nth-child(3) { left: 88%; top: 22%; animation-delay: -1.4s; } .etincelles i:nth-child(4) { left: 64%; top: 70%; animation-delay: -2s; width: 10px; height: 10px; }
.etincelles i:nth-child(5) { left: 92%; top: 64%; animation-delay: -.3s; width: 14px; height: 14px; } .etincelles i:nth-child(6) { left: 52%; top: 46%; animation-delay: -1.1s; width: 9px; height: 9px; }
.etincelles i:nth-child(7) { left: 80%; top: 84%; animation-delay: -2.3s; } .etincelles i:nth-child(8) { left: 70%; top: 10%; animation-delay: -1.8s; width: 10px; height: 10px; }
@keyframes scintille { 0%, 100% { transform: scale(.6) rotate(0); opacity: .4; } 50% { transform: scale(1.1) rotate(20deg); opacity: 1; } }

/* ============================ LA TABLETTE ET LE TÉLÉPHONE ============================ */
@media (max-width: 960px) {
  .barre.verre { top: 8px; width: calc(100% - 16px); padding: 6px 10px; border-radius: 14px; }
  .deux-colonnes { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .nouveautes { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
  .carte-tresor { height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; padding-top: 10px; }
  .carte-tresor .fil { display: none; }
  .morceau { position: relative; left: auto; top: auto; width: auto; transform: rotate(var(--r)); }
  .scene-js .morceau.monte:not(.vu) { transform: translateY(30px) rotate(calc(var(--r) * 4)); }
  .m5 { grid-column: 1 / -1; justify-self: center; width: 70%; }
  .couches { height: 340px; max-width: 460px; margin: 0 auto; width: 100%; }
}
@media (max-width: 600px) {
  .vitrine-tete.scene-tete { padding: 70px 0 22px; }
  .sp-phenix { left: 2%; top: 12%; width: 26%; } .sp-baleine { right: 0; top: 10%; width: 30%; }
  .sp-roi, .sp-caisse { display: none; }
  .sp-yeti { left: -10%; bottom: 23%; width: 44%; } .sp-kraken { right: -12%; bottom: 22%; width: 46%; }
  .logo-geant { width: 62vw; margin-top: 8px; }
  .vitrine-tete.scene-tete h1 { font-size: 28px; }
  .scene-tete .gestes { gap: 8px; } .scene-tete .bouton-orange.grand { font-size: 19px; padding: 12px 18px 13px; } .scene-tete .bouton-verre { font-size: 15px; padding: 10px 14px; }
  .scene-tete .preuves { font-size: 12px; } .scene-tete .preuves i { margin: 0 4px; }
  .pan { padding: 80px 0; }
  .pan .tete p { font-size: 17px; }
  .morceau { padding: 22px 10px 16px; } .morceau b { font-size: 44px; } .morceau span { font-size: 11px; letter-spacing: 1px; } .morceau img { width: 64px; }
  .feuille-coin { width: 110px; height: 110px; }
  .final { padding: 100px 0 90px; } .final::before { background: linear-gradient(180deg, rgba(11, 7, 16, .9) 0%, rgba(11, 7, 16, .6) 55%, rgba(11, 7, 16, .9) 100%); }
  .final-sprite .pointeur { width: 60%; }
}

/* ============================ SANS MOUVEMENT, ET LES PHOTOS ============================ */
@media (prefers-reduced-motion: reduce) {
  .rayons, .poussieres, .flotte, .logo-geant .logo, .logo-geant .reflet, .bande-braises i, .etincelles i { animation: none !important; }
  .scene-js .entree, .scene-js .monte, .morceau { transition: none !important; opacity: 1 !important; }
}
html.photo .scene-js .entree, html.photo .scene-js .monte { opacity: 1; transform: none; transition: none; }
html.photo .scene-js .morceau { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r)); }
html.photo .rayons, html.photo .flotte, html.photo .logo-geant .logo { animation: none; }

/* les rendus de nos modèles du 07/10 (outils/boss_modeles, mer_modeles, animaux_modeles : détourés) */
.sp-fregate { right: 15%; top: 30%; width: 12%; }
.sp-fregate .entree { transition-delay: .3s; }
.morceau img[src$="fregate.webp"] { width: 78px; }
.final-sprite .pointeur { width: min(300px, 70%); }
@media (max-width: 600px) {
  .sp-fregate { right: 6%; top: 34%; width: 20%; }
}
/* les règles des anciennes scènes (style.css : .vitrine-tete .scene img en absolu, .vitrine-tete h1 span à .46em) ne
   valent pas ici */
.scene.sprites img { position: static; }
.vitrine-tete.scene-tete h1 span { font-size: 1em; margin: 0; line-height: 1.02; }

/* le papier des morceaux : la forme dechiree sur une couche a part, pour que l'ombre suive la dechirure */
.morceau { background: none; clip-path: none; isolation: isolate; filter: drop-shadow(0 12px 14px rgba(74, 44, 18, .32)); }
.morceau::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #FFF3D2 url("../assets/matieres/parchemin.png") 0 0 / 96px 96px; box-shadow: inset 0 0 0 2px rgba(138, 90, 43, .28);
  clip-path: polygon(3% 4%, 18% 0, 36% 3%, 55% 0, 74% 4%, 97% 1%, 100% 22%, 97% 45%, 100% 70%, 96% 97%, 76% 100%, 52% 96%, 30% 100%, 8% 97%, 0 76%, 3% 50%, 0 24%); }
/* le téléphone (les captures de 19:50 à 390 de large) : la barre tient sur une ligne, les choses du haut au-dessus du titre */
@media (max-width: 600px) {
  .barre.verre nav { gap: 8px; }
  .barre.verre nav a.boutique { font-size: 13px; }
  .barre.verre nav a.bouton.petit { font-size: 13px; padding: 2px 6px; border-width: 8px; border-image-width: 8px; }
  .sp-yeti { left: -8%; bottom: 36%; width: 38%; }
  .sp-fregate { right: 22%; top: 40%; width: 18%; }
}
@media (max-width: 600px) {
  .barre.verre nav a.boutique { font-size: 0; gap: 0; }
  .barre.verre nav a.boutique img { width: 26px; height: 26px; }
  .barre.verre .marque { font-size: 19px; }
}
/* rien ne dépasse sur le côté (sur un téléphone, un décor qui dépasse élargissait toute la page : 441 au lieu de 390) ;
   le haut et le bas restent libres pour les feuillages et les bords déchirés */
html, body { overflow-x: clip; }
.pan, .final, .bande-braises, .planete { overflow-x: clip; }
@media (max-width: 600px) {
  .barre.verre nav { border: 0; box-shadow: none; background: none; }
  .barre.verre nav::after, .barre.verre nav::before { display: none; }
  /* (la tête, 20:16) le petit logo reste dans la barre sur téléphone */
  .barre.verre.accueil .marque img { width: 32px; height: 32px; opacity: 1; margin-right: 0; }
  .barre.verre .marque { gap: 8px; }
}
/* la passe téléphone du propriétaire (20:12) : sur la carte, l'image AU-DESSUS du chiffre (elle ne le mange plus) ; le
   final et la boutique moins hauts */
@media (max-width: 600px) {
  .morceau { padding-top: 14px; }
  .morceau img { position: static; display: block; width: 62px; margin: -34px auto 2px; }
  .morceau img.pixel { width: 40px; margin: -24px auto 6px; }
  .morceau img.rond { width: 54px; height: 54px; margin: -30px auto 6px; }
  .morceau img[src$="fregate.webp"] { width: 54px; }
  .final-sprite .pointeur { width: 44%; }
  .final { padding-bottom: 60px; }
  .couches { height: 250px; max-width: 320px; }
}
/* le décor du haut en 2560 (le tournage du 07/10 à 20:05) : le palais vu de la rade au couchant */
.scene-tete .fond img { object-position: 42% 50%; filter: saturate(1.08) contrast(1.04); }

/* ============================ LE HAUT DE PAGE EN CINÉMA (14/10/2026) ============================
   Le propriétaire : « une hero section [...] faut que le texte, logo et tout aille PARFAITEMENT avec l'image [...] qu'elle
   fasse pas IA avec la disposition du texte, le centrage [...] épuré, magnifique, que ça fasse WAW ». UNE image en plein
   écran (sa version portrait sur un écran haut et étroit : le <picture> de la page), qui avance très lentement ; un voile
   LOCAL (le haut pour la barre, le bas et le coin bas gauche pour le texte), jamais un rectangle ; le texte posé en bas,
   comme le pied d'une affiche de film : le titre à gauche, la phrase et les gestes à droite, sur la mer sombre ; l'un sous
   l'autre sur un écran étroit. L'accueil (le décollage) et la page des pirates (la bataille). */
.vitrine-tete.plein-cadre { min-height: 100svh; padding: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; text-align: left; overflow: hidden; background: #0B0714; }
.vitrine-tete.plein-cadre.page-cinema { min-height: min(100svh, 980px); }
.vitrine-tete.plein-cadre.page-cinema h1 { font-size: clamp(34px, 4vw, 60px); line-height: 1.02; }
.vitrine-tete.plein-cadre::before { background:
    linear-gradient(180deg, rgba(8, 4, 16, .55) 0%, rgba(8, 4, 16, 0) 17%),
    radial-gradient(78% 64% at 8% 100%, rgba(8, 4, 16, .8) 0%, rgba(8, 4, 16, .45) 44%, rgba(8, 4, 16, 0) 74%),
    linear-gradient(0deg, #0B0714 0%, rgba(11, 7, 20, .84) 11%, rgba(11, 7, 20, .3) 30%, rgba(11, 7, 20, 0) 46%); }
.vitrine-tete.plein-cadre::after { display: none; }
.vitrine-tete.plein-cadre .fond { inset: 0 0 auto 0; overflow: hidden; }
.vitrine-tete.plein-cadre .plan { position: absolute; inset: 0; transform-origin: 44% 36%; animation: travelling 36s ease-in-out infinite alternate; will-change: transform; }
.vitrine-tete.plein-cadre .plan picture { display: block; width: 100%; height: 100%; }
.vitrine-tete.plein-cadre .plan img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 8% 50%; filter: none; transform: none; animation: none; }
.vitrine-tete.plein-cadre.page-cinema .plan img { object-position: 50% 50%; }
.vitrine-tete.plein-cadre.page-cinema .plan { transform-origin: 62% 40%; }
@keyframes travelling { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-.9%, -1.3%, 0); } }
/* les lueurs, posées par js/scene.js sur l'image exacte (le trou noir, la flamme de la fusée, le phare) ; sans le script,
   rien (elles restent invisibles) */
.plein-cadre .lueur { position: absolute; left: 0; top: 0; width: var(--d, 0px); height: var(--d, 0px); margin: calc(var(--d, 0px) / -2) 0 0 calc(var(--d, 0px) / -2); pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity 1.8s ease .4s; }
.plein-cadre .lueur.placee { opacity: 1; }
.plein-cadre .lueur::before { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.plein-cadre .lueur-trou::before { background: radial-gradient(closest-side, rgba(255, 140, 60, 0) 60%, rgba(255, 158, 84, .62) 71%, rgba(255, 104, 46, .24) 83%, rgba(255, 104, 46, 0) 100%); animation: trou-respire 7s ease-in-out infinite; }
.plein-cadre .lueur-flamme { width: calc(var(--d, 0px) * .62); height: calc(var(--d, 0px) * 1.3); margin: calc(var(--d, 0px) * -.65) 0 0 calc(var(--d, 0px) * -.31); }
.plein-cadre .lueur-flamme::before { background: radial-gradient(closest-side, rgba(255, 232, 170, .62), rgba(255, 160, 70, .3) 48%, rgba(255, 120, 40, 0) 100%); animation: flamme-vacille 1.9s ease-in-out infinite; }
.plein-cadre .lueur-phare::before { background: radial-gradient(closest-side, rgba(255, 240, 190, .9), rgba(255, 206, 120, .36) 45%, rgba(255, 206, 120, 0) 100%); animation: phare-respire 3.4s ease-in-out infinite; }
@keyframes trou-respire { 0%, 100% { opacity: .42; transform: scale(.98); } 50% { opacity: 1; transform: scale(1.035); } }
@keyframes flamme-vacille { 0%, 100% { opacity: .74; transform: scale(1, 1); } 22% { opacity: .96; transform: scale(1.04, 1.07); } 46% { opacity: .66; transform: scale(.97, .95); } 71% { opacity: 1; transform: scale(1.05, 1.1); } }
@keyframes phare-respire { 0%, 100% { opacity: .3; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.14); } }
/* les braises qui montent et les étoiles qui scintillent (js/scene.js) */
.plein-cadre .ciel-vivant { position: absolute; left: 0; top: 0; pointer-events: none; }
/* le texte : le pied de l'affiche, aligné sur le logo de la barre */
.cinema-texte { position: relative; z-index: 2; width: min(1144px, 100% - 60px); margin: 0 auto; padding: 0 0 clamp(60px, 9.5svh, 104px); display: flex; align-items: flex-end; justify-content: space-between; gap: 26px 56px; }
.cinema-titre { flex: 0 1 auto; min-width: 0; }
.cinema-geste { flex: 0 0 auto; width: min(410px, 36%); padding-bottom: 8px; }
.plein-cadre .sur-ligne { display: block; margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: #FFF0CC; /* (86, 03/11/2026, l'audit du site, n° 10) lisible sur un ciel clair : un liseré sombre serré, puis deux halos */ text-shadow: 0 0 2px rgba(14, 6, 28, .95), 0 1px 3px rgba(14, 6, 28, .9), 0 0 12px rgba(14, 6, 28, .85), 0 0 26px rgba(14, 6, 28, .6); }
.plein-cadre .sur-ligne::before { content: ""; display: inline-block; vertical-align: middle; width: 40px; height: 2px; margin: -3px 12px 0 0; background: linear-gradient(90deg, var(--or-clair), rgba(255, 215, 94, .15)); }
.plein-cadre .sur-ligne i { font-style: normal; color: var(--or-clair); }
.vitrine-tete.plein-cadre h1 { margin: 0; font-size: clamp(40px, 5.2vw, 80px); line-height: .98; letter-spacing: .3px; color: #fff; text-shadow: 0 3px 0 rgba(24, 8, 4, .5), 0 14px 42px rgba(0, 0, 0, .6); }
.vitrine-tete.plein-cadre h1 span { display: block; font-size: 1em; margin: 0; line-height: inherit; color: #fff; }
.vitrine-tete.plein-cadre h1 span.or { color: var(--or-clair); background: linear-gradient(180deg, #FFE895 8%, #FFC94A 58%, #F4A23A 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; filter: drop-shadow(0 3px 0 rgba(70, 24, 0, .55)) drop-shadow(0 12px 26px rgba(0, 0, 0, .5)); }
.cinema-accroche { margin: 0 0 20px; font-size: clamp(17px, 1.32vw, 20px); line-height: 1.45; font-weight: 500; color: #FFF4E2; /* (86, 03/11/2026, n° 10) le texte sur les tentacules du Kraken : un liseré serré et un halo large */ text-shadow: 0 0 2px rgba(10, 4, 22, .95), 0 1px 3px rgba(10, 4, 22, .9), 0 2px 14px rgba(10, 4, 22, .9), 0 0 30px rgba(10, 4, 22, .65); }
.vitrine-tete.plein-cadre .gestes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 0; }
.vitrine-tete.plein-cadre .gestes .bouton-orange.grand, .vitrine-tete.plein-cadre .gestes .bouton-discord.grand { font-size: 22px; padding: 14px 24px 15px; }
.lien-doux { display: inline-flex; align-items: center; gap: 10px; padding: 8px 2px; color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; text-shadow: 0 2px 8px rgba(0, 0, 0, .75);
  background: linear-gradient(var(--or-clair), var(--or-clair)) 0 100% / 0 2px no-repeat; transition: background-size .3s ease, color .2s ease; }
.lien-doux:hover { color: #FFF1C8; background-size: 100% 2px; }
.lien-doux:focus-visible { outline: 3px solid #fff; outline-offset: 4px; background-size: 100% 2px; }
.lien-doux .chevron { width: 9px; height: 9px; border-right: 2px solid var(--or-clair); border-bottom: 2px solid var(--or-clair); transform: translateY(-3px) rotate(45deg); transition: transform .3s ease; }
.lien-doux:hover .chevron { transform: translateY(1px) rotate(45deg); }
.plein-cadre .preuves { margin: 16px 0 0; font-size: 13.5px; line-height: 1.4; color: #E9DDF5; text-shadow: 0 1px 6px rgba(0, 0, 0, .85); }
.plein-cadre .preuves i { font-style: normal; margin: 0 7px; color: var(--or-clair); }
/* (29/10/2026, le propriétaire) « Crack accepté », bien visible sous les boutons : une pastille d'or sur verre sombre */
.crack-accepte { display: inline-flex; align-items: center; gap: 9px; margin: 18px 0 0; padding: 8px 16px 8px 12px;
  border: 2px solid var(--or); border-radius: 999px; background: rgba(20, 10, 34, .72); color: #FFF6DA; font-weight: 700;
  font-size: 15.5px; line-height: 1.25; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); box-shadow: 0 0 0 4px rgba(215, 164, 33, .18), 0 6px 18px rgba(0, 0, 0, .45); }
.crack-accepte .coche { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--vert-clair); position: relative; }
.crack-accepte .coche::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px;
  border-right: 3px solid #12300b; border-bottom: 3px solid #12300b; transform: rotate(45deg); }
@media (max-width: 560px) { .crack-accepte { font-size: 13.5px; padding: 7px 12px 7px 10px; gap: 7px; } }
/* l'arrivée : le texte monte en fondu, l'un après l'autre (du CSS seul : sans script, il arrive quand même) */
.cinema-titre > *, .cinema-geste > * { animation: cinema-entree 1.1s cubic-bezier(.2, .75, .2, 1) both; }
.plein-cadre .sur-ligne { animation-delay: .15s; } .vitrine-tete.plein-cadre h1 { animation-delay: .3s; } .cinema-accroche { animation-delay: .6s; }
.vitrine-tete.plein-cadre .gestes { animation-delay: .75s; } .plein-cadre .preuves { animation-delay: .9s; }
@keyframes cinema-entree { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (max-width: 1000px) {
  .cinema-texte { flex-direction: column; align-items: flex-start; }
  .cinema-geste { width: auto; max-width: 540px; padding-bottom: 0; }
}
@media (max-width: 600px) {
  .vitrine-tete.plein-cadre::before { background: linear-gradient(180deg, rgba(8, 4, 16, .5) 0%, rgba(8, 4, 16, 0) 13%),
    linear-gradient(0deg, #0B0714 0%, rgba(11, 7, 20, .88) 20%, rgba(11, 7, 20, .45) 37%, rgba(11, 7, 20, 0) 55%); }
  .cinema-texte { width: calc(100% - 40px); gap: 16px; padding-bottom: 56px; }
  .vitrine-tete.plein-cadre h1 { font-size: min(9.6vw, 46px); }
  .plein-cadre .sur-ligne { font-size: 10.5px; letter-spacing: 1.6px; margin-bottom: 12px; } .plein-cadre .sur-ligne::before { width: 22px; margin-right: 9px; }
  .cinema-accroche { font-size: 16px; margin-bottom: 16px; }
  .vitrine-tete.plein-cadre .gestes { gap: 10px 18px; }
  .vitrine-tete.plein-cadre .gestes .bouton-orange.grand, .vitrine-tete.plein-cadre .gestes .bouton-discord.grand { font-size: 19px; padding: 12px 18px 13px; }
  /* le Discord sur un téléphone : le logo seul, plus grand, dans un bouton presque carré de la hauteur du bouton orange */
  .vitrine-tete.plein-cadre .gestes .bouton-discord.grand { gap: 0; padding-left: 12px; padding-right: 12px; }
  .vitrine-tete.plein-cadre .gestes .bouton-discord .mot { width: 0; }
  .vitrine-tete.plein-cadre .gestes .bouton-discord .logo-discord { width: 1.75em; }
  .lien-doux { font-size: 16px; }
  .plein-cadre .preuves { font-size: 12px; margin-top: 12px; } .plein-cadre .preuves i { margin: 0 4px; }
}
@media (max-aspect-ratio: 2/3) {
  .vitrine-tete.plein-cadre .plan img, .vitrine-tete.plein-cadre.page-cinema .plan img { object-position: 50% 50%; }
  .vitrine-tete.plein-cadre .plan { transform-origin: 40% 52%; }
}
/* LE GRAND VOYAGE en tête de la route du joueur : l'image d'un bord à l'autre, le titre posé sur sa mer sombre */
.pan.voyage-cinema { padding-top: 0; }
.voyage-plan { position: relative; height: min(54vw, 860px); min-height: 380px; overflow: hidden; }
.voyage-plan picture { display: block; width: 100%; height: 100%; }
.voyage-plan img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.voyage-plan::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, var(--violet-pan) 0%, rgba(42, 15, 64, .78) 15%, rgba(42, 15, 64, 0) 46%), linear-gradient(180deg, rgba(20, 8, 30, .4) 0%, rgba(20, 8, 30, 0) 20%); }
.voyage-cinema > .dedans { position: relative; z-index: 1; margin-top: max(-15vw, -240px); }
.voyage-cinema .tete h2, .voyage-cinema .tete p { text-shadow: 0 2px 14px rgba(10, 4, 20, .85); }
@media (max-aspect-ratio: 2/3) {
  .voyage-plan { height: auto; min-height: 0; aspect-ratio: 1536 / 2752; }
  .voyage-plan img { object-position: 50% 50%; }
  .voyage-cinema > .dedans { margin-top: -150px; }
}
/* LA BANNIÈRE DU CLASSEMENT : elle porte son titre ; montrée entière (jamais rognée), dans son cadre, sous la barre */
.vitrine-tete.banniere { min-height: 0; padding: 94px 0 30px; display: block; overflow: visible; background: radial-gradient(70% 55% at 50% 18%, rgba(120, 70, 190, .28), rgba(120, 70, 190, 0) 70%), linear-gradient(180deg, #0E0A1C, var(--nuit)); }
.vitrine-tete.banniere::before, .vitrine-tete.banniere::after { display: none; }
.vitrine-tete.banniere .fond { position: relative; inset: auto; z-index: 0; height: auto; width: min(1320px, 100% - 32px); margin: 0 auto; border-radius: 22px; overflow: hidden; background: #120C22; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 215, 94, .24), 0 0 60px rgba(255, 170, 60, .12); }
.vitrine-tete.banniere .fond picture { display: block; }
.vitrine-tete.banniere .fond img { display: block; width: 100%; height: auto; object-fit: contain; filter: none; transform: none; animation: none; }
.vitrine-tete.banniere .banniere-texte { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; width: min(1320px, 100% - 32px); margin: 22px auto 0; padding: 0 6px; }
.vitrine-tete.banniere .accroche { margin: 0; max-width: 44em; font-size: 17px; color: #F1E6FF; }
.vitrine-tete.banniere .gestes { margin: 0; }
@media (max-width: 700px) {
  .vitrine-tete.banniere { padding: 78px 0 24px; }
  .vitrine-tete.banniere .fond { width: calc(100% - 24px); border-radius: 18px; }
  .vitrine-tete.banniere .banniere-texte { width: calc(100% - 24px); flex-direction: column; align-items: flex-start; }
  .vitrine-tete.banniere .accroche { font-size: 16px; }
}
/* sans mouvement, et les photos : rien ne bouge, tout est là */
@media (prefers-reduced-motion: reduce) {
  .vitrine-tete.plein-cadre .plan, .plein-cadre .lueur::before, .cinema-titre > *, .cinema-geste > * { animation: none !important; }
  .plein-cadre .ciel-vivant { display: none; }
}
html.photo .vitrine-tete.plein-cadre .plan, html.photo .cinema-titre > *, html.photo .cinema-geste > * { animation: none; }
/* (22/10/2026, les hauts en cinéma des images du propriétaire : « Par où commencer », la boutique, le vote) SUR UN ÉCRAN EN
   HAUTEUR, l'image portrait se montre ENTIÈRE, calée en haut : son sujet (Gaspard, la Wyverne, la Caisse de Vote) reste
   au-dessus du texte au lieu de passer dessous ; elle se fond dans la nuit du bas de la page, sans couture */
@media (max-aspect-ratio: 2/3) {
  .vitrine-tete.plein-cadre.portrait-entier .fond { height: min(100%, 179.2vw); }
  .vitrine-tete.plein-cadre.portrait-entier .fond::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; pointer-events: none; background: linear-gradient(180deg, rgba(11, 7, 20, 0), #0B0714); }
}
