/* ═══════════════ Ovation — Thème ROUGE & BLANC (v4, responsive) ═══════════════ */
:root {
  --brand: #dc2626;
  --brand-dark: #b91c1c;
  --brand-deep: #2a1010;
  --rose: #ef4444;
  --coral: #f43f5e;
  --night: #1a0d0d;
  --bg: #ffffff;
  --gray: #6b7280;
  --bordure: #f3e2e2;
  --card-shadow: 0 3px 18px -6px rgba(69, 10, 10, 0.12);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--brand-deep); }
a { color: var(--brand); }
img { max-width: 100%; }

/* ── Header blanc responsive ── */
.entete { background: rgba(255,255,255,.94); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--bordure); }
.entete-inner { max-width: 1140px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 16px; gap: 8px 12px; min-height: 46px; }
.logo { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; color: var(--brand-deep); text-decoration: none; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo-ico { background: linear-gradient(135deg, var(--brand), var(--coral)); border-radius: 10px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.entete-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.entete-nav a { color: #4b4560; text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 11px; border-radius: 10px; white-space: nowrap; }
.entete-nav a:hover { background: #fef2f2; color: var(--brand); }
.entete-nav .btn-nav { background: var(--brand); color: #fff; }
.entete-nav .btn-nav:hover { background: var(--brand-dark); color: #fff; }
@media (max-width: 480px) {
  .entete-inner { padding: 8px 10px; }
  .logo { font-size: 16px; }
  .entete-nav a { font-size: 12.5px; padding: 7px 8px; }
}

/* ── Boutons & formulaires ── */
.btn { display: inline-block; background: var(--brand); color: #fff; border: 0; padding: 12px 22px; border-radius: 12px; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { background: var(--brand-dark); }
.btn-outline { background: #fff; color: var(--brand); border: 1px solid #fecaca; }
.btn-outline:hover { background: #fef2f2; }
.btn-danger { background: #fff; color: #dc2626; border: 1px solid #fecaca; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-degrade { background: linear-gradient(90deg, var(--brand), var(--coral)); color: #fff; border: 0; padding: 13px 26px; border-radius: 12px; font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: 0 8px 22px -8px rgba(220,38,38,.55); text-decoration: none; display: inline-block; text-align: center; }
.btn-degrade:hover { filter: brightness(1.08); }
input, select, textarea { font-family: inherit; }
.champ { width: 100%; padding: 11px 14px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 15px; background: #fff; }
.champ:focus { outline: 2px solid #fca5a5; border-color: var(--brand); }
label.lbl { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 5px; }

/* ── Accueil ── */
.accueil-hero { background: linear-gradient(180deg, #fdf0f0 0%, #ffffff 100%); border-bottom: 1px solid var(--bordure); }
.accueil-hero .inner { max-width: 1140px; margin: 0 auto; padding: 46px 18px 40px; text-align: center; }
.accueil-hero h1 { font-size: clamp(27px, 4.6vw, 46px); margin: 0; letter-spacing: -1.2px; line-height: 1.12; }
.accueil-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand), var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.accueil-hero .sous { color: var(--gray); font-size: 16px; max-width: 540px; margin: 14px auto 0; }

.barre-recherche { max-width: 720px; margin: 26px auto 0; background: #fff; border: 1px solid var(--bordure); border-radius: 18px; box-shadow: var(--card-shadow); padding: 10px; display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 660px) { .barre-recherche { grid-template-columns: 1.6fr 1fr auto; border-radius: 99px; padding: 8px; } }
.barre-recherche .champ { border: 0; background: transparent; font-size: 15px; padding: 12px 18px; }
.barre-recherche .champ:focus { outline: none; }
.barre-recherche .sep { border-left: 1px solid var(--bordure); border-radius: 0; }
@media (max-width: 659px) { .barre-recherche .sep { border-left: 0; border-top: 1px solid var(--bordure); } }
.barre-recherche .btn-degrade { border-radius: 14px; }
@media (min-width: 660px) { .barre-recherche .btn-degrade { border-radius: 99px; } }

.mini-confiance { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; color: var(--gray); font-size: 13px; font-weight: 600; }

.conteneur { max-width: 1140px; margin: 0 auto; padding: 28px 16px; }
.conteneur h1 { font-size: clamp(24px, 6vw, 34px); letter-spacing: -0.8px; }
.titre-section { font-size: clamp(19px, 4.5vw, 23px); font-weight: 800; margin: 34px 0 18px; letter-spacing: -0.4px; }
.titre-section:first-child { margin-top: 0; }

.vedette { display: grid; grid-template-columns: 1fr; background: var(--night); border-radius: 22px; overflow: hidden; text-decoration: none; color: #fff; box-shadow: 0 18px 50px -18px rgba(69,10,10,.45); }
@media (min-width: 820px) { .vedette { grid-template-columns: 1.25fr 1fr; min-height: 320px; } }
.vedette .visuel { aspect-ratio: 16/9; position: relative; background: linear-gradient(135deg, #4c0d0d, var(--night)); }
@media (min-width: 820px) { .vedette .visuel { aspect-ratio: auto; height: 100%; } }
.vedette .visuel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vedette .contenu { padding: 24px 24px 26px; display: flex; flex-direction: column; justify-content: center; gap: 8px; background: radial-gradient(ellipse at top left, rgba(220,38,38,.3), transparent 65%); }
.vedette .tag { color: #fbbf24; font-weight: 800; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }
.vedette h3 { margin: 0; font-size: clamp(21px, 2.6vw, 30px); line-height: 1.2; }
.vedette .infos { color: #e7d5d5; font-size: 15px; }
.vedette .btn-degrade { align-self: flex-start; margin-top: 10px; }

.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.carte-evt { background: #fff; border: 1px solid var(--bordure); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; display: block; }
.carte-evt:hover { transform: translateY(-4px); box-shadow: 0 14px 40px -14px rgba(220,38,38,.3); }
.carte-evt .visuel { aspect-ratio: 16/9; background: linear-gradient(135deg, #fde8e8, #fdf2f2); position: relative; }
.carte-evt .visuel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.visuel-vide { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 40px; opacity: .4; }
.badge { position: absolute; top: 10px; left: 10px; padding: 4px 12px; border-radius: 99px; font-size: 11px; font-weight: 800; color: #fff; }
.badge-complet { background: #374151; } .badge-dernieres { background: var(--brand); }
.badge-gratuit { background: #10b981; } .badge-nouveau { background: #0ea5e9; }
.carte-evt .infos { padding: 14px 16px 16px; }
.carte-evt .date { color: var(--brand); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.carte-evt h3 { margin: 4px 0 2px; font-size: 17px; letter-spacing: -0.2px; }
.carte-evt .lieu { color: var(--gray); font-size: 13px; margin: 0; }
.carte-evt .prix { font-weight: 800; margin: 10px 0 0; font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { color: #4b4560; background: #fff; border: 1px solid var(--bordure); text-decoration: none; font-size: 13px; font-weight: 600; padding: 8px 15px; border-radius: 99px; transition: .15s; }
.chip:hover, .chip.actif { border-color: var(--brand); color: var(--brand); background: #fef2f2; }

.compteurs-ligne { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 46px; padding: 26px 20px; margin-top: 40px; border-top: 1px solid var(--bordure); text-align: center; }
.compteurs-ligne strong { font-size: 24px; display: block; }
.compteurs-ligne small { color: var(--gray); font-weight: 600; font-size: 12px; }

/* ── Page événement ── */
.entete-evt { background: var(--night); color: #fff; padding: 36px 16px; }
.entete-evt .inner { max-width: 1140px; margin: 0 auto; display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .entete-evt .inner { grid-template-columns: 1fr 380px; } }
.entete-evt h1 { font-size: clamp(24px, 4vw, 38px); margin: 8px 0; }
.entete-evt .meta { color: #e7d5d5; line-height: 1.9; }
.entete-evt a { color: #fca5a5; }
.panneau-billets { background: #fff; color: var(--brand-deep); border-radius: 16px; padding: 18px; box-shadow: var(--card-shadow); }
.panneau-billets h2 { margin: 0 0 14px; font-size: 18px; }
.ligne-billet { border: 1px solid #f5f0f0; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ligne-billet .nom { font-weight: 700; }
.ligne-billet .desc { color: var(--gray); font-size: 12px; }
.ligne-billet .tarif { color: var(--brand); font-weight: 800; font-size: 14px; }
.ligne-billet .frais { color: var(--gray); font-size: 11.5px; font-weight: 600; }
.qte { display: flex; align-items: center; gap: 8px; }
.qte button { width: 34px; height: 34px; border-radius: 9px; border: 1px solid #e5e7eb; background: #fff; font-size: 17px; font-weight: 700; cursor: pointer; color: #4b5563; }
.qte button:hover { background: #fef2f2; }
.qte span { min-width: 22px; text-align: center; font-weight: 700; }
.epuise { color: var(--gray); font-size: 13px; font-weight: 700; background: #f3f4f6; padding: 5px 12px; border-radius: 99px; }
.description-evt { max-width: 1140px; margin: 0 auto; padding: 32px 16px; line-height: 1.7; white-space: pre-line; }

/* ── Divers ── */
.card { background: #fff; border: 1px solid var(--bordure); border-radius: 16px; box-shadow: var(--card-shadow); }
.alerte { padding: 12px 16px; border-radius: 12px; margin: 12px 0; font-size: 14px; }
.alerte-erreur { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alerte-succes { background: #ecfdf5; color: #047857; }
.alerte-info { background: #fff7ed; color: #b45309; }
.centre { text-align: center; }
.pied { background: #fff; border-top: 1px solid var(--bordure); color: var(--gray); text-align: center; padding: 26px 16px; font-size: 13px; margin-top: 60px; }
.pied-liens { margin-bottom: 8px; }
.pied a { color: #4b4560; }

/* ── Billet ── */
.billet { background: #fff; border-radius: 18px; box-shadow: var(--card-shadow); max-width: 640px; margin: 0 auto 24px; overflow: hidden; page-break-inside: avoid; border: 1px solid var(--bordure); }
.billet-haut { background: var(--brand); color: #fff; padding: 18px 24px; border-bottom: 4px solid var(--brand-deep); display: flex; justify-content: space-between; align-items: center; }
.billet-corps { padding: 22px 24px; display: grid; grid-template-columns: 1fr 170px; gap: 18px; }
@media (max-width: 560px) { .billet-corps { grid-template-columns: 1fr; } .billet .qr { margin: 0 auto; } }
.billet dt { font-size: 10px; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: .5px; margin-top: 10px; }
.billet dd { margin: 1px 0 0; font-size: 15px; }
.billet .qr { border: 2px solid var(--brand); border-radius: 12px; padding: 10px; text-align: center; align-self: start; background: #fff; width: fit-content; }
.billet .qr .num { font-size: 11px; color: var(--gray); margin-top: 6px; word-break: break-all; }
@media print {
  .entete, .pied, .no-print { display: none !important; }
  body { background: #fff; }
  .billet { box-shadow: none; border: 1px solid #ccc; }
}

/* ── Tableaux & pastilles ── */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--card-shadow); font-size: 14px; }
.table th { text-align: left; padding: 12px 14px; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--gray); border-bottom: 1px solid #f5f0f0; }
.table td { padding: 12px 14px; border-bottom: 1px solid #faf5f5; vertical-align: top; }
.pill { padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.pill-vert { background: #d1fae5; color: #047857; }
.pill-gris { background: #f3f4f6; color: #4b5563; }
.pill-rouge { background: #fee2e2; color: #b91c1c; }
.pill-orange { background: #fef3c7; color: #b45309; }
.pill-bleu { background: #e0f2fe; color: #0369a1; }
