/* =========================================================
   Page d'accueil
   ========================================================= */

/* ---------- Rideau d'ouverture (1,45 s) ---------- */
.rideau { position: fixed; inset: 0; z-index: 300; display: flex; overflow: hidden; pointer-events: none; }
.rideau__pan {
  position: relative; flex: 1;
  background: var(--grain), linear-gradient(180deg, rgba(0, 0, 0, .25), transparent 30%, rgba(0, 0, 0, .4)), var(--velours);
  transition: transform 1.3s cubic-bezier(.7, 0, .25, 1) .15s;
}
.rideau__pan--g { box-shadow: inset -18px 0 24px -8px rgba(0, 0, 0, .7); }
.rideau__pan--d { box-shadow: inset 18px 0 24px -8px rgba(0, 0, 0, .7); }
/* Franges dorées au bas du rideau */
.rideau__pan::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28px;
  border-top: 4px solid var(--or);
  background: repeating-linear-gradient(90deg, var(--or) 0 2px, var(--or-fonce) 2px 3px, transparent 3px 6px);
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
}
.rideau--ouvert .rideau__pan--g { transform: translateX(-101%); }
.rideau--ouvert .rideau__pan--d { transform: translateX(101%); }
.rideau__passer { position: absolute; left: 50%; bottom: 3.5rem; transform: translateX(-50%); pointer-events: auto; transition: opacity .3s; }
.rideau--ouvert .rideau__passer { opacity: 0; pointer-events: none; }
.sans-rideau .rideau, .navigateur-ancien .rideau { display: none; }
/* Filet de sécurité : si le script ne s'exécute pas, le rideau disparaît de lui-même après 4 s */
.rideau { animation: rideau-secours 0s 4s forwards; }
@keyframes rideau-secours { to { visibility: hidden; } }

/* ---------- Héros ---------- */
.heros {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: calc(100vh - var(--h-entete));
  min-height: calc(100svh - var(--h-entete));
  display: grid; place-items: center; text-align: center; padding: 6rem 0 5rem;
  background:
    radial-gradient(ellipse 55% 45% at 50% 42%, rgba(245, 233, 208, .16), transparent 70%),  /* projecteur */
    radial-gradient(ellipse at bottom, rgba(139, 10, 26, .55), transparent 70%),
    var(--noir);
}
/* Rideaux ouverts sur les côtés */
.heros::before, .heros::after {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; width: clamp(28px, 9vw, 130px);
  background: var(--grain), var(--velours);
}
.heros::before { left: 0; -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent); mask-image: linear-gradient(90deg, #000 55%, transparent); }
.heros::after { right: 0; -webkit-mask-image: linear-gradient(-90deg, #000 55%, transparent); mask-image: linear-gradient(-90deg, #000 55%, transparent); }
/* Lambrequin festonné */
.heros__lambrequin {
  position: absolute; top: 0; left: 0; right: 0; height: 48px; z-index: 2;
  background:
    radial-gradient(circle at 50% 0, var(--rouge) 0 34px, var(--or) 34px 38px, transparent 39px) 0 8px / 76px 42px repeat-x,
    linear-gradient(var(--rouge-sombre), var(--rouge)) 0 0 / 100% 10px no-repeat;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .5));
}
.heros__contenu { position: relative; z-index: 3; display: grid; justify-items: center; gap: 1rem; }
.heros__surtitre { font-family: var(--police-titre-2); letter-spacing: .2em; text-transform: uppercase; font-size: .85rem; opacity: .9; }
.heros__titre {
  font-family: var(--police-titre); font-size: clamp(3rem, 12vw, 7.5rem); line-height: 1;
  background: var(--degrade-or); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 20px rgba(212, 175, 55, .3));
}
.heros__slogan { font-family: var(--police-sous-titre); font-style: italic; font-size: clamp(1.25rem, 3.5vw, 2rem); margin-bottom: 1rem; }
.btn-grand { font-size: 1.1rem; padding: 1em 2em; }

.heros__masque {
  position: absolute; z-index: 2; width: clamp(70px, 13vw, 170px);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .6));
  animation: flotter 6s ease-in-out infinite;
}
.heros__masque--g { left: clamp(34px, 11vw, 180px); top: 16%; --r: -14deg; }
.heros__masque--d { right: clamp(34px, 11vw, 180px); bottom: 14%; --r: 12deg; animation-delay: -3s; }
@keyframes flotter {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50% { transform: translateY(-14px) rotate(calc(var(--r) * -.5)); }
}
@media (max-width: 640px) { .heros__masque { opacity: .35; } }

