.page-index {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Wallpaper sur un calque dédié : le filtre n'affecte pas le texte ni le CTA */
.page-index-bg {
  position: absolute;
  inset: 0;
  background: url('/images/wallpaper.webp') center / cover no-repeat;
  filter: contrast(1.05) brightness(0.9);
  z-index: 0;
}

/* Dégradé de couleur flouté (l'image reste nette) */
.page-index::after {
  content: '';
  position: absolute;
  inset: -20px;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 124, 0.2) 0%,
      rgba(0, 0, 124, 0.4) 40%,
      rgba(0, 0, 124, 0.85) 100%
    ),
    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0) 60%,
      rgba(0, 0, 124, 0.6) 100%
    );
  filter: blur(12px);
  z-index: 0;
}

/* Texture overlay */
.page-index::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/filtre_arg.webp') center / cover no-repeat;
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

/* Texte présent pour les lecteurs d'écran et le SEO, invisible à l'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== HERO CONTENT ===== */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-top: 80px;
  position: relative;
  z-index: 2;
}

.hero-date {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  color: #ffd400;
  letter-spacing: 4px;
  line-height: 1;
  animation: fadeUp 0.8s ease both;
}

/* ===== COUNTDOWN ===== */
.countdown {
  display: flex;
  gap: clamp(16px, 4vw, 48px);
  align-items: flex-start;
  animation: fadeUp 0.8s 0.15s ease both;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.countdown-number {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  color: #ffd400;
  line-height: 1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 12px;
}

.countdown-label {
  font-size: clamp(0.6rem, 1.5vw, 0.8rem);
  color: white;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.4;
}

/* Message affiché une fois le festival ouvert (remplace le décompte) */
.countdown-live {
  color: #ffd400;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.countdown-live[hidden] {
  display: none;
}


/* ===== HERO CTA ===== */
.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: clamp(32px, 5vh, 56px);
  animation: fadeUp 0.8s 0.35s ease both;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  border: 1.5px solid #ffd400;
  background: transparent;
  color: #ffd400;
  font-family: 'Classica', sans-serif;
  font-size: clamp(0.82rem, 1.8vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.hero-cta-btn:hover {
  background: #ffd400;
  color: #00007C;
  transform: scale(1.04);
  box-shadow: 0 0 32px rgba(255, 212, 0, 0.35);
}

.btn-arrow {
  display: inline-block;
  font-style: normal;
  transition: transform 0.2s ease;
}

.hero-cta-btn:hover .btn-arrow {
  transform: translateX(4px);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== SCROLL HINT ===== */
.scroll-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s 1.2s ease forwards;
  /* Bouton cliquable : descend vers le contenu */
  background: none;
  border: 0;
  padding: 12px 20px;
  cursor: pointer;
}

.scroll-hint:focus-visible {
  outline: 3px solid #ffd400;
  outline-offset: 3px;
}

.scroll-hint-line {
  display: block;
  margin: 0 auto;
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255, 212, 0, 0.7), transparent);
  animation: scrollPulse 2s 1.5s ease-in-out infinite;
  transform-origin: top;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1);   opacity: 0.7; }
  50%       { transform: scaleY(0.5); opacity: 0.2; }
}

@media (max-width: 1024px) {

  /* Wallpaper allégé sur mobile (74 Ko au lieu de 712 Ko) */
  .page-index-bg {
    background-image: url('/images/wallpaper-mobile.webp');
  }

  /* ── Hero ── */
  .hero-content {
    margin-top: 0;
    gap: 24px;
    padding: 0 20px;
    text-align: center;
  }

  .hero-date {
    font-size: clamp(3.8rem, 18vw, 6rem);
    letter-spacing: 2px;
  }

  .countdown {
    gap: clamp(12px, 5vw, 28px);
  }

  .countdown-number {
    font-size: clamp(2.4rem, 11vw, 3.5rem);
    text-underline-offset: 8px;
  }

  .countdown-label {
    font-size: clamp(0.55rem, 2.2vw, 0.75rem);
    letter-spacing: 0.5px;
  }

}

@media (max-width: 480px) {

  /* ── Hero CTA ── */
  .hero-cta-btn {
    padding: 16px 32px;
    font-size: 0.82rem;
    letter-spacing: 2px;
  }

  /* ── Hero ── */
  .hero-date {
    font-size: clamp(3.2rem, 20vw, 5rem);
  }

  .countdown {
    gap: clamp(10px, 4vw, 20px);
  }

  .countdown-number {
    font-size: clamp(2rem, 12vw, 3rem);
  }

}

