/* =====================================================================
   Pamoja — Ensemble, faisons événement.
   Police : Instrument Sans (resserrée pour les titres, normale pour le texte)
   ===================================================================== */
:root {
  --royal: #1f4fd1;
  --royal-600: #1a42b3;
  --royal-50: #eef3ff;
  --night: #0e2a6b;
  --night-2: #0a1f52;
  --mint: #c9f5a8;
  --mint-600: #a6e67d;
  --mint-ink: #2f6b14;
  --bg: #f3f5fa;
  --surface: #ffffff;
  --ink: #0f1b3d;
  --ink-2: #47526f;
  --muted: #7d869d;
  --line: #e3e8f2;
  --line-2: #eef1f7;
  --wa: #25d366;
  --warn: #9a5b00;  --warn-soft: #fff3dc;
  --danger: #c0262d; --danger-soft: #fdecec;
  --info: #1f4fd1;  --info-soft: #eaf0ff;
  --ok: #1e7a3c;    --ok-soft: #e4f7d8;

  --r-xl: 28px; --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 61, .05);
  --shadow: 0 1px 2px rgba(15, 27, 61, .04), 0 12px 32px -18px rgba(15, 27, 61, .22);
  --shadow-lg: 0 2px 4px rgba(15, 27, 61, .04), 0 24px 48px -20px rgba(15, 27, 61, .3);

  --sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --tight: 87.5%;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--royal); }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 600; font-stretch: var(--tight); letter-spacing: -.015em; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--mint-600); outline-offset: 2px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marque ---------- */
.brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand-name { font-size: 23px; font-weight: 700; font-stretch: var(--tight); letter-spacing: -.015em; }

/* ---------- Bannière (encart photo arrondi) ---------- */
.masthead {
  position: relative; overflow: hidden; color: #fff; background: var(--night);
  margin: 12px 12px 0; border-radius: var(--r-xl); min-height: 540px;
  display: flex; flex-direction: column;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  opacity: 0; transform: scale(1.06); transition: opacity 1.8s ease, transform 9s ease-out;
}
.hero-slides img.on { opacity: 1; transform: scale(1); }
.hero-veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(95deg, rgba(10, 31, 82, .92) 0%, rgba(14, 42, 107, .72) 42%, rgba(31, 79, 209, .28) 78%, rgba(31, 79, 209, .12) 100%),
    linear-gradient(to top, rgba(10, 31, 82, .55), transparent 45%);
}

