/* Damas Events — maquette haute fidélité v1
   Design tokens + composants. Référence : cahier des charges §6. */

:root {
  /* Couleurs de base */
  --nuit: #1F232A;
  --encre: #14171C;
  --nuit-2: #2A2F38;
  --nacre: #F2F3EF;
  --papier: #FFFFFF;
  --trait: #D9DBD4;
  --trait-nuit: #3A404B;
  --texte: #1B1E24;
  --texte-doux: #565C67;
  --texte-clair: #C9CDD4;
  --laiton: #D9B66A;
  --laiton-fonce: #7A5A1E;
  --rose: #9E2B47;
  --rose-clair: #F6E4E8;

  /* Catégories de places */
  --vip: #C8A04A;
  --silver: #8E99A6;
  --classic: #2F3A9E;

  /* États sémantiques */
  --ok: #1F7A4D;
  --ok-clair: #E3F2EA;
  --alerte: #8A5200;
  --alerte-clair: #FBEFD9;
  --refus: #B3261E;
  --refus-clair: #FBE6E4;

  /* Typographie */
  --titre: "Lato", "Segoe UI", system-ui, sans-serif;
  --corps: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --titre-ar: "Zain", "Noto Kufi Arabic", "Segoe UI", sans-serif;
  --corps-ar: "Noto Kufi Arabic", "Segoe UI", sans-serif;
  --t-xs: 0.8125rem;
  --t-s: 0.9375rem;
  --t-m: 1.0625rem;
  --t-l: 1.3125rem;
  --t-xl: 1.75rem;
  --t-2xl: 2.375rem;
  --t-3xl: 3.25rem;
  --t-4xl: 4.5rem;

  /* Espacement (base 4) */
  --e1: 4px; --e2: 8px; --e3: 12px; --e4: 16px; --e5: 24px;
  --e6: 32px; --e7: 48px; --e8: 72px; --e9: 112px;

  /* Rayons et ombres */
  --r-s: 4px;
  --r-m: 10px;
  --r-pilule: 999px;
  --ombre-carte: 0 1px 0 rgba(20, 23, 28, .06), 0 12px 28px -18px rgba(20, 23, 28, .45);
  --ombre-flottant: 0 18px 44px -16px rgba(20, 23, 28, .55);

  --largeur: 1180px;
  --khatam: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' fill='none' stroke='%23D9B66A' stroke-width='1'%3E%3Cpath d='M10 10h20v20H10z'/%3E%3Cpath d='M20 5.9 34.1 20 20 34.1 5.9 20z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--corps);
  font-size: var(--t-m);
  line-height: 1.55;
  color: var(--texte);
  background: var(--nacre);
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--titre); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(var(--t-2xl), 6vw, var(--t-4xl)); }
h2 { font-size: clamp(var(--t-xl), 4vw, var(--t-2xl)); }
h3 { font-size: var(--t-l); }
p { margin: 0; max-width: 68ch; }
a { color: inherit; text-underline-offset: 3px; }
[lang="ar"] { font-family: var(--corps-ar); direction: rtl; }
.titre-ar { font-family: var(--titre-ar); font-weight: 700; line-height: 1.45; letter-spacing: 0; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 2px; }
.sombre :focus-visible { outline-color: var(--laiton); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Structure ---------- */
.cadre { width: min(100% - 2 * var(--e4), var(--largeur)); margin-inline: auto; }
.bande { padding-block: var(--e8); }
.bande-serree { padding-block: var(--e7); }
.sombre { background: var(--nuit); color: var(--nacre); }
.sombre p { color: var(--texte-clair); }
.blanc { background: var(--papier); }
.pile > * + * { margin-top: var(--e4); }
.pile-l > * + * { margin-top: var(--e6); }
.entete-section { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--e4); margin-bottom: var(--e6); }
.doux { color: var(--texte-doux); }
.sombre .doux { color: var(--texte-clair); }
.petit { font-size: var(--t-s); }
.grille-2 { display: grid; gap: var(--e6); }
.grille-3 { display: grid; gap: var(--e5); }
@media (min-width: 860px) {
  .grille-2 { grid-template-columns: 1fr 1fr; align-items: start; }
  .grille-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Frise de marqueterie : motif signature, utilisé une seule fois par page */
.frise { height: 40px; background: var(--khatam) repeat-x center / 40px 40px; background-color: var(--encre); }

/* Bandeau maquette */
.note-maquette { background: var(--rose); color: #fff; font-size: var(--t-xs); padding: 6px var(--e4); text-align: center; }
.note-maquette a { color: #fff; }

/* ---------- En-tête et pied ---------- */
.entete { background: var(--nuit); color: var(--nacre); position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--trait-nuit); }
.entete-int { display: flex; align-items: center; gap: var(--e5); min-height: 68px; }
.marque { display: inline-flex; align-items: center; gap: var(--e3); text-decoration: none; font-family: var(--titre); font-size: 1.375rem; font-weight: 600; white-space: nowrap; }
.marque svg { width: 30px; height: 30px; flex: none; }
.marque img { display: block; height: 40px; width: auto; }
.nav { display: none; gap: var(--e5); margin-left: auto; }
.nav a { text-decoration: none; font-size: var(--t-s); padding: 10px 2px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--trait-nuit); }
.nav a[aria-current="page"] { border-bottom-color: var(--laiton); }
.entete .btn { margin-left: auto; }
.menu-btn { background: none; border: 1px solid var(--trait-nuit); color: inherit; border-radius: var(--r-s); width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; }
.nav-mobile { display: none; flex-direction: column; padding: var(--e3) 0 var(--e5); border-top: 1px solid var(--trait-nuit); }
.nav-mobile.ouvert { display: flex; }
.nav-mobile a { padding: 14px 0; text-decoration: none; border-bottom: 1px solid var(--trait-nuit); }
/* Bouton flottant WhatsApp : rond sur mobile, pastille avec texte sur grand écran */
.whatsapp { position: fixed; z-index: 35; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: var(--r-pilule); background: #25D366; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; box-shadow: 0 10px 26px -8px rgba(20, 23, 28, .55); transition: transform .15s, background-color .15s; }
.whatsapp:hover { background: #1FBE5A; transform: translateY(-2px); }
.whatsapp:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }
.whatsapp svg { flex: none; }
.whatsapp-texte { display: none; color: var(--encre); font: 700 var(--t-s) var(--corps); white-space: nowrap; }
@media (max-width: 999px) { .a-barre-basse .whatsapp { bottom: calc(88px + env(safe-area-inset-bottom)); } }
@media (min-width: 1000px) {
  .whatsapp { right: 24px; bottom: 24px; width: auto; padding: 0 20px 0 16px; }
  .whatsapp-texte { display: inline; }
}

/* Sélecteur de langue */
.langue { position: relative; margin-left: auto; }
.langue-bureau { display: none; margin-left: 0; }
.langue-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; background: none; color: inherit; border: 1px solid var(--trait-nuit); border-radius: var(--r-s); font: 600 var(--t-s) var(--corps); cursor: pointer; }
.langue-btn:hover, .langue-btn[aria-expanded="true"] { border-color: var(--laiton); }
.langue-menu { position: absolute; inset: calc(100% + 8px) 0 auto auto; z-index: 50; min-width: 190px; margin: 0; padding: 6px; list-style: none; background: var(--papier); color: var(--texte); border-radius: var(--r-m); box-shadow: var(--ombre-flottant); }
.langue-menu a { display: flex; align-items: center; justify-content: space-between; gap: var(--e3); min-height: 44px; padding: 0 12px; border-radius: var(--r-s); text-decoration: none; font-size: var(--t-s); }
.langue-menu a:hover { background: var(--nacre); }
.langue-menu a:focus-visible { outline-color: var(--rose); outline-offset: -2px; }
.langue-menu a[aria-current]::after { content: "✓"; font-weight: 700; color: var(--ok); }
.langue-menu a[aria-current] { font-weight: 700; }
.langue-menu [lang="ar"], .langue-mobile [lang="ar"] { font-family: var(--corps-ar); }
.langue-nom { display: inline-flex; align-items: center; gap: 10px; }
.drapeau { flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(20, 23, 28, .18); }
.langue-mobile .drapeau { box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.langue-mobile { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2); padding-top: var(--e4); color: var(--texte-clair); }
.nav-mobile .langue-mobile a { border: 1px solid var(--trait-nuit); border-radius: var(--r-pilule); padding: 0 14px; min-height: 44px; display: inline-flex; align-items: center; font-size: var(--t-s); color: var(--nacre); }
.nav-mobile .langue-mobile a[aria-current] { background: var(--laiton); border-color: var(--laiton); color: var(--encre); font-weight: 700; }
.mollie-mention { margin-left: auto; color: var(--texte-clair); display: none; }
@media (min-width: 700px) { .mollie-mention { display: inline; } .mollie-mention + .langue { margin-left: 0; } }
@media (max-width: 480px) {
  .entete-int { gap: var(--e3); }
  .entete .marque { font-size: 1.125rem; gap: var(--e2); }
  .entete .marque svg { width: 26px; height: 26px; }
  .entete .marque img { height: 32px; }
  .entete .btn { padding: 0 14px; }
}
@media (min-width: 1120px) {
  .nav { display: flex; align-items: center; gap: var(--e4); }
  .langue-bureau { display: block; }
  .entete .btn { margin-left: 0; }
  .menu-btn, .nav-mobile.ouvert { display: none; }
}
/* Rubrique « Votre événement » : sous-menu au survol, au focus, ou par la flèche (toucher, clavier) */
.nav-groupe { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-fleche { width: 28px; height: 44px; background: none; border: 0; color: inherit; cursor: pointer; display: grid; place-items: center; border-radius: var(--r-s); }
.sous-menu { display: none; position: absolute; top: 100%; left: -12px; z-index: 50; min-width: 290px; margin: 0; padding: 6px; list-style: none; background: var(--papier); color: var(--texte); border-radius: var(--r-m); box-shadow: var(--ombre-flottant); }
.nav-groupe:hover .sous-menu, .nav-groupe:focus-within .sous-menu, .sous-menu.ouvert { display: block; }
.nav .sous-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--r-s); font-size: var(--t-s); }
.nav .sous-menu a:hover { background: var(--nacre); }
.nav .sous-menu a:focus-visible { outline-color: var(--rose); outline-offset: -2px; }
.nav .sous-menu a[aria-current] { font-weight: 700; background: var(--nacre); }
.nav-mobile a[aria-current="page"] { color: var(--laiton); }
.sous-liens { display: flex; flex-direction: column; padding-left: var(--e4); border-bottom: 1px solid var(--trait-nuit); }
.nav-mobile .sous-liens a { padding: 11px 0; border-bottom: 0; font-size: var(--t-s); color: var(--texte-clair); }
.nav-mobile .sous-liens a[aria-current] { color: var(--laiton); }

