/* ═══════════════════════════════════════════════════════════════════════════
   #univers — « Entrez dans l'univers Learnovate » (4 nov. 2026)
   Vedette « Learny – The Odyssey » (photo de couverture, coucher de soleil),
   puis Learnovate World et Learnovate Galaxy, plus petites, dans le même cadre.
   Palette tirée de l'image : rose, orangé, doré, violet du ciel.
   ═══════════════════════════════════════════════════════════════════════════ */
#univers {
  --ody-rose: #ff8fb1;
  --ody-corail: #ff8a6b;
  --ody-orange: #ffad5c;
  --ody-or: #ffd27a;
  --ody-violet: #a98bf0;
  --ody-nuit: #160f1d;
  background:
    radial-gradient(ellipse 70% 42% at 50% 0%, rgba(255,138,107,0.16) 0%, transparent 70%),
    radial-gradient(ellipse 45% 35% at 88% 18%, rgba(255,173,92,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 10% 30%, rgba(169,139,240,0.14) 0%, transparent 65%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(76,175,118,0.10) 0%, transparent 65%),
    linear-gradient(180deg, #120d16 0%, #0f0f13 50%, #0b0c0d 100%);
}

/* ── Le cadre commun ─────────────────────────────────────────────────────── */
@property --ody-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.uni-stage {
  position: relative; max-width: 1180px; margin: 0 auto; padding: 16px; border-radius: 32px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(26,18,32,0.94), rgba(14,13,17,0.96)) padding-box,
    conic-gradient(from var(--ody-angle), rgba(255,143,177,0.55), rgba(255,173,92,0.5), rgba(255,210,122,0.35),
      rgba(169,139,240,0.45), rgba(255,255,255,0.08) 60%, rgba(255,143,177,0.55)) border-box;
  box-shadow: 0 40px 100px rgba(0,0,0,0.45);
  animation: ody-tour 14s linear infinite;
}
@keyframes ody-tour { to { --ody-angle: 360deg; } }
/* halo coucher de soleil derrière le cadre */
.uni-stage::before {
  content: ''; position: absolute; z-index: -1; inset: -40px -30px auto; height: 70%; pointer-events: none;
  background:
    radial-gradient(ellipse 40% 60% at 80% 40%, rgba(255,173,92,0.22), transparent 70%),
    radial-gradient(ellipse 45% 60% at 25% 45%, rgba(255,143,177,0.18), transparent 70%);
  filter: blur(30px);
}

/* ── Vedette : Learny – The Odyssey ─────────────────────────────────────── */
.uni-odyssey {
  position: relative; border-radius: 22px; overflow: hidden; isolation: isolate;
  aspect-ratio: 16 / 8.4; min-height: 540px; background: var(--ody-nuit);
  box-shadow: inset 0 0 0 1px rgba(255,210,122,0.14);
}
.uni-odyssey-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; container-type: size; --ody-px: 0.5; --ody-py: 0.6; }
.uni-odyssey-media .ody-scene { transform: scale(1.03); transition: transform 1.8s var(--ease-out); }
.uni-odyssey:hover .uni-odyssey-media .ody-scene { transform: scale(1.075); }

/* ── Learny animé (4 nov. 2026) : la même photo ; Learny découpé par-dessus, et derrière lui un fond reconstruit
   (visible seulement sur quelques pixels quand il bouge). Mouvement repris du menu du jeu (Learny au repos) :
   roulis du corps (sin 0,8 t ≈ 7,9 s), coups d'œil lents irréguliers (sin 0,27 t × sin 0,11 t), tangage (sin 0,19 t ≈ 33 s). ── */
