/* Contrôle d’âge — entrée du site SNB */

:root {
  --age-ink: #142018;
  --age-forest: #1a5632;
  --age-leaf: #44a454;
  --age-gold: #c9a24a;
  --age-foam: #f4f0e6;
}

.age-gate {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  overflow: hidden;
  color: #fff;
  background: #0b160f;
}

.age-gate__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.age-gate__carousel,
.age-gate__carousel .carousel-inner,
.age-gate__carousel .carousel-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.age-gate__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s cubic-bezier(.19, 1, .22, 1), opacity .8s ease;
  opacity: .55;
}

.age-gate__carousel .carousel-item.active .age-gate__slide {
  transform: scale(1);
  opacity: 1;
}

.age-gate__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.age-gate__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(115deg, rgba(8, 22, 14, .92) 0%, rgba(26, 86, 50, .62) 48%, rgba(8, 18, 12, .45) 100%),
    linear-gradient(180deg, rgba(8, 18, 12, .35), rgba(8, 18, 12, .82));
}

.age-gate__panel {
  position: relative;
  z-index: 2;
  width: min(100%, 420px);
  text-align: center;
  animation: age-rise .75s ease both;
}

.age-gate__logo {
  width: clamp(88px, 18vw, 118px);
  height: auto;
  margin: 0 auto 1.15rem;
  display: block;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .35));
}

.age-gate__brand {
  margin: 0 0 .55rem;
  font-family: Oswald, sans-serif;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--age-gold);
}

.age-gate__title {
  margin: 0 0 .85rem;
  font-family: Oswald, sans-serif;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 2.85rem);
  line-height: 1.05;
}

.age-gate__lead {
  margin: 0 auto 1.5rem;
  max-width: 34ch;
  font-family: Montserrat, sans-serif;
  font-size: .98rem;
  line-height: 1.55;
  opacity: .9;
}

.age-gate__question {
  margin: 0 0 1.15rem;
  font-family: Oswald, sans-serif;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  letter-spacing: .04em;
}

.age-gate__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-bottom: 1.35rem;
}

.age-gate__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  min-height: 48px;
  padding: .7rem 1.35rem;
  font-family: Oswald, sans-serif;
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.age-gate__btn:hover,
.age-gate__btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.age-gate__btn--yes {
  background: var(--age-gold);
  color: var(--age-ink) !important;
}

.age-gate__btn--yes:hover,
.age-gate__btn--yes:focus-visible {
  background: #ddb85a;
  color: var(--age-ink) !important;
}

.age-gate__btn--no {
  border-color: rgba(255, 255, 255, .65);
  color: #fff !important;
  background: transparent;
}

.age-gate__btn--no:hover,
.age-gate__btn--no:focus-visible {
  background: rgba(255, 255, 255, .1);
  color: #fff !important;
}

.age-gate__legal {
  margin: 0;
  font-size: .78rem;
  line-height: 1.45;
  opacity: .7;
  max-width: 36ch;
  margin-inline: auto;
}

.age-gate__langs {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  display: flex;
  gap: .4rem;
}

.age-gate__lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  min-height: 2rem;
  padding: 0 .55rem;
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff !important;
  text-decoration: none !important;
  font-family: Oswald, sans-serif;
  font-size: .75rem;
  letter-spacing: .08em;
  background: rgba(8, 18, 12, .35);
  transition: background .2s ease, border-color .2s ease;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.age-gate__lang:hover,
.age-gate__lang.is-active,
.age-gate__lang:focus-visible {
  background: var(--age-forest);
  border-color: var(--age-gold);
  outline: none;
}

@keyframes age-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 575.98px) {
  .age-gate {
    align-items: flex-end;
    padding-bottom: clamp(2rem, 8vh, 3rem);
  }

  .age-gate__panel {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .age-gate__panel,
  .age-gate__carousel .carousel-item.active .age-gate__slide {
    animation: none;
    transition: none;
  }
}
