﻿/* ==========================================================================
   Lotus Fitness — design system « Encre & corail »
   Encre bleu nuit pour la structure, corail pour l'action, fond pierre clair.
   Typo : Syne (titres, chiffres) + DM Sans (texte), comme Lotus RH.
   Tout le reste reste calme : surfaces plates, filets fins, pas de dégradés.
   ========================================================================== */

:root {
  /* Vert profond — structure, texte, navigation (identité de l'affiche) */
  --ink-950: #04170C;
  --ink-900: #082414;
  --ink-800: #0C331D;
  --ink-700: #12462A;
  --ink-600: #2C5C41;

  /* Lime / vert — action, état actif, accent unique */
  --coral-700: #1B6B3A;  /* texte accentué sur fond clair (contraste AA) */
  --coral-600: #237A42;
  --coral-500: #2E8B4F;
  --coral-300: #A8E063;
  --coral-100: #EDFBE0;

  /* États */
  --green-600: #17784F;
  --green-100: #E4F3EB;
  --amber-600: #9A6412;
  --amber-100: #FBF0DA;
  --red-600: #B42318;
  --red-100: #FBE7E4;
  --blue-600: #2F5DA8;
  --blue-100: #E7EEF9;
  --sand-500: #D9A441;

  /* Neutres */
  --ink: #10231A;
  --ink-soft: #33473B;
  --muted: #6B7A6E;
  --muted-2: #97A399;
  --line: #E4EADF;
  --line-strong: #D2DCC9;
  --bg: #F5F7F2;
  --surface: #FFFFFF;
  --surface-2: #F8FAF5;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  --shadow-pop: 0 12px 32px rgba(10, 36, 20, 0.14);
  --focus: 0 0 0 3px rgba(46, 139, 79, 0.28);

  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --sidebar-w: 248px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--coral-700); text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--font-body); color: var(--ink); margin: 0; letter-spacing: -0.005em; }
h1 { font-size: 1.5rem; font-weight: 700; }
h2 { font-size: 1.06rem; font-weight: 600; }
h3 { font-size: 0.98rem; font-weight: 600; }
p { margin: 0 0 0.6rem; }

img, svg { display: block; max-width: 100%; }
svg.icon { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -0.16em; flex: 0 0 auto; }

::selection { background: var(--coral-300); color: var(--ink-950); }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-sm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --------------------------------------------------------------- shell ---- */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--ink-900);
  color: #E8EFE3;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 12px 16px;
  overflow-y: auto;
  z-index: 40;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px 24px; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark { width: 36px; height: 36px; flex: 0 0 36px; }
.brand-text { line-height: 1; display: block; }
.brand-name {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 0.98rem; letter-spacing: 0; color: #fff; text-transform: uppercase; font-weight: 800; white-space: nowrap;
}
.brand-name span { color: inherit; font-weight: 500; }
.brand-sub { display: block; margin-top: 3px; font-size: 0.7rem; color: rgba(255, 255, 255, 0.5); white-space: nowrap; }

.side-group { margin-bottom: 16px; }
.side-title { font-size: 0.74rem; color: rgba(255, 255, 255, 0.42); padding: 0 12px 6px; font-weight: 500; }
.side-link {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  padding: 8px 12px; margin: 1px 0;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.74);
  font-weight: 500; font-size: 0.92rem;
  transition: background 0.12s ease, color 0.12s ease;
}
.side-link svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: 0.8; }
.side-link:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.side-link.active { background: var(--ink-800); color: #fff; }
.side-link.active::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--coral-500);
}
.side-link.active svg { color: var(--coral-500); opacity: 1; }

