:root {
  --pink: #c97b8e;
  --pink-2: #ecbcc6;
  --pink-soft: #f7e8e6;
  --pink-line: #eed6d3;
  --ink: #2e2826;
  --muted: #7a6e6a;
  --line: #ede4dc;
  --bg: #faf5ef;
  --card: #ffffff;
  --green: #17a673;
  --amber: #e8930c;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(201, 123, 142, .12);
  --nav-h: 76px;
  --anim-bg: linear-gradient(160deg, #ffffff 0%, #ece8e4 100%);
  color-scheme: light;
}
/* Sombre : selon le téléphone (auto) ou choisi dans l'appli (data-theme) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --pink-soft: #3a2230;
    --pink-line: #5a3448;
    --ink: #f4f2f6;
    --muted: #a7a3b3;
    --line: #2d2a33;
    --bg: #141217;
    --card: #1e1b22;
    --shadow: 0 6px 24px rgba(0, 0, 0, .35);
    --anim-bg: linear-gradient(160deg, #ffffff 0%, #ece8e4 100%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --pink-soft: #3a2230;
  --pink-line: #5a3448;
  --ink: #f4f2f6;
  --muted: #a7a3b3;
  --line: #2d2a33;
  --bg: #141217;
  --card: #1e1b22;
  --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  --anim-bg: linear-gradient(160deg, #ffffff 0%, #ece8e4 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
/* Empêche la sélection de texte partout (sauf dans les champs de saisie) */
* { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable="true"] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
body {
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 1.6rem; font-weight: 800; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--pink); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.pink { color: var(--pink); }
.hidden { display: none !important; }

.boot { min-height: 100vh; display: grid; place-items: center; }
.boot img { width: 72px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.9); opacity: .7; } }

/* ---- Connexion ---- */
.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(circle at 15% 10%, rgba(236, 188, 198, .18), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(201, 123, 142, .14), transparent 45%),
    var(--bg);
}
.auth-card { width: 100%; max-width: 400px; text-align: center; }
.auth-card .logo { width: 76px; height: 76px; margin: 0 auto 14px; display: block; filter: drop-shadow(0 10px 20px rgba(201, 123, 142, .3)); }
.auth-card h1 { font-size: 1.75rem; }
.auth-card h1 span { color: var(--pink); }
.auth-card .tag { margin: 6px 0 24px; color: var(--muted); }
.auth-card form { text-align: left; }

/* ---- Structure ---- */
.shell { min-height: 100vh; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px); }
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand img { width: 36px; height: 36px; flex: none; }
.brand b { display: block; white-space: nowrap; font-family: var(--titre, Anton, Impact, sans-serif); font-weight: 400; text-transform: uppercase; font-size: 1.4rem; line-height: 1; letter-spacing: .02em; }
.brand small { display: block; white-space: nowrap; font-size: .7rem; color: var(--pink); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-top: -2px; }
.top .grow { flex: 1; }
.main { max-width: 860px; margin: 0 auto; padding: 4px 16px 24px; }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: space-around;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--card);
  border-top: 1px solid var(--line);
}
.nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--muted); font-size: .7rem; font-weight: 500; position: relative;
}
.nav a svg { width: 24px; height: 24px; }
.nav a.desk { display: none; }
@media (min-width: 900px) { .nav a.desk { display: flex; } }
.nav a.on { color: var(--pink); font-weight: 600; }
.nav a.on::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--pink); }
.badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--pink); color: #fff; font-size: .68rem; font-weight: 700;
  display: inline-grid; place-items: center; line-height: 1;
}
.nav .badge { position: absolute; top: 8px; left: calc(50% + 6px); }

@media (min-width: 900px) {
  .shell { padding: 0 0 0 264px; }
  .nav {
    top: 0; right: auto; width: 264px; height: auto;
    flex-direction: column; justify-content: flex-start; gap: 4px;
    padding: 120px 16px 20px;
    border-top: 0; border-right: 1px solid var(--line);
  }
  .nav a { flex: 0 0 auto; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 11px 14px; border-radius: 12px; font-size: .92rem; }
  .nav a.on { background: var(--pink-soft); }
  .nav a.on::before { display: none; }
  .nav .badge { position: static; margin-left: auto; }
  .top { position: fixed; left: 0; width: 264px; z-index: 35; background: transparent; backdrop-filter: none; padding: 24px 20px 24px 22px; }
  .top .grow, .top .top-r { display: none; }
  .main { padding-top: 28px; }
}

