/* ==========================================================
   LUDORUM — BANDEAU ACCUEIL COMPACT ET ANIMÉ
   Remplace uniquement .lud-accueil-v2-hero
   ========================================================== */

.lud-accueil-v2 .lud-accueil-v2-hero.lud-bandeau-actif {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.4fr) minmax(230px, 0.6fr) !important;
  align-items: center !important;
  gap: clamp(20px, 4vw, 48px) !important;

  min-height: 188px !important;
  padding: 25px 34px !important;
  overflow: hidden !important;

  color: #071a33 !important;
  background:
    radial-gradient(circle at 88% 20%, rgba(242, 169, 0, 0.16), transparent 26%),
    radial-gradient(circle at 72% 88%, rgba(11, 77, 187, 0.09), transparent 30%),
    linear-gradient(145deg, #ffffff 0%, #fffaf0 100%) !important;

  border: 1px solid rgba(7, 26, 51, 0.12) !important;
  border-radius: 18px !important;

  box-shadow:
    0 14px 34px rgba(7, 26, 51, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.lud-accueil-v2 .lud-accueil-v2-hero.lud-bandeau-actif::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 5px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(90deg, #0b4dbb 0 33.333%, #f2a900 33.333% 66.666%, #cf1f1f 66.666% 100%) !important;
  box-shadow: none !important;
}

.lud-accueil-v2 .lud-accueil-v2-hero.lud-bandeau-actif::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -105px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(11, 77, 187, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(11, 77, 187, 0.025), 0 0 0 56px rgba(242, 169, 0, 0.02);
  pointer-events: none;
}

.lud-bandeau-contenu,
.lud-bandeau-scene {
  position: relative;
  z-index: 2;
}

.lud-bandeau-contenu {
  min-width: 0;
}

.lud-bandeau-badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 6px 11px;
  color: #071a33;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: linear-gradient(145deg, #f2a900, #ffc83d);
  border-radius: 999px;
}

.lud-accueil-v2 .lud-accueil-v2-hero.lud-bandeau-actif h1 {
  max-width: 680px !important;
  margin: 11px 0 7px !important;
  color: #071a33 !important;
  font-size: clamp(28px, 3.4vw, 42px) !important;
  font-weight: 900 !important;
  line-height: 1.04 !important;
  letter-spacing: -0.04em !important;
  text-shadow: none !important;
}

.lud-bandeau-phrase {
  min-height: 25px;
  margin: 0 0 14px !important;
  color: #697386 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.lud-bandeau-mot {
  display: inline-block;
  margin-left: 4px;
  color: #0b4dbb;
  font-weight: 900;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.lud-bandeau-mot.is-changing {
  opacity: 0;
  transform: translateY(5px);
}

.lud-bandeau-bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 41px;
  padding: 9px 15px;
  gap: 8px;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none !important;
  background: linear-gradient(120deg, #071a33, #0b4dbb);
  border-radius: 10px;
  box-shadow: 0 9px 20px rgba(7, 26, 51, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lud-bandeau-bouton:hover {
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 13px 25px rgba(7, 26, 51, 0.25);
}

/* ==========================================================
   SCÈNE ANIMÉE
   ========================================================== */

.lud-bandeau-scene {
  min-height: 136px;
}

.lud-bandeau-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 176px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 77, 187, 0.12), transparent 69%);
  transform: translate(-50%, -50%);
}

.lud-bandeau-piece {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

/* ----------------------------------------------------------
   BOOSTER LUDORUM – OUVERTURE PAR DÉCHIRURE HORIZONTALE
   ---------------------------------------------------------- */

.lud-bandeau-booster {
  top: 6px;
  left: 50%;
  width: 100px;
  height: 126px;
  box-shadow: none;
  transform: translateX(-50%) rotate(-8deg);
  animation: ludBoosterFloat 5.2s ease-in-out infinite;
}

.lud-bandeau-booster-pack {
  position: relative;
  width: 100px;
  height: 126px;
}

.lud-bandeau-booster-card,
.lud-bandeau-booster-cap,
.lud-bandeau-booster-body {
  position: absolute;
  left: 0;
}

.lud-bandeau-booster-card {
  top: 18px;
  left: 13px;
  width: 74px;
  height: 92px;
  border-radius: 11px;
  background: linear-gradient(160deg, #ffffff 0%, #fff9ea 100%);
  border: 3px solid #ffffff;
  box-shadow: 0 10px 18px rgba(7, 26, 51, .16), inset 0 0 0 1px rgba(11, 77, 187, .08);
  transform: translateY(16px);
  z-index: 1;
  animation: ludBoosterCardLift 5.2s ease-in-out infinite;
}

/* La carte qui sort du booster reste volontairement vierge :
   aucun pictogramme ne concurrence le L Ludorum. */

.lud-bandeau-booster-body {
  top: 18px;
  width: 100px;
  height: 108px;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(160deg, #f9d56a 0%, #f2b52a 42%, #c88a0a 100%);
  border: 4px solid #ffffff;
  box-shadow: 0 13px 27px rgba(7, 26, 51, .17), inset 0 1px 0 rgba(255,255,255,.30), inset 0 -8px 18px rgba(145, 90, 0, .12);
  z-index: 2;
}

/* Face du booster épurée : seul le L reste imprimé. */

.lud-bandeau-booster-cap {
  top: 0;
  width: 100px;
  height: 34px;
  border: 4px solid #ffffff;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(160deg, #ffd975 0%, #f2b52a 58%, #c88908 100%);
  box-shadow: 0 8px 14px rgba(7,26,51,.12);
  z-index: 4;
  transform-origin: center bottom;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 92% 68%, 84% 76%, 75% 68%, 66% 76%, 56% 68%, 48% 76%, 40% 68%, 30% 76%, 20% 68%, 10% 76%, 0 68%);
  animation: ludBoosterCapTear 5.2s ease-in-out infinite;
}

.lud-bandeau-booster-gloss {
  position: absolute;
  top: -10px;
  left: -18px;
  width: 34px;
  height: 140px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.25), rgba(255,255,255,0));
  transform: rotate(18deg);
  animation: ludBoosterShine 4s ease-in-out infinite;
}

.lud-bandeau-booster-tear-line {
  position: absolute;
  top: 3px;
  left: 7px;
  width: calc(100% - 14px);
  height: 11px;
  opacity: .95;
  z-index: 4;
  background:
    linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0)),
    linear-gradient(90deg, rgba(255,255,255,.24), rgba(255,255,255,.08));
  clip-path: polygon(0 58%, 8% 66%, 15% 54%, 22% 64%, 30% 53%, 38% 63%, 46% 54%, 55% 66%, 63% 54%, 72% 65%, 81% 52%, 90% 63%, 100% 56%, 100% 100%, 0 100%);
}