.heros__option-rideau {
  position: absolute; right: clamp(40px, 10vw, 140px); bottom: 1rem; z-index: 3;
  background: rgba(20, 6, 8, .6); color: var(--ivoire); border: 1px solid rgba(212, 175, 55, .5);
  border-radius: 999px; padding: .4rem .9rem; font-size: .85rem; cursor: pointer;
}
.heros__option-rideau:hover { border-color: var(--or); }

/* ---------- Présentation ---------- */
.presentation { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .presentation { grid-template-columns: repeat(3, 1fr); } }
.presentation .carte__corps { padding: 2.5rem 2rem; }
.presentation h3 { font-size: 1.35rem; }
.valeurs { list-style: none; padding: 0; display: grid; gap: .5rem; }
.valeurs li { font-family: var(--police-sous-titre); font-style: italic; font-size: 1.15rem; }
.valeurs li::before { content: "✦"; color: var(--or-fonce); margin-right: .5rem; font-style: normal; }

/* Chiffres clés en médaillons */
.chiffres { list-style: none; padding: 0; margin-top: 3.5rem; display: grid; gap: 2rem; justify-items: center; }
@media (min-width: 640px) { .chiffres { grid-template-columns: repeat(auto-fit, minmax(0, 260px)); justify-content: center; } }
.chiffres li { display: grid; justify-items: center; gap: .75rem; text-align: center; }
.chiffres__nombre {
  display: grid; place-items: center; width: 150px; height: 150px; border-radius: 50%;
  font-family: var(--police-titre); font-size: 2.6rem; color: var(--or); font-variant-numeric: tabular-nums;
  background: radial-gradient(circle, #2a0a0e, var(--noir));
  box-shadow: 0 0 0 2px var(--or), 0 0 0 7px var(--noir), 0 0 0 8px var(--or-fonce), 0 10px 30px rgba(0, 0, 0, .6);
}
.chiffres__libelle { font-family: var(--police-sous-titre); font-style: italic; font-size: 1.15rem; }

/* ---------- Prochain spectacle ---------- */
.prochain__billet { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 980px; margin-inline: auto; }
@media (min-width: 800px) { .prochain__billet { grid-template-columns: 5fr 6fr; } }
.prochain__affiche { min-height: 260px; background: var(--noir); }
.prochain__affiche img, .prochain__affiche .affiche-defaut { width: 100%; height: 100%; object-fit: cover; }
.prochain__infos { padding: 2rem; }
.prochain__titre { font-family: var(--police-titre); font-size: clamp(1.5rem, 3vw, 2.1rem); }
.prochain__prix { font-weight: 700; }
.compte { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: .5rem 0; }
.compte__case {
  display: grid; justify-items: center; padding: .6rem .25rem;
  background: var(--noir); color: var(--ivoire); border: 1px solid var(--or); border-radius: 6px;
}
.compte__nombre { font-family: var(--police-titre-2); font-weight: 700; font-size: clamp(1.4rem, 4vw, 2rem); color: var(--or); font-variant-numeric: tabular-nums; }
.compte__unite { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.prochain__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.prochain__vide { text-align: center; font-family: var(--police-sous-titre); font-style: italic; font-size: 1.25rem; margin-inline: auto; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.15fr; } }
.contact__coordonnees { font-style: normal; display: grid; gap: .9rem; margin-bottom: 1.5rem; }
.contact__ligne { display: flex; gap: .75rem; align-items: center; }
.contact__icone {
  flex: none; width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
  border: 1px solid var(--or); border-radius: 50%;
}
.contact__ligne a { color: var(--ivoire); }
.carte-maps {
  aspect-ratio: 4 / 3; margin-bottom: 1.5rem; padding: 1.5rem; overflow: hidden;
  display: grid; place-items: center; align-content: center; gap: 1rem; text-align: center;
  border: 2px solid var(--or); border-radius: var(--rayon);
  background: var(--grain), radial-gradient(circle, #2a0a0e, var(--noir));
}
.carte-maps--chargee { padding: 0; display: block; }
.carte-maps iframe { width: 100%; height: 100%; border: 0; }
.contact__formulaire { padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem); }
.contact__formulaire h3 { font-size: 1.4rem; }
.mention-rgpd { font-size: .88rem; color: #5a3a2a; }

/* Petit téléphone (320 px) : le compte à rebours et les infos tiennent dans la largeur */
@media (max-width: 380px) {
  .prochain__infos { padding: 1.25rem 1rem; }
  .compte { gap: .3rem; }
  .compte__unite { letter-spacing: 0; font-size: .68rem; }
}
