/* ============================================================
   LOGPOSE — Page d'accueil (cinématique)
   Hérite des variables de base.css
   ============================================================ */

.landing-body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow Condensed', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== BARRE DU HAUT ===== */
.land-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1.2rem;
  background: linear-gradient(180deg, rgba(2,8,16,0.92) 0%, rgba(2,8,16,0) 100%);
  backdrop-filter: blur(2px);
}
.land-topbar .lt-brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #e8c030;
  letter-spacing: 1px;
}
.land-topbar .lt-brand img { width: 30px; height: 30px; }
.land-theme-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(232,192,48,0.4);
  color: #e8c030;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform .2s, background .2s;
}
.land-theme-btn:hover { transform: scale(1.1); background: rgba(232,192,48,0.18); }

/* ===== HÉROS ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.2rem 3rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(20,60,110,0.55) 0%, transparent 60%),
    linear-gradient(180deg, #04101f 0%, #061528 45%, #02080f 100%);
}
[data-theme="light"] .hero {
  background:
    radial-gradient(ellipse at 50% 20%, rgba(40,90,150,0.55) 0%, transparent 60%),
    linear-gradient(180deg, #0d2a4a 0%, #061528 60%, #04101f 100%);
}

/* étoiles / particules */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.5) 50%, transparent),
    radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,0.4) 50%, transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.3) 50%, transparent),
    radial-gradient(2px 2px at 85% 60%, rgba(232,192,48,0.4) 50%, transparent),
    radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.35) 50%, transparent);
  background-repeat: no-repeat;
  opacity: 0.7;
  animation: twinkle 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes twinkle { 0%,100%{opacity:.4} 50%{opacity:.8} }

.hero-skull {
  width: clamp(90px, 18vw, 150px);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 22px rgba(232,192,48,0.55));
  animation: floatY 4s ease-in-out infinite;
}
@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }

.hero-title {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 900;
  font-size: clamp(3rem, 12vw, 6.5rem);
  line-height: 1;
  color: #f0d060;
  text-shadow:
    0 0 18px rgba(232,192,48,0.6),
    0 0 40px rgba(232,192,48,0.35),
    0 4px 6px rgba(0,0,0,0.6);
  letter-spacing: 2px;
  margin-bottom: 0.6rem;
}
.hero-tagline {
  font-size: clamp(1.1rem, 3.5vw, 1.7rem);
  color: #cfe0f2;
  font-weight: 300;
  max-width: 640px;
  margin: 0 auto 0.4rem;
}
.hero-sub {
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  color: #8fb0d0;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2.2rem;
}

.cta-play {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.6rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #061528;
  background: linear-gradient(135deg, #f0d060 0%, #c89408 100%);
  border-radius: 50px;
  box-shadow: 0 0 28px rgba(232,192,48,0.5), 0 8px 20px rgba(0,0,0,0.4);
  transition: transform .2s, box-shadow .2s;
  animation: pulseGlow 2.6s ease-in-out infinite;
}
.cta-play:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 42px rgba(232,192,48,0.75), 0 12px 26px rgba(0,0,0,0.5);
}
@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 28px rgba(232,192,48,0.45), 0 8px 20px rgba(0,0,0,0.4); }
  50%     { box-shadow: 0 0 40px rgba(232,192,48,0.7), 0 8px 20px rgba(0,0,0,0.4); }
}

/* ===== MER & NAVIRE (Merry sur les vagues, comme la barre de score) ===== */
.hero-sea {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 160px;
  pointer-events: none;
}
/* corps de la mer : fond de page qui remonte en fondu pour la transition */
.hero-sea::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 75px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, var(--bg) 72%);
}

/* lignes de vagues animées (même crête or que la barre de score) */
.hero-wave {
  position: absolute;
  left: 0; right: 0;
  height: 22px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='20'%3E%3Cpath d='M0,10 C15,1 45,19 60,10 C75,1 105,19 120,10 L120,20 L0,20 Z' fill='%23c89408'/%3E%3Cpath d='M0,10 C15,1 45,19 60,10 C75,1 105,19 120,10' stroke='%23ffd84d' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 120px 22px;
  filter: drop-shadow(0 0 4px rgba(200,148,10,0.7));
}
.hero-wave.back {
  bottom: 62px;
  opacity: 0.45;
  z-index: 3;
  animation: heroWaveBack 7s linear infinite;
}
.hero-wave.front {
  bottom: 52px;
  z-index: 6;
  animation: heroWaveFront 3.5s linear infinite;
}
@keyframes heroWaveFront { from { background-position: 0 0; }   to { background-position: -120px 0; } }
@keyframes heroWaveBack  { from { background-position: 0 0; }   to { background-position:  120px 0; } }

