/* =========================================================
   Soirée des 250 ans du CRMT — feuille de style
   ========================================================= */
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/opensans.woff") format("woff"); font-weight: 300 800; font-display: swap; }

:root {
  --orange: #f26b21;
  --orange-2: #f7923a;
  --amber: #f9b233;
  --flame: linear-gradient(120deg, #e8501c 0%, #f26b21 40%, #f7923a 75%, #f9b233 100%);
  --ink: #1d1d20;
  --ink-2: #27272b;
  --ink-3: #34343a;
  --paper: #f6f2ed;
  --line: #e7e1da;
  --text: #2a2a2e;
  --muted: #74747c;
  --ok: #1f8a4c;
  --warn: #c77700;
  --bad: #c62f2f;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 20, 25, .08);
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--body); color: var(--text); background: #fff; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--orange); }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; color: var(--ink); margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { white-space: nowrap; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .02em; }
.strong { font-weight: 700; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.eyebrow { font: 700 .78rem/1.3 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin: 0 0 .8em; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 700 .95rem/1 var(--head); letter-spacing: .02em;
  padding: .95em 1.5em; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--flame); color: #fff; box-shadow: 0 8px 22px rgba(242, 107, 33, .35); }
.btn-primary:hover { box-shadow: 0 10px 28px rgba(242, 107, 33, .5); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-lg { font-size: 1.05rem; padding: 1.05em 1.8em; }
.btn-block { width: 100%; }
.btn-sm { font-size: .8rem; padding: .6em 1em; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--ink); }
.btn.is-static { cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- En-tête ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(29, 29, 32, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 3px solid var(--orange); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font: 800 1.05rem var(--head); color: var(--orange-2); }
.brand small { font-size: .72rem; color: #c9c9cf; letter-spacing: .06em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: #e9e9ee; text-decoration: none; font: 600 .9rem var(--head); padding: .55em .8em; border-radius: 999px; }
.nav a:hover, .nav a.is-active { color: #fff; background: rgba(255,255,255,.08); }
.nav a.nav-cta { background: var(--flame); color: #fff; padding: .6em 1.1em; }
@media (max-width: 420px) { .brand span { display: none; } .nav a { padding: .5em .6em; font-size: .85rem; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% -10%, #3a3a42 0%, transparent 60%), var(--ink); color: #fff; padding: 56px 0 120px; isolation: isolate; }
.hero::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -1px; height: 90px; background: var(--flame); clip-path: polygon(0 55%, 55% 100%, 100% 20%, 100% 100%, 0 100%); z-index: 2; }
.hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; background: #fff; clip-path: polygon(0 75%, 55% 100%, 100% 45%, 100% 100%, 0 100%); z-index: 3; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-250 { position: absolute; right: -2%; top: -6%; font: 900 clamp(10rem, 34vw, 30rem)/1 var(--head); color: rgba(255,255,255,.035); letter-spacing: -.04em; }
.hero-in { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; position: relative; z-index: 1; }
.hero-text h1 { color: #fff; font-size: clamp(3.2rem, 11vw, 6.2rem); font-weight: 900; letter-spacing: -.03em; line-height: .92; margin-bottom: .3em; }
.hero-text h1 .accent { background: var(--flame); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-date { margin: 0 0 .5em; }
.hero-date span { display: inline-block; background: #fff; color: var(--ink); font: 800 clamp(1rem, 3.4vw, 1.35rem) var(--head); padding: .45em .9em; transform: skewX(-8deg); box-shadow: 6px 6px 0 var(--orange); }
.hero-place { font: 800 1.25rem var(--head); color: var(--orange-2); margin-bottom: 1em; }
.hero-lead { color: #d6d6dc; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.hero-visual { display: flex; justify-content: center; }
.hero-logo { width: min(320px, 70vw); filter: drop-shadow(0 25px 45px rgba(0,0,0,.45)); animation: float 6s ease-in-out infinite; }
.hero-photo { display: none; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-1deg); } }
@media (min-width: 900px) {
  .hero { padding: 80px 0 150px; }
  .hero-in { grid-template-columns: 1.15fr .85fr; }
  .hero-logo { width: 420px; }
  .hero-photo { display: block; position: absolute; right: 0; bottom: 60px; width: 46%; height: 52%; z-index: 0; opacity: .22;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
  .hero-photo img { width: 100%; height: 100%; object-fit: cover; }
}
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Compte à rebours ---------- */
.countdown-band { padding: 10px 0 34px; text-align: center; }
.countdown-title { font: 700 .8rem var(--head); text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-bottom: 12px; }
.countdown { display: inline-grid; grid-template-columns: repeat(4, minmax(64px, 110px)); gap: 10px; }
.countdown div { background: var(--ink); color: #fff; border-radius: 14px; padding: 14px 6px 10px; position: relative; overflow: hidden; }
.countdown div::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--flame); }
.countdown b { display: block; font: 800 clamp(1.7rem, 7vw, 2.8rem)/1 var(--head); font-variant-numeric: tabular-nums; }
.countdown span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #bdbdc4; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-tight { padding: 32px 0 64px; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ink); color: #e3e3e8; }
.section-dark h2, .section-dark h3 { color: #fff; }
.slant { position: relative; }
@media (min-width: 900px) { .section { padding: 80px 0; } }
.h-section { font-size: clamp(1.7rem, 5vw, 2.5rem); font-weight: 900; text-align: center; letter-spacing: -.02em; }
.h-section::after { content: ""; display: block; width: 64px; height: 5px; border-radius: 3px; background: var(--flame); margin: .45em auto 0; }
.h-section.left { text-align: left; }
.h-section.left::after { margin-left: 0; }
.section-lead { text-align: center; color: #bdbdc4; margin-top: -.2em; margin-bottom: 2em; }

/* Cartes infos */
.cards-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 900px) { .cards-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; text-align: center; box-shadow: var(--shadow); }
.info-card h3 { font-size: 1rem; margin: 10px 0 6px; text-transform: uppercase; letter-spacing: .06em; }
.info-card p { margin: 0; font-size: .92rem; color: var(--muted); }
.info-card p strong { color: var(--ink); font-size: 1.1rem; }
.ico { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--flame); box-shadow: 0 6px 16px rgba(242,107,33,.35); }
.ico svg { width: 26px; height: 26px; fill: #fff; }

/* Formules */
.formulas { display: grid; gap: 18px; }
@media (min-width: 800px) { .formulas { grid-template-columns: 1.1fr 1fr; gap: 24px; } }
.formula { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius); padding: 26px 24px; position: relative; overflow: hidden; }
.formula-main { background: linear-gradient(160deg, #2f2f35, #232327); border: 2px solid var(--orange); }
.formula-main::before { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; background: var(--flame); transform: rotate(45deg); opacity: .18; }
.formula-tag { display: inline-block; font: 700 .72rem var(--head); letter-spacing: .12em; text-transform: uppercase; background: rgba(242,107,33,.15); color: var(--orange-2); padding: .4em .8em; border-radius: 999px; }
.formula h3 { font-size: 1.5rem; margin-top: .4em; }
.formula-price { font: 900 2.2rem var(--head); color: #fff; margin: .2em 0 .6em; }
.formula-price small { font-size: .95rem; font-weight: 600; color: #bdbdc4; }
.formula-left { font: 700 .85rem var(--head); color: var(--amber); margin: 1em 0 0; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 28px; margin: .55em 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--flame); }
.checks li::after { content: ""; position: absolute; left: 5px; top: .62em; width: 6px; height: 3px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); }

.note { background: #fff6ef; border-left: 5px solid var(--orange); border-radius: 10px; padding: 14px 18px; margin: 0 0 22px; font-size: .95rem; }
.note-dark { background: rgba(255,255,255,.05); color: #e3e3e8; margin-top: 26px; }
.note em { display: block; margin-top: .5em; color: var(--muted); }
.note-dark em { color: #a9a9b1; }

/* Programme */
.timeline { list-style: none; padding: 0; margin: 10px auto 34px; max-width: 640px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 77px; top: 8px; bottom: 8px; width: 3px; background: linear-gradient(var(--orange), var(--amber)); border-radius: 2px; }
.timeline li { display: grid; grid-template-columns: 62px 1fr; gap: 36px; align-items: start; padding: 12px 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 70px; top: 20px; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 4px solid var(--orange); }
.tl-time { font: 900 1.15rem var(--head); white-space: nowrap; color: var(--orange); text-align: right; padding-top: 6px; }
.tl-body { background: var(--paper); border-radius: 12px; padding: 12px 16px; }
.tl-body h3 { font-size: 1.1rem; margin: 0; }
.tl-body p { margin: .2em 0 0; color: var(--muted); font-size: .92rem; }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 10px 0 32px; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.steps li { background: #fff; border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); position: relative; }
.steps li > span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; transform: rotate(45deg); background: var(--ink); color: #fff; font: 800 1.1rem var(--head); margin: 4px 0 14px 4px; }
.steps li > span::first-letter { }
.steps li h3 { font-size: 1.15rem; }
.steps li p { margin: 0; color: var(--muted); font-size: .95rem; }
.steps li > span { transform: none; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); width: 48px; height: 48px; background: var(--flame); }

/* Facebook */
.fb-block { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .fb-block { grid-template-columns: 1fr 1fr; } }
.fb-media img { border-radius: var(--radius); }
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* FAQ */
.faq details { background: #fff; border-radius: 12px; margin: 10px 0; border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font: 700 1rem var(--head); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--orange); font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: #4b4b52; }

/* Sponsors */
.sponsor-call { display: grid; gap: 18px; align-items: center; background: var(--ink); color: #d6d6dc; border-radius: 22px; padding: 30px 26px; position: relative; overflow: hidden; }
.sponsor-call::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; background: var(--flame); transform: rotate(45deg); opacity: .25; }
.sponsor-call h2 { color: #fff; font-size: clamp(1.4rem, 4vw, 2rem); }
.sponsor-call > * { position: relative; z-index: 1; }
@media (min-width: 800px) { .sponsor-call { grid-template-columns: 1fr auto; padding: 40px 44px; } }

/* ---------- Pied de page ---------- */
.footer { background: var(--ink); color: #c9c9cf; padding: 40px 0 24px; border-top: 4px solid var(--orange); font-size: .92rem; }
.footer-in { display: grid; gap: 22px; }
@media (min-width: 800px) { .footer-in { grid-template-columns: 1fr auto; align-items: center; } }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand strong { color: #fff; font-family: var(--head); }
.footer .muted { color: #9a9aa2; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--orange-2); }
.footer-org { margin-top: 26px; padding-top: 18px; border-top: 1px solid #36363c; font-size: .78rem; color: #8b8b93; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.footer-admin { color: #6d6d75; text-decoration: none; }

/* ---------- En-tête de page intérieure ---------- */
.page-head { background: var(--ink); color: #fff; padding: 36px 0 70px; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 44px; background: #fff; clip-path: polygon(0 60%, 60% 100%, 100% 30%, 100% 100%, 0 100%); }
.page-head::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 58px; background: var(--flame); clip-path: polygon(0 45%, 60% 100%, 100% 10%, 100% 100%, 0 100%); }
.page-head h1 { color: #fff; font-size: clamp(2rem, 7vw, 3.2rem); font-weight: 900; letter-spacing: -.02em; }
.progress { list-style: none; display: flex; gap: 6px; padding: 0; margin: 18px 0 0; flex-wrap: wrap; }
.progress li { display: flex; align-items: center; gap: 8px; font: 600 .82rem var(--head); color: #9a9aa2; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.06); }
.progress li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #45454c; color: #fff; font-size: .78rem; }
.progress li.is-current { color: #fff; background: rgba(242,107,33,.2); }
.progress li.is-current span { background: var(--orange); }
.progress li.is-done { color: #d6d6dc; }
.progress li.is-done span { background: var(--ok); }

/* ---------- Formulaires ---------- */
.form label { display: block; font: 600 .9rem var(--head); color: var(--ink); margin-bottom: 14px; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px; font: 400 1rem var(--body); color: var(--text); background: #fff;
  border: 1.5px solid #d9d3cc; border-radius: 12px; padding: .8em .9em; transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242,107,33,.15); }
.form small { display: block; font: 400 .8rem var(--body); color: var(--muted); margin-top: 5px; }
.form .opt { font-weight: 400; color: var(--muted); font-size: .82rem; }
.form .check { display: flex; gap: 12px; align-items: flex-start; font: 400 .92rem/1.5 var(--body); }
.form .check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--orange); flex: none; }
.req { color: var(--bad); }
.grid-2 { display: grid; gap: 0 14px; }
@media (min-width: 600px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; margin: 0 0 18px; box-shadow: var(--shadow); }
fieldset.panel { min-width: 0; }
.panel legend { font: 800 1.05rem var(--head); color: var(--ink); padding: 0 8px; margin-left: -8px; }
.panel h2 { font-size: 1.25rem; }
.panel-dark { background: var(--ink); color: #d6d6dc; border-color: var(--ink); }
.panel-dark h2 { color: #fff; }
.panel-dark a { color: var(--orange-2); }

/* Quantités */
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.qty-row.is-disabled { opacity: .55; }
.qty-label strong { display: block; font: 800 1.02rem var(--head); color: var(--ink); }
.qty-label small { margin: 2px 0 0; }
.stepper { display: flex; align-items: center; background: var(--paper); border-radius: 999px; padding: 4px; flex: none; }
.stepper button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font: 700 1.4rem/1 var(--head); cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.stepper button:hover { background: var(--orange); color: #fff; }
.stepper button:disabled { opacity: .35; cursor: default; background: #fff; color: var(--ink); }
.form .stepper input[type=number], .stepper input[type=number] { width: 52px; margin: 0; text-align: center; border: 0; background: transparent; font: 800 1.3rem var(--head); padding: 0; box-shadow: none; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.total { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 16px; padding: 16px 18px; background: var(--ink); color: #fff; border-radius: 14px; }
.total span { display: block; font: 900 1.7rem var(--head); }
.total small { color: #bdbdc4; margin: 0; }
.total-amount { text-align: right; }
.total-amount span { color: var(--orange-2); }

/* Alertes / badges */
.alert { border-radius: 12px; padding: 14px 18px; margin: 0 0 18px; font-size: .95rem; }
.alert ul { margin: .4em 0 0; padding-left: 1.2em; }
.alert-ok { background: #e8f6ee; color: #155f35; border: 1px solid #bfe4cf; }
.alert-warn { background: #fff4e0; color: #7a4a00; border: 1px solid #f3d7a5; }
.alert-bad { background: #fdecec; color: #8d1f1f; border: 1px solid #f3c2c2; }
.alert a { color: inherit; font-weight: 700; }
.badge { display: inline-block; font: 700 .72rem/1 var(--head); padding: .45em .75em; border-radius: 999px; white-space: nowrap; }
.badge-ok { background: #e3f4ea; color: #1b7341; }
.badge-warn { background: #fff0d6; color: #8a5300; }
.badge-bad { background: #fde3e3; color: #a12626; }
.badge-mute { background: #ececef; color: #5c5c64; }

/* Paiement */
.pay h2 { margin-bottom: .4em; }
.pay .big { font: 900 1.3rem var(--head); color: var(--orange); }
.pay-grid { display: grid; gap: 18px; align-items: center; margin: 16px 0; }
@media (min-width: 640px) { .pay-grid { grid-template-columns: 220px 1fr; } }
.pay-qr { text-align: center; }
.pay-qr svg { width: 220px; border-radius: 12px; border: 1px solid var(--line); }
.pay-qr p { color: var(--muted); margin: 6px 0 0; }
.pay-data, .recap dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.pay-data dt, .recap dt { color: var(--muted); font-size: .88rem; }
.pay-data dd, .recap dd { margin: 0; font-weight: 600; word-break: break-word; }
.copy { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; font: 600 .75rem var(--head); padding: .35em .8em; cursor: pointer; margin-left: 4px; }
.copy.is-done { background: var(--ok); color: #fff; border-color: var(--ok); }

/* Billet */
.ticket { background: #fff; border-radius: 22px; box-shadow: 0 18px 50px rgba(0,0,0,.14); overflow: hidden; margin: 0 auto 22px; max-width: 420px; border: 1px solid var(--line); }
.ticket-head { background: var(--ink); color: #fff; display: flex; gap: 12px; align-items: center; padding: 16px 20px; border-bottom: 5px solid var(--orange); }
.ticket-head strong { font-family: var(--head); font-size: 1.1rem; }
.ticket-head span { color: #c9c9cf; font-size: .88rem; }
.ticket-qr { padding: 22px 32px 6px; }
.ticket-qr svg { width: 100%; display: block; }
.ticket-info { text-align: center; padding: 6px 20px 22px; border-top: 2px dashed var(--line); margin: 0 18px; }
.ticket-info p { margin: .3em 0; }
.ticket-name { font: 800 1.35rem var(--head); color: var(--ink); margin-top: .8em !important; }
.ticket-split { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ticket-split span { background: var(--paper); border-radius: 999px; padding: .25em .8em; font-size: .85rem; font-weight: 600; }

/* Contact */
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.contact-line { font: 700 1.05rem var(--head); text-decoration: none; word-break: break-all; }

/* Texte long */
.prose h2 { font-size: 1.25rem; margin-top: 1.6em; }

/* =========================================================
   GESTION (admin)
   ========================================================= */
.admin-body { background: #f3f1ee; min-height: 100vh; }
.admin-top { background: var(--ink); color: #fff; border-bottom: 3px solid var(--orange); position: sticky; top: 0; z-index: 40; }
.admin-top-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; }
.admin-top .brand strong { font-size: .95rem; }
.admin-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; background: var(--ink-2); }
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav a { color: #cfcfd5; text-decoration: none; font: 600 .85rem var(--head); padding: 12px 14px; white-space: nowrap; border-bottom: 3px solid transparent; }
.admin-nav a.is-active, .admin-nav a:hover { color: #fff; border-bottom-color: var(--orange); }
.admin-nav .count { background: var(--orange); color: #fff; border-radius: 999px; font-size: .7rem; padding: 1px 7px; margin-left: 4px; }
.admin-user { font-size: .82rem; color: #bdbdc4; display: flex; gap: 10px; align-items: center; }
.admin-user a { color: #fff; }
.admin-main { padding: 22px 0 60px; }
.admin-main h1 { font-size: 1.6rem; font-weight: 800; }
.admin-main .wrap { width: min(1280px, 100% - 24px); }
.login-box { width: min(420px, 100% - 32px); margin: 8vh auto; background: #fff; border-radius: 20px; padding: 30px 26px; box-shadow: var(--shadow); text-align: center; }
.login-box .form { text-align: left; margin-top: 16px; }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.head-row h1 { margin: 0; }

.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: #fff; border-radius: 14px; padding: 16px; border: 1px solid var(--line); }
.kpi b { display: block; font: 900 1.8rem/1.1 var(--head); color: var(--ink); }
.kpi span { font-size: .8rem; color: var(--muted); }
.kpi .bar { height: 6px; background: var(--paper); border-radius: 3px; margin-top: 10px; overflow: hidden; }
.kpi .bar i { display: block; height: 100%; background: var(--flame); }
.kpi-dark { background: var(--ink); border-color: var(--ink); }
.kpi-dark b { color: var(--orange-2); }
.kpi-dark span { color: #bdbdc4; }

.table-wrap { background: #fff; border-radius: 14px; border: 1px solid var(--line); overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font: 700 .75rem var(--head); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #faf9f7; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid #f0ece7; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.row-link { cursor: pointer; }
.tbl tr.row-link:hover td { background: #fff8f2; }
.tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl .nowrap { white-space: nowrap; }
.tbl a { font-weight: 700; color: var(--ink); text-decoration: none; }
.tbl tr.is-sure td { background: #f2faf5; }
.tbl tr.is-probable td { background: #fffaf0; }
.tbl tr.is-done td { opacity: .5; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filters input[type=search] { flex: 1 1 220px; padding: .7em 1em; border-radius: 999px; border: 1.5px solid #d9d3cc; font: inherit; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: .5em .9em; border-radius: 999px; background: #fff; border: 1px solid var(--line); font: 600 .82rem var(--head); color: var(--ink); text-decoration: none; }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip small { opacity: .7; }

.cols { display: grid; gap: 18px; }
@media (min-width: 1000px) { .cols { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.inline-form label { margin: 0; flex: 1 1 120px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.list-plain { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.list-plain li { padding: 7px 0; border-bottom: 1px solid #f0ece7; display: flex; justify-content: space-between; gap: 10px; }
.list-plain li:last-child { border-bottom: 0; }
.danger-zone { border-color: #f3c2c2; }

/* ---------- Scanner ---------- */
.scan-body { background: #111114; color: #fff; }
.scan-body .admin-main h1 { color: #fff; }
.scan-wrap { width: min(560px, 100% - 20px); margin: 0 auto; }
.scan-cam { position: relative; background: #000; border-radius: 18px; overflow: hidden; aspect-ratio: 1; }
.scan-cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-cam .frame { position: absolute; inset: 14%; border: 3px solid rgba(247,146,58,.9); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); pointer-events: none; }
.scan-cam .scan-msg { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: .85rem; color: #ddd; }
.scan-start { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; }
.scan-search { display: flex; gap: 8px; margin: 14px 0; }
.scan-search input { flex: 1; padding: .8em 1em; border-radius: 999px; border: 0; font: inherit; }
.scan-results { list-style: none; padding: 0; margin: 0 0 14px; }
.scan-results li button { width: 100%; text-align: left; background: #1f1f24; color: #fff; border: 1px solid #333; border-radius: 12px; padding: 12px 14px; margin-bottom: 6px; font: inherit; cursor: pointer; }
.scan-card { background: #fff; color: var(--text); border-radius: 20px; padding: 18px; margin: 14px 0; }
.scan-card h2 { margin: 0; font-size: 1.4rem; }
.scan-status { border-radius: 12px; padding: 12px 14px; font: 800 1.05rem var(--head); text-align: center; margin: 12px 0; }
.scan-status.ok { background: #e3f4ea; color: #1b7341; }
.scan-status.bad { background: #fde3e3; color: #a12626; }
.scan-status.warn { background: #fff0d6; color: #8a5300; }
.scan-line { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.scan-line strong { font: 800 1.05rem var(--head); display: block; }
.scan-line small { color: var(--muted); }
.scan-line .stepper button { width: 48px; height: 48px; }
.scan-line .stepper output { min-width: 54px; text-align: center; font: 900 1.5rem var(--head); }
.scan-line output.neg { color: var(--bad); }
.scan-line output.pos { color: var(--ok); }
.scan-actions { display: grid; gap: 8px; margin-top: 14px; }
.scan-log { font-size: .85rem; color: #bbb; }
.scan-log li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid #2a2a30; padding: 8px 0; }
.scan-log button { background: none; border: 1px solid #555; color: #ddd; border-radius: 999px; padding: 2px 10px; cursor: pointer; font-size: .75rem; }
.scan-kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.scan-kpi div { background: #1f1f24; border-radius: 12px; padding: 10px 12px; }
.scan-kpi b { font: 900 1.4rem var(--head); color: var(--orange-2); display: block; }
.scan-kpi span { font-size: .75rem; color: #aaa; }

@media print {
  .topbar, .footer, .btn-row, .admin-top, .admin-nav, .filters { display: none !important; }
  .page-head { background: none; color: #000; padding: 0; }
  .page-head h1 { color: #000; }
  .page-head::before, .page-head::after { display: none; }
}
