/* ==========================================================================
   PROMO PLUS — COMPOSANTS
   Tout est construit sur les variables de theme.css : ne mettez pas de
   couleurs en dur ici, changez le thème.
   ========================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: var(--tracking-tight); font-weight: var(--fw-bold); }
h1 { font-size: var(--fs-xl); }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-4) 0; }
::selection { background: var(--primary-soft); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-xs); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.num { font-family: var(--font-numbers); font-variant-numeric: tabular-nums; }

/* ---------- Icônes ---------- */
.i { display: inline-block; vertical-align: -0.22em; width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 24px; height: 24px; }
.i-fill { fill: currentColor; }

/* ---------- Mise en page ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.page { padding: var(--s-4) 0 calc(var(--bottomnav-h) + var(--s-8)); min-height: 70vh; }
.stack { display: flex; flex-direction: column; gap: var(--s-4); }
.stack-sm { display: flex; flex-direction: column; gap: var(--s-2); }
.stack-lg { display: flex; flex-direction: column; gap: var(--s-8); }
.row { display: flex; align-items: center; gap: var(--s-2); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); }
.small { font-size: var(--fs-sm); }
.xsmall { font-size: var(--fs-xs); }
.strong { font-weight: var(--fw-semibold); }
.center { text-align: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mt-1 { margin-top: var(--s-1); } .mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-6 { margin-top: var(--s-6); } .mt-8 { margin-top: var(--s-8); }
.mb-2 { margin-bottom: var(--s-2); } .mb-4 { margin-bottom: var(--s-4); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.layout-2 { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .layout-2 { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .layout-2 > aside { position: sticky; top: calc(var(--topbar-h) + var(--s-4)); }
}

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--topbar-h);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar .container { height: 100%; display: flex; align-items: center; gap: var(--s-3); }
.brand { display: flex; align-items: center; gap: var(--s-2); font-weight: var(--fw-bold); font-size: var(--fs-md); letter-spacing: var(--tracking-tight); white-space: nowrap; }
.brand-mark { width: 32px; height: 32px; }
.brand-name b { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topnav { display: none; gap: var(--s-1); margin-left: var(--s-4); }
.topnav a { padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: var(--fw-medium); font-size: var(--fs-sm); }
.topnav a:hover { color: var(--text); background: var(--surface-2); }
.topnav a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
.searchpill {
  flex: 1; display: flex; align-items: center; gap: var(--s-2);
  height: 38px; padding: 0 var(--s-3); max-width: 520px;
  background: var(--surface-2); border: 1px solid transparent; border-radius: var(--radius-pill);
  color: var(--text-3); font-size: var(--fs-sm);
}
.searchpill:hover { border-color: var(--border); }
.searchpill input { border: 0; background: transparent; outline: none; width: 100%; color: var(--text); font-size: var(--fs-sm); }
.topbar-actions { display: flex; align-items: center; gap: var(--s-1); margin-left: auto; }
.iconbtn {
  position: relative; display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: var(--radius-pill);
  border: 0; background: transparent; color: var(--text-2); cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.iconbtn:hover { background: var(--surface-2); color: var(--text); }
.iconbtn .dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); border: 2px solid var(--surface); }
.topnav { display: none; }
@media (max-width: 959.98px) { .hide-mobile { display: none !important; } }
@media (min-width: 960px) {
  .topnav { display: flex; }
  .hide-desktop { display: none !important; }
}

/* ---------- Navigation du bas (mobile) ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-3); font-size: 11px; font-weight: var(--fw-medium); }
.bottomnav a[aria-current="page"] { color: var(--primary); }
.bottomnav .scan-fab {
  width: 46px; height: 46px; margin-top: -18px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: var(--brand-gradient); box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}
@media (min-width: 960px) { .bottomnav { display: none; } .page { padding-bottom: var(--s-12); } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: var(--control-h); padding: 0 var(--control-px);
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); white-space: nowrap;
  cursor: pointer; user-select: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: 0.5; pointer-events: none; }
.btn-primary { background: var(--primary); color: var(--primary-contrast); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-brand { background: var(--brand-gradient); color: #fff; background-size: 140% 100%; }
.btn-brand:hover { background-position: 100% 0; }
.btn-secondary { background: var(--surface-2); color: var(--text); }
.btn-secondary:hover { background: var(--surface-3); }
.btn-outline { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--text-3); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-whatsapp { background: #1fa855; color: #fff; }
.btn-whatsapp:hover { background: #178f47; }
.btn-sm { height: var(--control-h-sm); padding: 0 10px; font-size: var(--fs-xs); border-radius: var(--radius-xs); }
.btn-lg { height: var(--control-h-lg); padding: 0 18px; font-size: var(--fs-base); }
.btn-block { width: 100%; }
.btn-icon { width: var(--control-h); padding: 0; }
.btn.is-on { background: var(--primary-soft); color: var(--primary); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--primary); font-weight: var(--fw-semibold); cursor: pointer; font-size: inherit; }
.linkbtn:hover { text-decoration: underline; }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text); }
.help { font-size: var(--fs-xs); color: var(--text-3); }
.error, .errorlist { font-size: var(--fs-xs); color: var(--danger); margin: 0; padding: 0; list-style: none; }
.input, .select, .textarea,
.field input[type="text"], .field input[type="email"], .field input[type="number"], .field input[type="tel"], .field input[type="url"],
.field input[type="date"], .field input[type="datetime-local"], .field input[type="time"], .field input[type="password"], .field input[type="search"],
.field select, .field textarea {
  width: 100%; height: var(--control-h); padding: 0 12px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-size: var(--fs-base); color: var(--text); outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea, .textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: var(--focus-ring); }
.field input[type="file"] { font-size: var(--fs-sm); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.form-grid { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }
.check { display: flex; align-items: flex-start; gap: var(--s-2); font-size: var(--fs-sm); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--primary); }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.code-input { letter-spacing: 0.4em; text-align: center; font-size: var(--fs-lg) !important; font-weight: var(--fw-bold); height: 52px !important; }

/* Contrôle segmenté (type d'offre, onglets compacts) */
.segmented { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--radius); overflow-x: auto; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.segmented label, .segmented a, .segmented button {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-2);
  cursor: pointer; border: 0; background: transparent; white-space: nowrap;
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented input:checked + span, .segmented .is-active { color: var(--text); }
.segmented label:has(input:checked), .segmented a.is-active, .segmented button.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }

