/* ===================================================
   BILLETTERIE — Gertrude Festival 2026
   Palette : #00007C · #000026 · #FFDE00 · #FEC00E
             #EF5CA1 · #ED0980 · #83F379 · #2AC255
   Typo    : Classica (titres) · Classica (corps)
   =================================================== */

/* ── HERO ────────────────────────────────────────── */
.billet-hero {
  position: relative;
  min-height: 68vh;
  background: #00007C;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 0 6vw 8vh;
}

.arches-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Dégradé de sécurité : assure que la zone texte reste lisible */
.billet-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 38, 0.75) 0%,
    rgba(0, 0, 38, 0.35) 45%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-arches {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  animation: fadeUp 0.8s ease both; /* keyframes définis plus bas (modal auth) */
}

.hero-eyebrow {
  font-family: 'Roboto Flex', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(0.68rem, 1.3vw, 0.82rem);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #83F379;
  margin-bottom: 18px;
}

.hero-title {
  font-family: 'Classica', Georgia, serif;
  font-weight: 700;
  font-size: clamp(4.5rem, 13vw, 11rem);
  line-height: 0.85;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #FFDE00;
  margin-bottom: 24px;
}

.hero-title .line2 {
  display: block;
  margin-left: clamp(2rem, 10vw, 8rem);
  margin-top: -0.06em;
}

.hero-sub {
  font-family: 'Classica', sans-serif;
  font-weight: 400;
  font-size: clamp(0.8rem, 1.6vw, 1.1rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72); /* contraste AA sur fond navy */
}

/* ── SECTION PRINCIPALE ──────────────────────────── */
.ticket-section {
  background: #fff;
  padding: 80px 6vw 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

/* ── MES BILLETS ─────────────────────────────────── */
.mes-billets {
  width: 100%;
  max-width: 1000px;
}

.mes-billets-title {
  font-family: 'Classica', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #000026;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.mes-billets-title span {
  color: #00007C;
}

.mes-billets-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mon-billet-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 1px solid #e4e6ea;
  border-left: 4px solid #2AC255;
  border-radius: 14px;
  padding: 18px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.mon-billet-card.utilise {
  border-left-color: #ccc;
  opacity: 0.65;
}

.mon-billet-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 38, 0.1);
  transform: translateY(-2px);
}

.mon-billet-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mon-billet-nom {
  font-family: 'Classica', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #000026;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mon-billet-code {
  font-family: monospace;
  font-size: 0.75rem;
  color: #888;
  letter-spacing: 2px;
}

.mon-billet-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.mon-billet-badge {
  font-family: 'Classica', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
}

.mon-billet-badge.valide {
  background: rgba(42, 194, 85, 0.12);
  border: 1px solid rgba(42, 194, 85, 0.4);
  color: #1a9940;
}