.ody-scene {
  position: absolute; aspect-ratio: 16 / 9; width: max(100cqw, 177.7778cqh);
  left: calc((100cqw - max(100cqw, 177.7778cqh)) * var(--ody-px, 0.5));
  top: calc((100cqh - max(56.25cqw, 100cqh)) * var(--ody-py, 0.5));
}
.ody-scene img { display: block; width: 100%; height: 100%; max-width: none; }
/* photo vivante (js/odyssey-vivant.js) : nuages, eau, feuillage ; sous Learny */
.ody-scene .ody-vivant { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.8s ease; }
.ody-scene .ody-vivant.est-pret { opacity: 1; }
.ody-scene .ody-patch, .ody-scene .ody-learny { position: absolute; left: 65.0625%; top: 57.3333%; width: 17.5625%; height: 28.2222%; }
.ody-learny span { display: block; width: 100%; height: 100%; }
.ody-learny span { transform-origin: 43.54% 92.78%; will-change: transform; }
.ody-l3 { position: relative; }
/* Learny « chill » (demande du propriétaire : un mouvement bien visible, mais tranquille) */
.ody-l1 { animation: ody-roulis 6.4s ease-in-out infinite; }
.ody-l2 { animation: ody-regard 36s ease-in-out infinite; }
.ody-l3 { animation: ody-tangage 5.6s ease-in-out infinite; }
@keyframes ody-roulis { 0%, 100% { transform: rotate(-0.9deg); } 50% { transform: rotate(0.9deg); } }
/* le regard : la baie (repos) → lève la tête vers la tour → la baie → se tourne un peu vers le soleil → la baie
   → coup d'œil vers la plage ; transitions d'environ 3 s, pauses de 3 à 4 s */