/* ---------- Puces (chips) ---------- */
.chips { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  font-size: var(--fs-sm); font-weight: var(--fw-medium); white-space: nowrap; cursor: pointer;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--surface); }
.chip .i { width: 16px; height: 16px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--radius-pill); font-size: 11px; font-weight: var(--fw-semibold); white-space: nowrap; background: var(--surface-2); color: var(--text-2); }
.badge-deal { background: var(--brand-gradient); color: #fff; font-weight: var(--fw-bold); font-size: 12px; height: 24px; }
.badge-save { background: var(--save-soft); color: var(--save); }
.badge-warn { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-primary { background: var(--primary-soft); color: var(--primary); }
.badge-sponsored { background: rgba(23, 20, 31, 0.62); color: #fff; backdrop-filter: blur(6px); }
.verified { color: var(--primary); display: inline-flex; vertical-align: -3px; }
.verified .i { width: 16px; height: 16px; }

/* ---------- Cartes ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.card-pad { padding: var(--s-4); }
@media (min-width: 640px) { .card-pad { padding: var(--s-5); } }
.card-hover { transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.card-hover:hover { box-shadow: var(--shadow-2); border-color: var(--border-strong); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); }
.section-head h2, .section-head h3 { font-size: var(--fs-md); display: flex; align-items: center; gap: 6px; }
.section-head a { font-size: var(--fs-sm); color: var(--primary); font-weight: var(--fw-semibold); }
.divider-list > * + * { border-top: 1px solid var(--border); }

/* Carte d'offre */
.offers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
@media (min-width: 720px) { .offers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); } }
@media (min-width: 1040px) { .offers-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 44%); gap: var(--s-3); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 720px) { .rail { grid-auto-columns: 220px; } }

.offer { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.offer:hover { box-shadow: var(--shadow-2); border-color: var(--border-strong); }
.offer-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.offer-media img { width: 100%; height: 100%; object-fit: cover; }
.offer-media .placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: var(--brand-gradient-soft); color: var(--primary); }
.offer-media .badge-deal { position: absolute; left: 8px; top: 8px; }
.offer-media .badge-sponsored { position: absolute; left: 8px; bottom: 8px; }
.offer-media .soldout { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(23, 20, 31, 0.55); color: #fff; font-weight: var(--fw-bold); }
.offer-save {
  position: absolute; right: 6px; top: 6px; width: 34px; height: 34px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); color: var(--text-2); cursor: pointer; box-shadow: var(--shadow-1);
}
.offer-save.is-on { color: var(--brand-2); }
.offer-save.is-on .i { fill: currentColor; }
.offer-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; flex: 1; }
.offer-biz { display: flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--text-3); min-width: 0; }
.offer-biz span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-title { font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-top: 2px; }
.price-now { font-size: var(--fs-md); font-weight: var(--fw-bold); letter-spacing: var(--tracking-tight); }
.price-was { font-size: var(--fs-xs); color: var(--text-3); text-decoration: line-through; }
.price-alt { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--primary); }
.offer-meta { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; font-size: var(--fs-xs); color: var(--text-3); flex-wrap: wrap; }
.offer-meta .ends { color: var(--warning); font-weight: var(--fw-semibold); }
.saving { font-size: var(--fs-xs); color: var(--save); font-weight: var(--fw-semibold); }
.reason { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--primary); font-weight: var(--fw-semibold); }

/* Carte d'entreprise */
.biz-card { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3); }
.avatar { width: 44px; height: 44px; border-radius: var(--radius); background: var(--surface-2); object-fit: cover; flex: none; display: grid; place-items: center; font-weight: var(--fw-bold); color: var(--primary); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 76px; height: 76px; border-radius: var(--radius-lg); font-size: var(--fs-xl); }
.avatar-sm { width: 32px; height: 32px; border-radius: var(--radius-sm); font-size: var(--fs-sm); }

/* ---------- Bannières (carrousel) ---------- */
.hero { position: relative; }
.slides { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius-xl); }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; scroll-snap-align: start; aspect-ratio: 16 / 7; min-height: 168px; border-radius: var(--radius-xl); overflow: hidden; background: var(--brand-gradient); color: #fff; display: flex; align-items: flex-end; }
@media (min-width: 960px) { .slide { aspect-ratio: auto; height: 300px; } }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(10, 6, 20, 0.66)); }
.slide-body { position: relative; z-index: 1; padding: var(--s-5); max-width: 640px; }
.slide-body h2 { font-size: var(--fs-xl); color: #fff; }
.slide-body p { color: rgba(255, 255, 255, 0.86); font-size: var(--fs-sm); margin-top: 4px; }
.slide .badge { position: absolute; z-index: 1; top: 12px; left: 12px; }
.slide-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.slide-dots button { width: 6px; height: 6px; border-radius: 99px; border: 0; padding: 0; background: var(--border-strong); cursor: pointer; transition: width var(--dur) var(--ease); }
.slide-dots button.is-active { width: 18px; background: var(--primary); }

/* Bandeau événement (foire, jeu) */
.event-strip { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--radius-lg); background: var(--brand-gradient-soft); border: 1px solid var(--border); }
.event-strip .icon-tile { width: 42px; height: 42px; border-radius: var(--radius); display: grid; place-items: center; background: var(--brand-gradient); color: #fff; flex: none; }

/* Tuiles de catégories */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
@media (min-width: 720px) { .cats { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: var(--radius); text-align: center; font-size: 11.5px; line-height: 1.25; color: var(--text-2); font-weight: var(--fw-medium); }
.cat:hover { background: var(--surface); }
.cat .tile { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--primary); }
.cat:hover .tile { border-color: var(--primary); }

/* ---------- En-têtes de page ---------- */
.page-head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.page-head h1 { font-size: var(--fs-xl); }
.page-head .back { margin-left: -8px; }
.lead { color: var(--text-2); font-size: var(--fs-base); }
.kicker { font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); }
.gradient-text { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Onglets ---------- */
.tabs { display: flex; gap: var(--s-5); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { flex: none; padding: 10px 0; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text-2); font-weight: var(--fw-semibold); font-size: var(--fs-sm); cursor: pointer; white-space: nowrap; }
.tabs a.is-active, .tabs button.is-active, .tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--primary); }
.tabpanel[hidden] { display: none; }

/* ---------- Listes ---------- */
.list-item { display: flex; align-items: center; gap: var(--s-3); padding: 12px var(--s-4); }
.list-item .i:first-child { color: var(--text-3); }
a.list-item:hover { background: var(--surface-2); }
.list-item .chev { margin-left: auto; color: var(--text-3); }