/* le Vogue Merry — il navigue de gauche à droite en tanguant sur la crête */
.hero-ship {
  position: absolute;
  left: -170px;
  bottom: 54px;
  width: clamp(90px, 15vw, 140px);
  z-index: 5; /* sous la vague de devant → ligne de flottaison */
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.45));
  /* `left` pour le défilement, `transform` pour le tangage → pas de conflit */
  animation: sailAcross 24s linear infinite, merryBobLand 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sailAcross {
  from { left: -170px; }
  to   { left: 110%; }
}
@keyframes merryBobLand {
  0%,100% { transform: translateY(0)    rotate(-3deg); }
  50%     { transform: translateY(-9px) rotate(3deg); }
}

/* scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 1.2rem;
  font-size: 1.6rem;
  color: rgba(232,192,48,0.7);
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }

/* ===== SECTIONS ===== */
.land-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.2rem;
}
.land-section h2 {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  text-align: center;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.land-section .sec-intro {
  text-align: center;
  color: var(--text2);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

/* ===== CARTES DE MODES ===== */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.mode-card {
  background: var(--card);
  border: 2px solid var(--border2);
  border-radius: 16px;
  padding: 1.6rem 1.4rem;
  text-align: center;
  box-shadow: 0 6px 18px var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.mode-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 12px 28px var(--shadow), 0 0 22px var(--glow-gold);
}
.mode-card .mc-icon {
  font-size: 2.6rem;
  display: block;
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 3px 6px var(--shadow));
}
.mode-card h3 {
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.mode-card p {
  color: var(--text3);
  font-size: 1rem;
  line-height: 1.35;
}

/* ===== COMMENT JOUER ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 1.6rem 1.3rem 1.3rem;
  text-align: center;
}
.step .step-num {
  position: absolute;
  top: -18px; left: 50%;
  transform: translateX(-50%);
  width: 38px; height: 38px;
  line-height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0d060, #c89408);
  color: #061528;
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 0 14px var(--glow-gold);
}
.step h4 { font-size: 1.2rem; margin: 0.4rem 0; color: var(--text); }
.step p  { color: var(--text3); font-size: 1rem; }

/* ===== STATISTIQUES ===== */
.stats-band {
  background: linear-gradient(135deg, #061528, #0d2a4a);
  border-radius: 18px;
  padding: 2.4rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 1.6rem;
  box-shadow: 0 8px 26px rgba(0,0,0,0.35);
}
.stat-block { text-align: center; min-width: 150px; }
.stat-block .stat-num {
  font-family: 'Ultra', sans-serif;
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: #f0d060;
  text-shadow: 0 0 16px rgba(232,192,48,0.5);
  line-height: 1;
}
.stat-block .stat-label {
  color: #aac4dd;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.4rem;
}

/* ===== CTA FINAL ===== */
.final-cta {
  text-align: center;
  padding: 3.5rem 1.2rem 2rem;
}
.final-cta h2 {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: var(--gold);
  margin-bottom: 1.6rem;
}

/* ===== PIED DE PAGE ===== */
.land-footer {
  text-align: center;
  padding: 2rem 1.2rem 2.5rem;
  color: var(--text3);
  font-size: 0.92rem;
  border-top: 1px solid var(--border2);
}
.land-footer .lf-legal { margin-bottom: 0.5rem; line-height: 1.4; }
.land-footer .lf-ver { color: var(--gold); font-weight: 600; }
.footer-about-btn {
  background: none; border: 1px solid rgba(200,148,10,0.35);
  color: rgba(200,148,10,0.65); border-radius: 20px;
  padding: 2px 12px; font-size: 0.72rem; cursor: pointer;
  letter-spacing: 0.08em; transition: border-color 0.2s, color 0.2s;
  margin-right: 8px; vertical-align: middle;
}
.footer-about-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ===== ANIMATIONS AU SCROLL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .hero-skull, .hero-ship, .hero-wave, .cta-play, .scroll-hint, .hero::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