@keyframes ody-regard {
  0%, 8%   { transform: perspective(700px) translateX(0) rotate(0deg) rotateY(0deg); }
  16%, 26% { transform: perspective(700px) translateX(-1.2%) rotate(3deg) rotateY(-3deg); }
  34%, 42% { transform: perspective(700px) translateX(0) rotate(0deg) rotateY(0deg); }
  50%, 61% { transform: perspective(700px) translateX(1.6%) rotate(-1.6deg) rotateY(15deg); }
  69%, 76% { transform: perspective(700px) translateX(0) rotate(0deg) rotateY(0deg); }
  83%, 89% { transform: perspective(700px) translateX(-0.8%) rotate(-1.4deg) rotateY(-5deg); }
  96%, 100% { transform: perspective(700px) translateX(0) rotate(0deg) rotateY(0deg); }
}
@keyframes ody-tangage { 0%, 100% { transform: translateY(0.6%); } 50% { transform: translateY(-1.4%); } }
/* paupières : les deux yeux clignent ensemble (un clignement, puis un double) */
.ody-oeil {
  position: absolute; border-radius: 50%; transform: scaleY(0); transform-origin: 50% 0;
  background: linear-gradient(90deg, #c9a83a 0%, #8c8a2c 30%, #55621c 70%, #45521a 100%); box-shadow: inset 0 -1px 0 rgba(30, 24, 6, 0.9);
  animation: ody-cligne 9s linear infinite;
}
.ody-oeil.o1 { left: 4.63%; top: 32.68%; width: 3.2%; height: 9.06%; }
.ody-oeil.o2 { left: 11.03%; top: 36.22%; width: 4.09%; height: 9.84%; }
@keyframes ody-cligne {
  0%, 30%, 31.8%, 100% { transform: scaleY(0); }
  30.9% { transform: scaleY(1); }
  78%, 79.8%, 81%, 82.8% { transform: scaleY(0); }
  78.9%, 81.9% { transform: scaleY(1); }
}
/* fenêtre « Découvrir » : même scène, cadrée sur Learny et le soleil */
.ody-cadre { position: relative; overflow: hidden; container-type: size; --ody-px: 0.82; --ody-py: 0.5; }
.uni-modal-media .ody-cadre { height: 100%; min-height: 320px; }
.uni-modal-media .ody-cadre img { min-height: 0; object-fit: fill; background: none; aspect-ratio: auto; }
@media (max-width: 860px) { .uni-modal-media .ody-cadre { height: auto; min-height: 0; aspect-ratio: 16 / 9; } }
/* navigateurs sans unités de conteneur : photo fixe, comme avant */
@supports not (width: 1cqw) {
  .ody-scene { inset: 0; width: auto; aspect-ratio: auto; }
  .ody-scene .ody-fond { object-fit: cover; object-position: calc(var(--ody-px, 0.5) * 100%) calc(var(--ody-py, 0.5) * 100%); }
  .ody-scene .ody-patch, .ody-scene .ody-learny { display: none; }
}
/* lisibilité : voile violet-nuit en bas et à gauche (la droite, avec Learny et le soleil, reste lumineuse) */
.uni-odyssey-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(22,12,26,0.92) 0%, rgba(22,12,26,0.55) 32%, transparent 58%),
    linear-gradient(90deg, rgba(22,12,26,0.72) 0%, rgba(22,12,26,0.4) 36%, transparent 62%);
}
/* le soleil de l'image respire doucement */
.uni-odyssey-sun {
  position: absolute; left: var(--ody-sun-x, 86%); top: var(--ody-sun-y, 41%); width: 34%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255,214,140,0.55) 0%, rgba(255,160,90,0.22) 28%, transparent 62%);
  animation: ody-soleil 6s ease-in-out infinite;
}
@keyframes ody-soleil { 0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.92); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
/* pétales qui tombent, comme les arbres en fleurs de l'image */
.uni-petales { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.uni-petales i {
  position: absolute; top: -6%; width: 11px; height: 8px; border-radius: 70% 0 70% 0;
  background: linear-gradient(135deg, #ffd0dc, var(--ody-rose)); opacity: 0;
  animation: ody-petale 13s linear infinite;
}
.uni-petales i:nth-child(1) { left: 58%; animation-delay: 0s; }
.uni-petales i:nth-child(2) { left: 72%; animation-delay: 2.6s; animation-duration: 15s; transform: scale(0.8); }
.uni-petales i:nth-child(3) { left: 40%; animation-delay: 5.2s; animation-duration: 12s; }
.uni-petales i:nth-child(4) { left: 86%; animation-delay: 7.1s; animation-duration: 16s; }
.uni-petales i:nth-child(5) { left: 64%; animation-delay: 9.4s; }
.uni-petales i:nth-child(6) { left: 92%; animation-delay: 11.3s; animation-duration: 14s; }
@keyframes ody-petale {
  0%   { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  8%   { opacity: 0.9; }
  85%  { opacity: 0.75; }
  100% { opacity: 0; transform: translate(-240px, 640px) rotate(540deg); }
}
/* un peu plus large que la grille du site (demande du propriétaire), seulement là où il reste de la marge */
@media (min-width: 961px) { .uni-stage { margin-left: -14px; margin-right: -14px; } }
@media (min-width: 1280px) { .uni-stage { margin-left: -28px; margin-right: -28px; } }

.uni-odyssey-body {
  position: absolute; left: 0; bottom: 0; z-index: 1; width: min(640px, 60%);
  padding: clamp(24px, 3.4vw, 44px); display: flex; flex-direction: column; align-items: flex-start;
}
.uni-status--odyssey { position: static; margin-bottom: 14px; border-color: rgba(255,210,122,0.35); background: rgba(22,12,26,0.6); }
.uni-status--odyssey::before { background: var(--ody-orange); box-shadow: 0 0 10px rgba(255,173,92,0.9); animation: ody-point 2.4s ease-in-out infinite; }
@keyframes ody-point { 50% { opacity: 0.45; } }
.uni-odyssey-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ody-or); margin: 0 0 6px; }
.uni-odyssey-title {
  font-family: 'Kaushan Script', cursive; font-weight: 400; line-height: 1.05; letter-spacing: 0.005em;
  font-size: clamp(38px, 4.3vw, 60px); margin: 0 0 14px; padding: 0 0.12em 0.08em 0; white-space: nowrap;
  background: linear-gradient(95deg, #fff1cf 0%, var(--ody-or) 30%, var(--ody-orange) 55%, var(--ody-rose) 80%, #d9c2ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 26px rgba(255,138,107,0.35));
}
.uni-odyssey-desc { font-size: 15px; line-height: 1.65; color: rgba(255,255,255,0.84); margin: 0 0 16px; max-width: 520px; text-shadow: 0 1px 12px rgba(0,0,0,0.45); }
.uni-odyssey .uni-chips { margin-bottom: 22px; }
.uni-odyssey .uni-chips li { background: rgba(22,12,26,0.55); border-color: rgba(255,210,122,0.25); color: rgba(255,255,255,0.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.uni-cta--odyssey {
  position: relative; overflow: hidden; margin-top: 0; color: #2a1020;
  background: linear-gradient(120deg, var(--ody-or) 0%, var(--ody-orange) 45%, var(--ody-rose) 100%);
  box-shadow: 0 12px 30px rgba(255,138,107,0.35), 0 0 0 1px rgba(255,255,255,0.18) inset;
}
.uni-cta--odyssey::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent); transform: skewX(-18deg);
  transition: left 0.8s var(--ease-out);
}
.uni-cta--odyssey:hover { box-shadow: 0 16px 38px rgba(255,138,107,0.5), 0 0 0 1px rgba(255,255,255,0.25) inset; }
.uni-cta--odyssey:hover::after { left: 120%; }
.uni-cta--odyssey:focus-visible { outline: 2px solid var(--ody-or); outline-offset: 3px; }

/* ── World et Galaxy : en dessous, séparées du cadre Odyssey, comme avant (v2.css) ── */
.uni-stage + .universe-grid { margin-top: clamp(40px, 4.6vw, 64px); }
/* « Une immersion complète » : la ligne s'interrompt derrière le texte (le fond de la section a changé de teinte) */
#univers .uni-thread-label { background: transparent; }
#univers .uni-thread-line {
  -webkit-mask: linear-gradient(180deg, #000 0 41%, transparent 43% 57%, #000 59%);
          mask: linear-gradient(180deg, #000 0 41%, transparent 43% 57%, #000 59%);
}

/* écosystème : 4 éléments avec Odyssey */
#univers .uni-eco { grid-template-columns: repeat(4, 1fr); max-width: 1180px; }
.uni-eco-dot.odyssey { background: linear-gradient(135deg, var(--ody-or), var(--ody-rose)); box-shadow: 0 0 12px rgba(255,143,177,0.7); }

/* ── Tablette et téléphone ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  #univers .uni-eco { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .uni-stage { padding: 12px; border-radius: 26px; }
  .uni-odyssey { aspect-ratio: auto; min-height: 0; display: flex; flex-direction: column; }
  .uni-odyssey-media { position: relative; inset: auto; z-index: 0; aspect-ratio: 16 / 11; --ody-sun-x: 89%; --ody-sun-y: 42%; --ody-px: 0.72; --ody-py: 0.5; }
  .uni-odyssey-media::after { background: linear-gradient(0deg, var(--ody-nuit) 0%, rgba(22,12,26,0.4) 22%, transparent 45%); }
  .uni-odyssey-body { position: relative; width: auto; margin-top: -42px; padding: 0 20px 24px; }
  .uni-odyssey-title { font-size: clamp(34px, 9.4vw, 52px); white-space: normal; }
  .uni-odyssey-desc { font-size: 14.5px; }
}
@media (max-width: 960px) {
  #univers .uni-thread-line {
    -webkit-mask: linear-gradient(90deg, #000 0 33%, transparent 36% 64%, #000 67%);
            mask: linear-gradient(90deg, #000 0 33%, transparent 36% 64%, #000 67%);
  }
}
@media (max-width: 560px) {
  #univers .uni-eco { grid-template-columns: 1fr; }
  .uni-cta--odyssey { align-self: stretch; justify-content: center; }
}

/* ── Fenêtre « Découvrir » : thème Odyssey ──────────────────────────────── */
.uni-modal[data-theme="odyssey"] {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255,138,107,0.20), transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(169,139,240,0.14), transparent 60%), #140e17;
}
.uni-modal[data-theme="odyssey"] .uni-eyebrow { color: #ffc08a; }
/* image 16:9 dans une colonne : on garde Learny et le soleil (droite de l'image) */
.uni-modal[data-theme="odyssey"] .uni-modal-media > img { object-position: 82% 50%; }
.uni-modal[data-theme="odyssey"] .uni-dot { background: #ffad5c; box-shadow: 0 0 8px rgba(255,173,92,0.8); }
.uni-modal[data-theme="odyssey"] .uni-modal-list li::before { background: #ff9fb6; box-shadow: 0 0 10px rgba(255,143,177,0.7); }
.uni-modal[data-theme="odyssey"] .uni-modal-cta { background: linear-gradient(120deg, #ffd27a 0%, #ffad5c 45%, #ff8fb1 100%); color: #2a1020; }

/* ── Tarifs, carte Prestige : photo Odyssey au-dessus de World et Galaxy (4 nov. 2026) ── */
.pw-item.odyssey { grid-column: 1 / -1; height: 104px; border-color: rgba(255,173,92,0.45); }
.pw-item.odyssey img { object-position: 50% 70%; }
.pw-item.odyssey span { font-size: 16px; color: #ffc08a; }

@media (prefers-reduced-motion: reduce) {
  .uni-stage, .uni-odyssey-sun, .uni-status--odyssey::before { animation: none; }
  .uni-petales { display: none; }
  .uni-odyssey-media .ody-scene, .uni-cta--odyssey::after { transition: none; }
  .ody-learny span, .ody-oeil { animation: none; }
}
