.roulette-container {
  text-align: center;
  margin: 20px auto;
}

.roulette-wrapper {
  position: relative;
  display: inline-block;
}

#wheelCanvas {
  display: block;
  margin: 0 auto;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

#wheelCanvas.flash {
  box-shadow: 0 0 40px 15px #ffff66;
  transition: box-shadow 0.2s ease;
}

.fixed-needle {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 20px solid #66ccff;
  z-index: 10;
}

#spinBtn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  padding: 10px 20px;
  font-size: 18px;
  background: #9933cc;
  color: #fff;
  border: none;
  border-radius: 50px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  cursor: pointer;
}

#spinBtn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

#resultDisplay {
  margin-top: 10px;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: bold;
  color: #f6e8ff;
  font-family: 'Dancing Script', cursive;
  line-height: 1.3;
  text-align: center;

  text-shadow:
      0 0 3px #000,
      0 0 6px #000,
      0 0 10px #000;
}


#videoPlayerContainer {
  position: relative;
  margin: 30px auto;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  background: black;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#videoPlayer {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Icônes musicales */
.star {
  position: fixed;
  top: -20px;
  pointer-events: none;
  z-index: 9999;
  font-size: 18px;
  color: #66ccff;
  animation: fall 6s linear forwards, blink 1s ease-in-out infinite;
  font-family: "Noto Emoji", "Noto Music", "Bravura", "Segoe UI Symbol", "Symbola", serif;
}

@keyframes fall {
  to {
    transform: translateY(100vh);
    opacity: 0;
  }
}

@keyframes blink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Sous-titres overlay transparents, bas de l’écran */
#subtitle {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  color: #d9c1f3; /* violet clair */
  font-family: 'Dancing Script', cursive;
  font-size: clamp(20px, 2vw, 36px) !important;
  line-height: 1.35; /* 🔹 espace entre les lignes */
  padding: 6px 12px;
  background-color: transparent;
  border-radius: 5px;
  z-index: 2147483647;
  pointer-events: none;
  max-width: 90%;
  white-space: pre-wrap;
  text-align: center;

  /* Ombre large et douce */
  text-shadow:
    -3px -3px 5px #000,
     3px -3px 5px #000,
    -3px  3px 5px #000,
     3px  3px 5px #000,
     0px  0px 6px #000;
}



.vjs-fullscreen #subtitle {
  font-size: clamp(80px, 12vw, 200px) !important;
}


.video-js {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

.video-js .vjs-fullscreen-control {
  display: none !important;
}

/* Contrôles personnalisés */
#customControls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

#customControls button {
  padding: 6px 10px;
  font-size: 14px;
  background-color: #9871f1;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#customControls button:hover {
  background-color: #7651c8;
}

#progressContainer {
  width: 80%;
  height: 8px;
  background-color: #ddd;
  margin: 10px auto;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
}

#progressBar {
  width: 100%;
  height: 100%;
  background-color: #ccc;
  position: relative;
  border-radius: 4px;
}

#progressFill {
  width: 0%;
  height: 100%;
  background-color: #9871f1;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 4px;
}

#timeDisplay {
  text-align: center;
  font-size: 14px;
  color: white;
  margin-top: 5px;
}
#fullscreenExitBtn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 99999;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  padding: 6px 12px;
  font-size: 18px;
  cursor: pointer;
  display: none;
}

.video-container.vjs-fullscreen #fullscreenExitBtn,
.video-container:-webkit-full-screen #fullscreenExitBtn {
  display: block;
}

#fullscreenExitBtn {
  display: none;
}

.vjs-fullscreen #fullscreenExitBtn {
  display: block;
}
.vjs-big-play-button {
  display: none !important;
}

#timeDisplay {
  color: #b57edc; /* ou la couleur exacte de tes boutons */
  font-weight: bold;
  font-size: 16px;
}

body.fullscreen-active #subtitle {
  font-size: clamp(32px, 4vw, 64px) !important;
  line-height: 1.3 !important;
}

#videoOverlayContainer {
  position: relative;
  width: 100%;
  height: 100%;
}

#interludeOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 9999;
  pointer-events: none;
}
#creditsBox {
  position: absolute;         /* 🔹 fixe dans la page */
  top: 320px;                 /* même niveau que le lecteur */
  right: 15%;
  width: 170px;
  max-height: 30%;
  overflow-y: auto;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 13px;
  font-family: 'Dancing Script', cursive;
  border-radius: 6px;
  line-height: 1.3;
  white-space: pre-wrap;
  z-index: 2147483647;
}