.side-foot { margin-top: auto; padding: 14px 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.side-card { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); line-height: 1.45; }
.side-card strong { color: #fff; display: block; font-size: 0.86rem; margin-bottom: 2px; font-weight: 600; }
.side-card a { color: var(--coral-300); font-weight: 600; }
.side-card a:hover { color: #fff; }

.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.main > * { min-width: 0; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 32px;
  background: rgba(245, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-title { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.topbar-title .eyebrow { font-size: 0.76rem; color: var(--muted); }
.topbar-title h1 {
  font-family: var(--font-display); font-size: 1.32rem; font-weight: 700; line-height: 1.15;
  letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.topbar-search {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 8px 12px; min-width: 240px;
}
.topbar-search:focus-within { border-color: var(--ink-600); }
.topbar-search svg { width: 17px; height: 17px; color: var(--muted-2); }
.topbar-search input { border: 0; outline: 0; font: inherit; background: transparent; width: 100%; color: var(--ink); }
.topbar-search input::placeholder { color: var(--muted-2); }

.topbar-actions { display: flex; align-items: center; gap: 10px; }

.user-chip { display: flex; align-items: center; gap: 9px; padding-left: 10px; border-left: 1px solid var(--line); }
.user-chip .avatar { width: 32px; height: 32px; font-size: 0.8rem; }
.user-chip .who { line-height: 1.15; }
.user-chip .who strong { display: block; font-size: 0.84rem; font-weight: 600; }
.user-chip .who span { font-size: 0.72rem; color: var(--muted); }

.content { padding: 28px 32px 56px; }

.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .lead { color: var(--muted); font-size: 0.92rem; }
.page-head .spacer { flex: 1 1 auto; }

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 8px 15px; font: inherit; font-weight: 600; font-size: 0.88rem;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink-900); color: #fff; }
.btn-primary:hover { background: var(--ink-700); color: #fff; }
/* .btn-lime est conservé comme nom historique : c'est le bouton d'accent corail */
.btn-lime, .btn-accent { background: var(--coral-500); color: var(--ink-950); }
.btn-lime:hover, .btn-accent:hover { background: var(--coral-600); color: var(--ink-950); }
.btn-outline { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink-600); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: rgba(10, 36, 20, 0.06); color: var(--ink); }
.btn-danger { background: var(--red-100); color: var(--red-600); }
.btn-danger:hover { background: #F6D4CF; color: var(--red-600); }
.btn-sm { padding: 5px 10px; font-size: 0.8rem; }
.btn-icon { padding: 7px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ----------------------------------------------------------------- cards -- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { font-size: 1rem; }
.card-head .spacer { flex: 1 1 auto; }
.card-body { padding: 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }

.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }
.grid-1-2 { grid-template-columns: 1fr 2fr; }

/* ------------------------------------------------------------------- kpi --
   L'élément signature : gros chiffres en Syne. */
.kpi { position: relative; padding: 18px 20px 16px; }
.kpi-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.kpi-icon {
  width: 28px; height: 28px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink-600); border: 1px solid var(--line);
}
.kpi-icon svg { width: 16px; height: 16px; }
.kpi-icon.gold { color: var(--amber-600); }
.kpi-icon.blue { color: var(--blue-600); }
.kpi-icon.red { color: var(--red-600); background: var(--red-100); border-color: transparent; }
.kpi-label { font-size: 0.86rem; color: var(--muted); font-weight: 500; }
.kpi-value {
  font-family: var(--font-display); font-size: 2.25rem; font-weight: 700;
  letter-spacing: -0.01em; line-height: 1; font-variant-numeric: tabular-nums;
}
.kpi-value small { font-family: var(--font-body); font-size: 0.82rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.kpi-foot { margin-top: 10px; font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi-foot .up { color: var(--green-600); font-weight: 700; }
.kpi-foot .down { color: var(--red-600); font-weight: 700; }
.kpi-band { display: none; }
.product-price { font-family: var(--font-display); font-weight: 700; white-space: nowrap; font-size: 1rem; }

/* ---------------------------------------------------------------- tables -- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 0.89rem; }
.table thead th {
  text-align: left; font-size: 0.78rem; color: var(--muted); font-weight: 600;
  padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions .btn { margin-left: 4px; }
.table-compact tbody td { padding: 9px 14px; }

.person { display: flex; align-items: center; gap: 11px; min-width: 0; }
.person .name { font-weight: 600; color: var(--ink); line-height: 1.25; }
.person .meta { font-size: 0.78rem; color: var(--muted); }
.person .name a { color: var(--ink); }
.person .name a:hover { color: var(--coral-700); }

.avatar {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink-800); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.02em;
}
.avatar.lime { background: var(--coral-100); color: var(--coral-700); }
.avatar.gold { background: var(--amber-100); color: var(--amber-600); }
.avatar.lg { width: 72px; height: 72px; flex-basis: 72px; font-size: 1.6rem; }
.avatar.md { width: 48px; height: 48px; flex-basis: 48px; font-size: 1.05rem; }

/* ---------------------------------------------------------------- badges -- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 4px;
  font-size: 0.76rem; font-weight: 600;
  background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line);
  white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-green { background: var(--green-100); color: var(--green-600); border-color: transparent; }
.badge-red { background: var(--red-100); color: var(--red-600); border-color: transparent; }
.badge-amber { background: var(--amber-100); color: var(--amber-600); border-color: transparent; }
.badge-blue { background: var(--blue-100); color: var(--blue-600); border-color: transparent; }
.badge-gold { background: var(--coral-100); color: var(--coral-700); border-color: transparent; }
.badge-muted { background: transparent; color: var(--muted); }

/* ----------------------------------------------------------------- forms -- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.84rem; font-weight: 600; color: var(--ink-soft); }
.field .hint { font-size: 0.78rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; padding: 9px 12px; font: inherit; font-size: 0.92rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink-700); box-shadow: var(--focus); }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236A7083' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 34px; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1 1 auto; }
.check { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; }
.check input { width: 16px; height: 16px; accent-color: var(--coral-600); }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .search-box {
  display: flex; align-items: center; gap: 8px; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 7px 11px; min-width: 260px;
}
.toolbar .search-box:focus-within { border-color: var(--ink-700); box-shadow: var(--focus); }
.toolbar .search-box svg { width: 17px; height: 17px; color: var(--muted-2); }
.toolbar .search-box input { border: 0; outline: 0; font: inherit; background: transparent; width: 100%; }
.toolbar .seg { display: flex; gap: 2px; border: 1px solid var(--line-strong); padding: 3px; border-radius: var(--radius-sm); background: var(--surface); }
.toolbar .seg a { padding: 5px 11px; border-radius: 4px; font-size: 0.84rem; font-weight: 600; color: var(--muted); }
.toolbar .seg a:hover { color: var(--ink); }
.toolbar .seg a.active { background: var(--ink-900); color: #fff; }

/* ---------------------------------------------------------------- flash --- */
.flash-wrap { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.flash {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500;
  border: 0; border-left: 3px solid; background: var(--surface);
  animation: flash-in 0.2s ease;
}
@keyframes flash-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.flash svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; }
.flash-success { background: var(--green-100); border-color: var(--green-600); color: #11573A; }
.flash-error { background: var(--red-100); border-color: var(--red-600); color: #8E1C13; }
.flash-warning { background: var(--amber-100); border-color: var(--amber-600); color: #7A4F0E; }
.flash-info { background: var(--blue-100); border-color: var(--blue-600); color: #234A86; }

/* -------------------------------------------------------------- landing --- */
.landing { background: var(--bg); }
.landing-nav {
  display: flex; align-items: center; gap: 26px;
  padding: 16px 6vw; position: sticky; top: 0; z-index: 30;
  background: var(--ink-950); color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.landing-nav .brand { padding: 0; }
.landing-nav .brand-sub { color: rgba(255, 255, 255, 0.5); }
.landing-nav .links { display: flex; gap: 24px; margin-left: auto; }
.landing-nav .links a { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; font-weight: 500; }
.landing-nav .links a:hover { color: #fff; }

.hero { position: relative; overflow: hidden; padding: 72px 6vw 88px; background: var(--ink-950); color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; max-width: 1220px; margin: 0 auto; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--coral-300); font-size: 0.92rem; font-weight: 500;
}
.hero .kicker svg { width: 16px; height: 16px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.2rem, 4.2vw, 3.7rem); line-height: 1.04; letter-spacing: -0.02em;
  margin: 18px 0 22px; color: #fff; max-width: 17ch;
}
.hero h1 em { font-style: normal; color: inherit; }
.hero p.lead { font-size: 1.08rem; color: rgba(255, 255, 255, 0.72); max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-cta .btn { padding: 11px 20px; font-size: 0.95rem; }
.hero-stats { display: flex; gap: 40px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.hero-stats .stat strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; line-height: 1; color: #fff; }
.hero-stats .stat span { font-size: 0.84rem; color: rgba(255, 255, 255, 0.56); }

.hero-mock { position: relative; }
.mock-window { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); overflow: hidden; color: var(--ink); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); display: block; }
.mock-body { padding: 16px; display: grid; gap: 12px; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpi { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.mock-kpi b { display: block; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.1; }
.mock-kpi span { font-size: 0.7rem; color: var(--muted); }
.mock-chart { height: 112px; display: flex; align-items: flex-end; gap: 7px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.mock-chart i { flex: 1 1 auto; background: var(--ink-800); border-radius: 2px; display: block; }
.mock-chart i:last-child { background: var(--coral-500); }
.phone-mock {
  position: absolute; right: -14px; bottom: -36px; width: 156px;
  border-radius: 22px; border: 6px solid var(--ink-800); background: var(--surface); overflow: hidden;
  box-shadow: var(--shadow-pop); color: var(--ink);
}
.phone-mock .ph-head { background: var(--coral-500); color: var(--ink-950); padding: 14px 12px 12px; }
.phone-mock .ph-head small { display: block; font-size: 0.6rem; opacity: 0.75; }
.phone-mock .ph-head strong { font-size: 0.74rem; }
.phone-mock .ph-body { padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.phone-mock .ph-tile { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; height: 38px; }

.section { padding: 80px 6vw; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 1120px; margin: 0 auto 36px; }
.section-head .kicker { color: var(--coral-700); font-size: 0.92rem; font-weight: 600; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -0.015em; margin: 6px 0 12px; max-width: 22ch;
}
.section-head p { color: var(--muted); max-width: 60ch; }

.module-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1200px; margin: 0 auto;
  border-top: 1px solid var(--line-strong);
}
.module { padding: 24px 24px 28px 0; border-bottom: 1px solid var(--line); }
.module + .module { }
.module .kpi-icon { margin-bottom: 14px; width: 34px; height: 34px; color: var(--coral-700); background: var(--coral-100); border-color: transparent; }
.module .kpi-icon svg { width: 18px; height: 18px; }
.module h3 { font-size: 1.05rem; margin-bottom: 6px; }
.module p { color: var(--muted); font-size: 0.92rem; margin: 0; max-width: 34ch; }

.offres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1120px; margin: 0 auto; align-items: stretch; }
.offre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; position: relative; }
.offre.populaire { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.offre.populaire h3, .offre.populaire .price { color: #fff; }
.offre.populaire .desc, .offre.populaire .price small { color: rgba(255, 255, 255, 0.6); }
.offre.populaire li { color: rgba(255, 255, 255, 0.82); }
.offre.populaire li svg { color: var(--coral-500); }
.offre.populaire .btn { background: var(--coral-500); border-color: var(--coral-500); color: var(--ink-950); }
.offre.populaire .btn:hover { background: var(--coral-600); }
.offre .ribbon {
  position: absolute; top: 22px; right: 22px;
  background: var(--coral-500); color: var(--ink-950); font-size: 0.76rem; font-weight: 600;
  padding: 3px 9px; border-radius: 4px; white-space: nowrap;
}
.offre .badge { align-self: flex-start; margin-bottom: 14px; }
.offre h3 { font-size: 1.15rem; }
.offre .desc { color: var(--muted); font-size: 0.9rem; min-height: 40px; }
.offre .price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; line-height: 1; margin: 16px 0 2px; }
.offre .price small { font-family: var(--font-body); font-size: 0.84rem; color: var(--muted); font-weight: 500; }
.offre ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 8px; }
.offre li { display: flex; gap: 8px; font-size: 0.9rem; color: var(--ink-soft); }
.offre li svg { width: 17px; height: 17px; color: var(--green-600); flex: 0 0 17px; margin-top: 2px; }
.offre .btn { margin-top: auto; }

.cta-band {
  background: var(--coral-500); color: var(--ink-950);
  border-radius: var(--radius-lg); padding: 40px 44px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap; max-width: 1120px; margin: 0 auto;
}
.cta-band h2 { color: var(--ink-950); font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; line-height: 1.1; }
.cta-band p { color: rgba(10, 36, 20, 0.75); margin: 8px 0 0; }
.cta-band .btn-lime, .cta-band .btn-accent, .cta-band .btn-primary { background: var(--ink-950); color: #fff; }
.cta-band .btn-ghost { color: var(--ink-950) !important; border-color: rgba(10, 36, 20, 0.35) !important; }

.landing-foot { background: var(--ink-950); color: rgba(255, 255, 255, 0.6); padding: 44px 6vw; font-size: 0.88rem; }
.landing-foot .inner { max-width: 1120px; margin: 0 auto; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.landing-foot strong { color: #fff; }
.landing-foot a { color: var(--coral-300); }

/* ----------------------------------------------------------------- login -- */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); }
.login-art {
  background: var(--ink-950);
  color: #fff; padding: 56px 6vw; display: flex; flex-direction: column; justify-content: space-between;
}
.login-art h2 {
  color: #fff; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.06; letter-spacing: -0.02em; max-width: 16ch;
}
.login-art p { color: rgba(255, 255, 255, 0.68); max-width: 40ch; }
.login-art .points { display: grid; gap: 12px; margin-top: 28px; }
.login-art .points div { display: flex; gap: 10px; font-size: 0.94rem; color: rgba(255, 255, 255, 0.84); }
.login-art .points svg { width: 19px; height: 19px; color: var(--coral-500); flex: 0 0 19px; }
.login-form-wrap { display: grid; place-items: center; padding: 40px 24px; }
.login-card { width: 100%; max-width: 380px; }
.login-card h1 { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; margin-bottom: 8px; }
.login-card .sub { color: var(--muted); font-size: 0.94rem; margin-bottom: 26px; }
.login-card form { display: grid; gap: 15px; }
.login-hint { margin-top: 22px; padding: 12px 14px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); font-size: 0.82rem; color: var(--muted); }
.login-hint code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; color: var(--ink-soft); }

/* ----------------------------------------------------------------- charts - */
.chart-bars { display: flex; align-items: flex-end; gap: 10px; height: 200px; padding-top: 8px; overflow-x: auto; overflow-y: hidden; }
.chart-bar { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.chart-bar .col { width: 100%; max-width: 28px; border-radius: 3px 3px 0 0; background: var(--ink-700); min-height: 3px; transition: background 0.12s ease; }
.chart-bar:last-child .col { background: var(--coral-500); }
.chart-bar:hover .col { background: var(--ink-900); }
.chart-bar:last-child:hover .col { background: var(--coral-600); }
.chart-bar .lbl { font-size: 0.74rem; color: var(--muted); white-space: nowrap; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 14px; }
.chart-legend .item { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--ink-soft); }
.chart-legend .sw { width: 10px; height: 10px; border-radius: 2px; flex: 0 0 10px; }
.donut-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.donut { width: 140px; height: 140px; flex: 0 0 140px; }
.donut circle { fill: none; stroke-width: 5.5; }
.donut .track { stroke: var(--surface-2); }

.progress { height: 6px; background: #E9EFE3; border-radius: 3px; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 3px; background: var(--ink-700); }

/* ------------------------------------------------------------- pagination - */
.pagination { display: flex; align-items: center; gap: 6px; justify-content: space-between; padding: 14px 18px; border-top: 1px solid var(--line); }
.pagination .info { font-size: 0.82rem; color: var(--muted); }
.pagination .pages { display: flex; gap: 4px; }
.pagination a, .pagination span.page {
  min-width: 32px; height: 32px; display: grid; place-items: center; padding: 0 8px;
  border-radius: var(--radius-sm); font-size: 0.84rem; font-weight: 600; color: var(--ink-soft); border: 1px solid var(--line);
  background: var(--surface);
}
.pagination a:hover { border-color: var(--ink-600); }
.pagination .current { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* ------------------------------------------------------------------- misc - */
.empty { padding: 46px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 36px; height: 36px; margin: 0 auto 12px; color: var(--muted-2); }
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; }

.divider { height: 1px; background: var(--line); margin: 18px 0; border: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.84rem; }
.tiny { font-size: 0.76rem; }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; font-size: 0.92em; color: var(--ink-soft); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flex-center { display: flex; align-items: center; gap: 10px; }
.flex-wrap { flex-wrap: wrap; }
.gap-6 { gap: 6px; } .gap-10 { gap: 10px; } .gap-16 { gap: 16px; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.w-full { width: 100%; }

.stat-list { display: grid; gap: 12px; }
.stat-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.9rem; }
.stat-line span { color: var(--muted); }
.stat-line strong { font-variant-numeric: tabular-nums; }

.timeline { display: grid; }
.timeline-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.timeline-item:last-child { border-bottom: 0; }
.timeline-item .op-icon { width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-600); display: grid; place-items: center; flex: 0 0 30px; }
.timeline-item .op-icon svg { width: 16px; height: 16px; }
.timeline-item .grow { flex: 1 1 auto; min-width: 0; }
.timeline-item .grow .t { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timeline-item .grow .s { font-size: 0.78rem; color: var(--muted); }
.timeline-item .amount { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.95rem; white-space: nowrap; color: var(--green-600); }

.day-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.day-head { padding: 10px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.day-head strong { font-family: var(--font-display); font-size: 0.98rem; font-weight: 700; }
.day-head span { font-size: 0.76rem; color: var(--muted); }
.day-card.today { border-color: var(--ink-900); }
.day-card.today .day-head { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.day-card.today .day-head strong { color: #fff; }
.day-card.today .day-head span { color: var(--coral-300); }
.slot { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.slot:last-child { border-bottom: 0; }
.slot .t { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.slot .t strong { font-size: 0.86rem; }
.slot .t time { font-size: 0.76rem; color: var(--coral-700); font-weight: 600; font-variant-numeric: tabular-nums; }
.slot .c { font-size: 0.76rem; color: var(--muted); margin-top: 2px; }

.section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.section-title h2 { font-size: 1.06rem; }
.section-title .spacer { flex: 1 1 auto; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs a { padding: 9px 14px; font-size: 0.9rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--ink); border-color: var(--coral-500); }

.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 36, 20, 0.5); display: none; z-index: 80; }
.modal-backdrop.open { display: block; }
dialog.modal { border: 0; border-radius: var(--radius-lg); padding: 0; box-shadow: var(--shadow-pop); max-width: 560px; width: calc(100% - 32px); }
dialog.modal::backdrop { background: rgba(10, 36, 20, 0.5); }

/* --------------------------------------------------------------- receipt -- */
.receipt-page { background: var(--bg); min-height: 100vh; padding: 32px 16px; }
.receipt { max-width: 420px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.receipt .r-head { text-align: center; padding-bottom: 16px; border-bottom: 1px dashed var(--line-strong); }
.receipt .r-head .brand-mark { margin: 0 auto 8px; }
.receipt .r-head .brand-name { color: var(--ink); }
.receipt .r-title { font-size: 0.82rem; color: var(--muted); margin-top: 10px; }
.receipt .r-meta { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--muted); margin: 14px 0; }
.receipt .r-meta strong { color: var(--ink); }
.receipt table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.receipt th { text-align: left; font-size: 0.76rem; color: var(--muted); font-weight: 600; padding: 8px 0; border-bottom: 1px solid var(--line); }
.receipt td { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.receipt .totals { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding-top: 14px; border-top: 2px solid var(--ink-900); }
.receipt .totals strong { font-family: var(--font-display); font-size: 1.4rem; line-height: 1; }
.receipt .thanks { text-align: center; font-size: 0.82rem; color: var(--muted); margin-top: 20px; }
.receipt-actions { max-width: 420px; margin: 18px auto 0; display: flex; gap: 10px; justify-content: center; }

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
  .module-grid, .offres { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone-mock { display: none; }
  .offres { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .module-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .sidebar {
    position: fixed; left: 0; top: 0; transform: translateX(-100%);
    transition: transform 0.2s ease; box-shadow: var(--shadow-pop);
  }
  .sidebar.open { transform: none; }
  .shell { display: block; }
  .main { min-width: 0; overflow-x: clip; }
  .topbar { padding: 12px 16px; gap: 8px; flex-wrap: nowrap; }
  .topbar-title { flex: 1 1 auto; min-width: 0; }
  .topbar-title .eyebrow { display: none; }
  .topbar-title h1 { font-size: 1.05rem; }
  .topbar-search { display: none; }
  .topbar-actions { gap: 6px; flex: 0 0 auto; }
  .topbar-actions > .btn { font-size: 0; padding: 8px 9px; gap: 0; }
  .topbar-actions > .btn svg { width: 18px; height: 18px; }
  .user-chip { padding-left: 6px; gap: 4px; }
  .user-chip .who { display: none; }
  .user-chip .btn-icon { padding: 6px; }
  .content { padding: 18px 16px 40px; }
  .grid-4, .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .kpi-value { font-size: 2rem; }
  .page-head { align-items: flex-start; }
  .section { padding: 52px 16px; }
  .hero { padding: 48px 16px 60px; }
  .hero-stats { gap: 24px; }
  .hero-stats .stat strong { font-size: 1.6rem; }
  .landing-nav { padding: 14px 16px; }
  .landing-nav .links { display: none; }
  .cta-band { padding: 28px; }
  .table { font-size: 0.86rem; }
}

.sidebar-toggle { display: none; }
@media (max-width: 860px) {
  .sidebar-toggle { display: inline-flex; }
}

@media print {
  .sidebar, .topbar, .receipt-actions, .flash-wrap { display: none !important; }
  .content { padding: 0; }
  .receipt { border: 0; }
}

/* ------------------------------------------------------------------ V2 */
/* Alertes du tableau de bord */
.alertes { display: grid; gap: 10px; }
.alerte {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); border-left-width: 4px;
}
.alerte .grow { flex: 1 1 220px; min-width: 0; }
.alerte-icone { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px; }
.alerte-icone svg { width: 18px; height: 18px; }
.alerte-red { border-left-color: var(--red-600); }
.alerte-red .alerte-icone { background: var(--red-100); color: var(--red-600); }
.alerte-amber { border-left-color: var(--amber-600); }
.alerte-amber .alerte-icone { background: var(--amber-100); color: var(--amber-600); }
.alerte-blue { border-left-color: var(--blue-600); }
.alerte-blue .alerte-icone { background: var(--blue-100); color: var(--blue-600); }
.kpi-value small.up { color: var(--green-600); font-weight: 700; }
.kpi-value small.down { color: var(--red-600); font-weight: 700; }

/* Check-in par scan */
.scan-zone { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.scan-zone .input { flex: 1 1 200px; font-family: ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.scan-video { width: 100%; max-width: 360px; border-radius: var(--radius); background: #000; margin-top: 12px; display: none; }
.scan-video.actif { display: block; }

/* QR de la carte membre */
.carte-qr { background: #fff; border-radius: 10px; padding: 6px; line-height: 0; }
.carte-qr svg path { fill: #04240f; }

/* Ticket thermique 80 mm */
body.ticket .receipt-page { padding: 12px 0; }
body.ticket .receipt { width: 72mm; max-width: 72mm; padding: 4mm 3mm; font-size: 11px; box-shadow: none; border-radius: 0; }
body.ticket .receipt .r-title { font-size: 13px; }
body.ticket .receipt table { font-size: 10.5px; }
@media print {
  body.ticket { margin: 0; }
  body.ticket .receipt { width: 72mm; margin: 0; }
}

/* Lien vers un justificatif */
.piece-jointe { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; }
.piece-jointe svg { width: 14px; height: 14px; }
.tabs { flex-wrap: wrap; overflow-x: auto; }
html { scroll-padding-top: 80px; }

/* Bouton « œil » des champs mot de passe */
.pwd-wrap { position: relative; display: block; min-width: 0; }
.pwd-wrap > .input { width: 100%; padding-right: 44px; }
.pwd-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: inline-grid; place-items: center; width: 32px; height: 32px;
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); cursor: pointer;
}
.pwd-toggle:hover { color: var(--ink); background: var(--surface-2); }
.pwd-toggle:focus-visible { outline: none; box-shadow: var(--focus); color: var(--ink); }
