/* Advent — surfaces d'accueil, navigation et compte (ajouts uniquement).
 * LOT 2 / Agent 3. Aucune règle globale : tout est préfixé .adv- / .advcal-.
 */
.adv-banner,
.adv-notice,
.adv-nav-badge,
.adv-member-card,
.adv-public-banner {
  --adv-night: #0b1430;
  --adv-night-2: #152352;
  --adv-gold: #ffcc4d;
  --adv-red: #d62b45;
  --adv-ink: #f6f8ff;
  --adv-muted: #b7c3e4;
  color: var(--adv-ink);
  font-family: Rajdhani, "Titillium Web", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ------------------------------------------------------------------ */
/* Bannière publique / carte membre                                    */
/* ------------------------------------------------------------------ */
.adv-banner {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(170px, 30%) 1fr;
  gap: clamp(12px, 2.4vw, 28px);
  align-items: center;
  margin: 18px auto;
  padding: clamp(16px, 2.4vw, 30px);
  max-width: 100%;
  min-height: 190px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 204, 77, .3);
  background:
    radial-gradient(80% 120% at 8% 0%, rgba(58, 108, 214, .42), transparent 60%),
    linear-gradient(135deg, #101c46 0%, #0a1230 70%);
  box-shadow: 0 16px 36px rgba(3, 8, 28, .45), inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.adv-banner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #d62b45, #ffcc4d 50%, #37b46b);
  z-index: 2;
}
.adv-banner__art { position: relative; min-height: 150px; }
.adv-banner__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100%, 190px);
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .55));
}
.adv-banner__brainrot {
  position: absolute;
  left: -8px;
  bottom: -18px;
  width: clamp(76px, 9vw, 128px);
  height: auto;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .6));
}
.adv-banner__gift {
  position: absolute;
  right: 0;
  bottom: -4px;
  width: clamp(44px, 5vw, 72px);
  height: auto;
}
.adv-banner__copy { position: relative; z-index: 1; min-width: 0; }
.adv-banner__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffe08a;
}
.adv-banner__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffcc4d;
  box-shadow: 0 0 0 4px rgba(255, 204, 77, .14);
}
.adv-banner.is-live .adv-banner__dot { animation: adv-pulse 2.6s ease-in-out infinite; }
.adv-banner__title {
  margin: 0;
  font-size: clamp(22px, 3.2vw, 38px);
  line-height: 1.06;
  font-weight: 900;
  text-shadow: 0 3px 0 rgba(127, 16, 34, .8), 0 10px 22px rgba(0, 0, 0, .5);
}
.adv-banner__text { margin: 8px 0 10px; color: var(--adv-muted); font-size: 14px; line-height: 1.45; }
.adv-banner__progress {
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
  max-width: 420px;
}
.adv-banner__progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #37b46b, #a7f3a0);
  box-shadow: 0 0 10px rgba(55, 180, 107, .55);
}
.adv-banner__progress-label { margin: 6px 0 0; font-size: 12px; font-weight: 700; color: #dce6ff; }
.adv-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.adv-banner__cta,
.adv-banner__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.adv-banner__cta {
  color: #3a1c00;
  background: linear-gradient(180deg, #ffe491, #f5b422);
  box-shadow: 0 6px 16px rgba(245, 180, 34, .25);
}
.adv-banner__secondary {
  color: #e8eeff;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .06);
}
.adv-banner__cta:focus-visible,
.adv-banner__secondary:focus-visible,
.adv-notice__link:focus-visible,
.adv-public-banner a:focus-visible,
.adv-public-banner button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.adv-banner__notify { margin: 10px 0 0; color: #a9b9df; font-size: 12px; line-height: 1.4; }
.adv-banner__notify a { color: #ffe08a; }

.adv-banner--member { min-height: 168px; grid-template-columns: minmax(130px, 24%) 1fr; }
.adv-banner--member .adv-banner__logo { width: min(100%, 150px); }
.adv-banner--member .adv-banner__brainrot { width: clamp(60px, 7vw, 96px); }
.adv-banner--member .adv-banner__title { font-size: clamp(20px, 2.6vw, 30px); }

/* Insertion non intrusive dans l'accueil membre / le compte. */
.adv-member-card { margin: 14px auto 18px; max-width: 100%; }
.adv-member-card .adv-banner { margin: 0; }

/* ------------------------------------------------------------------ */
/* Badge de navigation                                                 */
/* ------------------------------------------------------------------ */
.adv-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 99px;
  background: linear-gradient(180deg, #ffe08a, #f5b422);
  color: #3b1d00;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.menu-item-link .adv-nav-badge { margin-left: auto; }

/* ------------------------------------------------------------------ */
/* Info notifications                                                  */
/* ------------------------------------------------------------------ */
.adv-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 204, 77, .24);
  background: linear-gradient(180deg, rgba(28, 42, 88, .86), rgba(14, 22, 52, .92));
}
.adv-notice__icon { font-size: 22px; line-height: 1; }
.adv-notice__title { margin: 0 0 4px; font-size: 14px; font-weight: 800; color: #ffe08a; }
.adv-notice__text { margin: 0 0 6px; font-size: 13px; line-height: 1.45; color: #d6dff6; }
.adv-notice__link { color: #93c5fd; font-weight: 700; font-size: 13px; }

/* ------------------------------------------------------------------ */
/* Bandeau public compact (entrée publique / connexion)                */
/* ------------------------------------------------------------------ */
.adv-public-banner {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(560px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 204, 77, .32);
  background: linear-gradient(135deg, rgba(18, 31, 72, .96), rgba(8, 14, 38, .96));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}
.adv-public-banner[hidden] { display: none; }
.adv-public-banner__logo { width: 58px; height: auto; flex: 0 0 auto; }
.adv-public-banner__copy { flex: 1; min-width: 0; }
.adv-public-banner__title { margin: 0; font-size: 15px; font-weight: 900; color: #fff; }
.adv-public-banner__text { margin: 2px 0 0; font-size: 12px; line-height: 1.35; color: var(--adv-muted); }
.adv-public-banner__cta {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 9px;
  background: linear-gradient(180deg, #ffe08a, #f5b422);
  color: #3b1d00;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.adv-public-banner__close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #dfe7ff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

@keyframes adv-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 204, 77, .14); }
  50% { box-shadow: 0 0 0 8px rgba(255, 204, 77, .04); }
}

@media (max-width: 760px) {
  .adv-banner { grid-template-columns: 1fr; text-align: left; }
  .adv-banner__art { min-height: 110px; }
  .adv-banner__logo { width: 140px; }
  .adv-banner__brainrot { width: 84px; }
  .adv-banner__gift { width: 48px; }
  .adv-banner--member { grid-template-columns: 1fr; }
  .adv-public-banner { flex-wrap: wrap; margin-top: 10px; }
  .adv-public-banner__logo { width: 46px; }
  .adv-public-banner__cta { margin-left: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .adv-banner.is-live .adv-banner__dot { animation: none; }
  .adv-banner__progress span,
  .adv-banner__cta,
  .adv-banner__secondary,
  .adv-public-banner__cta { transition: none; }
}