#toggleCreditsBtn {
  position: absolute;
  top: 380px;              /* ajuste pour être aligné avec tes autres boutons */
  right: 5%;             /* décalé à gauche de creditsBox */
  z-index: 2147483647;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-family: 'Dancing Script', cursive;
  transition: background 0.2s;
}

#toggleCreditsBtn:hover {
  background: rgba(0,0,0,0.8);
}

#rouletteLayout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    width: 100%;
}

#carouselZone {
    width: 220px;
    flex-shrink: 0;
}

#rouletteZone {
    flex-shrink: 0;
}

.introRoulette {
  color: #f0d8ff;
  font-family: 'Dancing Script', cursive;
  text-align: center;
  text-shadow:
      0 0 3px #000,
      0 0 6px #000,
      0 0 10px #000;
}

.introRoulette .introPhoto {
  max-width: 220px;
  border-radius: 14px;
  box-shadow:
      0 0 6px #000,
      0 0 14px rgba(0,0,0,0.7);
}

#startupOverlay {
  position: fixed;
  inset: 0;
  z-index: 999999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,0.85);

  color: #f0d8ff;
  font-family: 'Dancing Script', cursive;
  font-size: clamp(40px, 6vw, 90px);
  font-weight: bold;

  text-align: center;
  cursor: pointer;

  text-shadow:
      0 0 10px #000,
      0 0 20px #000,
      0 0 30px #000;
}

#startupOverlay.flyAway {
  opacity: 0;
  transform:
      translateY(-500px)
      scale(0.3)
      rotate(-15deg);
}

#startupContent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
    max-width: 90%;
	animation: introZoom 3.5s cubic-bezier(.16,1,.3,1) forwards;
}

#startupImage {
    width: 440px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(255,255,255,.35);
}

#startupText {
    color: #f0d8ff;
    font-family: 'Dancing Script', cursive;
    font-size: clamp(40px, 6vw, 45px);
    font-weight: bold;
    text-align: left;

    text-shadow:
        0 0 10px #000,
        0 0 20px #000,
        0 0 30px #000;
}

.confettiPiece {
  position: fixed;
  width: 8px;
  height: 8px;
  z-index: 1000000;
  pointer-events: none;
  border-radius: 2px;
  animation: confettiExplode 3s cubic-bezier(.15,.8,.2,1) forwards;
}

@keyframes confettiExplode {
  to {
    transform:
      translate(var(--dx), var(--dy))
      rotate(var(--rot))
      scale(0.2);
    opacity: 0;
  }
}

#startupOverlay.confettiGone {
  opacity: 0;
  transition: opacity 300ms ease;
}



.photo-ronde {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  display: inline-block;
}


.photo-ronde:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}

.photo-ronde {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.photo-video {
    display: inline-block;
    width: 170px;
    margin: 8px;
    vertical-align: top;

    overflow: hidden;
    border-radius: 18px;
    border: 1px solid #d8d8d8;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    transition: .25s;
}

.photo-video > a > img {
    display: block;
    width: 100%;
    height: auto;
}



.photo-video:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,.35);
}

.photo-video .legende {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    margin: 10px auto 12px;
    padding: 8px 16px;

    background: #f8f8f8;
    border: 1px solid #d8d8d8;
    border-radius: 18px;

    font-size: 15px;
    font-weight: 600;
    color: #444;

    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.photo-video .legende img {
    height: 18px;
    width: auto;
    margin-left: 6px;
    vertical-align: middle;
    border-radius: 2px;
}


@keyframes introZoom {

    0% {
        transform: scale(10);
        opacity: 0;
        filter: blur(15px);
    }

    20% {
        opacity: 1;
    }

    75% {
        transform: scale(1.08);
        filter: blur(0);
    }

    90% {
        transform: scale(0.97);
    }

    100% {
        transform: scale(1);
    }
}


.startup-disappear {
    animation: startupSpinDisappear 1.4s ease-in forwards !important;
    pointer-events: none;
}

@keyframes startupSpinDisappear {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    70% {
        transform: scale(0.35) rotate(540deg);
        opacity: 0.8;
    }

    100% {
        transform: scale(0) rotate(900deg);
        opacity: 0;
    }
}


/* =========================================================
   VIDÉO D’INTRODUCTION PLEIN ÉCRAN
   ========================================================= */

#introVideoOverlay {
    position: fixed;
    inset: 0;
    z-index: 2000000;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #000;
}

