/* ==========================================================================
   Agenda Inter-Facs - FEDE UCL Lille
   Charte inspiree du blason FEDE : bleu marine, or, creme.
   Les teintes ci-dessous sont les valeurs par defaut ; elles peuvent etre
   surchargees dynamiquement via /admin/settings.php (voir includes/theme.php).
   ========================================================================== */

:root {
  --navy-900: #0b1730;
  --navy-800: #11234a;
  --navy-700: #17305f;
  --navy-600: #1f3d74;
  --gold-500: #c9a24b;
  --gold-400: #d9bc72;
  --gold-100: #f3e6c8;
  --gold-900: #7a5c17;
  --wine-600: #7a2338;
  --wine-500: #93293f;
  --teal-600: #1f6f68;
  --cream: #f7f4ec;
  --white: #ffffff;
  --ink: #1b2333;
  --muted: #5b6478;
  --line: #e3ddcc;
  --success: #2e7d4f;
  --success-bg: #e7f4ec;
  --danger: #b3352c;
  --danger-bg: #fbeae8;
  --warning: var(--gold-900);
  --warning-bg: var(--gold-100);
  --radius: 14px;
  --shadow: 0 10px 30px -14px color-mix(in srgb, var(--navy-900) 35%, transparent);
  --shadow-sm: 0 4px 14px -8px color-mix(in srgb, var(--navy-900) 30%, transparent);
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy-900);
  color: var(--gold-100);
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: var(--gold-400); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-700));
  color: var(--white);
  border-bottom: 3px solid var(--gold-500);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--white);
}
.brand img.logo, .brand .logo-fallback {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.brand-text .eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 600;
}
.brand-text .title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.15;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.main-nav a {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.15s ease;
}
.main-nav a:hover { background: rgba(255,255,255,0.1); }
.main-nav a.cta {
  background: var(--gold-500);
  color: var(--navy-900);
}
.main-nav a.cta:hover { background: var(--gold-400); }
.main-nav .nav-logout { margin: 0; display: inline-flex; }
.main-nav .nav-logout button { padding: 9px 16px; border-radius: 999px; border: 0; background: transparent; color: var(--white); font: inherit; font-weight: 600; font-size: 0.92rem; cursor: pointer; }
.main-nav .nav-logout button:hover { background: rgba(255,255,255,0.1); }
.topbar-user strong { color: var(--gold-400); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 15% -10%, color-mix(in srgb, var(--gold-500) 25%, transparent), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700) 65%);
  color: var(--white);
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 3; text-align: center; }
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(1200px 400px at 15% -10%, color-mix(in srgb, var(--gold-500) 20%, transparent), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--navy-900) 82%, transparent), color-mix(in srgb, var(--navy-700) 68%, transparent) 65%);
}
.hero .kicker {
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  margin: 0 auto 14px;
  max-width: 720px;
  line-height: 1.2;
  text-shadow: 0 4px 16px rgba(0,0,0,0.45);
}
.hero p.lead {
  max-width: 620px;
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin: 0 auto 26px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Bandeau CTA editorial ---------- */
.cta-band {
  background: var(--gold-500);
  background-image: linear-gradient(100deg, var(--gold-500) 0%, var(--gold-400) 100%);
  color: var(--navy-900);
  overflow: hidden;
  position: relative;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 20px;
  flex-wrap: wrap;
}
.cta-band .cta-band-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.cta-band .cta-band-sub {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  margin-top: 8px;
  color: var(--navy-800);
  max-width: 460px;
}
.cta-band .cta-band-tags {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: right;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, color-mix(in srgb, var(--navy-900) 6%, transparent) 0 2px, transparent 2px 22px);
  pointer-events: none;
}

/* ---------- Stats / chiffres cles ---------- */
.stats-section { background: var(--white); }
.stats-grid {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr; }
}
.stats-emblem {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.stats-emblem .logo, .stats-emblem .logo-fallback { width: 120px; height: 120px; }
.stats-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px 28px; }
.stat-item { display: flex; gap: 14px; align-items: flex-start; }
.stat-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--gold-100);
  color: var(--teal-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.stat-number { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--navy-900); line-height: 1.1; }
.stat-label { font-size: 0.88rem; color: var(--muted); margin-top: 2px; }

/* ---------- Onglet lateral fixe ---------- */
.side-tab {
  position: fixed;
  top: 45%;
  right: 0;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  background: var(--gold-500);
  color: var(--navy-900);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 16px 10px;
  border-radius: 10px 0 0 10px;
  box-shadow: -4px 0 14px -6px color-mix(in srgb, var(--navy-900) 35%, transparent);
  z-index: 40;
  transition: background 0.15s ease, padding-right 0.15s ease;
}
.side-tab:hover { background: var(--gold-400); padding-right: 14px; }
@media (max-width: 640px) { .side-tab { display: none; } }