.topbar {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 14px; padding: 8px 8px 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a { color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; padding: 9px 14px; border-radius: 999px; transition: background .15s; }
.topnav a:hover { background: rgba(255, 255, 255, .14); }
.topnav a.cta { background: var(--mint); color: var(--night); font-weight: 600; }
.topnav a.cta:hover { background: var(--mint-600); }

.mast-inner { position: relative; z-index: 1; width: 100%; max-width: 1240px; margin: auto auto 0; padding: 40px 36px 56px; }
.slogan { font-size: clamp(40px, 6.4vw, 76px); font-weight: 600; line-height: 1.04; letter-spacing: -.018em; max-width: 12ch; animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.slogan .hl {
  color: var(--night); background: var(--mint); padding: 0 .16em .04em; border-radius: .18em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone; white-space: nowrap;
}
.mast-sub { margin: 18px 0 0; max-width: 520px; font-size: 16.5px; line-height: 1.6; color: rgba(255, 255, 255, .86); animation: rise .8s .1s cubic-bezier(.2, .7, .2, 1) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; animation: rise .8s .18s cubic-bezier(.2, .7, .2, 1) both; }

/* Bannière réduite (pages événement, ticket, Mon ticket) */
.masthead.compact { min-height: 0; }
.masthead.compact .mast-inner { display: none; }
.masthead.compact .topbar { margin: 12px; }
.masthead.compact .hero-veil { background: linear-gradient(95deg, rgba(10, 31, 82, .9), rgba(31, 79, 209, .55)); }

/* ---------- Grille principale (croquis : pub | événements | pub) ---------- */
.layout {
  max-width: 1240px; margin: 0 auto; padding: 36px 24px 0;
  display: grid; grid-template-columns: 200px minmax(0, 1fr) 200px; gap: 28px; align-items: start;
}
.layout.layout-ads { padding-top: 0; }
.rail { position: sticky; top: 24px; }
.spots-inline { display: none; }
@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
  .rail { display: none; }
  .spots-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
}
@media (max-width: 560px) { .spots-inline { grid-template-columns: 1fr; } }

/* En-têtes de section */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.section-head h2 { font-size: 28px; color: var(--ink); }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.page-head { margin: 4px 0 18px; }
.page-head h1 { font-size: 34px; color: var(--ink); }
.page-head p { margin: 6px 0 0; color: var(--ink-2); max-width: 560px; }

/* ---------- Cartes événement ---------- */
.ev-card {
  position: relative; display: grid; grid-template-columns: 210px minmax(0, 1fr) 110px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow); padding: 12px; transition: box-shadow .25s ease, transform .25s ease;
}
.ev-card + .ev-card { margin-top: 16px; }
.ev-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.ev-card.featured { border-color: var(--mint-600); box-shadow: 0 0 0 3px rgba(201, 245, 168, .7), var(--shadow); }
.ev-visual { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--night); }
.ev-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ev-card:hover .ev-visual img { transform: scale(1.04); }
.ev-body { padding: 8px 22px; min-width: 0; display: flex; flex-direction: column; }
.ev-when { color: var(--royal); font-size: 13px; font-weight: 600; }
.ev-title { margin-top: 4px; font-size: 22px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.ev-title a { color: inherit; text-decoration: none; }
.ev-title a:hover { color: var(--royal); }
.ev-place { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.ev-desc { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-foot { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ev-price { margin-right: auto; font-size: 17px; font-weight: 600; font-stretch: var(--tight); color: var(--ink); }

/* Bloc date « calendrier » */
.ev-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  border-left: 1px solid var(--line); color: var(--royal); padding: 4px 0 4px 10px;
}
.ev-date .mo { font-size: 14px; font-weight: 500; color: var(--ink-2); text-transform: capitalize; }
.ev-date .d { font-size: 52px; font-weight: 600; font-stretch: 75%; line-height: .95; letter-spacing: -.03em; margin: 2px 0 4px; }
.ev-date .y { font-size: 13px; font-weight: 500; color: var(--muted); }
.ev-date .tbd { font-size: 13px; font-weight: 500; color: var(--muted); }

@media (max-width: 700px) {
  .ev-card { grid-template-columns: 1fr; padding: 10px; border-radius: 24px; }
  .ev-visual { aspect-ratio: 16 / 10; border-radius: 18px; }
  .ev-body { padding: 14px 6px 4px; }
  .ev-card .ev-date {
    position: absolute; top: 20px; left: 20px; border: 0; padding: 7px 0 6px; width: 58px;
    background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-radius: 14px; box-shadow: var(--shadow-sm);
  }
  .ev-card .ev-date .mo { font-size: 11px; }
  .ev-card .ev-date .d { font-size: 27px; margin: 1px 0 2px; }
  .ev-card .ev-date .y { font-size: 10.5px; }
  .ev-card .ev-date .tbd { font-size: 10.5px; line-height: 1.25; padding: 2px 5px; }
}

/* Grand format (page événement / ticket) */
.ev-hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); overflow: hidden; }
.ev-hero .cover { position: relative; aspect-ratio: 16 / 7; background: var(--night); }
.ev-hero .cover.slim { aspect-ratio: 16 / 4.5; }
.ev-hero .cover img.photo { width: 100%; height: 100%; object-fit: cover; }
.ev-hero .inner { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 0; padding: 22px 24px 24px; }
.ev-hero h1 { margin-top: 4px; font-size: 32px; color: var(--ink); line-height: 1.12; }
.ev-hero .desc { margin: 12px 0 0; color: var(--ink-2); white-space: pre-line; }
.ev-hero .price-tag { display: inline-block; margin-top: 16px; background: var(--mint); color: var(--night); font-weight: 600; font-size: 16px; padding: 6px 16px; border-radius: 999px; }
@media (max-width: 600px) {
  .ev-hero .cover { aspect-ratio: 16 / 9; }
  .ev-hero .cover.slim { aspect-ratio: 16 / 6.5; }
  .ev-hero .inner { grid-template-columns: 1fr; padding: 16px 18px 18px; }
  .ev-hero h1 { font-size: 24px; }
  .ev-hero .ev-date { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 6px; border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; margin-top: 14px; }
  .ev-hero .ev-date .d { order: -1; font-size: 26px; margin: 0; }
  .ev-hero .ev-date .mo, .ev-hero .ev-date .y { font-size: 14px; }
}

/* ---------- Carrousel ---------- */
.carousel-wrap { max-width: 1240px; margin: 48px auto 0; padding: 0 24px; }
.carousel { position: relative; }
.c-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.c-track::-webkit-scrollbar { display: none; }
@media (max-width: 900px) { .c-track { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (max-width: 560px) { .c-track { grid-auto-columns: 84%; gap: 12px; } }
.c-item { position: relative; scroll-snap-align: start; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; color: #fff; text-decoration: none; background: var(--night); }
.c-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.c-item:hover img { transform: scale(1.04); }
.c-item .cap { position: absolute; inset: auto 0 0 0; padding: 60px 18px 16px; background: linear-gradient(to top, rgba(10, 31, 82, .92) 10%, rgba(10, 31, 82, .4) 60%, transparent); }
.c-item .cap b { display: block; font-size: 16px; font-weight: 600; line-height: 1.25; }
.c-item .cap small { display: block; margin-top: 3px; font-size: 12.5px; opacity: .85; }
.c-item .kind { position: absolute; top: 12px; left: 12px; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--mint); color: var(--night); }
.c-item .kind.pub { background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.c-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 20px; cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; }
.c-nav.prev { left: -12px; } .c-nav.next { right: -12px; }
@media (max-width: 560px) { .c-nav { display: none; } }
.c-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.c-dots button { width: 7px; height: 7px; border-radius: 4px; border: 0; padding: 0; background: #ccd4e6; cursor: pointer; transition: width .25s, background .25s; }
.c-dots button.on { width: 22px; background: var(--royal); }

/* ---------- Espaces publicitaires ---------- */
.spot-tall { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1 / 2.25; background: var(--night); box-shadow: var(--shadow); }
.spots-inline .spot-tall { aspect-ratio: 16 / 8; }
.spot-slide { position: absolute; inset: 0; display: block; opacity: 0; color: #fff; text-decoration: none; transition: opacity .8s ease; }
.spot-slide.on { opacity: 1; z-index: 1; }
.spot-slide img { width: 100%; height: 100%; object-fit: cover; }
.spot-slide .cap { position: absolute; inset: auto 0 0 0; padding: 50px 14px 14px; background: linear-gradient(to top, rgba(10, 31, 82, .9), transparent); }
.spot-slide .cap b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.spot-slide .cap small { display: block; font-size: 12px; opacity: .85; margin-top: 2px; }
.spot-tag { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .85); color: var(--night); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.spot-empty { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; overflow: hidden; color: #fff; text-decoration: none; background: var(--night); }
.spot-empty .spot-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; mix-blend-mode: luminosity; }
.spot-empty::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31, 79, 209, .2) 0%, rgba(14, 42, 107, .94) 75%); }
.spot-empty > :not(.spot-bg) { position: relative; }
.spot-empty .big { font-size: 20px; font-weight: 600; font-stretch: var(--tight); line-height: 1.15; letter-spacing: -.01em; }
.spot-empty .big em { font-style: normal; background: var(--mint); color: var(--night); padding: 0 5px; border-radius: 6px; }
.spot-empty p { margin: 8px 0 0; font-size: 12.5px; opacity: .85; }
@media (max-width: 1100px) {
  .spots-inline .spot-tall:has(.spot-empty) ~ .spot-tall:has(.spot-empty) { display: none; }
  .spots-inline:has(.spot-tall:first-child .spot-empty):has(.spot-tall:last-child .spot-empty) { grid-template-columns: 1fr; }
  .spots-inline:has(.spot-tall:first-child .spot-empty):has(.spot-tall:last-child .spot-empty) .spot-tall { aspect-ratio: 16 / 6; }
}

/* ---------- Pied de page ---------- */
.site-foot { margin: 56px 12px 12px; background: var(--night); color: rgba(255, 255, 255, .78); border-radius: var(--r-xl); }
.site-foot .in { max-width: 1240px; margin: 0 auto; padding: 26px 24px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; font-size: 14px; }
.site-foot .brand-name { font-size: 20px; }
.site-foot .brand img { width: 30px; height: 30px; }
.foot-links { display: flex; gap: 18px; }
.site-foot a:not(.brand) { color: #fff; text-decoration: none; }
.site-foot a:not(.brand):hover { text-decoration: underline; }

/* ---------- Cartes et formulaires ---------- */
.card { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 26px; }
.card h2 { font-size: 21px; color: var(--ink); }
.card .sub { margin: 4px 0 0; color: var(--ink-2); font-size: 14.5px; }
.stack > * + * { margin-top: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.steps div { position: relative; padding-top: 10px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.steps div::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 999px; background: var(--line); }
.steps div.on { color: var(--royal); } .steps div.on::before { background: var(--royal); }
.steps div.done { color: var(--mint-ink); } .steps div.done::before { background: #7fd35a; }

label.f { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
label.f .opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  background: #f7f9fd; border: 1px solid var(--line); border-radius: var(--r-md); outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--royal); background: #fff; box-shadow: 0 0 0 4px rgba(31, 79, 209, .1); }
input::placeholder, textarea::placeholder { color: #a3abbf; }
input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--royal); }
input[type="file"] { padding: 10px; background: #fff; border-style: dashed; font-size: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.hint { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 14.5px; }

.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.method { position: relative; }
.method input { position: absolute; opacity: 0; }
.method label { display: block; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: #f7f9fd; cursor: pointer; font-size: 15px; font-weight: 600; transition: .15s; }
.method label small { display: block; margin-top: 1px; font-size: 12px; font-weight: 400; color: var(--muted); }
.method input:checked + label { border-color: var(--royal); background: var(--royal-50); box-shadow: inset 0 0 0 1px var(--royal); }
.method input:focus-visible + label { outline: 3px solid var(--mint-600); outline-offset: 2px; }

.paybox { padding: 14px 16px; border-radius: var(--r-md); background: #f7f9fd; border: 1px dashed #cdd6ea; font-size: 14px; }
.paybox .num { font-size: 26px; font-weight: 600; font-stretch: var(--tight); letter-spacing: .02em; color: var(--royal); }
.paybox .line { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  font: inherit; font-size: 14.5px; font-weight: 600; letter-spacing: .005em; white-space: nowrap; text-decoration: none;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: background .15s, box-shadow .15s, transform .05s, opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--royal); color: #fff; box-shadow: 0 8px 18px -10px rgba(31, 79, 209, .9); }
.btn.primary:hover { background: var(--royal-600); }
.btn.mint { background: var(--mint); color: var(--night); }
.btn.mint:hover { background: var(--mint-600); }
.btn.wa { background: var(--wa); color: #04331a; }
.btn.wa:hover { background: #1fbf5b; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--royal-50); border-color: #cfd9f3; }
.btn.line { background: transparent; color: var(--royal); border-color: #bccbf3; }
.btn.line:hover { background: var(--royal-50); }
.btn.danger { background: #fff; color: var(--danger); border-color: #f4cfd1; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.light { background: #fff; color: var(--night); }
.btn.light:hover { background: var(--mint); }
.btn.glass { color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn.glass:hover { background: rgba(255, 255, 255, .24); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn.block { width: 100%; min-height: 48px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Statuts */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-en_attente { background: var(--warn-soft); color: var(--warn); }
.b-declare { background: var(--info-soft); color: var(--info); }
.b-valide { background: var(--ok-soft); color: var(--ok); }
.b-rejete { background: var(--danger-soft); color: var(--danger); }

.status-card { text-align: center; padding: 30px 24px; }
.status-card .icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; font-size: 26px; font-weight: 700; }
.status-card h2 { font-size: 24px; }
.status-card p { max-width: 440px; margin: 8px auto 0; color: var(--ink-2); }
.status-card .steps { text-align: left; }

.notice { padding: 12px 14px; border-radius: var(--r-md); font-size: 14px; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.err { background: var(--danger-soft); color: var(--danger); }
.notice.info { background: var(--info-soft); color: var(--night); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }

.linkbox { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: var(--r-md); background: #f7f9fd; border: 1px solid var(--line); }
.linkbox code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: inherit; font-size: 13px; color: var(--ink-2); }

.empty { padding: 40px 20px; text-align: center; color: var(--ink-2); background: var(--surface); border: 1px dashed #cdd6ea; border-radius: var(--r-xl); }
.spinner { width: 28px; height: 28px; margin: 50px auto; border: 3px solid var(--line); border-top-color: var(--royal); border-radius: 50%; animation: spin .8s linear infinite; }

#toasts { position: fixed; left: 50%; bottom: 20px; z-index: 100; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); }
.toast { padding: 12px 16px; border-radius: var(--r-md); background: var(--ink); color: #fff; font-size: 14px; box-shadow: var(--shadow-lg); transition: opacity .4s, transform .4s; }
.toast.ok { background: var(--ok); } .toast.err { background: var(--danger); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ---------- Ticket ---------- */
.ticket-card { padding: 14px; }
.ticket-frame { overflow: hidden; min-height: 140px; border-radius: var(--r-lg); background: linear-gradient(160deg, var(--royal), var(--night)); }
.ticket-frame a { display: block; }
.ticket-frame img { width: 100%; height: auto; }
.ticket-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
@media (max-width: 420px) { .ticket-actions { grid-template-columns: 1fr; } }

/* ---------- Mon ticket ---------- */
.mine-list { display: grid; gap: 10px; margin-top: 14px; }
.mine-list:empty { display: none; }
.mine { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fbfcff; color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s; }
.mine:hover { border-color: #bccbf3; background: var(--royal-50); }
.mine img { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; }
.mine-body { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.mine-body b { font-weight: 600; line-height: 1.25; }
.mine-body small { font-size: 12.5px; color: var(--muted); }
.mine-go { font-size: 26px; color: var(--royal); }

/* ---------- Page de contrôle ---------- */
.verify-wrap { max-width: 560px; margin: 0 auto; padding: 20px 16px 50px; }
.verdict { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--r-xl); color: #fff; box-shadow: var(--shadow); animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.verdict h1 { font-size: 26px; font-weight: 600; }
.verdict p { margin: 4px 0 0; font-size: 14.5px; opacity: .95; }
.v-icon { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; font-size: 28px; font-weight: 700; background: rgba(255, 255, 255, .22); }
.v-ok { background: linear-gradient(140deg, #1e7a3c, #2f9e55); }
.v-ok .v-icon { background: var(--mint); color: #145127; }
.v-warn { background: linear-gradient(140deg, #b45309, #d97706); }
.v-err { background: linear-gradient(140deg, #9f1d24, #c0262d); }
.v-label { font-size: 12px; font-weight: 500; color: var(--muted); }
.v-name { margin-top: 2px; font-size: 27px; font-weight: 600; font-stretch: var(--tight); line-height: 1.15; color: var(--ink); }
.v-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 16px 0 0; }
.v-grid dt { font-size: 12px; color: var(--muted); }
.v-grid dd { margin: 2px 0 0; font-weight: 600; }
.v-event { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; }
.v-event img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r-md); }
.v-title { margin-top: 2px; font-size: 17px; font-weight: 600; line-height: 1.25; color: var(--royal); }
.v-meta { margin-top: 3px; font-size: 13.5px; color: var(--ink-2); }

/* ---------- Connexion organisateur ---------- */
.auth-screen { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; display: grid; grid-template-columns: 1fr 1px 1fr; align-items: center; padding: 40px 24px; color: #fff; background: var(--night); }
.auth-screen::before { content: ""; position: absolute; inset: -30px; z-index: -2; background: url("img/salle-bleue.jpg") center / cover no-repeat; filter: blur(6px) saturate(1.1); transform: scale(1.05); }
.auth-screen::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(14, 42, 107, .9), rgba(31, 79, 209, .72) 55%, rgba(14, 42, 107, .86)); }
.auth-screen .divider { width: 1px; height: 300px; background: rgba(255, 255, 255, .45); }
.auth-brand { justify-self: end; padding-right: 56px; text-align: center; }
.auth-brand img { width: 80px; height: 80px; margin: 0 auto 10px; }
.auth-brand .brand-name { display: block; font-size: 46px; }
.auth-brand .tag { display: inline-block; margin-top: 12px; padding: 6px 14px; border-radius: 999px; background: var(--mint); color: var(--night); font-weight: 600; font-size: 14px; }
.auth-form { justify-self: start; width: min(100%, 380px); padding-left: 56px; }
.auth-form h2 { margin-bottom: 18px; font-size: 24px; }
.auth-form input { margin-top: 0; border: 0; background: rgba(255, 255, 255, .96); }
.auth-form input + input { margin-top: 12px; }
.auth-form .row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.auth-form .link { padding: 0; border: 0; background: none; color: #fff; font: inherit; font-size: 14px; font-style: italic; opacity: .9; cursor: pointer; }
.auth-form .go { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--mint); color: var(--night); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.auth-form .go svg { width: 16px; height: 16px; }
.auth-form .notice { margin-top: 14px; }
.auth-foot { position: fixed; right: 24px; bottom: 18px; font-size: 13px; font-style: italic; opacity: .85; }
.auth-foot a { color: #fff; text-decoration: none; }
@media (max-width: 760px) {
  .auth-screen { grid-template-columns: 1fr; gap: 26px; align-content: center; }
  .auth-screen .divider { justify-self: center; width: 120px; height: 1px; }
  .auth-brand, .auth-form { justify-self: center; padding: 0; }
  .auth-brand .brand-name { font-size: 36px; }
  .auth-brand img { width: 64px; height: 64px; }
}

/* ---------- Administration ---------- */
.admin-top { position: relative; overflow: hidden; margin: 12px 12px 0; border-radius: var(--r-xl); color: #fff; background: var(--night); }
.admin-top::before { content: ""; position: absolute; inset: 0; background: url("img/conference-scene-s.jpg") center 40% / cover; opacity: .35; }
.admin-top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 31, 82, .95), rgba(31, 79, 209, .6)); }
.admin-top .in { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 14px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.admin-top .brand-name { font-size: 21px; }
.admin-top .who { font-size: 13px; opacity: .85; }
.admin-wrap { max-width: 1240px; margin: 0 auto; padding: 22px 20px 60px; }

.tabs { display: flex; gap: 4px; width: fit-content; max-width: 100%; overflow-x: auto; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tabs button { padding: 8px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.tabs button.on { background: var(--royal); color: #fff; font-weight: 600; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.toolbar select, .toolbar input { width: auto; min-width: 180px; margin-top: 0; padding: 10px 14px; }
.toolbar input[type="search"] { flex: 1; min-width: 200px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.chip b { margin-left: 5px; color: var(--ink); font-weight: 600; }
.chip.on { border-color: var(--royal); background: var(--royal-50); color: var(--royal); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.stat .k { font-size: 12.5px; color: var(--muted); }
.stat .v { margin-top: 2px; font-size: 28px; font-weight: 600; font-stretch: var(--tight); font-variant-numeric: tabular-nums; color: var(--ink); }

.reg { display: grid; grid-template-columns: 1.3fr 1.2fr auto; gap: 14px; align-items: start; margin-top: 10px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 860px) { .reg { grid-template-columns: 1fr; } }
.reg.is-declare { box-shadow: inset 4px 0 0 var(--royal); }
.reg .name { font-size: 16px; font-weight: 600; }
.reg .contact { margin-top: 2px; font-size: 13.5px; color: var(--ink-2); word-break: break-word; }
.reg .pay { font-size: 13.5px; color: var(--ink-2); }
.reg .pay b { color: var(--ink); font-weight: 600; }
.reg .actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
@media (max-width: 860px) { .reg .actions { justify-content: flex-start; } }
.reg .trail { margin-top: 6px; font-size: 12px; color: var(--muted); }

.ev { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; margin-top: 10px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.ev .thumb { width: 88px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-md); background: var(--night); }
.ev .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ev-head { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 12px; }
.ev .t { font-size: 17px; font-weight: 600; color: var(--ink); }
.ev .m { margin-top: 2px; font-size: 13.5px; color: var(--ink-2); }
.ev .counts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.spots-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.spot-row { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.spot-row .pic { aspect-ratio: 16 / 10; background: var(--night); }
.spot-row .pic img { width: 100%; height: 100%; object-fit: cover; }
.spot-row .body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; }
.spot-row .t { font-weight: 600; }
.spot-row .meta { font-size: 12.5px; color: var(--muted); }
.spot-row .acts { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.spot-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.spot-kpis div { padding: 8px 10px; border-radius: var(--r-sm); background: #f4f7fd; }
.spot-kpis b { display: block; font-size: 18px; font-weight: 600; font-stretch: var(--tight); font-variant-numeric: tabular-nums; color: var(--ink); }
.spot-kpis span { font-size: 11.5px; color: var(--muted); }
.spot-kpis.big b { font-size: 28px; }
.spot-kpis.big div { padding: 12px 14px; }
.spark { display: block; width: 100%; height: 30px; margin-top: 4px; }
table.mini { width: 100%; border-collapse: collapse; font-size: 14px; }
table.mini th { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); }
table.mini td { padding: 8px; border-bottom: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
table.mini td:not(:first-child), table.mini th:not(:first-child) { text-align: right; }
#spotSettings { margin-top: 26px; }

.img-pick { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: center; margin-top: 6px; }
.img-pick .prev { display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-md); background: linear-gradient(160deg, var(--royal), var(--night)); color: #fff; font-size: 12px; font-weight: 500; text-align: center; }
.img-pick .prev.wide { aspect-ratio: 16 / 10; }
.img-pick .prev img { width: 100%; height: 100%; object-fit: cover; }
.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 8px; }
.models button { position: relative; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: var(--r-sm); background: var(--night); cursor: pointer; }
.models button img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.models button:hover img { transform: scale(1.06); }
.models button span { position: absolute; inset: auto 0 0 0; padding: 14px 6px 5px; background: linear-gradient(to top, rgba(10, 31, 82, .9), transparent); color: #fff; font-size: 10.5px; font-weight: 500; line-height: 1.2; text-align: left; }
.models button.on { border-color: var(--royal); box-shadow: 0 0 0 3px var(--mint); }

dialog { width: min(94vw, 640px); padding: 0; border: 0; border-radius: var(--r-xl); background: var(--surface); color: var(--ink); box-shadow: 0 24px 70px rgba(10, 31, 82, .35); }
dialog::backdrop { background: rgba(10, 31, 82, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog .dhead { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
dialog .dhead h2 { font-size: 20px; }
dialog .dbody { max-height: 70vh; overflow: auto; padding: 20px 22px; }
dialog .dfoot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); }
.xbtn { border: 0; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.fieldset { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.fieldset h3 { margin-bottom: 2px; font-size: 16px; font-weight: 600; color: var(--royal); }

/* =====================================================================
   Mobile
   ===================================================================== */
@media (max-width: 600px) {
  body { font-size: 15px; }
  .masthead { margin: 8px 8px 0; border-radius: 24px; min-height: 0; }
  .topbar { margin: 10px; padding: 6px 6px 6px 12px; }
  .masthead.compact .topbar { margin: 8px; }
  .brand img { width: 30px; height: 30px; }
  .brand-name { font-size: 21px; }
  .topnav a { font-size: 13px; padding: 8px 11px; }
  .topnav .hide-sm { display: none; }
  .mast-inner { padding: 48px 20px 30px; }
  .slogan { font-size: 41px; line-height: 1.04; }
  .mast-sub { font-size: 15px; margin-top: 14px; }
  .hero-actions { margin-top: 22px; }
  .hero-actions .btn { flex: 1 1 auto; }

  .layout { padding: 24px 16px 0; }
  .section-head h2 { font-size: 24px; }
  .section-head p { font-size: 13.5px; }
  .page-head h1 { font-size: 28px; }

  .ev-title { font-size: 19px; }
  .ev-desc { font-size: 14px; }
  .ev-foot .btn.sm { padding: 0 13px; }

  .card { padding: 20px 18px; border-radius: 24px; margin-top: 14px; }
  .card h2 { font-size: 19px; }
  .card .sub { font-size: 14px; }
  .status-card { padding: 24px 18px; }
  .status-card h2 { font-size: 22px; }
  .status-card .icon { width: 56px; height: 56px; font-size: 22px; }
  .methods { gap: 8px; }
  .method label { padding: 11px 12px; font-size: 14.5px; }
  .paybox .num { font-size: 24px; }
  .notice { font-size: 13.5px; }

  .carousel-wrap { margin-top: 36px; padding: 0 16px; }
  .site-foot { margin: 40px 8px 8px; border-radius: 24px; }
  .site-foot .in { padding: 22px 18px; font-size: 13px; }

  .ticket-card { padding: 10px; }
  .ticket-frame { border-radius: 16px; }

  .admin-top { margin: 8px 8px 0; border-radius: 22px; }
  .admin-top .in { padding: 12px 14px; }
  .admin-top .brand-name { font-size: 19px; }
  .admin-top .who { font-size: 12px; }
  .admin-wrap { padding: 16px 14px 50px; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; padding: 8px 10px; font-size: 13.5px; }
  .toolbar select, .toolbar input, .toolbar input[type="search"] { flex: 1 1 100%; width: 100%; min-width: 0; }
  .stat .v { font-size: 24px; }
  .reg { padding: 14px; }
  dialog .dbody { padding: 18px 16px; }
  dialog .dhead, dialog .dfoot { padding: 14px 16px; }

  .verdict { padding: 18px; border-radius: 24px; }
  .verdict h1 { font-size: 22px; }
  .v-icon { width: 50px; height: 50px; font-size: 24px; }
  .v-name { font-size: 24px; }
  .v-event { grid-template-columns: 72px minmax(0, 1fr); }
  .v-event img { width: 72px; height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Pour moi / pour une autre personne ---------- */
.who-for { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.who-opt { position: relative; cursor: pointer; }
.who-opt input { position: absolute; opacity: 0; }
.who-opt span { display: block; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: #f7f9fd; transition: .15s; }
.who-opt b { display: block; font-weight: 600; font-size: 15px; }
.who-opt small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--muted); }
.who-opt input:checked + span { border-color: var(--royal); background: var(--royal-50); box-shadow: inset 0 0 0 1px var(--royal); }
.who-opt input:focus-visible + span { outline: 3px solid var(--mint-600); outline-offset: 2px; }
.holder-box { margin: 14px 0 0; padding: 14px 16px 16px; border: 1px solid #cfe9bd; border-radius: var(--r-lg); background: #f6fdf1; }
.holder-box > * + * { margin-top: 12px; }
.holder-box legend { padding: 0 6px; font-weight: 600; font-size: 13.5px; color: var(--mint-ink); }
.buyer-title { margin-top: 18px !important; font-weight: 600; font-size: 13.5px; color: var(--muted); }
.for-note { margin-top: 14px; padding: 12px 16px; border-radius: var(--r-md); background: #f6fdf1; border: 1px solid #cfe9bd; color: var(--ink); font-size: 14px; }
.mine-holder { font-size: 13px; color: var(--ink-2); }
.v-buyer { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
@media (max-width: 420px) { .who-for { grid-template-columns: 1fr; } }
