/* ============================================================
   TARIFS.CSS — Casino Evenements
   Page "Nos Tarifs" — hero full viewport + pricing editorial
   ============================================================ */

/* ============================================================
   1. PAGE OVERRIDES — transparent header, hero pleine page
   ============================================================ */

body.page-tarifs {
  background-color: var(--black);
}

body.page-tarifs .header {
  background: transparent;
  border-bottom-color: transparent;
  transition: background var(--duration-normal) var(--ease-out),
              border-bottom-color var(--duration-normal) var(--ease-out);
}

body.page-tarifs .header.header--scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border-subtle);
}

body.page-tarifs #main-content {
  padding-top: 0;
}

/* ============================================================
   2. HERO --TARIFS (full viewport, centered, frosted glass)
   ============================================================ */

.hero--tarifs {
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) 0;
  text-align: center;
}

.hero--tarifs .hero-bg img {
  object-position: center center;
}

/* Subtle Ken Burns — slow zoom-out over 22s */
@media (prefers-reduced-motion: no-preference) {
  .hero--tarifs .hero-bg img {
    animation: heroTarifsKenBurns 22s ease-out forwards;
    transform-origin: center center;
  }
  @keyframes heroTarifsKenBurns {
    from { transform: scale(1.06); }
    to   { transform: scale(1); }
  }
}

.hero--tarifs::after {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(10, 10, 10, 0.15) 0%, rgba(10, 10, 10, 0.55) 80%),
    linear-gradient(to top, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0.15) 50%, rgba(10, 10, 10, 0.4) 100%);
}

/* Full-bleed frosted-glass overlay. */
.hero-tarifs-blur {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 55%),
    rgba(10, 10, 10, 0.30);
  backdrop-filter: blur(4px) saturate(1.15);
  -webkit-backdrop-filter: blur(4px) saturate(1.15);
}

@media (max-width: 768px) {
  .hero-tarifs-blur {
    background:
      radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.06) 0%, transparent 55%),
      rgba(10, 10, 10, 0.45);
    backdrop-filter: blur(3px) saturate(1.1);
    -webkit-backdrop-filter: blur(3px) saturate(1.1);
  }
}

/* ============================================================
   3. HERO INNER (kicker / H1 / subtitle, centered)
   ============================================================ */

.hero-tarifs-inner {
  max-width: 780px;
  margin-inline: auto;
  position: relative;
  text-align: center;
}

.hero--tarifs .hero-kicker {
  margin-bottom: var(--space-lg);
}

.hero--tarifs .hero-kicker::after {
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 600px) {
  .hero--tarifs .hero-kicker {
    font-size: 0.6875rem;
    letter-spacing: 0.22em;
  }
}

.hero--tarifs h1 {
  font-size: clamp(2.25rem, 1.5rem + 3.25vw, 4.25rem);
  max-width: 18ch;
  margin-inline: auto;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-lg);
  text-align: center;
}

.hero--tarifs h1 .hero-h1-line {
  display: inline-block;
  white-space: nowrap;
}

.hero--tarifs h1 .hero-h1-line.accent {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.8rem);
  line-height: 1;
  margin-top: 0.08em;
}

.hero--tarifs .hero-subtitle {
  max-width: 52ch;
  margin-inline: auto;
  margin-top: 0;
  margin-bottom: var(--space-2xl);
  text-align: center;
}

@media (max-width: 600px) {
  .hero--tarifs .hero-subtitle br {
    display: none;
  }
}

/* ============================================================
   4. HERO ACTIONS (centered)
   ============================================================ */

.hero-tarifs-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg) var(--space-xl);
}

.hero-tarifs-actions .btn {
  margin-top: 0;
}

.hero-tarifs-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-soft);
  transition: color var(--duration-fast) var(--ease-out),
              gap var(--duration-normal) var(--ease-out);
}

.hero-tarifs-link:hover,
.hero-tarifs-link:focus-visible {
  color: var(--gold);
  gap: calc(var(--space-sm) + 4px);
}

.hero-tarifs-link svg {
  transition: transform var(--duration-normal) var(--ease-out);
}

.hero-tarifs-link:hover svg {
  transform: translateX(2px);
}

/* ============================================================
   5. HERO TRUST BAR (pinned at the bottom of the hero)
   ============================================================ */

.hero--tarifs .hero-trust {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: min(100%, 780px);
  padding: var(--space-lg) var(--space-lg) 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) var(--space-xl);
  list-style: none;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.hero--tarifs .hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--white-soft);
}

.hero--tarifs .hero-trust svg {
  color: var(--gold);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .hero--tarifs .hero-trust {
    bottom: var(--space-lg);
    gap: var(--space-sm) var(--space-lg);
    padding-top: var(--space-md);
  }
  .hero--tarifs .hero-trust li {
    font-size: 0.75rem;
  }
}

/* ============================================================
   6. HERO STAGGERED FADE-UP ENTRANCE
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
  .hero--tarifs .hero-kicker,
  .hero--tarifs h1,
  .hero--tarifs .hero-subtitle,
  .hero--tarifs .hero-tarifs-actions {
    opacity: 0;
    transform: translateY(20px);
    animation: heroTarifsFadeUp 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .hero--tarifs .hero-kicker         { animation-delay: 0.15s; }
  .hero--tarifs h1                   { animation-delay: 0.30s; }
  .hero--tarifs .hero-subtitle       { animation-delay: 0.50s; }
  .hero--tarifs .hero-tarifs-actions { animation-delay: 0.70s; }

  @keyframes heroTarifsFadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Trust bar preserves its translateX(-50%) during the fade-up. */
  .hero--tarifs .hero-trust {
    opacity: 0;
    transform: translate(-50%, 20px);
    animation: heroTarifsTrustFadeUp 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.9s forwards;
  }

  @keyframes heroTarifsTrustFadeUp {
    to {
      opacity: 1;
      transform: translate(-50%, 0);
    }
  }
}