/* ---------- Statistiques ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: var(--s-4); }
.stat-label { font-size: var(--fs-xs); color: var(--text-3); font-weight: var(--fw-medium); }
.stat-value { font-size: var(--fs-xl); font-weight: var(--fw-bold); letter-spacing: var(--tracking-tight); margin-top: 2px; }
.stat-delta { font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.stat-delta.up { color: var(--save); } .stat-delta.down { color: var(--danger); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.bars .bar { flex: 1; background: var(--primary-soft); border-radius: 6px 6px 2px 2px; position: relative; min-height: 4px; }
.bars .bar.is-current { background: var(--primary); }
.bars-labels { display: flex; gap: 6px; margin-top: 6px; }
.bars-labels span { flex: 1; text-align: center; font-size: 11px; color: var(--text-3); }
.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand-gradient); border-radius: 99px; }

/* ---------- Messages, alertes ---------- */
.alert { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); border-radius: var(--radius); font-size: var(--fs-sm); background: var(--info-soft); color: var(--text); }
.alert .i { color: var(--info); margin-top: 1px; }
.alert-success { background: var(--save-soft); } .alert-success .i { color: var(--save); }
.alert-warning { background: var(--warning-soft); } .alert-warning .i { color: var(--warning); }
.alert-error { background: var(--danger-soft); } .alert-error .i { color: var(--danger); }
.toasts { position: fixed; left: 50%; bottom: calc(var(--bottomnav-h) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
@media (min-width: 960px) { .toasts { bottom: 24px; } }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--text); color: var(--surface); font-size: var(--fs-sm); box-shadow: var(--shadow-3); animation: toast-in 220ms var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- États vides ---------- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-3); padding: var(--s-10) var(--s-4); color: var(--text-2); }
.empty .icon-circle { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.empty h3 { color: var(--text); }

/* ---------- Fenêtres (sheet / modal) ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 90; background: var(--overlay); display: flex; align-items: flex-end; justify-content: center; animation: fade 160ms var(--ease); }
.sheet { width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; background: var(--surface); border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding: var(--s-5) var(--s-4) calc(var(--s-5) + env(safe-area-inset-bottom)); animation: up 220ms var(--ease); }
@media (min-width: 640px) { .sheet-backdrop { align-items: center; } .sheet { border-radius: var(--radius-xl); } }
.sheet-handle { width: 40px; height: 4px; border-radius: 99px; background: var(--border-strong); margin: -8px auto var(--s-4); }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: 0.6; } }

/* ---------- Bandeau cookies / installation ---------- */
.consent { position: fixed; left: 12px; right: 12px; bottom: calc(var(--bottomnav-h) + 12px + env(safe-area-inset-bottom)); z-index: 70; max-width: 520px; margin: 0 auto; padding: var(--s-4); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-3); }
@media (min-width: 960px) { .consent { bottom: 20px; left: 20px; right: auto; } }

/* ---------- Page offre ---------- */
.offer-hero { position: relative; border-radius: var(--radius-xl); overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; }
@media (min-width: 960px) { .offer-hero { aspect-ratio: 16 / 11; } }
.offer-hero img { width: 100%; height: 100%; object-fit: cover; }
.offer-hero .badge-deal { position: absolute; top: 14px; left: 14px; height: 30px; font-size: 14px; padding: 0 12px; }
.bigprice { font-size: var(--fs-2xl); font-weight: var(--fw-bold); letter-spacing: var(--tracking-tight); }
.facts { display: grid; gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.facts > div { display: flex; gap: var(--s-3); align-items: center; padding: 11px var(--s-4); background: var(--surface); font-size: var(--fs-sm); }
.facts .i { color: var(--text-3); }
.countdown { font-variant-numeric: tabular-nums; font-weight: var(--fw-bold); }
.action-bar { position: sticky; bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom)); z-index: 30; display: flex; gap: var(--s-2); padding: var(--s-3) 0; background: linear-gradient(180deg, transparent, var(--bg) 30%); }
@media (min-width: 960px) { .action-bar { position: static; background: none; padding: 0; } }

/* ---------- Page entreprise ---------- */
.biz-cover { height: 168px; border-radius: var(--radius-xl); overflow: hidden; background: var(--brand-gradient); }
@media (min-width: 960px) { .biz-cover { height: 240px; } }
.biz-cover img { width: 100%; height: 100%; object-fit: cover; }
.biz-head { display: flex; gap: var(--s-4); align-items: flex-end; margin-top: -38px; padding: 0 var(--s-4); }
.biz-head .avatar-lg { border: 4px solid var(--bg); background: var(--surface); }
.open-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--save); display: inline-block; }
.open-dot.closed { background: var(--text-3); }
.stars { display: inline-flex; color: var(--brand-3); }
.stars .i { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.stars .off { color: var(--surface-3); }

/* Carte de fidélité / carte Promo Plus */
.pp-card { position: relative; border-radius: var(--radius-xl); padding: var(--s-5); color: #fff; background: var(--brand-gradient); overflow: hidden; min-height: 180px; box-shadow: var(--shadow-2); }
.pp-card::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.pp-card .qr { background: #fff; border-radius: var(--radius); padding: 8px; width: 112px; height: 112px; }
.pp-card .qr img, .pp-card .qr svg { width: 100%; height: 100%; }
.pp-card .id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-md); letter-spacing: 0.08em; font-weight: var(--fw-bold); }
.points { font-size: var(--fs-2xl); font-weight: var(--fw-bold); }

/* Ticket (jeux) */
.ticket { display: flex; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.ticket .stub { width: 92px; display: grid; place-items: center; background: var(--brand-gradient); color: #fff; position: relative; }
.ticket .stub::after { content: ""; position: absolute; right: -1px; top: 8px; bottom: 8px; border-right: 2px dashed rgba(255, 255, 255, 0.6); }
.ticket .main { padding: var(--s-3) var(--s-4); flex: 1; min-width: 0; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: var(--fw-bold); letter-spacing: 0.1em; }

/* ---------- Assistant ---------- */
.chat { display: flex; flex-direction: column; gap: var(--s-3); }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: var(--fs-sm); line-height: 1.45; }
.msg-user { align-self: flex-end; background: var(--primary); color: var(--primary-contrast); border-bottom-right-radius: 4px; }
.msg-bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-input { position: sticky; bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom)); display: flex; gap: var(--s-2); padding: var(--s-3) 0; background: var(--bg); }
@media (min-width: 960px) { .chat-input { bottom: 0; } }
.suggestions { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* ---------- Carte (map) ---------- */
.map { height: calc(100vh - var(--topbar-h) - var(--bottomnav-h) - 120px); min-height: 360px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); z-index: 1; }
@media (min-width: 960px) { .map { height: calc(100vh - var(--topbar-h) - 140px); } }
.leaflet-popup-content-wrapper { border-radius: var(--radius) !important; font-family: var(--font) !important; }