/* Petite animation "shimmer" discrete pour donner un peu de vie sans median lourd */
@keyframes fede-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(100deg, var(--gold-400) 30%, var(--gold-100) 50%, var(--gold-400) 70%);
  background-size: 250% 100%;
  animation: fede-shimmer 3.5s ease-in-out infinite;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-400); }
.btn-outline { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; border-radius: 8px; }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #932a23; }
.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #24603f; }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn-ghost:hover { background: var(--white); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Section ---------- */
.section { padding: 48px 0; }
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.section-title h1,
.section-title h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  margin: 0;
  color: var(--navy-800);
}
.section-title .subtitle { color: var(--muted); font-size: 0.92rem; }

/* ---------- Contenu type page legale ---------- */
.legal-content h2 {
  font-family: var(--font-display);
  color: var(--navy-800);
  font-size: 1.15rem;
  margin: 28px 0 8px;
}
.legal-content p { color: var(--ink); }
.legal-content a { color: var(--navy-700); text-decoration: underline; }

/* ---------- Featured ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.featured-card {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
  color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--navy-600);
  position: relative;
  display: block;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.featured-card:hover {
  box-shadow: 0 16px 36px -14px color-mix(in srgb, var(--navy-900) 50%, transparent);
  transform: translateY(-3px);
}
.featured-card .ribbon {
  position: absolute;
  top: 14px;
  left: -8px;
  background: linear-gradient(100deg, var(--gold-500) 30%, var(--gold-100) 50%, var(--gold-500) 70%);
  background-size: 250% 100%;
  animation: fede-shimmer 3.5s ease-in-out infinite;
  color: var(--navy-900);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px 5px 18px;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  z-index: 2;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
/* La mise en avant s'efface au survol pour laisser place a l'aperçu de l'evenement */
.featured-card:hover .ribbon {
  opacity: 0;
  transform: translateX(-14px);
}
.featured-card .media {
  aspect-ratio: 16/9;
  background: var(--navy-600);
  background-size: cover;
  background-position: center;
  transition: transform 0.45s ease;
}
.featured-card:hover .media {
  transform: scale(1.09);
}
.featured-card .media-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-600));
}
.featured-card .media-fallback .logo,
.featured-card .media-fallback .logo-fallback { width: 56px; height: 56px; opacity: 0.85; }
.featured-card .body { padding: 18px 20px 22px; }
.featured-card .fac { color: var(--gold-400); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.featured-card h3 { margin: 6px 0 8px; font-size: 1.15rem; color: var(--white); }
.featured-card .meta { font-size: 0.85rem; color: rgba(255,255,255,0.8); display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

/* ---------- Filters ---------- */
.filters {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: end;
  box-shadow: var(--shadow-sm);
}
.filters .field { display: flex; flex-direction: column; gap: 6px; }
.filters label { font-size: 0.78rem; font-weight: 700; color: var(--navy-800); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Events list ---------- */
.events-list { display: flex; flex-direction: column; gap: 16px; }
.event-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 18px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.2s ease;
}
.event-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px) scale(1.012);
}
.event-card-featured-badge {
  transition: opacity 0.2s ease;
}
.event-card:hover .event-card-featured-badge {
  opacity: 0;
}
.event-date-badge {
  background: var(--navy-800);
  color: var(--white);
  border-radius: 10px;
  text-align: center;
  padding: 10px 6px;
  width: 92px;
}
.event-date-badge .day { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.event-date-badge .month { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold-400); font-weight: 700; }
.event-card .fac-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy-700);
  background: var(--gold-100);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.event-card h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--navy-900); }
.event-card .desc { color: var(--muted); font-size: 0.9rem; margin: 0 0 8px; }
.event-card .meta {
  display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.85rem; color: var(--navy-700); font-weight: 600;
}
.event-card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-card .actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ---------- Page detail evenement ---------- */
.event-detail {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.event-detail-media {
  aspect-ratio: 21/9;
  background: var(--navy-700);
  background-size: cover;
  background-position: center;
}
.event-detail-media-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
}
.event-detail-media-fallback .logo,
.event-detail-media-fallback .logo-fallback { width: 84px; height: 84px; opacity: 0.9; }
.event-detail-body { padding: 28px 28px 36px; }
.event-detail-body h1 { font-family: var(--font-display); font-weight: 700; margin: 10px 0 20px; font-size: 1.85rem; color: var(--navy-900); line-height: 1.25; }
.event-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 26px;
}
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }
.meta-value { font-size: 0.98rem; color: var(--navy-900); font-weight: 600; }
.event-detail-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
}