/* ============================================================
   4. TARIF PRINCIPAL — split editorial (prix + inclus)
   ============================================================ */

.tarif-principal {
  padding: var(--section-gap) 0;
  overflow: hidden;
}

.tarif-principal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 900px) {
  .tarif-principal-layout {
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 2rem + 4vw, 6rem);
  }
}

/* --- Colonne prix --- */

.tarif-principal-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tarif-principal-price .section-overline {
  margin-bottom: var(--space-md);
}

.tarif-principal-title {
  margin-bottom: var(--space-xl);
}

.tarif-principal-montant {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  position: relative;
}

.tarif-principal-montant::before {
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  top: 50%;
  height: 220px;
  transform: translateY(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(212, 175, 55, 0.18) 0%,
    rgba(212, 175, 55, 0.05) 40%,
    transparent 70%
  );
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
}

.tarif-montant {
  font-family: var(--font-heading);
  font-size: clamp(4.5rem, 3.5rem + 4vw, 8rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.tarif-devise {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.25rem);
  font-weight: 400;
  color: var(--white-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tarif-principal-detail {
  font-size: 1rem;
  color: var(--white-muted);
  letter-spacing: 0.02em;
  margin: 0;
}

/* --- Colonne inclus --- */

.tarif-principal-inclus {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-xl);
  background: rgba(255, 255, 255, 0.02);
  border-left: 1px solid rgba(212, 175, 55, 0.3);
}

@media (min-width: 768px) {
  .tarif-principal-inclus {
    padding: var(--space-2xl);
  }
}

.tarif-principal-eyebrow {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-xl);
}

.tarif-inclus {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
}

.tarif-inclus li {
  position: relative;
  padding-left: var(--space-xl);
  color: var(--white-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.tarif-inclus li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.4em;
  width: 7px;
  height: 12px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
}

/* ============================================================
   5. TARIF ANNEXES — livraison + supplements
   ============================================================ */

.tarif-annexes {
  padding: 0 0 var(--section-gap);
}

.tarif-annexes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .tarif-annexes-grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 1rem + 3vw, 4rem);
  }
}

.tarif-annexe {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tarif-annexe-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-md);
}

.tarif-annexe-rule {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
  margin-bottom: var(--space-lg);
}

.tarif-annexe-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  margin-bottom: var(--space-md);
}

.tarif-annexe-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.tarif-annexe-montant {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 1.8rem + 1.5vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.01em;
}

.tarif-annexe-sur {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 1.8rem + 1.5vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.01em;
}

.tarif-annexe-devise {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--white-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tarif-annexe-desc {
  color: var(--white-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0;
  max-width: 40ch;
}

/* ============================================================
   6. GUIDE BUDGET — tableau editorial
   ============================================================ */

.tarifs-guide {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border-subtle);
}

.tarifs-guide-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}

.tarifs-guide-header h2 {
  margin-bottom: var(--space-md);
}

.tarifs-guide-intro {
  color: var(--white-muted);
  font-size: clamp(0.9375rem, 0.9rem + 0.15vw, 1.0625rem);
  line-height: 1.7;
  margin: 0;
}

.tarifs-guide-table-wrapper {
  max-width: 840px;
  margin: 0 auto;
  overflow-x: auto;
}

.tarif-tableau {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
}

.tarif-tableau thead tr {
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
}

.tarif-tableau th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: left;
  padding: var(--space-md) var(--space-lg);
}

.tarif-tableau th:last-child,
.tarif-tableau td:last-child {
  text-align: right;
}

.tarif-tableau td {
  padding: var(--space-lg);
  color: var(--white-soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9375rem;
  transition: background var(--duration-fast) var(--ease-out);
}

.tarif-tableau tbody tr:last-child td {
  border-bottom: none;
}

.tarif-tableau tbody tr:hover td {
  background: rgba(212, 175, 55, 0.04);
}

.tarif-tableau-range {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
}

.tarif-tableau td strong {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gold);
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
}

.tarifs-guide-note {
  text-align: center;
  color: var(--white-muted);
  font-size: 0.8125rem;
  line-height: 1.7;
  max-width: 640px;
  margin: var(--space-xl) auto 0;
}

.tarifs-guide-note--italic {
  margin-top: var(--space-xs);
  color: var(--gold);
  opacity: 0.85;
}

@media (max-width: 600px) {
  .tarif-tableau th,
  .tarif-tableau td {
    padding: var(--space-sm) var(--space-md);
  }

  .tarif-tableau-range,
  .tarif-tableau td strong {
    font-size: 0.9375rem;
  }
}

/* ============================================================
   7. REVEAL DIRECTIONNEL
   ============================================================ */

.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 900ms var(--ease-out),
              transform 900ms var(--ease-out);
  will-change: opacity, transform;
}

.reveal-left {
  transform: translateX(-60px);
}

.reveal-right {
  transform: translateX(60px);
}

.reveal-left.is-revealed,
.reveal-right.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   8. CTA CONTACT
   ============================================================ */

.cta-contact {
  padding: var(--section-gap) 0;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

.cta-contact h2 {
  margin-bottom: var(--space-md);
}

.cta-contact p {
  color: var(--white-muted);
  max-width: 52ch;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}