/* ===== SECTION PRATIQUE ===== */
.index-pratique-section {
  background: #000026;
  padding: 80px 6vw 80px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pratique-item {
  padding: 44px 0;
}

.pratique-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.pratique-label {
  font-family: 'Classica', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #FFDE00;
  display: block;
  margin-bottom: 14px;
}

.pratique-value {
  font-family: 'Classica', sans-serif;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
}

.pratique-value span {
  color: #FFDE00;
}

.pratique-sub {
  font-family: 'Classica', sans-serif;
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  color: rgba(255,255,255,0.62); /* contraste AA sur fond navy */
  margin-top: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.pratique-cta {
  padding-top: 52px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.pratique-link {
  font-family: 'Classica', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72); /* contraste AA sur fond navy */
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}

.pratique-link:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

/* ===== BOUTON CTA BILLETS (cf. maquette : barre verte arrondie) ===== */
.index-cta-btn {
  display: block;
  width: 100%;
  padding: 30px;
  border-radius: 18px;
  background: #83F379;
  color: #00007C;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  font-weight: 700;
  font-family: 'Classica', Georgia, serif;
  letter-spacing: .16em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.25s, transform 0.2s;
}

.index-cta-btn:hover {
  background: #2AC255;
  transform: translateY(-2px);
}

/* ===== SECTION LINEUP INDEX (cf. maquette) ===== */
.index-lineup-section {
  background: #fff;
  padding: 84px 6vw 90px;
  display: flex;
  flex-direction: column;
  gap: 46px;
}

.index-lineup-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.index-lineup-eyebrow {
  font-family: 'Roboto Flex', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #6b6b78; /* contraste AA sur fond blanc */
  margin-bottom: 12px;
}

.index-lineup-title {
  font-family: 'Classica', Georgia, serif;
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  font-weight: 700;
  color: #000026;
  letter-spacing: .01em;
  text-transform: uppercase;
  line-height: 0.82;
}

.index-lineup-line2 {
  display: block;
  margin-left: clamp(1.6rem, 7vw, 5.5rem);
  color: #00007C;
}

.index-lineup-more {
  font-family: 'Roboto Flex', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #00007C;
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 5px;
  border-bottom: 2px solid #FFDE00;
  transition: color 0.2s, border-color 0.2s;
}

.index-lineup-more:hover { color: #ED0980; border-color: #ED0980; }

/* Grille 4 colonnes (cf. maquette) */
.index-lineup-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  width: 100%;
}

/* Carte artiste : 4/5, coins arrondis, ombre, lift au survol (cf. maquette) */
.index-flip-card {
  aspect-ratio: 4 / 5;
  cursor: pointer;
  perspective: 1000px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 38, 0.12);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.6s ease; /* préserve le fondu .reveal */
}

.index-flip-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(0, 0, 38, 0.28);
}

.index-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.index-flip-inner.flipped {
  transform: rotateY(180deg);
}

.index-flip-clone {
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
  cursor: pointer;
  will-change: transform;
}

.index-flip-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 38, 0.78);
  z-index: 899;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.index-flip-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.index-flip-front,
.index-flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  overflow: hidden;
  border-radius: 16px;
}

.index-flip-back {
  transform: rotateY(180deg);
}

.index-flip-front img,
.index-flip-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.index-flip-card:hover .index-flip-front img {
  transform: scale(1.03);
}

/* Pas de zoom au survol sur la carte agrandie */
.index-flip-clone .index-flip-front img {
  transform: none !important;
}

/* Horaire en façade (le nom est déjà dans le visuel) : au survol/focus
   sur desktop, toujours visible au tactile */
.index-flip-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  padding: 26px 16px 13px;
  background: linear-gradient(to top, rgba(0, 0, 38, 0.85), transparent);
  border-radius: 0 0 16px 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.index-flip-card:hover .index-flip-overlay,
.index-flip-card:focus-visible .index-flip-overlay {
  opacity: 1;
}

@media (hover: none) {
  .index-flip-overlay {
    opacity: 1;
  }
}

.index-flip-time {
  color: #ffd400;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
}

/* Responsive lineup */
@media (max-width: 1024px) {
  .index-lineup-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .index-lineup-section {
    padding: 48px 5vw 56px;
    gap: 32px;
  }

  .index-lineup-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .index-cta-btn {
    padding: 22px 24px;
    font-size: 0.9rem;
    letter-spacing: 3px;
  }

  /* Pratique */
  .index-pratique-section {
    padding: 56px 5vw 56px;
  }

  .pratique-item {
    padding: 32px 0;
  }

  .pratique-value {
    font-size: clamp(2rem, 9vw, 3.5rem);
  }

  .pratique-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-top: 36px;
  }
}

@media (max-width: 480px) {
  .index-lineup-section {
    padding: 40px 16px 48px;
    gap: 24px;
  }

  .index-lineup-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .pratique-value {
    font-size: clamp(1.8rem, 10vw, 3rem);
  }

  .pratique-sub {
    font-size: 0.7rem;
  }
}

/* ── Focus clavier visible ──────────────────────── */
.hero-cta-btn:focus-visible,
.index-flip-card:focus-visible,
.index-flip-clone:focus-visible {
  outline: 3px solid #ffd400;
  outline-offset: 3px;
}

.index-cta-btn:focus-visible,
.index-lineup-more:focus-visible {
  outline: 3px solid #00007C;
  outline-offset: 3px;
}

.pratique-link:focus-visible {
  outline: 3px solid #FFDE00;
  outline-offset: 3px;
}

/* ── Mouvement réduit : on coupe les animations décoratives ── */
@media (prefers-reduced-motion: reduce) {
  .hero-date,
  .countdown,
  .hero-cta-wrap,
  .scroll-hint,
  .scroll-hint-line {
    animation: none !important;
  }

  .scroll-hint { opacity: 1; }

  /* Le flip reste fonctionnel mais devient instantané */
  .index-flip-card,
  .index-flip-inner,
  .index-flip-clone,
  .index-flip-backdrop,
  .index-flip-front img {
    transition: none !important;
  }
}