/* ==========================================================
   RED ORIGIN — Espace membre
   Mêmes couleurs et typographie que le site (Archivo, rouge #b51717, noir).
   ========================================================== */
:root {
  --red: #b51717;
  --red-dk: #921212;
  --red-lt: #f6e3e3;
  --black: #0b0b0c;
  --white: #fff;
  --bg: #f3f3f4;
  --concrete: #e9eaec;
  --concrete-2: #dcdee1;
  --graphite: #26272b;
  --text: #2a2c30;
  --muted: #5e626a;
  --line: #d6d8dc;
  --ok: #1e7a46;
  --ok-lt: #e3f3ea;
  --warn: #9a5b00;
  --warn-lt: #fff1d6;
  --off: #6b6f77;
  --off-lt: #eceef0;
  --font: "Archivo", "Arial Narrow", Arial, system-ui, sans-serif;
  --narrow: 64%;
  --radius: 6px;
  --shadow: 0 10px 30px -18px rgba(0, 0, 0, .35);
  --nav-h: 64px;
  --side: 248px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.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; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-line; }
h1, h2, h3, .t { font-stretch: var(--narrow); font-weight: 800; line-height: 1.05; color: var(--black); margin: 0; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 4.4vw, 1.9rem); }
h3 { font-size: 1.3rem; }
.kicker { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin: 0 0 4px; }
.ic { width: 20px; height: 20px; flex-shrink: 0; }
.ic--s { width: 16px; height: 16px; }

/* ── Boutons ── */
.btn { --bg: var(--red); --fg: var(--white); --bd: var(--red); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border: 2px solid var(--bd); background: var(--bg); color: var(--fg); border-radius: var(--radius); font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; text-align: center; line-height: 1.2; }
.btn:hover { --bg: var(--red-dk); --bd: var(--red-dk); color: var(--fg); }
.btn--dark { --bg: var(--black); --bd: var(--black); }
.btn--dark:hover { --bg: var(--graphite); --bd: var(--graphite); }
.btn--ghost { --bg: transparent; --fg: var(--black); --bd: var(--black); }
.btn--ghost:hover { --bg: var(--black); --fg: var(--white); --bd: var(--black); }
.btn--light { --bg: var(--white); --fg: var(--black); --bd: var(--line); }
.btn--light:hover { --bg: var(--concrete); --bd: var(--concrete-2); --fg: var(--black); }
.btn--danger { --bg: transparent; --fg: var(--red); --bd: var(--red); }
.btn--danger:hover { --bg: var(--red); --fg: var(--white); }
.btn--sm { min-height: 38px; padding: 6px 12px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.linkbtn .ic { display: inline-block; vertical-align: -3px; }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; color: var(--black); text-decoration: none; }
.iconbtn:hover { background: var(--concrete); }

/* ── Formulaires ── */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .lbl { font-weight: 700; font-size: .92rem; color: var(--black); }
.field .hint { font-size: .82rem; color: var(--muted); margin: 0; }
.in, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); font-size: 1rem; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus, .in:focus { border-color: var(--black); outline: none; box-shadow: 0 0 0 3px rgba(181, 23, 23, .15); }
.field.err input, .field.err select, .field.err textarea { border-color: var(--red); }
.grid2 { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); flex-shrink: 0; }
.formerr { background: var(--red-lt); color: var(--red-dk); border-left: 4px solid var(--red); padding: 10px 12px; border-radius: 4px; margin: 0 0 14px; font-weight: 600; }
.formok { background: var(--ok-lt); color: var(--ok); border-left: 4px solid var(--ok); padding: 10px 12px; border-radius: 4px; margin: 0 0 14px; font-weight: 600; }
.hp { position: absolute; left: -9999px; }

