/* ESA Danse — charte graphique (mars 2025)
   Titres : Chau Philomene One · Texte : Glacial Indifference
   Couleurs : #9a0000, #ca0000, #380303, rose #ef9d96, crème #fffaf1, blanc, noir */

/* Polices hébergées sur le site (licence SIL Open Font License) : pas d'appel à Google, plus rapide et conforme RGPD. */
@font-face {
  font-family: 'Chau Philomene One';
  src: url('../fonts/ChauPhilomeneOne-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Questrial';
  src: url('../fonts/Questrial-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

/* Glacial Indifference (police de texte de la charte) n'est pas sur Google Fonts : en attendant,
   le site utilise Questrial, très proche. Pour l'activer, déposez GlacialIndifference-Regular.woff2
   et GlacialIndifference-Bold.woff2 dans /public/fonts/ puis ajoutez
   url('../fonts/GlacialIndifference-Regular.woff2') format('woff2') (resp. Bold) après local(...) ci-dessous. */
@font-face {
  font-family: 'Glacial Indifference';
  src: local('Glacial Indifference');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Glacial Indifference';
  src: local('Glacial Indifference Bold');
  font-weight: 700;
  font-display: swap;
}

:root {
  --red-dark: #9a0000;
  --red: #ca0000;
  --brown: #380303;
  --pink: #ef9d96;
  --pink-light: #fbe3e0;
  --cream: #fffaf1;
  --white: #ffffff;
  --muted: #6b4b4b;
  --line: #ecd9d3;
  --taken: #d8cdc8;
  --pmr: #1d5fa8;
  --ok: #1f7a3d;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(56, 3, 3, .10);
  --font-title: 'Chau Philomene One', 'Arial Narrow', sans-serif;
  --font-body: 'Glacial Indifference', 'Questrial', 'Century Gothic', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--brown);
  background: var(--cream);
}
h1, h2, h3, .title { font-family: var(--font-title); font-weight: 400; line-height: 1.1; margin: 0 0 .4em; color: var(--red-dark); }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.35rem; }
a { color: var(--red); }
img { max-width: 100%; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- En-tête ---------- */
.site-header { background: var(--white); border-bottom: 3px solid var(--red); position: relative; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img.logo { width: 64px; height: auto; }
.brand .name { font-family: var(--font-title); color: var(--red-dark); font-size: 1.6rem; line-height: 1; }
.brand .signature { display: block; height: 18px; width: auto; margin-top: 4px; }
/* Ordinateur : bandeau un peu plus haut, signature « Entente Sportive de l'Aubance » bien lisible */
@media (min-width: 761px) {
  .site-header .wrap { padding: 14px 0; }
  .brand { gap: 16px; }
  .brand img.logo { width: 84px; }
  .brand .name { font-size: 2.1rem; }
  .brand .signature { height: 32px; margin-top: 6px; }
}
.site-header nav a { font-weight: 700; text-decoration: none; margin-left: 18px; color: var(--brown); }
.site-header nav a:hover { color: var(--red); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1rem var(--font-body); letter-spacing: .02em;
  padding: 13px 24px; border-radius: 999px; border: 2px solid var(--red);
  background: var(--red); color: var(--white); cursor: pointer; text-decoration: none;
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--red); }
.btn.ghost:hover { background: var(--pink-light); }
.btn.light { background: var(--white); color: var(--red-dark); border-color: var(--white); }
.btn.small { padding: 7px 14px; font-size: .9rem; }
.btn.block { width: 100%; }
.linklike { background: none; border: 0; color: var(--red); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

/* ---------- Accueil ---------- */
/* Bandeau clair au motif zébré rose, comme les visuels Instagram de l'association */
.hero { background: var(--white) url('/img/zebre-rose-v3.webp') center top / 980px 1300px repeat; color: var(--brown); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; padding: 56px 0; }
.hero h1 { color: var(--red-dark); text-transform: uppercase; font-size: clamp(2.8rem, 7vw, 5.2rem); line-height: .95; letter-spacing: .01em; }
.hero .kicker { color: var(--red); text-transform: uppercase; letter-spacing: .25em; font-weight: 700; font-size: .85rem; }
.hero .when { font-size: 1.25rem; font-weight: 700; margin: 8px 0 26px; }
.hero .btn.light { background: var(--red); color: var(--white); border-color: var(--red); }
.hero .btn.light:hover { background: var(--red-dark); border-color: var(--red-dark); }
.hero .logo-disc { background: var(--white); border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center; padding: 12%; max-width: 360px; justify-self: center; width: 100%;
  box-shadow: 0 0 0 10px rgba(202, 0, 0, .10), 0 14px 40px rgba(56, 3, 3, .14); }
.leaves { display: inline-block; width: 46px; vertical-align: middle; }

.shows { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin: 48px 0; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; border-top: 6px solid var(--red-dark); }
.card.duo { border-top-color: var(--brown); background: linear-gradient(180deg, var(--pink-light), var(--white) 55%); }
.card .time { font-family: var(--font-title); font-size: 2rem; color: var(--brown); }
.card > .tag { margin: -10px 0 16px; }
.child-note { margin-top: -28px; }
.price-list { list-style: none; padding: 0; margin: 14px 0 0; }
.price-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.price-list b { font-size: 1.15rem; }
.tag { display: inline-block; background: var(--pink-light); color: var(--red-dark); border-radius: 999px; padding: 3px 12px; font-weight: 700; font-size: .85rem; }
.steps-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; counter-reset: s; margin: 0 0 48px; }
.steps-info div { background: var(--white); border-radius: var(--radius); padding: 18px 18px 18px 62px; position: relative; }
.steps-info div::before { counter-increment: s; content: counter(s); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; font-family: var(--font-title); font-size: 1.2rem; }
.cta-band { text-align: center; margin: 0 0 56px; }

.site-footer { background: var(--brown); color: var(--pink); padding: 26px 0; font-size: .9rem; margin-top: 40px; }
.site-footer a { color: var(--white); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Bandeaux ---------- */
.notice { border-radius: var(--radius); padding: 14px 18px; margin: 16px 0; background: var(--white); border-left: 6px solid var(--red); box-shadow: var(--shadow); }
.notice.test { background: #fff4d6; border-left-color: #c98a00; }
.notice.ok { border-left-color: var(--ok); }
.notice.warn { border-left-color: #c98a00; }

/* ---------- Réservation ---------- */
.booking-top { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(56,3,3,.06); }
.booking-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; flex-wrap: wrap; }
.stepper-nav { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; font-weight: 700; font-size: .92rem; }
.stepper-nav li { padding: 6px 12px; border-radius: 999px; color: var(--muted); }
.stepper-nav li.current { background: var(--red); color: var(--white); }
.stepper-nav li.done { color: var(--red-dark); }
.timer { display: flex; align-items: center; gap: 8px; font-weight: 700; background: var(--pink-light); color: var(--red-dark); padding: 6px 14px; border-radius: 999px; }
.timer b { font-family: var(--font-title); font-size: 1.3rem; font-weight: 400; min-width: 3.2ch; }
.timer.urgent { background: var(--red); color: var(--white); animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .75; } }

.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; margin: 24px auto 48px; }
.panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 22px; }
.panel h2 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.panel h2 .tag { font-family: var(--font-body); }

.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.qty-row:last-of-type { border-bottom: 0; }
.qty { display: flex; align-items: center; gap: 4px; }
.qty button { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--red); background: var(--white); color: var(--red); font-size: 1.4rem; font-weight: 700; cursor: pointer; line-height: 1; }
.qty button:hover:not(:disabled) { background: var(--red); color: var(--white); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty output { min-width: 2.2ch; text-align: center; font-family: var(--font-title); font-size: 1.5rem; }

/* Plan */
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 8px 0 12px; font-size: .9rem; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 16px; height: 16px; border-radius: 4px; display: inline-block; border: 2px solid var(--red-dark); background: var(--pink-light); }
.legend i.mine { background: var(--red); border-color: var(--red); }
.legend i.taken { background: var(--taken); border-color: var(--taken); }
.legend i.pmr { border-color: var(--pmr); background: #e3eefa; }
.legend i.blocked { background: var(--brown); border-color: var(--brown); }
.plan-tools { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-bottom: 8px; }
.plan-tools button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); color: var(--brown); font-size: 1.2rem; cursor: pointer; }
.plan-scroll { overflow: auto; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); max-height: 72vh; touch-action: pan-x pan-y; position: relative; }
.plan-scroll svg { display: block; margin: 0 auto; user-select: none; -webkit-user-select: none; }
.seat { fill: var(--pink-light); stroke: var(--red-dark); stroke-width: .07; cursor: pointer; transition: fill .15s; }
.seat:hover { fill: var(--pink); }
.seat.pmr { fill: #e3eefa; }
.seat.pmr { stroke: var(--pmr); stroke-width: .13; }
.seat.taken, .seat.taken:hover { fill: var(--taken); stroke: var(--taken); cursor: not-allowed; }
.seat.mine, .seat.mine:hover { fill: var(--red); stroke: var(--red-dark); }
.seat.busy { opacity: .5; }
.seat.flash { animation: flash .6s 2; }
@keyframes flash { 50% { fill: var(--brown); } }
.row-label { font: 700 .7px var(--font-body); fill: var(--muted); }
.deco-label { font: .8px var(--font-title); fill: var(--red-dark); letter-spacing: .06px; }
.stage-rect { fill: var(--brown); }
.stage-label { font: 1px var(--font-title); fill: var(--white); letter-spacing: .3px; }
.pmr-label { font: 700 .55px var(--font-body); fill: var(--pmr); }
.aisle-rect { fill: #f1e2dd; }
/* Plan par zones (réservation) */
.seat-num, .zone-labels { display: none; }
.zone-view .seat-num { display: block; font: 700 .36px var(--font-body); fill: var(--red-dark); pointer-events: none; }
.zone-view .seat-num.mine { fill: var(--white); }
.zone-view .seat-num.taken { fill: #a8968f; }
.zone-view .zone-labels { display: block; }
.zone-view .plan-deco, .zone-view .zone-hits { display: none; }
.zone-row { font: 700 .46px var(--font-body); fill: var(--brown); }
.zone-row.pmr { fill: var(--pmr); }
.zone-hit { fill: transparent; stroke: transparent; stroke-width: .15; cursor: pointer; }
.zone-hit:hover { fill: rgba(202, 0, 0, .08); stroke: var(--red); }
.overview .seat { cursor: pointer; }
.zone-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; min-height: 38px; scroll-margin-top: 80px; }
.zone-bar .zone-hint { color: var(--muted); font-size: .95rem; }
.zone-bar .zone-title { flex: 1; line-height: 1.3; }
.zone-arrows { display: flex; gap: 6px; }
.zone-arrows button { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); color: var(--brown); font-size: 1.5rem; cursor: pointer; }
.zone-arrows button:disabled { opacity: .35; cursor: default; }
.zone-view .zone-picker { display: none; }
.swipe-hint { display: none; text-align: center; margin: 6px 0 0; }
.can-swipe .swipe-hint { display: block; }
@media (max-width: 600px) {
  .zone-bar { flex-wrap: wrap; }
  .zone-bar .zone-title { order: 3; flex-basis: 100%; }
  .zone-arrows { margin-left: auto; }
}
.zone-picker { margin-top: 14px; display: grid; gap: 12px; }
.zone-band-name { font-family: var(--font-title); color: var(--red-dark); font-size: 1.1rem; margin-bottom: 6px; }
.zone-band-row { display: flex; flex-wrap: wrap; gap: 8px; }
.zone-btn { flex: 1 1 120px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--red); background: var(--white); color: var(--brown); cursor: pointer; font: inherit; text-align: left; }
.zone-btn:hover { background: var(--pink-light); }
.zone-btn span { font-size: .85rem; color: var(--ok); font-weight: 700; }
.zone-btn.few span { color: #b36b00; }
.zone-btn.full { border-color: var(--taken); color: var(--muted); }
.zone-btn.full span { color: var(--muted); }
.finder { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; background: var(--pink-light); border-radius: 12px; padding: 10px 14px; margin: 4px 0 12px; font-weight: 700; color: var(--brown); }
.qty-small button { width: 34px; height: 34px; font-size: 1.1rem; }
.qty-small output { font-size: 1.25rem; }
.mobile-bar .mb-info { line-height: 1.35; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.plan-tip { position: absolute; pointer-events: none; background: var(--brown); color: var(--white); padding: 6px 10px; border-radius: 8px; font-size: .85rem; white-space: nowrap; transform: translate(-50%, -120%); z-index: 3; }

/* Admin : états supplémentaires */
.seat.sold, .seat.sold:hover { fill: var(--red-dark); stroke: var(--red-dark); }
.seat.held, .seat.held:hover { fill: var(--pink); stroke: var(--pink); }
.seat.blocked, .seat.blocked:hover { fill: var(--brown); stroke: var(--brown); }
.seat.reserved, .seat.reserved:hover { fill: #f2c14e; stroke: #b8892c; }
.seat.picked { fill: #ffd34d; }
.seat.moving { stroke: #1f6feb; stroke-width: 3; }
.seat.invite, .seat.invite:hover { fill: #e6d7f5; stroke: #7b4fb0; }
.notice.invite { border-left-color: #7b4fb0; background: #f4ecfb; }
.offered { color: #7b4fb0; }
.seat.moving.from { fill: #1f6feb; }

/* Panier */
.cart { position: sticky; top: 76px; }
.cart h2 { font-size: 1.7rem; }
.cart-empty { color: var(--muted); }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.cart-line .what { font-weight: 700; }
.cart-line .where { font-size: .85rem; color: var(--muted); grid-column: 1 / -1; }
.cart-line select { grid-column: 1 / 2; font: inherit; font-size: .92rem; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); color: var(--brown); max-width: 100%; }
.cart-line .remove { background: none; border: 0; color: var(--red); cursor: pointer; font-size: 1.3rem; line-height: 1; padding: 4px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0; font-size: 1.1rem; }
.cart-total b { font-family: var(--font-title); font-size: 2rem; font-weight: 400; color: var(--red-dark); }

/* Formulaire */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: .92rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=number], input[type=date], select.input {
  font: inherit; padding: 11px 13px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--white); color: var(--brown); width: 100%;
}
input:focus, select:focus, button:focus-visible { outline: 3px solid var(--pink); outline-offset: 1px; border-color: var(--red); }
input:user-invalid { border-color: var(--red); }
fieldset { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 16px 16px; margin: 0 0 14px; }
legend { font-weight: 700; padding: 0 6px; color: var(--red-dark); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.checkbox input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--red); }
.error-msg { color: var(--red); font-weight: 700; min-height: 1.5em; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--brown); color: var(--white); padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow); z-index: 100; max-width: calc(100% - 32px); }
.toast.error { background: var(--red); }

/* Fenêtre modale */
dialog { border: 0; border-radius: var(--radius); padding: 26px; max-width: 440px; box-shadow: 0 20px 60px rgba(0,0,0,.3); color: var(--brown); }
dialog::backdrop { background: rgba(56,3,3,.55); }
dialog .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }

/* Billets */
.ticket { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr auto; overflow: hidden; margin-bottom: 18px; border: 2px solid var(--red); }
.ticket .info { padding: 20px; }
.ticket .qr { background: var(--white); padding: 14px; display: grid; place-items: center; border-left: 2px dashed var(--pink); }
.ticket .qr img { width: 150px; height: 150px; }
.ticket .holder { font-family: var(--font-title); font-size: 1.7rem; color: var(--brown); }
.ticket .code { font-family: monospace; font-size: 1.1rem; letter-spacing: .1em; }

/* Contrôle d'entrée */
.scan-result { border-radius: var(--radius); padding: 26px; text-align: center; color: var(--white); margin-top: 16px; }
.scan-result.ok { background: var(--ok); }
.scan-result.bad { background: var(--red); }
.scan-result.warn { background: #c98a00; }
.scan-btn { width: 100%; margin-top: 12px; font-size: 1.15rem; padding: 16px; }
.scanner { position: relative; margin-top: 12px; text-align: center; }
.scanner video { width: 100%; max-height: 42vh; object-fit: cover; border-radius: var(--radius); background: #000; display: block; }
.scanner .scan-frame { position: absolute; top: 50%; left: 50%; width: 60%; aspect-ratio: 1; transform: translate(-50%, calc(-50% - 22px)); border: 3px solid rgba(255, 255, 255, .85); border-radius: 12px; pointer-events: none; }
.scanner .btn { margin-top: 8px; }
.scan-result .big { font-family: var(--font-title); font-size: 2.4rem; }

/* Admin */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 20px 0; }
.tabs button { font: 700 .95rem var(--font-body); padding: 9px 16px; border-radius: 999px; border: 2px solid var(--red); background: var(--white); color: var(--red); cursor: pointer; }
.tabs button.active { background: var(--red); color: var(--white); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kpi { background: var(--white); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.kpi .v { font-family: var(--font-title); font-size: 2rem; color: var(--red-dark); }
table.data { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; font-size: .92rem; }
table.data th, table.data td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { background: var(--brown); color: var(--white); font-weight: 700; }
.status { font-weight: 700; padding: 2px 10px; border-radius: 999px; font-size: .8rem; white-space: nowrap; }
.status.paid { background: #dff3e5; color: var(--ok); }
.status.pending { background: #fff1cc; color: #8a5d00; }
.status.reserved { background: #f2c14e; color: #4a3200; }
.pay-choice { border: 2px solid var(--pink); border-radius: 12px; padding: 10px 14px; margin: 18px 0 8px; }
.pay-choice .checkbox { margin: 8px 0; }
.status.conflict { background: var(--red); color: var(--white); }
.status.cancelled, .status.expired { background: #eee; color: #666; }
.status.torefund { background: #fff1cc; color: #8a5d00; }
.status.refunded { background: #e8eef7; color: #2f4a6b; }
.table-scroll { overflow-x: auto; }

/* Barre panier fixe (mobile) */
.mobile-bar { display: none; }
@media (max-width: 960px) {
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--white); border-top: 3px solid var(--red); padding: 10px 16px; justify-content: space-between; align-items: center; gap: 12px; box-shadow: 0 -4px 20px rgba(56,3,3,.15); }
  .mobile-bar.hidden { display: none !important; }
  body:has(.mobile-bar:not(.hidden)) { padding-bottom: 80px; }
  .booking-layout { grid-template-columns: minmax(0, 1fr); }
  .cart { position: static; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding: 36px 0; }
  .hero .logo-disc { max-width: 220px; grid-row: 1; }
}
/* Téléphone : bandeau d'accueil compact, pour voir les événements sans faire défiler */
@media (max-width: 600px) {
  .hero .wrap { gap: 12px; padding: 20px 0 24px; }
  .hero .logo-disc { display: none; } /* déjà dans l'en-tête */
  .hero h1 { font-size: 2.6rem; }
  .hero .when { font-size: 1.05rem; margin: 6px 0 14px; }
  .hero .hero-scroll { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .brand .name { font-size: 1.25rem; }
  .brand img.logo { width: 48px; }
  .brand .signature { height: 20px; }
  .site-header nav a { margin-left: 10px; font-size: .88rem; white-space: nowrap; }
  .site-header nav a { margin-left: 10px; font-size: .9rem; }
  .stepper-nav li { padding: 5px 8px; font-size: .8rem; }
  .ticket { grid-template-columns: 1fr; }
  .ticket .qr { border-left: 0; border-top: 2px dashed var(--pink); }
  .panel { padding: 16px; }
}
/* Questions fréquentes */
.faq h2 { margin-top: 28px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--white); margin: 10px 0; padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--red-dark); padding: 14px 0; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.faq-link { text-align: center; margin: 18px 0 0; }

@media print {
  .site-header nav, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
  .ticket { box-shadow: none; break-inside: avoid; }
}

/* ---------------------------------------------------------------- Événements */
.events-title { margin-top: 48px; }
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin: 18px 0 48px; }
.ev-card { display: flex; gap: 18px; align-items: flex-start; }
.ev-card h3 { margin: 0 0 4px; font-family: var(--font-title); color: var(--red-dark); font-size: 1.5rem; }
.ev-date { flex: 0 0 64px; text-align: center; background: var(--red-dark); color: var(--white); border-radius: 12px; padding: 8px 4px; line-height: 1.1; }
.ev-date b { display: block; font-family: var(--font-title); font-size: 1.9rem; }
.ev-date span { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.ev-card.duo .ev-date { background: var(--brown); }
.ev-body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ev-body p { margin: 0; }
.ev-price { margin: 4px 0 8px !important; }
.ev-badge { display: inline-block; border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: .85rem; background: var(--taken); color: var(--brown); }
.ev-badge.warn { background: #fde9c4; color: #8a5200; }
.ev-badge.bad { background: var(--taken); color: var(--brown); }
.ev-hero .when { white-space: pre-line; }
.ev-desc { white-space: pre-line; }
.ev-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 12px 0 4px; }
.ev-info div { background: var(--cream); border-radius: 12px; padding: 12px 14px; }
.ev-info b { display: block; color: var(--red-dark); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.dietary-field { margin-top: 6px; }
.tariff-row { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; border-bottom: 1px dashed var(--line); padding-bottom: 8px; margin-bottom: 8px; }
@media (max-width: 600px) { .tariff-row { grid-template-columns: 1fr 1fr; } }
textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
@media print {
  body.print-recap * { visibility: hidden; }
  body.print-recap #ev-recap, body.print-recap #ev-recap * { visibility: visible; }
  body.print-recap #ev-recap { position: absolute; left: 0; top: 0; width: 100%; }
}

/* ---------------------------------------------------------------- Espace organisateurs (réorganisé) */
.adm-nav { display: flex; gap: 6px; margin: 16px 0 10px; overflow-x: auto; scrollbar-width: none; }
.adm-nav a { flex: 0 0 auto; font-weight: 700; text-decoration: none; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--red); color: var(--red); background: var(--white); }
.adm-nav a.active { background: var(--red); color: var(--white); }
#env .notice { margin: 8px 0; padding: 10px 14px; }
.adm-cards .adm-card { cursor: pointer; transition: transform .1s; }
.adm-cards .adm-card:hover { transform: translateY(-2px); }
.adm-figures { font-size: 1rem; }
.adm-old { margin: -24px 0 30px; }
.adm-old summary { cursor: pointer; font-weight: 700; color: var(--red-dark); }
.adm-head { margin: 10px 0 6px; }
.adm-head h2 { margin: 6px 0 2px; font-size: 2rem; }
.adm-head p { margin: 0 0 10px; }
.adm-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin: 16px 0 18px; overflow-x: auto; scrollbar-width: none; }
.adm-tabs a { flex: 0 0 auto; padding: 10px 14px; font-weight: 700; text-decoration: none; color: var(--brown); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.adm-tabs a.active { color: var(--red); border-bottom-color: var(--red); }
.adm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.adm-two h3 { margin-bottom: 8px; }
table.data tr.zero td { color: #a99; }
.kpi.alert { background: var(--red); }
.kpi.alert, .kpi.alert .v, .kpi.alert .muted, .kpi.alert a { color: var(--white); }
.kpi.todo { border: 3px solid #f2c14e; }
.kpi a { font-weight: 700; }
.danger-zone { border: 2px dashed var(--pink); box-shadow: none; }
.adm-filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips button { flex: 0 0 auto; font: 700 .88rem var(--font-body); padding: 7px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); color: var(--brown); cursor: pointer; }
.chips button.active { border-color: var(--red); background: var(--red); color: var(--white); }
.orders { display: flex; flex-direction: column; gap: 10px; }
.order { display: flex; gap: 16px; justify-content: space-between; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; border-left: 6px solid var(--line); }
.order.paid { border-left-color: var(--ok); }
.order.reserved { border-left-color: #f2c14e; }
.order.pending { border-left-color: #c98a00; }
.order.conflict { border-left-color: var(--red); }
.order.cancelled, .order.expired, .order.refunded { opacity: .75; }
.order.torefund { border-left-color: #f2c14e; }
.o-main { min-width: 0; flex: 1; }
.o-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.o-ref { font-family: monospace; font-size: 1rem; }
.o-who { font-size: 1.1rem; font-weight: 700; margin: 4px 0 2px; }
.o-more summary { cursor: pointer; font-size: .85rem; color: var(--red); margin-top: 4px; }
.o-more ul { margin: 6px 0 0; padding-left: 18px; }
.o-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.o-amount { font-family: var(--font-title); font-size: 1.5rem; color: var(--red-dark); display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.o-amount .small { font-family: var(--font-body); }
.o-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.o-menu { position: relative; }
.o-menu summary { list-style: none; cursor: pointer; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; color: var(--brown); background: var(--white); }
.o-menu summary::-webkit-details-marker { display: none; }
.o-menu > div { position: absolute; right: 0; top: 44px; z-index: 10; background: var(--white); border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); min-width: 240px; padding: 6px; display: flex; flex-direction: column; }
.o-menu > div button { background: none; border: 0; text-align: left; font: inherit; padding: 10px 12px; border-radius: 8px; cursor: pointer; color: var(--brown); }
.o-menu > div button:hover { background: var(--pink-light); }
@media (max-width: 700px) {
  .adm-two { grid-template-columns: 1fr; }
  .order { flex-direction: column; gap: 10px; }
  .o-side { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
  .o-amount { align-items: flex-start; }
  .o-actions .btn { padding: 10px 14px; }
  .adm-head h2 { font-size: 1.6rem; }
  .adm-nav { display: grid; grid-template-columns: repeat(3, 1fr); }
  .adm-nav a { padding: 9px 4px; text-align: center; font-size: .84rem; white-space: nowrap; }
  .adm-tabs a { padding: 10px 8px; font-size: .9rem; }
}

/* Réseaux sociaux (page d'accueil) */
.social { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin: 0 0 40px; text-align: center; }
.social h2 { margin-bottom: 4px; }
.social-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.social-btn { display: inline-flex; align-items: center; gap: 10px; }

/* Réglages : l'essentiel en haut, rubriques à ouvrir, bouton « Enregistrer » toujours visible */
.quick-state .q-summary { margin: 4px 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); }
.switch { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 26px; margin: 2px 0 0; border-radius: 13px; background: #d8c8c3; position: relative; cursor: pointer; transition: background .15s; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .15s; }
.switch input:checked { background: var(--red); }
.switch input:checked::after { left: 23px; }
.switch input:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.switch input:disabled { opacity: .5; }
.fold { padding: 0; }
.fold > summary { list-style: none; cursor: pointer; padding: 16px 44px 16px 22px; position: relative; display: flex; flex-direction: column; gap: 2px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary b { font-family: var(--font-title, inherit); color: var(--red-dark); font-size: 1.15rem; font-weight: 400; }
.fold > summary span { font-size: .85rem; color: var(--muted, #6b4b4b); }
.fold > summary::after { content: '›'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%) rotate(90deg); font-size: 1.6rem; color: var(--red); transition: transform .15s; }
.fold[open] > summary::after { transform: translateY(-50%) rotate(-90deg); }
.fold[open] > summary { border-bottom: 1px solid var(--line); }
.fold > :not(summary) { margin-left: 22px; margin-right: 22px; }
.fold > :last-child { margin-bottom: 20px; }
.fold > summary + * { margin-top: 16px; }
.fold h4 { margin: 18px 22px 8px; color: var(--red-dark); }
.save-bar { position: sticky; bottom: 0; z-index: 5; background: var(--cream); padding: 12px 0 14px; margin-bottom: 22px; border-top: 1px solid var(--line); }
.save-bar { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.save-bar > div { width: 100%; }
.save-bar .btn[type=submit] { min-width: 260px; }
.save-bar .error-msg:empty { display: none; }
#e-form-slot .ev-form-head, #e-form-slot #f-publish, #e-form-slot #ev-form-cancel { display: none; }
@media (max-width: 640px) { .save-bar { align-items: stretch; } .save-bar .btn[type=submit] { width: 100%; min-width: 0; } .fold > summary { padding: 14px 40px 14px 16px; } .fold > :not(summary) { margin-left: 16px; margin-right: 16px; } .fold h4 { margin-left: 16px; } }