.lud-bandeau-booster-logo {
  position: absolute;
  top: 23px;
  left: 50%;
  width: 42px;
  height: 52px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 6px rgba(7, 26, 51, .20));
}

.lud-bandeau-booster-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Aucun texte « LUDORUM » / « BOOSTER » : le L est le seul marquage. */

/* ----------------------------------------------------------
   DÉ ET JETON
   ---------------------------------------------------------- */

.lud-bandeau-de {
  top: 14px;
  right: 11%;
  display: grid;
  grid-template-columns: repeat(2, 11px);
  grid-template-rows: repeat(3, 11px);
  align-content: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  padding: 12px 15px;
  gap: 8px 21px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 42%), linear-gradient(145deg, #f2a900, #ffc83d);
  border: 4px solid #ffffff;
  border-radius: 24px;
  box-shadow: 0 13px 27px rgba(7, 26, 51, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -5px 12px rgba(175, 112, 0, 0.12);
  transform: rotate(8deg);
  animation: ludDeFlotte 4.6s ease-in-out infinite;
}

.lud-bandeau-de i {
  display: block;
  width: 11px;
  height: 11px;
  margin: 0;
  background: radial-gradient(circle at 35% 30%, #14335f 0 20%, #071a33 58% 100%);
  border-radius: 50%;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.22), 0 1px 2px rgba(7, 26, 51, 0.28);
}

.lud-bandeau-jeton {
  right: 34%;
  bottom: 2px;
  width: 56px;
  height: 56px;
  color: #ffffff;
  font-size: 26px;
  font-weight: 950;
  background: linear-gradient(145deg, #cf1f1f, #ef4949);
  border: 4px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 13px 27px rgba(7, 26, 51, 0.17);
  animation: ludJetonFlotte 4.1s ease-in-out infinite;
}

.lud-bandeau-point {
  position: absolute;
  display: block;
  border-radius: 50%;
  animation: ludPointPulse 3.4s ease-in-out infinite;
}

.lud-bandeau-point-1 {
  top: 5px;
  right: 2%;
  width: 15px;
  height: 15px;
  background: #0b4dbb;
}

.lud-bandeau-point-2 {
  right: 4%;
  bottom: 21px;
  width: 12px;
  height: 12px;
  background: #f2a900;
  animation-delay: 0.5s;
}

.lud-bandeau-point-3 {
  bottom: 4px;
  left: 7%;
  width: 11px;
  height: 11px;
  background: #cf1f1f;
  animation-delay: 1s;
}

@keyframes ludBoosterFloat {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-8deg); }
  50% { transform: translateX(-50%) translateY(-7px) rotate(-4deg); }
}

