/* ==========================================================
   components.css — Vegas Hero | Header & Footer
   ========================================================== */

/* ── CLS Placeholders ─────────────────────────────────── */
#nav-placeholder {
  min-height: var(--header-height, 68px);
  contain: layout;
}

#footer-placeholder {
  min-height: 320px;
  contain: layout;
}

/* ════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: linear-gradient(180deg, #0e1120 0%, #0b0d18 100%);
  border-bottom: 1px solid rgba(245, 200, 66, 0.15);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.3s ease;
}

/* Ligne dorée décorative en haut du header */
.site-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--color-gold) 30%,
    #fff8d0 50%,
    var(--color-gold) 70%,
    transparent 100%);
  opacity: 0.8;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height, 68px);
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 1rem;
}

/* ── Logo ─────────────────────────────────────────────── */
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.header-logo:hover {
  opacity: 0.88;
  transform: scale(1.02);
}

.header-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

/* ── CTA Buttons Desktop ──────────────────────────────── */
.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

/* --- Bouton Bonus --- */
.btn-bonus {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.25rem;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-gold);
  background: rgba(245, 200, 66, 0.1);
  border: 1.5px solid rgba(245, 200, 66, 0.4);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.22s ease, border-color 0.22s ease,
              transform 0.18s ease, box-shadow 0.22s ease;
}

.btn-bonus:hover {
  background: rgba(245, 200, 66, 0.18);
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 200, 66, 0.2);
}

.btn-bonus .btn-icon {
  font-size: 1rem;
  line-height: 1;
}

/* --- Bouton S'inscrire --- */
.btn-register {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: #0b0d14;
  background: linear-gradient(135deg, #f5c842 0%, #f0a500 100%);
  border: none;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(245, 165, 0, 0.35);
  transition: transform 0.18s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 165, 0, 0.5);
  filter: brightness(1.08);
  color: #0b0d14;
}

.btn-arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn-register:hover .btn-arrow {
  transform: translateX(3px);
}

/* ── Burger Button ────────────────────────────────────── */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.burger-btn:hover {
  background: rgba(245, 200, 66, 0.1);
  border-color: rgba(245, 200, 66, 0.3);
}

.burger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text, #eef0f8);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.2s ease, background 0.2s ease;
  transform-origin: center;
}

/* Burger → X animation */
.burger-btn.is-open .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger-btn.is-open .burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.burger-btn.is-open .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.burger-btn.is-open .burger-line {
  background: var(--color-gold, #f5c842);
}

/* ── Mobile Menu ──────────────────────────────────────── */
.mobile-menu {
  display: none;
  overflow: hidden;
  max-height: 0;
  background: #0e1120;
  border-top: 1px solid rgba(245, 200, 66, 0.1);
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
  opacity: 0;
}

.mobile-menu.is-open {
  max-height: 320px;
  opacity: 1;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem 1.5rem;
}

.btn-bonus-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-gold);
  background: rgba(245, 200, 66, 0.1);
  border: 1.5px solid rgba(245, 200, 66, 0.35);
  text-decoration: none;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-bonus-mobile:hover {
  background: rgba(245, 200, 66, 0.18);
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn-register-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #0b0d14;
  background: linear-gradient(135deg, #f5c842 0%, #f0a500 100%);
  box-shadow: 0 4px 16px rgba(245, 165, 0, 0.3);
  text-decoration: none;
  text-align: center;
  transition: filter 0.2s ease, transform 0.18s ease;
}
.btn-register-mobile:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #0b0d14;
}

.mobile-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 0.25rem 0;
}

.mobile-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-muted, #8b8fa8);
  letter-spacing: 0.03em;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 640px) {
  .header-cta { display: none; }
  .burger-btn { display: flex; }
  .mobile-menu { display: block; }

  .header-logo img {
    height: 36px;
  }
}

/* ════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════ */

.site-footer {
  background: #080a12;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: auto;
}

.footer-top-line {
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(245,200,66,0.5) 30%,
    rgba(255,248,208,0.7) 50%,
    rgba(245,200,66,0.5) 70%,
    transparent 100%);
}

.footer-inner {
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ── Logo + Nav row ───────────────────────────────────── */
.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-logo {
  display: inline-block;
  transition: opacity 0.2s ease;
}
.footer-logo:hover { opacity: 0.8; }

.footer-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--color-text-muted, #8b8fa8);
  max-width: 220px;
  line-height: 1.5;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: flex-end;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--color-text-muted, #8b8fa8);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.footer-nav a:hover {
  color: var(--color-gold, #f5c842);
}

/* ── Trust logos ──────────────────────────────────────── */
.footer-trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-trust-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted, #8b8fa8);
}

.footer-trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trust-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md, 10px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.trust-logo-wrap:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-2px);
}

.trust-logo-wrap img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ── Disclaimer ───────────────────────────────────────── */
.footer-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.footer-age-badge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(245,200,66,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-gold, #f5c842);
  letter-spacing: 0;
}

.footer-disclaimer-text {
  font-size: 0.78rem;
  color: var(--color-text-muted, #8b8fa8);
  line-height: 1.6;
}

.footer-disclaimer-text a {
  color: var(--color-gold, #f5c842);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-disclaimer-text a:hover {
  color: #fff;
}

/* ── Copyright ────────────────────────────────────────── */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1.25rem;
}

.footer-copyright {
  font-size: 0.75rem;
  color: rgba(139,143,168,0.6);
  text-align: center;
  line-height: 1.6;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 640px) {
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav ul {
    justify-content: flex-start;
  }

  .footer-trust-logos {
    gap: 0.5rem;
  }

  .trust-logo-wrap img {
    height: 34px;
  }
}