/* ---------- Scanner ---------- */
.scanner { position: relative; border-radius: var(--radius-xl); overflow: hidden; background: #000; aspect-ratio: 3 / 4; max-height: 62vh; margin: 0 auto; width: 100%; }
@media (min-width: 640px) { .scanner { aspect-ratio: 4 / 3; } }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner .frame { position: absolute; inset: 22% 12%; border-radius: var(--radius-lg); box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45); border: 2px solid rgba(255, 255, 255, 0.9); }
.scanner .hint { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; color: #fff; font-size: var(--fs-sm); }

/* ---------- Espace pro ---------- */
.pro-shell { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .pro-shell { grid-template-columns: 232px minmax(0, 1fr); align-items: start; } }
.pro-nav { display: flex; gap: var(--s-1); overflow-x: auto; scrollbar-width: none; }
.pro-nav::-webkit-scrollbar { display: none; }
.pro-nav a { flex: none; display: flex; align-items: center; gap: var(--s-2); padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text-2); font-size: var(--fs-sm); font-weight: var(--fw-medium); white-space: nowrap; }
.pro-nav a:hover { background: var(--surface-2); color: var(--text); }
.pro-nav a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); border: 1px solid var(--border); }
@media (min-width: 960px) { .pro-nav { flex-direction: column; position: sticky; top: calc(var(--topbar-h) + var(--s-4)); } }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th { text-align: left; font-weight: var(--fw-semibold); color: var(--text-3); font-size: var(--fs-xs); padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.thumb { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface-2); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--text-3); }
.status-active { background: var(--save); } .status-scheduled { background: var(--info); } .status-ended { background: var(--text-3); } .status-draft { background: var(--warning); }
.steps { display: flex; gap: var(--s-2); counter-reset: step; }
.steps li { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-xs); color: var(--text-3); }
.steps li::before { counter-increment: step; content: counter(step); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: var(--fw-bold); }
.steps li.is-done::before, .steps li.is-current::before { background: var(--primary); color: var(--primary-contrast); }
.steps li.is-current { color: var(--text); font-weight: var(--fw-semibold); }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: var(--s-8) 0 calc(var(--bottomnav-h) + var(--s-8)); color: var(--text-2); font-size: var(--fs-sm); }
@media (min-width: 960px) { .footer { padding-bottom: var(--s-8); } }
.footer-grid { display: grid; gap: var(--s-6); grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h4 { font-size: var(--fs-sm); color: var(--text); margin-bottom: var(--s-2); }
.footer li { margin: 6px 0; }
.footer a:hover { color: var(--text); }

/* ---------- Divers ---------- */
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }
.kbd { font-family: ui-monospace, monospace; font-size: 11px; padding: 2px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--border); }
.prose { color: var(--text-2); font-size: var(--fs-base); line-height: 1.7; }
.prose h2 { color: var(--text); font-size: var(--fs-md); margin: var(--s-6) 0 var(--s-2); }
.prose p + p, .prose ul { margin-top: var(--s-3); }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose li { margin: 4px 0; }
.hero-gradient { background: var(--brand-gradient-soft); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--s-6) var(--s-5); }
.pill-counter { display: inline-flex; gap: 6px; align-items: center; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.qr-box { background: #fff; border-radius: var(--radius); padding: 10px; display: inline-block; border: 1px solid var(--border); }
.qr-box svg, .qr-box img { width: 160px; height: 160px; }
details.disclosure > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; font-weight: var(--fw-semibold); font-size: var(--fs-sm); color: var(--primary); }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure[open] > summary .i { transform: rotate(180deg); }
.lang-switch select { height: 32px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); padding: 0 8px; font-size: var(--fs-xs); }

/* Cases à cocher présentées en puces */
.chip input { margin: 0; accent-color: var(--primary); }
.chip:has(input:checked) { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.chips.wrap { flex-wrap: wrap; }

aside .rail { margin: 0; padding: 0; grid-auto-columns: minmax(150px, 48%); }
@media (min-width: 960px) { .offer-hero { max-height: 460px; aspect-ratio: auto; height: 460px; } }
.biz-title { display: flex; flex-direction: column; gap: var(--s-3); }
@media (min-width: 720px) { .biz-title { flex-direction: row; align-items: flex-start; justify-content: space-between; } }
.meta-row { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.meta-row > span { white-space: nowrap; }

/* ==========================================================================
   Pleine largeur, grilles 2 colonnes sur téléphone, bannière, thème
   ========================================================================== */
@media (min-width: 720px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; } }
@media (max-width: 380px) { :root { --gutter: 12px; } }

/* Grilles d'offres : 2 par ligne sur téléphone, jusqu'à 6 sur grand écran */
.offers-grid { gap: 10px; }
@media (min-width: 720px) { .offers-grid { gap: var(--s-4); } }
@media (min-width: 1280px) { .offers-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1560px) { .offers-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
/* Sections de l'accueil : 6 cartes sur téléphone/tablette, une ligne complète ensuite */
.offers-grid.is-short > :nth-child(n+7) { display: none; }
@media (min-width: 1040px) { .offers-grid.is-short > :nth-child(n+5) { display: none; } }
@media (min-width: 1280px) { .offers-grid.is-short > :nth-child(n+5) { display: flex; } .offers-grid.is-short > :nth-child(n+6) { display: none; } }
@media (min-width: 1560px) { .offers-grid.is-short > :nth-child(n+6) { display: flex; } .offers-grid.is-short > :nth-child(n+7) { display: none; } }
@media (max-width: 479.98px) {
  .offer-body { padding: 8px 10px 10px; }
  .offer-title { font-size: 13px; }
  .price-now { font-size: 15px; }
  .offer-media .badge-deal { left: 6px; top: 6px; }
}
.cats { gap: 6px; }
@media (min-width: 1280px) { .cats { grid-template-columns: repeat(11, minmax(0, 1fr)); } }

/* Bannière d'accueil par défaut (quand aucune bannière payée n'est active) */
.banner {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  background: var(--brand-gradient); color: #fff;
  display: grid; gap: var(--s-4); padding: var(--s-6) var(--s-5);
  min-height: 190px;
}
.banner::before, .banner::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.12); pointer-events: none; }
.banner::before { width: 340px; height: 340px; right: -110px; top: -150px; }
.banner::after { width: 220px; height: 220px; right: 90px; bottom: -150px; }
.banner > * { position: relative; z-index: 1; }
.banner h2 { font-size: clamp(1.35rem, 4.6vw, 2.4rem); line-height: 1.12; color: #fff; max-width: 680px; }
.banner p { color: rgba(255, 255, 255, 0.9); font-size: var(--fs-sm); max-width: 560px; }
.banner .kicker { color: rgba(255, 255, 255, 0.85); }
.banner-search { display: flex; gap: 6px; background: #fff; border-radius: var(--radius-pill); padding: 5px 5px 5px 14px; max-width: 560px; align-items: center; box-shadow: var(--shadow-3); }
.banner-search .i { color: #8a8599; }
.banner-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: #17141f; font-size: var(--fs-base); height: 36px; }
.banner-search button { height: 36px; padding: 0 16px; border-radius: var(--radius-pill); border: 0; background: #17141f; color: #fff; font-weight: var(--fw-semibold); cursor: pointer; }
.banner-stats { display: flex; gap: var(--s-5); flex-wrap: wrap; }
.banner-stats b { display: block; font-size: var(--fs-lg); }
.banner-stats span { font-size: var(--fs-xs); opacity: 0.85; }
@media (min-width: 960px) {
  .banner { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: var(--s-10) var(--s-10); min-height: 280px; }
}
@media (max-width: 959.98px) { .slide { aspect-ratio: 16 / 9; } }
@media (min-width: 960px) { .slide { aspect-ratio: auto; height: 320px; } }
.slide-brand { display: block; background: none; }
.slide-brand::after { display: none; }
.slide-brand .banner { height: 100%; border-radius: var(--radius-xl); align-content: center; }
@media (max-width: 959.98px) {
  .slide-brand { aspect-ratio: auto; }
  .slide-brand .banner { padding: var(--s-5) var(--s-4); gap: var(--s-3); }
  .slide-brand .banner-stats { display: none; }
}
.slides { align-items: stretch; }

/* Bouton jour / nuit */
.theme-toggle .i-sun, .theme-toggle .i-moon, .theme-toggle .i-monitor { display: none; }
html[data-theme-pref="light"] .theme-toggle .i-sun,
html[data-theme-pref="dark"] .theme-toggle .i-moon,
html:not([data-theme-pref]) .theme-toggle .i-monitor,
html[data-theme-pref="auto"] .theme-toggle .i-monitor { display: inline-block; }

/* ---------- Connexion / inscription ---------- */
.page-auth .page { padding-top: var(--s-4); }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); max-width: 1080px; margin: 0 auto; }
.auth-side { display: none; }
@media (min-width: 960px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-2); }
  .auth-side { display: flex; flex-direction: column; gap: var(--s-6); padding: var(--s-10); background: var(--brand-gradient); color: #fff; }
  .auth-side h2 { color: #fff; font-size: var(--fs-2xl); line-height: 1.15; }
  .auth-main { padding: var(--s-10); display: flex; align-items: center; }
  .auth-card { width: 100%; }
}
.auth-side .brand-name b { color: #fff; background: none; }
.auth-points { display: flex; flex-direction: column; gap: var(--s-3); }
.auth-points li { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--fs-sm); opacity: 0.95; }
.auth-side-foot { margin-top: auto; opacity: 0.85; display: flex; gap: 6px; align-items: center; }
.auth-card { max-width: 480px; margin: 0 auto; }
@media (max-width: 959.98px) { .auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--s-5); } }
.auth-card h1 { font-size: var(--fs-xl); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; background: var(--surface-2); border-radius: var(--radius); }
.auth-tabs a { text-align: center; padding: 8px; border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-2); }
.auth-tabs a.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.auth-alt { border-top: 1px solid var(--border); padding-top: var(--s-4); display: flex; flex-direction: column; gap: 6px; }
.auth-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.auth-icon .i { width: 26px; height: 26px; }
.auth-icon.is-danger { background: var(--danger-soft); color: var(--danger); }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { flex-direction: row; align-items: center; }
.steps li::before { flex: none; }
aside .offers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
aside .offers-grid.is-short > :nth-child(-n+4) { display: flex; }