/* ---------- Contenu éditorial ---------- */
.texte-riche { max-width: 780px; }
.texte-riche > * + * { margin-top: var(--e4); }
.texte-riche h2 + p { margin-top: var(--e5); }
.texte-riche p { font-size: var(--t-m); line-height: 1.7; max-width: 72ch; }
.texte-riche h3 { margin-top: var(--e6); }
.cartes-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--e4); }
.carte-service { display: flex; flex-direction: column; gap: var(--e2); padding: var(--e5); background: var(--papier); border: 1px solid var(--trait); border-top: 4px solid var(--laiton); border-radius: var(--r-m); text-decoration: none; }
.carte-service:hover { border-color: var(--nuit); border-top-color: var(--laiton); }
.carte-service strong { font: 700 var(--t-l)/1.2 var(--titre); }
.carte-service span { font-size: var(--t-s); color: var(--texte-doux); }
.carte-service .carte-lien { margin-top: auto; padding-top: var(--e3); color: var(--texte); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sombre .carte-service { color: var(--texte); }
/* Démarche : une vraie suite d'étapes, donc numérotée */
.demarche { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--e5); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: pas; }
.demarche li { counter-increment: pas; padding-top: var(--e4); border-top: 3px solid var(--nuit); }
.demarche li::before { content: counter(pas); display: block; font: 700 var(--t-2xl)/1 var(--titre); color: var(--laiton-fonce); margin-bottom: var(--e2); }
.demarche h3 { font-size: var(--t-l); margin-bottom: 6px; }
.demarche p { font-size: var(--t-s); color: var(--texte-doux); }
.sombre .demarche li { border-top-color: var(--laiton); }
.sombre .demarche li::before { color: var(--laiton); }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--e5); margin: 0; }
.chiffres dt { font-size: var(--t-s); color: var(--texte-clair); }
.chiffres dd { margin: 0; font: 700 var(--t-3xl)/1 var(--titre); color: var(--laiton); }
.chiffres div { display: flex; flex-direction: column-reverse; gap: 6px; border-left: 2px solid var(--trait-nuit); padding-left: var(--e4); }
.pied { background: var(--encre); color: var(--texte-clair); font-size: var(--t-s); }
.pied-grille { display: grid; gap: var(--e6); padding-block: var(--e7); }
.pied h3 { font-family: var(--corps); font-size: var(--t-s); font-weight: 600; color: var(--nacre); margin-bottom: var(--e3); letter-spacing: 0; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li + li { margin-top: var(--e2); }
.pied a { text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied-bas { border-top: 1px solid var(--trait-nuit); padding-block: var(--e4); font-size: var(--t-xs); }
@media (min-width: 860px) { .pied-grille { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--e2);
  min-height: 48px; padding: 0 22px; border-radius: var(--r-s); border: 1.5px solid transparent;
  font: 600 var(--t-s)/1 var(--corps); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-laiton { background: var(--laiton); color: var(--encre); }
.btn-laiton:hover { background: #E6C883; }
.btn-nuit { background: var(--nuit); color: #fff; }
.btn-nuit:hover { background: var(--encre); }
.btn-contour { border-color: currentColor; background: transparent; color: inherit; }
.btn-contour:hover { background: rgba(127, 127, 127, .14); }
.btn-texte { background: none; padding: 0 4px; text-decoration: underline; color: inherit; min-height: 44px; }
.btn-large { min-height: 56px; padding: 0 30px; font-size: var(--t-m); }
.btn-bloc { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 600; padding: 4px 10px; border-radius: var(--r-pilule); border: 1px solid transparent; }
.badge::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-vente { background: var(--ok-clair); color: var(--ok); }
.b-presque { background: var(--rose-clair); color: var(--rose); }
.b-bientot { background: var(--alerte-clair); color: var(--alerte); }
.b-complet, .b-termine { background: #E6E8E3; color: #4A505A; }
.b-annule { background: var(--refus-clair); color: var(--refus); }
.b-neutre { background: transparent; border-color: var(--trait); color: var(--texte-doux); }
.b-neutre::before { display: none; }

/* ---------- Héros (accueil) ---------- */
.heros { background: var(--nuit); color: var(--nacre); position: relative; overflow: hidden; }
.heros::before { content: ""; position: absolute; inset: 0; background: var(--khatam) 0 0 / 40px 40px; opacity: .07; pointer-events: none; }
.heros-int { position: relative; display: grid; gap: var(--e6); padding-block: var(--e7) var(--e8); }
.heros-titre-ar { font-size: clamp(2rem, 6.4vw, 4.25rem); color: var(--laiton); margin: 0; }
.heros-titre-fr { font-family: var(--titre); font-size: clamp(var(--t-l), 2.6vw, var(--t-xl)); font-weight: 500; font-style: italic; line-height: 1.25; max-width: 30ch; }
.heros-faits { display: flex; flex-wrap: wrap; gap: var(--e3) var(--e6); padding: 0; margin: 0; list-style: none; font-size: var(--t-s); }
.heros-faits strong { display: block; font-size: var(--t-m); color: #fff; }
.heros-faits span { color: var(--texte-clair); }
.heros-actions { display: flex; flex-wrap: wrap; gap: var(--e3); align-items: center; }
@media (min-width: 960px) {
  .heros-int { grid-template-columns: 1.25fr .75fr; align-items: center; padding-block: var(--e8) var(--e9); }
}

/* Emplacement photo (aucun visuel inventé : à fournir par le client) */
.photo { background: repeating-linear-gradient(135deg, #2F353F 0 14px, #333A45 14px 28px); color: var(--texte-clair); display: grid; place-items: center; text-align: center; font-size: var(--t-xs); padding: var(--e4); aspect-ratio: 4 / 3; border-radius: var(--r-s); }
.photo-portrait { aspect-ratio: 3 / 4; }
.photo-large { aspect-ratio: 16 / 9; }
.photo-claire { background: repeating-linear-gradient(135deg, #E4E6E0 0 14px, #DDE0D9 14px 28px); color: var(--texte-doux); }

/* ---------- Carte événement = billet à souche ---------- */
.billets { display: grid; gap: var(--e5); }
@media (min-width: 720px) { .billets { grid-template-columns: 1fr 1fr; } }
.billet-carte { display: grid; grid-template-columns: 96px 1fr; background: var(--papier); border-radius: var(--r-m); box-shadow: var(--ombre-carte); position: relative; text-decoration: none; color: inherit; min-height: 190px; }
.billet-carte:hover .billet-titre { text-decoration: underline; text-decoration-thickness: 1px; }
.souche { background: var(--nuit); color: var(--nacre); border-radius: var(--r-m) 0 0 var(--r-m); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--e3); border-right: 2px dashed var(--nacre); }
.souche-jour { font-family: var(--titre); font-size: 2.75rem; font-weight: 600; line-height: 1; color: var(--laiton); }
.souche-mois { font-size: var(--t-s); font-weight: 600; margin-top: 4px; }
.souche-an { font-size: var(--t-xs); color: var(--texte-clair); }
/* encoches de perforation */
.billet-carte::before, .billet-carte::after { content: ""; position: absolute; left: 86px; width: 20px; height: 20px; border-radius: 50%; background: var(--fond-encoche, var(--nacre)); }
.billet-carte::before { top: -10px; }
.billet-carte::after { bottom: -10px; }
.blanc .billet-carte { --fond-encoche: var(--papier); box-shadow: 0 0 0 1px var(--trait), var(--ombre-carte); }
.blanc .souche { border-right-color: var(--papier); }
.billet-corps { padding: var(--e4) var(--e5); display: flex; flex-direction: column; gap: var(--e2); min-width: 0; }
.billet-titre { font-family: var(--titre); font-size: var(--t-l); font-weight: 600; line-height: 1.2; }
.billet-titre[lang="ar"] { font-family: var(--titre-ar); line-height: 1.5; }
.billet-bas { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--e2); padding-top: var(--e3); }
.prix-depart { font-size: var(--t-s); }
.prix-depart strong { font-size: var(--t-l); font-family: var(--titre); }
.est-ferme .souche-jour { color: var(--texte-clair); }
.est-ferme .billet-titre { color: var(--texte-doux); }

/* ---------- Filtres ---------- */
.filtres { display: grid; gap: var(--e3); background: var(--papier); padding: var(--e4); border-radius: var(--r-m); border: 1px solid var(--trait); }
@media (min-width: 860px) { .filtres { grid-template-columns: 2fr 1fr 1fr 1fr auto; align-items: end; } }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label, .champ .lbl { font-size: var(--t-s); font-weight: 600; }
.champ input, .champ select, .champ textarea {
  font: inherit; color: inherit; background: var(--papier); border: 1.5px solid #9AA0AA; border-radius: var(--r-s);
  min-height: 48px; padding: 10px 12px; width: 100%;
}
.champ textarea { min-height: 130px; resize: vertical; }
.champ input:focus-visible, .champ select:focus-visible, .champ textarea:focus-visible { outline-offset: 1px; }
.champ .aide { font-size: var(--t-xs); color: var(--texte-doux); }
.champ.erreur input { border-color: var(--refus); background: var(--refus-clair); }
.champ .msg-erreur { font-size: var(--t-xs); color: var(--refus); font-weight: 600; }
.coche { display: grid; grid-template-columns: 24px 1fr; gap: var(--e3); align-items: start; font-size: var(--t-s); }
.coche input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--nuit); }
.onglets { display: flex; gap: var(--e2); border-bottom: 1px solid var(--trait); margin-bottom: var(--e5); overflow-x: auto; }
.onglets button, .onglets a { font: 600 var(--t-s) var(--corps); background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 14px; cursor: pointer; color: var(--texte-doux); text-decoration: none; white-space: nowrap; }
.onglets [aria-selected="true"], .onglets [aria-current="page"] { color: var(--texte); border-bottom-color: var(--nuit); }

/* ---------- Fiche événement ---------- */
.fiche-tete { background: var(--nuit); color: var(--nacre); }
.fiche-tete-int { display: grid; gap: var(--e6); padding-block: var(--e7); }
@media (min-width: 960px) { .fiche-tete-int { grid-template-columns: 1.2fr .8fr; align-items: start; } }
.achat { background: var(--papier); color: var(--texte); border-radius: var(--r-m); padding: var(--e5); box-shadow: var(--ombre-flottant); }
.sombre .achat .doux, .sombre .achat p { color: var(--texte-doux); }
.achat dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: var(--e2) var(--e4); font-size: var(--t-s); }
.achat dt { color: var(--texte-doux); }
.achat dd { margin: 0; font-weight: 600; }
.tarifs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--trait); }
.tarifs li { display: flex; align-items: center; gap: var(--e3); padding: 12px 0; border-bottom: 1px solid var(--trait); }
.tarifs .prix { margin-left: auto; font-family: var(--titre); font-size: var(--t-l); font-weight: 600; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--e3); }
.points li { padding-left: 30px; background: var(--khatam) no-repeat 0 2px / 20px 20px; }
.cta-fixe { position: fixed; inset: auto 0 0 0; z-index: 30; background: var(--papier); border-top: 1px solid var(--trait); padding: 10px var(--e4) calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: var(--e3); box-shadow: 0 -10px 30px -20px rgba(20,23,28,.5); }
.cta-fixe .btn { margin-left: auto; }
@media (min-width: 960px) { .cta-fixe { display: none; } }
.avec-cta-fixe { padding-bottom: 76px; }
@media (min-width: 960px) { .avec-cta-fixe { padding-bottom: 0; } }
details.faq { border-bottom: 1px solid var(--trait); }
details.faq summary { cursor: pointer; padding: var(--e4) 0; font-weight: 600; list-style-position: outside; }
details.faq p { padding-bottom: var(--e4); color: var(--texte-doux); }

/* Marques de catégorie : couleur ET forme */
.cat { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.cat i { width: 14px; height: 14px; flex: none; display: inline-block; }
.cat-vip i { background: var(--vip); transform: rotate(45deg) scale(.85); }
.cat-silver i { background: var(--silver); border-radius: 50%; }
.cat-classic i { background: var(--classic); border-radius: 3px; }

/* Fil d'Ariane et navigation par ancres (fiche événement) */
.ariane { font-size: var(--t-xs); color: var(--texte-clair); display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 var(--e4); padding: 0; }
.ariane li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.ancres { background: var(--papier); border-bottom: 1px solid var(--trait); position: sticky; top: 68px; z-index: 20; }
.ancres ul { display: flex; gap: var(--e2); list-style: none; margin: 0; padding: 0; overflow-x: auto; }
.ancres a { display: block; padding: 14px 12px; font-size: var(--t-s); font-weight: 600; text-decoration: none; white-space: nowrap; color: var(--texte-doux); border-bottom: 3px solid transparent; }
.ancres a:hover { color: var(--texte); border-bottom-color: var(--nuit); }
.ancre-cible { scroll-margin-top: 140px; }
.pratique { display: grid; gap: var(--e4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pratique > div { border: 1px solid var(--trait); border-radius: var(--r-m); padding: var(--e4) var(--e5); background: var(--papier); }
.pratique h3 { font-family: var(--corps); font-size: var(--t-m); font-weight: 700; letter-spacing: 0; margin-bottom: 6px; }
.pratique p { font-size: var(--t-s); color: var(--texte-doux); }

/* ---------- Étapes ---------- */
.etapes { display: flex; gap: var(--e2); list-style: none; margin: 0; padding: var(--e4) 0; font-size: var(--t-xs); overflow-x: auto; counter-reset: etape; }
.etapes li { counter-increment: etape; display: flex; align-items: center; gap: 8px; color: var(--texte-doux); white-space: nowrap; }
.etapes li::before { content: counter(etape); width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-weight: 700; }
.etapes li + li::after { content: ""; order: -1; width: 22px; height: 1.5px; background: var(--trait); margin-right: 2px; }
.etapes li[aria-current="step"] { color: var(--texte); font-weight: 700; }
.etapes li[aria-current="step"]::before { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.etapes li.fait::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: #fff; }

/* ---------- Plan de salle ---------- */
.plan-page { display: grid; gap: var(--e5); padding-bottom: 150px; }
@media (min-width: 1000px) { .plan-page { grid-template-columns: 1fr 360px; align-items: start; padding-bottom: var(--e8); } }
.plan-boite { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--r-m); overflow: hidden; }
.plan-barre { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2); padding: var(--e3); border-bottom: 1px solid var(--trait); }
.plan-barre .pousse { margin-left: auto; }
.outil { width: 48px; height: 48px; border: 1.5px solid var(--trait); background: var(--papier); border-radius: var(--r-s); font: 600 1.25rem var(--corps); cursor: pointer; display: grid; place-items: center; color: var(--texte); }
.outil:hover { border-color: var(--nuit); }
.plan-vue { position: relative; background: #FAFAF8; touch-action: none; cursor: grab; height: 460px; }
@media (min-width: 700px) { .plan-vue { height: auto; aspect-ratio: 1200 / 770; max-height: 74vh; } }
.plan-vue.glisse { cursor: grabbing; }
.plan-vue svg { width: 100%; height: 100%; display: block; }
.siege { cursor: pointer; }
.siege:focus { outline: none; }
.siege:focus-visible .forme { stroke: var(--rose); stroke-width: 3.5; }
/* Sièges : l'état se lit par la taille et le tracé, pas seulement par la couleur.
   disponible = pastille pleine ; choisi = grande pastille sombre cochée ;
   retenu = anneau pointillé ; vendu = petit point gris. */
.siege .forme { stroke: transparent; stroke-width: 1.4; transition: r .1s; }
.siege[data-cat="vip"] .forme { fill: var(--vip); }
.siege[data-cat="silver"] .forme { fill: var(--silver); }
.siege[data-cat="classic"] .forme { fill: var(--classic); }
.siege:hover .forme { stroke: var(--encre); }
.siege[data-etat="selected"] .forme { fill: var(--encre); stroke: #fff; r: 7px; }
.siege .coche-s { display: none; stroke: #fff; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.siege[data-etat="selected"] .coche-s { display: block; }
.siege[data-etat="held"] .forme { fill: #fff; stroke: #70757F; stroke-dasharray: 2 1.6; }
.siege[data-etat="sold"] .forme, .siege[data-etat="blocked"] .forme { fill: #C9CCC5; r: 2.6px; }
.siege[data-etat="held"], .siege[data-etat="sold"], .siege[data-etat="blocked"] { cursor: not-allowed; }
.table { cursor: pointer; }
.table .plateau { stroke-width: 1.5; }
.table[data-cat="vip"] .plateau { fill: #F4E9CF; stroke: var(--vip); }
.table[data-cat="silver"] .plateau { fill: #E6E9ED; stroke: var(--silver); }
.table[data-cat="classic"] .plateau { fill: #DDE0F4; stroke: var(--classic); }
.table:hover .plateau, .table:focus-visible .plateau { stroke: var(--encre); stroke-width: 2.4; }
.table:focus { outline: none; }
.table[data-complet="true"] .plateau { fill: #ECEDE9; stroke: #C9CCC5; }
.table[data-complet="true"] text { fill: #8A8F99; }
.table text { font: 700 12px var(--corps); fill: var(--encre); pointer-events: none; }
.plan-zone { font: 700 15px var(--corps); fill: var(--texte-doux); }
.plan-lieu { font: 700 30px var(--corps); fill: #B9BCB5; letter-spacing: .3em; }
.plan-mur { stroke: #B9BCB5; stroke-width: 2; fill: none; }
.plan-texte { font: 600 11px var(--corps); fill: var(--texte-doux); }
.zones { display: flex; gap: 6px; flex-wrap: wrap; }
.zones button { font: 600 var(--t-xs) var(--corps); min-height: 48px; padding: 0 14px; border-radius: var(--r-s); border: 1.5px solid var(--trait); background: var(--papier); cursor: pointer; color: var(--texte); }
.zones button[aria-pressed="true"] { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.bulle { position: absolute; z-index: 5; pointer-events: none; background: var(--encre); color: #fff; font-size: var(--t-xs); padding: 8px 12px; border-radius: var(--r-s); transform: translate(-50%, calc(-100% - 14px)); white-space: nowrap; box-shadow: var(--ombre-flottant); }
.bulle strong { display: block; font-size: var(--t-s); }
.legende { display: flex; flex-wrap: wrap; gap: var(--e2) var(--e5); padding: var(--e3) var(--e4); border-top: 1px solid var(--trait); font-size: var(--t-xs); list-style: none; margin: 0; }
.legende li { display: inline-flex; align-items: center; gap: 8px; }
.leg { width: 16px; height: 16px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; font-size: 10px; line-height: 1; }
.leg-sel { background: var(--encre); color: #fff; }
.leg-held { border: 1.5px dashed #8A8F99; }
.leg-sold { background: #E3E5E0; color: #7B808A; }
.message { display: flex; gap: var(--e3); padding: var(--e3) var(--e4); border-radius: var(--r-s); font-size: var(--t-s); border-left: 4px solid; }
.message-refus { background: var(--refus-clair); border-color: var(--refus); color: #6E1712; }
.message-info { background: #E9ECF1; border-color: var(--nuit); }
.message-ok { background: var(--ok-clair); border-color: var(--ok); color: #124A2E; }
.message-alerte { background: var(--alerte-clair); border-color: var(--alerte); color: #5A3600; }

/* Panier / récapitulatif */
.recap { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--r-m); padding: var(--e5); }
@media (min-width: 1000px) { .recap-colle { position: sticky; top: 92px; } }
.recap h2 { font-size: var(--t-l); }
.lignes { list-style: none; margin: var(--e4) 0 0; padding: 0; }
.lignes li { display: grid; grid-template-columns: 1fr auto auto; gap: var(--e3); align-items: center; padding: 12px 0; border-top: 1px solid var(--trait); font-size: var(--t-s); }
#panier-lignes { max-height: 38vh; overflow-y: auto; }
.lignes .retirer { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 1.25rem; color: var(--texte-doux); border-radius: var(--r-s); }
.lignes .retirer:hover { background: var(--nacre); color: var(--refus); }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--nuit); padding-top: var(--e3); margin-top: var(--e3); font-weight: 600; }
.total strong { font-family: var(--titre); font-size: var(--t-xl); }
.sous-total { display: flex; justify-content: space-between; font-size: var(--t-s); color: var(--texte-doux); padding: 6px 0; }
.vide { text-align: center; padding: var(--e6) var(--e3); color: var(--texte-doux); font-size: var(--t-s); }
.panier-mobile { position: fixed; inset: auto 0 0 0; z-index: 30; background: var(--nuit); color: #fff; padding: 12px var(--e4) calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: var(--e3); }
.panier-mobile .btn { margin-left: auto; }
.panier-mobile strong { font-family: var(--titre); font-size: var(--t-l); display: block; line-height: 1.1; }
@media (min-width: 1000px) { .panier-mobile { display: none; } }
.minuteur { display: flex; align-items: center; gap: var(--e3); background: var(--nuit); color: #fff; border-radius: var(--r-s); padding: var(--e3) var(--e4); font-size: var(--t-s); }
.minuteur strong { font-family: var(--titre); font-size: var(--t-xl); font-variant-numeric: tabular-nums; margin-left: auto; color: var(--laiton); }
.minuteur.urgent { background: var(--rose); }
.minuteur.urgent strong { color: #fff; }

/* ---------- Commande ---------- */
.commande { display: grid; gap: var(--e5); }
@media (min-width: 1000px) { .commande { grid-template-columns: 1fr 380px; align-items: start; } }
.bloc { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--r-m); padding: var(--e5); }
.bloc h2 { font-size: var(--t-xl); margin-bottom: var(--e4); }
.form-grille { display: grid; gap: var(--e4); }
@media (min-width: 640px) { .form-grille { grid-template-columns: 1fr 1fr; } .form-grille .plein { grid-column: 1 / -1; } }
.moyens { display: flex; flex-wrap: wrap; gap: var(--e2); list-style: none; padding: 0; margin: 0; }
.moyens li { border: 1px solid var(--trait); border-radius: var(--r-s); padding: 6px 12px; font-size: var(--t-xs); font-weight: 600; background: var(--papier); }

/* ---------- Résultat ---------- */
.resultat { max-width: 760px; margin-inline: auto; }
.etat-tete { display: flex; gap: var(--e4); align-items: flex-start; }
.pastille { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 1.6rem; font-weight: 700; color: #fff; }
.pastille-ok { background: var(--ok); }
.pastille-attente { background: var(--nuit); }
.pastille-refus { background: var(--refus); }
.tourne { width: 26px; height: 26px; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: tourne 1s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.commutateur { display: flex; flex-wrap: wrap; gap: var(--e2); align-items: center; background: #fff; border: 1px dashed var(--rose); border-radius: var(--r-s); padding: var(--e2) var(--e3); font-size: var(--t-xs); margin-bottom: var(--e5); }
.commutateur button { font: 600 var(--t-xs) var(--corps); min-height: 36px; padding: 0 12px; border-radius: var(--r-pilule); border: 1px solid var(--trait); background: #fff; cursor: pointer; }
.commutateur button[aria-pressed="true"] { background: var(--rose); color: #fff; border-color: var(--rose); }

/* ---------- Billet PDF 9 × 21 cm ---------- */
.billet-defile { overflow-x: auto; padding: var(--e4) 0 var(--e5); }
.billet-pdf { width: 840px; height: 360px; display: grid; grid-template-columns: 1fr 232px; background: #fff; color: #000; box-shadow: var(--ombre-flottant); margin-inline: auto; font-size: 13px; line-height: 1.35; }
.bp-gauche { display: grid; grid-template-rows: auto 1fr auto; }
.bp-bandeau { background: var(--encre); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 10px 22px; }
.bp-bandeau .marque { font-size: 17px; }
.bp-bandeau .marque svg { width: 22px; height: 22px; }
.bp-corps { padding: 16px 22px 8px; display: grid; gap: 10px; align-content: start; }
.bp-titre { font-family: var(--titre-ar); font-size: 21px; font-weight: 700; line-height: 1.5; direction: rtl; text-align: left; }
.bp-faits { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 28px; justify-content: start; margin: 0; }
.bp-faits dt { font-size: 10.5px; color: #555; }
.bp-faits dd { margin: 0; font-weight: 700; font-size: 14px; }
.bp-place { display: flex; gap: 0; border: 1.5px solid #000; width: fit-content; }
.bp-place div { padding: 6px 16px; border-right: 1.5px solid #000; }
.bp-place div:last-child { border-right: 0; }
.bp-place span { display: block; font-size: 10.5px; color: #444; }
.bp-place strong { font-family: var(--titre); font-size: 22px; line-height: 1.1; }
.bp-pied { border-top: 1px solid #bbb; padding: 7px 22px; font-size: 9.5px; color: #333; }
.bp-droite { border-left: 2px dashed #000; padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.bp-qr { width: 168px; height: 168px; padding: 10px; background: #fff; }
.bp-ref { font-weight: 700; font-size: 14px; letter-spacing: .06em; }

/* ---------- Scan (contrôle d'entrée) ---------- */
.telephone { width: min(100%, 390px); margin-inline: auto; background: var(--encre); color: #fff; border-radius: 28px; overflow: hidden; box-shadow: var(--ombre-flottant); display: flex; flex-direction: column; min-height: 740px; }
.scan-tete { padding: var(--e4); border-bottom: 1px solid var(--trait-nuit); font-size: var(--t-s); }
.scan-tete strong { display: block; font-size: var(--t-m); }
.scan-zone { flex: 1; display: grid; place-items: center; padding: var(--e5); text-align: center; transition: background-color .15s; }
.viseur { width: 230px; height: 230px; border-radius: 18px; background: repeating-linear-gradient(135deg, #2A2F38 0 14px, #2E343E 14px 28px); position: relative; margin: 0 auto var(--e4); }
.viseur::before { content: ""; position: absolute; inset: 14px; border: 3px solid var(--laiton); border-radius: 10px; clip-path: polygon(0 0, 30% 0, 30% 100%, 0 100%, 0 0, 70% 0, 100% 0, 100% 100%, 70% 100%, 70% 0); }
.scan-icone { font-size: 5.5rem; line-height: 1; font-weight: 700; }
.scan-verdict { font-family: var(--corps); font-size: 2rem; font-weight: 700; line-height: 1.15; margin: var(--e3) 0; letter-spacing: 0; }
.scan-detail { font-size: var(--t-m); color: #fff; margin-inline: auto; }
.scan-zone[data-etat="valide"] { background: var(--ok); }
.scan-zone[data-etat="utilise"], .scan-zone[data-etat="invalide"], .scan-zone[data-etat="inconnu"] { background: var(--refus); }
.scan-zone[data-etat="seance"] { background: #8A5200; }
.scan-zone[data-etat="reseau"] { background: #4A505A; }
.scan-pied { padding: var(--e4); display: grid; gap: var(--e3); border-top: 1px solid var(--trait-nuit); }
.scan-compte { display: flex; justify-content: space-between; font-size: var(--t-s); color: var(--texte-clair); }

/* ---------- Back-office ---------- */
.admin { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; background: #EEF0EC; }
@media (min-width: 960px) { .admin { grid-template-columns: 240px 1fr; } }
.admin-nav { background: var(--nuit); color: var(--nacre); padding: var(--e4); }
.admin-nav ul { list-style: none; margin: var(--e5) 0 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; }
@media (min-width: 960px) { .admin-nav ul { flex-direction: column; } .admin-nav { position: sticky; top: 0; height: 100vh; } }
.admin-nav a { display: block; padding: 10px 12px; border-radius: var(--r-s); text-decoration: none; font-size: var(--t-s); white-space: nowrap; }
.admin-nav a:hover { background: var(--nuit-2); }
.admin-nav a[aria-current="page"] { background: var(--laiton); color: var(--encre); font-weight: 600; }
.admin-main { padding: var(--e5) var(--e4) var(--e8); min-width: 0; }
@media (min-width: 960px) { .admin-main { padding: var(--e6) var(--e7) var(--e8); } }
.admin-main h1 { font-size: var(--t-2xl); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--e4); }
.kpi { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--r-m); padding: var(--e4) var(--e5); }
.kpi dt { font-size: var(--t-s); color: var(--texte-doux); }
.kpi dd { margin: 4px 0 0; font-family: var(--titre); font-size: var(--t-2xl); font-weight: 600; line-height: 1.1; }
.kpi small { display: block; font-family: var(--corps); font-size: var(--t-xs); color: var(--texte-doux); font-weight: 400; margin-top: 6px; }
.kpi-alerte { border-color: var(--rose); background: var(--rose-clair); }
.jauge { height: 10px; background: #E3E5E0; border-radius: var(--r-pilule); overflow: hidden; display: flex; }
.jauge i { display: block; height: 100%; }
.table-boite { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--r-m); overflow-x: auto; }
table.donnees { border-collapse: collapse; width: 100%; font-size: var(--t-s); min-width: 760px; }
.donnees th { text-align: left; font-weight: 600; color: var(--texte-doux); font-size: var(--t-xs); padding: 12px 16px; border-bottom: 1px solid var(--trait); background: #FAFAF8; white-space: nowrap; }
.donnees td { padding: 12px 16px; border-bottom: 1px solid var(--trait); vertical-align: middle; }
.donnees tr:last-child td { border-bottom: 0; }
.donnees .num { text-align: right; font-variant-numeric: tabular-nums; }
.donnees a { font-weight: 600; }

/* ---------- Sommaire maquette / design system ---------- */
.nuancier { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--e3); }
.nuance { border: 1px solid var(--trait); border-radius: var(--r-s); overflow: hidden; background: #fff; font-size: var(--t-xs); }
.nuance i { display: block; height: 72px; }
.nuance div { padding: 8px 10px; }
.nuance strong { display: block; font-size: var(--t-s); }
.ecrans { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--e4); list-style: none; padding: 0; margin: 0; }
.ecrans a { display: block; height: 100%; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--r-m); padding: var(--e4) var(--e5); text-decoration: none; }
.ecrans a:hover { border-color: var(--nuit); }
.ecrans strong { display: block; font-family: var(--titre); font-size: var(--t-l); }
.ecrans span { font-size: var(--t-s); color: var(--texte-doux); }
.specimen { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--r-m); padding: var(--e5); }
.rangee { display: flex; flex-wrap: wrap; gap: var(--e3); align-items: center; }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--e4); }
.logo-partenaire { position: relative; aspect-ratio: 3 / 2; background: #fff; border-radius: var(--r-m); overflow: hidden; }
.logo-partenaire img { position: absolute; inset: var(--e3); width: calc(100% - 2 * var(--e3)); height: calc(100% - 2 * var(--e3)); object-fit: contain; }
.logo-partenaire-plein img { inset: 0; width: 100%; height: 100%; object-fit: contain; transform: scale(1.25); }
.logo-vide { border: 1px dashed #9AA0AA; border-radius: var(--r-s); aspect-ratio: 3 / 2; display: grid; place-items: center; font-size: var(--t-xs); color: var(--texte-doux); text-align: center; padding: var(--e3); }
.frise-temps { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--laiton); }
.frise-temps li { padding: 0 0 var(--e5) var(--e5); position: relative; }
.frise-temps li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; background: var(--laiton); transform: rotate(45deg); }

/* =====================================================================
   Téléphone
   ===================================================================== */

/* ---------- Choix des places : salle > zone > table ---------- */
@media (max-width: 699px) { #onglets-mode, #mode-plan, #mode-liste { display: none !important; } }
@media (min-width: 700px) { #mode-mobile { display: none; } }
#m-rapide .bloc { border: 2px solid var(--nuit); }
/* Carte compacte : le plan de la salle doit rester visible sans trop faire défiler. */
#m-rapide .bloc > p.doux { display: none; }
#m-rapide .form-grille { grid-template-columns: 1.8fr 1fr; gap: var(--e3); align-items: end; }
#m-rapide .champ select { padding-inline: 8px; }
#m-rapide h3 { font-size: var(--t-m); }
@media (max-width: 699px) { .page-places .whatsapp { display: none; } } /* il masquerait les boutons de sièges */
.m-plan { border: 2px solid #B9BCB5; border-radius: var(--r-m); padding: 0 8px 8px; background: #FAFAF8; }
.m-scene { width: 44%; margin: 0 auto 10px; background: var(--nuit); color: #fff; text-align: center; padding: 8px 4px; border-radius: 0 0 8px 8px; font-weight: 700; font-size: var(--t-s); letter-spacing: .12em; }
.m-zones { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; align-items: start; }
.m-zone-btn { min-height: 168px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 6px 2px; border: 2px solid var(--cat); background: var(--cat-fond); color: var(--encre); border-radius: 8px; font: 600 var(--t-xs)/1.2 var(--corps); cursor: pointer; }
.m-zone-btn strong { font-size: var(--t-s); }
.m-zone-btn .m-libres { font-weight: 400; text-align: center; }
.m-zone-btn .m-libres b { display: block; font: 700 var(--t-l)/1.1 var(--titre); }
.m-zone-btn[data-cat="vip"] { min-height: 118px; }
[data-cat="vip"] { --cat: var(--vip); --cat-fond: #F4E9CF; --cat-texte: var(--encre); }
[data-cat="silver"] { --cat: var(--silver); --cat-fond: #E6E9ED; --cat-texte: var(--encre); }
[data-cat="classic"] { --cat: var(--classic); --cat-fond: #DDE0F4; --cat-texte: #fff; }
.m-bas { display: grid; grid-template-columns: 2.6fr .9fr 1.8fr; gap: 6px; margin-top: 10px; }
.m-bas span { border: 1.5px solid #D2D5CE; border-radius: 6px; padding: 8px 2px; text-align: center; font-size: var(--t-xs); color: var(--texte-doux); }
.m-tables { display: flex; justify-content: center; gap: 8px; }
.m-col { flex: 1; max-width: 120px; display: flex; flex-direction: column; gap: 8px; }
.m-table { min-height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px; border: 2px solid var(--cat); background: var(--cat-fond); color: var(--encre); border-radius: 22px; font: 400 var(--t-xs)/1.15 var(--corps); cursor: pointer; }
.m-table[data-forme="rect"] { border-radius: 6px; }
.m-table strong { font: 700 var(--t-l)/1 var(--titre); }
.m-table[data-complet="true"] { background: #ECEDE9; border-color: #C9CCC5; color: #6A707A; }
.m-table[data-choisie="true"] { background: var(--encre); border-color: var(--encre); color: #fff; }
.m-avancee { flex: none; width: 30px; background: var(--nuit); border-radius: 0 0 6px 6px; display: grid; place-items: center; }
.m-avancee span { color: #fff; font-size: var(--t-xs); font-weight: 700; letter-spacing: .12em; writing-mode: vertical-rl; }

/* ---------- Panneaux qui montent du bas ---------- */
.voile { position: fixed; inset: 0; z-index: 55; background: rgba(20, 23, 28, .58); }
.feuille-ouverte { overflow: hidden; }
.feuille { position: fixed; inset: auto 0 0 0; z-index: 60; max-height: 92vh; overflow-y: auto; background: var(--papier); border-radius: 20px 20px 0 0; padding: var(--e4) var(--e4) calc(var(--e4) + env(safe-area-inset-bottom)); box-shadow: 0 -18px 44px -16px rgba(20, 23, 28, .6); display: grid; gap: var(--e3); max-width: 520px; margin-inline: auto; }
.feuille h2 { font-size: var(--t-xl); padding-right: 52px; }
.feuille h2:focus { outline: none; }
.feuille-fermer { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--nacre); color: var(--texte); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.ft-schema { position: relative; margin: 4px auto; width: 300px; height: 296px; }
.ft-schema[data-forme="rect"] { height: 176px; }
.ft-plateau { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: var(--cat-fond); border: 2px solid var(--cat); font: 700 var(--t-2xl) var(--titre); }
.ft-schema[data-forme="rect"] .ft-plateau { left: calc(50% + 20px); width: 232px; height: 64px; border-radius: 8px; }
.ft-siege, .ft-ex { border-radius: 50%; border: 2px solid transparent; background: var(--cat); color: var(--cat-texte); font: 700 var(--t-s) var(--corps); display: inline-grid; place-items: center; }
.ft-siege { position: absolute; width: 46px; height: 46px; transform: translate(-50%, -50%); cursor: pointer; padding: 0; }
.ft-schema[data-forme="rect"] .ft-siege { width: 42px; height: 42px; }
.ft-siege[data-etat="selected"], .ft-ex[data-etat="selected"] { background: var(--encre); color: #fff; box-shadow: 0 0 0 3px var(--laiton); }
.ft-siege[data-etat="held"], .ft-ex[data-etat="held"] { background: #fff; border: 2px dashed #70757F; color: #70757F; }
.ft-siege[data-etat="sold"], .ft-ex[data-etat="sold"], .ft-siege[data-etat="blocked"] { background: #E3E5E0; color: #7B808A; }
.ft-legende { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px var(--e4); list-style: none; margin: 0; padding: 0; font-size: var(--t-xs); }
.ft-legende li { display: inline-flex; align-items: center; gap: 6px; }
.ft-ex { width: 22px; height: 22px; font-size: 12px; }
.ft-ex[data-etat="selected"] { box-shadow: 0 0 0 2px var(--laiton); }

/* Sur ordinateur et tablette, la table s'ouvre en fenêtre centrée, agrandie, au lieu d'un panneau du bas. */
@media (min-width: 700px) {
  #feuille-table { inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(92vw, 620px); max-width: none; max-height: 94vh; margin: 0; border-radius: 18px; padding: var(--e5); gap: var(--e4); }
  #feuille-table .ft-schema { zoom: 1.45; }
  #feuille-table .feuille-fermer { top: 16px; right: 16px; }
}

/* Panier : barre du bas + panneau (téléphone et tablette) */
.panier-resume { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; display: flex; flex-direction: column; min-height: 48px; justify-content: center; cursor: pointer; }
.panier-voir { font-size: var(--t-xs); color: var(--laiton); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 999px) {
  #feuille-panier { display: none; }
  #feuille-panier.ouvert { display: block; position: fixed; inset: auto 0 0 0; z-index: 60; max-height: 88vh; overflow-y: auto; border: 0; border-radius: 20px 20px 0 0; padding-bottom: calc(var(--e5) + env(safe-area-inset-bottom)); box-shadow: 0 -18px 44px -16px rgba(20, 23, 28, .6); }
  #feuille-panier h2:focus { outline: none; }
}
@media (min-width: 1000px) { #feuille-panier .feuille-fermer { display: none; } }

/* ---------- Étapes de commande compactes ---------- */
.etape-compacte { display: none; }
@media (max-width: 699px) {
  .etapes { display: none; }
  .etape-compacte { display: block; padding: var(--e4) 0 var(--e3); font-size: var(--t-s); max-width: none; }
  .etape-compacte span { color: var(--texte-doux); }
  .etape-barre { display: block; height: 5px; background: var(--trait); border-radius: var(--r-pilule); margin-top: 8px; overflow: hidden; }
  .etape-barre i { display: block; height: 100%; background: var(--nuit); border-radius: var(--r-pilule); }
}

/* ---------- Formulaires au doigt ---------- */
@media (max-width: 699px) {
  .bande { padding-block: var(--e7); }
  .bloc, .recap { padding: var(--e4); }
  .form-grille { gap: var(--e5); }
  .champ input, .champ select { min-height: 54px; font-size: 1.0625rem; } /* 17 px : pas de zoom automatique sur iOS */
  .champ label, .champ .lbl { font-size: var(--t-m); }
  .coche { grid-template-columns: 28px 1fr; padding-block: 6px; }
  .coche input { width: 26px; height: 26px; }
  .commande .minuteur { position: sticky; top: 76px; z-index: 15; box-shadow: var(--ombre-carte); }
  .commande .recap-colle { order: -1; }
}

/* ---------- Filtres repliés (liste des événements) ---------- */
.filtre-bascule { display: none; }
@media (max-width: 859px) {
  .filtres { grid-template-columns: 1fr 1fr; }
  .filtres .champ { grid-column: 1 / -1; }
  .filtres .filtre-plus { display: none; }
  .filtres.ouvert .filtre-plus { display: flex; }
  .filtre-bascule { display: inline-flex; }
}

/* ---------- Billet sur téléphone ---------- */
.billet-mobile { width: min(100%, 360px); margin-inline: auto; background: #fff; color: #000; border-radius: 20px; overflow: hidden; box-shadow: var(--ombre-flottant); }
.bm-tete { background: var(--encre); color: #fff; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: var(--e3); font-size: var(--t-xs); }
.bm-tete .marque { font-size: 1.0625rem; }
.bm-tete .marque svg { width: 22px; height: 22px; }
.bm-corps { padding: 18px; display: grid; gap: 12px; }
.bm-titre { font: 700 1.25rem/1.5 var(--titre-ar); direction: rtl; }
.bm-faits { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.bm-faits .plein { grid-column: 1 / -1; }
.bm-faits dt { font-size: var(--t-xs); color: #555; }
.bm-faits dd { margin: 0; font-weight: 700; }
.bm-place { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid #000; border-radius: 8px; text-align: center; }
.bm-place div { padding: 8px 4px; border-right: 2px solid #000; }
.bm-place div:last-child { border-right: 0; }
.bm-place span { display: block; font-size: var(--t-xs); color: #444; }
.bm-place strong { font: 700 1.5rem/1.1 var(--titre); }
.bm-coupe { border-top: 2px dashed #000; position: relative; }
.bm-coupe::before, .bm-coupe::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--nacre); }
.bm-coupe::before { left: -10px; }
.bm-coupe::after { right: -10px; }
.bm-qr { padding: 18px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.bm-qr .bp-qr { width: min(100%, 250px); height: auto; aspect-ratio: 1; }

/* ---------- Galerie : carrousel de photos ----------
   Défilement natif avec accroche (doigt, molette, flèches du clavier) ; les boutons ne font que l'aider. */
.carrousel { position: relative; }
.carrousel-piste { display: flex; gap: var(--e3); list-style: none; margin: 0; padding: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-radius: var(--r-m); }
.carrousel-piste::-webkit-scrollbar { display: none; }
.carrousel-vue { flex: 0 0 100%; scroll-snap-align: start; }
.carrousel-vue figure { margin: 0; }
.carrousel-vue img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-m); background: var(--nuit-2); }
.carrousel-vue figcaption { font-size: var(--t-s); color: var(--texte-clair); padding-top: var(--e2); }
.carrousel-vue figcaption span { opacity: .75; margin-left: 6px; }
@media (min-width: 900px) { .carrousel-vue { flex-basis: 72%; } }
.carrousel-commandes { display: flex; align-items: center; justify-content: center; gap: var(--e4); margin-top: var(--e4); }
.carrousel-btn { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--trait-nuit); background: none; color: inherit; font-size: 1.75rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 4px; }
.carrousel-btn:hover:not(:disabled) { border-color: var(--laiton); color: var(--laiton); }
.carrousel-btn:disabled { opacity: .35; cursor: default; }
.carrousel-compteur { font-variant-numeric: tabular-nums; min-width: 64px; text-align: center; font-size: var(--t-s); }

/* ---------- Galerie : vidéos chargées au clic ---------- */
.videos { display: grid; gap: var(--e5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.video-lire { width: 100%; aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--e3); text-align: center; padding: var(--e4); border: 1.5px solid var(--trait-nuit); border-radius: var(--r-m); background: repeating-linear-gradient(135deg, #2F353F 0 14px, #333A45 14px 28px); color: var(--nacre); font: 400 var(--t-s)/1.4 var(--corps); cursor: pointer; }
.video-lire:hover { border-color: var(--laiton); }
.video-lire strong { font-size: var(--t-m); }
.video-icone { width: 68px; height: 68px; border-radius: 50%; background: var(--laiton); color: var(--encre); display: grid; place-items: center; font-size: 1.5rem; padding-left: 5px; }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-m); background: #000; }
.video p { margin-top: var(--e2); }
/* Vidéo de la section « depuis douze ans » : lecture automatique (muette, comme l'imposent les navigateurs). */
/* Deux vidéos verticales côte à côte, la première plus haute, centrées l'une par rapport à l'autre. */
.grille-2 > .pile { min-width: 0; }
.videos-duo { display: flex; align-items: center; justify-content: center; gap: var(--e4); }
.video-vertical { display: block; flex: 1 1 0; min-width: 0; max-width: 240px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r-m); background: #000; }
.video-vertical-grande { flex-grow: 1.3; max-width: 300px; }
.video-accueil { display: block; width: auto; max-width: 100%; height: auto; max-height: 80vh; margin-inline: auto; border-radius: var(--r-m); background: #000; }

/* ---------- Back-office : plan de salle de l'écran Sièges ----------
   Chaque état a sa couleur ET son signe : plein = en vente, point clair = vendu,
   anneau pointillé = retenu, croix = bloqué, anneau épais = coché. */
.plan-admin { display: grid; gap: var(--e5); align-items: start; }
@media (min-width: 1280px) { .plan-admin { grid-template-columns: minmax(0, 1fr) 330px; } .plan-admin-panneau { position: sticky; top: var(--e5); } }
.plan-admin .plan-vue { height: auto; aspect-ratio: 1200 / 770; max-height: 78vh; min-height: 320px; }
.siege-admin { cursor: pointer; }
.siege-admin:focus { outline: none; }
.siege-admin .forme { stroke: transparent; stroke-width: 1.4; }
.siege-admin:hover .forme, .siege-admin:focus-visible .forme { stroke: var(--encre); stroke-width: 2; }
.siege-admin[data-etat="sold"] .forme { fill: #4A505A; }
.siege-admin[data-etat="held"] .forme { fill: #fff; stroke: #70757F; stroke-dasharray: 2 1.6; }
.siege-admin[data-etat="blocked"] .forme { fill: var(--rose); }
.siege-admin[data-etat="disabled"] .forme { fill: #E3E5E0; }
.siege-admin .marque { stroke: #fff; stroke-width: 1.5; stroke-linecap: round; pointer-events: none; }
.siege-admin .marque-pleine { fill: #C9CDD4; pointer-events: none; }
.siege-admin[aria-disabled="true"] { cursor: not-allowed; }
.siege-admin.choisi .forme { stroke: var(--encre); stroke-width: 3; r: 7px; paint-order: stroke; }
/* Tableau de bord : plan en consultation seule, sur toute la largeur, et sièges qui viennent de changer. */
.plan-admin.plan-admin-lecture { grid-template-columns: minmax(0, 1fr); }
.plan-admin-lecture .siege-admin, .plan-admin-lecture .table { cursor: default; }
.plan-admin-lecture .plan-vue { max-height: 70vh; }
.siege-admin.siege-change .forme { animation: siege-change 1.2s ease-in-out 5; }
@keyframes siege-change { 0%, 100% { stroke: transparent; stroke-width: 1.4; } 50% { stroke: var(--laiton); stroke-width: 5; } }
.leg-admin-vendu { background: #4A505A; }
.leg-admin-bloque { background: var(--rose); color: #fff; font-weight: 700; }
.leg-admin-coche { background: #fff; border: 3px solid var(--encre); }

/* ---------- Back-office : tableau de bord en direct ---------- */
.direct { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e3); font-size: var(--t-s); color: var(--texte-doux); }
.direct-point { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: none; animation: battement 2s ease-in-out infinite; }
.direct[data-etat="pause"] .direct-point { background: #9AA0AA; animation: none; }
.direct[data-etat="erreur"] .direct-point, .direct[data-etat="arret"] .direct-point { background: var(--refus); animation: none; }
.direct[data-etat="erreur"], .direct[data-etat="arret"] { color: var(--refus); font-weight: 600; }
@keyframes battement { 0%, 100% { box-shadow: 0 0 0 0 rgba(31, 122, 77, .45); } 50% { box-shadow: 0 0 0 7px rgba(31, 122, 77, 0); } }
/* Ce qui vient de changer est surligné, puis revient doucement à la normale. */
.vient-de-changer { animation: surlignage 3.5s ease-out 1; }
.kpi.vient-de-changer { animation-name: surlignage-carte; }
@keyframes surlignage { 0%, 25% { background-color: #FBEFD0; } 100% { background-color: transparent; } }
@keyframes surlignage-carte { 0%, 25% { background-color: #FBEFD0; border-color: var(--laiton); box-shadow: 0 0 0 3px rgba(217, 182, 106, .45); } 100% { background-color: var(--papier); border-color: var(--trait); box-shadow: none; } }

/* ---------- Back-office : éditeur de plan de salle ---------- */
.editeur { display: grid; gap: var(--e5); align-items: start; }
@media (min-width: 1280px) { .editeur { grid-template-columns: minmax(0, 1fr) 340px; } .editeur-panneau { position: sticky; top: var(--e4); max-height: calc(100vh - 2 * var(--e4)); overflow-y: auto; } }
.editeur-vue { height: auto; aspect-ratio: 1200 / 770; cursor: default; touch-action: none; background: #FAFAF8; }
.editeur-vue:focus-visible { outline: 3px solid var(--rose); outline-offset: -3px; }
.editeur-vue svg { width: 100%; height: 100%; display: block; }
.editeur[data-editable="1"] .ed-objet { cursor: move; }
.ed-objet .plateau { fill: #fff; stroke-width: 1.8; }
.ed-objet.choisi .plateau { stroke: var(--encre) !important; stroke-width: 3.5; fill: #FBEFD0; }
.ed-objet.choisi > path { stroke: var(--laiton); stroke-width: 4; }
text.ed-objet.choisi { fill: var(--rose); text-decoration: underline; }
.editeur .plan-lieu { font-size: 26px; }

/* Back-office : vignettes de la galerie */
.galerie-admin { display: grid; gap: var(--e4); grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.galerie-admin-carte { border: 1px solid var(--trait); border-radius: var(--r-m); padding: var(--e3); margin: 0; display: grid; gap: var(--e3); min-width: 0; }
.galerie-admin-carte img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-s); background: var(--nacre); }
