/* ══════════════════════════════════════════════════════════════
   BURNING BLUE — Intro vidéo plein écran (home)
   Splash d'entrée : vidéo + « Créer ma pièce » / « En savoir plus ».
   Le CTA révèle le maker sur la même page ; « En savoir plus » → Le projet.
   Dépend de css/style.css (variable --gold-light).
   ══════════════════════════════════════════════════════════════ */
body.bb-intro-lock { overflow: hidden; height: 100dvh; }
#bb-intro {
  position: fixed; inset: 0; z-index: 1;
  background: #000;
  opacity: 1;
  transition: opacity 1s ease;
}
#bb-intro.bb-intro-out { opacity: 0; pointer-events: none; }
#bb-intro video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.bb-intro-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 30%, transparent 75%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
.bb-intro-brand {
  position: absolute; top: 36px; left: 50%; transform: translateX(-50%);
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem; font-weight: 600;
  letter-spacing: 0.42em; text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  white-space: nowrap;
  text-align: center;
  text-shadow: 0 1px 20px rgba(0,0,0,0.4);
}
.bb-intro-brand small {
  display: block;
  margin-top: 6px;
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.55em; text-transform: lowercase;
  color: rgba(255,255,255,0.7);
}
.bb-intro-caption {
  position: absolute; left: 50%; bottom: 18vh; transform: translateX(-50%);
  width: min(90vw, 760px);
  text-align: center;
  opacity: 0; transition: opacity 1.2s ease;
  pointer-events: none;
}
.bb-intro-caption.visible { opacity: 1; pointer-events: auto; }
.bb-intro-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 14px;
}
.bb-intro-caption h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300; font-size: clamp(2.4rem, 6.5vw, 5rem);
  line-height: 1.15; color: #fff; margin: 0 0 36px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.bb-intro-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
#bb-intro-more {
  display: inline-block;
  padding: 17px 36px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 2px; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s, transform 0.25s;
}
#bb-intro-more:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
#bb-intro-cta {
  display: inline-block;
  padding: 17px 42px;
  background: #fff; color: #07080f;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  border: none; border-radius: 2px; cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  box-shadow: 0 8px 40px rgba(170,194,255,0.25);
}
#bb-intro-cta:hover { background: var(--gold-light); transform: translateY(-2px); }
#bb-intro-skip {
  position: absolute; right: 28px; bottom: 28px;
  background: none; border: none; cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  opacity: 0; transition: opacity 0.6s ease, color 0.2s;
}
#bb-intro-skip.visible { opacity: 1; }
#bb-intro-skip:hover { color: #fff; }
.bb-intro-progress {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: rgba(255,255,255,0.12);
}
#bb-intro-bar {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, #aac2ff, #ffffff);
}
@media (prefers-reduced-motion: reduce) {
  #bb-intro { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   Écran de bienvenue animé (avant la vidéo) + état « intro en cours »
   ══════════════════════════════════════════════════════════════ */
#bb-welcome {
  position: fixed; inset: 0; z-index: 10001;
  background: radial-gradient(circle at 50% 42%, rgba(59,111,232,0.22), transparent 62%), #05060c;
  padding: 8vw; text-align: center;
  opacity: 1; transition: opacity 0.9s ease;
}
#bb-welcome.bb-welcome-out { opacity: 0; pointer-events: none; }
/* Les étapes se superposent, centrées */
#bb-welcome-text, #bb-welcome-logo, #bb-welcome-final {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.bb-welcome-line {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300; font-size: clamp(1.5rem, 3.4vw, 3rem);
  line-height: 1.35; color: #fff; width: min(900px, 84vw); margin: 0;
  opacity: 0; filter: blur(16px);
  transition: opacity 1s ease, filter 1s ease;
}
.bb-welcome-line.show { opacity: 1; filter: blur(0); }
/* Étape 1 : logo Burning Blue Maker (SVG blanc + « Maker ») */
#bb-welcome-logo {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  opacity: 0; filter: blur(16px);
  transition: opacity 1s ease, filter 1s ease;
}
#bb-welcome-logo.show { opacity: 1; filter: blur(0); }
.bbw-eyebrow {
  font-family: 'Outfit', sans-serif; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--blue-light);
}
.bbw-logo-img { width: min(440px, 78vw); height: auto; display: block; }
.bbw-maker {
  font-family: 'Outfit', sans-serif; font-size: clamp(1.05rem, 1.9vw, 1.6rem);
  font-weight: 500; letter-spacing: 0.44em; text-transform: uppercase;
  color: #fff; margin-top: 4px;
}
/* Étape finale : « Inspired by the art project Burning Blue by: » + signature */
#bb-welcome-final {
  display: flex; flex-direction: column; align-items: center; gap: 26px;
  opacity: 0; filter: blur(16px);
  transition: opacity 1s ease, filter 1s ease;
}
#bb-welcome-final.show { opacity: 1; filter: blur(0); }
.bbw-inspired {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300; font-size: clamp(1.15rem, 2.2vw, 1.8rem);
  color: rgba(255,255,255,0.9); margin: 0; line-height: 1.4;
}
.bbw-inspired em { font-style: italic; color: var(--blue-light); }
#bb-welcome-sign {
  width: min(280px, 62vw); display: block; opacity: 0.95;
  filter: invert(1);
  -webkit-clip-path: inset(0 100% 0 0);
  clip-path: inset(0 100% 0 0);
  transition: -webkit-clip-path 2s ease, clip-path 2s ease;
  pointer-events: none;
}
#bb-welcome-sign.show {
  -webkit-clip-path: inset(0 0 0 0);
  clip-path: inset(0 0 0 0);
}

/* Pendant l'intro (welcome + vidéo) : header masqué, révélé à la fin */
#site-header { transition: opacity 0.6s ease; }
body.bb-intro-playing #site-header { opacity: 0; pointer-events: none; }