/* ---- Blocs ---- */
.head { display: flex; align-items: center; gap: 12px; margin: 8px 0 16px; flex-wrap: wrap; }
.head .grow { flex: 1; min-width: 0; }
.head p { color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: .9rem; margin: 6px 0 2px; background: none; border: 0; padding: 0; cursor: pointer; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; border: 1px solid var(--line); }
.card.hero { background: linear-gradient(135deg, var(--pink-2), var(--pink)); color: #fff; border: 0; }
.card.hero .muted { color: rgba(255, 255, 255, .85); }
.card.soft { background: var(--pink-soft); border-color: var(--pink-line); box-shadow: none; }
.card h2 { margin-bottom: 10px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row .grow { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid2 > *, .grid3 > * { min-width: 0; }
/* iPhone : les champs date / heure ont une largeur minimale qui les fait se chevaucher */
input[type=date], input[type=time] { -webkit-appearance: none; appearance: none; min-width: 0; width: 100%; max-width: 100%; box-sizing: border-box; }
input[type=date]::-webkit-date-and-time-value, input[type=time]::-webkit-date-and-time-value { text-align: left; }
@media (min-width: 700px) { .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; } }

.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; }
.stat b { display: block; font-size: 1.35rem; font-weight: 800; color: var(--pink); }
.stat span { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.hero .stat { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .25); }
.hero .stat b, .hero .stat span { color: #fff; }

/* Tableau de bord de la fiche élève */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { display: flex; align-items: flex-start; gap: 12px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.kpi .ico, .compte .ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--pink-soft); font-size: 1.15rem; }
.kpi .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.kpi b { font-size: 1.6rem; font-weight: 800; line-height: 1.1; color: var(--ink); }
.kpi b small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.kpi .grow > span { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.kpi .pill { white-space: normal; max-width: 100%; line-height: 1.3; }
/* Le montant reste sur une ligne (sa taille est réduite en JS s'il est trop long) */
.kpi b { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; }
/* Téléphone : l'icône passe au-dessus pour laisser toute la largeur au chiffre */
@media (max-width: 600px) {
  .kpi { flex-direction: column; gap: 8px; padding: 12px; }
  .kpi .ico { width: 32px; height: 32px; font-size: 1rem; }
  .kpi .grow { width: 100%; }
}
.pill { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 99px; background: var(--pink-soft); color: var(--pink); font-size: .7rem; font-weight: 700; font-style: normal; white-space: nowrap; }
.pill.ok { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); }
.pill.warn { background: color-mix(in srgb, #e08a00 16%, transparent); color: #c27600; }
.pill.bad { background: #d6455d; color: #fff; }
label.f > span .pill { margin: 0 0 0 6px; text-transform: none; }
.suivi .dtile-h { margin-bottom: 14px; }
.suivi-g { display: grid; gap: 0 16px; }
@media (min-width: 700px) { .suivi-g { grid-template-columns: 1fr 1fr; } }
.suivi .notes { display: flex; flex-direction: column; }
.suivi .notes textarea { flex: 1; min-height: 120px; background: color-mix(in srgb, var(--pink-soft) 60%, var(--card)); }
.suivi-f { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 2px; }
.compte { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; padding: 12px 14px; box-shadow: none; }
.compte .ico { width: 34px; height: 34px; font-size: 1rem; }
.compte .grow { flex: 1; min-width: 180px; }
.compte b { color: var(--ink); }
.dash { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; }
@media (min-width: 560px) { .dash { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .dash { grid-template-columns: repeat(3, 1fr); } }
.dtile { display: flex; flex-direction: column; align-items: stretch; text-align: left; gap: 3px; min-width: 0; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: inherit; }
.dtile:hover { border-color: var(--pink-line); }
.dtile-h { display: flex; width: 100%; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.dtile-h .grow { flex: 1; }
.dtile-h .ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--pink-soft); font-size: .95rem; }
.dtile > b { font-weight: 700; font-size: 1.02rem; }
.dtile > span { color: var(--muted); font-size: .84rem; }
.dtile .note { font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spark { width: 100%; height: 34px; margin-top: 6px; }
.spark polyline { fill: none; stroke: var(--pink); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }

/* Accueil de la coach */
.dtile-h a { text-transform: none; letter-spacing: 0; font-weight: 600; text-decoration: none; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding-top: 4px; }
.bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; }
.bar i { width: 100%; max-width: 42px; border-radius: 8px 8px 4px 4px; background: var(--pink-line); }
.bar.cur i { background: var(--pink); }
.bar em { font-style: normal; font-size: .68rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.bar.cur em { color: var(--pink); }
.bar small { font-size: .72rem; color: var(--muted); text-transform: capitalize; }
.rdv-day { margin: 14px 0 6px; font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.rdv-day:first-of-type { margin-top: 0; }
.rdv { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.rdv:hover { border-color: var(--pink-line); }
.rdv .t { min-width: 46px; font-weight: 800; color: var(--pink); }
.rdv .grow { flex: 1; min-width: 0; }
.rdv .grow b { display: block; font-weight: 600; }
.rdv .grow span { display: block; font-size: .82rem; color: var(--muted); }
.rdv .chk { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; color: var(--muted); font-weight: 800; cursor: pointer; }
.rdv .chk:hover { border-color: var(--green); color: var(--green); }
.rdv .vis { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--pink); font-size: .95rem; cursor: pointer; }
.rdv .vis:hover { filter: brightness(1.08); }
.rdv.ro, .rdv.ro:hover { cursor: default; border-color: var(--line); }

/* Appel vidéo plein écran */
.call { position: fixed; inset: 0; z-index: 55; background: #0d0a0c; color: #fff; overflow: hidden; }
.call-remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0d0a0c; }
.call-local { position: absolute; right: 14px; top: calc(14px + env(safe-area-inset-top)); width: 28vw; max-width: 170px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .7); background: #222; transform: scaleX(-1); }
.call-top { position: absolute; left: 16px; right: calc(28vw + 30px); top: calc(16px + env(safe-area-inset-top)); display: flex; flex-direction: column; gap: 2px; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.call-top b { font-size: 1.15rem; }
.call-top span { font-size: .85rem; opacity: .85; }
.call-etat { margin-top: 8px; align-self: flex-start; font-style: normal; font-size: .85rem; background: rgba(0, 0, 0, .45); padding: 4px 10px; border-radius: 99px; }
.call-panne { position: absolute; left: 16px; right: 16px; top: 50%; transform: translateY(-50%); max-width: 420px; margin: 0 auto; background: var(--card); color: var(--ink); border-radius: 18px; padding: 16px; }
.call-panne p { margin-bottom: 12px; }
.call-bar { position: absolute; left: 0; right: 0; bottom: calc(22px + env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 14px; }
.call-bar button { width: 56px; height: 56px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .18); color: #fff; font-size: 1.3rem; cursor: pointer; backdrop-filter: blur(6px); }
.call-bar button.off { background: rgba(255, 255, 255, .85); filter: grayscale(1); }
.call-bar button.fin { background: #e0344b; font-weight: 800; }
.appel-ring { text-align: center; padding: 8px 0 4px; }
.appel-ring-ico { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--pink-soft); font-size: 2rem; margin-bottom: 10px; animation: sonne 1s ease-in-out infinite; }
.appel-ring p { margin: 4px 0 18px; }
.btn.ok { background: var(--green); }
@keyframes sonne { 50% { transform: scale(1.12); } }
.rdv.fait { opacity: .6; }
.rdv.fait .grow b { text-decoration: line-through; }
.rdv.fait .chk { background: var(--green); border-color: var(--green); color: #fff; }
.item .montant { flex: none; font-weight: 800; color: var(--ink); }
.dash-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 14px; align-items: start; }
@media (min-width: 1000px) { .dash-cols { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }

.list { display: flex; flex-direction: column; gap: 10px; }
.item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  text-decoration: none; color: inherit; cursor: pointer; text-align: left; width: 100%;
}
.item:hover { border-color: var(--pink-line); }
.item .grow { flex: 1; min-width: 0; }
.item .grow b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item.offre .grow b, .item.offre .grow span { white-space: normal; }
.item .grow span { display: block; color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { color: var(--muted); flex: none; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 700; color: var(--pink);
  background: var(--pink-soft);
}
.empty { text-align: center; padding: 28px 16px; color: var(--muted); }
.empty .big { font-size: 2.2rem; display: block; margin-bottom: 6px; }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; background: var(--pink-soft); color: var(--pink); font-size: .75rem; font-weight: 600; }
.chip.gray { background: var(--line); color: var(--muted); }
.chip.green { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); }

.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px 2px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 8px 14px; border-radius: 99px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .88rem; background: var(--card); border: 1px solid var(--line); }
.tabs a.on { background: var(--pink); color: #fff; border-color: var(--pink); }
/* Accueil élève : tableau de bord */
.tip-coach { position: relative; display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; padding: 16px 18px; border-radius: 20px; background: linear-gradient(135deg, var(--pink-2), var(--pink)); color: #fff; overflow: hidden; }
.tip-coach::after { content: '“'; position: absolute; right: 14px; top: -18px; font-size: 7rem; font-family: Georgia, serif; line-height: 1; color: rgba(255, 255, 255, .18); pointer-events: none; }
.tip-coach img { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); background: #fff; object-fit: cover; }
.tip-coach .grow { flex: 1; min-width: 0; }
.tip-l { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .9; margin-bottom: 4px; }
.tip-coach p { font-size: 1.05rem; font-weight: 600; line-height: 1.45; }
a.kpi { text-decoration: none; color: inherit; }
a.kpi:hover, .dash-side a.dtile:hover { border-color: var(--pink-line); }
.dash-side { display: grid; gap: 12px; margin-bottom: 14px; }
@media (min-width: 560px) and (max-width: 999px) { .dash-side { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kc-bar { display: block; height: 6px; margin-top: 8px; border-radius: 99px; background: var(--pink-soft); overflow: hidden; }
.kc-bar i { display: block; height: 100%; border-radius: 99px; background: var(--pink); }
.bars.week { height: 130px; }
.bars.week em { font-size: .85rem; min-height: 1.1em; }
.nx-exos { display: flex; flex-wrap: wrap; gap: 6px; }
.nx-exos span { font-size: .78rem; padding: 4px 10px; border-radius: 99px; background: var(--pink-soft); border: 1px solid var(--pink-line); }
/* Paiement élève : séances restantes en tuiles, offres en cartes */
.cr-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 10px; }
.cr-t { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--pink-soft); border: 1px solid var(--pink-line); }
.cr-c { font-size: .85rem; font-weight: 600; }
.cr-n { font-size: .85rem; color: var(--muted); }
.cr-n b { font-size: 1.7rem; font-weight: 800; color: var(--pink); margin-right: 4px; line-height: 1; }
.cr-x { font-size: .75rem; color: var(--muted); }
.cr-x.warn { color: #c27600; font-weight: 600; }
.pay-wait { display: flex; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #fff6e5; border: 1px solid #f4dcae; font-size: .82rem; color: #8a5a00; }
.pay-wait b { display: block; color: #6b4600; }
.pay-desc { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; }
.pay-desc span { font-size: .75rem; padding: 3px 10px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.pay-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pay-o { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.pay-o.best { border: 2px solid var(--pink); padding: 13px; }
.pay-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--pink-soft); font-size: 1.1rem; margin-bottom: 4px; }
.pay-nom { font-size: .92rem; font-weight: 600; }
.pay-prix { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.pay-sub { font-size: .75rem; color: var(--muted); flex: 1; margin-bottom: 8px; }
.pay-o .btn { width: 100%; margin-top: auto; }
.pay-badge { position: absolute; top: 12px; right: 12px; font-style: normal; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--pink); color: #fff; }
.pay-modes { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.pay-modes span { font-size: .75rem; padding: 4px 10px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pay-wait { background: #3a2c12; border-color: #5a4318; color: #f0c776; } :root:not([data-theme="light"]) .pay-wait b { color: #ffd98a; } }
:root[data-theme="dark"] .pay-wait { background: #3a2c12; border-color: #5a4318; color: #f0c776; }
:root[data-theme="dark"] .pay-wait b { color: #ffd98a; }
/* Journal des séances : détail par exercice */
.jx-note { margin-top: 8px; font-size: .88rem; font-style: italic; color: var(--muted); }
.jx-bar { height: 5px; border-radius: 99px; background: var(--pink-soft); margin-top: 12px; overflow: hidden; }
.jx-bar i { display: block; height: 100%; background: var(--pink); border-radius: 99px; }
.jx { margin-top: 10px; }
.jx summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .85rem; color: var(--pink); font-weight: 600; }
.jx summary::-webkit-details-marker { display: none; }
.jx summary .grow { flex: 1; }
.jx summary .muted { font-weight: 500; font-size: .8rem; }
.jx summary svg { width: 16px; height: 16px; transition: transform .2s; }
.jx[open] summary svg { transform: rotate(180deg); }
.jx-e { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.jx-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .9rem; }
.jx-h span { font-size: .75rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.jx-h .jx-ok { color: var(--green); }
.jx-h .jx-ko { color: var(--muted); opacity: .8; }
.jx-ss { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.jx-s { font-size: .8rem; padding: 4px 10px; border-radius: 99px; border: 1px dashed var(--line); color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.jx-s.ok { background: var(--pink-soft); border: 1px solid var(--pink-line); color: var(--text, inherit); text-decoration: none; }
.jx-s b { font-weight: 700; }
/* Fiche élève : en-tête nom + boutons Appeler / SMS / Message */
.chead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 2px; margin: 8px 0 14px; }
.chead .avatar { grid-row: 1 / 3; width: 50px; height: 50px; font-size: 1.05rem; }
.chead h1 { font-size: 1.3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chead p { grid-column: 2 / 4; color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-act { display: flex; gap: 6px; }
.ch-act a, .ch-act button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; padding: 0; background: var(--card); border: 1px solid var(--line); color: var(--pink); cursor: pointer; }
.ch-act svg { width: 17px; height: 17px; }
.ch-act button[data-notel] { color: var(--muted); opacity: .55; }
/* Fiche élève : icônes sur une ligne, le nom seulement sur l'onglet actif */
.ctabs { justify-content: space-between; gap: 2px; overflow: visible; margin: 0 0 14px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 99px; }
.ctabs a { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 5px; height: 36px; padding: 0; background: none; border: 0; }
.ctabs a svg { width: 18px; height: 18px; flex: none; }
.ctabs a span { display: none; }
.ctabs a.on { flex: none; padding: 0 12px; }
.ctabs a.on span { display: inline; }
.ctabs a b { position: absolute; top: 1px; right: 1px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 99px; background: var(--pink); color: #fff; font-size: .62rem; line-height: 15px; text-align: center; }

/* ---- Formulaires ---- */
label.f { display: block; margin-bottom: 12px; }
label.f > span { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
input, select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--card); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
textarea { resize: vertical; min-height: 80px; }
/* Téléphone : sous 16px, l'iPhone zoome tout seul quand on tape dans un champ et la page reste zoomée */
@media (pointer: coarse) { input, select, textarea { font-size: 16px !important; } }
input.sm { padding: 7px 8px; border-radius: 10px; text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 99px; border: 0; cursor: pointer;
  background: var(--pink); color: #fff; font-weight: 600; text-decoration: none;
  box-shadow: 0 6px 16px rgba(201, 123, 142, .28);
  transition: transform .1s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.avatar svg { width: 22px; height: 22px; }
.back svg { width: 18px; height: 18px; }
.chev svg { width: 18px; height: 18px; display: block; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--pink-soft); color: var(--pink); box-shadow: none; }
.btn.line { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn.white { background: #fff; color: var(--pink); box-shadow: none; }
.btn.danger { background: transparent; color: #d33; border: 1.5px solid color-mix(in srgb, #d33 35%, transparent); box-shadow: none; }
.btn.sm { padding: 7px 14px; font-size: .85rem; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--pink-soft); color: var(--pink); display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn.plain { background: transparent; color: var(--muted); }
.icon-btn svg { width: 20px; height: 20px; }
.err { color: #d33; font-size: .88rem; margin: 6px 0 10px; min-height: 1em; }

/* ---- Programmes ---- */
.seance-ed { border: 1.5px dashed var(--pink-line); border-radius: 16px; padding: 12px; margin-bottom: 14px; }
.seance-lib { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.seance-lib span { font-size: .8rem; color: var(--muted); flex: none; }
.seance-lib select { padding: 8px 10px; }
.exo-ed { background: var(--bg); border-radius: 14px; padding: 10px; margin-top: 10px; }
.exo-ed .nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.exo-ed .nums label span { display: block; font-size: .7rem; color: var(--muted); margin-bottom: 2px; text-align: center; }
.exo-ed .nums input { padding: 8px 6px; text-align: center; }
.exo-ed textarea { min-height: 44px; margin-top: 8px; }
.exo-ed .anim-pick { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.exo-ed .anim-pick span { font-size: .7rem; color: var(--muted); flex: none; width: 64px; text-align: center; }
.exo-ed .anim-pick select { padding: 8px 10px; }

/* Fin du repos : l'écran clignote pour dire « on reprend » */
.rest-flash {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  display: grid; place-items: center;
  background: var(--pink); color: #fff; font-size: 2rem; font-weight: 800; text-align: center;
  animation: rest-flash .45s ease-in-out 4 alternate forwards;
}
@keyframes rest-flash { from { opacity: 0; } to { opacity: .92; } }
@media (prefers-reduced-motion: reduce) { .rest-flash { animation: rest-flash .6s ease-out 2 alternate forwards; } }

.exo { border-left: 3px solid var(--pink); padding-left: 12px; margin: 12px 0; }
.exo .meta { color: var(--muted); font-size: .85rem; }
.exo .tip { font-size: .85rem; margin-top: 4px; padding: 6px 10px; background: var(--pink-soft); border-radius: 10px; }

/* ---- Animations d'exercices ---- */
.anim {
  position: relative; border-radius: 16px; overflow: hidden;
  background: var(--anim-bg);
  aspect-ratio: 200 / 132; display: grid; place-items: center;
}
.anim svg { width: 100%; height: 100%; display: block; }
.anim.no-anim { color: var(--pink); font-size: 2.4rem; }
/* Vidéo de la coach à la place du bonhomme (filmée souvent en vertical : on la montre en entier) */
.anim.has-vid { background: #000; }
.anim.has-vid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.anim.has-vid video { width: 100%; height: 100%; object-fit: contain; display: block; }
.az-anim.has-vid, .wo-anim.has-vid { aspect-ratio: 3 / 4; max-height: 58vh; width: auto; margin-left: auto; margin-right: auto; }
.anim.mini { width: 92px; flex: none; border-radius: 12px; }
.anim.mini.no-anim { font-size: 1.4rem; }
.exo-row { display: flex; gap: 12px; align-items: center; margin: 12px 0; }
.exo-row .grow { flex: 1; min-width: 0; }
.mus { font-size: .74rem; color: var(--pink); font-weight: 600; }

/* ---- Séance en cours (style capture) ---- */
.wo-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 0 10px; }
.chrono {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 99px;
  border: 0; background: var(--card); box-shadow: var(--shadow); cursor: pointer; font-variant-numeric: tabular-nums;
}
.chrono i { width: 8px; height: 8px; border-radius: 50%; background: #ff2e63; animation: blink 1.4s infinite; }
.chrono.paused i { animation: none; background: var(--muted); }
.chrono b { font-size: 1.05rem; font-weight: 700; }
.chrono svg { width: 16px; height: 16px; }
.chrono .pz { font-size: .7rem; letter-spacing: -1px; color: var(--muted); }
@keyframes blink { 50% { opacity: .25; } }
.wo-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 12px; }
.wo-dots button { width: 8px; height: 8px; border-radius: 4px; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: width .2s; }
.wo-dots button.ok { background: var(--green); }
.wo-dots button.on { width: 22px; background: var(--pink); }
.wo-anim { max-width: 420px; margin: 0 auto 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.wo-anim.no-anim span { font-size: 3rem; }
.wo-title { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; text-align: center; }
.wo-title .grow { flex: 1; min-width: 0; }
.wo-title small { color: var(--muted); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.wo-title h1 { font-size: 1.35rem; margin: 2px 0; }
.icon-btn:disabled { opacity: .25; cursor: default; }
.wo-card { padding: 14px 12px; }
.wo-card h2 { color: var(--muted); font-weight: 600; }
.wo-row { display: grid; grid-template-columns: 36px 1fr 1fr 1fr; gap: 8px; align-items: center; padding: 6px; border-radius: 18px; border: 2px solid transparent; margin-bottom: 4px; }
.wo-row.wo-h { font-size: .76rem; color: var(--muted); text-align: center; padding-top: 0; padding-bottom: 0; }
.wo-row.cur { border-color: #f0b93a; background: color-mix(in srgb, #f0b93a 7%, transparent); }
.wo-row .n { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; font-weight: 600; cursor: pointer; color: var(--ink); }
.wo-row.done .n { background: var(--green); color: #fff; }
.wo-row .cell { position: relative; display: block; }
.wo-row .cell input { text-align: center; padding: 13px 4px; border-radius: 14px; border: 0; background: var(--pink-soft); font-weight: 600; font-size: 1rem; }
.wo-row .cell em { position: absolute; left: 0; right: 0; bottom: 2px; text-align: center; font-style: normal; font-size: .68rem; font-weight: 700; pointer-events: none; }
.wo-row .cell em.up { color: var(--green); }
.wo-row .cell em.down { color: var(--amber); }
.wo-row .cell:has(em) input { padding: 8px 4px 16px; }
.wo-row.done .cell input { opacity: .55; }
.add-set { display: block; margin: 8px auto 0; border: 0; background: none; color: var(--pink); font-weight: 600; font-size: .85rem; cursor: pointer; }
.btn.big { padding: 16px 20px; font-size: 1.05rem; }

/* ---- Séance en cours ---- */
.wo-exo .sets { display: grid; gap: 8px; margin-top: 10px; }
.set { display: grid; grid-template-columns: 58px 1fr 1fr 46px; gap: 8px; align-items: center; }
.set .n { font-size: .8rem; color: var(--muted); font-weight: 600; }
.set .ok { width: 46px; height: 40px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; font-size: 1.1rem; color: var(--muted); }
.set.done .ok { background: var(--green); border-color: var(--green); color: #fff; }
.set.done input { opacity: .6; }
.set-h { display: grid; grid-template-columns: 58px 1fr 1fr 46px; gap: 8px; font-size: .7rem; color: var(--muted); text-align: center; }
.prev { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.progress { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink-2), var(--pink)); border-radius: 8px; transition: width .3s; }

.rest {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px);
  z-index: 40; width: min(420px, calc(100% - 32px));
  background: var(--ink); color: var(--bg); border-radius: 20px; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}
.rest b { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.rest .grow { flex: 1; font-size: .85rem; }
body.resting .main { padding-bottom: 110px; }
@media (min-width: 900px) { .rest { left: calc(50% + 116px); bottom: 24px; } }

.moods { display: flex; justify-content: space-between; gap: 6px; margin: 8px 0 14px; }
.moods button { flex: 1; font-size: 1.7rem; padding: 8px 0; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; }
.moods button.on { border-color: var(--pink); background: var(--pink-soft); }

/* ---- Nutrition ---- */
.ring { position: relative; width: 132px; height: 132px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .lbl { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .lbl b { font-size: 1.4rem; font-weight: 800; }
.ring .lbl span { font-size: .72rem; color: var(--muted); }
.macros { display: grid; gap: 8px; flex: 1; }
.macro { font-size: .82rem; }
.macro div { display: flex; justify-content: space-between; }
.meal { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.meal:last-child { border-bottom: 0; }
.meal .ico { font-size: 1.3rem; }
.meal .grow { flex: 1; }
.meal-thumb { flex: none; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; border: 0; padding: 0; background: var(--line); cursor: pointer; }
.meal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.coach-meal { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.coach-meal .meal-thumb { width: 44px; height: 44px; }
.pre { white-space: pre-wrap; }
.photo-cta {
  display: block; padding: 14px; margin-bottom: 10px;
  border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--pink-2), var(--pink));
  box-shadow: 0 6px 16px rgba(201, 123, 142, .25);
}
.photo-cta .ico { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; flex: none; }
.photo-cta .ico svg { width: 22px; height: 22px; }
.photo-cta .grow { flex: 1; }
.photo-cta .row { gap: 12px; }
.photo-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.photo-btns .btn { cursor: pointer; padding: 10px 8px; white-space: nowrap; }
@media (pointer: fine) { .photo-btns { grid-template-columns: 1fr; } .photo-btns label:first-child { display: none; } }
.photo-cta b { display: block; }
.photo-cta .grow span { font-size: .8rem; opacity: .9; }
.center { text-align: center; }
.ia-photo { position: relative; border-radius: 18px; overflow: hidden; max-height: 260px; }
.ia-photo img { width: 100%; max-height: 260px; object-fit: cover; display: block; }
.ia-photo .scan { position: absolute; left: 0; right: 0; height: 40%; background: linear-gradient(transparent, rgba(236, 188, 198, .45), transparent); animation: scan 1.6s ease-in-out infinite; }
@keyframes scan { 0% { top: -40%; } 100% { top: 100%; } }
.ia-total { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.ia-total div { background: var(--pink-soft); border-radius: 12px; padding: 8px 4px; text-align: center; }
.ia-total b { display: block; color: var(--pink); font-size: 1rem; }
.ia-total span { font-size: .68rem; color: var(--muted); }
.ia-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ia-item .grow { flex: 1; min-width: 0; }
.ia-item label { display: flex; align-items: center; gap: 4px; font-size: .75rem; color: var(--muted); }
.ia-item input { width: 64px; }
.daynav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.daynav b { text-transform: capitalize; }

/* ---- Bilans ---- */
.chart { width: 100%; height: auto; max-height: 260px; display: block; }
.chart .ax { stroke: var(--line); }
.chart text { fill: var(--muted); font-size: 11px; font-family: inherit; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.photos button { aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; border: 0; padding: 0; background: var(--line); cursor: pointer; position: relative; }
.photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photos small { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); color: #fff; font-size: .7rem; padding: 10px 6px 4px; }
/* Tous les bilans : tout tient sur la largeur d'un téléphone (date jj/mm/aa) ; une ligne se touche pour la supprimer */
.bilan-tbl { width: 100%; border-collapse: collapse; font-size: .8rem; font-variant-numeric: tabular-nums; }
.bilan-tbl th, .bilan-tbl td { padding: 9px 2px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.bilan-tbl th:first-child, .bilan-tbl td:first-child { text-align: left; padding-left: 0; }
.bilan-tbl th { font-size: .62rem; color: var(--muted); font-weight: 600; }
.bilan-tbl tr[data-delb] { cursor: pointer; }
.bilan-tbl tr[data-delb]:hover td { color: var(--pink); }
.bilan-tbl .bt-note td { text-align: left; white-space: normal; font-size: .76rem; color: var(--muted); padding-top: 0; }
@media (min-width: 700px) { .bilan-tbl { font-size: .88rem; } .bilan-tbl th { font-size: .72rem; } .bilan-tbl th, .bilan-tbl td { padding: 9px 6px; } }
.scroll-x { overflow-x: auto; }
.diff-down { color: var(--green); font-weight: 600; }
.diff-up { color: var(--amber); font-weight: 600; }

/* ---- Messages ---- */
.chat { display: flex; flex-direction: column; height: 60vh; min-height: 300px; }
.chat .msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 8px 2px; }
.bubble { max-width: 80%; padding: 9px 13px; border-radius: 18px; white-space: pre-wrap; word-wrap: break-word; }
.bubble.me { align-self: flex-end; background: var(--pink); color: #fff; border-bottom-right-radius: 6px; }
.bubble.them { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble time { display: block; font-size: .68rem; opacity: .7; margin-top: 2px; text-align: right; }
.day-sep { align-self: center; font-size: .72rem; color: var(--muted); margin: 8px 0 2px; text-transform: capitalize; }
.chat form { display: flex; gap: 8px; padding-top: 8px; }
.chat textarea { min-height: 44px; max-height: 120px; border-radius: 22px; padding: 11px 16px; }
.chat .send { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--pink); color: #fff; cursor: pointer; flex: none; display: grid; place-items: center; }

/* ---- Fenêtre ---- */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(20, 10, 18, .45); display: flex; align-items: flex-end; justify-content: center; }
.modal .sheet { background: var(--card); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; border-radius: 24px 24px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
@media (min-width: 600px) { .modal { align-items: center; } .modal .sheet { border-radius: 24px; } }
.modal .sheet { scrollbar-width: none; overscroll-behavior: contain; }
.modal .sheet::-webkit-scrollbar { display: none; }
/* Analyse photo d'assiette : plus large pour respirer */
.modal .sheet:has(.ia-photo) { max-width: 760px; }
@media (min-width: 600px) { .modal .sheet:has(.ia-photo) { padding: 24px 28px; } }
.modal h2 { margin-bottom: 14px; }
.modal .photo-big { width: 100%; border-radius: 16px; display: block; }

#demoSw {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 55;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 10px);
  display: flex; align-items: center; gap: 4px; padding: 4px;
  background: var(--ink); color: var(--bg); border-radius: 99px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); font-size: .78rem;
}
#demoSw span { padding: 0 6px 0 8px; opacity: .65; font-weight: 600; }
#demoSw button { white-space: nowrap; border: 0; background: transparent; color: inherit; padding: 6px 10px; border-radius: 99px; cursor: pointer; font-weight: 600; }
#demoSw button.on { background: var(--pink); color: #fff; }
body.demo .main { padding-bottom: 70px; }
body.demo .rest { bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 64px); }
@media (min-width: 900px) {
  #demoSw { left: auto; right: 16px; top: 16px; bottom: auto; transform: none; }
  body.demo .main { padding-bottom: 24px; }
  body.demo .rest { bottom: 24px; }
}

#toast {
  position: fixed; left: 50%; top: 16px; transform: translate(-50%, -140%);
  z-index: 80; background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 99px;
  font-size: .9rem; font-weight: 500; transition: transform .25s, opacity .25s, visibility .25s; max-width: calc(100% - 32px); text-align: center;
  opacity: 0; visibility: hidden; pointer-events: none;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---- Aliments : icônes, repas, fenêtre de choix ---- */
.fico { width: 34px; height: 34px; flex: none; display: inline-grid; place-items: center; font-size: 1.55rem; line-height: 1; object-fit: contain; }
.fico.sm { width: 20px; height: 20px; font-size: 1rem; vertical-align: -4px; display: inline-block; }
.sep { color: var(--muted); margin: 0 5px; }
.meal-plan { border: 1px solid var(--line); border-radius: 16px; padding: 4px 10px 8px; margin-bottom: 10px; background: var(--card); }
.meal-head { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 8px 0; cursor: pointer; text-align: left; }
.meal-head .ico { font-size: 1.35rem; }
.meal-head b { font-weight: 600; }
.meal-head .add { width: 30px; height: 30px; border-radius: 50%; background: var(--pink); color: #fff; display: grid; place-items: center; flex: none; }
.meal-head .add svg { width: 16px; height: 16px; }
.meal-items { display: grid; gap: 6px; margin-bottom: 8px; }
.mi { display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 12px; padding: 6px 8px; }
.mi .grow { flex: 1; min-width: 0; }
.mi b { display: block; font-size: .88rem; font-weight: 600; }
.mi .grow span { font-size: .76rem; color: var(--muted); }
.meal-plan textarea.note { min-height: 40px; font-size: .85rem; padding: 8px 10px; }
.manual { margin-top: 6px; }
.manual summary { cursor: pointer; padding: 6px 0; }
.plan-items { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.pi { display: inline-flex; align-items: center; gap: 4px; background: var(--bg); border-radius: 99px; padding: 3px 10px 3px 6px; font-size: .8rem; }

.modal .sheet.tall { height: 92vh; display: flex; flex-direction: column; padding-bottom: 12px; }
.pick { display: flex; flex-direction: column; height: 100%; min-height: 0; }
/* Catégories d'aliments : passent à la ligne pour toutes se voir */
.pick-cats { flex-wrap: wrap; overflow: visible; margin: 10px 0 8px; padding: 0; gap: 6px; }
.pick-cats a { padding: 5px 11px; font-size: .78rem; }
.pick-grid { flex: 1; min-height: 120px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; align-content: start; padding: 2px; overscroll-behavior: contain; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); cursor: pointer; }
.tile .fico { width: 40px; height: 40px; font-size: 1.9rem; }
.tile b { font-size: .72rem; font-weight: 600; text-align: center; line-height: 1.2; }
.tile.on { border-color: var(--pink); background: var(--pink-soft); }
.tile i { position: absolute; top: 4px; right: 4px; min-width: 22px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pink); color: #fff; font-size: .65rem; font-style: normal; font-weight: 700; display: grid; place-items: center; }
.tile.libre { border-style: dashed; border-color: var(--pink-line); color: var(--pink); }
.tile.libre .fico { font-size: 1.6rem; }
.pick-sel { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 8px; }
.pick-list { max-height: 34vh; overflow-y: auto; display: grid; gap: 6px; margin-bottom: 10px; overscroll-behavior: contain; }
.pick-row { display: flex; align-items: center; gap: 8px; }
.pick-row .grow { flex: 1; min-width: 0; }
.pick-row b { display: block; font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-row .grow span { font-size: .7rem; color: var(--muted); }
.pick-row .u { font-size: .72rem; color: var(--muted); width: 38px; }
.pick-row .icon-btn { width: 30px; height: 30px; }
.qty { display: flex; align-items: center; background: var(--pink-soft); border-radius: 99px; }
.qty button { width: 30px; height: 32px; border: 0; background: none; color: var(--pink); font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.qty input { width: 46px; padding: 6px 0; border: 0; background: transparent; text-align: center; font-weight: 700; box-shadow: none; }
.nf-wait { display: flex; align-items: center; gap: 10px; color: var(--pink); font-size: .9rem; margin: 4px 0 12px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--pink-line); border-top-color: var(--pink); animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---- Métabolisme de base ---- */
.tmb-cta { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; margin-bottom: 14px; border-radius: 16px; border: 1.5px dashed var(--pink-line); background: var(--pink-soft); cursor: pointer; text-align: left; }
.tmb-cta .ico { font-size: 1.6rem; }
.tmb-cta .grow { flex: 1; min-width: 0; }
.tmb-cta b { display: block; font-size: .92rem; }
.tmb-cta .grow span { font-size: .78rem; color: var(--muted); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--bg); padding: 4px; border-radius: 14px; }
.seg button { border: 0; background: transparent; padding: 10px; border-radius: 10px; font-weight: 600; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--pink); box-shadow: var(--shadow); }
.tmb-res { text-align: center; padding: 16px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, var(--pink-2), var(--pink)); }
.tmb-res span { font-size: .8rem; opacity: .9; }
.tmb-res b { display: block; font-size: 2.2rem; font-weight: 800; line-height: 1.1; }
.tmb-res small { font-size: .9rem; font-weight: 600; }
.tmb-calc { margin-top: 10px; font-size: .82rem; }
.tmb-calc summary { cursor: pointer; }
.tmb-calc p { margin-top: 6px; color: var(--muted); font-variant-numeric: tabular-nums; }
a.tmb-cta { text-decoration: none; color: inherit; }
.acts { display: grid; gap: 6px; margin-top: 6px; }
.acts button { display: grid; grid-template-columns: 1fr auto; text-align: left; gap: 0 10px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; }
.acts b { font-size: .9rem; font-weight: 600; }
.acts span { grid-column: 1; font-size: .76rem; color: var(--muted); }
.acts i { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-weight: 700; color: var(--muted); }
.acts button.on { border-color: var(--pink); background: var(--pink-soft); }
.acts button.on i { color: var(--pink); }
.calc-res { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.calc-res div { border-radius: 18px; padding: 14px 10px; text-align: center; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.calc-res div.main { background: linear-gradient(135deg, var(--pink-2), var(--pink)); color: #fff; border: 0; }
.calc-res span { display: block; font-size: .74rem; opacity: .85; min-height: 2.2em; }
.calc-res b { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.calc-res small { font-size: .78rem; font-weight: 600; opacity: .85; }
.but-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.but-row.solo { margin-top: 0; padding: 14px 16px; border-top: 1px solid var(--line); }
.but-row .e { font-size: 1.6rem; }
.but-row .grow { flex: 1; min-width: 0; }
.but-row .grow > b { display: block; font-size: .95rem; }
.but-row .grow > span { font-size: .78rem; color: var(--muted); }
.buts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.buts button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.buts button.on { border-color: var(--pink); background: var(--pink-soft); }
.buts .e { font-size: 1.4rem; }
.buts b { font-size: .88rem; }
.buts span:not(.e) { font-size: .72rem; color: var(--muted); }
.buts i { font-style: normal; font-size: .7rem; font-weight: 700; color: var(--pink); margin-top: 4px; }
.imc .imc-v { text-align: right; }
.imc .imc-v b { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.imc .imc-v span { font-size: .78rem; font-weight: 700; }
.imc-v.bleu { color: #4a9eff; } .imc-v.vert { color: #2fbf71; } .imc-v.orange { color: #f39c34; } .imc-v.rouge { color: #e5484d; }
.imc-bar { position: relative; display: flex; height: 10px; margin-top: 14px; border-radius: 99px; overflow: visible; }
.imc-bar i { display: block; height: 100%; }
.imc-bar i:first-child { border-radius: 99px 0 0 99px; } .imc-bar i:nth-child(4) { border-radius: 0 99px 99px 0; }
.imc-bar i.bleu { background: #4a9eff; } .imc-bar i.vert { background: #2fbf71; } .imc-bar i.orange { background: #f39c34; } .imc-bar i.rouge { background: #e5484d; }
.imc-bar em { position: absolute; top: -4px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--pink); box-shadow: var(--shadow); }
.imc-leg { position: relative; height: 16px; margin-top: 4px; font-size: .7rem; color: var(--muted); }
.imc-leg span { position: absolute; transform: translateX(-50%); }
.imc-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.imc-keys span { display: grid; grid-template-columns: 12px 1fr; column-gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); font-size: .72rem; color: var(--muted); }
.imc-keys span.on { border-color: var(--pink); }
.imc-keys i { width: 12px; height: 12px; border-radius: 50%; grid-row: span 2; }
.imc-keys i.bleu { background: #4a9eff; } .imc-keys i.vert { background: #2fbf71; } .imc-keys i.orange { background: #f39c34; } .imc-keys i.rouge { background: #e5484d; }
.imc-keys b { font-size: .8rem; color: var(--ink); }
.calc-h { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.calc-h:last-child { border-bottom: 0; }
.calc-h .grow { flex: 1; min-width: 0; }
.calc-h .grow b { display: block; font-size: .88rem; }
.calc-h .grow span { font-size: .75rem; color: var(--muted); }
.calc-h .v { text-align: right; }
.calc-h .v b { display: block; color: var(--pink); font-size: 1.05rem; }
.calc-h .v span { font-size: .7rem; color: var(--muted); white-space: nowrap; }

/* ---- Clair / sombre ---- */
.theme-btn, .refresh-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 1.1rem; display: grid; place-items: center; flex: none; padding: 0; }
.refresh-btn { color: var(--pink); }
.refresh-btn svg { width: 19px; height: 19px; }
.refresh-btn.spin svg { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 900px) {
  .top .refresh-btn { margin-left: auto; }
  .top .theme-btn, .top .refresh-btn { width: 34px; height: 34px; }
  .top { gap: 6px; }
}
.seg.seg3 { grid-template-columns: repeat(3, 1fr); }
.seg.seg3 button { white-space: nowrap; padding: 10px 4px; font-size: .88rem; }

/* ---- Nouveau logo ---- */
.auth-card .logo { width: 170px; height: 170px; margin-bottom: 4px; border-radius: 34px; filter: drop-shadow(0 14px 26px rgba(201, 123, 142, .3)); }
.auth-card .tag { margin-top: 4px; }
.brand img { border-radius: 10px; }
.boot img { width: 110px; border-radius: 24px; }

.mini-db svg { width: 18px; height: 18px; color: var(--pink); vertical-align: -4px; }
.nowrap { white-space: nowrap; }
.auth-hint { white-space: nowrap; font-size: clamp(.66rem, 3.15vw, .85rem); margin-top: 2px; }
.auth-hint .mini-db svg { width: 1.3em; height: 1.3em; vertical-align: -.3em; }

/* Paiement Stripe intégré */
.pay-sum { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--pink-soft); border-radius: 14px; padding: 10px 12px; margin-bottom: 14px; }
.pay-sum > b { color: var(--pink); font-size: 1.25rem; white-space: nowrap; }
.pay-sum span b { display: block; font-size: .95rem; }
.stripe-box { min-height: 260px; border-radius: 14px; overflow: hidden; }
.pay-ok { text-align: center; padding-top: 40px; }
.pay-ok .big { font-size: 3.4rem; display: block; margin-bottom: 8px; }
/* Aperçu local : fausse feuille Stripe, comme la maquette */
.demo-pay .apple { width: 100%; border: 0; border-radius: 12px; background: #000; color: #fff; padding: 13px; font-weight: 600; font-size: 1.05rem; cursor: pointer; }
.demo-pay .or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .8rem; margin: 14px 0; }
.demo-pay .or::before, .demo-pay .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.demo-pay .row2 { display: flex; gap: 8px; }
.demo-pay input { margin-bottom: 8px; }
.demo-pay .wero { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.demo-pay .wero .logo { flex: none; width: 38px; height: 38px; border-radius: 10px; background: #1d1d1b; color: #f7e600; display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.demo-tag { background: #fff4cc; color: #6b5200; border-radius: 10px; padding: 6px 10px; font-size: .78rem; margin-bottom: 12px; text-align: center; }
/* Rappel « plus de séances » sur l'accueil élève */
.card.rappel { border: 1.5px solid var(--pink); background: var(--pink-soft); }
.card.rappel b { color: var(--pink); }
.warn-txt { color: #c27600; font-weight: 600; }
.card.lock { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 24px 18px; border: 1.5px dashed var(--pink-line); }
.card.lock .big { font-size: 2rem; }
.card.lock p { max-width: 360px; margin-bottom: 6px; }
.renouv { display: inline-block !important; margin-top: 4px; padding: 2px 8px; border-radius: 99px; background: var(--pink-soft); color: var(--pink) !important; font-size: .72rem !important; font-weight: 700; }

/* Carte élève (liste « Mes élèves ») */
.el-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.el-top { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.el-top .grow { flex: 1; min-width: 0; }
.el-top .grow b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.el-top .grow span { display: block; color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.el-top .avatar { position: relative; }
.el-renouv { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: #fff; border: 2px solid var(--card); }
.el-renouv svg { width: 10px; height: 10px; stroke-width: 3; }
.el-info { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: .78rem; }
.el-rdv { display: inline-flex; align-items: center; gap: 4px; color: var(--pink); font-weight: 600; }
.el-rdv svg { width: 13px; height: 13px; }
.el-ligne { margin: 10px 0 5px; color: var(--muted); font-size: .8rem; }
.el-bar { height: 6px; border-radius: 9px; background: var(--line); overflow: hidden; }
.el-bar i { display: block; height: 100%; border-radius: 9px; background: var(--pink); }
.el-msg { margin: 8px 0 0; color: var(--muted); font-size: .8rem; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.el-btns { display: flex; gap: 8px; margin-top: 10px; }
.el-btns .btn { flex: 1; justify-content: center; }
.el-btns .btn svg { width: 16px; height: 16px; }

/* Tirer pour actualiser */
html, body { overscroll-behavior-y: contain; }

/* Facture */
.facture { padding: 22px; }
.fact-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.fact-top img { width: 42px; display: block; margin-bottom: 6px; }
.fact-top b { display: block; font-size: 1.05rem; }
.fact-top p, .fact-num p { font-size: .85rem; color: var(--muted); }
.fact-num { text-align: right; }
.fact-num h2 { color: var(--pink); letter-spacing: .08em; }
.fact-num p b { display: inline; font-size: inherit; color: var(--ink); }
.fact-client { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 12px; background: var(--pink-soft); margin-bottom: 18px; }
.fact-tbl { width: 100%; border-collapse: collapse; font-size: .88rem; margin-bottom: 14px; }
.fact-tbl th { text-align: left; font-weight: 600; color: var(--muted); border-bottom: 2px solid var(--line); padding: 6px 4px; }
.fact-tbl td { border-bottom: 1px solid var(--line); padding: 10px 4px; }
.fact-tbl th:not(:first-child), .fact-tbl td:not(:first-child) { text-align: right; white-space: nowrap; }
.fact-total { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 4px 14px; font-weight: 600; }
.fact-total b { font-size: 1.35rem; color: var(--pink); }
.facture > p { margin-top: 4px; color: var(--muted); line-height: 1.5; }
@media (max-width: 420px) { .fact-num { text-align: left; } .fact-tbl th:nth-child(2), .fact-tbl td:nth-child(2) { display: none; } }
@media print {
  .top, .nav, #demoSw, #toast, #rest, .no-print { display: none !important; }
  .shell, .main { padding: 0 !important; margin: 0 !important; max-width: none; }
  body { background: #fff; color: #000; }
  .facture { border: 0; box-shadow: none; background: #fff; color: #000; }
  .fact-client { background: #f6f0f3; }
  .fact-top p, .fact-num p, .fact-tbl th, .facture > p { color: #444; }
}

/* Exercices au poids du corps : pas de colonne charge */
.exo-ed.pdc .nums { grid-template-columns: repeat(3, 1fr); }
.exo-ed.pdc .nums .kg { display: none; }
.exo-ed .nums.cardio { grid-template-columns: repeat(3, 1fr); }
.wo-card.noload .wo-row { grid-template-columns: 36px 1fr 1fr; }

/* Catalogue d'exercices avec démo */
.pk-g h3 { font-size: .85rem; color: var(--muted); margin: 16px 0 8px; font-weight: 600; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pk { display: flex; flex-direction: column; text-align: left; gap: 2px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); cursor: pointer; font: inherit; }
.pk:hover, .pk:focus-visible { border-color: var(--pink); }
.pk .anim { border-radius: 12px; margin-bottom: 6px; }
.pk b { font-size: .88rem; }
.pk span { font-size: .72rem; color: var(--pink); }
.pk[hidden], .pk-g[hidden] { display: none; }

/* Messages à l'élève : cours terminé, séance validée */
.avis { text-align: center; }
.avis .big { display: block; font-size: 2.6rem; margin-bottom: 6px; }
.avis h2 { margin-bottom: 8px; }
.avis p { margin: 0 0 10px; }
.avis .btn { margin-top: 8px; }
.rdv .grow span b.warn-txt { display: inline; }

/* Mention « Version bêta » (en-tête et page de connexion) */
.test-badge { display: inline-block; padding: 2px 8px; border-radius: 99px; background: #c27600; color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; white-space: nowrap; }
/* Téléphone : badge à côté du nom ; ordinateur : sous « Fitness Girls » pour laisser la place aux boutons */
.brand-txt { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center; column-gap: 6px; }
.brand-txt small { grid-column: 1 / -1; }
.brand .test-badge { justify-self: start; }
@media (min-width: 900px) {
  .brand-txt { grid-template-columns: auto; }
  .brand-txt .test-badge { grid-row: 3; margin-top: 5px; }
}
.auth-card .test-badge { margin: 14px 0 6px; font-size: .7rem; }
/* Fiche élève (coach) : Résumé épuré, une carte en liste (2 colonnes sur ordinateur) */
.resume-l { padding: 4px 16px; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 28px; }
@media (min-width: 900px) { .resume-l { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rl { display: flex; align-items: center; gap: 14px; padding: 14px 0; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); min-width: 0; }
.resume-l .rl:last-child { border-bottom: 0; }
@media (min-width: 900px) { .resume-l .rl:nth-last-child(2):nth-child(odd) { border-bottom: 0; } }
.rl-i { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--pink-soft); color: var(--pink); }
.rl-i svg { width: 19px; height: 19px; }
.rl-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rl-t small { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rl-t b { font-weight: 700; font-size: .98rem; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-t > span { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.rl-c { flex: none; color: var(--muted); opacity: .6; }
.rl-c svg { width: 16px; height: 16px; }
.rl:hover .rl-c { color: var(--pink); opacity: 1; }
.rl-new .rl-i { background: var(--pink); color: #fff; }
.rl-new b { color: var(--pink); }
.compte-d summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.compte-d[open] summary { margin-bottom: 12px; }
.compte-d .btn { white-space: nowrap; }
.suivi-f[hidden] { display: none; }
/* Comptes liés (phase de test) : interrupteur Coach / Élève à la place de « Version bêta » */
.brand > a { display: flex; flex: none; }
.jum-sw { display: inline-flex; justify-self: start; padding: 2px; border-radius: 99px; background: rgba(127, 127, 127, .22); }
.jum-sw button { border: 0; background: transparent; color: inherit; font: inherit; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; cursor: pointer; opacity: .7; }
.jum-sw button.on { background: var(--pink); color: #fff; opacity: 1; cursor: default; }
@media (min-width: 900px) { .brand-txt .jum-sw { grid-row: 3; margin-top: 5px; } }
.lock-note { display: flex; gap: 10px; align-items: flex-start; }

/* Historique des repas : par jour, rangé par moment */
.mh-sum { display: flex; gap: 8px; margin: -2px 0 14px; }
.mh-sum span { flex: 1; background: var(--pink-soft); border-radius: 12px; padding: 8px 10px; font-size: .75rem; color: var(--muted); }
.mh-sum b { display: block; font-size: 1.15rem; color: var(--pink); }
.jday { border: 1px solid var(--line); border-radius: 18px; padding: 12px 12px 6px; margin-bottom: 12px; background: var(--card); }
.jday-h { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.jday-h .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.jday-h b { text-transform: capitalize; }
.jday-h small { font-size: .72rem; color: var(--muted); }
.jday-kcal { flex: none; padding: 4px 10px; border-radius: 99px; background: var(--pink-soft); color: var(--pink); font-size: .75rem; font-weight: 600; }
.jday-kcal b { font-size: .95rem; }
.jday-kcal.over { background: color-mix(in srgb, #e08a00 16%, transparent); color: #c27600; }
.jmom { padding: 6px 0; border-top: 1px solid var(--line); }
.jmom-h { display: flex; align-items: center; gap: 8px; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 2px 0 4px; }
.jmom-h b { font-weight: 700; color: var(--ink); }
.jmeal { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 6px 0; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.jmeal .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.jmeal .grow b { font-size: .88rem; font-weight: 600; line-height: 1.25; }
.jmeal .grow small { font-size: .7rem; color: var(--muted); margin-top: 2px; }
.jm-ico { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--pink-soft); display: grid; place-items: center; font-size: 1.4rem; overflow: hidden; }
.jm-ico.photo { background: var(--line); }
.jm-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jm-ico .fico { width: 30px; height: 30px; }
.jm-kcal { flex: none; font-weight: 700; font-size: .95rem; color: var(--ink); white-space: nowrap; }
.jm-kcal small { font-weight: 500; font-size: .7rem; color: var(--muted); }
.ia-photo.mh-photo, .ia-photo.mh-photo img { max-height: 360px; }

/* ===== Nouveau style (inspiré de la maquette) : photos de Diana, effet verre ===== */
/* Connexion : grande photo plein écran, texte et formulaire en bas */
.welcome {
  position: relative; isolation: isolate; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; color: #fff;
  padding: calc(18px + env(safe-area-inset-top)) 20px calc(22px + env(safe-area-inset-bottom));
  background: #121014 url(/img/nouvelles/noir-ring-2.jpg) center 22% / cover no-repeat;
}
.welcome::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12, 10, 14, .45) 0%, rgba(12, 10, 14, 0) 22%, rgba(12, 10, 14, .2) 45%, rgba(12, 10, 14, .82) 68%, rgba(12, 10, 14, .95) 100%);
}
.wl-top { display: flex; align-items: center; gap: 10px; }
.wl-top img { width: 46px; height: 46px; border-radius: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.wl-body { margin-top: auto; width: 100%; max-width: 420px; }
.welcome h1 { font-size: clamp(2rem, 9vw, 2.9rem); font-weight: 300; line-height: 1.1; letter-spacing: -.01em; }
.welcome h1 b { font-weight: 700; }
.wl-tag { margin: 12px 0 18px; font-size: .92rem; color: rgba(255, 255, 255, .8); max-width: 34ch; }
.glass {
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: 26px; padding: 18px 16px 16px;
}
.glass label.f > span { color: rgba(255, 255, 255, .85); }
.glass p.muted { color: rgba(255, 255, 255, .8); }
.glass input { background: rgba(255, 255, 255, .94); border-color: transparent; color: #2e2826; }
.glass input:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.glass .err { color: #ffb4bf; }
.wl-btn { background: #fff; color: #1d1a1c; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); padding: 15px 20px; font-size: 1rem; }
.welcome .auth-hint { color: rgba(255, 255, 255, .75); text-align: center; margin-top: 14px; }
.welcome .mini-db svg { color: #fff; }
@media (min-width: 900px) {
  .welcome { padding: 32px 56px 48px; background-position: center 30%; }
  .welcome::before { background: linear-gradient(90deg, rgba(12, 10, 14, .9) 0%, rgba(12, 10, 14, .55) 40%, rgba(12, 10, 14, 0) 70%); }
  .wl-body { margin: auto 0; }
}

/* Titres de sections avec lien « Tout voir » */
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 10px; }
.sec-h a { font-size: .85rem; color: var(--muted); text-decoration: none; font-weight: 500; }

/* La semaine en pastilles */
.wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 18px; }
.wk > div { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 0 6px; border-radius: 99px; }
.wk small { font-size: .72rem; color: var(--muted); text-transform: capitalize; }
.wk b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; }
.wk .today { background: color-mix(in srgb, var(--ink) 9%, transparent); }
.wk .today small { color: var(--ink); font-weight: 600; }
.wk .today b { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.wk .dots { display: flex; gap: 3px; height: 5px; }
.wk .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--pink); }
.wk .dots i.r { background: var(--green); }

body.demo .welcome { padding-bottom: calc(var(--nav-h) + 64px); }


/* ===================== Style « Magazine sport » (façon Nike / Gymshark) =====================
   Noir par défaut, grandes photos de Diana, gros titres Anton en capitales, une seule touche de rose. */
:root {
  --pink: #e5336e;
  --pink-2: #ff7fa6;
  --pink-soft: #fde6ee;
  --pink-line: #f5c4d5;
  --ink: #0a0a0a;
  --muted: #6f6b67;
  --line: #e2dfda;
  --bg: #f4f3f1;
  --card: #ffffff;
  --field: #ebe9e5;
  --radius: 12px;
  --shadow: none;
  --nav-h: 66px;
  --titre: Anton, Impact, "Arial Narrow", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --pink: #ff5c8a; --pink-2: #ff8fb0; --pink-soft: #2a1219; --pink-line: #4a1f2c;
    --ink: #ffffff; --muted: #8b8b8b; --line: #222222; --bg: #0a0a0a; --card: #141414; --field: #1c1c1c;
  }
}
:root[data-theme="dark"] {
  --pink: #ff5c8a; --pink-2: #ff8fb0; --pink-soft: #2a1219; --pink-line: #4a1f2c;
  --ink: #ffffff; --muted: #8b8b8b; --line: #222222; --bg: #0a0a0a; --card: #141414; --field: #1c1c1c;
}

/* ---- Titres ---- */
h1 { font-family: var(--titre); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: .95; font-size: 2.3rem; }
h2 { font-family: var(--titre); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; font-size: 1.35rem; line-height: 1.05; }
.head p { margin-top: 4px; }
.dtile-h, .sec-h a, .rdv-day, .tip-l, .wo-title small, label.f > span, .mh-sum span, .jmom-h, .pk-g h3 {
  font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
}
.dtile-h { color: var(--ink); }
.dtile-h .ico, .kpi .ico, .compte .ico { background: var(--field); border-radius: 8px; }
.sec-h { margin: 22px 0 10px; }
.sec-h h2 { font-size: .68rem; font-family: Poppins, sans-serif; font-weight: 700; letter-spacing: .18em; }
.sec-h a { color: var(--muted); }

/* ---- Chiffres en Anton ---- */
.kpi b, .stat b, .cr-n b, .pay-prix, .tmb-res b, .calc-res b, .ring .lbl b, .mh-sum b, .ia-total b, .fact-total b, .rest b, .chrono b, .jm-kcal, .el-info b {
  font-family: var(--titre); font-weight: 400; letter-spacing: .01em;
}
.kpi b { font-size: 1.9rem; }
.stat b, .mh-sum b, .ia-total b { color: var(--ink); }
.cr-n b { color: var(--pink); }

/* ---- Cartes : à plat, fines lignes, coins nets ---- */
.card, .kpi, .dtile, .item, .el-card, .stat, .jday, .meal-plan, .pay-o, .calc-res div, .pk, .rdv, .jx-e, .cr-t, .compte {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: none;
}
.card { padding: 16px; }
.card .rdv, .card .item, .card .jx-e, .card .pay-o, .card .cr-t { background: transparent; }
.card.soft { background: transparent; border: 1px dashed var(--line); }
.card.rappel { background: var(--pink-soft); border: 1px solid var(--pink); }
.item:hover, .dtile:hover, a.kpi:hover, .rdv:hover, .el-card:hover { border-color: var(--ink); }
.avatar { background: var(--field); color: var(--ink); }
.pay-o.best { border: 2px solid var(--pink); }
.pay-badge { background: var(--pink); color: #fff; }
.calc-res div.main, .tmb-res, .card.hero, .photo-cta { background: var(--pink); color: #fff; }
.bar i { background: var(--field); border-radius: 3px 3px 1px 1px; }
.bar.cur i { background: var(--pink); }
.spark polyline { stroke: var(--pink); }
.progress, .el-bar, .kc-bar, .jx-bar { background: var(--field); }
.progress i, .el-bar i, .kc-bar i, .jx-bar i { background: var(--pink); }

/* Conseil de la coach : bloc citation */
.tip-coach { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-left: 3px solid var(--pink); border-radius: 12px; }
.tip-coach::after { color: color-mix(in srgb, var(--pink) 30%, transparent); }
.tip-coach .tip-l { color: var(--pink); opacity: 1; }
.tip-coach img { border-color: var(--line); }

/* ---- Boutons : pilule pleine (blanche sur noir, noire sur clair) ---- */
.btn { background: var(--ink); color: var(--bg); box-shadow: none; font-weight: 600; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.line { border-color: var(--line); }
.btn.white { background: #fff; color: #0a0a0a; }
.btn.ok { background: var(--green); color: #fff; }
.icon-btn { background: var(--field); color: var(--ink); }
.icon-btn.plain { background: transparent; color: var(--muted); }
.theme-btn, .refresh-btn { background: transparent; border: 1.5px solid var(--line); box-shadow: none; color: var(--ink); }
.rdv .vis, .chat .send, .meal-head .add { background: var(--ink); color: var(--bg); }
.rdv .t { color: var(--pink); font-family: var(--titre); font-weight: 400; font-size: 1.15rem; }
.bubble.me { background: var(--pink); }
.bubble.them { background: var(--card); border-color: var(--line); }

/* ---- Onglets : texte en capitales, l'actif souligné de rose ---- */
.tabs a { background: transparent; border: 1.5px solid var(--line); box-shadow: none; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.tabs a.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ctabs { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 0; }
.ctabs a { border-radius: 0; height: 42px; }
.ctabs a.on { background: transparent; color: var(--ink); box-shadow: inset 0 -2px 0 var(--pink); }
.ctabs a span { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.seg { background: var(--field); border-radius: 99px; }
.seg button { border-radius: 99px; }
.seg button.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.moods button, .acts button, .tile { background: var(--card); border: 1.5px solid var(--line); }
.moods button.on, .acts button.on, .tile.on { border-color: var(--pink); background: var(--pink-soft); }
.wo-dots button.on { background: var(--pink); }
.wo-row.cur { border-color: var(--pink); background: var(--pink-soft); }

/* ---- Champs ---- */
input, select, textarea { background: var(--field); border: 1.5px solid transparent; border-radius: 10px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: none; background: var(--card); }
.wo-row .cell input { background: var(--field); }

/* ---- Fenêtres ---- */
.modal { background: rgba(0, 0, 0, .6); }
.modal .sheet { border-radius: 18px 18px 0 0; border-top: 1px solid var(--line); }
@media (min-width: 600px) { .modal .sheet { border-radius: 16px; border: 1px solid var(--line); } }

/* ---- Barre du haut ---- */
.brand small { color: var(--pink); }
.top { background: color-mix(in srgb, var(--bg) 92%, transparent); }

/* ---- Menu du bas (téléphone) : barre noire pleine largeur, point rose sous l'onglet actif ---- */
@media (max-width: 899px) {
  .nav {
    height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom);
    background: var(--bg); border-top: 1px solid var(--line); box-shadow: none;
  }
  .nav a { flex: 1; height: auto; gap: 6px; color: var(--muted); }
  .nav a span { display: none; }
  .nav a svg { width: 22px; height: 22px; }
  .nav a.on { color: var(--ink); background: transparent; }
  .nav a.on::before { display: none; }
  .nav a::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: transparent; }
  .nav a.on::after { background: var(--pink); }
  .nav .badge { top: 10px; left: calc(50% + 4px); }
}
/* Menu de gauche (ordinateur) */
@media (min-width: 900px) {
  .nav { background: var(--bg); border-right: 1px solid var(--line); box-shadow: none; }
  .nav a { border-radius: 8px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
  .nav a.on { background: var(--ink); color: var(--bg); }
}

/* ---- Grande photo en haut de chaque écran ---- */
.head.ph {
  position: relative; isolation: isolate; overflow: hidden; flex-wrap: wrap; align-items: flex-end; align-content: flex-end;
  min-height: 300px; margin: -4px -16px 14px; padding: 90px 16px 6px; border-radius: 0; box-shadow: none; color: var(--ink);
  background: #0a0a0a center 25% / cover no-repeat;
}
.head.ph::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 10, 10, .55) 0%, rgba(10, 10, 10, 0) 28%, rgba(10, 10, 10, .1) 50%, var(--bg) 100%);
}
.head.ph > .grow { flex-basis: 100%; display: flex; flex-direction: column-reverse; }
.head.ph h1 { font-size: 2.9rem; color: var(--ink); }
.head.ph p { margin: 0 0 8px; align-self: flex-start; background: var(--pink); color: #fff; padding: 4px 10px; border-radius: 10px; line-height: 1.5; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.head.ph p b { color: inherit; }
.head.ph > h1.grow { flex-basis: 100%; }
.head.ph > .btn { padding: 9px 18px; font-size: .85rem; }
.head.ph .avatar { width: 56px !important; height: 56px !important; border: 2px solid var(--ink); background: var(--bg); color: var(--ink); margin-bottom: 6px; }
.head.ph[data-photo="didi-graffiti"] { background-position: 80% 35%; }
.head.ph[data-photo="didi-boxe"], .head.ph[data-photo="didi-cage"] { background-position: center 18%; }
@media (min-width: 900px) {
  .head.ph { margin: 0 0 18px; min-height: 300px; border-radius: 10px; padding: 26px 26px 8px; }
  .head.ph h1 { font-size: 3.6rem; }
}

/* Sur téléphone, la barre du haut flotte par-dessus la grande photo */
@media (max-width: 899px) {
  body.ph-top .top { position: absolute; left: 0; right: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.ph-top .brand b { color: #fff; }
  body.ph-top .theme-btn, body.ph-top .refresh-btn { border-color: rgba(255, 255, 255, .45); color: #fff; }
  body.ph-top .top-r.avatar { background: transparent; color: #fff; border: 1.5px solid #fff; }
}

/* ---- Accueil élève : la une du magazine ---- */
.mag { position: relative; isolation: isolate; margin: -4px -16px 0; padding: 0 16px; }
.mag-ph { position: absolute; top: 0; left: 0; right: 0; height: 460px; z-index: -1; background: #0a0a0a url(/img/nouvelles/blanc-district.jpg) 45% 28% / cover no-repeat; }
.mag-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 10, .5) 0%, rgba(10, 10, 10, 0) 22%, rgba(10, 10, 10, .08) 52%, var(--bg) 100%); }
.mag-tx { padding-top: 300px; }
.mag-tag { display: block; color: var(--pink); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; margin-bottom: 6px; }
.mag h1 { font-size: 3.5rem; line-height: .9; color: var(--ink); }
.mag-cta { display: flex; gap: 8px; margin-top: 16px; }
.mag-go { flex: 1; height: 52px; border: 0; border-radius: 99px; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer; }
.mag-go svg { width: 15px; height: 15px; fill: currentColor; }
.mag-rd { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.mag-rd svg { width: 20px; height: 20px; }
.mag-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mag-nums a { padding: 12px 2px 10px; text-align: center; text-decoration: none; color: var(--ink); min-width: 0; }
.mag-nums a + a { border-left: 1px solid var(--line); }
.mag-nums b { display: block; font-family: var(--titre); font-weight: 400; font-size: 1.55rem; line-height: 1; }
.mag-nums small { display: block; margin-top: 4px; font-size: .54rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mag-nums small.pink { color: var(--pink); }
.mag-obj { margin: 12px 0 0; font-size: .82rem; color: var(--muted); }
.mag-row { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 18px; padding: 0 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mag-row::-webkit-scrollbar { display: none; }
.mag-row a { position: relative; isolation: isolate; flex: 0 0 46%; max-width: 220px; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; color: #fff; text-decoration: none; background: #111 center / cover no-repeat; scroll-snap-align: start; }
.mag-row a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .8) 100%); }
.mag-row b { font-family: var(--titre); font-weight: 400; font-size: 1.25rem; line-height: 1; text-transform: uppercase; }
.mag-row small { font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; opacity: .8; margin-top: 4px; }
.mag-row em { position: absolute; top: 10px; left: 10px; font-style: normal; font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding: 4px 8px; border-radius: 99px; background: var(--pink); color: #fff; }
.wk .today { background: transparent; }
.wk .today b { background: var(--pink); color: #fff; border-color: var(--pink); }
.wk b { background: transparent; border-color: var(--line); }
@media (min-width: 900px) {
  .mag { margin: 0; padding: 0 26px; border-radius: 10px; overflow: hidden; }
  .mag-ph { height: 520px; }
  .mag-tx { padding-top: 320px; max-width: 520px; }
  .mag h1 { font-size: 4.4rem; }
  .mag-nums { margin-bottom: 4px; }
}

/* ---- Connexion façon magazine ---- */
.welcome { background-image: url(/img/nouvelles/noir-box-district.webp); background-position: 52% -7vh; background-size: max(100vw, 118vh) auto; background-repeat: no-repeat; background-color: #0a0a0a; }
.welcome::before { background: linear-gradient(180deg, rgba(10, 10, 10, .5) 0%, rgba(10, 10, 10, 0) 20%, rgba(10, 10, 10, .15) 38%, rgba(10, 10, 10, .9) 60%, #0a0a0a 78%); }
.welcome h1 { font-family: var(--titre); font-weight: 400; text-transform: uppercase; font-size: clamp(2.6rem, 12vw, 3.6rem); line-height: .92; letter-spacing: .01em; }
.welcome h1 b { font-weight: 400; color: #ff5c8a; }
.wl-tag { color: rgba(255, 255, 255, .7); }
.glass { background: transparent; border: 0; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; }
.glass label.f > span { color: rgba(255, 255, 255, .6); }
.glass input { background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(255, 255, 255, .16); color: #fff; }
.glass input:focus { background: rgba(255, 255, 255, .12); border-color: #fff; }
.wl-btn { background: #fff; color: #0a0a0a; height: 52px; }
.welcome .test-badge { background: #ff5c8a; }

/* ===================== Fond photo flouté + cartes transparentes ===================== */
:root { --voile: rgba(10, 10, 10, .5); --verre: rgba(20, 20, 20, .48); --verre-line: rgba(255, 255, 255, .12); --verre-hl: rgba(255, 255, 255, .08); }
:root[data-theme="light"] { --voile: rgba(244, 243, 241, .38); --verre: rgba(255, 255, 255, .5); --verre-line: rgba(255, 255, 255, .7); --verre-hl: rgba(255, 255, 255, .6); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --voile: rgba(244, 243, 241, .38); --verre: rgba(255, 255, 255, .5); --verre-line: rgba(255, 255, 255, .7); --verre-hl: rgba(255, 255, 255, .6); }
}
html { background: var(--bg); }
body { background: transparent; }
/* La photo de l'écran, très floutée, fixe derrière tout */
#fond { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
#fond::before {
  content: ""; position: absolute; inset: -60px;
  background: var(--bg) var(--fond, none) center 25% / cover no-repeat;
  filter: blur(22px) saturate(1.4); transform: scale(1.08);
}
#fond::after { content: ""; position: absolute; inset: 0; background: var(--voile); }

/* Cartes et bulles : verre dépoli, on voit la photo floue à travers */
.card, .kpi, .dtile, .item, .el-card, .stat, .jday, .meal-plan, .pay-o, .calc-res div:not(.main), .pk, .rdv, .cr-t, .compte, .tip-coach, .bubble.them {
  background: var(--verre);
  border: 1px solid var(--verre-line);
  box-shadow: inset 0 1px 0 var(--verre-hl), 0 8px 24px rgba(0, 0, 0, .12);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
}
.tip-coach { border-left: 3px solid var(--pink); }
.card.rappel { background: color-mix(in srgb, var(--pink) 22%, transparent); border-color: var(--pink); }
.card.soft { background: transparent; border: 1px dashed var(--verre-line); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
/* Dans une carte : pas de 2e couche de verre, juste une fine ligne */
.card .rdv, .card .item, .card .jx-e, .card .pay-o, .card .cr-t, .card .kpi, .card .stat, .dtile .kpi {
  background: rgba(255, 255, 255, .04); border-color: var(--verre-line); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.item:hover, .dtile:hover, a.kpi:hover, .rdv:hover, .el-card:hover { border-color: var(--pink); }
.dtile-h .ico, .kpi .ico, .compte .ico, .avatar, .jm-ico, .pay-ico, .meal-head .ico { background: rgba(255, 255, 255, .1); }
:root[data-theme="light"] .avatar, :root[data-theme="light"] .kpi .ico, :root[data-theme="light"] .dtile-h .ico { background: rgba(255, 255, 255, .7); }
input, select, textarea { background: color-mix(in srgb, var(--field) 70%, transparent); }
.tabs a, .moods button, .acts button, .tile, .seg { background: var(--verre); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--verre-line); }
.tabs a.on { background: var(--ink); }
.bar i, .progress, .el-bar, .kc-bar, .jx-bar { background: rgba(255, 255, 255, .12); }
.empty { color: var(--muted); }

/* Barre du haut et menu du bas en verre aussi */
.top { background: color-mix(in srgb, var(--bg) 40%, transparent); }
@media (max-width: 899px) {
  .nav { background: var(--verre); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); border-top-color: var(--verre-line); }
}
@media (min-width: 900px) {
  .nav { background: var(--verre); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); border-right-color: var(--verre-line); }
}

/* Grandes photos du haut : elles se fondent dans le flou au lieu d'une couleur unie */
.head.ph { background: none; }
.head.ph::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: #0a0a0a var(--ph) center 25% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.head.ph::before { background: linear-gradient(180deg, rgba(10, 10, 10, .55) 0%, rgba(10, 10, 10, 0) 30%); }
.head.ph[data-photo="didi-graffiti"]::after { background-position: 80% 35%; }
.head.ph[data-photo="didi-boxe"]::after, .head.ph[data-photo="didi-cage"]::after { background-position: center 18%; }
.mag-ph { -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 98%); mask-image: linear-gradient(180deg, #000 50%, transparent 98%); }
.mag-ph::after { background: linear-gradient(180deg, rgba(10, 10, 10, .5) 0%, rgba(10, 10, 10, 0) 25%); }
.mag-nums { background: var(--verre); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--verre-line); border-radius: 14px; }
.mag-nums a + a { border-left-color: var(--verre-line); }
.mag-rd { background: var(--verre); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--verre-line); }

/* ---- Barre de défilement cachée (le défilement marche toujours) ---- */
html, body { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* ---- Onglets de la fiche élève : soulignés, sans cases ni fond blanc ---- */
.ctabs a, .ctabs a.on { background: transparent; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.ctabs a.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--pink); }

/* ---- Conversation sur téléphone : toute la largeur, collée au clavier pendant qu'on écrit ---- */
@media (max-width: 899px) {
  .chat.card { margin-left: -16px; margin-right: -16px; border-radius: 0; border-left: 0; border-right: 0; }
  body.kb .nav { display: none; }
  body.kb .chat.card { position: fixed; left: 0; right: 0; z-index: 40; margin: 0; border: 0; padding: calc(8px + env(safe-area-inset-top)) 10px 8px !important; background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---- Messages et Profil en haut à droite (téléphone), 7 boutons en bas ---- */
.msg-btn { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--ink); flex: none; text-decoration: none; }
.msg-btn svg { width: 19px; height: 19px; }
.msg-btn .badge { position: absolute; top: -5px; right: -5px; border: 2px solid var(--bg); }
.msg-btn.on, .top-r.avatar.on { border-color: var(--pink) !important; background: var(--pink) !important; color: #fff !important; }
body.ph-top .msg-btn { border-color: rgba(255, 255, 255, .45); color: #fff; }
@media (max-width: 899px) {
  .nav a { min-width: 0; font-size: .58rem; gap: 4px; }
  .nav a span { white-space: nowrap; }
  .nav a svg { width: 22px; height: 22px; }
}
.head.ph[data-photo="rose-graffiti"]::after { background-position: 40% 30%; }
.head.ph[data-photo="noir-box-district"]::after { background-position: 58% 35%; }
.head.ph[data-photo="blanc-curl"]::after, .head.ph[data-photo="blanc-assise"]::after, .head.ph[data-photo="rose-elastique"]::after { background-position: center 25%; }
.head.ph[data-photo="blanc-fente"]::after, .head.ph[data-photo="blanc-pompes"]::after { background-position: center 40%; }

/* ---- Titres des écrans Offres, Vidéos, Défis, Contenu, Plus ---- */
.ttl-h { margin: 6px 0 14px; }
.ttl-h h1 { font-size: 2.4rem; margin: 0; }
.ttl-h p { color: var(--muted); font-size: .88rem; margin: 4px 0 0; }
.seg2 { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.seg2 button { flex: 1; border: 0; background: none; padding: 10px 6px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--muted); cursor: pointer; }
.seg2 button.on { background: var(--pink); color: #fff; }

/* Grandes cartes photo */
.ocard { position: relative; isolation: isolate; display: block; width: 100%; height: 180px; border-radius: 20px; overflow: hidden; margin-bottom: 12px; padding: 0; border: 0; text-align: left; color: #fff; cursor: pointer; background: #222 center / cover no-repeat; text-decoration: none; }
.ocard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .82) 100%); }
.ocard .in { position: absolute; left: 16px; right: 16px; bottom: 14px; }
.ocard b { display: block; font-family: var(--titre); font-weight: 400; font-size: 1.5rem; letter-spacing: .02em; text-transform: uppercase; line-height: 1.05; }
.ocard small { display: block; font-size: .8rem; opacity: .92; margin-top: 3px; }
.ocard .prix { position: absolute; top: 12px; right: 12px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); padding: 5px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.ocard .tag { position: absolute; top: 12px; left: 12px; background: var(--pink); padding: 4px 10px; border-radius: 999px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ocard .badge { position: absolute; top: 10px; right: 10px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.duo .ocard { height: 150px; margin-bottom: 0; }
.ocard[style*="coaching-duo"], .ocard[style*="small-groupe"] { background-position: center 12%; }
.duo .ocard b { font-size: 1.1rem; }
@media (min-width: 700px) { .ocards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; } .ocards .ocard { margin: 0; } .ocards .duo { grid-column: span 2; margin: 0; } }

/* Fiche d'une offre */
.modal .sheet.osheet { padding: 0 0 calc(20px + env(safe-area-inset-bottom)); }
.osheet .oph { height: 200px; background: #222; position: relative; overflow: hidden; isolation: isolate; border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.osheet .oph::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, var(--card)); }
/* Photo d'une carte (cadrage choisi par la coach) */
.ofond { position: absolute; inset: 0; z-index: -2; background: center / cover no-repeat; pointer-events: none; }
/* Coach : photos des cartes de la boutique */
.phl .item { cursor: pointer; }
.phl .mini { position: relative; isolation: isolate; overflow: hidden; flex: none; width: 64px; height: 40px; border-radius: 10px; background: #222; }
.phed .ocard { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; margin: 6px 0 10px; }
.phed .ocard.half { width: calc(50% - 5px); height: 150px; }
.phed .ocard.half b { font-size: 1.1rem; }
.phed .ocard:active { cursor: grabbing; }
.phed input[type=range] { width: 100%; accent-color: var(--pink); }
.phed .zoom { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; }
.osheet .x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; font-size: 1rem; }
.osheet .obd { padding: 0 16px; margin-top: -30px; position: relative; z-index: 1; }
.osheet h2 { font-family: var(--titre); font-weight: 400; font-size: 1.8rem; text-transform: uppercase; margin: 0 0 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.choix { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.choix label { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; }
.choix label:has(input:checked) { border-color: var(--pink); background: var(--pink-soft); }
.choix input { accent-color: var(--pink); width: 18px; height: 18px; flex: none; }
.choix .grow { flex: 1; min-width: 0; }
.choix .grow b { display: block; font-size: .95rem; }
.choix .grow span { font-size: .78rem; color: var(--muted); }
.choix .p { font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.choix em { font-style: normal; background: var(--green); color: #fff; font-size: .65rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }

/* ---- Vidéos ---- */
.vtabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px; scrollbar-width: none; }
.vtabs::-webkit-scrollbar { display: none; }
.vtabs button { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: none; font-size: .82rem; color: var(--muted); cursor: pointer; }
.vtabs button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }
.vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 700px) { .vgrid { grid-template-columns: repeat(3, 1fr); } }
.vid { position: relative; isolation: isolate; aspect-ratio: 9 / 14; border-radius: 16px; overflow: hidden; background: #1a1a1a center / cover no-repeat; cursor: pointer; border: 0; padding: 0; color: #fff; text-align: left; }
.vid::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .85)); }
.vid .pl { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .25); backdrop-filter: blur(6px); display: grid; place-items: center; }
.vid .pl::before { content: ""; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
.vid .t { position: absolute; left: 10px; right: 10px; bottom: 9px; }
.vid .t b { display: block; font-size: .84rem; line-height: 1.2; }
.vid .t small { font-size: .68rem; opacity: .85; }
.vid .d { position: absolute; top: 8px; right: 8px; background: rgba(0, 0, 0, .6); font-size: .66rem; padding: 2px 7px; border-radius: 999px; font-weight: 600; }
.vid .n { position: absolute; top: 8px; left: 8px; background: var(--pink); font-size: .62rem; padding: 2px 7px; border-radius: 999px; font-weight: 700; }
.vid.big { grid-column: span 2; aspect-ratio: 16 / 11; }
.vid.big .t b { font-size: 1.02rem; }
/* Lecteur plein écran */
.reel { position: fixed; inset: 0; z-index: 80; background: #000; display: flex; align-items: center; justify-content: center; }
.reel video { width: 100%; height: 100%; max-width: 560px; object-fit: contain; background: #000; }
.reel .x { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .5); color: #fff; font-size: 1.2rem; cursor: pointer; }
.reel .cap { position: absolute; left: 16px; right: 16px; top: calc(66px + env(safe-area-inset-top)); z-index: 2; color: #fff; pointer-events: none; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); max-width: 520px; margin: 0 auto; }
.reel .cap .who { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 4px; }
.reel .cap .who img { width: 28px; height: 28px; border-radius: 50%; }
.reel .cap p { margin: 0; font-size: .92rem; }

/* ---- Défis ---- */
.dhero { position: relative; isolation: isolate; border-radius: 22px; overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; background: #1a1a1a center 25% / cover no-repeat; margin-bottom: 14px; color: #fff; }
.dhero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .88)); }
.dhero .in { padding: 16px; width: 100%; }
.dk { display: inline-block; background: var(--pink); color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; }
.dhero h2 { font-family: var(--titre); font-weight: 400; font-size: 2rem; text-transform: uppercase; margin: 8px 0 2px; line-height: 1.05; color: #fff; }
.dhero p { margin: 0 0 12px; font-size: .88rem; opacity: .92; }
.dhero .row { display: flex; gap: 10px; align-items: center; }
.dfait { flex: 1; border: 0; border-radius: 12px; background: #fff; color: #111; font-weight: 700; padding: 12px; cursor: pointer; font-size: .95rem; }
.dfait.ok { background: var(--green); color: #fff; }
.dhero .cpt { font-size: .75rem; opacity: .9; text-align: right; line-height: 1.25; }
.dline { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 10px; margin-bottom: 10px; }
.dline .im { width: 76px; height: 76px; border-radius: 14px; background: #222 center / cover no-repeat; flex: none; }
.dline .grow { flex: 1; min-width: 0; }
.dline .grow b { display: block; font-size: .96rem; }
.dline .grow > span { display: block; font-size: .78rem; color: var(--muted); }
.dline .k { font-size: .64rem; font-weight: 700; color: var(--pink); text-transform: uppercase; letter-spacing: .08em; }
.dline .dfait { flex: none; padding: 9px 12px; font-size: .8rem; background: var(--field); color: var(--ink); border: 1px solid var(--line); }
.dline .dfait.ok { background: var(--green); color: #fff; border-color: var(--green); }
.dprog { height: 7px; border-radius: 7px; background: var(--line); margin-top: 7px; overflow: hidden; }
.dprog i { display: block; height: 100%; background: var(--pink); border-radius: 7px; }
.badges { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.badges div { flex: none; width: 76px; text-align: center; font-size: .68rem; color: var(--muted); }
.badges b { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 4px; border-radius: 50%; background: var(--pink-soft); color: var(--ink); font-family: var(--titre); font-weight: 400; font-size: 1.25rem; border: 2px solid var(--pink); }
.badges div.off b { border-color: var(--line); background: var(--card); color: var(--muted); }

/* ---- Contenu (coach) ---- */
.drop { display: flex; gap: 12px; align-items: center; border: 1.5px dashed var(--line); border-radius: 16px; padding: 10px; cursor: pointer; margin-bottom: 12px; }
.drop:hover { border-color: var(--pink); }
.drop-ph { width: 60px; height: 80px; border-radius: 12px; background: var(--field); flex: none; display: grid; place-items: center; color: var(--pink); overflow: hidden; }
.drop-ph svg { width: 26px; height: 26px; }
.drop-ph video { width: 100%; height: 100%; object-fit: cover; }
.drop-tx { min-width: 0; }
.drop-tx b { display: block; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-tx small { color: var(--muted); font-size: .76rem; }
.tpick { display: flex; flex-wrap: wrap; gap: 6px; }
.tpick button { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 7px 13px; font-size: .82rem; color: var(--muted); cursor: pointer; }
.tpick button.on { background: var(--pink); border-color: var(--pink); color: #fff; font-weight: 600; }
.phpick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.phpick button { flex: none; width: 54px; height: 70px; border-radius: 10px; border: 2px solid transparent; background: #222 center / cover no-repeat; cursor: pointer; }
.phpick button.on { border-color: var(--pink); }
.sw { display: flex; align-items: center; gap: 8px; font-size: .88rem; margin-bottom: 12px; }
.sw input { accent-color: var(--pink); width: 18px; height: 18px; }
.upbar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-bottom: 10px; }
.upbar i { display: block; height: 100%; width: 0; background: var(--pink); transition: width .2s; }
.cl { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cl:last-child { border-bottom: 0; }
/* Disponibilités de la coach et choix du créneau */
.dispo-res { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dispo-res span { font-size: .8rem; padding: 5px 10px; border-radius: 99px; background: var(--pink-soft); }
.dj-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dj-row > b { width: 36px; flex: none; padding-top: 8px; font-size: .9rem; }
.dj-pl { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.dj-pl input { flex: 1; min-width: 0; padding: 8px; }
.dj-pl span { font-size: .8rem; color: var(--muted); }
.dj-perso { gap: 8px; margin-top: 8px; align-items: center; }
.dj-perso input { flex: 1; min-width: 0; }
.dj-perso span { font-size: .85rem; color: var(--muted); }
.dj-off { display: inline-block; padding: 8px 0 4px; }
.dj-add { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--pink); font: inherit; font-size: .82rem; font-weight: 600; padding: 4px 0; cursor: pointer; }
.dj-add svg { width: 16px; height: 16px; }
.cr-days { display: flex; gap: 8px; overflow-x: auto; padding: 0 4px 6px; margin: 0 -4px 12px; scrollbar-width: none; }
.cr-days button { flex: none; width: 58px; padding: 8px 0; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: inherit; font: inherit; display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer; }
.cr-days button b { font-size: 1.15rem; }
.cr-days button small { font-size: .7rem; color: var(--muted); }
.cr-days button.on { background: var(--pink); border-color: var(--pink); color: #fff; }
.cr-days button.on small { color: #fff; }
.cr-hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.cr-hours button { padding: 11px 0; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.cr-hours button.on { background: var(--pink); border-color: var(--pink); color: #fff; }
.pay-cr { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--pink-soft); font-weight: 600; font-size: .9rem; }
.pay-cr-ok { text-align: left; display: flex; flex-direction: column; gap: 4px; }
.cl.xv .anim.mini { width: 72px; }
.cl.xv .btn { flex: none; }
.cl .im { width: 46px; height: 60px; border-radius: 10px; background: #222 center / cover no-repeat; flex: none; }
.cl .grow { flex: 1; min-width: 0; }
.cl .grow b { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl .grow span { font-size: .76rem; color: var(--muted); }

.duo .ocard:last-child:nth-child(odd) { grid-column: span 2; }
@media (min-width: 700px) { .duo { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } .duo .ocard:last-child:nth-child(odd) { grid-column: auto; } }
/* Petit téléphone : pas la place pour 3 boutons en haut ; on actualise en tirant la page vers le bas */
@media (max-width: 899px) { .top .refresh-btn { display: none; } .top .msg-btn { margin-left: auto; } }
.head.ph[data-photo="blanc-casiers"]::after { background-position: center 45%; }

/* ---- Connexion : Google, Apple, téléphone, e-mail ---- */
.au-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: rgba(255, 255, 255, .55); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.au-or::before, .au-or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .18); }
.au-g { display: flex; justify-content: center; min-height: 44px; margin-bottom: 10px; color-scheme: normal; }
.btn.au-btn { background: rgba(255, 255, 255, .08); color: #fff; border: 1.5px solid rgba(255, 255, 255, .22); height: 46px; margin-bottom: 10px; justify-content: center; font-weight: 600; }
.btn.au-btn svg { width: 19px; height: 19px; }
.wl-btn svg { width: 18px; height: 18px; }
.au-h { color: #fff; font-size: 1.25rem; margin: 0 0 12px; }
.au-p { color: rgba(255, 255, 255, .75); font-size: .9rem; margin: 0 0 14px; }
.au-p b { color: #fff; }
.au-switch { text-align: center; color: rgba(255, 255, 255, .7); font-size: .88rem; margin: 14px 0 0; }
.au-link { background: none; border: 0; padding: 0; color: #ff5c8a; font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.au-back { display: block; margin-bottom: 12px; color: rgba(255, 255, 255, .7); text-decoration: none; font-weight: 600; }
.glass input.au-code { font-size: 1.5rem; letter-spacing: .4em; text-align: center; }
.au-dev { background: rgba(255, 92, 138, .18); border: 1px dashed #ff5c8a; color: #fff; border-radius: 12px; padding: 8px 12px; font-size: .82rem; margin: 0 0 12px; }
#sErr:empty { display: none; }
/* Coach : clés d'inscription */
.cle-l { display: flex; align-items: center; gap: 6px; padding: 9px 0; border-top: 1px solid var(--line); }
.cle-l .grow span { display: block; font-size: .76rem; color: var(--muted); }
.cle-l .pill { margin-top: 0; }
.cle-code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; font-size: .98rem; }
.cle-old { margin-top: 8px; }
.cle-old summary { cursor: pointer; font-size: .82rem; color: var(--muted); padding: 6px 0; }
.cle-big { text-align: center; background: var(--pink-soft); border-radius: 14px; padding: 10px; margin-bottom: 12px; }
.cle-big small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.cle-big b { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.6rem; letter-spacing: .12em; color: var(--pink); user-select: all; }
/* Inscription : clé de Diana, paiement, puis compte */
.glass input.au-cle { font-size: 1.35rem; letter-spacing: .18em; text-align: center; text-transform: uppercase; font-weight: 700; }
.glass input.au-cle::placeholder { letter-spacing: .18em; opacity: .35; }
.au-sum { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: rgba(255, 92, 138, .14); border: 1px solid rgba(255, 92, 138, .4); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; color: #fff; }
.au-sum span b { display: block; font-size: .98rem; }
.au-sum small { color: rgba(255, 255, 255, .7); font-size: .8rem; }
.au-sum > b { color: #ff5c8a; font-size: 1.35rem; white-space: nowrap; }
.au-stripe { background: #fff; color: #333; }
.au-stripe .empty { color: #666; }
.au-safe { text-align: center; font-size: .8rem; margin: 10px 0 0; }
.au-ok { display: inline-block; background: rgba(61, 220, 132, .15); color: #6ff0a6; border-radius: 99px; padding: 5px 12px; font-size: .82rem; font-weight: 600; margin: -4px 0 12px; }
.btn.au-btn2 { margin: 10px 0 0; }

/* ---- Connexion : une photo par écran, et sur les écrans à formulaire la tête de Diana reste visible ---- */
.welcome[data-ecran]:not([data-ecran="start"]) h1,
.welcome[data-ecran]:not([data-ecran="start"]) .wl-tag { display: none; }
.welcome[data-ecran]:not([data-ecran="start"])::before { background: linear-gradient(180deg, rgba(10, 10, 10, .45) 0%, rgba(10, 10, 10, 0) 14%, rgba(10, 10, 10, .1) 30%, rgba(10, 10, 10, .9) 46%, #0a0a0a 58%); }
.welcome[data-ecran="login"] { background-image: url(/img/nouvelles/blanc-curl.jpg); background-position: 38% 0; }
.welcome[data-ecran="choix"], .welcome[data-ecran="cle"], .welcome[data-ecran="payer"], .welcome[data-ecran="retour"] { background-image: url(/img/nouvelles/rose-squat.jpg); background-position: 45% 0; }
.welcome[data-ecran="signupMail"], .welcome[data-ecran="setup"] { background-image: url(/img/nouvelles/rose-elastique.jpg); background-position: 50% 0; }
.welcome[data-ecran="mail"] { background-image: url(/img/nouvelles/noir-escalier.jpg); background-position: 50% 0; }
.welcome[data-ecran="tel"], .welcome[data-ecran="telCode"] { background-image: url(/img/nouvelles/blanc-banc.jpg); background-position: 40% 0; }
.welcome[data-ecran]:not([data-ecran="start"]) .au-h { font-family: var(--titre); font-weight: 400; text-transform: uppercase; font-size: 2rem; line-height: 1; letter-spacing: .01em; margin-bottom: 14px; }
.welcome[data-ecran]:not([data-ecran="start"]) { background-color: #0a0a0a; background-size: max(100vw, 72vh) auto; background-repeat: no-repeat; }
.welcome[data-ecran]:not([data-ecran="start"])::before { background: linear-gradient(180deg, rgba(10, 10, 10, .45) 0, rgba(10, 10, 10, 0) 9vh, rgba(10, 10, 10, .1) 24vh, rgba(10, 10, 10, .92) 40vh, #0a0a0a 50vh); }
.welcome[data-ecran]:not([data-ecran="start"]) .wl-body { padding-top: 32vh; }
@media (min-width: 900px) {
  .welcome[data-ecran]:not([data-ecran="start"]) { background-size: cover; }
  .welcome[data-ecran]:not([data-ecran="start"])::before { background: linear-gradient(90deg, rgba(12, 10, 14, .92) 0%, rgba(12, 10, 14, .6) 40%, rgba(12, 10, 14, 0) 70%); }
  .welcome[data-ecran]:not([data-ecran="start"]) .wl-body { padding-top: 0; }
}

/* ---- Connexion : affichage en fondu (au chargement et en changeant d'écran) ---- */
.welcome::after { content: ""; position: absolute; inset: 0; z-index: -1; background: #0a0a0a; opacity: 1; pointer-events: none; transition: opacity .45s ease; }
.welcome .wl-body, .welcome .wl-top { opacity: 0; transition: opacity .45s ease; }
.welcome.wl-pret::after { opacity: 0; }
.welcome.wl-pret .wl-body, .welcome.wl-pret .wl-top { opacity: 1; }
.welcome.wl-swap::after { animation: wlNoir .5s ease-out; }
.welcome.wl-swap .wl-body { animation: wlMonte .35s ease-out; }
@keyframes wlNoir { from { opacity: 1; } to { opacity: 0; } }
@keyframes wlMonte { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .welcome.wl-swap::after, .welcome.wl-swap .wl-body { animation: none; }
}

/* ---- Séries en temps et blocs (superset, Tabata, HIIT, EMOM) ---- */
.exo-ed .mode-t { margin-top: 8px; padding: 3px; }
.exo-ed .mode-t button { padding: 6px; font-size: .8rem; }
.bloc-ed { margin-top: 10px; padding: 10px; border-radius: 14px; border: 1.5px solid var(--pink-line); background: color-mix(in srgb, var(--pink-soft) 45%, transparent); }
.bloc-ed > .row select { font-weight: 700; padding: 8px 10px; }
.bloc-ed .nums { display: grid; gap: 8px; margin-top: 8px; }
.bloc-ed > .nums label span { display: block; font-size: .7rem; color: var(--muted); margin-bottom: 2px; text-align: center; }
.bloc-ed > .nums input { padding: 8px 6px; text-align: center; }
.bloc-ed .exo-ed { background: var(--card); }
.bloc-row { margin: 8px 0; padding: 4px 10px 2px; border-left: 3px solid var(--pink); border-radius: 4px 12px 12px 4px; background: color-mix(in srgb, var(--pink-soft) 50%, transparent); }
.bloc-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 6px 0 2px; }
.bloc-h span { font-size: .8rem; color: var(--muted); }

.run-btn { position: relative; overflow: hidden; font-variant-numeric: tabular-nums; }
.run-btn #runBar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: color-mix(in srgb, var(--pink) 55%, transparent); transition: width .25s linear; }
.run-btn span { position: relative; }

.bl-timer { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 14px 22px; margin-bottom: 12px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); overflow: hidden; text-align: center; }
.bl-timer small { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bl-timer b { font-size: 3.4rem; line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; }
.bl-timer span { font-size: .85rem; color: var(--muted); }
.bl-timer.effort, .bl-timer.prep { background: var(--pink); border-color: var(--pink); color: #fff; }
.bl-timer.effort small, .bl-timer.effort span, .bl-timer.prep small, .bl-timer.prep span { color: rgba(255, 255, 255, .85); }
.bl-timer.repos { background: color-mix(in srgb, var(--green) 14%, var(--card)); border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.bl-timer.repos b { color: var(--green); }
.bl-timer.atoi b { font-size: 2rem; padding: 8px 0; }
.bl-timer.fini b { color: var(--green); }
.bl-timer.paused b { opacity: .5; }
.bl-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(0, 0, 0, .08); }
.bl-bar i { display: block; height: 100%; background: currentColor; opacity: .55; transition: width .3s; }
.bl-exo { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bl-exo .anim { flex: none; width: 110px; border-radius: 14px; border: 1px solid var(--line); }
.bl-exo .grow { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bl-exo small { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bl-exo b { font-size: 1.2rem; }
.bl-exo span { font-size: .85rem; }
.bl-list { margin-top: 12px; }
.bl-list h2 { font-size: .9rem; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.bl-list div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: .9rem; }
.bl-list div span { color: var(--muted); white-space: nowrap; }
.bl-list div.on { background: var(--pink-soft); }
.bl-list div.on b { color: var(--pink); }
.pk-q { gap: 8px; }
.pk-q .btn { flex: none; }
.pk-ia-h { font-size: .85rem; color: var(--pink); margin: 14px 0 8px; font-weight: 700; }
.pk-ia { text-align: left; align-items: flex-start; }
.pk-ia .grow > span { display: block; }
.pk-ia .pk-note { margin-top: 4px; font-size: .78rem; color: var(--muted); }
.pk-wait { margin-top: 12px; }

/* ---- À faire aujourd'hui ---- */
.afaire .dtile-h { margin-bottom: 4px; }
.afaire .dtile-h .pill { margin: 0; }
.todo { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 4px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
div.todo { cursor: default; }
.todo .tick { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--pink-line); font-size: .95rem; }
.todo .tick svg { width: 16px; height: 16px; }
.todo.ok .tick { background: var(--green); border-color: var(--green); color: #fff; }
.todo .grow { display: flex; flex-direction: column; min-width: 0; }
.todo .grow span { font-size: .8rem; color: var(--muted); }
.todo.ok b { text-decoration: line-through; opacity: .6; }
.todo-q { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 2px; }
.todo-q .btn { flex: 1; }
.wk .dots i.a { background: var(--amber); }

/* ---- Activités ---- */
.sports { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.sports button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; font-size: .7rem; line-height: 1.2; cursor: pointer; text-align: center; }
.sports button span { font-size: 1.4rem; }
.sports button.on { border-color: var(--pink); background: var(--pink-soft); color: var(--pink); font-weight: 600; }
.act-it .grow > span { display: block; }
.act-it .note { font-style: italic; margin-top: 2px; }
.empty.small { padding: 18px 12px; font-size: .88rem; }

/* ---- Planning de la coach ---- */
.plan-j { padding: 12px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.plan-j.auj { border-color: var(--pink); }
.plan-j.passe { opacity: .7; }
.plan-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.plan-h b { text-transform: capitalize; }
.plan-it { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px dashed var(--line); font-size: .92rem; }
.plan-it.ok .grow { text-decoration: line-through; opacity: .65; }
.plan-it .icon-btn { width: 30px; height: 30px; }
.chips-l { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-l .chip { border: 0; cursor: pointer; font: inherit; font-size: .78rem; }

/* ---- Documents ---- */
.pdf-pick { display: block; cursor: pointer; }
.pdf-pick span { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 12px; border: 2px dashed var(--pink-line); border-radius: 14px; color: var(--pink); font-weight: 600; text-align: center; word-break: break-word; }
.pdf-pick svg { width: 20px; height: 20px; flex: none; }
.doc-it .avatar, .doc-it .grow > span.avatar { display: grid; place-items: center; }
.doc-it .avatar svg { width: 20px; height: 20px; }
.avatar.emo, .doc-it .grow > span.avatar.emo { display: grid; place-items: center; font-size: 1.3rem; }
.item .grow span.nv { display: inline; color: var(--pink); font-weight: 700; }
#dbar { margin: 10px 0; }

/* ---- Réseaux sociaux, invitation ---- */
.reseaux { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.reseaux .rs { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; text-decoration: none; font-size: .85rem; font-weight: 600; }
.rs { color: #fff; background: var(--ink); }
.rs svg { width: 18px; height: 18px; flex: none; }
.rs-instagram { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.rs-youtube { background: #e62117; }
.rs-tiktok { background: #111; }
.rs-facebook { background: #1877f2; }
.rs-site { background: var(--pink); }
.rs-sign { margin: 22px 0 6px; text-align: center; font-size: .78rem; color: var(--muted); }
.rs-sign b { color: var(--ink); font-weight: 600; }
.rs-sign-i { display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
.rs-sign-i a { width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); border-radius: 50%; }
.rs-sign-i a:hover, .rs-sign-i a:active { color: var(--pink); }
.rs-sign-i svg { width: 19px; height: 19px; }
.rs-f { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rs-f .rs { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.rs-f small { display: block; font-size: .72rem; color: var(--muted); margin-bottom: 2px; }
.inv-txt { min-height: 190px; margin-bottom: 10px; font-size: .9rem; line-height: 1.45; }
.btn.wa-btn { background: #25d366; color: #fff; }
.btn.wa-line { color: #1fa855; border-color: color-mix(in srgb, #25d366 45%, transparent); }
.wa-btn svg, .wa-line svg { width: 18px; height: 18px; }
.plan-it .grow, .todo .grow, .rs-f .grow, .act-it .grow, .doc-it .grow, .bl-exo .grow { flex: 1; min-width: 0; }
.doc-open { display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.doc-open .grow > span { display: block; font-size: .8rem; color: var(--muted); }
.doc-open b { color: var(--ink); }
/* Visionneuse PDF dans l'appli : pages en images, rien à enregistrer d'un appui long */
.pdfv { position: fixed; inset: 0; z-index: 90; background: #111; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.pdfv-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.pdfv-bar b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdfv-bar .icon-btn { color: #fff; }
.pdfv-pages { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
.pdfv-pages canvas { display: block; width: 100%; height: auto; background: #fff; border-radius: 4px; margin: 0 auto 12px; pointer-events: none; }
.pdfv-load { color: rgba(255, 255, 255, .7); text-align: center; margin-top: 40vh; }

/* ===================== Programme élève (photo, avancement, semaines, séances) ===================== */
@media (max-width: 899px) { body.pg-on .top { display: none; } }
.pg { margin: -4px -16px 0; --pg-card: rgba(255, 255, 255, .06); }
.pg-hero { position: relative; isolation: isolate; min-height: min(270px, 42vh); padding: calc(14px + env(safe-area-inset-top)) 16px 46px; display: flex; flex-direction: column; color: #fff; background: #0a0a0a var(--ph) center 22% / cover no-repeat; }
.pg-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 10, 10, .5) 0%, rgba(10, 10, 10, 0) 30%, rgba(10, 10, 10, .6) 100%); }
.pg-bar { display: flex; align-items: center; gap: 16px; }
.pg-bar b { flex: 1; min-width: 0; font-family: var(--titre); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; font-size: 1.7rem; line-height: 1; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.pg-rb { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--verre-line); background: var(--verre); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; display: grid; place-items: center; cursor: pointer; }
.pg-rb svg { width: 22px; height: 22px; }
.pg-hb { margin-top: auto; padding-top: 40px; }
.pg-hb p { font-size: 1rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
/* Nom du programme en grand, dernier mot en rose, lueur rose derrière (maquette Booty Sculpt) */
.pg-hb .pg-nom { font-family: var(--titre); font-weight: 400; text-transform: uppercase; font-size: clamp(2.2rem, 11vw, 3rem); line-height: .95; letter-spacing: .005em; margin-bottom: 8px; }
.pg-hb .pg-nom em { font-style: normal; color: #ff5c8a; }
.pg-chf { display: flex; gap: 20px; margin: 2px 0 12px; }
.pg-chf div { font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.pg-chf b { display: block; font-family: var(--titre); font-weight: 400; font-size: 1.5rem; line-height: 1.05; letter-spacing: 0; }
.pg-hero:has(.pg-nom) { background-position: center 64%; }
.pg-hero:has(.pg-nom)::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(75% 55% at 15% 85%, rgba(255, 92, 138, .38), transparent 70%); }
/* Cartes des programmes dans la boutique : voile rose à gauche */
.ocard[data-g^="prog:"]::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .85) 100%), linear-gradient(90deg, rgba(255, 92, 138, .4), transparent 55%); }
.pg-hb .pg-st { font-family: var(--titre); font-weight: 400; text-transform: uppercase; font-size: 1.9rem; line-height: 1; margin-bottom: 4px; }
.pg-pc { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.pg-pc span { flex: 1; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.pg-pc i { display: block; height: 100%; min-width: 8px; border-radius: 99px; background: var(--pink); }
.pg-pc b { font-weight: 500; font-size: 1rem; }
.pg-sheet { position: relative; margin-top: -26px; min-height: 60vh; background: var(--verre); border-top: 1px solid var(--verre-line); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); border-radius: 26px 26px 0 0; padding: 26px 16px 110px; }
.pg-seg { display: flex; padding: 4px; border-radius: 16px; border: 1px solid var(--verre-line); background: rgba(255, 255, 255, .04); margin-bottom: 26px; }
.pg-seg button { flex: 1; height: 38px; border: 0; border-radius: 12px; background: none; color: var(--muted); font-weight: 600; font-size: 1rem; cursor: pointer; }
.pg-seg button.on { background: var(--ink); color: var(--bg); }
.pg-wk { display: flex; overflow-x: auto; margin: 0 -16px; padding: 0 16px; border-bottom: 1px solid var(--verre-line); scrollbar-width: none; }
.pg-wk::-webkit-scrollbar { display: none; }
.pg-wk button { flex: none; min-width: 96px; padding: 12px 16px 14px; border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 1rem; position: relative; cursor: pointer; }
.pg-wk button.on { color: #fff; }
.pg-wk button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px; background: var(--pink); }
.pg-h { font-family: var(--titre); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; font-size: 1.35rem; margin: 20px 0 14px; }
.pg-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; text-decoration: none; color: #fff; }
.pg-ck { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--pg-card); border: 1px solid var(--verre-line); display: grid; place-items: center; }
.pg-ck svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; border: 2px solid var(--muted); color: var(--muted); stroke-width: 3; }
.pg-row.lock .pg-card { opacity: .5; }
.pg-row.lock .pg-ck { font-size: 1.1rem; }
.se-ordre { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); cursor: pointer; }
.se-ordre input { width: 22px; height: 22px; flex: none; accent-color: var(--pink); }
.se-ordre b { display: block; font-size: .92rem; }
.se-ordre small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.pg-cta button:disabled { opacity: .55; cursor: default; }
.pg-ck.ok svg { background: var(--pink); border-color: var(--pink); color: #fff; }
.pg-card { flex: 1; min-width: 0; display: flex; height: 92px; border-radius: 16px; overflow: hidden; background: var(--pg-card); border: 1px solid var(--verre-line); }
.pg-img { flex: none; width: 92px; background: #111 center 20% / cover no-repeat; }
.pg-tx { flex: 1; min-width: 0; padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between; }
.pg-tx b { font-weight: 700; font-size: .98rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pg-tx small { color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-about { color: rgba(255, 255, 255, .85); }
.pg-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.pg-stats div { background: var(--pg-card); border: 1px solid var(--verre-line); border-radius: 14px; padding: 12px 6px; text-align: center; }
.pg-stats b { display: block; font-family: var(--titre); font-weight: 400; font-size: 1.6rem; color: var(--ink); }
.pg-stats small { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.pg-sheet .exo-row { background: var(--pg-card); border: 1px solid var(--verre-line); border-radius: 16px; padding: 10px; margin: 12px 0; cursor: pointer; }
.pg-sheet .exo-row .anim.mini { width: 104px; }
.pg-sheet .bloc-row { background: rgba(255, 255, 255, .04); border-radius: 16px; padding: 10px; }
.pg-cta { position: fixed; left: 0; right: 0; z-index: 25; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding: 14px 16px; background: var(--verre); border-top: 1px solid var(--verre-line); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); border-radius: 22px 22px 0 0; }
.pg-cta button { width: 100%; height: 56px; border: 0; border-radius: 99px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 1rem; cursor: pointer; }
@media (min-width: 900px) {
  .pg { margin: 0; border-radius: 14px; overflow: hidden; }
  .pg-hero { min-height: 340px; padding-top: 22px; }
  .pg-cta { left: 264px; bottom: 0; max-width: 860px; margin: 0 auto; border-radius: 22px 22px 0 0; }
}

/* Le bonhomme de l'exercice en grand */
.modal.az .sheet { position: relative; padding-top: 18px; }
.az-anim { width: 100%; aspect-ratio: 200 / 132; border-radius: 18px; margin-bottom: 16px; }
.az-anim.no-anim span { font-size: 4rem; }
.modal.az h2 { margin-bottom: 4px; }
.az-x { position: absolute; top: 26px; right: 26px; z-index: 2; background: rgba(0, 0, 0, .55) !important; color: #fff !important; }
.az-tip { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--pink-soft); font-size: .9rem; }

/* ===================== Éditeur de séances (coach) : séances qui glissent, catalogue à toucher ===================== */
.se-strip, .se-chips, .se-pk { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.se-strip::-webkit-scrollbar, .se-chips::-webkit-scrollbar, .se-pk::-webkit-scrollbar { display: none; }
.se-strip, .se-chips, .se-pk { scroll-padding: 0 16px; }
/* Les cartes des séances restent dans les marges de la page */
.se-strip { margin: 0 0 14px; padding: 0 0 4px; scroll-padding: 0; }
.se-tab { flex: 0 0 150px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 16px; cursor: pointer; color: var(--ink); background: var(--verre); border: 1.5px solid var(--verre-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.se-tab small { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.se-tab b { font-size: .92rem; line-height: 1.2; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.se-tab span { font-size: .75rem; color: var(--muted); }
.se-tab.on { border-color: var(--pink); background: color-mix(in srgb, var(--pink) 18%, transparent); }
.se-tab.on small { color: var(--pink); }
.se-add { align-items: center; justify-content: center; border-style: dashed; color: var(--pink); }
.se-add i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: #fff; margin-bottom: 4px; }
.se-add i svg { width: 18px; height: 18px; }
.se-add b { text-align: center; color: var(--pink); }
.seance-ed .ee-mini { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--verre-line); background: rgba(255, 255, 255, .04); color: var(--ink); cursor: pointer; font: inherit; }
.ee-mini .anim.mini { width: 72px; }
.ee-mini .grow { min-width: 0; }
.ee-mini b { display: block; font-size: .92rem; }
.ee-mini small { display: block; font-size: .78rem; color: var(--muted); }
.ee-mini .chev { color: var(--muted); }
.seance-ed .ee-mini { gap: 10px; cursor: default; }
.ee-txt { background: none; border: 0; padding: 4px 0; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ee-txt em { display: inline-block; margin-top: 5px; font-style: normal; font-size: .74rem; font-weight: 600; color: var(--pink); }
.ee-bon { position: relative; flex: none; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 12px; }
.ee-bon i { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); font-style: normal; font-size: .7rem; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.ee-mv { display: flex; flex-direction: column; gap: 4px; flex: none; }
.ee-mv button { width: 34px; height: 30px; display: grid; place-items: center; border: 1px solid var(--verre-line); border-radius: 10px; background: rgba(255, 255, 255, .06); color: var(--ink); cursor: pointer; }
.ee-mv button svg { width: 16px; height: 16px; }
.ee-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ee-acts button { padding: 9px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.pk.on { border-color: var(--pink); box-shadow: 0 0 0 2px var(--pink) inset; }
.se-vide { margin: 12px 0 4px; }
.se-cat { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--verre-line); }
.se-h { margin-bottom: 10px; }
.se-h b { display: block; }
.se-h small { color: var(--muted); font-size: .75rem; }
.se-chips { gap: 6px; margin-bottom: 10px; }
.se-chips button { flex: none; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--verre-line); background: rgba(255, 255, 255, .05); color: var(--muted); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; scroll-snap-align: start; }
.se-chips button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.se-pk .pk { position: relative; flex: 0 0 140px; scroll-snap-align: start; }
.se-pk .pk i { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: #fff; }
.se-pk .pk i svg { width: 16px; height: 16px; }
.seance-ed { padding: 12px 16px; overflow: hidden; }
.se-lib { margin-top: 10px; }
.se-lib > span { display: block; font-size: .75rem; color: var(--muted); margin-bottom: 6px; }
.se-lib .se-chips { margin-bottom: 0; }
.se-chips .se-new { display: inline-flex; align-items: center; gap: 4px; border-style: dashed; border-color: var(--pink); color: var(--pink); }
.se-chips .se-new svg { width: 14px; height: 14px; }
.se-libf { gap: 8px; margin-top: 8px; }
/* Fond des pages de création de séances : la photo de l’accueil (District), moins voilée */
body.fond-clair #fond::before { filter: blur(20px) saturate(1.3) brightness(1.1); background-position: 45% 30%; }
body.fond-clair #fond::after { background: rgba(10, 10, 10, .42); }

/* ---- Progrès : évolution mensuelle, mise en page « magazine » ---- */
.card.ev { padding: 0; overflow: hidden; }
.ev-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; padding: 16px 16px 12px; }
.ev-h h2 { margin: 0; }
.ev-per { font-size: .78rem; color: var(--muted); }
.ev-per b { color: var(--pink); font-weight: 700; }
/* Avant / après bord à bord, rien par-dessus les visages ni les silhouettes */
.ev-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.ev-ph { position: relative; display: block; aspect-ratio: 3 / 4.2; overflow: hidden; border: 0; padding: 0; background: rgba(127, 127, 127, .12); cursor: pointer; }
.ev-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-ph > span { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 12px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff; text-align: left;
  font-family: var(--titre, Anton, sans-serif); font-weight: 400; text-transform: uppercase; font-size: 1.3rem; line-height: 1; }
.ev-ph > span small { display: block; margin-top: 4px; font-family: Poppins, sans-serif; font-size: .7rem; font-weight: 600; text-transform: none; opacity: .85; }
.ev-ph:last-child > span { text-align: right; }
.ev-vide { display: grid; place-items: center; cursor: default; background: repeating-linear-gradient(135deg, rgba(255, 92, 138, .06) 0 10px, transparent 10px 20px); }
.ev-vide > span { position: static; background: none; text-align: center; color: var(--muted); }
/* Chiffres clés de la période */
.ev-stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; text-align: center; padding: 14px 6px; border-bottom: 1px solid var(--line); }
.ev-stats div + div { border-left: 1px solid var(--line); }
.ev-stats b { display: block; font-family: var(--titre, Anton, sans-serif); font-weight: 400; font-size: 1.4rem; line-height: 1.1; }
.ev-stats b.moins { color: var(--green, #3ddc84); }
.ev-stats b.plus { color: var(--pink); }
.ev-stats span { font-size: .64rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
/* Frise des mois : petites photos rondes reliées par un trait */
.ev-frise { position: relative; display: flex; gap: 6px; overflow-x: auto; padding: 16px 16px 12px; scrollbar-width: none; }
.ev-frise::before { content: ""; position: absolute; left: 34px; right: 34px; top: 31px; height: 2px; background: var(--line); }
.ev-frise button { position: relative; flex: 1 0 52px; border: 0; background: none; padding: 0; color: var(--muted); font: 600 .66rem Poppins, sans-serif; cursor: pointer; }
.ev-frise i { display: block; width: 32px; height: 32px; margin: 0 auto 6px; border-radius: 50%; overflow: hidden; border: 2px solid var(--card, #141114); box-shadow: 0 0 0 2px var(--pink); background: #333; }
.ev-frise i img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-frise i.vide { display: grid; place-items: center; background: var(--card, #141114); box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); color: var(--muted); }
.ev-frise i.vide svg { width: 14px; height: 14px; }
.ev-pied { padding: 0 16px 16px; }
.ev-vide-tout { padding: 0 16px 16px; }
.ev-vide-tout p { font-size: .84rem; color: var(--muted); margin: 0 0 12px; }
@media (min-width: 900px) { .ev-mag { max-width: 560px; } .card.ev { max-width: 560px; } }

/* ---- Fiche élève (coach) : bandeau photo de Diana en blanc derrière « Élèves » et le nom ---- */
.fiche-ph { position: relative; isolation: isolate; min-height: 170px; margin: -4px -16px -96px; padding: 10px 16px 0; }
.fiche-ph::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url(/img/nouvelles/blanc-district.jpg) 45% 28% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent); mask-image: linear-gradient(180deg, #000 40%, transparent);
}
.fiche-ph::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(10, 10, 10, .45), rgba(10, 10, 10, 0) 45%); pointer-events: none; }
.fiche-ph .back { position: relative; z-index: 1; color: #fff; }
.fiche-ph + .chead { position: relative; padding-top: 96px; }
@media (min-width: 900px) {
  .fiche-ph { margin: 0 0 -110px; min-height: 210px; border-radius: 10px; overflow: hidden; }
  .fiche-ph + .chead { padding-top: 110px; }
}

/* ---- Coach sur téléphone : son rond (initiales) va dans le menu du bas, tout à droite, au lieu d'en haut ---- */
.nav-av { display: none; }
@media (max-width: 899px) {
  .top-coach .top-r.avatar { display: none; }
  .top-coach .msg-btn { margin-left: auto; }
  .nav a.nav-prof svg { display: none; }
  .nav a.nav-prof .nav-av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid currentColor; font-style: normal; font-size: .66rem; font-weight: 800; letter-spacing: .02em; }
  .nav a.nav-prof.on .nav-av { background: var(--pink); border-color: var(--pink); color: #fff; }
}

/* Programmes : photo de couverture et semaines */
.avatar.prog-ph { background: #111 center 20% / cover no-repeat; }
.ph-pick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; }
.ph-pick::-webkit-scrollbar { display: none; }
.ph-pick button { flex: none; width: 74px; height: 96px; border-radius: 12px; border: 3px solid transparent; background: #111 center 20% / cover no-repeat; cursor: pointer; }
.ph-pick button.on { border-color: var(--pink); }
.se-wks { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 10px; }
.se-wks::-webkit-scrollbar { display: none; }
.se-wks button { flex: none; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--verre-line); background: rgba(255, 255, 255, .05); color: var(--muted); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.se-wks button.on { background: var(--pink); color: #fff; border-color: var(--pink); }
.se-wks .se-new { display: inline-flex; align-items: center; gap: 4px; border-style: dashed; border-color: var(--pink); color: var(--pink); }
.se-wks .se-new svg { width: 14px; height: 14px; }
.se-wkinfo { margin: -2px 0 12px; }
.se-wkinfo .add-set { display: inline; margin-left: 4px; }
.cle-paie { margin: 4px 0 10px; }
.cc-box { display: block; background: var(--pink-soft); border-radius: 14px; padding: 12px; margin-bottom: 4px; }
.cc-box > small { display: block; font-size: .76rem; color: var(--muted); margin-top: 4px; }
.cc-box .cc-in { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; min-width: 0; }
.cc-box .cle-paie { margin: 10px 0 8px; }
.se-semf { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.se-semf select { flex: 1; }

/* Programme de bienvenue (offert à chaque nouvelle élève) */
.bienv-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 18px; text-decoration: none; color: inherit; border: 1px dashed var(--pink); }
.bienv-card b { font-size: 1rem; }
.item .grow span.bienv-pill { display: inline-block; margin: 0 0 0 6px; padding: 2px 8px; font-size: .7rem; color: var(--pink); vertical-align: middle; }
.bienv-sous { margin: -4px 0 10px; padding: 8px 12px; border-radius: 12px; background: rgba(0,0,0,.55); color: #fff; line-height: 1.4; }
.bienv-info { margin: -4px 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--pink-soft); color: var(--pink); line-height: 1.4; }
.bienv-info[hidden] { display: none; }

/* Mes exercices (Contenu → Exercices) */
.mx-vid { display: flex; gap: 12px; align-items: center; margin: -6px 0 12px; }
.mx-vid .anim.mini { width: 92px; aspect-ratio: 200 / 132; display: flex; align-items: center; justify-content: center; background: var(--card2, rgba(255,255,255,.05)); overflow: hidden; }
.mx-vid .anim.mini video, .mx-vid .anim.mini img { width: 100%; height: 100%; object-fit: cover; }

/* Petite liste d'exercices : exercices en plus (fiche élève), séance libre (élève) */
.xt-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.xt-row .anim.mini { width: 64px; }
.xt-tx { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.xt-tx b { display: block; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xt-tx small { display: block; font-size: .76rem; color: var(--muted); }
.xt-add { margin-top: 12px; }
.xt-nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.xt-nums label span { display: block; font-size: .74rem; color: var(--muted); margin-bottom: 4px; }
.xt-nums input { width: 100%; text-align: center; }
.xt-card .suivi-f { margin-top: 12px; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.xt-card .suivi-f #xtState { flex-basis: 100%; }
.xt-card .suivi-f #xtState:empty { display: none; }

/* Prix de l'inscription choisi par la coach (clé ou code commun) */
.cle-prix { display: flex; align-items: center; gap: 8px; margin: -2px 0 10px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.cle-prix[hidden] { display: none; }
.cle-prix span { flex: 1; }
.cle-prix input { width: 90px; text-align: right; font-weight: 700; }
.cle-prix b { color: var(--text, inherit); }
.cle-prix-big { font-size: 1.4rem; font-weight: 800; text-align: center; }
.f[hidden] { display: none; }
.cle-prix .cle-prix-ok { flex: none; display: inline-flex; align-items: center; gap: 4px; }
.cle-prix .cle-prix-ok svg { width: 15px; height: 15px; }
.cle-prix input { width: 72px; }
/* Créer son compte : clé d'inscription ou code commun */
.au-choix { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; margin-bottom: 10px; border-radius: 16px; border: 1.5px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; cursor: pointer; }
.au-choix:active { transform: scale(.98); }
.au-choix b { display: block; font-size: 1rem; }
.au-choix small { display: block; font-size: .8rem; opacity: .75; margin-top: 2px; }
.au-choix-ico { font-size: 1.5rem; flex: none; }

/* Nombre de semaines du programme : − 8 + */
.se-nbw { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 0 10px; border: 1px solid var(--verre-line); border-radius: 14px; background: rgba(255, 255, 255, .04); }
.se-nbw b { display: block; font-size: .9rem; }
.se-nbw small { display: block; font-size: .74rem; color: var(--muted); }
.se-nbw button { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.se-nbw button:disabled { opacity: .35; cursor: default; }
.se-nbw .se-nbw-n { min-width: 28px; text-align: center; font-size: 1.25rem; }