/* ---------- Forms ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}
.field { margin-bottom: 4px; }
/* Service fees (C4): small and discreet, but always shown before the payment and included in the total. */
.fee-note { font-size: 0.75rem; font-weight: 400; color: var(--muted); }
.summary-table tr.summary-fee td { font-size: 0.75rem; color: var(--muted); padding-top: 0; border-bottom: 0; font-weight: 400; }
.cart-total .fee-note { margin-top: 2px; }

/* Legal mention on alcohol (only when the menu has alcohol). */
.alcohol-notice { font-size: 0.78rem; color: var(--muted); margin: 10px 0 0; }

/* One ticket of the names step (name and student information). */
.holder-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px 18px;
  margin: 0 0 18px;
  min-width: 0;
  background: var(--cream);
}
.holder-block legend {
  font-weight: 700;
  color: var(--navy-800);
  padding: 0 6px;
}
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy-800);
  margin-bottom: 6px;
}
.field .hint { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time],
input[type=number], input[type=password], input[type=file], select, textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy-600) 15%, transparent);
}
.required::after { content: " *"; color: var(--danger); }

/* Honeypot anti-spam (champ cache aux humains) */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Alerts / flash ---------- */
.alert {
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.alert-success { background: var(--success-bg); color: var(--success); border-color: #bfe3cd; }
.alert-danger { background: var(--danger-bg); color: var(--danger); border-color: #f2c6c1; }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-color: color-mix(in srgb, var(--gold-500) 40%, #fff); }

/* ---------- Badges / status ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-pending { background: var(--warning-bg); color: var(--warning); }
.badge-approved { background: var(--success-bg); color: var(--success); }
.badge-rejected { background: var(--danger-bg); color: var(--danger); }
.badge-featured { background: var(--gold-100); color: var(--gold-900); }
.badge-live { background: var(--success-bg); color: var(--success); }

/* ---------- Admin ---------- */
.admin-shell { min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar {
  background: var(--navy-900);
  color: var(--white);
  padding: 14px 0;
  border-bottom: 3px solid var(--gold-500);
}
.admin-topbar .container { display: flex; align-items: center; justify-content: space-between; }
.admin-topbar .brand-mini { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--white); }
.admin-topbar .brand-mini img, .admin-topbar .brand-mini .logo-fallback { width: 34px; height: 34px; }
.tabs { display: flex; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; }
.tabs a {
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy-800);
  background: var(--white);
  border: 1px solid var(--line);
}
.tabs a.active { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }

.admin-table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 760px; }
table.admin-table th, table.admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.admin-table th { background: var(--cream); color: var(--navy-800); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
table.admin-table tr:last-child td { border-bottom: none; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  padding: 20px;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow);
  text-align: center;
}
.login-card .logo-wrap { display: flex; justify-content: center; margin-bottom: 16px; }
.login-card .logo-wrap img, .login-card .logo-wrap .logo-fallback { width: 68px; height: 68px; }
.login-card h1 { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy-900); margin: 0 0 4px; }
.login-card p.sub { color: var(--muted); font-size: 0.85rem; margin: 0 0 22px; }
.login-card form { text-align: left; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.75);
  padding: 34px 0 22px;
  margin-top: 60px;
  font-size: 0.86rem;
}
.site-footer .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--gold-400); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .foot-title { color: var(--white); font-weight: 700; margin-bottom: 8px; }

/* Logo fallback (utilise tant que assets/img/logo.png n'est pas fourni) */
.logo-fallback {
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Bandeau consentement cookies (RGPD) ---------- */
#cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: min(380px, calc(100vw - 40px));
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -18px color-mix(in srgb, var(--navy-900) 55%, transparent);
  border: 1px solid var(--line);
  z-index: 200;
  overflow: hidden;
}
#cookie-banner .cookie-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 0;
}
#cookie-banner h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy-900);
  margin: 0;
}
#cookie-banner .cookie-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
}
#cookie-banner .cookie-body { padding: 10px 18px 18px; font-size: 0.86rem; color: var(--muted); line-height: 1.5; }
#cookie-banner .cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 18px 18px;
}
#cookie-banner .cookie-actions .btn-prefs { grid-column: 1 / -1; }
#cookie-banner .cookie-actions .btn { justify-content: center; padding: 9px 14px; font-size: 0.85rem; }