.mon-billet-badge.utilise {
  background: #f0f0f0;
  border: 1px solid #ddd;
  color: #999;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: #00007C;
  color: #fff;
  border-radius: 999px;
  font-family: 'Classica', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-download:hover {
  background: #000026;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 38, 0.25);
}

.btn-download:focus-visible {
  outline: 3px solid #00007C;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .mon-billet-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .mon-billet-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* ── BANDEAU PROMO ───────────────────────────────── */
.promo-strip {
  width: 100%;
  max-width: 1000px;
  border-top: 1px solid rgba(0, 0, 38, 0.1);
  border-bottom: 1px solid rgba(0, 0, 38, 0.1);
  padding: 14px 0;
  text-align: center;
}

.promo-strip span {
  font-family: 'Classica', sans-serif;
  font-weight: 700;
  font-size: clamp(0.8rem, 1.8vw, 1rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #00007C;
}

/* ── ZONE ADMIN ──────────────────────────────────── */
.admin-zone {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  max-width: 1000px;
}

.ticket-form {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f5f5f5;
  border: 1px solid rgba(0, 0, 38, 0.08);
  border-left: 4px solid #00007C;
  padding: 28px;
}

.ticket-form h2 {
  font-family: 'Classica', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #00007C;
  margin-bottom: 4px;
}

.ticket-form input,
.ticket-form textarea {
  background: #fff;
  border: 1px solid rgba(0, 0, 38, 0.15);
  padding: 10px 14px;
  color: #00007C;
  font-size: 0.9rem;
  font-family: 'Classica', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.ticket-form input::placeholder,
.ticket-form textarea::placeholder {
  color: rgba(0, 0, 38, 0.3);
}

.ticket-form input:focus,
.ticket-form textarea:focus {
  border-color: #00007C;
}

.btn-add {
  background: #FFDE00;
  color: #00007C;
  border: none;
  padding: 12px 20px;
  font-weight: 700;
  font-family: 'Classica', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}

.btn-add:hover {
  background: #FEC00E;
}

/* ── GRILLE BILLETS ──────────────────────────────── */
.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 1000px;
}

/* ── CARTE BILLET (ticket physique) ─────────────── */
/* Arrondis + ombre + lift : même langage que les cartes de l'accueil */
.ticket-card {
  display: flex;
  flex-direction: row;
  min-height: 200px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 38, 0.12);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.7s ease; /* préserve le fondu .reveal-left */
}

.ticket-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 0, 38, 0.22);
}