/* ==========================================================================
   Tableaux de bord (équipe et espace pro) : coque à barre latérale
   ========================================================================== */
.app-shell .page { padding: 0; min-height: 100vh; }
.shell { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
.shell-side {
  position: fixed; inset: 0 auto 0 0; z-index: 60; width: 272px; max-width: 86vw;
  display: flex; flex-direction: column; gap: var(--s-4);
  padding: var(--s-4) var(--s-3); overflow-y: auto;
  background: var(--side-bg, var(--surface)); color: var(--side-text, var(--text));
  border-right: 1px solid var(--border);
  transform: translateX(-102%); transition: transform 220ms var(--ease);
}
.shell-open .shell-side { transform: none; box-shadow: var(--shadow-3); }
.shell-scrim { display: none; }
.shell-open .shell-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: var(--overlay); }
.shell-brand { display: flex; align-items: center; gap: var(--s-2); padding: 4px 8px; }
.shell-brand .tag { margin-left: auto; }
.shell-biz { display: flex; align-items: center; gap: var(--s-2); padding: 10px; border-radius: var(--radius); background: var(--surface-2); }
.shell-nav { display: flex; flex-direction: column; gap: 2px; }
.shell-nav .group { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); padding: 12px 10px 4px; font-weight: var(--fw-semibold); }
.shell-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--text-2); font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.shell-nav a:hover { background: var(--surface-2); color: var(--text); }
.shell-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
.shell-nav .count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 11px; font-weight: var(--fw-bold); display: inline-grid; place-items: center; }
.shell-nav .count.is-soft { background: var(--surface-3); color: var(--text-2); }
.shell-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--border); padding-top: var(--s-3); }
.shell-main { min-width: 0; display: flex; flex-direction: column; }
.shell-top {
  position: sticky; top: 0; z-index: 30; height: 60px; display: flex; align-items: center; gap: var(--s-2);
  padding: 0 var(--gutter); background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.shell-top h1 { font-size: var(--fs-md); }
.shell-top .actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.shell-content { padding: var(--s-5) var(--gutter) calc(var(--bottomnav-h) + var(--s-8)); display: flex; flex-direction: column; gap: var(--s-5); width: 100%; }
@media (min-width: 1080px) {
  .shell { grid-template-columns: 260px minmax(0, 1fr); }
  .shell-side { position: sticky; top: 0; height: 100vh; transform: none; width: auto; max-width: none; box-shadow: none !important; }
  .shell-burger, .shell-scrim { display: none !important; }
  .shell-content { padding-bottom: var(--s-10); }
  .pro-tabbar { display: none; }
}
/* Thème de la console équipe : barre latérale sombre */
.team { --side-bg: #15121d; --side-text: #ece9f5; }
.team .shell-side { border-right-color: #262132; }
.team .shell-nav a { color: #b3adc6; }
.team .shell-nav a:hover { background: #221d2e; color: #fff; }
.team .shell-nav a[aria-current="page"] { background: #2d2443; color: #fff; }
.team .shell-nav .group { color: #7d7791; }
.team .shell-foot { border-top-color: #262132; }
.team .shell-foot a { color: #b3adc6; }
.team .shell-brand .brand-name { color: #fff; }

/* Barre d'onglets du bas (espace pro sur téléphone) */
.pro-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--border); }
.pro-tabbar a, .pro-tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--text-3); font-weight: var(--fw-medium); background: none; border: 0; cursor: pointer; }
.pro-tabbar a[aria-current="page"] { color: var(--primary); }
.pro-tabbar .fab { width: 46px; height: 46px; margin-top: -18px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--brand-gradient); box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35); }

/* Indicateurs */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--s-4); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi-label { font-size: var(--fs-xs); color: var(--text-3); font-weight: var(--fw-semibold); }
.kpi-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.kpi-icon .i { width: 17px; height: 17px; }
.kpi-value { font-size: var(--fs-xl); font-weight: var(--fw-bold); letter-spacing: var(--tracking-tight); font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: var(--fs-xs); color: var(--text-3); }
.kpi-sub .up { color: var(--save); font-weight: var(--fw-semibold); }
.kpi-sub .down { color: var(--danger); font-weight: var(--fw-semibold); }
.kpi.is-alert { border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.kpi.is-alert .kpi-icon { background: var(--danger-soft); color: var(--danger); }
.kpi.is-warn .kpi-icon { background: var(--warning-soft); color: var(--warning); }
.kpi.is-good .kpi-icon { background: var(--save-soft); color: var(--save); }
a.kpi:hover { border-color: var(--border-strong); box-shadow: var(--shadow-1); }

/* Graphique en barres (30 jours) */
.chart { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 8px; }
.chart .b { flex: 1; min-width: 2px; height: 100%; display: flex; align-items: flex-end; position: relative; }
.chart .b span { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 1px 1px; background: var(--primary); opacity: 0.85; }
.chart .b:hover span { opacity: 1; background: var(--brand-2); }
.chart.is-alt .b span { background: var(--save); }
.chart-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); margin-top: 6px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-4) 0; }
.panel-head h2, .panel-head h3 { font-size: var(--fs-base); font-weight: var(--fw-semibold); }
.panel-body { padding: var(--s-4); }
.grid-dash { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1080px) { .grid-dash { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-dash.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-dash .span-2 { grid-column: span 2; } }
.rank { display: flex; flex-direction: column; }
.rank li { display: flex; align-items: center; gap: var(--s-3); padding: 9px 0; border-top: 1px solid var(--border); font-size: var(--fs-sm); }
.rank li:first-child { border-top: 0; }
.rank .bar-bg { flex: 1; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.rank .bar-bg span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.todo { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .todo { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Barre de filtres et tableaux de gestion */
.toolbar { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.toolbar .input, .toolbar .select { height: 36px; width: auto; min-width: 0; }
.toolbar .grow { min-width: 180px; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.table td .sub { display: block; font-size: var(--fs-xs); color: var(--text-3); }
.table tr.is-selected td { background: var(--primary-soft); }
.table input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }
.bulkbar { position: sticky; bottom: calc(var(--bottomnav-h) + 8px); z-index: 20; display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; padding: 10px 12px; border-radius: var(--radius); background: var(--text); color: var(--surface); box-shadow: var(--shadow-3); }
@media (min-width: 1080px) { .bulkbar { bottom: 16px; } }
.bulkbar .input { height: 32px; background: var(--surface); color: var(--text); }
.st { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 11px; font-weight: var(--fw-semibold); white-space: nowrap; background: var(--surface-2); color: var(--text-2); }
.st-pending { background: var(--warning-soft); color: var(--warning); }
.st-approved, .st-active, .st-paid { background: var(--save-soft); color: var(--save); }
.st-rejected, .st-banned, .st-declined { background: var(--danger-soft); color: var(--danger); }
.st-scheduled { background: var(--info-soft); color: var(--info); }
.review-card { display: grid; gap: var(--s-3); grid-template-columns: minmax(0, 1fr); padding: var(--s-4); border-top: 1px solid var(--border); }
.review-card:first-child { border-top: 0; }
@media (min-width: 900px) { .review-card { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }
.dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 12px; font-size: var(--fs-sm); }
.dl dt { color: var(--text-3); }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.empty-state { padding: var(--s-8) var(--s-4); text-align: center; color: var(--text-3); display: flex; flex-direction: column; align-items: center; gap: var(--s-2); }
.empty-state .i { width: 32px; height: 32px; color: var(--save); }
.pager { display: flex; gap: 6px; justify-content: center; align-items: center; padding: var(--s-3); font-size: var(--fs-sm); }
@media (min-width: 1080px) { .pro-tabbar { display: none; } }
.biz-switch { width: 100%; height: 34px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: var(--fs-xs); padding: 0 8px; }
.banner-search { width: 100%; }
.banner-search button { flex: none; }
.auth-side .brand-mark { background: #fff; border-radius: 10px; padding: 3px; }

/* ==========================================================================
   Grands écrans : typographie fluide et mises en page sur toute la largeur
   ========================================================================== */
/* Le texte grandit doucement avec l'écran : 16 px sur téléphone → 18 px sur PC */
html { font-size: clamp(16px, 0.2vw + 15.2px, 18px); }

/* Deux colonnes égales dès la tablette couchée */
.split { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* Contenu principal + colonne d'accompagnement */
.split-aside { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .split-aside { grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr); } .split-aside > aside { position: sticky; top: calc(var(--topbar-h) + var(--s-4)); } }
@media (min-width: 1440px) { .layout-2 { grid-template-columns: minmax(0, 1fr) 420px; } }

/* Formulaires : 1 colonne (téléphone), 2 (tablette), 3 (PC) */
.form-grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .form-grid.cols-3 .span-2 { grid-column: span 2; } .form-grid.cols-3 .span-all { grid-column: 1 / -1; } }
.form-grid.cols-auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.span-all { grid-column: 1 / -1; }
.cards-auto { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); align-items: start; }

/* Espace compte de l'acheteur : menu latéral sur tablette couchée et PC */
.acct-shell { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); align-items: start; }
.acct-side { display: none; }
@media (min-width: 960px) {
  .acct-shell.has-side { grid-template-columns: 250px minmax(0, 1fr); }
  .acct-side { display: flex; flex-direction: column; gap: var(--s-2); position: sticky; top: calc(var(--topbar-h) + var(--s-4)); }
  .acct-only-mobile { display: none !important; }
}
.acct-side .shell-nav a { padding: 8px 10px; }
.acct-home { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1200px) { .acct-home { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Recherche : filtres en colonne fixe sur PC */
.search-layout { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); align-items: start; }
.search-main { min-width: 0; }
@media (min-width: 1080px) {
  .search-layout { grid-template-columns: 270px minmax(0, 1fr); }
  .search-layout .search-side #filters[hidden], .search-layout .search-side #filters { display: block !important; position: sticky; top: calc(var(--topbar-h) + var(--s-4)); inset: auto; background: none; animation: none; z-index: 1; }
  .search-layout .search-side .sheet { max-width: none; max-height: none; border-radius: var(--radius-lg); border: 1px solid var(--border); padding: var(--s-4); animation: none; }
  .search-layout .search-side .sheet-handle, .search-layout .search-side [data-close], .search-layout [data-open="#filters"] { display: none; }
}

/* Pages de texte (aide, charte, conditions) : sommaire à gauche */
.doc-layout { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); align-items: start; }
.doc-toc { display: none; }
@media (min-width: 960px) {
  .doc-layout { grid-template-columns: 260px minmax(0, 1fr); }
  .doc-toc { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--topbar-h) + var(--s-4)); max-height: calc(100vh - 120px); overflow: auto; }
  .doc-toc a { padding: 6px 10px; border-radius: var(--radius-sm); font-size: var(--fs-sm); color: var(--text-2); }
  .doc-toc a:hover, .doc-toc a.is-active { background: var(--surface-2); color: var(--text); }
}
.doc-layout .prose { max-width: 78ch; }
.prose h2 { scroll-margin-top: calc(var(--topbar-h) + 16px); }

/* Assistant : conversation + exemples côte à côte */
.assist-layout { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1080px) { .assist-layout { grid-template-columns: minmax(0, 1fr) 340px; } .assist-layout > aside { position: sticky; top: calc(var(--topbar-h) + var(--s-4)); } }

/* Carte client : la carte + l'explication */
.card-layout { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 960px) { .card-layout { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); } }

/* Aperçu en direct du formulaire de promo */
.preview-pane { display: none; }
@media (min-width: 1200px) {
  .with-preview { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .preview-pane { display: flex; flex-direction: column; gap: var(--s-3); position: sticky; top: calc(60px + var(--s-4)); }
}
@media (max-width: 1079.98px) { .search-side { display: contents; } }

/* ---------- Caisse plein écran (PC de vente) ---------- */
.kiosk .page { padding: 0; min-height: 100vh; }
.kiosk-shell { min-height: 100vh; display: flex; flex-direction: column; }
.kiosk-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: 10px var(--gutter); background: var(--surface); border-bottom: 1px solid var(--border); }
.kiosk-clock { font-size: var(--fs-lg); font-weight: var(--fw-bold); }
.kiosk-body { flex: 1; display: grid; gap: var(--s-5); padding: var(--s-5) var(--gutter); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1080px) { .kiosk-body { grid-template-columns: minmax(0, 1fr) 380px; } .kiosk-side { position: sticky; top: var(--s-5); } }
.kiosk .checkout-form .input { height: 64px; font-size: var(--fs-xl); letter-spacing: 0.08em; font-weight: var(--fw-bold); text-transform: uppercase; }
.kiosk .checkout-form .input-group .btn { height: 64px; padding: 0 28px; font-size: var(--fs-md); }
.kiosk .points { font-size: 3rem; }

/* ---------- Écran en rayon (borne, TV, tablette fixée) ---------- */
.borne .page { padding: 0; min-height: 100vh; }
.borne .toasts, .borne .consent { display: none !important; }
.borne-shell { height: 100vh; display: grid; grid-template-rows: auto 1fr auto; background: var(--bg); overflow: hidden; }
.borne-top, .borne-foot { display: flex; align-items: center; gap: var(--s-5); padding: clamp(12px, 2vw, 32px) clamp(16px, 3vw, 56px); }
.borne-top { justify-content: space-between; border-bottom: 1px solid var(--border); background: var(--surface); }
.borne-top .avatar { width: clamp(44px, 4vw, 72px); height: clamp(44px, 4vw, 72px); font-size: clamp(16px, 1.6vw, 28px); }
.borne-name { font-size: clamp(1.2rem, 2.2vw, 2.6rem); font-weight: var(--fw-bold); line-height: 1.1; }
.borne-sub { color: var(--text-2); font-size: clamp(0.9rem, 1.2vw, 1.4rem); }
.borne-clock { font-size: clamp(1.4rem, 2.6vw, 3rem); font-weight: var(--fw-bold); }
.borne-stage { position: relative; min-height: 0; }
.borne-slide { position: absolute; inset: 0; display: grid; gap: clamp(16px, 3vw, 56px); padding: clamp(16px, 3vw, 56px); grid-template-columns: minmax(0, 1fr); align-items: center; opacity: 0; transform: scale(0.985); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.borne-slide.is-active { opacity: 1; transform: none; }
@media (min-aspect-ratio: 1/1) { .borne-slide { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.borne-media { position: relative; height: 100%; max-height: 62vh; border-radius: var(--radius-xl); overflow: hidden; background: var(--surface-2); }
.borne-media img { width: 100%; height: 100%; object-fit: cover; }
.borne-media .placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: var(--brand-gradient-soft); color: var(--primary); }
.borne-media .badge-deal { position: absolute; left: 4%; top: 5%; height: auto; padding: 0.3em 0.7em; font-size: clamp(1.2rem, 2.6vw, 3rem); }
.borne-info { display: flex; flex-direction: column; gap: clamp(8px, 1.2vw, 20px); }
.borne-info h2 { font-size: clamp(1.8rem, 4.2vw, 5rem); line-height: 1.05; }
.borne-price { display: flex; align-items: baseline; gap: 0.5em; flex-wrap: wrap; font-size: clamp(2rem, 5vw, 6rem); font-weight: var(--fw-bold); color: var(--primary); }
.borne-price s { font-size: 0.45em; color: var(--text-3); font-weight: var(--fw-medium); }
.borne-aisle, .borne-ends { font-size: clamp(1rem, 1.6vw, 1.8rem); color: var(--text-2); display: flex; gap: 8px; align-items: center; }
.borne-foot { border-top: 1px solid var(--border); background: var(--surface); }
.borne-qr { background: #fff; padding: 8px; border-radius: var(--radius); width: clamp(90px, 9vw, 160px); flex: none; }
.borne-qr svg { width: 100%; height: auto; }
.borne-cta { font-size: clamp(1rem, 1.8vw, 2rem); font-weight: var(--fw-bold); }
.borne-dots { margin-left: auto; display: flex; gap: 8px; }
.borne-dots span { width: 10px; height: 10px; border-radius: 99px; background: var(--border-strong); transition: width 300ms; }
.borne-dots span.is-active { width: 28px; background: var(--primary); }

/* ---------- Images : chargement doux, cadrage propre ---------- */
.offer-media { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.offer-media:has(img.is-loaded) { animation: none; background: var(--surface-2); }
.offer-media img { opacity: 0; transition: opacity 240ms var(--ease); }
.offer-media img.is-loaded { opacity: 1; }
/* Photo produit (fond blanc, format variable) : image entière sur un fond flouté */
.offer-media.is-contain::before { content: ""; position: absolute; inset: -20px; background: var(--img) center / cover no-repeat; filter: blur(18px) saturate(1.1); opacity: 0.5; }
.offer-media.is-contain img { position: relative; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .offer-media, .skeleton { animation: none; } }

/* ---------- Densité des tableaux de bord ---------- */
.dense .shell-content { gap: var(--s-3); padding-top: var(--s-3); }
.dense .kpi { padding: var(--s-3); }
.dense .panel-head { padding: var(--s-3) var(--s-3) 0; }
.dense .panel-body { padding: var(--s-3); }
.dense .table td { padding: 7px 10px; }
.dense .table th { padding: 7px 10px; }
.dense .chart { height: 110px; }

/* ---------- Application installée (PWA) ---------- */
.install-bar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom) + 10px); z-index: 70; display: flex; align-items: center; gap: var(--s-3); padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); }
.install-bar img { border-radius: 10px; flex: none; }
@media (min-width: 960px) { .install-bar { left: auto; right: 24px; bottom: 24px; width: 420px; } }
@media (display-mode: standalone), (display-mode: window-controls-overlay) {
  .install-bar, [data-install] { display: none !important; }
  .topbar { padding-top: env(safe-area-inset-top); height: calc(var(--topbar-h) + env(safe-area-inset-top)); }
  .shell-top { padding-top: env(safe-area-inset-top); height: calc(60px + env(safe-area-inset-top)); }
  body { -webkit-user-select: none; user-select: none; }
  input, textarea, .prose, .code, td { -webkit-user-select: text; user-select: text; }
}
@media (display-mode: window-controls-overlay) {
  .topbar, .shell-top { -webkit-app-region: drag; app-region: drag; padding-left: env(titlebar-area-x, 0); }
  .topbar a, .topbar button, .topbar input, .topbar form, .shell-top a, .shell-top button { -webkit-app-region: no-drag; app-region: no-drag; }
}
.banner { grid-template-columns: minmax(0, 1fr); }
.banner > * { min-width: 0; }
@media (min-width: 960px) { .banner { grid-template-columns: minmax(0, 1fr) auto; } }
#offer-form .offer-hero { max-height: 340px; }

/* ---------- Black Friday ---------- */
.bf-hero { margin-top: calc(var(--s-4) * -1); padding: clamp(32px, 6vw, 80px) 0; color: #fff; background: radial-gradient(60% 80% at 15% 0%, rgba(192, 38, 211, 0.45), transparent 60%), radial-gradient(50% 70% at 100% 100%, rgba(245, 158, 11, 0.35), transparent 60%), #111018; }
.bf-grid { display: grid; gap: var(--s-8); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 1024px) { .bf-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.bf-kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.75); font-weight: var(--fw-semibold); }
.bf-title { font-size: clamp(3rem, 9vw, 7.5rem); line-height: 0.95; letter-spacing: -0.03em; color: #fff; }
.bf-title span { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bf-tagline { font-size: clamp(1.05rem, 1.6vw, 1.4rem); color: rgba(255, 255, 255, 0.88); max-width: 640px; }
.bf-dates { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.8); }
.bf-btn { background: #fff; color: #111018; }
.bf-btn:hover { background: #f1eefb; }
.bf-btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); }
.bf-count { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-xl); padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: var(--s-5); backdrop-filter: blur(8px); }
.bf-count-label { font-weight: var(--fw-semibold); color: rgba(255, 255, 255, 0.8); text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--fs-sm); }
.bf-blocks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.5vw, 16px); }
.bf-blocks div { background: rgba(255, 255, 255, 0.08); border-radius: var(--radius-lg); padding: clamp(10px, 1.6vw, 20px) 6px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.bf-blocks b { font-size: clamp(2rem, 5vw, 4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.bf-blocks span, .bf-stats span { font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.7); }
.bf-stats { display: flex; gap: var(--s-8); }
.bf-stats b { display: block; font-size: var(--fs-2xl); }
.bf-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #111018; color: #fff; }
.bf-strip { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; padding: var(--s-4) var(--s-5); border-radius: var(--radius-xl); color: #fff; background: radial-gradient(60% 120% at 0% 0%, rgba(192, 38, 211, 0.5), transparent 60%), radial-gradient(60% 120% at 100% 100%, rgba(245, 158, 11, 0.45), transparent 60%), #111018; }
.bf-strip .bf-title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.bf-strip .bf-blocks { flex: 1; min-width: 260px; max-width: 420px; }
.bf-strip .bf-blocks b { font-size: clamp(1.4rem, 2.4vw, 2rem); }

/* --- Visite guidée de l'espace pro (static/js/tour.js) --- */
.tour-layer{position:fixed;inset:0;z-index:1200}
.tour-ring{position:fixed;border-radius:12px;box-shadow:0 0 0 9999px rgba(10,8,20,.58),0 0 0 3px var(--primary);transition:all .25s ease;pointer-events:none}
.tour-layer.is-center{background:rgba(10,8,20,.58)}
.tour-card{position:fixed;width:min(360px,calc(100vw - 24px));background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-3);padding:18px;display:flex;flex-direction:column;gap:8px;transition:top .25s ease,left .25s ease}
.tour-card.is-center{top:50%!important;left:50%!important;transform:translate(-50%,-50%)}
.tour-count{font-size:var(--fs-xs,.75rem);color:var(--text-3);font-weight:600;text-transform:uppercase;letter-spacing:.04em;margin:0}
.tour-title{font-size:var(--fs-lg,1.15rem);margin:0}
.tour-text{font-size:var(--fs-sm,.9rem);color:var(--text-2);margin:0;line-height:1.5}
.tour-dots{display:flex;gap:5px;flex-wrap:wrap;margin-top:4px}
.tour-dots span{width:7px;height:7px;border-radius:50%;background:var(--border)}
.tour-dots span.on{background:var(--primary);width:18px;border-radius:4px}
.tour-actions{display:flex;align-items:center;gap:8px;margin-top:6px}
.tour-actions .grow{flex:1}
@media (prefers-reduced-motion:reduce){.tour-ring,.tour-card{transition:none}}
@media print{.tour-layer{display:none}}
@media (min-width: 900px) { .review-card.tip-card { grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); } }

/* Choix du type de compte à l'inscription */
.who { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.who-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); border: 1.5px solid var(--border); background: var(--surface); color: var(--text-2); transition: border-color .15s, background .15s; }
.who-opt .i { width: 26px; height: 26px; flex: none; }
.who-opt b { display: block; color: var(--text); font-size: var(--fs-sm); }
.who-opt small { display: block; font-size: var(--fs-xs); color: var(--text-3); line-height: 1.3; }
.who-opt:hover { border-color: var(--primary); }
.who-opt.is-active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
@media (max-width: 420px) { .who-opt { flex-direction: column; align-items: flex-start; gap: 6px; } }
.shop-cta { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.shop-cta:hover { border-color: var(--primary); }

/* Boutons photo (téléphone et tablette uniquement : sur ordinateur, un clic sur le cadre suffit) */
.photo-pick { display: flex; gap: var(--s-2); margin-top: var(--s-2); }
.photo-pick .btn { flex: 1; justify-content: center; }
@media (hover: hover) and (pointer: fine) { .photo-pick { display: none; } }

/* ---------- Réglage de l'écran en magasin (espace pro) ---------- */
.screen-orient { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 640px; }
.screen-opt, .screen-tpl { position: relative; display: flex; gap: 12px; align-items: center; padding: 12px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); cursor: pointer; }
.screen-opt input, .screen-tpl input { position: absolute; opacity: 0; pointer-events: none; }
.screen-opt:has(input:checked), .screen-tpl:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.screen-opt small, .screen-tpl small { display: block; font-size: .78rem; color: var(--text-3); line-height: 1.3; }
.screen-shape { flex: none; border: 3px solid var(--text); border-radius: 5px; background: var(--brand-gradient); }
.screen-shape.is-h { width: 54px; height: 32px; }
.screen-shape.is-v { width: 32px; height: 54px; margin: 0 11px; }
.screen-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.screen-tpl { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 8px 10px; }
.screen-tpl b { font-size: .9rem; padding: 0 2px; }
.screen-tpl small { padding: 0 2px; }
.screen-thumb { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: var(--surface-3); }
.screen-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.screen-setup.is-v .screen-thumb { aspect-ratio: 9 / 16; }
.screen-setup .input-group .btn-outline { border-radius: 0; }
@media (max-width: 560px) { .screen-orient { grid-template-columns: 1fr; } .screen-tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Pack : contenu sur la fiche promo */
.pack-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.pack-list li { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.pack-list .i-sm { color: var(--save); flex: none; }
.saving.is-bad { color: var(--danger); }
.menu-pop-list { z-index: 60 !important; }
.screen-music { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.screen-music .screen-opt { padding: 8px 12px; }
[data-music-preview].is-playing { background: var(--primary-soft); color: var(--primary); }