.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--navy-900) 55%, transparent);
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
/* [hidden] a la meme specificite qu'une regle de classe : sans ce rappel
   explicite, notre display:flex ci-dessus l'emporterait sur l'attribut
   "hidden" et la fenetre resterait visible par defaut. */
#cookie-banner[hidden],
.cookie-modal-backdrop[hidden] {
  display: none !important;
}
.cookie-modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.cookie-modal .cookie-head { padding: 22px 24px 0; }
.cookie-modal h2 { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy-900); margin: 0; }
.cookie-modal .cookie-body { padding: 14px 24px 6px; font-size: 0.88rem; color: var(--muted); line-height: 1.55; }
.cookie-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
}
.cookie-category .cc-title { font-weight: 700; color: var(--navy-900); font-size: 0.92rem; }
.cookie-category .cc-desc { font-size: 0.82rem; color: var(--muted); margin-top: 3px; }
.cookie-switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.cookie-switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; }
.cookie-switch .track {
  position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background 0.15s ease;
}
.cookie-switch .thumb {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,0.3); transition: transform 0.15s ease;
}
.cookie-switch input:checked ~ .track { background: var(--navy-700); }
.cookie-switch input:checked ~ .thumb { transform: translateX(18px); }
.cookie-switch input:disabled ~ .track { background: var(--gold-500); opacity: 0.6; cursor: not-allowed; }
.cookie-modal .cookie-actions { display: flex; gap: 10px; padding: 18px 24px 24px; flex-wrap: wrap; }
.cookie-modal .cookie-actions .btn { flex: 1; justify-content: center; }

#cookie-settings-link {
  background: none;
  border: none;
  color: var(--gold-400);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: none;
}
#cookie-settings-link:hover { text-decoration: underline; }

/* ==========================================================================
   Billetterie (phase 2)
   ========================================================================== */
.ticket-block {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}
.ticket-block h2 { margin-top: 0; }
.ticket-status { font-weight: 700; font-size: 1.05rem; }
.ticket-status-soldout { color: var(--danger); font-size: 1.4rem; }
.ticket-age { font-weight: 600; color: var(--wine-600); }
.ticket-list { list-style: none; padding: 0; margin: 0 0 18px; }
.ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.ticket-row:last-child { border-bottom: 0; }
.ticket-price { text-align: right; font-weight: 700; white-space: nowrap; }
.ticket-price .hint { display: block; font-weight: 400; white-space: normal; }
.ticket-price .badge { display: inline-block; margin-top: 6px; }
@media (max-width: 560px) {
  .ticket-row { flex-direction: column; }
  .ticket-price { text-align: left; }
}

/* ==========================================================================
   Panier, recapitulatif, commande et file d'attente (phase 3)
   ========================================================================== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.cart-total { text-align: right; margin-top: 12px; }
.cart-total[hidden], .cart-total [hidden] { display: none; }
.cart-qty { flex: none; }
.cart-messages .alert { margin: 12px 0 0; }
.cart-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 16px; }
.cart-total-amount { font-size: 1.3rem; font-weight: 800; }
.summary-table { width: 100%; border-collapse: collapse; }
.summary-table td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.summary-amount { text-align: right; white-space: nowrap; font-weight: 700; padding-left: 12px; }
.summary-total td { font-size: 1.2rem; font-weight: 800; border-bottom: 0; }
.email-check {
  margin: 20px 0; padding: 18px; border-radius: var(--radius);
  background: var(--gold-100); border: 2px solid var(--gold-500); text-align: center;
}
.email-check p { margin: 4px 0; }
.email-check-address { font-size: 1.5rem; font-weight: 800; word-break: break-all; color: var(--navy-800); }
.queue-card { text-align: center; }
.queue-big { font-size: 1.6rem; font-weight: 800; color: var(--navy-800); }
.queue-retry { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--radius); background: var(--gold-100); color: var(--navy-800); font-weight: 600; }
.queue-retry[hidden] { display: none; }
.order-list { list-style: none; padding: 0; margin: 0; }
.order-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.order-list li:last-child { border-bottom: 0; }

/* ==========================================================================
   Téléphones (360 à 430 px) : alignements et débordements
   ========================================================================== */
/* Boutons sur plusieurs lignes : texte centré. */
.btn { justify-content: center; text-align: center; }
/* Titres qui contiennent une référence de commande (20 caractères sans espace), et adresse
   e-mail affichée en gros avant le paiement : elles passent à la ligne au lieu de déborder. */