#introVideoOverlay.intro-video-disappear {
    opacity: 0;
    pointer-events: none;
}

#introVideo {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: cover;
    background: #000;
}

/* Bouton permettant de passer la vidéo */

#toucherecran {
    position: absolute;
    right: 24px;
    bottom: 260px;
    z-index: 2000001;

    padding: 9px 17px;

    color: #fff;
    font-family: 'Dancing Script', cursive;
    font-size: 18px;

    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 20px;

    cursor: pointer;
    opacity: 0.75;

    transition:
        opacity 200ms ease,
        background 200ms ease;
}

#toucherecran2 {
    position: absolute;
    right: 5px;
    bottom: 305px;
    z-index: 2000001;

    padding: 9px 17px;

    color: #fff;
    font-family: 'Dancing Script', cursive;
    font-size: 18px;

    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 20px;

    cursor: pointer;
    opacity: 0.75;

    transition:
        opacity 200ms ease,
        background 200ms ease;
}



#skipIntroVideo {
    position: absolute;
    right: 24px;
    bottom: 54px;
    z-index: 2000001;

    padding: 9px 17px;

    color: #fff;
    font-family: 'Dancing Script', cursive;
    font-size: 18px;

    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 20px;

    cursor: pointer;
    opacity: 0.75;

    transition:
        opacity 200ms ease,
        background 200ms ease;
}

#skipIntroVideo:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.8);
}

/* Sur mobile */
@media (max-width: 700px) {

    #skipIntroVideo {
        right: 14px;
        bottom: 14px;
        font-size: 16px;
        padding: 7px 14px;
    }

#introVideo {
    width: auto !important;
    height: 85vh !important;

    max-width: 90vw !important;
    max-height: 85vh !important;

    object-fit: contain !important;
    display: block;
}
}

html,
body {
    background: #000 !important;
}

#introVideoOverlay {
    background: #000 !important;
    z-index: 100002 !important;
}

#startupOverlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #000 !important;
    z-index: 100001 !important;
    align-items: center;
    justify-content: center;
}

#siteContent {
    visibility: hidden;
}


/* =========================================================
   VERROU TEMPORAIRE D'ACCES
   ========================================================= */

#accessLockOverlay {
    position: fixed;
    inset: 0;
    z-index: 2000002;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.96);
}

#accessLockBox {
    width: 90%;
    max-width: 420px;
    text-align: center;

    font-family: 'Dancing Script', cursive;
    color: #f0d8ff;
}

#accessLockTitle {
    font-size: 38px;
    margin-bottom: 12px;

    text-shadow:
        0 0 10px #000,
        0 0 20px #000;
}

#accessLockSubtitle {
    font-size: 22px;
    margin-bottom: 30px;
    opacity: 0.75;
}

#accessLockBox input {
    display: block;

    width: 100%;
    box-sizing: border-box;

    margin: 12px 0;
    padding: 12px 14px;

    background: #080808;
    color: #fff;

    border: 1px solid rgba(200, 133, 222, 0.65);
    border-radius: 8px;

    font-family: "Book Antiqua", Palatino, serif;
    font-size: 16px;

    outline: none;
}

#accessLockBox input:focus {
    border-color: #c885de;
    box-shadow: 0 0 8px rgba(200, 133, 222, 0.4);
}

#accessLockEnter {
    margin-top: 18px;
    padding: 9px 28px;

    background: transparent;
    color: #f0d8ff;

    border: 1px solid rgba(200, 133, 222, 0.7);
    border-radius: 20px;

    font-family: 'Dancing Script', cursive;
    font-size: 21px;

    cursor: pointer;
}

#accessLockRequest {
    display: block;
    margin-top: 25px;

    color: #c885de;
    font-size: 18px;
    text-decoration: none;

    opacity: 0.75;
}

#accessLockRequest:hover {
    opacity: 1;
}

#accessLockError {
    min-height: 20px;
    margin-top: 10px;

    color: #e7a5ef;
    font-family: "Book Antiqua", Palatino, serif;
    font-size: 14px;
}

#accessLockActions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

#accessLockActions button {
    margin: 0;
}