/* ==========================================================================
   SENGESTFIT V2 — Design system
   Rouge SengestFit · Noir · Blanc. Mobile d'abord, léger, sans dépendance.
   ========================================================================== */

:root {
  --red: #C9404F;          /* rouge SengestFit (logo) */
  --red-600: #B0323F;
  --red-700: #8F2632;
  --red-50: #FCEFF1;
  --red-100: #F8D9DD;
  --ink: #0B0B0F;          /* noir premium */
  --ink-2: #16161D;
  --ink-3: #23232D;
  --ink-4: #34343F;
  --white: #FFFFFF;
  --bg: #F6F6F8;
  --surface: #FFFFFF;
  --line: #E7E7EC;
  --line-2: #D9D9E0;
  --text: #15151B;
  --muted: #6B6B78;
  --muted-2: #9A9AA6;
  --ok: #15803D;
  --ok-bg: #E8F6EE;
  --warn: #B45309;
  --warn-bg: #FEF3E2;
  --danger: #B91C1C;
  --danger-bg: #FDECEC;
  --info: #1D4ED8;
  --info-bg: #EAF0FE;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 11, 15, .06), 0 1px 1px rgba(11, 11, 15, .04);
  --shadow: 0 8px 24px rgba(11, 11, 15, .08), 0 2px 6px rgba(11, 11, 15, .05);
  --shadow-lg: 0 24px 60px rgba(11, 11, 15, .18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Barlow Condensed", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sidebar: 248px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--red-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 2.5vw + 1rem, 2.4rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1rem; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.mono, .tabular { font-variant-numeric: tabular-nums; }
.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: .95; }
.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; }
:focus-visible { outline: 3px solid rgba(201, 64, 79, .45); outline-offset: 2px; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }

/* ---------- Grille & utilitaires ---------- */
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }
.stack-sm > * + * { margin-top: .5rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid { display: grid; gap: 1rem; }
[data-stack-mobile] > * { min-width: 0; }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.span-2 { grid-column: span 2; }
@media (max-width: 760px) { .span-2 { grid-column: auto; } }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
.text-right { text-align: right; } .center { text-align: center; }
.nowrap { white-space: nowrap; }
.w-100 { width: 100%; }
.hide-sm { } @media (max-width: 760px) { .hide-sm { display: none !important; } }
.show-sm { display: none; } @media (max-width: 760px) { .show-sm { display: initial; } }

/* ---------- Boutons ---------- */
.btn {
  --b-bg: var(--ink); --b-fg: #fff; --b-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .6rem 1.1rem; border-radius: 12px; border: 1px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg); font: 600 .95rem/1.1 var(--font); cursor: pointer;
  text-decoration: none !important; transition: transform .12s var(--ease), background .15s, box-shadow .15s, border-color .15s;
  white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }
.btn-primary { --b-bg: var(--red); box-shadow: 0 6px 18px rgba(201, 64, 79, .28); }
.btn-primary:hover { --b-bg: var(--red-600); filter: none; }
.btn-light { --b-bg: #fff; --b-fg: var(--text); --b-bd: var(--line-2); }
.btn-light:hover { --b-bd: var(--ink-4); filter: none; }
.btn-ghost { --b-bg: transparent; --b-fg: var(--text); }
.btn-ghost:hover { --b-bg: rgba(11, 11, 15, .05); filter: none; }
.btn-danger { --b-bg: #fff; --b-fg: var(--danger); --b-bd: #F3C7C7; }
.btn-ok { --b-bg: var(--ok); }
.btn-white { --b-bg: #fff; --b-fg: var(--ink); }
.btn-outline-white { --b-bg: transparent; --b-fg: #fff; --b-bd: rgba(255, 255, 255, .45); }
.btn-outline-white:hover { --b-bd: #fff; filter: none; }
.btn-sm { min-height: 34px; padding: .35rem .75rem; font-size: .85rem; border-radius: 9px; }
.btn-lg { min-height: 54px; padding: .8rem 1.5rem; font-size: 1.05rem; border-radius: 14px; }
.btn-block { width: 100%; white-space: normal; text-align: center; height: auto; min-height: 2.75rem; line-height: 1.25; }
.btn-icon { width: 44px; padding: 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--red-600); font: inherit; cursor: pointer; }

/* ---------- Formulaires ---------- */
.field { display: block; margin-bottom: 1rem; }
.field > span, .label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; color: var(--ink-3); }
.field small { display: block; color: var(--muted); margin-top: .3rem; }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: .65rem .85rem; border: 1px solid var(--line-2); border-radius: 12px;
  background: #fff; color: var(--text); font: 400 1rem/1.3 var(--font); transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
.select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(201, 64, 79, .14); }
.input-lg { min-height: 56px; font-size: 1.15rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .75rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--red); margin-top: 2px; flex: none; }
.form-grid { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.input-group { display: flex; }
.input-group .input { border-radius: 12px 0 0 12px; }
.input-group .btn { border-radius: 0 12px 12px 0; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1rem .25rem; margin: 0 0 1rem; }
legend { font-weight: 700; padding: 0 .4rem; }

/* Sélecteur de mode de paiement */
.paygrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .5rem; }
.paygrid label { position: relative; }
.paygrid input { position: absolute; opacity: 0; }
.paygrid span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; min-height: 64px; padding: .5rem;
  border: 1.5px solid var(--line-2); border-radius: 12px; font-weight: 700; font-size: .9rem; cursor: pointer; background: #fff; text-align: center;
}
.paygrid span i { font-style: normal; font-size: .72rem; font-weight: 500; color: var(--muted); }
.paygrid input:checked + span { border-color: var(--red); background: var(--red-50); color: var(--red-700); box-shadow: 0 0 0 3px rgba(201, 64, 79, .12); }
.paygrid input:focus-visible + span { outline: 3px solid rgba(201, 64, 79, .45); }
.pm-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.pm-especes { background: #15803D; } .pm-wave { background: #1DC8F2; } .pm-orange_money { background: #FF7900; } .pm-portefeuille { background: var(--red); }

/* ---------- Cartes ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.25rem; }
.card-flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card-dark { background: var(--ink); color: #fff; border-color: var(--ink-3); }
.card-dark .muted { color: #A8A8B5; }
.section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); margin: 0 0 .75rem; }

/* Tuiles statistiques */
.stat { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); }
.stat .k { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat .v { font: 800 1.7rem/1.1 var(--font); margin-top: .35rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat .d { font-size: .82rem; margin-top: .3rem; color: var(--muted); }
.stat .d.up { color: var(--ok); } .stat .d.down { color: var(--danger); }
.stat-accent { background: linear-gradient(135deg, var(--ink) 0%, #26262f 100%); color: #fff; border-color: var(--ink); overflow: hidden; }
.stat-accent .k, .stat-accent .d { color: #BDBDC8; }
.stat-accent::after { content: ""; position: absolute; right: -24px; top: -24px; width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 64, 79, .55), transparent 70%); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .18rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: #EFEFF3; color: var(--ink-3); white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-red { background: var(--red-50); color: var(--red-700); }
.badge-dark { background: var(--ink); color: #fff; }
.badge-sim { background: repeating-linear-gradient(-45deg, #FEF3E2, #FEF3E2 6px, #FDE7C6 6px, #FDE7C6 12px); color: #92400E; border: 1px dashed #F59E0B; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: .85rem; font-weight: 600; color: var(--ink-3); }
.chip.active, .chip:hover { border-color: var(--ink); background: var(--ink); color: #fff; text-decoration: none; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: .7rem .9rem; border-bottom: 1px solid var(--line); background: #FAFAFB; white-space: nowrap; }
.table td { padding: .75rem .9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FBFBFC; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-compact td, .table-compact th { padding: .5rem .7rem; }

/* ---------- Alertes & toasts ---------- */
.alert { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 12px; border: 1px solid; margin-bottom: 1rem; font-size: .95rem; }
.alert-success { background: var(--ok-bg); border-color: #BFE5CD; color: #14532D; }
.alert-error { background: var(--danger-bg); border-color: #F5C2C2; color: #7F1D1D; }
.alert-info { background: var(--info-bg); border-color: #C9D7FB; color: #1E3A8A; }
.alert-warn { background: var(--warn-bg); border-color: #F7D9A8; color: #78350F; }
.toasts { position: fixed; z-index: 90; right: 16px; bottom: 16px; display: grid; gap: .5rem; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: #fff; padding: .85rem 1rem; border-radius: 12px; box-shadow: var(--shadow-lg); animation: toast-in .3s var(--ease); font-size: .92rem; }
.toast.ok { border-left: 4px solid #22C55E; } .toast.err { border-left: 4px solid var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Avatar ---------- */
.avatar { --s: 44px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: calc(var(--s) * .38); color: #fff; background: linear-gradient(135deg, var(--red) 0%, var(--ink) 120%); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { --s: 88px; } .avatar-xl { --s: 132px; } .avatar-sm { --s: 32px; }
.av-1 { background: linear-gradient(135deg, #C9404F, #3B0A12); } .av-2 { background: linear-gradient(135deg, #1F2937, #C9404F); }
.av-3 { background: linear-gradient(135deg, #B45309, #1F2937); } .av-4 { background: linear-gradient(135deg, #0F766E, #0B0B0F); }
.av-5 { background: linear-gradient(135deg, #4338CA, #0B0B0F); } .av-6 { background: linear-gradient(135deg, #BE185D, #0B0B0F); }

/* ---------- Modale ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 16px; background: rgba(11, 11, 15, .55); backdrop-filter: blur(3px); }
.modal.open { display: grid; animation: fade .2s; }
.modal-box { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 1.4rem; animation: pop .25s var(--ease); }
.modal-box h3 { margin-bottom: .75rem; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }

/* ---------- Vides ---------- */
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty .ico { width: 56px; height: 56px; margin: 0 auto .75rem; border-radius: 16px; display: grid; place-items: center; background: #F0F0F3; color: var(--ink-4); }

/* ---------- Icônes ---------- */
.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; } .i-lg { width: 28px; height: 28px; }

/* ==========================================================================
   SITE PUBLIC
   ========================================================================== */
.pub-nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 15, .92); backdrop-filter: saturate(140%) blur(10px); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.pub-nav .container { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; letter-spacing: -.01em; font-size: 1.15rem; text-decoration: none !important; }
.brand img { height: 38px; width: auto; }
.brand b { color: var(--red); font-weight: 800; }
.pub-links { display: flex; gap: .25rem; margin-left: auto; align-items: center; }
.pub-links a { color: #D8D8E0; padding: .5rem .8rem; border-radius: 10px; font-weight: 600; font-size: .95rem; text-decoration: none; }
.pub-links a:hover, .pub-links a.active { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: .5rem; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .pub-links { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--ink); flex-direction: column; align-items: stretch; padding: .75rem 16px 1.25rem; border-bottom: 1px solid var(--ink-3); }
  .pub-links.open { display: flex; }
  .pub-links a { padding: .85rem 1rem; }
}

.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(900px 500px at 85% 20%, rgba(201, 64, 79, .35), transparent 60%), radial-gradient(700px 400px at 10% 110%, rgba(201, 64, 79, .18), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem); }
.hero h1 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: .9; letter-spacing: .005em; margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { font-size: clamp(1.02rem, 1.2vw + .7rem, 1.2rem); color: #CFCFD8; max-width: 560px; }
.hero-visual { position: relative; justify-self: center; width: min(100%, 440px); aspect-ratio: 3 / 4; }
.hero-visual picture, .hero-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.hero-visual::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 28px; border: 2px solid var(--red); z-index: -1; }
.hero-badge { position: absolute; background: #fff; color: var(--ink); border-radius: 16px; padding: .7rem .9rem; box-shadow: var(--shadow-lg); display: flex; gap: .6rem; align-items: center; font-size: .85rem; font-weight: 600; animation: float 6s ease-in-out infinite; }
.hero-badge b { display: block; font-size: 1.05rem; }
.hero-badge.b1 { left: -28px; top: 18%; } .hero-badge.b2 { right: -22px; bottom: 14%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero-badge { animation: none; } * { scroll-behavior: auto !important; } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { width: min(100%, 360px); } .hero-badge.b1 { left: -8px; } .hero-badge.b2 { right: -8px; } }

.search-bar { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: .5rem; background: #fff; padding: .5rem; border-radius: 18px; box-shadow: var(--shadow-lg); margin-top: 1.5rem; max-width: 640px; }
.search-bar .input, .search-bar .select { border: 0; min-height: 52px; background: #F5F5F7; }
.search-tabs { display: inline-flex; gap: .25rem; background: rgba(255, 255, 255, .08); padding: .25rem; border-radius: 12px; margin-top: 1.75rem; }
.search-tabs button { background: none; border: 0; color: #CFCFD8; font: 600 .92rem var(--font); padding: .5rem .95rem; border-radius: 9px; cursor: pointer; }
.search-tabs button.active { background: #fff; color: var(--ink); }
@media (max-width: 620px) { .search-bar { grid-template-columns: 1fr; } }
.hero-stats { display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-stats b { display: block; font: 800 1.8rem/1 var(--display); color: #fff; }
.hero-stats span { color: #A8A8B5; font-size: .85rem; }

.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .muted { color: #A8A8B5; }
.section-head { max-width: 680px; margin-bottom: 2rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: var(--red); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin-bottom: .75rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.section h2.big { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 4vw, 3.2rem); line-height: .95; }

.universe { position: relative; border-radius: var(--radius-lg); padding: 1.6rem; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.universe:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.universe .tag { font: 800 .72rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.universe h3 { font-family: var(--display); text-transform: uppercase; font-size: 1.9rem; margin: .4rem 0 .5rem; }
.universe .num { position: absolute; right: 1rem; top: .5rem; font: 800 4.5rem/1 var(--display); color: #F1F1F4; z-index: 0; }
.universe > * { position: relative; }
.universe.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.universe.dark .num { color: #1E1E26; } .universe.dark .muted { color: #A8A8B5; }

.steps { counter-reset: s; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { list-style: none; counter-increment: s; background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius); padding: 1.25rem; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 800 2rem/1 var(--display); color: var(--red); margin-bottom: .5rem; }
.steps { padding: 0; margin: 0; }

.pricing { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.price-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; background: #fff; }
.price-card.featured { border: 2px solid var(--red); box-shadow: 0 20px 40px rgba(201, 64, 79, .14); }
.price-card .amount { font: 800 2.4rem/1 var(--display); margin: .5rem 0; }
.price-card ul { padding-left: 1.1rem; color: var(--muted); }

/* Cartes salle / coach */
.gym-card, .coach-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; color: inherit; text-decoration: none !important; }
.gym-card:hover, .coach-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cover { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-art { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background:
  radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--c, #C9404F) 75%, transparent), transparent 55%),
  repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px), var(--ink); }
.cover-art span { font: 800 2.6rem/1 var(--display); letter-spacing: .04em; opacity: .92; text-transform: uppercase; }
.cover .pill { position: absolute; left: .75rem; top: .75rem; background: rgba(11, 11, 15, .75); color: #fff; backdrop-filter: blur(6px); }
.gym-card .body, .coach-card .body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.gym-card h3, .coach-card h3 { margin: 0; font-size: 1.1rem; }
.meta { display: flex; gap: .75rem; flex-wrap: wrap; color: var(--muted); font-size: .85rem; align-items: center; }
.meta span { display: inline-flex; gap: .3rem; align-items: center; }
.price-from { margin-top: auto; padding-top: .5rem; font-weight: 700; }
.price-from b { font-size: 1.15rem; }
.stars { color: #F59E0B; letter-spacing: 1px; font-size: .95rem; white-space: nowrap; }
.coach-card .top { display: flex; gap: .9rem; align-items: center; padding: 1.1rem 1.1rem 0; }
.coach-card.is-sponsored .top { padding-top: 2.2rem; }
.sponsor { position: absolute; right: .75rem; top: .75rem; }
.verified { display: inline-flex; align-items: center; gap: .25rem; color: var(--info); font-weight: 700; font-size: .78rem; }

.filters { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: 1.25rem; }
.filters .field { margin: 0; }
.layout-results { display: grid; grid-template-columns: 1fr 420px; gap: 1.25rem; align-items: start; }
.layout-results .map-sticky { position: sticky; top: 84px; }
@media (max-width: 1020px) { .layout-results { grid-template-columns: 1fr; } .layout-results .map-sticky { position: static; } }

/* Mini-carte OpenStreetMap maison */
.map { position: relative; width: 100%; height: 420px; border-radius: var(--radius); overflow: hidden; background: #E6E6EA; border: 1px solid var(--line); touch-action: none; }
.map .tiles { position: absolute; inset: 0; }
.map .tiles img { position: absolute; width: 256px; height: 256px; max-width: none; user-select: none; -webkit-user-drag: none; }
.map .pin { position: absolute; transform: translate(-50%, -100%); background: var(--red); color: #fff; border: 2px solid #fff; border-radius: 999px; padding: .2rem .55rem; font: 700 .75rem var(--font); box-shadow: var(--shadow); cursor: pointer; white-space: nowrap; }
.map .pin::after { content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--red); border-bottom: 0; }
.map .pin.me { background: var(--info); } .map .pin.me::after { border-top-color: var(--info); }
.map .zoom { position: absolute; right: .6rem; top: .6rem; display: grid; gap: .3rem; z-index: 2; }
.map .zoom button { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; font-size: 1.2rem; cursor: pointer; }
.map .attrib { position: absolute; right: 0; bottom: 0; background: rgba(255, 255, 255, .85); font-size: .68rem; padding: .1rem .4rem; z-index: 2; }
.map .attrib a { color: var(--ink-3); }

/* Fiches détaillées */
.profile-hero { background: var(--ink); color: #fff; padding: 2.5rem 0 4.5rem; position: relative; overflow: hidden; }
.profile-hero::after { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; height: 180%; background: radial-gradient(circle, rgba(201, 64, 79, .35), transparent 60%); }
.profile-hero .container { position: relative; z-index: 1; }
.profile-body { margin-top: -3rem; position: relative; z-index: 2; }
.gallery { display: grid; gap: .5rem; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 160px; border-radius: var(--radius); overflow: hidden; }
.gallery > :first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery:has(> :nth-child(3):last-child) { grid-template-columns: 2fr 1fr; }
.gallery:has(> :nth-child(2):last-child) > :nth-child(2) { grid-row: span 2; }
.gallery:has(> :first-child:last-child) { grid-template-columns: 1fr; }
td.mono { white-space: nowrap; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; } .gallery > :first-child { grid-column: span 2; grid-row: auto; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; font-size: .93rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }
.taglist { display: flex; flex-wrap: wrap; gap: .4rem; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .4rem; }
.slot-grid label { position: relative; }
.slot-grid input { position: absolute; opacity: 0; }
.slot-grid span { display: block; text-align: center; padding: .55rem .2rem; border: 1px solid var(--line-2); border-radius: 10px; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.slot-grid input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.pub-footer { background: var(--ink); color: #A8A8B5; padding: 3rem 0 2rem; font-size: .9rem; }
.pub-footer a { color: #D8D8E0; }
.pub-footer .cols { display: grid; gap: 2rem; grid-template-columns: 1.4fr repeat(3, 1fr); }
.pub-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.pub-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
@media (max-width: 760px) { .pub-footer .cols { grid-template-columns: 1fr 1fr; } }

/* Authentification */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); }
.auth-side { position: relative; overflow: hidden; }
.auth-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.auth-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,15,.1), rgba(11,11,15,.85)); }
.auth-side .quote { position: absolute; left: 2.5rem; right: 2.5rem; bottom: 2.5rem; z-index: 1; color: #fff; }
.auth-side .quote p { font: 800 clamp(2rem, 3.5vw, 3rem)/.95 var(--display); text-transform: uppercase; }
.auth-main { background: #fff; display: grid; place-items: center; padding: 2rem 1.25rem; }
.auth-box { width: min(420px, 100%); }
.auth-box .brand { color: var(--ink); margin-bottom: 2rem; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: #F1F1F4; border-radius: 12px; padding: 4px; margin-bottom: 1.25rem; }
.seg a { text-align: center; padding: .6rem; border-radius: 9px; font-weight: 700; color: var(--muted); text-decoration: none; }
.seg a.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.demo-box { margin-top: 1.5rem; border: 1px dashed var(--line-2); border-radius: 12px; padding: .85rem 1rem; font-size: .84rem; color: var(--muted); background: #FAFAFB; }
.demo-box code { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   APPLICATION (back-office)
   ========================================================================== */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--ink); color: #C9C9D3; display: flex; flex-direction: column; padding: 1rem .75rem; }
.sidebar .brand { padding: .25rem .5rem 1rem; }
.sidebar .brand img { height: 34px; }
.side-ctx { margin: 0 .25rem 1rem; padding: .7rem .8rem; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--ink-3); font-size: .82rem; }
.side-ctx b { color: #fff; display: block; font-size: .92rem; }
.side-group { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: #6E6E7C; margin: 1rem .75rem .35rem; font-weight: 700; }
.side-link { display: flex; align-items: center; gap: .7rem; padding: .62rem .75rem; border-radius: 10px; color: #C9C9D3; font-weight: 600; font-size: .93rem; text-decoration: none !important; position: relative; }
.side-link:hover { background: var(--ink-2); color: #fff; }
.side-link.active { background: linear-gradient(90deg, rgba(201, 64, 79, .22), rgba(201, 64, 79, .05)); color: #fff; }
.side-link.active::before { content: ""; position: absolute; left: -.75rem; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red); }
.side-link .count { margin-left: auto; background: var(--red); color: #fff; font-size: .7rem; padding: .05rem .45rem; border-radius: 999px; }
.side-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--ink-3); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: .75rem; min-height: 64px; padding: .5rem 1.5rem; background: rgba(246, 246, 248, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar .title { font-weight: 700; font-size: 1.05rem; }
.topbar .spacer { flex: 1; }
.menu-btn { display: none; }
.scrim { display: none; }
.content { padding: 1.5rem; width: 100%; max-width: 1400px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head h1 { font-size: 1.6rem; margin: 0; }
.page-head p { margin: .25rem 0 0; color: var(--muted); }
.salle-switch { display: flex; align-items: center; gap: .5rem; }
.salle-switch .select { min-height: 38px; padding-top: .35rem; padding-bottom: .35rem; font-size: .9rem; width: auto; }
.bell { position: relative; }
.bell .dot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; background: var(--red); border-radius: 50%; border: 2px solid var(--bg); }
.licence-banner { background: var(--warn-bg); color: #78350F; border-bottom: 1px solid #F7D9A8; padding: .6rem 1.5rem; font-size: .9rem; font-weight: 600; }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 70; width: 280px; transform: translateX(-100%); transition: transform .25s var(--ease); }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .menu-btn { display: inline-flex; }
  .content { padding: 1rem; }
  .topbar { padding: .5rem 1rem; gap: .5rem; }
  .topbar .title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .salle-switch { min-width: 0; flex: 0 1 auto; max-width: 44vw; }
  .salle-switch .select { max-width: 100%; min-width: 0; text-overflow: ellipsis; }
  .scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 60; display: none; }
  .scrim.open { display: block; }
}

/* Graphiques SVG */
.chart { width: 100%; height: auto; }
.chart .bar { fill: var(--ink); } .chart .bar.hi { fill: var(--red); }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .grid-line { stroke: #ECECF0; }
.chart .area { fill: rgba(201, 64, 79, .12); } .chart .line { fill: none; stroke: var(--red); stroke-width: 2.5; }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .83rem; color: var(--muted); }
.legend span { display: inline-flex; gap: .4rem; align-items: center; }
.bars-h { display: grid; gap: .6rem; }
.bars-h .r { display: grid; grid-template-columns: 120px 1fr auto; gap: .75rem; align-items: center; font-size: .88rem; }
.bars-h .t { height: 10px; border-radius: 999px; background: #EFEFF3; overflow: hidden; }
.bars-h .f { height: 100%; border-radius: 999px; background: var(--ink); }

/* ==========================================================================
   CAISSE (POS)
   ========================================================================== */
.pos { display: grid; grid-template-columns: 380px 1fr; gap: 1rem; align-items: start; }
@media (max-width: 1080px) { .pos { grid-template-columns: 1fr; } }
.pos-search { position: relative; }
.pos-search .input { padding-left: 2.6rem; min-height: 54px; font-size: 1.05rem; }
.pos-search .i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.results { margin-top: .5rem; display: grid; gap: .35rem; }
.result { display: flex; gap: .75rem; align-items: center; width: 100%; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; text-align: left; font: inherit; }
.result:hover, .result.active { border-color: var(--ink); }
.member-card { border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.member-card .mc-head { background: var(--ink); color: #fff; padding: 1.25rem; display: flex; gap: 1rem; align-items: center; position: relative; overflow: hidden; }
.member-card .mc-head::after { content: ""; position: absolute; right: -50px; top: -50px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 64, 79, .5), transparent 70%); }
.member-card .mc-head > * { position: relative; z-index: 1; }
.member-card .mc-body { padding: 1rem 1.25rem 1.25rem; }
.access-state { display: flex; gap: .6rem; align-items: center; padding: .7rem .9rem; border-radius: 12px; font-weight: 700; }
.access-state.ok { background: var(--ok-bg); color: var(--ok); } .access-state.no { background: var(--danger-bg); color: var(--danger); }
.actions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.action-tile { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: 1rem; min-height: 96px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: 700 1rem var(--font); color: var(--ink); text-align: left; transition: border-color .15s, transform .12s; }
.action-tile:hover { border-color: var(--ink); }
.action-tile:active { transform: scale(.98); }
.action-tile small { font-weight: 500; color: var(--muted); }
.action-tile .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #F2F2F5; }
.action-tile.primary { background: var(--red); color: #fff; border-color: var(--red); }
.action-tile.primary small { color: #FBD9DD; } .action-tile.primary .ic { background: rgba(255, 255, 255, .18); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.product { border: 1px solid var(--line); border-radius: 12px; padding: .7rem; background: #fff; cursor: pointer; text-align: left; font: inherit; }
.product:hover { border-color: var(--ink); }
.product b { display: block; font-size: .9rem; }
.product .p { color: var(--red-600); font-weight: 800; }
.product .s { font-size: .75rem; color: var(--muted); }
.product[disabled] { opacity: .4; cursor: not-allowed; }
.cart-line { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.qty { display: inline-flex; align-items: center; gap: .3rem; }
.qty button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; font-weight: 700; }
.total-line { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.25rem; padding-top: .75rem; }
.session-pill { display: inline-flex; gap: .4rem; align-items: center; padding: .3rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.session-pill.on { background: var(--ok-bg); color: var(--ok); } .session-pill.off { background: var(--danger-bg); color: var(--danger); }
.session-pill .d { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.scanner-box { position: relative; aspect-ratio: 1; max-width: 360px; margin: 0 auto; border-radius: 16px; overflow: hidden; background: #000; }
.scanner-box video { width: 100%; height: 100%; object-fit: cover; }
.scanner-box .frame { position: absolute; inset: 14%; border: 3px solid rgba(255, 255, 255, .85); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }

/* Reçu imprimable */
.receipt { width: min(380px, 100%); margin: 0 auto; background: #fff; padding: 1.5rem; border-radius: 14px; border: 1px solid var(--line); font-size: .92rem; }
.receipt .rh { text-align: center; border-bottom: 1px dashed var(--line-2); padding-bottom: .75rem; margin-bottom: .75rem; }
.receipt .rl { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; }
.receipt .tot { border-top: 1px dashed var(--line-2); margin-top: .5rem; padding-top: .5rem; font-weight: 800; font-size: 1.1rem; }
@media print {
  body { background: #fff; }
  .sidebar, .topbar, .no-print, .pub-nav, .pub-footer, .toasts, .member-tabs { display: none !important; }
  .app { display: block; } .content { padding: 0; }
  .receipt { border: 0; }
}

/* ==========================================================================
   BORNE QR (plein écran)
   ========================================================================== */
.kiosk { min-height: 100vh; background: var(--ink); color: #fff; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.kiosk-top { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--ink-3); }
.kiosk-top .brand img { height: 34px; }
.kiosk-main { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2rem; align-items: center; }
@media (max-width: 900px) { .kiosk-main { grid-template-columns: minmax(0, 1fr); padding: 1rem; } .kiosk-main > * { min-width: 0; } .kiosk-top { flex-wrap: wrap; padding: .75rem 1rem; } .kiosk-side h1 { font-size: clamp(1.9rem, 9vw, 2.4rem); overflow-wrap: anywhere; } .kiosk-cam .cam-msg { padding: 1rem; font-size: .9rem; } }
.kiosk-cam { position: relative; aspect-ratio: 1; width: min(100%, 520px); justify-self: center; border-radius: 28px; overflow: hidden; background: #000; border: 1px solid var(--ink-3); }
.kiosk-cam video { width: 100%; height: 100%; object-fit: cover; }
.kiosk-cam .frame { position: absolute; inset: 16%; border-radius: 26px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .45); }
.kiosk-cam .frame::before, .kiosk-cam .frame::after { content: ""; position: absolute; inset: -3px; border-radius: 26px; border: 4px solid var(--red); clip-path: polygon(0 0, 22% 0, 22% 4px, 4px 4px, 4px 22%, 0 22%, 0 78%, 4px 78%, 4px calc(100% - 4px), 22% calc(100% - 4px), 22% 100%, 0 100%, 0 0, 100% 0, 100% 22%, calc(100% - 4px) 22%, calc(100% - 4px) 4px, 78% 4px, 78% 0, 100% 0, 100% 100%, 78% 100%, 78% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 78%, 100% 78%); }
.kiosk-cam .laser { position: absolute; left: 18%; right: 18%; height: 2px; top: 50%; background: linear-gradient(90deg, transparent, var(--red), transparent); animation: scan 2.2s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 22%; } 50% { top: 78%; } }
.kiosk-cam .cam-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 2rem; color: #A8A8B5; }
.kiosk-side h1 { font: 800 clamp(2.4rem, 5vw, 4.2rem)/.9 var(--display); text-transform: uppercase; }
.kiosk-side h1 em { color: var(--red); font-style: normal; }
.kiosk-hist { display: grid; gap: .5rem; margin-top: 1.5rem; }
.kiosk-hist .h { display: flex; gap: .75rem; align-items: center; padding: .6rem .8rem; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--ink-3); font-size: .92rem; }
.kiosk-hist .h .dot { width: 10px; height: 10px; border-radius: 50%; }
.kiosk-hist .h.ok .dot { background: #22C55E; } .kiosk-hist .h.no .dot { background: var(--red); }
.kiosk-foot { padding: .75rem 1.5rem; border-top: 1px solid var(--ink-3); color: #8A8A97; font-size: .85rem; display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; }
.kiosk-result { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; text-align: center; padding: 2rem; color: #fff; }
.kiosk-result.show { display: grid; animation: fade .15s; }
.kiosk-result.ok { background: radial-gradient(circle at 50% 30%, #1F9D55, #0E5C31 70%); }
.kiosk-result.no { background: radial-gradient(circle at 50% 30%, #D2404F, #6E1220 70%); }
.kiosk-result.warn { background: radial-gradient(circle at 50% 30%, #D97706, #7A3E05 70%); }
.kiosk-result .big { font: 800 clamp(3rem, 9vw, 7rem)/.9 var(--display); text-transform: uppercase; margin: 1rem 0 .5rem; }
.kiosk-result .who { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 800; }
.kiosk-result .why { font-size: clamp(1rem, 2vw, 1.4rem); opacity: .92; margin-top: .4rem; }
.kiosk-result .avatar { --s: clamp(120px, 18vw, 200px); margin: 0 auto; border: 6px solid rgba(255, 255, 255, .85); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.kiosk-result .mark { width: 96px; height: 96px; margin: 0 auto; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; }

/* ==========================================================================
   ESPACE MEMBRE (application mobile)
   ========================================================================== */
.mapp { min-height: 100vh; background: #F3F3F6; padding-bottom: 84px; }
.mapp-top { background: var(--ink); color: #fff; padding: 1rem 1rem 3.5rem; position: relative; overflow: hidden; }
.mapp-top::after { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 64, 79, .45), transparent 70%); }
.mapp-top > * { position: relative; z-index: 1; }
.mapp-top .brand img { height: 30px; }
.mapp-wrap { width: min(640px, 100%); margin: -2.5rem auto 0; padding: 0 1rem; position: relative; z-index: 2; }
.member-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom)); }
.member-tabs a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .35rem 0; font-size: .7rem; font-weight: 700; color: var(--muted); text-decoration: none; border-radius: 10px; }
.member-tabs a.active { color: var(--red); }
.member-tabs a.qr { color: #fff; }
.member-tabs a.qr .i { width: 26px; height: 26px; }
.member-tabs a.qr span.b { width: 52px; height: 52px; margin-top: -24px; border-radius: 16px; background: var(--red); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(201, 64, 79, .4); }
.member-tabs a.qr em { font-style: normal; color: var(--ink); }

/* Carte membre numérique */
.mcard { position: relative; border-radius: 22px; padding: 1.25rem; color: #fff; overflow: hidden; background:
  radial-gradient(400px 220px at 110% -10%, rgba(201, 64, 79, .65), transparent 60%),
  radial-gradient(260px 160px at -20% 120%, rgba(201, 64, 79, .35), transparent 60%),
  linear-gradient(160deg, #1A1A22, #0B0B0F); box-shadow: 0 20px 45px rgba(11, 11, 15, .35); aspect-ratio: 1.586; display: flex; flex-direction: column; }
.mcard::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px); }
.mcard > * { position: relative; }
.mcard .ent { padding-right: 7.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 1.25rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.mcard .name { font-weight: 800; font-size: 1.2rem; margin-top: auto; }
.mcard .num { font: 600 .95rem/1 ui-monospace, Menlo, monospace; letter-spacing: .14em; color: #D2D2DA; }
.mcard .state { position: absolute; right: 1.25rem; top: 1.25rem; }
.mcard .chipc { width: 44px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #E9C46A, #B8923A); margin: .9rem 0; opacity: .9; }
.qr-panel { background: #fff; border-radius: 22px; padding: 1.25rem; text-align: center; box-shadow: var(--shadow); }
.qr-panel .qr { width: min(280px, 80vw); margin: .5rem auto; padding: 10px; border-radius: 16px; border: 1px solid var(--line); position: relative; }
.qr-panel .qr svg { width: 100%; height: auto; }
.qr-ring { height: 6px; border-radius: 999px; background: #EFEFF3; overflow: hidden; margin: .5rem auto 0; width: min(280px, 80vw); }
.qr-ring i { display: block; height: 100%; background: var(--red); width: 100%; transition: width 1s linear; }
.qr-panel.expired .qr { filter: blur(4px); opacity: .5; }
.tile-link { display: flex; align-items: center; gap: .9rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; color: inherit; text-decoration: none !important; }
.tile-link:hover { border-color: var(--ink); }
.tile-link .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--red-50); color: var(--red-600); flex: none; }
.tx { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.tx:last-child { border-bottom: 0; }
.tx .amt { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tx .amt.plus { color: var(--ok); }
.progress { height: 8px; border-radius: 999px; background: #EFEFF3; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--red); border-radius: 999px; }

/* Petites animations d'apparition (désactivées si mouvement réduit) */
.reveal { animation: rise .5s var(--ease) both; }
.reveal:nth-child(2) { animation-delay: .05s; } .reveal:nth-child(3) { animation-delay: .1s; } .reveal:nth-child(4) { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .reveal, .modal-box, .toast, .kiosk-cam .laser { animation: none !important; } }

/* Compléments */
details > summary { list-style: none; } details > summary::-webkit-details-marker { display: none; }
details[open] > summary { background: rgba(11,11,15,.06); }
td details { position: relative; }
.result .avatar { color: #fff; }
.action-tile[disabled] { opacity: .45; pointer-events: none; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; background: #F2F2F5; padding: .1rem .35rem; border-radius: 6px; }
.content > .page-head + .grid-4, .content > .page-head + .grid-3 { margin-top: 0; }

/* ======================================================================
   Page de connexion — coach partenaire officiel (préfixe lg-, isolé)
   ====================================================================== */
.lg-body { background: #0E1318; }
.lg { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
.lg-hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(90% 80% at 72% 40%, #18212A 0%, #10161C 45%, #08090C 100%); color: #fff; min-height: 100vh; min-height: 100dvh; }
.lg-glow { position: absolute; z-index: -1; width: 62%; aspect-ratio: 1; left: 40%; top: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(201, 64, 79, .55) 0%, rgba(201, 64, 79, .12) 45%, transparent 70%); filter: blur(10px); animation: lgPulse 6s ease-in-out infinite; }
.lg-grid { position: absolute; inset: 0; z-index: -1; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(70% 60% at 60% 40%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(70% 60% at 60% 40%, #000 30%, transparent 80%); }
.lg-word { position: absolute; z-index: -1; left: 2%; top: 9%; font: 800 clamp(9rem, 22vw, 20rem)/.8 var(--display); letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .07); user-select: none; }
.lg-photo { position: absolute; z-index: 0; right: -2%; bottom: 0; height: 100%; aspect-ratio: 960 / 1720; }
.lg-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block;
  -webkit-mask-image: radial-gradient(ellipse 58% 72% at 50% 40%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 58% 72% at 50% 40%, #000 58%, transparent 100%);
  filter: contrast(1.04) saturate(1.06); }
.lg-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(8, 9, 12, .92) 0%, rgba(8, 9, 12, .55) 38%, transparent 62%), linear-gradient(0deg, rgba(8, 9, 12, .85) 0%, transparent 35%); }
.lg-brand { position: absolute; z-index: 3; left: clamp(1.5rem, 4vw, 3rem); top: clamp(1.25rem, 3vw, 2.25rem); color: #fff; }
.lg-copy { position: absolute; z-index: 3; left: clamp(1.5rem, 4vw, 3rem); bottom: clamp(1.75rem, 5vw, 3.5rem); max-width: min(26rem, 46%); }
.lg-kicker { display: inline-flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #F2A7AF; margin: 0 0 1rem; }
.lg-kicker::before { content: ""; width: 28px; height: 2px; background: var(--red); border-radius: 2px; }
.lg-title { font: 800 clamp(2.2rem, 3.9vw, 3.8rem)/.9 var(--display); text-transform: uppercase; letter-spacing: -.01em; margin: 0; text-shadow: 0 6px 30px rgba(0, 0, 0, .45); }
.lg-title em { font-style: normal; color: var(--red); }
.lg-sub { color: #C9CDD6; margin: 1rem 0 1.5rem; font-size: 1rem; max-width: 26rem; }
.lg-stats { list-style: none; display: flex; gap: .6rem; flex-wrap: wrap; padding: 0; margin: 0; }
.lg-stats li { padding: .55rem .85rem; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); line-height: 1.15; }
.lg-stats b { display: block; font: 800 1.15rem/1 var(--display); letter-spacing: .02em; }
.lg-stats span { font-size: .74rem; color: #A9AFBB; }
.lg-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: .65rem; padding: .65rem .9rem .65rem .65rem; border-radius: 16px; color: var(--ink); background: rgba(255, 255, 255, .94); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); font-size: .84rem; line-height: 1.2; animation: lgFloat 7s ease-in-out infinite; }
.lg-chip b { display: block; } .lg-chip small { color: var(--muted); font-size: .74rem; }
.lg-chip-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--red-50); color: var(--red); flex: none; }
.lg-chip-ic.ok { background: var(--ok-bg); color: var(--ok); }
.lg-chip-1 { right: 5%; top: 20%; }
.lg-chip-2 { right: 4%; top: 64%; animation-delay: -3.5s; }
.lg-main { position: relative; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(1.5rem, 4vw, 3rem) 1.25rem 1.25rem; }
.lg-card { width: min(440px, 100%); }
.lg-brand-form { color: var(--ink); margin-bottom: 2.25rem; }
.lg-eyebrow { margin: 0 0 .35rem; color: var(--red); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.lg-h1 { font: 800 clamp(2.4rem, 4vw, 3.1rem)/.95 var(--display); text-transform: uppercase; letter-spacing: -.01em; margin: 0 0 .6rem; color: var(--ink); }
.lg-lead { color: var(--muted); margin: 0 0 1.6rem; }
.lg-form { display: grid; gap: 1rem; }
.lg-field { display: grid; gap: .4rem; }
.lg-field > span:first-child { font-weight: 600; font-size: .9rem; color: var(--text); }
.lg-input { display: flex; align-items: center; gap: .7rem; min-height: 56px; padding: 0 1rem; border-radius: 14px; background: #F5F5F8; border: 1.5px solid transparent; transition: border-color .2s, background .2s, box-shadow .2s; color: var(--muted-2); }
.lg-input:focus-within { background: #fff; border-color: var(--red); box-shadow: 0 0 0 4px rgba(201, 64, 79, .12); color: var(--red); }
.lg-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.02rem; color: var(--text); height: 54px; }
.lg-input input::placeholder { color: #A3A3AE; }
.lg-submit { margin-top: .4rem; gap: .5rem; min-height: 58px; font-size: 1.05rem; transition: transform .15s, box-shadow .2s; }
.lg-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(201, 64, 79, .35); }
.lg-links { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.25rem; }
.lg-link-card { display: flex; align-items: center; gap: .65rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none !important; transition: border-color .2s, transform .15s, box-shadow .2s; line-height: 1.2; }
.lg-link-card .i { color: var(--red); }
.lg-link-card b { display: block; font-size: .9rem; } .lg-link-card small { color: var(--muted); font-size: .76rem; }
.lg-link-card:hover { border-color: var(--red-100); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.lg-help { display: flex; gap: .5rem; align-items: flex-start; color: var(--muted); font-size: .84rem; margin: 1.25rem 0 0; }
.lg-help .i { color: var(--muted-2); margin-top: .15rem; }
.lg-demo { margin-top: 1.25rem; border: 1px dashed var(--line-2); border-radius: 12px; background: #FAFAFB; font-size: .82rem; color: var(--muted); }
.lg-demo summary { cursor: pointer; padding: .7rem .9rem; font-weight: 600; color: var(--text); }
.lg-demo > div { padding: 0 .9rem .8rem; line-height: 1.7; }
.lg-demo code { color: var(--ink); font-weight: 600; }
.lg-foot { margin: 2rem 0 0; font-size: .76rem; color: var(--muted-2); text-align: center; }
.lg-foot a { color: inherit; }
@keyframes lgFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes lgPulse { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .lg-chip, .lg-glow { animation: none; } }
@media (max-width: 1180px) { .lg-chip-2 { display: none; } .lg-copy { max-width: 52%; } }

/* Smartphone et tablette portrait : visuel en haut, formulaire en « feuille » superposée */
@media (max-width: 900px) {
  .lg { grid-template-columns: minmax(0, 1fr); }
  .lg-hero { min-height: 0; height: 56vh; height: 56svh; max-height: 560px; }
  .lg-photo { right: 50%; transform: translateX(50%); height: 100%; bottom: auto; top: 0; }
  .lg-photo img { -webkit-mask-image: radial-gradient(ellipse 62% 80% at 50% 32%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 62% 80% at 50% 32%, #000 55%, transparent 100%); }
  .lg-shade { background: linear-gradient(0deg, rgba(8, 9, 12, .95) 0%, rgba(8, 9, 12, .35) 42%, transparent 70%), linear-gradient(180deg, rgba(8, 9, 12, .55) 0%, transparent 22%); }
  .lg-glow { width: 120%; left: -10%; top: 10%; }
  .lg-word { top: auto; bottom: 18%; right: -4%; font-size: 9rem; }
  .lg-copy { left: 1.25rem; right: 1.25rem; bottom: 3.25rem; max-width: none; }
  .lg-title { font-size: clamp(2.2rem, 10vw, 3rem); }
  .lg-sub, .lg-stats { display: none; }
  .lg-kicker { margin-bottom: .6rem; font-size: .7rem; }
  .lg-chip-1 { top: auto; bottom: 46%; right: 1rem; padding: .5rem .7rem .5rem .5rem; font-size: .76rem; }
  .lg-chip-1 small { display: none; }
  .lg-main { margin-top: -1.75rem; border-radius: 28px 28px 0 0; z-index: 4; padding: 1.75rem 1.25rem 1.25rem; justify-content: flex-start; box-shadow: 0 -18px 40px rgba(0, 0, 0, .25); }
  .lg-brand-form { display: none; }
  .lg-main::before { content: ""; position: absolute; top: .6rem; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: var(--line-2); }
  .lg-h1 { font-size: 2.2rem; }
  .lg-lead { margin-bottom: 1.25rem; font-size: .95rem; }
  .lg-link-card { padding: .75rem; }
  .lg-link-card small { display: none; }
}
@media (max-width: 380px) { .lg-links { grid-template-columns: 1fr; } .lg-hero { height: 50svh; } }

/* ======================================================================
   Page de connexion — version B « Immersion » (préfixe lb-, isolé)
   ====================================================================== */
.lb-body { background: #07090C; }
.lb { position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden; isolation: isolate; color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 460px); grid-template-rows: auto 1fr auto; gap: 0 clamp(1.5rem, 5vw, 5rem); padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 5vw, 4.5rem) 0; }
.lb-photo { position: absolute; inset: 0; z-index: -3; }
.lb-photo img { position: absolute; left: 22%; bottom: 0; height: 100%; width: auto; max-width: none; object-fit: cover; filter: saturate(1.08) contrast(1.05);
  -webkit-mask-image: radial-gradient(ellipse 54% 72% at 50% 42%, #000 52%, transparent 100%); mask-image: radial-gradient(ellipse 54% 72% at 50% 42%, #000 52%, transparent 100%); }
.lb-veil { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(60% 70% at 35% 45%, rgba(201, 64, 79, .28), transparent 70%),
  linear-gradient(90deg, rgba(7, 9, 12, .9) 0%, rgba(7, 9, 12, .25) 30%, rgba(7, 9, 12, .2) 50%, rgba(7, 9, 12, .85) 72%, #07090C 100%),
  linear-gradient(0deg, #07090C 0%, transparent 30%); }
.lb-ring { position: absolute; z-index: -2; width: min(62vh, 560px); aspect-ratio: 1; left: 30%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 0 0 40px rgba(255, 255, 255, .015), 0 0 0 80px rgba(255, 255, 255, .01); animation: lbSpin 30s linear infinite; }
.lb-ring::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--red); top: -6px; left: 50%; box-shadow: 0 0 18px 4px rgba(201, 64, 79, .8); }
.lb-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; }
.lb-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lb-badge .i { color: #F2A7AF; }
.lb-copy { grid-column: 1; align-self: end; padding-bottom: clamp(5rem, 9vh, 7rem); max-width: 32rem; }
.lb-kicker { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #E4E6EB; }
.lb-flag { display: inline-block; width: 27px; height: 18px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.lb-title { margin: 0; font: 800 clamp(2.6rem, 5.2vw, 5rem)/.88 var(--display); text-transform: uppercase; letter-spacing: -.01em; text-shadow: 0 8px 40px rgba(0, 0, 0, .5); }
.lb-title em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px #fff; }
.lb-sub { margin: 1.1rem 0 0; color: #C3C7D0; max-width: 26rem; }
.lb-main { grid-column: 2; grid-row: 2 / 4; align-self: center; padding-bottom: 4rem; }
.lb-card { position: relative; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 26px; background: linear-gradient(160deg, rgba(28, 32, 40, .78), rgba(14, 16, 21, .9)); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); }
.lb-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(201, 64, 79, .9), transparent 35%, transparent 70%, rgba(255, 255, 255, .25)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
/* Formulaire (mêmes balises que la version A), version sombre */
.lb .lg-eyebrow { color: #F2A7AF; }
.lb .lg-h1 { color: #fff; }
.lb .lg-lead, .lb .lg-help { color: #A9AEB9; }
.lb .lg-field > span:first-child { color: #E6E8EC; }
.lb .lg-input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); color: #8D93A0; }
.lb .lg-input:focus-within { background: rgba(255, 255, 255, .1); border-color: var(--red); color: #F2A7AF; box-shadow: 0 0 0 4px rgba(201, 64, 79, .22); }
.lb .lg-input input { color: #fff; } .lb .lg-input input::placeholder { color: #7D8390; }
.lb .lg-input input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 40px #1C2028 inset; }
.lb .lg-link-card { border-color: rgba(255, 255, 255, .12); color: #fff; background: rgba(255, 255, 255, .03); }
.lb .lg-link-card small { color: #9AA0AC; } .lb .lg-link-card .i { color: #F2A7AF; }
.lb .lg-link-card:hover { border-color: rgba(201, 64, 79, .6); }
.lb .lg-demo { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .14); color: #A9AEB9; }
.lb .lg-demo summary { color: #E6E8EC; } .lb .lg-demo code { color: #fff; }
.lb .alert-success { background: rgba(21, 128, 61, .18); border-color: rgba(34, 197, 94, .35); color: #BBF7D0; }
.lb .alert-error { background: rgba(185, 28, 28, .2); border-color: rgba(248, 113, 113, .4); color: #FECACA; }
.lb-marquee { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(7, 9, 12, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lb-marquee > div { display: flex; width: max-content; animation: lbMarquee 60s linear infinite; }
.lb-marquee span { padding: .7rem 1.4rem; font: 800 .95rem/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: #6E7480; white-space: nowrap; }
.lb-marquee span::after { content: "•"; margin-left: 2.8rem; color: var(--red); }
@keyframes lbMarquee { to { transform: translateX(-50%); } }
@keyframes lbSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lb-marquee > div, .lb-ring { animation: none; } }
@media (max-width: 1100px) { .lb-photo img { left: 6%; } .lb-ring { left: 26%; } }
/* Smartphone : photo plein écran, titre, carte vitrée en bas */
@media (max-width: 900px) {
  .lb { display: flex; flex-direction: column; padding: 1rem 1rem 0; gap: 0; }
  .lb-photo img { left: 50%; transform: translateX(-50%); height: 62vh; height: 62svh; top: 0; bottom: auto;
    -webkit-mask-image: radial-gradient(ellipse 58% 70% at 50% 34%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 58% 70% at 50% 34%, #000 55%, transparent 100%); }
  .lb-veil { background: radial-gradient(90% 50% at 50% 25%, rgba(201, 64, 79, .25), transparent 70%), linear-gradient(180deg, rgba(7, 9, 12, .55) 0%, transparent 18%, transparent 35%, #07090C 62%); }
  .lb-ring { width: 78vw; left: 50%; top: 28vh; }
  .lb-badge { font-size: .7rem; padding: .35rem .6rem; }
  .lb-copy { padding: 30vh 0 1.25rem; padding-top: 30svh; }
  .lb-title { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .lb-sub { display: none; }
  .lb-kicker { font-size: .7rem; margin-bottom: .7rem; }
  .lb-main { padding-bottom: 4.5rem; }
  .lb-card { padding: 1.4rem 1.15rem; border-radius: 22px; }
  .lb .lg-h1 { font-size: 2.1rem; }
  .lb .lg-link-card { padding: .75rem; } .lb .lg-link-card small { display: none; }
  .lb-marquee span { padding: .6rem 1rem; font-size: .8rem; }
}
@media (max-width: 380px) { .lb .lg-links { grid-template-columns: 1fr; } }