.section-title h1, .section-title h2, .email-check-address { overflow-wrap: anywhere; min-width: 0; }

@media (max-width: 760px) {
  /* Bandeau « Une asso, un projet » : les catégories en étiquettes alignées à gauche. */
  .cta-band .cta-band-tags { flex-direction: row; flex-wrap: wrap; text-align: left; gap: 8px; }
  .cta-band .cta-band-tags span { background: rgba(255, 255, 255, 0.4); padding: 5px 12px; border-radius: 999px; }
}

@media (max-width: 640px) {
  /* En-tête : boutons de même largeur sur une ligne (Agenda, Mon compte ou Connexion,
     Déconnexion), et l'espace associations (ou FEDE) en dessous, sur toute la largeur. */
  .site-header .container { gap: 12px; }
  .main-nav { width: 100%; gap: 8px; }
  .main-nav > a, .main-nav > .nav-logout { flex: 1 1 0; min-width: 0; }
  /* Pas de marge intérieure sur les côtés : partagés à parts égales, les boutons ont la même largeur. */
  .main-nav a, .main-nav .nav-logout button {
    padding: 10px 0; background: rgba(255, 255, 255, 0.08); font-size: 0.86rem; text-align: center; white-space: nowrap;
  }
  .main-nav .nav-logout button { width: 100%; }
  .main-nav > a.cta { flex-basis: 100%; background: var(--gold-500); }
  /* Pied de page : deux colonnes régulières au lieu d'un retour à la ligne au hasard. */
  .site-footer .container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .site-footer .container > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 380px) {
  /* Petits téléphones : « Déconnexion » garde de la marge dans son bouton. */
  .main-nav a, .main-nav .nav-logout button { font-size: 0.8rem; }
}

@media (max-width: 560px) {
  .card { padding: 20px 18px; }
  /* Liste des événements : la date passe au-dessus, le texte prend toute la largeur. */
  .event-card { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px; align-items: start; }
  .event-date-badge { width: auto; justify-self: start; display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; }
  .event-date-badge .day { font-size: 1.15rem; }
  .event-card .fac-tag { border-radius: 8px; max-width: 100%; }
  .event-card .actions:empty { display: none; }
  /* Filtres : champs sur toute la largeur, boutons côte à côte. */
  .filters { padding: 16px; }
  .filters .field { flex: 1 1 100%; }
  .filters .field:has(.btn) { flex: 0 0 auto; }
  /* Fiche d'un événement : marges intérieures réduites (cadres imbriqués). */
  .event-detail-body { padding: 20px 18px 28px; }
  .event-detail-body h1 { font-size: 1.6rem; }
  .event-detail-meta { padding: 14px; gap: 12px; }
  .ticket-block { padding: 16px; }
  /* Panier : la quantité reste à droite de la ligne. */
  .ticket-row.cart-row { flex-direction: row; align-items: center; }
  .cart-actions .btn { flex: 1 1 auto; }
}

/* ==========================================================================
   Parcours d'achat et billets (C5), maquette docs/maquettes/parcours-achat.html.
   Téléphone d'abord : zones à toucher de 44 px et plus, prix et total toujours visibles en
   bas, QR en grand sur fond blanc. Couleurs du thème (« Apparence du site ») : --navy-* pour
   la couleur principale, --gold-* pour l'accent.
   ========================================================================== */
.site-bar { position: sticky; top: 0; z-index: 40; height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; background: var(--navy-800); color: var(--white); }
.site-bar-brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font: 700 1rem var(--font-display); min-width: 0; }
.site-bar-brand img, .site-bar-brand svg { width: 32px; height: 32px; object-fit: contain; flex: none; }
.site-bar-link { color: var(--white); text-decoration: none; font-weight: 600; font-size: 0.88rem; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); white-space: nowrap; }

.shop { max-width: 640px; margin: 0 auto; padding: 0 16px 40px; }
body:has(.shop-bar:not([hidden])) .site-footer { padding-bottom: 120px; }
.shop-title { font: 700 1.5rem/1.2 var(--font-display); color: var(--navy-800); margin: 4px 0 12px; }