@keyframes ludBoosterCapTear {
  0%, 16%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  26%, 56% {
    transform: translateY(-22px) rotate(-8deg);
  }
  64% {
    transform: translateY(-6px) rotate(-2deg);
  }
}

@keyframes ludBoosterCardLift {
  0%, 16%, 100% {
    transform: translateY(16px);
  }
  26%, 56% {
    transform: translateY(-26px);
  }
  64% {
    transform: translateY(1px);
  }
}

@keyframes ludBoosterShine {
  0%, 100% { opacity: .42; transform: translateX(0) rotate(18deg); }
  45% { opacity: .74; transform: translateX(22px) rotate(18deg); }
}

@keyframes ludDeFlotte {
  0%, 100% { transform: translateY(0) rotate(8deg); }
  50% { transform: translateY(6px) rotate(3deg); }
}

@keyframes ludJetonFlotte {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-5px) rotate(7deg); }
}

@keyframes ludPointPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.12); }
}

/* ==========================================================
   TABLETTE
   ========================================================== */

@media screen and (max-width: 950px) {
  .lud-accueil-v2 .lud-accueil-v2-hero.lud-bandeau-actif {
    grid-template-columns: minmax(0, 1fr) 190px !important;
    min-height: 176px !important;
    padding: 23px 27px !important;
    gap: 18px !important;
  }

  .lud-bandeau-scene {
    min-height: 124px;
    transform: scale(0.9);
    transform-origin: center;
  }
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media screen and (max-width: 767px) {
  .lud-accueil-v2 .lud-accueil-v2-hero.lud-bandeau-actif {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
    padding: 21px 17px 17px !important;
    gap: 8px !important;
    border-radius: 15px !important;
    text-align: center !important;
  }

  .lud-accueil-v2 .lud-accueil-v2-hero.lud-bandeau-actif h1 {
    max-width: 520px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    font-size: 28px !important;
  }

  .lud-bandeau-phrase {
    margin-bottom: 12px !important;
    font-size: 13px !important;
  }

  .lud-bandeau-bouton {
    width: 100%;
  }

  .lud-bandeau-scene {
    min-height: 82px;
    width: min(250px, 100%);
    margin: 2px auto 0;
    transform: scale(0.62);
    transform-origin: top center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lud-bandeau-booster,
  .lud-bandeau-booster-cap,
  .lud-bandeau-booster-card,
  .lud-bandeau-booster-gloss,
  .lud-bandeau-de,
  .lud-bandeau-jeton,
  .lud-bandeau-point {
    animation: none !important;
  }

  .lud-bandeau-mot,
  .lud-bandeau-bouton {
    transition: none !important;
  }
}


/* ==========================================================
   V1.0.7 — BOOSTER DORÉ FORCÉ
   Sélecteurs volontairement spécifiques pour écraser tout ancien thème bleu.
   ========================================================== */
.lud-accueil-v2 .lud-accueil-v2-hero.lud-bandeau-actif
.lud-bandeau-scene .lud-bandeau-booster .lud-bandeau-booster-body {
  background: linear-gradient(160deg, #ffe28a 0%, #f2b52a 44%, #bd7b00 100%) !important;
  background-color: #f2b52a !important;
  box-shadow:
    0 13px 27px rgba(7, 26, 51, .17),
    inset 0 1px 0 rgba(255,255,255,.38),
    inset 0 -10px 20px rgba(126, 75, 0, .16) !important;
}

.lud-accueil-v2 .lud-accueil-v2-hero.lud-bandeau-actif
.lud-bandeau-scene .lud-bandeau-booster .lud-bandeau-booster-cap {
  background: linear-gradient(160deg, #ffe9a8 0%, #f4bd38 58%, #c98608 100%) !important;
  background-color: #f2b52a !important;
}

/* Le L reste bleu Ludorum. */
.lud-accueil-v2 .lud-accueil-v2-hero.lud-bandeau-actif
.lud-bandeau-booster-logo path {
  fill: #0b4dbb !important;
}