/* ── Pages d'accès (connexion…) ── */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px calc(24px + var(--safe-b)); background: var(--black) radial-gradient(1200px 600px at 80% -10%, rgba(181, 23, 23, .45), transparent 60%); }
.auth__card { width: 100%; max-width: 440px; background: var(--white); border-radius: 10px; padding: 28px 22px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
@media (min-width: 480px) { .auth__card { padding: 34px 32px; } }
.auth__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; text-decoration: none; }
.auth__brand img { width: 52px; height: 52px; }
.auth__brand span { font-stretch: var(--narrow); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; color: var(--black); line-height: 1; }
.auth__brand small { display: block; font-stretch: 100%; font-weight: 600; font-size: .78rem; letter-spacing: .1em; color: var(--red); text-transform: uppercase; margin-top: 3px; }
.auth h1 { font-size: 2rem; margin-bottom: 6px; }
.auth__lead { color: var(--muted); margin: 0 0 20px; }
.auth__alt { margin: 18px 0 0; text-align: center; font-size: .95rem; }
.auth__foot { text-align: center; margin-top: 18px; }
.auth__foot a { color: #c9cbd0; font-size: .9rem; }
.pw { position: relative; }
.pw input { padding-right: 52px !important; }
.pw button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: 0; width: 44px; height: 40px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }

/* ── Structure de l'application ── */
.app { min-height: 100vh; min-height: 100dvh; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--black); color: var(--white); }
.top__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); margin-right: auto; }
.top__brand img { width: 36px; height: 36px; }
.top__brand span { font-stretch: var(--narrow); font-weight: 800; text-transform: uppercase; font-size: 1.15rem; line-height: 1; }
.top__brand small { display: block; font-stretch: 100%; font-size: .66rem; font-weight: 700; letter-spacing: .12em; color: #ff8d8d; }
.top .iconbtn { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .25); }
.top .iconbtn:hover { background: rgba(255, 255, 255, .1); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; font-weight: 800; font-size: .95rem; text-decoration: none; }
.main { padding: 18px 16px calc(var(--nav-h) + 28px + var(--safe-b)); max-width: 1120px; margin: 0 auto; }
.nav { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--white); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); box-shadow: 0 -6px 20px -14px rgba(0, 0, 0, .3); }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--nav-h); text-decoration: none; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .01em; }
.nav a[aria-current="page"] { color: var(--red); }
.nav a[aria-current="page"] .ic { stroke-width: 2.4; }
.side { display: none; }
@media (min-width: 960px) {
  .top { display: none; }
  .nav { display: none; }
  .app { display: grid; grid-template-columns: var(--side) 1fr; }
  .side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; background: var(--black); color: #d9dadd; padding: 22px 14px; gap: 4px; overflow-y: auto; }
  .side__brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; padding: 0 8px 18px; }
  .side__brand img { width: 44px; height: 44px; }
  .side__brand span { font-stretch: var(--narrow); font-weight: 800; text-transform: uppercase; font-size: 1.3rem; line-height: 1; }
  .side__brand small { display: block; font-stretch: 100%; font-size: .68rem; font-weight: 700; letter-spacing: .12em; color: #ff8d8d; margin-top: 3px; }
  .side a.sl { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius); text-decoration: none; color: #c9cbd0; font-weight: 600; }
  .side a.sl:hover { background: rgba(255, 255, 255, .07); color: var(--white); }
  .side a.sl[aria-current="page"] { background: var(--red); color: var(--white); }
  .side__sep { margin: 16px 12px 6px; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #7d8088; }
  .side__foot { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
  .side__foot a { color: #c9cbd0; }
  .main { padding: 32px 36px 48px; width: 100%; }
}

/* ── Blocs ── */
.pagehead { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; justify-content: space-between; margin: 4px 0 20px; }
.pagehead p { margin: 6px 0 0; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.card + .card { margin-top: 14px; }
.card__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card__h h2, .card__h h3 { font-size: 1.35rem; }
.stack { display: grid; gap: 14px; }
.sec { margin-top: 28px; }
.sec > h2 { font-size: 1.45rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.cols { display: grid; gap: 14px; }
@media (min-width: 760px) { .cols--2 { grid-template-columns: 1fr 1fr; } .cols--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .cols--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 1099px) { .cols--4 { grid-template-columns: 1fr 1fr; } }
.empty { text-align: center; padding: 28px 18px; color: var(--muted); background: var(--white); border: 1.5px dashed var(--line); border-radius: 10px; }
.empty strong { display: block; color: var(--black); font-size: 1.05rem; margin-bottom: 4px; }
.empty .btns { justify-content: center; margin-top: 14px; }
.loading { padding: 40px 0; text-align: center; color: var(--muted); }
.spin { width: 28px; height: 28px; border: 3px solid var(--concrete-2); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Accueil ── */
.hello { background: var(--black); color: #d9dadd; border-radius: 12px; padding: 22px 20px; position: relative; overflow: hidden; }
.hello::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(181, 23, 23, .55), transparent 70%); }
.hello h1 { color: var(--white); position: relative; z-index: 1; }
.hello__date { text-transform: capitalize; margin: 6px 0 0; position: relative; z-index: 1; }
.hello .btns { margin-top: 16px; position: relative; z-index: 1; }
.hello .btn--light { --bg: transparent; --fg: var(--white); --bd: rgba(255, 255, 255, .35); }
.hello .btn--light:hover { --bg: rgba(255, 255, 255, .12); --fg: var(--white); }
.pending { display: flex; gap: 14px; align-items: flex-start; background: var(--warn-lt); border: 1px solid #f0d49a; border-left: 5px solid #e3a21a; border-radius: 10px; padding: 16px; margin-top: 16px; }
.pending .ic { color: var(--warn); margin-top: 3px; }
.pending h2 { font-size: 1.25rem; }
.pending p { margin: 6px 0 0; }

/* ── Badges d'état (texte + icône, jamais la couleur seule) ── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 999px; font-size: .76rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap; line-height: 1.4; }
.badge .ic { width: 14px; height: 14px; }
.b-actif { background: var(--ok-lt); color: var(--ok); }
.b-verrouille { background: var(--off-lt); color: var(--graphite); }
.b-attente { background: var(--warn-lt); color: var(--warn); }
.b-expire { background: #f4e4e4; color: var(--red-dk); }
.b-suspendu { background: #ece6f6; color: #5b3e8f; }
.b-a_venir { background: #e4eefb; color: #24508f; }
.b-brouillon { background: var(--off-lt); color: var(--graphite); }
.b-publie { background: var(--ok-lt); color: var(--ok); }
.b-programme { background: #e4eefb; color: #24508f; }
.b-arrete { background: #f4e4e4; color: var(--red-dk); }
.b-aucun, .b-desactive { background: var(--off-lt); color: var(--graphite); }
.b-coach, .b-admin { background: var(--black); color: var(--white); }

/* ── Disciplines ── */
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--c, var(--red)); }
.sigle { display: inline-grid; place-items: center; min-width: 40px; height: 26px; padding: 0 6px; border-radius: 4px; background: var(--c, var(--red)); color: var(--white); font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.disc { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 16px 16px 16px 20px; overflow: hidden; display: flex; flex-direction: column; gap: 8px; }
.disc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c, var(--red)); }
.disc__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.disc h3 { font-size: 1.35rem; }
.disc p { margin: 0; }
.disc--lock { background: linear-gradient(180deg, #fff, #fafafa); }
.disc--lock h3 { color: var(--graphite); }
.disc .btns { margin-top: auto; padding-top: 6px; }

/* ── Cartes de séance ── */
.ses { display: flex; align-items: stretch; gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: inherit; overflow: hidden; transition: transform .12s, box-shadow .12s; }
.ses:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: inherit; }
.ses__bar { width: 6px; background: var(--c, var(--red)); flex-shrink: 0; }
.ses__in { padding: 12px 14px; flex: 1; min-width: 0; display: grid; gap: 4px; }
.ses__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.ses__t { font-stretch: var(--narrow); font-weight: 800; font-size: 1.25rem; line-height: 1.1; color: var(--black); }
.ses__r { margin: 0; font-size: .92rem; color: var(--text); }
.ses__go { display: grid; place-items: center; padding: 0 12px; color: var(--muted); }
.ses--lock { background: #fafafa; }
.ses--lock .ses__t { color: var(--graphite); }
.ses--lock .ses__bar { background: repeating-linear-gradient(180deg, var(--c), var(--c) 6px, transparent 6px, transparent 10px); }

/* ── Calendrier ── */
.calbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.calbar__nav { display: flex; align-items: center; gap: 6px; }
.calbar__t { font-stretch: var(--narrow); font-weight: 800; font-size: 1.45rem; color: var(--black); text-transform: capitalize; min-width: 0; margin-right: auto; }
.seg { display: inline-flex; border: 1.5px solid var(--black); border-radius: var(--radius); overflow: hidden; }
.seg button, .seg a { border: 0; background: var(--white); padding: 8px 14px; font-weight: 700; cursor: pointer; font-size: .9rem; text-decoration: none; color: var(--black); }
.seg button + button, .seg a + a { border-left: 1.5px solid var(--black); }
.seg [aria-pressed="true"], .seg [aria-current="page"] { background: var(--black); color: var(--white); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; margin-bottom: 4px; scrollbar-width: thin; }
.chip { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-size: .85rem; font-weight: 700; cursor: pointer; }
.chip[aria-pressed="false"] { opacity: .5; }
.chip[aria-pressed="false"] .dot { background: transparent; box-shadow: inset 0 0 0 2px var(--c); }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.month__h { padding: 8px 4px; text-align: center; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); background: #fafafa; }
.month__d { min-height: 64px; border-right: 1px solid var(--concrete); border-bottom: 1px solid var(--concrete); padding: 6px 4px; background: var(--white); cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 4px; border-top: 0; border-left: 0; font: inherit; color: inherit; }
.month__d:nth-child(7n) { border-right: 0; }
.month__d:hover { background: #fafafa; }
.month__d--out { background: #f7f7f8; color: #a3a6ac; }
.month__n { font-weight: 800; font-size: .88rem; }
.month__d--today .month__n { background: var(--red); color: var(--white); border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; }
.month__dots { display: flex; flex-wrap: wrap; gap: 3px; }
.month__dots .dot { width: 9px; height: 9px; }
.month__dots .dot.lk { background: transparent; box-shadow: inset 0 0 0 2px var(--c); }
.month__ev { display: none; }
@media (min-width: 760px) {
  .month__d { min-height: 104px; padding: 6px; }
  .month__dots { display: none; }
  .month__ev { display: block; font-size: .74rem; font-weight: 700; padding: 2px 6px; border-radius: 3px; background: var(--c); color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .month__ev.lk { background: transparent; color: var(--graphite); box-shadow: inset 0 0 0 1.5px var(--c); }
}
.week { display: grid; gap: 10px; }
@media (min-width: 960px) { .week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; } .week .ses__t { font-size: 1.05rem; } .week .ses__r { display: none; } .week .ses__go { display: none; } .week .ses__in { padding: 9px 10px; } }
.wday { display: grid; gap: 8px; align-content: start; }
.wday__h { display: flex; align-items: baseline; gap: 8px; padding: 6px 2px; border-bottom: 2px solid var(--black); font-weight: 800; text-transform: capitalize; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; text-align: left; font: inherit; color: var(--black); }
.wday__h small { color: var(--muted); font-weight: 600; }
.wday--today .wday__h { border-bottom-color: var(--red); color: var(--red); }
.wday__none { font-size: .85rem; color: #9a9da4; padding: 4px 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: .82rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ── Détail de séance ── */
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; color: var(--muted); margin-bottom: 14px; background: none; border: 0; cursor: pointer; padding: 0; }
.back:hover { color: var(--black); }
.shead { background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--c); border-radius: 10px; padding: 18px; }
.shead__date { text-transform: capitalize; color: var(--muted); font-weight: 600; margin: 8px 0 0; }
.shead h1 { margin-top: 10px; font-size: clamp(1.9rem, 6vw, 2.6rem); }
.obj { margin-top: 14px; background: var(--black); color: #e4e5e7; border-radius: 10px; padding: 16px 18px; }
.obj .kicker { color: #ff8d8d; }
.obj p { margin: 0; font-size: 1.05rem; }
.coach { margin-top: 14px; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: 10px; padding: 16px 18px; }
.coach p { margin: 0; }
.blk { margin-top: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.blk__h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border-bottom: 1px solid var(--concrete); background: #fafafa; }
.blk__n { width: 28px; height: 28px; border-radius: 50%; background: var(--c, var(--black)); color: var(--white); display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex-shrink: 0; }
.blk__h h2 { font-size: 1.3rem; }
.blk__fmt { margin-left: auto; font-weight: 800; font-size: .85rem; background: var(--black); color: var(--white); padding: 4px 10px; border-radius: 4px; }
.blk__b { padding: 14px 16px; }
.blk__b > p { margin: 0 0 10px; font-size: 1.02rem; }
.blk__b > p:last-child { margin-bottom: 0; }
.lines { width: 100%; border-collapse: collapse; font-size: .95rem; }
.lines th { text-align: left; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 6px 8px; border-bottom: 1.5px solid var(--black); }
.lines td { padding: 9px 8px; border-bottom: 1px solid var(--concrete); vertical-align: top; }
.lines td:first-child { font-weight: 700; color: var(--black); }
@media (max-width: 640px) {
  .lines thead { display: none; }
  .lines, .lines tbody, .lines tr, .lines td { display: block; width: 100%; }
  .lines tr { padding: 8px 0; border-bottom: 1px solid var(--concrete); }
  .lines td { border: 0; padding: 1px 0; }
  .lines td[data-l]:not(:first-child)::before { content: attr(data-l) " : "; color: var(--muted); font-weight: 600; font-size: .85rem; }
  .lines td:empty { display: none; }
}
.res { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ── Verrou / vitrine ── */
.lock { margin-top: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lock__top { background: var(--black); color: #d9dadd; padding: 22px 20px; position: relative; overflow: hidden; }
.lock__top::after { content: ""; position: absolute; right: -40px; bottom: -80px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, var(--c), transparent 70%); opacity: .6; }
.lock__top h2 { color: var(--white); font-size: clamp(1.6rem, 5vw, 2.2rem); position: relative; z-index: 1; }
.lock__top p { position: relative; z-index: 1; margin: 8px 0 0; }
.lock__ic { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; color: var(--white); margin-bottom: 12px; position: relative; z-index: 1; }
.lock__b { padding: 20px; display: grid; gap: 16px; }
.benef { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.benef li { display: flex; gap: 10px; align-items: flex-start; }
.benef .ic { color: var(--red); margin-top: 2px; }
.notincl { display: flex; gap: 10px; align-items: center; background: var(--off-lt); padding: 12px 14px; border-radius: 8px; font-weight: 600; }
.offer { border: 2px solid var(--black); border-radius: 10px; padding: 16px; display: grid; gap: 8px; }
.offer h3 { font-size: 1.35rem; }
.offer p { margin: 0; }
.steps { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: .95rem; }

/* ── Fenêtre modale ── */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: end center; background: rgba(0, 0, 0, .55); padding: 0; animation: fade .15s; }
@media (min-width: 640px) { .modal { place-items: center; padding: 20px; } }
.modal__box { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--white); border-radius: 14px 14px 0 0; padding: 22px 20px calc(22px + var(--safe-b)); animation: up .2s var(--ease, ease); }
@media (min-width: 640px) { .modal__box { border-radius: 14px; } }
.modal__x { float: right; margin: -6px -6px 0 10px; }
.modal h2 { font-size: 1.6rem; margin-bottom: 8px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }

/* ── Messages éphémères ── */
.toast { position: fixed; z-index: 200; left: 50%; bottom: calc(var(--nav-h) + 16px + var(--safe-b)); transform: translateX(-50%); background: var(--black); color: var(--white); padding: 12px 18px; border-radius: 8px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); max-width: calc(100% - 32px); animation: up .2s; }
.toast--err { background: var(--red); }
@media (min-width: 960px) { .toast { bottom: 24px; } }

/* ── Onglets ── */
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--concrete-2); margin-bottom: 16px; overflow-x: auto; }
.tabs button, .tabs a { border: 0; background: none; padding: 10px 14px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; text-decoration: none; }
.tabs [aria-selected="true"], .tabs [aria-current="page"] { color: var(--black); border-bottom-color: var(--red); }

/* ── Listes (compte, admin) ── */
.rows { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--concrete); text-decoration: none; color: inherit; }
.row:last-child { border-bottom: 0; }
a.row:hover { background: #fafafa; color: inherit; }
.row__main { flex: 1; min-width: 0; }
.row__t { font-weight: 700; color: var(--black); }
.row__s { font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.row__end { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; color: var(--black); }
.danger { border-color: #e9c3c3; }
.install { display: flex; gap: 14px; align-items: flex-start; }
.install img { width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0; }

/* ── Administration ── */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; text-decoration: none; color: inherit; }
.kpi strong { display: block; font-stretch: var(--narrow); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--black); }
.kpi span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.kpi--alert { border-color: #f0d49a; background: var(--warn-lt); }
.kpi--alert strong { color: var(--warn); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar .in { min-height: 42px; width: auto; flex: 1 1 200px; }
.toolbar select.in { flex: 0 1 200px; }
.rights { display: grid; gap: 8px; }
.right { border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--white); }
.right--on { border-color: var(--c); background: color-mix(in srgb, var(--c) 6%, white); }
.right__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.right__top .check { font-weight: 800; color: var(--black); font-size: 1rem; }
.right__top .badge { margin-left: auto; }
.right__more { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.quick button { border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; padding: 4px 11px; font-size: .82rem; font-weight: 700; cursor: pointer; }
.quick button:hover { border-color: var(--black); }
.savebar { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b)); z-index: 20; background: rgba(243, 243, 244, .94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 12px 0; margin-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (min-width: 960px) { .savebar { bottom: 0; } }
.savebar .grow { margin-right: auto; }
.ed-blk { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--c, var(--black)); border-radius: 8px; padding: 12px 14px; }
.ed-blk + .ed-blk { margin-top: 10px; }
.ed-blk__h { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.ed-blk__h .in { min-height: 40px; font-weight: 700; }
.ed-lines { display: grid; gap: 6px; margin: 6px 0 4px; }
.ed-line { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; background: #fafafa; border-radius: 6px; position: relative; }
.ed-line .in { min-height: 38px; font-size: .92rem; padding: 6px 8px; }
.ed-line .in:first-child { grid-column: 1 / -1; }
@media (min-width: 760px) { .ed-line { grid-template-columns: 2.2fr 1fr 1fr 1fr 1.6fr 40px; align-items: center; } .ed-line .in:first-child { grid-column: auto; } }
.ed-line .iconbtn { width: 36px; height: 36px; }
.mini { width: 34px; height: 34px; }
.statusbox { display: grid; gap: 8px; }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer; background: var(--white); }
.radio input { accent-color: var(--red); width: 18px; height: 18px; margin-top: 2px; }
.radio:has(input:checked) { border-color: var(--black); }
.log { font-size: .88rem; }
.log .row { align-items: flex-start; }
.copy { display: flex; gap: 8px; }
.copy input { flex: 1; min-width: 0; font-size: .85rem !important; }
.swatch { width: 46px; height: 46px; padding: 2px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--white); cursor: pointer; }
.demo { background: #fff3b0; color: #6b5300; text-align: center; font-size: .8rem; font-weight: 700; padding: 4px; }
@media print { .nav, .side, .top, .savebar { display: none !important; } .main { padding: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