/* Barre du haut du parcours : retour, événement, étapes */
.shop-flowbar { display: flex; align-items: center; gap: 12px; padding: 14px 0 10px; }
.shop-back { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); color: var(--navy-800); text-decoration: none; font-size: 1.15rem; flex: none; }
.shop-flowbar-event { min-width: 0; }
.shop-flowbar-event strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.shop-flowbar-event span { font-size: 0.8rem; color: var(--muted); }
.shop-steps { display: flex; gap: 6px; list-style: none; margin: 2px 0 6px; padding: 0; }
.shop-steps li { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.shop-steps li.is-done { background: var(--navy-800); }
.shop-steplabel { font-size: 0.8rem; color: var(--muted); margin: 0 0 14px; }
.shop-steplabel b { color: var(--navy-800); }

/* Pastilles d'état */
.shop-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.shop-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.shop-pill.is-ok { background: var(--success-bg); color: var(--success); }
.shop-pill.is-warn { background: var(--warning-bg); color: var(--warning); }
.shop-pill.is-age { background: var(--danger-bg); color: var(--wine-600); }
.shop-pill.is-off { background: #eceae3; color: var(--muted); }
.shop-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Lignes : billets, boissons */
.shop-section { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 18px 0 10px; }
.shop-section h2, .shop-section h3 { margin: 0; font: 700 1.15rem var(--font-display); color: var(--navy-800); }
.shop-section span { font-size: 0.75rem; color: var(--muted); }
.shop-item { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.shop-item.is-selected { border-color: var(--navy-800); box-shadow: 0 0 0 1px var(--navy-800); }
.shop-item.is-off { opacity: 0.55; }
.shop-item-name { flex: 1; min-width: 0; }
.shop-item-name strong { display: block; color: var(--ink); }
.shop-item-name span, .shop-item-name small { font-size: 0.8rem; color: var(--muted); }
.shop-item-name > span, .shop-item-name > small { display: block; line-height: 1.45; margin-top: 2px; }
.shop-item-price { text-align: right; flex: none; }
.shop-item-price strong { display: block; font-size: 1.15rem; color: var(--ink); }
.shop-left { color: var(--warning); font-weight: 700; }
.shop-badge-18 { display: inline-block; font-size: 0.68rem; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: var(--danger-bg); color: var(--wine-600); vertical-align: 1px; }

/* Boutons − et + (44 px) ; sans JavaScript, ce sont des boutons d'envoi */
.stepper { display: flex; align-items: center; gap: 6px; flex: none; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); color: var(--navy-800); font-size: 1.4rem; font-weight: 600; line-height: 1; display: grid; place-items: center; padding: 0; cursor: pointer; }
.stepper button.stepper-plus { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stepper input[type=number] { width: 34px; padding: 0; border: 0; background: transparent; text-align: center; font-weight: 800; font-size: 1.05rem; color: var(--ink); -moz-appearance: textfield; appearance: textfield; box-shadow: none; }
.stepper input[type=number]::-webkit-outer-spin-button, .stepper input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Barre du bas : total et bouton toujours visibles */
.shop-bar[hidden] { display: none; }
.shop-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px color-mix(in srgb, var(--navy-900) 8%, transparent); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.shop-bar-inner { max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.shop-bar-inner.is-column { flex-direction: column; align-items: stretch; gap: 0; }
.shop-bar-sum { flex: 1; min-width: 0; }
.shop-bar-sum strong { display: block; font-size: 1.3rem; color: var(--ink); }
.shop-bar-sum > span { display: block; font-size: 0.75rem; line-height: 1.35; color: var(--muted); }
.shop-bar-sum > span:first-child { margin-bottom: 1px; }
.shop-cta { flex: none; min-width: 160px; min-height: 54px; border-radius: 16px; border: 0; background: var(--gold-500); color: var(--navy-900); font-family: inherit; font-weight: 800; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; text-decoration: none; cursor: pointer; text-align: center; }
.shop-cta:hover { background: var(--gold-400); }
.shop-cta.is-wide { width: 100%; }
.shop-cta.is-ghost { background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.4); color: var(--white); }
.shop-cta.is-light { background: var(--white); border: 1.5px solid var(--line); color: var(--navy-800); }
.shop-bar .shop-secure { text-align: center; font-size: 0.75rem; color: var(--muted); margin: 6px 0 0; }

/* Cartes, formulaires des noms */
.shop-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.shop-holder { background: var(--white); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; }
.shop-holder > summary { list-style: none; cursor: pointer; padding: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.shop-holder > summary::-webkit-details-marker { display: none; }
.shop-holder > summary strong { font-size: 0.95rem; color: var(--ink); }
.shop-holder > summary small { display: block; font-size: 0.78rem; color: var(--muted); }
.shop-holder-toggle { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-100); color: var(--navy-900); flex: none; font-size: 1.2rem; transition: transform 0.15s; }
.shop-holder[open] > summary .shop-holder-toggle { transform: rotate(45deg); }
.shop-holder-body { padding: 0 14px 14px; }
.shop-holder-body .form-grid { gap: 10px; }
.shop-you { font-size: 0.7rem; font-weight: 700; background: var(--gold-100); color: var(--navy-900); padding: 3px 8px; border-radius: 999px; }
.shop-chips { border: 0; margin: 0 0 10px; padding: 0; min-width: 0; }
.shop-chips legend { font-weight: 700; font-size: 0.85rem; color: var(--navy-800); margin-bottom: 6px; padding: 0; }
.shop-chips-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; display: inline-block; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 0.85rem; color: var(--ink); }
.chip input:checked + span { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); font-weight: 700; }
.chip input:focus-visible + span { outline: 2px solid var(--gold-500); outline-offset: 2px; }

/* Récapitulatif, paiement */
.shop-timer { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--warning-bg); color: var(--warning); border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: 0.85rem; margin: 0 0 12px; }
.shop-lines { list-style: none; margin: 0; padding: 0; }
.shop-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.shop-lines li:last-child { border-bottom: 0; }
.shop-lines small { display: block; color: var(--muted); font-size: 0.8rem; }
.shop-lines b { white-space: nowrap; }
.shop-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 4px; }
.shop-total span { font-weight: 800; }
.shop-total strong { font-size: 1.7rem; color: var(--ink); }
.shop-feeline { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted); }
.shop-mail { background: var(--gold-100); border: 1px solid var(--gold-500); border-radius: 16px; padding: 12px 14px; text-align: center; margin: 0 0 12px; }
.shop-mail p { margin: 0; font-size: 0.85rem; }
.shop-mail .email-check-address { display: block; font-size: 1.2rem; font-weight: 800; margin: 2px 0; word-break: break-all; color: var(--navy-900); }
.shop-done { text-align: center; padding: 24px 8px 6px; }
.shop-done-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: grid; place-items: center; font-size: 2.4rem; font-weight: 800; margin: 0 auto 12px; }
.shop-done-icon.is-wait { background: var(--warning-bg); color: var(--warning); }
.shop-done-icon.is-off { background: var(--danger-bg); color: var(--danger); }
.shop-done h1 { font: 700 1.5rem var(--font-display); color: var(--navy-800); margin: 0 0 6px; }
.shop-done p { color: var(--muted); margin: 0 0 14px; }
.shop-actions { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 14px; }