/* Thème 1 — Navy / Yellow */
.ticket-card:nth-child(3n+1) {
  background: #00007C;
}
.ticket-card:nth-child(3n+1) .ticket-main {
  color: #FFDE00;
}
.ticket-card:nth-child(3n+1) .ticket-event-label {
  color: rgba(255, 222, 0, 0.5);
}
.ticket-card:nth-child(3n+1) .ticket-desc {
  color: rgba(255, 255, 255, 0.6);
}
.ticket-card:nth-child(3n+1) .ticket-stub {
  background: #FFDE00;
  color: #00007C;
}
.ticket-card:nth-child(3n+1) .ticket-perf {
  border-left-color: rgba(255, 255, 255, 0.55);
}
.ticket-card:nth-child(3n+1) .ticket-price {
  color: #00007C;
}
.ticket-card:nth-child(3n+1) .btn-pay {
  background: #00007C;
  color: #FFDE00;
}
.ticket-card:nth-child(3n+1) .btn-pay:hover {
  background: #000026;
}
.ticket-card:nth-child(3n+1) .qty-stepper { border-color: rgba(0,0,124,0.4); color: #00007C; }


/* Thème 2 — Yellow / Navy */
.ticket-card:nth-child(3n+2) {
  background: #FFDE00;
}
.ticket-card:nth-child(3n+2) .ticket-main {
  color: #00007C;
}
.ticket-card:nth-child(3n+2) .ticket-event-label {
  color: rgba(0, 0, 124, 0.5);
}
.ticket-card:nth-child(3n+2) .ticket-desc {
  color: rgba(0, 0, 124, 0.65);
}
.ticket-card:nth-child(3n+2) .ticket-stub {
  background: #000026;
  color: #FFDE00;
}
.ticket-card:nth-child(3n+2) .ticket-perf {
  border-left-color: rgba(0, 0, 38, 0.35);
}
.ticket-card:nth-child(3n+2) .ticket-price {
  color: #FFDE00;
}
.ticket-card:nth-child(3n+2) .btn-pay {
  background: #fff;
  color: #000026;
}
.ticket-card:nth-child(3n+2) .btn-pay:hover {
  background: #FFDE00;
}
.ticket-card:nth-child(3n+2) .qty-stepper { border-color: rgba(255,222,0,0.5); color: #FFDE00; }


/* Thème 3 — Green / Navy */
.ticket-card:nth-child(3n+3) {
  background: #2AC255;
}
.ticket-card:nth-child(3n+3) .ticket-main {
  color: #000026;
}
.ticket-card:nth-child(3n+3) .ticket-event-label {
  color: rgba(0, 0, 38, 0.5);
}
.ticket-card:nth-child(3n+3) .ticket-desc {
  color: rgba(0, 0, 38, 0.65);
}
.ticket-card:nth-child(3n+3) .ticket-stub {
  background: #000026;
  color: #83F379;
}
.ticket-card:nth-child(3n+3) .ticket-perf {
  border-left-color: rgba(0, 0, 38, 0.35);
}
.ticket-card:nth-child(3n+3) .ticket-price {
  color: #83F379;
}
.ticket-card:nth-child(3n+3) .btn-pay {
  background: #2AC255;
  color: #000026;
}
.ticket-card:nth-child(3n+3) .btn-pay:hover {
  background: #83F379;
}
.ticket-card:nth-child(3n+3) .qty-stepper { border-color: rgba(131,243,121,0.5); color: #83F379; }


/* ── CONTENU TICKET ──────────────────────────────── */
.ticket-main {
  flex: 1 1 0;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.ticket-event-label {
  font-family: 'Classica', sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.ticket-name {
  font-family: 'Classica', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
  flex: 1;
}

.ticket-desc {
  font-family: 'Classica', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.6;
}


/* ── PERFORATION ─────────────────────────────────── */
.ticket-perf {
  width: 0;
  flex-shrink: 0;
  border-left: 2px dashed;
  margin: 24px 0;
}

/* ── STUB (prix + achat) ─────────────────────────── */
.ticket-stub {
  width: 260px;
  flex-shrink: 0;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
}

.ticket-price {
  font-family: 'Classica', sans-serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -1px;
  text-align: center;
}

.ticket-price sup {
  font-size: 0.45em;
  vertical-align: super;
}

@keyframes cgvShake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

/* ── STEPPER QUANTITÉ ────────────────────────────── */
.qty-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  overflow: hidden;
  opacity: 0.6;
}

.qty-btn {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  font-family: 'Classica', sans-serif;
}

.qty-btn:hover { background: rgba(128,128,128,0.15); }
.ticket-card:nth-child(3n+2) .qty-btn:hover,
.ticket-card:nth-child(3n+3) .qty-btn:hover { background: rgba(255,255,255,0.1); }

.qty-val {
  min-width: 36px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Classica', sans-serif;
}

.btn-cgv {
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-family: 'Classica', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
}

.btn-pay {
  border: none;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-family: 'Classica', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-pay:hover:not(.btn-pay--locked) {
  transform: scale(1.03);
}

.btn-pay:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.btn-pay--locked {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

/* ── BADGE ÉPUISÉ (stock atteint) ────────────────── */
.ticket-soldout {
  display: inline-block;
  padding: 12px 20px;
  border: 1.5px dashed currentColor;
  border-radius: 999px;
  font-family: 'Classica', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.65;
}

/* ── BOUTON SUPPRIMER ────────────────────────────── */
.delete-form {
  margin-top: 4px;
}

.btn-delete {
  background: rgba(237, 9, 128, 0.15);
  border: 1px solid rgba(237, 9, 128, 0.4);
  color: #EF5CA1;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: 'Classica', sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.btn-delete:hover {
  background: rgba(237, 9, 128, 0.3);
}

/* ── NOTE BAS DE PAGE ────────────────────────────── */
.mustbebold {
  font-family: 'Classica', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(0, 0, 38, 0.35);
  text-align: center;
  margin-top: 16px;
}

/* ── MODAL AUTH INVITE ───────────────────────────── */
.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 38, 0.75);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: fadeUp 0.3s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: rgba(0,0,38,0.35);
  cursor: pointer;
  transition: color 0.2s;
}
.auth-modal-close:hover { color: #000026; }

.auth-modal-icon {
  width: 52px;
  height: 52px;
  background: rgba(0, 0, 124, 0.07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #00007C;
}
.auth-modal-icon svg { width: 26px; height: 26px; }

.auth-modal-title {
  font-family: 'Classica', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #000026;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.auth-modal-sub {
  font-size: 0.9rem;
  color: rgba(0,0,38,0.6);
  line-height: 1.6;
  margin-bottom: 28px;
}

.auth-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-modal-btn {
  display: block;
  padding: 14px 20px;
  border-radius: 10px;
  font-family: 'Classica', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.auth-modal-btn:hover { transform: scale(1.02); }

.auth-modal-btn--primary {
  background: #00007C;
  color: #FFDE00;
}
.auth-modal-btn--primary:hover { background: #000026; }

.auth-modal-btn--secondary {
  background: #FFDE00;
  color: #000026;
}
.auth-modal-btn--secondary:hover { background: #FEC00E; }

/* ── MODAL CGV ───────────────────────────────────── */
.cgv-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 38, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1500;
  backdrop-filter: blur(6px);
}

.cgv-content {
  background: #00007C;
  border: 1px solid rgba(255, 222, 0, 0.3);
  border-top: 4px solid #FFDE00;
  padding: 40px;
  width: 80%;
  max-width: 640px;
  max-height: 82vh;
  overflow-y: auto;
  position: relative;
}

.cgv-content h2 {
  font-family: 'Classica', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #FFDE00;
  margin-bottom: 24px;
}

.cgv-text p {
  font-size: 0.85rem;
  line-height: 1.75;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Classica', sans-serif;
}

.cgv-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}

.cgv-list li {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  font-family: 'Classica', sans-serif;
}

.close {
  position: absolute;
  top: 16px;
  right: 22px;
  font-size: 28px;
  cursor: pointer;
  color: #FFDE00;
  line-height: 1;
  transition: color 0.2s;
}

.close:hover {
  color: #FEC00E;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
  .billet-hero {
    min-height: 60vh;
    padding: 0 6vw 6vh;
    align-items: flex-end;
  }

  .hero-title {
    font-size: clamp(3.5rem, 16vw, 6rem);
  }

  .hero-title .line2 {
    margin-left: clamp(1.5rem, 8vw, 4rem);
    margin-top: -0.06em;
  }

  .ticket-section {
    padding: 60px 5vw 80px;
    gap: 24px;
  }

  .ticket-card {
    flex-direction: column;
  }

  .ticket-main {
    padding: 24px 24px 20px;
  }

  .ticket-perf {
    width: auto;
    height: 0;
    border-left: none;
    border-top: 2px dashed;
    margin: 0 20px;
  }

  .ticket-stub {
    width: 100%;
    padding: 20px 24px 24px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
  }

  .ticket-price {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .qty-stepper {
    flex: 1 1 auto;
  }

  .cgv-content {
    width: 92%;
    padding: 28px 20px;
  }

  .admin-zone {
    flex-direction: column;
  }
}

/* ===================================================
   PANIER — Tiroir + FAB + Items
   =================================================== */

/* ── Bouton flottant ─────────────────────────────── */
.cart-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 58px;
  height: 58px;
  background: #00007C;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 400;
  box-shadow: 0 4px 20px rgba(0,0,38,0.35);
  transition: background 0.2s;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.cart-fab:hover,
.cart-fab.has-items { background: #000026; }

.cart-fab:active { opacity: 0.85; }

.cart-fab svg {
  width: 24px;
  height: 24px;
  color: #FFDE00;
}

.cart-fab-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 20px;
  height: 20px;
  background: #FFDE00;
  color: #000026;
  border-radius: 10px;
  font-family: 'Classica', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  pointer-events: none;
}

/* ── Overlay ─────────────────────────────────────── */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 38, 0.55);
  z-index: 1200;
  backdrop-filter: blur(3px);
}
.cart-overlay.active { display: block; }

/* ── Tiroir ──────────────────────────────────────── */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 440px;
  max-width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px 0 0 24px;
  box-shadow: -24px 0 60px rgba(0, 0, 38, 0.3);
  overflow: hidden;
}

.cart-drawer.open { transform: translateX(0); }

/* ── Header ─────────────────────────────────────── */
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 24px 22px;
  background: #00007C;
}

.cart-drawer-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-drawer-title {
  font-family: 'Classica', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #FFDE00;
  margin: 0;
}

.cart-drawer-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  background: #FFDE00;
  color: #000026;
  border-radius: 999px;
  font-family: 'Classica', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
}

.cart-drawer-close {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.cart-drawer-close:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* Bloquer scroll page quand panier ouvert */
body.cart-open {
  overflow: hidden;
}

/* ── Body ────────────────────────────────────────── */
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  margin-top: 56px;
  color: #aaa;
}

.cart-empty svg {
  width: 44px;
  height: 44px;
  color: rgba(0, 0, 38, 0.15);
  margin-bottom: 10px;
}

.cart-empty-title {
  font-family: 'Classica', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(0, 0, 38, 0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
}

.cart-empty-hint {
  font-family: 'Roboto Flex', system-ui, sans-serif;
  font-size: 0.78rem;
  color: #b5b5bd;
  margin: 0;
}

.cart-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ── Article ─────────────────────────────────────── */
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f2;
}

.cart-item:last-child { border-bottom: none; }

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.cart-item-name {
  font-family: 'Classica', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #000026;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-unit {
  font-family: 'Classica', sans-serif;
  font-size: 0.7rem;
  color: #aaa;
  letter-spacing: 1px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #e4e6ea;
  border-radius: 999px;
  overflow: hidden;
  background: #fafafc;
}

.cart-qty-btn {
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: #00007C;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}
.cart-qty-btn:hover { background: rgba(0, 0, 124, 0.08); }

.cart-qty-val {
  width: 30px;
  text-align: center;
  font-family: 'Classica', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #000026;
  line-height: 30px;
}

.cart-item-subtotal {
  font-family: 'Classica', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #00007C;
  white-space: nowrap;
  min-width: 60px;
  text-align: right;
}

.cart-item-remove {
  width: 26px;
  height: 26px;
  background: none;
  border: none;
  border-radius: 50%;
  color: #ccc;
  font-size: 0.78rem;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.cart-item-remove:hover { color: #ED0980; background: rgba(237, 9, 128, 0.08); }

/* ── Footer ─────────────────────────────────────── */
.cart-drawer-footer {
  padding: 18px 24px 22px;
  border-top: 1px solid #ececf0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fafafb;
}

.cart-totals {
  background: #fff;
  border: 1px solid #ececf0;
  border-radius: 14px;
  padding: 12px 16px;
}

.cart-total-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cart-total-label {
  font-family: 'Classica', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #888;
}

.cart-total-amount {
  font-family: 'Classica', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #000026;
  letter-spacing: -1px;
}

/* Total barré quand une réduction s'applique */
.cart-totals:has(.cart-discount-line[style*="flex"]) .cart-total-amount {
  font-size: 1.1rem;
  color: rgba(0, 0, 38, 0.45);
  text-decoration: line-through;
}

.cart-checkout-btn {
  width: 100%;
  padding: 15px 20px;
  background: #00007C;
  color: #FFDE00;
  border: none;
  border-radius: 999px;
  font-family: 'Classica', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.cart-checkout-btn:hover:not(.cart-checkout-btn--locked) {
  background: #000026;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 38, 0.3);
}

.cart-checkout-btn--locked {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Cadenas tant que les CGV ne sont pas acceptées, flèche ensuite */
.cart-checkout-lock {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: none;
}

.cart-checkout-btn--locked .cart-checkout-lock { display: block; }
.cart-checkout-btn--locked .cart-checkout-arrow { display: none; }

.cart-checkout-arrow {
  transition: transform 0.2s;
}

.cart-checkout-btn:hover:not(.cart-checkout-btn--locked) .cart-checkout-arrow {
  transform: translateX(4px);
}

.cart-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Roboto Flex', system-ui, sans-serif;
  font-size: 0.7rem;
  color: #9a9aa4;
  margin: 0;
}

.cart-secure svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ── CGV dans le tiroir ── */
.cart-cgv {
  padding: 12px 14px;
  background: rgba(0, 0, 124, 0.05);
  border: 1px solid rgba(0, 0, 124, 0.15);
  border-radius: 10px;
  transition: background 0.3s, border-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.cart-cgv.cgv-accepted {
  background: rgba(42, 194, 85, 0.08);
  border-color: rgba(42, 194, 85, 0.4);
}

.cart-cgv.cgv-shake {
  animation: cgvShake 0.5s ease;
  border-color: #ED0980 !important;
  background: rgba(237, 9, 128, 0.07) !important;
}

.cart-cgv-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  color: rgba(0, 0, 38, 0.7);
  flex: 1;
}

.cart-cgv-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #2AC255;
}

.cart-cgv-check {
  width: 20px;
  height: 20px;
  color: #2AC255;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.25s;
}
.cart-cgv-check.visible { opacity: 1; }
.cart-cgv-check svg { width: 100%; height: 100%; }

.btn-cgv--dark {
  color: #00007C;
}

.cart-clear-btn {
  align-self: center;
  background: none;
  border: none;
  font-family: 'Classica', sans-serif;
  font-size: 0.7rem;
  color: #bbb;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  padding: 4px;
  transition: color 0.15s;
}
.cart-clear-btn:hover { color: #e53935; }

/* ── Lignes discount/final ── */
.cart-discount-line,
.cart-final-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.cart-discount-label { font-size: 0.78rem; color: #2AC255; }
.cart-discount-amount { font-size: 0.85rem; font-weight: 700; color: #2AC255; }

.cart-final-label { font-size: 0.78rem; color: rgba(0,0,38,0.6); font-weight: 600; }
.cart-final-amount { font-size: 1rem; font-weight: 700; color: #000026; }

/* ── Code promo ── */
.cart-promo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}

.cart-promo-row {
  display: flex;
  gap: 8px;
}

.cart-promo-input {
  flex: 1;
  background: rgba(0, 0, 38, 0.05);
  border: 1px solid rgba(0, 0, 124, 0.18);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.82rem;
  font-family: 'Classica', sans-serif;
  color: #000026;
  letter-spacing: 1px;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.cart-promo-input:focus {
  border-color: rgba(0, 0, 124, 0.4);
  background: rgba(0, 0, 124, 0.04);
}

.cart-promo-input:disabled {
  opacity: 0.6;
  cursor: default;
}

.cart-promo-btn {
  background: #00007C;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.cart-promo-btn:hover:not(:disabled) { background: #000056; }
.cart-promo-btn:disabled { opacity: 0.5; cursor: default; }

.cart-promo-feedback {
  font-size: 0.75rem;
  min-height: 16px;
}

.cart-promo-feedback--ok  { color: #2AC255; font-weight: 600; }
.cart-promo-feedback--err { color: #ED0980; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 480px) {
  .cart-fab { bottom: 20px; right: 20px; width: 52px; height: 52px; }

  .cart-drawer {
    width: 100vw;
    height: 100dvh;
    top: 0;
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
    transform: translateY(100%);
    border-radius: 0;
  }
  .cart-drawer.open { transform: translateY(0); }

  .cart-item { grid-template-columns: 1fr auto auto; }
  .cart-item-subtotal { display: none; }
}

/* Animation reveal mutualisée dans reveal.css ; ici seul le lift au survol
   d'une carte billet déjà révélée. */
.ticket-card.reveal-left.visible:hover {
  transform: translateY(-4px);
}

/* ── Mouvement réduit : on coupe les animations décoratives ── */
@media (prefers-reduced-motion: reduce) {
  .hero-content {
    animation: none;
  }

  .ticket-card,
  .mon-billet-card,
  .btn-pay,
  .btn-download {
    transition: none;
  }

  .ticket-card:hover,
  .mon-billet-card:hover,
  .btn-pay:hover:not(.btn-pay--locked),
  .btn-download:hover {
    transform: none;
  }
}
