/* ===== Les Portes de l'Olympe : carte, écrans de départ et de jeu, cinématiques =====
   Fichier dédié à la saga mythologique, chargé après style.css. Décors 100 % CSS/emojis.
   Principe : le style de base décrit l'état final ; les animations partent de l'état initial
   (fill-mode both), si bien que le mouvement réduit affiche directement une scène lisible. */

/* --- Carte du hub : temple sur la montagne, nuages et éclairs --- */
.saga-mythologie { background: linear-gradient(180deg, #1b2457, var(--fond) 78%); }
.saga-mythologie .saga-nom { color: #ffe9a8; }
.vignette-olympe { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.vignette-olympe > span { position: absolute; display: block; }
.vo-halo { left: calc(50% - 60px); top: 6px; width: 120px; height: 90px; border-radius: 50%; background: radial-gradient(circle, #f5c54255, transparent 70%); animation: vo-halo 4s ease-in-out infinite alternate; }
.vo-mont { left: 10%; right: 10%; top: 58px; height: 70px; background: linear-gradient(180deg, #3a4a86, #18275a); clip-path: polygon(0 100%, 30% 35%, 42% 45%, 50% 18%, 58% 45%, 70% 35%, 100% 100%); }
.vignette-olympe .vo-temple { left: calc(50% - 26px); top: 28px; width: 52px; height: 34px; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 5px; z-index: 1; }
.vo-temple::before { content: ""; position: absolute; left: -3px; right: -3px; top: 0; height: 11px; background: #fff3cf; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.vo-temple::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: -3px; height: 4px; background: #fff3cf; }
.vo-temple i { display: block; width: 5px; height: 21px; background: linear-gradient(90deg, #d9cfb0, #fffaf0 50%, #d9cfb0); }
.vo-nuage { height: 16px; border-radius: 999px; background: #eef2ffcc; box-shadow: 14px -6px 0 2px #eef2ffcc; animation: vo-nuage 9s ease-in-out infinite alternate; }
.vo-nuage.n1 { left: 8%; top: 62px; width: 46px; }
.vo-nuage.n2 { right: 10%; top: 50px; width: 38px; animation-delay: -4.5s; }
.vo-eclair { right: 22%; top: 2px; width: 14px; height: 44px; background: #fff6b0; clip-path: polygon(40% 0, 100% 0, 60% 40%, 95% 40%, 15% 100%, 40% 52%, 0 52%); filter: drop-shadow(0 0 6px #ffe66d); opacity: 0; animation: vo-eclair 5s steps(1) infinite; }
@keyframes vo-halo { from { opacity: 0.55; transform: scale(0.9); } to { opacity: 1; transform: scale(1.08); } }
@keyframes vo-nuage { from { transform: translateX(-6px); } to { transform: translateX(8px); } }
@keyframes vo-eclair { 0%, 78%, 84%, 100% { opacity: 0; } 80%, 86% { opacity: 1; } }

/* --- Écrans de départ et de jeu : colonnes, frise grecque, ciel qui change selon le chapitre --- */
.myth-decor { display: none; position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#hp-scene > .myth-decor, #hi-scene > .myth-decor { position: absolute; z-index: 0; }
[data-theme="mythologie"] .myth-decor { display: block; }
[data-theme="mythologie"] .hp-ciel { display: none; }
.myth-decor > span { position: absolute; display: block; }
.md-halo { left: 50%; top: -120px; width: 520px; height: 320px; margin-left: -260px; border-radius: 50%; background: radial-gradient(ellipse, #f5c54233, transparent 70%); animation: vo-halo 6s ease-in-out infinite alternate; }
.md-colonne { top: 8%; bottom: 34px; width: 46px; background: repeating-linear-gradient(90deg, #cfc6ad 0 4px, #f4eee0 4px 10px); opacity: 0.28; }
.md-colonne::before, .md-colonne::after { content: ""; position: absolute; left: -8px; right: -8px; height: 14px; background: #f4eee0; }
.md-colonne::before { top: -14px; }
.md-colonne::after { bottom: -14px; }
.md-colonne.g { left: 3%; }
.md-colonne.d { right: 3%; }
.md-nuage { width: 140px; height: 30px; border-radius: 999px; background: #eef2ff14; box-shadow: 40px -14px 0 4px #eef2ff10; animation: vo-nuage 14s ease-in-out infinite alternate; }
.md-nuage.n1 { left: 12%; top: 12%; }
.md-nuage.n2 { right: 14%; top: 26%; animation-delay: -7s; }
.md-frise { left: 0; right: 0; bottom: 0; height: 22px; opacity: 0.45; border-top: 2px solid var(--or); border-bottom: 2px solid var(--or); background:
  linear-gradient(var(--or), var(--or)) 0 4px / 100% 2px no-repeat,
  repeating-linear-gradient(90deg, var(--or) 0 3px, transparent 3px 12px, var(--or) 12px 15px, transparent 15px 24px) 0 4px / 100% 12px no-repeat; }
.hp-scene[data-theme="mythologie"], .hi-scene[data-theme="mythologie"] { border-color: #b8933a; background: linear-gradient(180deg, #0e1a45 0%, #1c2a66 60%, #2b2a5c 100%); }
.hp-scene[data-theme="mythologie"][data-chapitre="2"] { background: linear-gradient(180deg, #2a0f1a 0%, #4a1a1c 60%, #20152f 100%); }
.hp-scene[data-theme="mythologie"][data-chapitre="3"] { background: linear-gradient(180deg, #06263a 0%, #0d3b4f 60%, #102246 100%); }
.hp-scene[data-theme="mythologie"][data-chapitre="4"] { background: linear-gradient(180deg, #1d150e 0%, #3a2a18 60%, #1a1430 100%); }
.hp-scene[data-theme="mythologie"][data-chapitre="5"] { background: linear-gradient(180deg, #04140d 0%, #12301f 60%, #1a1030 100%); }
[data-theme="mythologie"] .hp-parchemin { background: linear-gradient(180deg, #fbf8f1, #ece4d2); border-top: 6px solid var(--or); box-shadow: 0 10px 30px #00000080, inset 0 4px 0 #b8933a55; }
[data-theme="mythologie"] .hp-parchemin input[type="text"] { background: #fffdf7; border-color: #c9b07a; }
[data-theme="mythologie"] .hp-chapitre { color: #ffe08a; text-shadow: 0 0 14px #f5c54266; }
[data-theme="mythologie"] .hp-avatar { filter: drop-shadow(0 0 12px #f5c54288); }
[data-theme="mythologie"] .hp-vies .vie { filter: drop-shadow(0 0 5px #f5c54299); }
[data-theme="mythologie"] .hp-barre > span { background: linear-gradient(90deg, #b8933a, #fff1b8); }
[data-theme="mythologie"] .rayon-joueur { background: linear-gradient(90deg, transparent, #fff6b0, #f5c542); box-shadow: 0 0 18px 4px #f5c542aa; }
[data-theme="mythologie"] .rayon-ennemi { background: linear-gradient(270deg, transparent, #8b5cf6, #d9c8ff); box-shadow: 0 0 18px 4px #8b5cf6aa; }
[data-theme="mythologie"] .hi-chapitres li { background: #0b1430d9; border-color: #b8933a66; }
[data-theme="mythologie"] .hi-niveau, [data-theme="mythologie"] .hi-sur-titre { color: #ffe08a; }
[data-theme="mythologie"] .hi-infos, [data-theme="mythologie"] .hi-retour, [data-theme="mythologie"] .hp-sauver { color: var(--texte); }

/* --- Cinématiques : base commune --- */
.myth-scene { position: absolute; inset: 0; display: block; overflow: hidden; pointer-events: none; }
.myth-scene > span { position: absolute; display: block; }
.my-ciel { inset: 0; background: linear-gradient(180deg, #0a1236, #1d2a66 70%, #2d3c7a); }
.my-nuage { height: 9%; border-radius: 999px; background: #2b355f; box-shadow: 4vw -2vw 0 1vw #2b355f; animation: my-nuage 12s ease-in-out infinite alternate; }
.my-nuage.n1 { left: 6%; top: 10%; width: 22%; }
.my-nuage.n2 { left: 42%; top: 4%; width: 18%; animation-delay: -4s; }
.my-nuage.n3 { right: 6%; top: 14%; width: 20%; animation-delay: -8s; }
.my-mer { left: 0; right: 0; bottom: 0; height: 26%; background: repeating-linear-gradient(170deg, #0f2c5c 0 14px, #13386f 14px 26px); animation: my-vagues 3s ease-in-out infinite alternate; }

/* Demi-dieu : tunique blanche, cape rouge, ceinture dorée */
.my-heros { width: 44px; height: 108px; }
.my-heros > span { position: absolute; display: block; }
.my-heros .tete { left: 13px; top: 0; width: 18px; height: 19px; border-radius: 50%; background: #e2b98d; box-shadow: inset 0 6px 0 #4a2a12; }
.my-heros .cape { left: 5px; top: 20px; width: 34px; height: 62px; background: #b3262e; clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%); }
.my-heros .tunique { left: 10px; top: 19px; width: 24px; height: 46px; border-radius: 5px 5px 2px 2px; background: linear-gradient(#f4ecd8 0 52%, var(--or) 52% 60%, #f4ecd8 60%); }
.my-heros .bras { left: 31px; top: 2px; width: 6px; height: 26px; border-radius: 3px; background: #e2b98d; transform: rotate(18deg); transform-origin: 50% 100%; }
.my-heros .jambe { top: 62px; width: 6px; height: 42px; background: #e2b98d; border-bottom: 5px solid #6b4423; }
.my-heros .jambe.g { left: 14px; }
.my-heros .jambe.d { left: 24px; }

/* 1. Éveil : orage, rocher, la foudre frappe la main levée */
.myth-eveil .my-rocher { left: 34%; bottom: 14%; width: 32%; height: 20%; background: #2c2a3a; clip-path: polygon(0 100%, 12% 30%, 35% 8%, 62% 0, 85% 25%, 100% 100%); }
.myth-eveil .my-heros { left: calc(50% - 22px); bottom: 30%; }
.myth-eveil .my-aura { left: calc(50% - 90px); bottom: 22%; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, #fff3b0aa, #f5c54233 45%, transparent 70%); animation: my-aura 7.5s ease-out both; }
.myth-eveil .my-foudre { left: calc(50% - 4px); top: 0; width: 40px; height: 52%; background: #fff6b0; clip-path: polygon(30% 0, 70% 0, 52% 38%, 80% 38%, 28% 100%, 40% 56%, 12% 56%); filter: drop-shadow(0 0 10px #ffe66d); opacity: 0; animation: my-foudre 7.5s steps(1) both; }
.myth-eveil .my-flash { inset: 0; background: #fffbe6; opacity: 0; animation: my-flash 7.5s ease-out both; }

/* 2. Catastrophe : volcan, géant Typhon, village qui s'effondre */
.myth-catastrophe .my-ciel { background: linear-gradient(180deg, #2a0a10, #6b1d16 60%, #c2481c); }
.myth-catastrophe .my-nuage { background: #3a1416; box-shadow: 4vw -2vw 0 1vw #3a1416; }
.myth-catastrophe { animation: my-seisme 0.4s linear 6 1.2s; }
.my-typhon { left: 31%; bottom: 24%; width: 38%; height: 72%; background: #170709; clip-path: polygon(10% 100%, 0 40%, 14% 18%, 30% 26%, 38% 0, 50% 14%, 62% 0, 70% 26%, 86% 18%, 100% 40%, 90% 100%); animation: my-surgit 3.5s ease-out both; }
.my-typhon > span { position: absolute; display: block; }
.my-typhon .oeil { top: 22%; width: 7%; height: 4%; border-radius: 50%; background: #ff3b1f; box-shadow: 0 0 14px 4px #ff3b1f; }
.my-typhon .oeil.g { left: 38%; }
.my-typhon .oeil.d { right: 38%; }
.my-volcan { left: 18%; bottom: 0; width: 64%; height: 40%; background: linear-gradient(180deg, #2a1410, #120808); clip-path: polygon(0 100%, 40% 6%, 60% 6%, 100% 100%); }
.my-volcan .lave { position: absolute; left: 40%; right: 40%; top: 0; height: 60%; background: linear-gradient(180deg, #ffcf4a, #ff5a1f 40%, transparent); animation: my-lave 1.2s ease-in-out infinite alternate; }
.my-fumee { left: 38%; top: 8%; width: 24%; height: 34%; border-radius: 50%; background: radial-gradient(circle, #4b2a2acc, transparent 70%); animation: my-fumee 4s ease-out infinite; }
.my-village { left: 4%; bottom: 0; width: 22%; height: 30%; transform: rotate(-12deg) translateY(6%); transform-origin: 0 100%; animation: my-chute-temple 4s ease-in 2.5s both; }
.my-village .my-colonne { bottom: 0; width: 12%; height: 80%; }
.my-colonne { position: absolute; display: block; background: repeating-linear-gradient(90deg, #cfc6ad 0 3px, #fffaf0 3px 8px); }
.my-village .c1 { left: 6%; } .my-village .c2 { left: 30%; } .my-village .c3 { left: 54%; } .my-village .c4 { left: 78%; height: 55%; }
.my-pierres { right: 10%; top: 6%; width: 14px; height: 14px; border-radius: 40%; background: #ff7a2f; box-shadow: -60px 40px 0 -2px #ff7a2f, -140px 10px 0 -4px #ffb14a, 40px 70px 0 -3px #ff5a1f; animation: my-pierres 2.2s ease-in infinite; }
.myth-catastrophe .my-heros { right: 12%; bottom: 4%; transform: scale(0.8); transform-origin: bottom; }
.myth-catastrophe .my-heros .bras { transform: rotate(-150deg); }

/* 3. Bêtes de légende : navire, Hydre, Harpies */
.myth-betes .my-ciel { background: linear-gradient(180deg, #1a1838, #5a3a5e 55%, #d9785a); }
.my-hydre { right: 6%; bottom: 18%; width: 34%; height: 60%; }
.my-hydre .cou { position: absolute; bottom: 0; left: calc(10% + var(--i) * 17%); width: 14px; height: calc(52% + var(--i) * 9%); border-radius: 8px 8px 0 0; background: linear-gradient(90deg, #1d5a3a, #2f8a55); transform-origin: 50% 100%; animation: my-hydre 2.4s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -0.5s); }
.my-hydre .tete-hydre { position: absolute; top: -14px; left: -8px; width: 30px; height: 18px; border-radius: 50% 70% 40% 50%; background: #2f8a55; box-shadow: inset -6px 0 0 #1d5a3a; }
.my-hydre .tete-hydre::after { content: ""; position: absolute; left: 8px; top: 5px; width: 5px; height: 5px; border-radius: 50%; background: #ffe14a; box-shadow: 0 0 6px #ffe14a; }
.my-harpie { font-size: clamp(1.4rem, 4vw, 2.4rem); filter: brightness(0.6) sepia(1) hue-rotate(-30deg); animation: my-harpie 4s ease-in-out infinite; }
.my-harpie.h1 { left: 10%; top: 12%; }
.my-harpie.h2 { left: 34%; top: 22%; animation-delay: -2s; }
.my-navire { left: 6%; bottom: 12%; width: 42%; height: 46%; animation: my-tangage 3s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.my-navire > span { position: absolute; display: block; }
.my-navire .coque { left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(180deg, #7a4a24, #4a2a12); clip-path: polygon(0 0, 100% 0, 88% 100%, 10% 100%); }
.my-navire .mat { left: 48%; bottom: 20%; width: 4px; height: 78%; background: #4a2a12; }
.my-navire .voile { left: 26%; top: 4%; width: 46%; height: 52%; background: repeating-linear-gradient(180deg, #f4ecd8 0 14px, #b3262e 14px 28px); border-radius: 0 0 40% 40% / 0 0 20% 20%; }
.my-navire .my-heros { right: 4%; bottom: 20%; transform: scale(0.7); transform-origin: bottom; }

/* 4. Labyrinthe : couloir de pierre, fil d'or, Minotaure qui charge */
.myth-minotaure .my-ciel { background: #120c07; }
.myth-minotaure .my-nuage { display: none; }
.my-mur { top: 0; bottom: 0; width: 38%; background: repeating-linear-gradient(0deg, #5a4630 0 22px, #3d2f1f 22px 24px), #4a3a28; }
.my-mur.g { left: 0; clip-path: polygon(0 0, 100% 28%, 100% 72%, 0 100%); }
.my-mur.d { right: 0; clip-path: polygon(0 28%, 100% 0, 100% 100%, 0 72%); }
.my-fond-laby { left: 38%; right: 38%; top: 28%; bottom: 28%; background: radial-gradient(ellipse at 50% 60%, #3a1a10, #0a0604 80%); }
.my-sol-laby { left: 0; right: 0; bottom: 0; height: 28%; background: linear-gradient(180deg, #241a10, #3a2c1c); clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); }
.my-fil { left: calc(50% - 1px); bottom: 0; width: 3px; height: 28%; background: linear-gradient(0deg, var(--or), #f5c54255); box-shadow: 0 0 8px var(--or); transform-origin: 50% 100%; animation: my-fil 2.5s ease-out both; }
.my-torche { top: 36%; width: 10px; height: 28px; background: linear-gradient(180deg, #ffcf4a, #ff6a1f 40%, #5a3a1c 45%); border-radius: 50% 50% 2px 2px; box-shadow: 0 0 30px 10px #ff8a2f55; animation: my-torche 0.3s ease-in-out infinite alternate; }
.my-torche.t1 { left: 18%; }
.my-torche.t2 { right: 18%; animation-delay: -0.15s; }
.my-minotaure { --echelle: 0.85; left: calc(50% - 60px); bottom: 10%; transform: scale(var(--echelle)); width: 120px; height: 170px; transform-origin: 50% 100%; animation: my-charge 4.5s ease-in 2.5s both; }
.my-minotaure > span { position: absolute; display: block; }
.my-minotaure .corps { left: 22px; top: 52px; width: 76px; height: 118px; background: #3a2414; clip-path: polygon(0 10%, 100% 10%, 84% 60%, 78% 100%, 22% 100%, 16% 60%); }
.my-minotaure .tete { left: 38px; top: 14px; width: 44px; height: 48px; border-radius: 40% 40% 48% 48%; background: #4a2e1a; }
.my-minotaure .corne { top: 0; width: 34px; height: 24px; border: 6px solid #eadfc4; border-bottom: none; border-radius: 50% 50% 0 0; }
.my-minotaure .corne.g { left: 14px; border-right: none; border-radius: 100% 0 0 0; }
.my-minotaure .corne.d { right: 14px; border-left: none; border-radius: 0 100% 0 0; }
.my-minotaure .oeil { top: 30px; width: 7px; height: 5px; border-radius: 50%; background: #ff3b1f; box-shadow: 0 0 10px 3px #ff3b1f; z-index: 1; }
.my-minotaure .oeil.g { left: 47px; }
.my-minotaure .oeil.d { right: 47px; }
.my-heros.dos { left: 14%; bottom: 2%; transform: scale(1.4); transform-origin: bottom; }
.my-heros.dos .tete { box-shadow: inset 0 19px 0 #4a2a12; }
.my-heros.dos .bras { transform: rotate(-30deg); }

/* 5. Méduse : grotte, statues pétrifiées, regard renvoyé par le bouclier */
.myth-meduse .my-ciel { background: radial-gradient(ellipse at 50% 30%, #1d4a32, #04140d 75%); }
.myth-meduse .my-nuage { display: none; }
.my-grotte { left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(180deg, #16241c, #070d0a); }
.my-heros.statue { filter: grayscale(1) brightness(0.75); transform: scale(0.75); transform-origin: bottom; }
.my-heros.statue .bras { transform: rotate(-60deg); }
.my-heros.s1 { left: 16%; bottom: 20%; }
.my-heros.s2 { right: 14%; bottom: 20%; }
.my-meduse { left: calc(50% - 50px); top: 14%; width: 100px; height: 64%; }
.my-meduse > span { position: absolute; display: block; }
.my-meduse .visage { left: 30px; top: 22px; width: 40px; height: 46px; border-radius: 45% 45% 50% 50%; background: #8fb58a; z-index: 1; }
.my-meduse .visage .oeil { position: absolute; top: 18px; width: 8px; height: 6px; border-radius: 50%; background: #d6ff5a; box-shadow: 0 0 10px 3px #b6ff3a; animation: my-yeux-meduse 1.4s ease-in-out infinite alternate; }
.my-meduse .visage .oeil.g { left: 8px; }
.my-meduse .visage .oeil.d { right: 8px; }
.my-meduse .robe { left: 18px; top: 62px; width: 64px; bottom: 0; background: linear-gradient(180deg, #2a5a3a, #0d2416); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.my-meduse .serpents { left: 0; top: 0; width: 100px; height: 80px; }
.my-meduse .serpents i { position: absolute; left: 46px; top: 36px; width: 8px; height: 46px; border-radius: 6px; background: linear-gradient(0deg, #3d7a3f, #6bbf5a); transform-origin: 50% 100%; transform: translateY(-46px) rotate(calc(-75deg + var(--i) * 25deg)); animation: my-serpent 1.2s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -0.2s); }
.my-regard { left: 46%; top: 30%; width: 8%; height: 46%; background: linear-gradient(180deg, #d6ff5acc, transparent); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); opacity: 0; animation: my-regard 8s ease-in-out both; }
.my-heros.bouclier-leve { left: calc(50% - 22px); bottom: 2%; }
.my-bouclier { left: calc(50% - 46px); bottom: 10%; width: 92px; height: 92px; border-radius: 50%; border: 5px solid #8a5a1c; background: radial-gradient(circle at 35% 30%, #fff4c9, #d9a441 40%, #8a5a1c 80%); box-shadow: 0 0 22px #f5c54288; animation: my-reflet 8s ease-in-out both; }

/* 6. Victoire : les portes d'or de l'Olympe s'ouvrent */
.myth-olympe .my-ciel { background: linear-gradient(180deg, #4a3a8a, #c98ad8 45%, #ffd98a); }
.myth-olympe .my-nuage { background: #fffaf0; box-shadow: 4vw -2vw 0 1vw #fffaf0; height: 12%; }
.myth-olympe .my-nuage.n1 { top: 62%; left: -2%; width: 30%; }
.myth-olympe .my-nuage.n3 { top: 58%; right: -2%; width: 30%; }
.my-rayons { left: 50%; top: 34%; width: 160%; height: 160%; margin: -80% 0 0 -80%; background: repeating-conic-gradient(#fff6c855 0 6deg, transparent 6deg 18deg); border-radius: 50%; animation: my-rayons 20s linear infinite; }
.my-lumiere { left: 36%; right: 36%; top: 18%; height: 44%; background: radial-gradient(ellipse at 50% 60%, #ffffff, #ffe9a0 50%, transparent 75%); animation: my-lumiere 8.5s ease-out both; }
.my-fronton { left: 26%; right: 26%; top: 6%; height: 12%; background: #fffaf0; clip-path: polygon(50% 0, 100% 100%, 0 100%); box-shadow: 0 0 20px #fff; }
.myth-olympe .my-colonne { top: 18%; height: 46%; width: 4%; }
.myth-olympe .c1 { left: 27%; } .myth-olympe .c2 { left: 34%; } .myth-olympe .c3 { right: 34%; } .myth-olympe .c4 { right: 27%; }
.my-porte { top: 20%; width: 9%; height: 42%; background: repeating-linear-gradient(0deg, #e8b730 0 6px, #ffd75a 6px 12px); border: 3px solid #a87a14; box-shadow: inset 0 0 0 6px #c9961f; }
.my-porte.g { left: 41%; transform-origin: 0 50%; transform: perspective(500px) rotateY(-95deg); animation: my-porte-g 3.5s ease-in-out 1.2s both; }
.my-porte.d { right: 41%; transform-origin: 100% 50%; transform: perspective(500px) rotateY(95deg); animation: my-porte-d 3.5s ease-in-out 1.2s both; }
.my-marches { left: 20%; right: 20%; bottom: 0; height: 38%; background: repeating-linear-gradient(180deg, #fffaf0 0 10px, #e2d6b8 10px 12px); clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); }
.my-heros.ascension { left: calc(50% - 22px); bottom: 34%; transform: scale(0.45); transform-origin: bottom; animation: my-ascension 6s ease-in-out 2s both; }
.my-heros.ascension .bras { transform: rotate(-20deg); }
.my-etincelles { inset: 0; background-image: radial-gradient(3px 3px at 20% 30%, #fff, transparent), radial-gradient(2px 2px at 70% 20%, #fff, transparent), radial-gradient(3px 3px at 80% 50%, #fff6b0, transparent), radial-gradient(2px 2px at 30% 60%, #fff6b0, transparent), radial-gradient(3px 3px at 55% 12%, #fff, transparent); animation: my-scintille 1.6s ease-in-out infinite alternate; }
.my-nom { left: 0; right: 0; bottom: 4%; text-align: center; font-family: "Cinzel", Georgia, serif; font-weight: 900; font-size: clamp(1rem, 3.4vw, 1.8rem); letter-spacing: 0.12em; color: #7a5410; text-shadow: 0 0 10px #fff; animation: my-apparait 1.5s ease-out 5s both; }

/* 7. Défaite : chute aux Enfers, Hadès sur son trône, le Styx et Charon */
.myth-hades .my-ciel { background: radial-gradient(ellipse at 50% 100%, #5a1410, #12060a 60%, #050206); }
.myth-hades .my-nuage { background: #1c0a0e; box-shadow: 4vw -2vw 0 1vw #1c0a0e; }
.my-flammes { left: 0; right: 0; bottom: 22%; height: 18%; background: radial-gradient(ellipse at 50% 100%, #ff5a1f 0 30%, transparent 70%) 0 100% / 60px 100% repeat-x; opacity: 0.7; animation: my-flammes 0.8s ease-in-out infinite alternate; }
.my-trone { left: calc(50% - 50px); top: 14%; width: 100px; height: 54%; background: linear-gradient(180deg, #2a2230, #120c16); clip-path: polygon(0 100%, 0 20%, 20% 0, 50% 12%, 80% 0, 100% 20%, 100% 100%); }
.my-hades { left: calc(50% - 28px); top: 24%; width: 56px; height: 42%; animation: my-apparait 2s ease-out both; }
.my-hades > span { position: absolute; display: block; }
.my-hades .flamme { left: 10px; top: -10px; width: 36px; height: 30px; border-radius: 50% 50% 40% 40%; background: radial-gradient(ellipse at 50% 80%, #bfe9ff, #3da0ff 50%, transparent 72%); animation: my-flamme-bleue 0.6s ease-in-out infinite alternate; }
.my-hades .visage { left: 16px; top: 8px; width: 24px; height: 26px; border-radius: 45%; background: #bdb6c9; box-shadow: inset 0 -6px 0 #2a2230; }
.my-hades .robe { left: 2px; top: 30px; width: 52px; bottom: 0; background: linear-gradient(180deg, #1a1222, #07040a); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.my-cerbere { right: 12%; top: 46%; width: 120px; height: 20px; display: flex; justify-content: space-between; }
.my-cerbere i { display: block; width: 26px; height: 8px; background: radial-gradient(circle at 25% 50%, #ff3b1f 0 3px, transparent 4px), radial-gradient(circle at 75% 50%, #ff3b1f 0 3px, transparent 4px); filter: drop-shadow(0 0 4px #ff3b1f); animation: my-clignement 3s steps(1) infinite; }
.my-cerbere i:nth-child(2) { margin-top: -8px; animation-delay: -1s; }
.my-cerbere i:nth-child(3) { animation-delay: -2s; }
.my-styx { left: 0; right: 0; bottom: 0; height: 22%; background: repeating-linear-gradient(175deg, #0d2a2a 0 12px, #12383a 12px 22px); animation: my-vagues 4s ease-in-out infinite alternate; }
.my-barque { left: 8%; bottom: 10%; width: 140px; height: 70px; animation: my-barque 7s ease-in-out both; }
.my-barque > span { position: absolute; display: block; }
.my-barque::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: #2a1a10; clip-path: polygon(0 0, 100% 0, 85% 100%, 12% 100%); }
.my-barque .passeur { left: 54px; bottom: 16px; width: 30px; height: 54px; background: #0d0a10; clip-path: polygon(50% 0, 80% 18%, 100% 100%, 0 100%, 20% 18%); }
.my-barque .lanterne { left: 98px; bottom: 44px; width: 10px; height: 12px; border-radius: 3px; background: #9ad8ff; box-shadow: 0 0 14px 4px #5ab8ff88; animation: my-torche 0.8s ease-in-out infinite alternate; }
.my-ames { inset: 0; background-image: radial-gradient(6px 9px at 20% 70%, #bfe9ff66, transparent), radial-gradient(5px 8px at 64% 80%, #bfe9ff55, transparent), radial-gradient(6px 9px at 84% 66%, #bfe9ff66, transparent); animation: my-ames 5s ease-in infinite; }
.my-heros.chute { left: calc(50% - 22px); top: 56%; transform: rotate(160deg) scale(0.6); opacity: 0.35; animation: my-chute 3s ease-in both; }

/* --- Animations --- */
@keyframes my-nuage { from { transform: translateX(-3%); } to { transform: translateX(4%); } }
@keyframes my-vagues { from { background-position: 0 0; } to { background-position: 40px 6px; } }
@keyframes my-aura { 0%, 30% { opacity: 0; transform: scale(0.2); } 40% { opacity: 1; transform: scale(1.3); } 100% { opacity: 1; transform: scale(1); } }
@keyframes my-foudre { 0%, 28% { opacity: 0; } 29%, 33% { opacity: 1; } 34%, 37% { opacity: 0; } 38%, 41% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes my-flash { 0%, 28% { opacity: 0; } 30% { opacity: 0.85; } 45%, 100% { opacity: 0; } }
@keyframes my-seisme { 25% { transform: translate(-4px, 2px); } 50% { transform: translate(3px, -2px); } 75% { transform: translate(-2px, -1px); } }
@keyframes my-surgit { from { transform: translateY(60%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes my-lave { from { opacity: 0.6; transform: scaleY(0.85); } to { opacity: 1; transform: scaleY(1.1); } }
@keyframes my-fumee { from { opacity: 0.9; transform: translateY(0) scale(0.7); } to { opacity: 0; transform: translateY(-30%) scale(1.4); } }
@keyframes my-chute-temple { from { transform: none; } 40% { transform: rotate(3deg); } to { transform: rotate(-12deg) translateY(6%); } }
@keyframes my-pierres { from { transform: translate(0, -40px); opacity: 1; } to { transform: translate(-120px, 260px); opacity: 0; } }
@keyframes my-hydre { from { transform: rotate(-10deg); } to { transform: rotate(12deg) scaleY(1.05); } }
@keyframes my-harpie { 0%, 100% { transform: translate(0, 0) scaleX(-1); } 50% { transform: translate(40px, 18px) scaleX(-1); } }
@keyframes my-tangage { from { transform: rotate(-2deg); } to { transform: rotate(2deg) translateY(-4px); } }
@keyframes my-fil { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes my-torche { from { opacity: 0.8; transform: scaleY(0.95); } to { opacity: 1; transform: scaleY(1.06); } }
@keyframes my-charge { 0% { transform: scale(0.25); opacity: 0; } 15% { opacity: 1; } 30%, 50% { transform: scale(0.45) translateY(-4px); } 40%, 60% { transform: scale(0.5); } 100% { transform: scale(var(--echelle)); opacity: 1; } }
@keyframes my-yeux-meduse { from { opacity: 0.6; } to { opacity: 1; } }
@keyframes my-serpent { from { transform: translateY(-46px) rotate(calc(-80deg + var(--i) * 25deg)); } to { transform: translateY(-46px) rotate(calc(-70deg + var(--i) * 25deg)); } }
@keyframes my-regard { 0%, 35% { opacity: 0; } 42%, 60% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes my-reflet { 0%, 45% { box-shadow: 0 0 22px #f5c54288; } 55% { box-shadow: 0 0 60px 20px #d6ff5a; } 100% { box-shadow: 0 0 22px #f5c54288; } }
@keyframes my-rayons { to { transform: rotate(360deg); } }
@keyframes my-lumiere { 0%, 15% { opacity: 0; transform: scale(0.3); } 60%, 100% { opacity: 1; transform: scale(1); } }
@keyframes my-porte-g { from { transform: perspective(500px) rotateY(0); } to { transform: perspective(500px) rotateY(-95deg); } }
@keyframes my-porte-d { from { transform: perspective(500px) rotateY(0); } to { transform: perspective(500px) rotateY(95deg); } }
@keyframes my-ascension { from { transform: translateY(70%) scale(0.9); } to { transform: translateY(0) scale(0.45); } }
@keyframes my-scintille { from { opacity: 0.4; } to { opacity: 1; } }
@keyframes my-apparait { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes my-flammes { from { transform: scaleY(0.9); opacity: 0.6; } to { transform: scaleY(1.15); opacity: 0.85; } }
@keyframes my-flamme-bleue { from { transform: scaleY(0.9) translateY(2px); } to { transform: scaleY(1.15); } }
@keyframes my-clignement { 0%, 90% { opacity: 1; } 92%, 96% { opacity: 0; } }
@keyframes my-barque { from { transform: translateX(-160px); } to { transform: translateX(0); } }
@keyframes my-ames { from { transform: translateY(0); opacity: 0.9; } to { transform: translateY(-60px); opacity: 0; } }
@keyframes my-chute { from { transform: translateY(-420%) rotate(0) scale(0.9); opacity: 1; } 70% { opacity: 1; } to { transform: rotate(160deg) scale(0.6); opacity: 0.35; } }

@media (max-width: 560px) {
  .my-heros { transform: scale(0.7); transform-origin: bottom; }
  .myth-eveil .my-aura { left: calc(50% - 60px); width: 120px; height: 120px; }
  .my-minotaure { --echelle: 0.5; bottom: 4%; }
  .my-heros.dos { transform: scale(0.9); }
  .my-bouclier { left: calc(50% - 30px); width: 60px; height: 60px; }
  .my-barque { transform: scale(0.7); transform-origin: 0 100%; }
  .md-colonne { width: 28px; }
  .my-cerbere { right: 3%; top: 58%; width: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .myth-scene, .myth-scene *, .vignette-olympe *, .myth-decor *, [data-theme="mythologie"] .hp-avatar { animation: none !important; }
  .my-foudre, .my-flash, .my-regard, .vo-eclair { display: none !important; }
}