/* Bloc billetterie de la fiche événement */
.ticket-block .shop-item { margin-bottom: 10px; }
.ticket-block .shop-item-price { max-width: 42%; }
.ticket-block .shop-item-price .fee-note { display: block; line-height: 1.3; margin-top: 2px; }

/* Billets et bon boissons : page sombre, carte blanche, QR en grand */
body.page-dark { background: var(--navy-900); }
body.page-dark main { color: var(--white); }
.ticket-page { max-width: 480px; margin: 0 auto; padding: 0 16px 30px; }
.ticket-back { display: inline-block; color: rgba(255, 255, 255, 0.8); font-size: 0.85rem; padding: 12px 0 0; }
.ticket-back:hover { color: var(--white); }
.ticket-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 6px 0 6px; }
.ticket-head > div { min-width: 0; }
.ticket-head h1 { font: 700 1.35rem var(--font-display); margin: 0; color: var(--white); }
.ticket-head > div > span { display: block; font-size: 0.8rem; color: rgba(255, 255, 255, 0.75); }
.ticket-head a { color: var(--white); }
.offline-pill i { width: 7px; height: 7px; border-radius: 50%; background: #4cc38a; }
.offline-pill { flex: none; margin-top: 6px; display: inline-flex; gap: 6px; align-items: center; font-size: 0.72rem; color: #cfe8d8; background: rgba(46, 125, 79, 0.28); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.ticket-carousel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 0 4px; scrollbar-width: none; }
.ticket-carousel::-webkit-scrollbar { display: none; }
.ticket-slide { flex: 0 0 100%; scroll-snap-align: center; }
.ticket-card { background: var(--white); color: var(--ink); border-radius: 22px; overflow: hidden; }
.ticket-card-top { padding: 16px 18px 12px; }
.ticket-card-event { font: 700 1.15rem/1.2 var(--font-display); color: var(--navy-800); }
.ticket-card-when { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.ticket-card-holder { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: 12px; }
.ticket-card-holder small { display: block; font-size: 0.75rem; color: var(--muted); }
.ticket-card-holder strong { display: block; font-size: 1.35rem; line-height: 1.2; }
.ticket-card-cat { background: var(--navy-800); color: var(--white); font-size: 0.75rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; text-align: center; }
.ticket-perf { position: relative; height: 22px; }
.ticket-perf::before { content: ""; position: absolute; left: 18px; right: 18px; top: 10px; border-top: 2px dashed var(--line); }
.ticket-perf::after, .ticket-perf span { content: ""; position: absolute; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--navy-900); }
.ticket-perf::after { left: -11px; }
.ticket-perf span { right: -11px; }
.ticket-qr-box { padding: 4px 24px 10px; }
.ticket-qr-box svg { display: block; width: 100%; height: auto; }
.ticket-card-ref { text-align: center; font-size: 0.7rem; color: var(--muted); letter-spacing: 0.08em; padding: 0 12px 14px; }
.ticket-card-state { margin: 4px 18px 16px; }
.ticket-actions { display: flex; gap: 8px; margin-top: 14px; }
.ticket-actions .shop-cta { flex: 1; min-width: 0; min-height: 48px; font-size: 0.9rem; padding: 0 10px; }
.ticket-actions .shop-cta[hidden] { display: none; }
.ticket-dots { display: flex; justify-content: center; gap: 6px; margin: 12px 0 6px; }
.ticket-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); transition: width 0.2s; }
.ticket-dots i.is-on { width: 20px; border-radius: 6px; background: var(--white); }
.ticket-hint { color: rgba(255, 255, 255, 0.78); font-size: 0.8rem; text-align: center; margin: 8px 0 0; }
.ticket-page .alert { margin-top: 10px; }
.ticket-page .alcohol-notice { color: rgba(255, 255, 255, 0.7); text-align: center; }
.ticket-card .alcohol-notice { color: var(--muted); text-align: left; padding: 0 18px 14px; margin: 0; }
.voucher-lines { list-style: none; margin: 0; padding: 0 18px 12px; }
.voucher-lines li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.voucher-lines li:last-child { border-bottom: 0; }
.voucher-lines b { font-size: 1.05rem; }
.voucher-lines small { color: var(--muted); font-size: 0.75rem; }
.voucher-id { margin: 0 18px 14px; background: var(--warning-bg); color: var(--warning); font-size: 0.8rem; font-weight: 700; padding: 8px 10px; border-radius: 10px; }
.ticket-edit { background: var(--white); color: var(--ink); border-radius: 18px; padding: 16px; margin-top: 18px; }
.ticket-edit h2 { font: 700 1.1rem var(--font-display); color: var(--navy-800); margin: 0 0 10px; }
.ticket-hint a { color: var(--white); }
.ticket-transfer-pending { background: var(--warning-bg); color: var(--warning); border-radius: 10px; padding: 10px 12px; margin: 0 0 8px; overflow-wrap: anywhere; }
.ticket-transfer-pending strong { color: inherit; }

/* « Mes billets » dans Mon compte */
.my-tickets { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.my-ticket { display: flex; align-items: stretch; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); }
.my-ticket-stub { width: 10px; background: var(--navy-800); flex: none; }
.my-ticket.is-off .my-ticket-stub { background: var(--line); }
.my-ticket-body { flex: 1; min-width: 0; padding: 12px 14px; }
.my-ticket-body strong { display: block; }
.my-ticket-body span { display: block; font-size: 0.8rem; color: var(--muted); }
.my-ticket-go { display: grid; place-items: center; padding: 0 14px; color: var(--navy-800); font-weight: 800; font-size: 0.85rem; white-space: nowrap; }
.my-ticket:hover { border-color: var(--navy-600); }
.my-ticket-rename { display: inline-block; font-size: 0.82rem; margin: 6px 0 0 14px; }
.my-ticket-body .my-ticket-transfer { color: var(--warning); font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .my-ticket-go { padding: 0 10px; font-size: 0.78rem; white-space: normal; text-align: center; max-width: 90px; }
}

@media (min-width: 900px) {
  .shop { max-width: 720px; }
}

/* Pages legales publiees depuis l'admin (phase 8) */
.legal-version { color: var(--muted); font-size: 0.85rem; margin: 0 0 14px; }
.legal-site-details { margin-top: 34px; }
body:has(.shop-bar:not([hidden]) .shop-accept) .site-footer { padding-bottom: 180px; }
.shop-accept { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--ink); text-align: left; margin: 0 0 10px; cursor: pointer; }
.shop-accept input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--navy-800); }

/* « Je préfère ne pas répondre » sous l'année de naissance (facultative depuis le 20/10/2026). */
.no-answer { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 0.85rem; font-weight: 400; color: var(--muted); cursor: pointer; }
.no-answer input { width: auto; margin: 0; }
