/* ─── Variables ─────────────────────────────── */
:root {
  --bg:       #06060a;
  --surface:  #0d0d16;
  --surface2: #13131e;
  --accent:   #00e676;
  --gold:     #ffc62d;
  --white:    #f2eeea;
  --muted:    #555a72;
  --border:   rgba(255,255,255,0.07);
  --nav-h:    72px;
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
  --font-d:   'Syne', sans-serif;
  --font-b:   'Manrope', sans-serif;
  --font-s:   'Bebas Neue', sans-serif;
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--white); font-family: var(--font-b); overflow: hidden; -webkit-font-smoothing: antialiased; cursor: none; }
a, button, input, textarea, select { cursor: none; }
a { text-decoration: none; color: inherit; }
button { background: none; border: none; font: inherit; color: inherit; outline: none; }

/* Accessibilité clavier : anneau de focus visible (au clavier uniquement, pas à la souris) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
a:focus-visible, button:focus-visible, .nav-tab:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible, .ex-card:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
/* Lien d'évitement (saut au contenu) */
.skip-link { position: fixed; top: -60px; left: 12px; z-index: 10050; background: var(--accent); color: #04130a;
  padding: 10px 18px; border-radius: 0 0 8px 8px; font-weight: 700; font-size: .85rem; transition: top .2s; }
.skip-link:focus { top: 0; }
img { display: block; max-width: 100%; }

/* ─── Grain ──────────────────────────────────── */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 9990; pointer-events: none; opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ─── Loader ──────────────────────────────────── */
#loader { position: fixed; inset: 0; z-index: 9999; background: var(--bg); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 28px; transition: opacity .9s var(--ease); }
#loader.out { opacity: 0; pointer-events: none; }
.loader-wordmark { font-family: var(--font-d); font-weight: 800; font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: .18em; color: var(--white); }
.loader-wordmark b { color: var(--accent); font-weight: 800; }
.loader-track { width: 220px; height: 1.5px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.loader-fill { height: 100%; background: var(--accent); animation: lf 1.4s var(--ease) forwards; }
@keyframes lf { from { width: 0 } to { width: 100% } }

/* ─── Cursor ──────────────────────────────────── */
#cdot { position: fixed; z-index: 2147483647; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); pointer-events: none; transform: translate(-50%,-50%); }
#cring { position: fixed; z-index: 2147483646; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(0,230,118,.4); pointer-events: none; transform: translate(-50%,-50%); transition: width .25s, height .25s, border-color .25s; }
#cring.big { width: 52px; height: 52px; border-color: var(--accent); }

/* ─── Nav ─────────────────────────────────────── */
nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 100; display: flex; align-items: center; padding: 0 clamp(20px,4vw,64px); gap: 32px; background: rgba(6,6,10,.88); backdrop-filter: blur(24px) saturate(1.4); border-bottom: 1px solid var(--border); }
.nav-logo { font-family: var(--font-d); font-weight: 800; font-size: 1.2rem; letter-spacing: .14em; white-space: nowrap; flex-shrink: 0; }
.nav-logo span { color: var(--accent); }
.nav-tabs { display: flex; align-items: center; gap: 2px; flex: 1; position: relative; overflow-x: auto; scrollbar-width: none; }
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tab { font-size: .8rem; font-weight: 500; letter-spacing: .03em; color: var(--muted); padding: 8px 16px; border-radius: 6px; transition: color .2s; white-space: nowrap; flex-shrink: 0; }
.nav-tab:hover { color: var(--white); }
.nav-tab.active { color: var(--white); }
.nav-ind { position: absolute; bottom: -17px; height: 2px; background: var(--accent); border-radius: 2px; transition: left .4s var(--ease), width .4s var(--ease); }
.nav-btn { margin-left: auto; flex-shrink: 0; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 10px 24px; border: 1.5px solid var(--accent); border-radius: 5px; color: var(--accent); transition: background .2s, color .2s; }
.nav-btn:hover { background: var(--accent); color: var(--bg); }

/* ─── Onglets du haut : affichage adaptatif ───────────────
   Déconnecté : Accueil · Services · Méthode · Coaching.
   Connecté   : Exercices · Anatomie · Routine · Minuteur · Coaching.
   Le reste vit dans le tiroir latéral ☰. */
.nav-tab.top-drawer { display: none; }                 /* jamais dans la barre du haut */
body.is-authed .nav-tab.top-out { display: none; }      /* masqué une fois connecté */

/* ─── Bouton ☰ (toujours visible) ─────────────────────── */
.nav-burger { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; margin-left: 4px; width: 44px; height: 44px; cursor: pointer; flex-shrink: 0; }
.nav-burger span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Tiroir latéral de navigation ────────────────────── */
.nav-menu { position: fixed; top: var(--nav-h); right: 0; bottom: 0; width: min(330px, 86vw); z-index: 101;
  background: rgba(6,6,10,.98); backdrop-filter: blur(20px); border-left: 1px solid var(--border);
  flex-direction: column; padding: 16px clamp(16px,3vw,24px) 40px; gap: 7px; overflow-y: auto;
  transform: translateX(100%); visibility: hidden; transition: transform .32s var(--ease), visibility .32s; }
.nav-menu, .nav-menu[hidden] { display: flex; }         /* garde le panneau dans le flux pour l'animation */
body.menu-open .nav-menu { transform: translateX(0); visibility: visible; }
.nav-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.nav-menu-ttl { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nav-menu-close { font-size: 1.6rem; line-height: 1; color: var(--muted); width: 36px; height: 36px; border-radius: 8px; transition: color .2s, background .2s; }
.nav-menu-close:hover { color: var(--white); background: var(--surface); }
.nav-menu-grp { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(242,238,234,.4); margin: 10px 4px 2px; }
.nav-menu-item { text-align: left; font-size: 1rem; font-weight: 500; color: var(--white); padding: 13px 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); transition: border-color .2s, color .2s; }
.nav-menu-item.active, .nav-menu-item:hover { border-color: var(--accent); color: var(--accent); }
.nav-menu-cta { margin-top: 12px; padding: 16px; font-size: .9rem; text-align: center; border-radius: 10px; }
.nav-backdrop { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 100; background: rgba(2,2,6,.55);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
body.menu-open .nav-backdrop { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }
body.legal-lock { overflow: hidden; }

/* Liens légaux en bas du tiroir */
.nav-menu-legal { margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 8px; justify-content: center; }
.nav-menu-legal button { font-size: .76rem; color: var(--muted); transition: color .2s; }
.nav-menu-legal button:hover { color: var(--accent); }

/* Modales légales (RGPD) */
.legal-modal { position: fixed; inset: 0; z-index: 10010; display: flex; align-items: center; justify-content: center;
  padding: clamp(16px,4vw,40px); background: rgba(2,2,6,.72); backdrop-filter: blur(6px); overflow-y: auto; }
.legal-modal[hidden] { display: none; }
.legal-panel { position: relative; width: min(680px, 100%); max-height: 86vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: clamp(22px,4vw,38px); }
.legal-close { position: absolute; top: 14px; right: 16px; font-size: 1.8rem; line-height: 1; color: var(--muted);
  width: 40px; height: 40px; border-radius: 10px; transition: color .2s, background .2s; }
.legal-close:hover { color: var(--white); background: var(--surface2); }
.legal-panel h2 { font-family: var(--font-d); font-size: 1.5rem; margin: 0 0 14px; padding-right: 40px; }
.legal-panel h3 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 20px 0 6px; }
.legal-panel p, .legal-panel li { font-size: .9rem; line-height: 1.6; color: rgba(242,238,234,.82); }
.legal-panel ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal-panel a { color: var(--accent); text-decoration: underline; }
.legal-todo { color: var(--gold, #ffb300); font-size: .82rem; }

/* Bandeau d'information première visite */
.privacy-bar { position: fixed; left: 50%; bottom: 16px; transform: translate(-50%, 140%); z-index: 10005;
  width: min(720px, calc(100% - 24px)); display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: rgba(12,12,20,.97); backdrop-filter: blur(14px); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 18px; box-shadow: 0 12px 40px rgba(0,0,0,.5); transition: transform .4s var(--ease); }
.privacy-bar[hidden] { display: none; }
.privacy-bar.show { transform: translate(-50%, 0); }
.privacy-bar p { font-size: .82rem; line-height: 1.5; color: rgba(242,238,234,.85); margin: 0; flex: 1; min-width: 220px; }
.privacy-link { color: var(--accent); text-decoration: underline; font-size: .82rem; }
.privacy-bar .btn-g { padding: 10px 18px; font-size: .82rem; white-space: nowrap; }

/* ─── Routines enregistrées ───────────────────────────── */
.rt-saved-list { display: flex; flex-direction: column; gap: 6px; }
.rt-saved-item { display: flex; gap: 6px; }
.rt-saved-load { flex: 1; text-align: left; font-size: .84rem; color: var(--white); background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; cursor: pointer; transition: border-color .2s; }
.rt-saved-load:hover { border-color: var(--accent); }
.rt-saved-load span { color: var(--muted); font-size: .76rem; }
.rt-saved-del { width: 36px; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--muted); font-size: 1.1rem; cursor: pointer; transition: color .2s, border-color .2s; }
.rt-saved-del:hover { color: #ff6b6b; border-color: #ff6b6b; }
.rt-saved-empty { font-size: .78rem; color: var(--muted); margin: 0; }

/* ─── Minuteur : constructeur d'entraînement ──────────── */
.tm-builder { margin-top: 18px; }
.tm-ex-search-wrap { position: relative; }
.tm-ex-search { width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 11px 14px; color: var(--white); font-family: var(--font-b); font-size: .88rem; outline: none; transition: border-color .2s; }
.tm-ex-search:focus { border-color: var(--accent); }
.tm-ex-results { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; max-height: 260px; overflow-y: auto; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.tm-ex-res { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 10px 13px; font-size: .84rem; color: var(--white); cursor: pointer; border-bottom: 1px solid var(--border); }
.tm-ex-res:last-child { border-bottom: none; }
.tm-ex-res:hover { background: rgba(0,230,118,.08); }
.tm-ex-res em { color: var(--accent); font-style: normal; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.tm-ex-res-empty { color: var(--muted); cursor: default; }
.tm-ex-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tm-ex-item { display: flex; align-items: center; gap: 10px; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.tm-ex-idx { width: 22px; height: 22px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,230,118,.14); color: var(--accent); border-radius: 50%; font-size: .72rem; font-weight: 700; }
.tm-ex-nm { flex: 1; font-size: .82rem; color: var(--white); }
.tm-ex-acts { display: flex; gap: 3px; }
.tm-ex-acts button { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--border); color: var(--muted); font-size: .8rem; cursor: pointer; transition: color .2s, border-color .2s; }
.tm-ex-acts button:hover:not([disabled]) { color: var(--accent); border-color: var(--accent); }
.tm-ex-acts button[disabled] { opacity: .3; cursor: default; }
.tm-ex-acts .tm-ex-del:hover { color: #ff6b6b; border-color: #ff6b6b; }
.tm-ex-empty { list-style: none; font-size: .78rem; color: var(--muted); padding: 4px 0; }
.tm-builder-hint { font-size: .72rem; color: var(--muted); line-height: 1.5; margin: 8px 0 0; }
@media (max-width: 860px) {
  .nav-tabs { display: none; }       /* petit écran : toute la navigation passe par le tiroir ☰ */
  .nav-btn { display: none; }
  .nav-burger { margin-left: auto; }
}

/* ─── Sections wrap ───────────────────────────── */
.wrap { position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; }
.sec { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; opacity: 0; pointer-events: none; transition: opacity .55s var(--ease); }
.sec.active { opacity: 1; pointer-events: auto; }

/* ─── Shared ──────────────────────────────────── */
.lbl { font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.sh2 { font-family: var(--font-d); font-weight: 800; font-size: clamp(2rem,3.8vw,3.2rem); line-height: 1.04; }
.btn-g { display: inline-flex; align-items: center; gap: 10px; padding: 15px 34px; background: var(--accent); color: var(--bg); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-radius: 4px; transition: transform .2s, box-shadow .2s; }
.btn-g:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,230,118,.35); }
.btn-o { display: inline-flex; align-items: center; gap: 10px; padding: 15px 34px; border: 1.5px solid rgba(255,255,255,.2); color: var(--white); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border-radius: 4px; transition: border-color .2s, background .2s; }
.btn-o:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.on { opacity: 1; transform: none; }

/* ─── HERO ────────────────────────────────────── */
#accueil { display: flex; align-items: center; min-height: 100%; position: relative; }
.h-bg { position: absolute; inset: 0; background: linear-gradient(105deg,rgba(6,6,10,.97) 0%,rgba(6,6,10,.75) 55%,rgba(6,6,10,.45) 100%), url('https://images.unsplash.com/photo-1517836357463-d25dfeac3438?w=1920&q=70&fit=crop&auto=format') center/cover no-repeat; animation: hpan 22s ease-in-out infinite alternate; will-change: transform; }
@keyframes hpan { from { transform: scale(1.06) translateX(0); } to { transform: scale(1.06) translateX(-2%); } }
.h-content { position: relative; z-index: 2; max-width: 1240px; width: 100%; margin: 0 auto; padding: clamp(40px,7vh,96px) clamp(24px,4vw,64px); }
/* Entrée orchestrée : chaque bloc émerge en cascade */
.h-badge, .h-sub, .h-ctas, .h-stats { opacity: 0; animation: hreveal .85s var(--ease) forwards; }
.h-badge { animation-delay: .5s; }
.h-sub   { animation-delay: 1.05s; }
.h-ctas  { animation-delay: 1.22s; }
.h-stats { animation-delay: 1.42s; }
/* Titre cinétique : révélation par masque, ligne par ligne */
.h-mask { display: block; overflow: hidden; }
.h-word { display: block; transform: translateY(115%); animation: hword 1.05s var(--ease) forwards; }
.h-mask:first-child .h-word { animation-delay: .58s; }
.h-mask:last-child  .h-word { animation-delay: .76s; }
@keyframes hword { to { transform: translateY(0); } }
@keyframes hreveal { from { opacity: 0; transform: translateY(44px); } to { opacity: 1; transform: none; } }
.h-badge { display: inline-flex; align-items: center; gap: 12px; font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 30px; }
.h-badge::before { content:''; width:36px; height:1.5px; background:var(--accent); }
.h-title { font-family: var(--font-d); font-weight: 800; font-size: clamp(3.8rem,10vw,9.5rem); line-height: .9; letter-spacing: -.02em; color: var(--white); margin-bottom: 28px; }
/* « ÉQUIPES. » : contour qui se remplit de vert, comme une jauge d'énergie */
.h-title .ghost {
  color: transparent;
  -webkit-text-stroke: 2px rgba(242,238,234,.35);
  background: linear-gradient(100deg, var(--accent), #00c9a7 49.5%, transparent 50.5%);
  background-size: 210% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  animation: ghostfill 2.1s 1.9s var(--ease) forwards;
}
@keyframes ghostfill { to { background-position: 0% 0; } }
.h-sub { font-size: clamp(1rem,1.4vw,1.15rem); font-weight: 300; line-height: 1.75; color: rgba(242,238,234,.6); max-width: 500px; margin-bottom: 44px; }
.h-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 72px; }
.h-stats { display: flex; gap: clamp(28px,5vw,64px); padding-top: 36px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.h-stat .n { font-family: var(--font-s); font-size: clamp(2.8rem,5vw,4.5rem); color: var(--accent); line-height: 1; display: block; }
.h-stat .u { font-family: var(--font-s); font-size: 1.5rem; color: var(--accent); }
.h-stat .l { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 5px; display: block; }
.h-side { position: absolute; right: 44px; bottom: 44px; z-index: 3; writing-mode: vertical-rl; font-size: .62rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: rgba(85,90,114,.8); display: flex; align-items: center; gap: 12px; }
.h-line { width: 1px; height: 52px; background: linear-gradient(to bottom,var(--accent),transparent); animation: hline 2s ease-in-out infinite; }
@keyframes hline { 0%,100% { opacity:.4; transform:scaleY(1); } 50% { opacity:1; transform:scaleY(.6) translateY(40%); } }
/* ─── HERO : adaptation à la HAUTEUR d'écran ───────
   Sur un portable (large mais peu haut), le héros centré débordait et
   masquait les statistiques + la mention ville. On compacte le titre et
   les marges pour que tout (CTA + stats) tienne sans défiler. */
@media (max-height: 920px) {
  .h-content { padding-top: clamp(16px,3vh,48px); padding-bottom: clamp(16px,3vh,48px); }
  .h-badge { margin-bottom: 16px; }
  .h-title { font-size: clamp(3.4rem,9vh,7.5rem); margin-bottom: 14px; }
  .h-sub { margin-bottom: 22px; }
  .h-ctas { margin-bottom: 26px; }
  .h-stats { padding-top: 22px; }
  .h-stat .n { font-size: clamp(2rem,4.2vh,3.6rem); }
}
@media (max-height: 720px) {
  .h-content { padding-top: clamp(12px,2vh,32px); padding-bottom: clamp(12px,2vh,32px); }
  .h-badge { margin-bottom: 10px; }
  .h-title { font-size: clamp(2.6rem,7.6vh,5.4rem); margin-bottom: 10px; }
  .h-sub { margin-bottom: 16px; max-width: 460px; }
  .h-ctas { margin-bottom: 18px; }
  .h-stats { padding-top: 14px; gap: clamp(20px,4vw,44px); }
  .h-stat .n { font-size: clamp(1.7rem,3.4vh,2.6rem); }
  .h-side { display: none; }
}

/* ─── À PROPOS ────────────────────────────────── */
#apropos { display: grid; grid-template-columns: 5fr 7fr; min-height: 100%; }
.ap-photo { position: relative; background: url('https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=1600&q=70&fit=crop&auto=format') center/cover no-repeat; min-height: 600px; }
.ap-photo::after { content:''; position:absolute; inset:0; background: linear-gradient(to right,transparent 50%,var(--bg) 100%), linear-gradient(to top,rgba(6,6,10,.8) 0%,transparent 45%); }
.ap-badge { position: absolute; bottom: 36px; left: 32px; z-index: 2; background: rgba(6,6,10,.82); backdrop-filter: blur(12px); border: 1px solid var(--border); border-left: 3px solid var(--accent); padding: 16px 22px; border-radius: 4px; }
.ap-badge .nm { font-family: var(--font-d); font-weight: 800; font-size: 1.05rem; letter-spacing: .06em; }
.ap-badge .ti { font-size: .7rem; font-weight: 400; color: var(--muted); margin-top: 5px; text-transform: uppercase; letter-spacing: .12em; }
.ap-body { padding: clamp(44px,7vw,96px); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.ap-body h2 { line-height: 1.06; }
.ap-bio { font-size: .94rem; font-weight: 300; line-height: 1.82; color: rgba(242,238,234,.68); }
.ap-bio p + p { margin-top: 14px; }
.ap-quote { font-size: clamp(1.05rem,1.8vw,1.3rem); font-weight: 300; font-style: italic; border-left: 3px solid var(--accent); padding-left: 20px; line-height: 1.65; color: var(--white); }
.ap-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.ap-tag { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 8px 16px; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); transition: border-color .2s, color .2s; }
.ap-tag:hover { border-color: var(--accent); color: var(--accent); }

/* ─── SERVICES ────────────────────────────────── */
#services { min-height: 100%; padding: clamp(36px,5vh,56px) clamp(24px,4vw,64px); display: flex; flex-direction: column; }
.sec-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(28px,4vh,44px); }
.sec-hd-desc { font-size: .88rem; font-weight: 300; color: var(--muted); max-width: 340px; line-height: 1.7; align-self: flex-end; }
.svc-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; flex: 1; min-height: 400px; }
.svc-card { position: relative; border-radius: 8px; overflow: hidden; background: var(--surface2); min-height: 420px; }
.svc-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.3) saturate(.8); transition: filter .5s var(--ease), transform .6s var(--ease); }
.svc-card:hover .svc-bg { filter: brightness(.5) saturate(1); transform: scale(1.07); }
.svc-body { position: relative; z-index: 2; height: 100%; padding: 28px 22px; display: flex; flex-direction: column; justify-content: flex-end; }
.svc-n { font-family: var(--font-s); font-size: 5.5rem; color: rgba(255,255,255,.07); line-height: 1; position: absolute; top: 16px; right: 20px; transition: color .3s; user-select: none; }
.svc-card:hover .svc-n { color: rgba(0,230,118,.15); }
.svc-ic { width: 44px; height: 44px; flex-shrink: 0; background: rgba(0,230,118,.1); border: 1px solid rgba(0,230,118,.22); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; transition: background .3s; }
.svc-card:hover .svc-ic { background: rgba(0,230,118,.22); }
.svc-ic svg { width: 20px; height: 20px; stroke: var(--accent); }
.svc-nm { font-family: var(--font-d); font-weight: 700; font-size: clamp(1.1rem,1.8vw,1.35rem); line-height: 1.2; margin-bottom: 10px; }
.svc-ds { font-size: .8rem; font-weight: 300; color: rgba(242,238,234,.52); line-height: 1.65; max-height: 0; overflow: hidden; transition: max-height .45s var(--ease), opacity .35s; opacity: 0; }
.svc-card:hover .svc-ds { max-height: 120px; opacity: 1; }
.svc-lk { display: inline-flex; align-items: center; gap: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-top: 14px; opacity: 0; transition: opacity .3s .1s; }
.svc-lk svg { width: 14px; height: 14px; transition: transform .2s; }
.svc-lk:hover svg { transform: translateX(4px); }
.svc-card:hover .svc-lk { opacity: 1; }

/* ─── MÉTHODE ─────────────────────────────────── */
#methode { min-height: 100%; padding: clamp(36px,5vh,56px) clamp(24px,4vw,64px); }
.mth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: clamp(28px,4vh,44px); }
.mth-cell { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: 36px 32px; border: 1px solid var(--border); transition: background .3s; position: relative; }
.mth-cell:nth-child(1) { border-radius: 8px 0 0 0; }
.mth-cell:nth-child(2) { border-left: none; border-radius: 0 8px 0 0; }
.mth-cell:nth-child(3) { border-top: none; border-radius: 0 0 0 8px; }
.mth-cell:nth-child(4) { border-top: none; border-left: none; border-radius: 0 0 8px 0; }
.mth-cell:hover { background: var(--surface); }
.mth-nn { font-family: var(--font-s); font-size: 5.5rem; color: rgba(255,255,255,.06); line-height: 1; transition: color .3s; user-select: none; align-self: start; }
.mth-cell:hover .mth-nn { color: rgba(0,230,118,.12); }
.mth-txt { display: flex; flex-direction: column; justify-content: center; }
.mth-step { font-size: .65rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.mth-ttl { font-family: var(--font-d); font-weight: 700; font-size: clamp(1.2rem,2vw,1.6rem); line-height: 1.1; margin-bottom: 12px; }
.mth-dsc { font-size: .86rem; font-weight: 300; color: rgba(242,238,234,.58); line-height: 1.75; }
.mth-cell::before { content: ''; position: absolute; top: 0; left: 0; width: 0; height: 3px; background: var(--accent); border-radius: 0 2px 2px 0; transition: width .4s var(--ease); }
.mth-cell:hover::before { width: 60px; }

/* ─── RÉSULTATS ───────────────────────────────── */
#resultats { min-height: 100%; padding: clamp(36px,5vh,56px) clamp(24px,4vw,64px); }
.res-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: clamp(36px,5vh,52px); }
.res-stat { background: var(--surface); padding: 32px 24px; text-align: center; transition: background .25s; }
.res-stat:hover { background: var(--surface2); }
.res-stat .bn { font-family: var(--font-s); font-size: clamp(3rem,5vw,5rem); color: var(--accent); line-height: 1; display: block; }
.res-stat .bu { font-family: var(--font-s); font-size: 1.8rem; color: var(--accent); }
.res-stat .bl { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; display: block; }
.testi-ttl { font-family: var(--font-d); font-weight: 700; font-size: clamp(1.5rem,2.5vw,2.1rem); margin-bottom: 22px; }
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.testi { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 28px 24px; transition: border-color .25s, transform .3s; }
.testi:hover { border-color: rgba(0,230,118,.28); transform: translateY(-5px); }
.testi-stars { display: flex; gap: 4px; margin-bottom: 14px; color: var(--gold); font-size: .95rem; }
.testi-txt { font-size: .9rem; font-weight: 300; font-style: italic; color: rgba(242,238,234,.72); line-height: 1.75; margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-av { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-d); font-weight: 700; font-size: 1rem; color: var(--bg); }
.testi-nm { font-size: .86rem; font-weight: 600; }
.testi-rl { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }

/* ─── CONTACT ─────────────────────────────────── */
#contact { display: grid; grid-template-columns: 5fr 7fr; min-height: 100%; }
.ct-left { padding: clamp(44px,7vw,96px); background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; gap: 30px; }
.ct-left h2 { line-height: 1.06; }
.ct-left p { font-size: .92rem; font-weight: 300; color: rgba(242,238,234,.62); line-height: 1.75; }
.ct-items { display: flex; flex-direction: column; gap: 20px; }
.ct-item { display: flex; align-items: center; gap: 16px; }
.ct-ic { width: 46px; height: 46px; flex-shrink: 0; background: rgba(0,230,118,.07); border: 1px solid rgba(0,230,118,.18); border-radius: 10px; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.ct-item:hover .ct-ic { background: rgba(0,230,118,.15); }
.ct-ic svg { width: 18px; height: 18px; stroke: var(--accent); }
.ct-lbl { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.ct-val { font-size: .9rem; font-weight: 500; color: var(--white); margin-top: 2px; }
.ct-val a:hover { color: var(--accent); }
.ct-right { padding: clamp(44px,7vw,96px); display: flex; flex-direction: column; justify-content: center; }
.ct-right h3 { font-family: var(--font-d); font-weight: 700; font-size: 1.5rem; margin-bottom: 28px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-g { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.f-g label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.f-g input, .f-g textarea { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 12px 16px; color: var(--white); font-family: var(--font-b); font-size: .9rem; font-weight: 300; outline: none; transition: border-color .2s, background .2s; }
.f-g input:focus, .f-g textarea:focus { border-color: var(--accent); background: rgba(0,230,118,.03); }
.f-g input::placeholder, .f-g textarea::placeholder { color: rgba(85,90,114,.7); }
.f-g textarea { resize: none; height: 120px; }
.f-submit { width: 100%; padding: 15px; background: var(--accent); color: var(--bg); font-family: var(--font-b); font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-radius: 5px; transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.f-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,230,118,.3); }
.f-submit.sent { background: rgba(0,230,118,.15); color: var(--accent); }

/* ─── EXERCICES ───────────────────────────────── */
#exercices { min-height: 100%; padding: clamp(32px,4vh,48px) clamp(24px,4vw,64px); display: flex; flex-direction: column; gap: 18px; }
.ex-top { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.ex-top-desc { font-size: .82rem; font-weight: 300; color: var(--muted); }
.ex-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.ex-filter { font-size: .72rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; padding: 7px 16px; border: 1px solid var(--border); border-radius: 50px; color: var(--muted); transition: all .2s; }
.ex-filter:hover { border-color: var(--accent); color: var(--accent); }
.ex-filter.active { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.ex-search-row { display: flex; gap: 12px; align-items: center; }
.ex-search-wrap { position: relative; flex: 1; }
.ex-search { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 11px 16px 11px 42px; color: var(--white); font-family: var(--font-b); font-size: .88rem; font-weight: 300; outline: none; transition: border-color .2s; }
.ex-search:focus { border-color: var(--accent); }
.ex-search::placeholder { color: var(--muted); }
.ex-search-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.ex-meta { font-size: .75rem; color: var(--muted); flex-shrink: 0; white-space: nowrap; }
.ex-meta b { color: var(--accent); }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 14px; flex: 1; min-height: 120px; }
.ex-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: border-color .25s, transform .3s; position: relative;
  content-visibility: auto; contain-intrinsic-size: auto 310px; }
.ex-card:hover { border-color: rgba(0,230,118,.3); transform: translateY(-4px); }
.ex-gif-w { position: relative; background: #0a0a10; aspect-ratio: 1; overflow: hidden; }
.ex-gif-w img, .ex-gif-w video { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; }
.ex-bp { position: absolute; top: 7px; left: 7px; font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; background: rgba(6,6,10,.88); border: 1px solid rgba(0,230,118,.25); border-radius: 4px; color: var(--accent); }
.ex-info { padding: 12px 14px; position: relative; }
.ex-nm { font-size: .82rem; font-weight: 600; line-height: 1.35; margin-bottom: 9px; text-transform: none; color: var(--white); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-right: 22px; }
.ex-pills { display: flex; gap: 5px; flex-wrap: wrap; }
.ex-pill { font-size: .6rem; font-weight: 700; letter-spacing: .06em; text-transform: capitalize; padding: 3px 9px; border-radius: 4px; }
.ex-pill-t { background: rgba(0,230,118,.1); color: var(--accent); }
.ex-pill-e { background: rgba(255,198,45,.08); color: var(--gold); }
.ex-skel { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.ex-skel-gif { aspect-ratio: 1; background: var(--surface2); animation: skpulse 1.4s ease-in-out infinite alternate; }
.ex-skel-info { padding: 12px 14px; }
.ex-skel-line { height: 11px; border-radius: 3px; margin-bottom: 7px; background: var(--surface2); animation: skpulse 1.4s ease-in-out infinite alternate; }
.ex-skel-line.s { width: 55%; }
@keyframes skpulse { from { opacity:.4; } to { opacity:.9; } }
.ex-empty { grid-column: 1/-1; text-align: center; padding: 56px 20px; color: var(--muted); font-size: .9rem; }
.ex-err { grid-column: 1/-1; text-align: center; padding: 40px; color: rgba(255,90,90,.8); font-size: .86rem; line-height: 1.7; }
.ex-more-btn { margin: 4px auto 0; display: none; }
.ex-note { font-size: .68rem; color: var(--muted); text-align: right; opacity: .6; }
.ex-load-progress { display: none; flex-direction: column; gap: 8px; padding: 4px 0 8px; }
.ex-load-progress.on { display: flex; }
.ex-load-bar { height: 4px; background: var(--surface2); border-radius: 4px; overflow: hidden; }
.ex-load-fill { height: 100%; width: 0; background: linear-gradient(90deg,var(--accent),#00c853); border-radius: 4px; transition: width .35s var(--ease); }
.ex-load-lbl { font-size: .72rem; color: var(--muted); }
.ex-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.ex-sort { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; color: var(--white); font-family: var(--font-b); font-size: .8rem; font-weight: 500; outline: none; min-width: 180px; }
.ex-sort:focus { border-color: var(--accent); }
.ex-card { cursor: pointer; }
.ex-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ex-card-hint { font-size: .65rem; color: var(--muted); margin-top: 6px; letter-spacing: .04em; }
.ex-gif-w::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top,rgba(6,6,10,.55) 0%,transparent 45%); pointer-events: none; opacity: 0; transition: opacity .25s; }
.ex-card:hover .ex-gif-w::after { opacity: 1; }
.ex-view-ico { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); opacity: 0; transition: opacity .25s; z-index: 1; }
.ex-card:hover .ex-view-ico { opacity: 1; }

/* ─── Sélecteur corps 3D ───────────────────────── */
.ex-body-layout { display: grid; grid-template-columns: minmax(260px, 320px) 1fr; gap: clamp(16px, 3vw, 28px); align-items: start; flex: 1; min-height: 0; }
.ex-body-panel { position: sticky; top: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; z-index: 5; }
.ex-body-title { font-size: .65rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
#exBodyCanvas { width: 100%; height: clamp(300px, 40vh, 400px); border-radius: 8px; touch-action: none; background: radial-gradient(ellipse 80% 60% at 50% 38%, rgba(0,230,118,.09), transparent 58%), #08080e; cursor: grab; position: relative; }
#exBodyCanvas.dragging { cursor: grabbing; }
.ex-body-label { font-family: var(--font-d); font-weight: 700; font-size: 1.05rem; color: var(--accent); min-height: 1.4em; }
.ex-body-hint { font-size: .72rem; color: var(--muted); line-height: 1.5; }
.ex-body-load { font-size: .68rem; color: var(--accent); min-height: 1.2em; }
.ex-body-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── Anatomie 3D interactive ─────────────── */
/* Panneau de l'onglet Exercices (petit viewer 3D) */
.an3d-host { position: relative; width: 100%; height: clamp(300px, 42vh, 420px); border-radius: 10px; overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 35%, rgba(0,230,118,.08), transparent 60%), #07070d; cursor: grab; touch-action: none; }
.an3d-host canvas { display: block; width: 100% !important; height: 100% !important; }
/* Onglet Anatomie (grand viewer plein écran) */
.bd3d-wrap { position: relative; width: 100%; height: calc(100vh - var(--nav-h)); overflow: hidden; background: #07070d; }
.bd3d-host { position: absolute; inset: 0; touch-action: none; cursor: grab; }
.bd3d-host canvas { display: block; width: 100% !important; height: 100% !important; }
.bd3d-overlay { position: absolute; top: clamp(16px, 3vh, 32px); left: clamp(16px, 3vw, 40px); z-index: 4; display: flex; flex-direction: column; gap: 16px; pointer-events: none; }
.bd3d-head .lbl { color: var(--accent); }
.bd3d-head .ex-body-label { font-size: clamp(1.4rem, 3vw, 2rem); }
.bd3d-views { display: flex; flex-wrap: wrap; gap: 8px; pointer-events: auto; }
.bd3d-hint { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; z-index: 4; font-size: .72rem; color: var(--muted); pointer-events: none; }
/* Infobulle nom du muscle */
.an3d-tip { position: absolute; z-index: 6; transform: translate(-50%, calc(-100% - 12px)); background: rgba(6,6,10,.92); border: 1px solid var(--accent);
  color: var(--white); font-size: .72rem; font-weight: 600; padding: 5px 10px; border-radius: 6px; white-space: nowrap; pointer-events: none; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.an3d-loading { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center;
  color: var(--muted); font-size: .76rem; letter-spacing: .04em; pointer-events: none; }
.an3d-spin { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--accent); border-radius: 50%; animation: an3dspin .8s linear infinite; }
@keyframes an3dspin { to { transform: rotate(360deg); } }
/* Carte « exercices pour ce muscle » (onglet Anatomie) */
.bd-exo-card { position: absolute; right: clamp(12px,3vw,32px); bottom: clamp(48px,8vh,72px); z-index: 6; width: min(320px, 86vw);
  background: rgba(11,11,18,.94); backdrop-filter: blur(10px); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 12px; padding: 16px 16px 18px; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.bd-exo-close { position: absolute; top: 8px; right: 10px; font-size: 1.1rem; color: var(--muted); cursor: pointer; line-height: 1; }
.bd-exo-close:hover { color: var(--white); }
.bd-exo-ttl { font-family: var(--font-d); font-weight: 700; font-size: 1.05rem; color: var(--accent); margin: 0 0 4px; padding-right: 18px; }
.bd-exo-desc { font-size: .78rem; color: var(--white); opacity: .82; line-height: 1.5; margin: 0 0 8px; }
.bd-exo-sub { font-size: .74rem; color: var(--muted); margin: 0 0 12px; }
.bd-exo-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; max-height: 200px; overflow: auto; }
.bd-exo-item { text-align: left; font-size: .82rem; color: var(--white); background: #14141d; border: 1px solid var(--border); border-radius: 8px; padding: 8px 11px; cursor: pointer; transition: border-color .2s; }
.bd-exo-item:hover { border-color: var(--accent); }
.bd-exo-all { width: 100%; padding: 10px; font-size: .78rem; border-radius: 8px; cursor: pointer; }
@media (max-width: 760px) { .bd-exo-card { right: 50%; transform: translateX(50%); bottom: 60px; } }
.ex-body-btn { font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 8px 14px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); transition: border-color .2s, color .2s, background .2s; }
.ex-body-btn:hover { border-color: var(--accent); color: var(--accent); }
.ex-body-btn.active { background: rgba(0,230,118,.1); border-color: rgba(0,230,118,.35); color: var(--accent); }
.ex-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* 3D controls overlays */
.ex-body-ctrls { position: absolute; bottom: 8px; right: 8px; display: flex; flex-direction: column; gap: 5px; z-index: 10; }
.ex-body-ctrl { width: 28px; height: 28px; background: rgba(13,13,22,0.8); backdrop-filter: blur(4px); border: 1px solid var(--border); border-radius: 4px; color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 700; transition: border-color 0.2s, color 0.2s; }
.ex-body-ctrl:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Modal exercice ──────────────────────────── */
#exModal { display: none; position: fixed; inset: 0; z-index: 10000; align-items: center; justify-content: center; padding: clamp(16px,3vw,32px); background: rgba(6,6,10,.92); backdrop-filter: blur(12px); }
.ex-modal-panel { width: min(920px,100%); max-height: min(90vh,880px); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: grid; grid-template-columns: minmax(260px,1fr) 1.15fr; box-shadow: 0 24px 80px rgba(0,0,0,.55); animation: exModalIn .4s var(--ease); position: relative; }
@keyframes exModalIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
.ex-modal-media { background: #0a0a10; display: flex; flex-direction: column; min-height: 0; position: relative; }
.ex-modal-gif { flex: 1; min-height: 200px; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ex-modal-gif img { max-width: 100%; max-height: min(52vh,420px); object-fit: contain; }
.ex-modal-cat { font-size: .65rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 14px 18px; border-top: 1px solid var(--border); }
.ex-modal-body { padding: clamp(20px,3vw,28px); overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.ex-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ex-modal-title { font-family: var(--font-d); font-weight: 800; font-size: clamp(1.2rem,2.2vw,1.65rem); line-height: 1.15; text-transform: none; }
.ex-modal-close { flex-shrink: 0; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border); color: var(--muted); font-size: 1.4rem; line-height: 1; transition: border-color .2s, color .2s, background .2s; display: flex; align-items: center; justify-content: center; }
.ex-modal-close:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,230,118,.06); }
.ex-modal-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-modal-desc { font-size: .86rem; font-weight: 300; line-height: 1.65; color: rgba(242,238,234,.78); margin: 0; }
.ex-modal-badge { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--border); }
.ex-modal-badge-bp { color: var(--accent); border-color: rgba(0,230,118,.25); background: rgba(0,230,118,.08); }
.ex-modal-badge-eq { color: var(--gold); border-color: rgba(255,198,45,.2); background: rgba(255,198,45,.06); }
.ex-modal-muscles { display: flex; flex-direction: column; gap: 8px; }
.ex-modal-muscles-lbl { font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ex-modal-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ex-modal-pill { font-size: .72rem; font-weight: 600; padding: 5px 11px; border-radius: 50px; }
.ex-modal-pill.pri { background: rgba(0,230,118,.12); color: var(--accent); }
.ex-modal-pill.sec { background: rgba(255,255,255,.06); color: rgba(242,238,234,.75); }
.ex-modal-steps-title { font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ex-modal-steps { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ex-modal-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.ex-modal-step-n { width: 28px; height: 28px; border-radius: 50%; background: rgba(0,230,118,.12); color: var(--accent); font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ex-modal-step-t { font-size: .86rem; font-weight: 300; line-height: 1.65; color: rgba(242,238,234,.82); }
.ex-modal-foot { font-size: .68rem; color: var(--muted); opacity: .7; margin-top: auto; padding-top: 8px; }

/* ─── Favoris & Routines UI Elements ────────── */
/* Star favorites button on card */
.btn-fav { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(6,6,10,0.72); backdrop-filter: blur(6px); border: 1px solid var(--border); color: var(--muted); display: flex; align-items: center; justify-content: center; transition: all 0.25s var(--ease); z-index: 10; cursor: pointer; font-size: 0.95rem; }
.btn-fav:hover { transform: scale(1.1); border-color: var(--gold); color: var(--gold); }
.btn-fav.active { color: var(--gold); border-color: rgba(255,198,45,0.4); background: rgba(255,198,45,0.08); }

/* Add to routine button on card */
.btn-add-routine { position: absolute; top: 10px; right: 48px; width: 32px; height: 32px; border-radius: 50%; background: rgba(6,6,10,0.72); backdrop-filter: blur(6px); border: 1px solid var(--border); color: var(--muted); display: flex; align-items: center; justify-content: center; transition: all 0.25s var(--ease); z-index: 10; cursor: pointer; font-size: 1rem; }
.btn-add-routine:hover { transform: scale(1.1); border-color: var(--accent); color: var(--accent); }
.btn-add-routine.active { color: var(--bg); border-color: var(--accent); background: var(--accent); }

/* Modal Action Bar */
.ex-modal-actions { display: flex; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface2); align-items: center; }
.modal-act-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 8px 16px; border: 1px solid var(--border); border-radius: 4px; transition: all 0.2s; cursor: pointer; }
.modal-act-btn:hover { border-color: var(--accent); color: var(--accent); }
.modal-act-btn.active-fav { color: var(--gold); border-color: rgba(255,198,45,0.4); background: rgba(255,198,45,0.08); }
.modal-act-btn.active-fav:hover { border-color: var(--gold); }
.modal-act-btn.active-rt { color: var(--bg); border-color: var(--accent); background: var(--accent); }

/* Filter bar adjustments for equipment & favorites */
.ex-toolbar-filters { display: flex; gap: 10px; flex-wrap: wrap; width: 100%; margin-top: 10px; }
.ex-select-filter { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; color: var(--white); font-family: var(--font-b); font-size: 0.8rem; font-weight: 500; outline: none; min-width: 150px; transition: border-color 0.2s; }
.ex-select-filter:focus { border-color: var(--accent); }
.btn-toggle-favs { display: inline-flex; align-items: center; gap: 8px; font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 9px 18px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); transition: all 0.2s; cursor: pointer; background: var(--surface); }
.btn-toggle-favs:hover { border-color: var(--gold); color: var(--gold); }
.btn-toggle-favs.active { border-color: var(--gold); color: var(--gold); background: rgba(255,198,45,0.06); }

/* ─── ROUTINE SECTION ─────────────────────────── */
#routines { min-height: 100%; padding: clamp(32px,4vh,48px) clamp(24px,4vw,64px); display: flex; flex-direction: column; gap: 20px; }
.rt-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.rt-card-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: clamp(16px, 3vw, 24px); display: flex; flex-direction: column; gap: 16px; }
.rt-empty { text-align: center; padding: 48px 20px; color: var(--muted); font-size: 0.95rem; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rt-empty svg { opacity: 0.35; color: var(--accent); }
.rt-list { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.rt-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 16px; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 12px; align-items: center; position: relative; transition: border-color 0.2s; }
.rt-item:hover { border-color: rgba(0,230,118,0.2); }
.rt-item-img { width: 60px; height: 60px; border-radius: 4px; overflow: hidden; background: #0a0a10; }
.rt-item-img img { width: 100%; height: 100%; object-fit: cover; }
.rt-item-details { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rt-item-title { font-size: 0.84rem; font-weight: 600; color: var(--white); text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.rt-item-meta { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; display: flex; gap: 8px; }
.rt-item-inputs { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.rt-input-group { display: flex; align-items: center; gap: 6px; }
.rt-input-group label { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; }
.rt-input { width: 44px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 3px 6px; color: var(--white); text-align: center; font-size: 0.75rem; outline: none; }
.rt-input:focus { border-color: var(--accent); }
.rt-item-actions { display: flex; align-items: center; gap: 12px; }
.btn-rt-remove { color: var(--muted); transition: color 0.2s; font-size: 1.1rem; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid transparent; }
.btn-rt-remove:hover { color: #ff5252; background: rgba(255, 82, 82, 0.08); border-color: rgba(255, 82, 82, 0.2); }

/* Routine Dashboard Sidebar */
.rt-sidebar { position: sticky; top: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: clamp(16px, 3vw, 24px); display: flex; flex-direction: column; gap: 20px; }
.rt-dash-title { font-family: var(--font-d); font-weight: 800; font-size: 1.25rem; border-bottom: 1px solid var(--border); padding-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.rt-dash-title span { color: var(--accent); }
.rt-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rt-stat-box { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 14px; text-align: center; }
.rt-stat-val { font-family: var(--font-s); font-size: 1.8rem; color: var(--accent); line-height: 1.1; }
.rt-stat-lbl { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
.rt-ctrl-group { display: flex; flex-direction: column; gap: 10px; }
.rt-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.rt-textarea { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 12px 14px; color: var(--white); font-family: var(--font-b); font-size: 0.85rem; font-weight: 300; outline: none; min-height: 70px; resize: none; transition: border-color 0.2s; }
.rt-textarea:focus { border-color: var(--accent); }
.rt-actions { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border); padding-top: 16px; }
.rt-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; border-radius: 6px; transition: all 0.2s; cursor: pointer; }
.rt-btn-primary { background: var(--accent); color: var(--bg); }
.rt-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 230, 118, 0.25); }
.rt-btn-secondary { border: 1px solid var(--border); color: var(--white); }
.rt-btn-secondary:hover { background: rgba(255, 255, 255, 0.04); border-color: var(--white); }

/* Toast Notifications */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 11000; display: flex; flex-direction: column; gap: 8px; }
.toast { background: rgba(13, 13, 22, 0.9); backdrop-filter: blur(8px); border-left: 3px solid var(--accent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); padding: 12px 20px; border-radius: 4px; color: var(--white); font-size: 0.8rem; font-weight: 500; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); animation: toastIn 0.3s var(--ease) forwards; }
.toast.info { border-left-color: var(--accent); }
.toast.warn { border-left-color: var(--gold); }
.toast.success { border-left-color: var(--accent); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.toast.out { animation: toastOut 0.3s var(--ease) forwards; }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(8px); } }

/* ─── Success Modal for Contact Form ────────── */
.c-success-modal { display: none; position: fixed; inset: 0; z-index: 10500; align-items: center; justify-content: center; padding: 20px; background: rgba(6,6,10,.88); backdrop-filter: blur(16px); }
.c-success-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 36px 28px; max-width: 480px; width: 100%; text-align: center; box-shadow: 0 24px 64px rgba(0,0,0,0.5); animation: exModalIn 0.4s var(--ease); display: flex; flex-direction: column; align-items: center; gap: 20px; }
.c-success-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(0,230,118,0.1); border: 2px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.c-success-ttl { font-family: var(--font-d); font-weight: 800; font-size: 1.4rem; }
.c-success-txt { font-size: 0.9rem; color: rgba(242,238,234,0.7); line-height: 1.6; }
.c-success-btn { width: 100%; padding: 12px; background: var(--accent); color: var(--bg); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; border-radius: 5px; font-size: 0.8rem; transition: transform 0.2s; }
.c-success-btn:hover { transform: translateY(-1px); }

/* ─── Responsiveness & Fixes ────────────────── */
@media (max-width: 960px) {
  .ex-body-layout { grid-template-columns: 1fr; }
  .ex-body-panel { position: static; }
  .rt-layout { grid-template-columns: 1fr; }
  .rt-sidebar { position: static; }
}
@media (max-width: 720px) {
  .ex-modal-panel { grid-template-columns: 1fr; max-height: 92vh; }
  .ex-modal-gif { min-height: 180px; }
  .ex-toolbar { flex-direction: column; align-items: stretch; }
  .ex-sort { width: 100%; }
  .ex-modal-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .rt-item { grid-template-columns: 50px 1fr; }
  .rt-item-actions { grid-column: 1/-1; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 8px; }
}
@media (pointer: coarse) {
  body, a, button, input, textarea, select { cursor: auto; }
  #cdot, #cring { display: none; }
}

/* ─── Mobile ──────────────────────────────────── */
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .mth-grid { grid-template-columns: 1fr; }
  .mth-cell:nth-child(n) { border-radius: 0; border-left: 1px solid var(--border) !important; }
  .mth-cell:first-child { border-radius: 8px 8px 0 0; }
  .mth-cell:last-child { border-top: none; border-radius: 0 0 8px 8px; }
  .res-stats { grid-template-columns: repeat(2,1fr); }
  .testi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  #apropos, #contact { grid-template-columns: 1fr; }
  .ap-photo { min-height: 280px; }
  .svc-grid { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .h-side { display: none; }
  .h-title { font-size: clamp(3rem,14vw,7rem); }
}

/* ─── ROUTINE PLAYER ──────────────────────────── */
.rtp-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10600;
  background: rgba(6, 6, 10, 0.95);
  backdrop-filter: blur(20px);
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 32px);
}
.rtp-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: min(780px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: exModalIn 0.4s var(--ease);
}
.rtp-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface2);
}
.rtp-title {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: var(--white);
}
.rtp-close {
  font-size: 1.5rem;
  color: var(--muted);
  transition: color 0.2s;
  cursor: pointer;
}
.rtp-close:hover {
  color: #ff5252;
}
.rtp-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  overflow-y: auto;
  align-items: center;
}
@media (max-width: 680px) {
  .rtp-body {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
.rtp-media {
  background: #0a0a10;
  border-radius: 8px;
  border: 1px solid var(--border);
  aspect-ratio: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.rtp-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
/* Vidéos d'exercices (MP4/WebM) : même rendu que les GIFs selon le conteneur.
   (.ex-gif-w video est déjà géré avec les cartes du catalogue.) */
.rt-item-img video, .tm-ex-demo-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pr-ex video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: #0a0a10; display: block; }
.ex-modal-gif video { max-width: 100%; max-height: min(52vh, 420px); object-fit: contain; display: block; }
.rtp-media video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.rtp-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rtp-ex-name {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.2;
}
.rtp-ex-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.rtp-instructions-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.rtp-instructions-list {
  font-size: 0.82rem;
  color: rgba(242, 238, 234, 0.7);
  line-height: 1.6;
  max-height: 120px;
  overflow-y: auto;
  padding-left: 16px;
}
.rtp-timer-panel {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.rtp-timer-val {
  font-family: var(--font-s);
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
}
.rtp-timer-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.rtp-controls {
  display: flex;
  gap: 12px;
  width: 100%;
}
.rtp-btn {
  flex: 1;
  padding: 12px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}
.rtp-btn-play {
  background: var(--accent);
  color: var(--bg);
}
.rtp-btn-play:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 230, 118, 0.25);
}
.rtp-btn-skip {
  border: 1px solid var(--border);
  color: var(--white);
}
.rtp-btn-skip:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.03);
}
.rtp-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rtp-progress-wrap {
  flex: 1;
  margin-right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.rtp-progress-lbl {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}
.rtp-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}
.rtp-progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.3s;
}
.rtp-nav-btn {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--border);
  transition: all 0.2s;
  cursor: pointer;
}
.rtp-nav-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.rtp-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
/* Finished layout */
.rtp-finished {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  padding: 40px 24px;
  width: 100%;
}
.rtp-finished-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 230, 118, 0.1);
  border: 2px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  animation: pulseAccent 2s infinite;
}
@keyframes pulseAccent {
  0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4); }
  70% { box-shadow: 0 0 0 16px rgba(0, 230, 118, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

/* ─── MINUTEUR PLUS SECTION ────────────────────── */
#minuteur { min-height: 100%; padding: clamp(32px,4vh,48px) clamp(24px,4vw,64px); display: flex; flex-direction: column; gap: 20px; }
.tm-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.tm-panel-config { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: clamp(16px, 3vw, 24px); display: flex; flex-direction: column; gap: 20px; }
.tm-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.tm-preset-btn { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 10px 16px; border: 1px solid var(--border); border-radius: 6px; color: var(--white); cursor: pointer; transition: all 0.2s; background: var(--surface2); }
.tm-preset-btn:hover { border-color: var(--accent); color: var(--accent); }
.tm-preset-btn.active { border-color: var(--accent); background: rgba(0, 230, 118, 0.08); color: var(--accent); }

/* Range Sliders */
.tm-range-group { display: flex; flex-direction: column; gap: 6px; }
.tm-range-header { display: flex; justify-content: space-between; align-items: center; }
.tm-range-lbl { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tm-range-val { font-size: 0.84rem; font-weight: 700; color: var(--accent); }
.tm-slider-wrap { display: flex; align-items: center; gap: 12px; }
.tm-slider { flex: 1; -webkit-appearance: none; height: 6px; border-radius: 3px; background: var(--surface2); outline: none; transition: background 0.3s; }
.tm-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); cursor: pointer; transition: transform 0.15s; }
.tm-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* Timer Display Screen */
.tm-screen { background: radial-gradient(ellipse at 50% 30%, rgba(19, 19, 30, 0.95), var(--surface)), #0a0a10; border: 1px solid var(--border); border-radius: 16px; padding: 32px 24px; min-height: 480px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,0.5); transition: background 0.5s ease, border-color 0.5s ease; }
.tm-screen.phase-warmup { background: radial-gradient(circle at center, rgba(255, 198, 45, 0.18), var(--bg)), #0d0d16; border-color: rgba(255, 198, 45, 0.3); }
.tm-screen.phase-work { background: radial-gradient(circle at center, rgba(0, 230, 118, 0.16), var(--bg)), #06060a; border-color: rgba(0, 230, 118, 0.35); }
.tm-screen.phase-rest { background: radial-gradient(circle at center, rgba(255, 61, 0, 0.16), var(--bg)), #0f0707; border-color: rgba(255, 61, 0, 0.35); }
.tm-screen.phase-cooldown { background: radial-gradient(circle at center, rgba(41, 121, 255, 0.16), var(--bg)), #070b14; border-color: rgba(41, 121, 255, 0.3); }

/* Circle Progress Ring */
.tm-ring-container { position: relative; width: 200px; height: 200px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.tm-svg-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.tm-ring-bg { fill: none; stroke: rgba(255,255,255,0.03); stroke-width: 8; }
.tm-ring-fill { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 565.48; stroke-dashoffset: 0; transition: stroke-dashoffset 0.1s linear, stroke 0.5s; }
.tm-digits { position: absolute; font-family: var(--font-s); font-size: 4.8rem; font-weight: 700; color: var(--white); line-height: 1; letter-spacing: 0.02em; display: flex; align-items: center; justify-content: center; text-shadow: 0 4px 20px rgba(0,0,0,0.4); }

/* Phase text info */
.tm-text-info { text-align: center; margin-bottom: 24px; z-index: 2; }
.tm-phase-lbl { font-family: var(--font-d); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.1; margin-bottom: 6px; transition: color 0.5s; }
.tm-phase-lbl.color-warmup { color: var(--gold); }
.tm-phase-lbl.color-work { color: var(--accent); }
.tm-phase-lbl.color-rest { color: #ff3d00; }
.tm-phase-lbl.color-cooldown { color: #2979ff; }
.tm-ex-name-lbl { font-size: 0.88rem; font-weight: 300; color: rgba(242,238,234,0.6); max-width: 340px; line-height: 1.35; margin-top: 4px; }
.tm-cycle-lbl { font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-top: 8px; }

/* Control Buttons */
.tm-controls { display: flex; align-items: center; gap: 18px; z-index: 2; }
.tm-ctrl-btn { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--white); transition: all 0.2s; cursor: pointer; background: rgba(13,13,22,0.6); font-size: 0.9rem; }
.tm-ctrl-btn:hover { border-color: var(--white); transform: scale(1.06); }
.tm-ctrl-btn-play { width: 56px; height: 56px; background: var(--accent); border: none; color: var(--bg); font-size: 1.2rem; box-shadow: 0 8px 24px rgba(0, 230, 118, 0.2); }
.tm-ctrl-btn-play:hover { transform: scale(1.08); background: #00c853; box-shadow: 0 10px 30px rgba(0, 230, 118, 0.35); color: var(--bg); }
.tm-ctrl-btn-play.paused { background: var(--white); color: var(--bg); box-shadow: 0 8px 24px rgba(255,255,255,0.15); }
.tm-ctrl-btn-play.paused:hover { background: #e0dcd9; box-shadow: 0 10px 30px rgba(255,255,255,0.25); }

/* Audio & speech settings */
.tm-settings-row { display: flex; gap: 20px; margin-top: 24px; z-index: 2; border-top: 1px solid var(--border); padding-top: 18px; width: 100%; max-width: 320px; justify-content: center; }
.tm-toggle-option { display: flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; color: var(--muted); cursor: pointer; user-select: none; background: none; border: none; font-family: inherit; padding: 4px 6px; border-radius: 6px; }
.tm-toggle-option svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: color 0.2s; }
.tm-toggle-option.active { color: var(--accent); }
.tm-toggle-option:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Synchronize routine widget */
.tm-sync-widget { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.tm-sync-btn { background: linear-gradient(135deg, var(--accent), #00c853); color: var(--bg); }
.tm-sync-btn:hover { box-shadow: 0 8px 24px rgba(0, 230, 118, 0.25); }
.tm-sync-status { font-size: 0.72rem; color: var(--muted); text-align: center; }
.tm-sync-status b { color: var(--accent); }

/* Pulsating Animation for Critical Countdown */
.tm-digits.pulsing { animation: tmPulse 0.5s ease-in-out infinite alternate; color: #ff3d00 !important; }
@keyframes tmPulse { from { transform: scale(1); } to { transform: scale(1.18); } }

@media (max-width: 960px) {
  .tm-layout { grid-template-columns: 1fr; }
}
/* Petits mobiles : l'écran du minuteur se compacte pour ne pas déborder. */
@media (max-width: 600px) {
  .tm-screen { min-height: 360px; padding: 24px 14px; }
  .tm-ring-container { width: 156px; height: 156px; margin-bottom: 14px; }
  .tm-digits { font-size: 3.2rem; }
  .tm-phase-lbl { font-size: 1.2rem; }
  .tm-text-info { margin-bottom: 16px; }
  .tm-controls { gap: 12px; }
  .tm-ctrl-btn { width: 38px; height: 38px; }
  .tm-ctrl-btn-play { width: 50px; height: 50px; }
  .tm-settings-row { margin-top: 16px; padding-top: 14px; gap: 14px; }
}




/* ─── ANATOMIE 3D ─────────────────────────────── */
#corps { min-height: 100%; padding: 0; overflow: hidden; }
.bd-layout {
  display: block;
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
}
.bd-canvas-col {
  position: relative;
  background: #06060a;
  overflow: hidden;
  width: 100%;
  height: 100%;
}
#bdCanvas {
  display: block;
  width: 100%;
  height: 100%;
}
.bd-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); z-index: 10;
  flex-direction: column; gap: 20px;
}
.bd-load-inner { text-align: center; }
.bd-load-bar { width: 220px; height: 2px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; margin: 0 auto 12px; }
.bd-load-fill { height: 100%; background: var(--accent); width: 0%; transition: width .3s; }
.bd-load-txt { font-size: .75rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.bd-hover-label {
  position: absolute; display: none;
  background: rgba(6,6,10,.92); border: 1px solid var(--accent);
  border-radius: 4px; padding: 5px 12px;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); pointer-events: none; white-space: nowrap;
  transform: translate(-50%, -100%); margin-top: -8px;
  backdrop-filter: blur(8px); z-index: 20;
}
.bd-cam-btns {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 15;
}
.bd-cam-btn {
  background: rgba(6,6,10,.85); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 4px;
  color: var(--muted); font-size: .72rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 14px; cursor: pointer; transition: all .2s;
}
.bd-cam-btn:hover { border-color: var(--accent); color: var(--accent); }
.bd-hint {
  position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%);
  font-size: .68rem; color: rgba(85,90,114,.7);
  letter-spacing: .12em; text-transform: uppercase; pointer-events: none;
  white-space: nowrap;
}
.bd-panel-col {
  background: var(--surface);
  border-left: 1px solid var(--border);
  overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column;
}
.bd-panel-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; flex: 1;
  padding: 36px 28px; text-align: center; gap: 16px;
}
.bd-empty-icon svg { width: 64px; height: 64px; opacity: .35; }
.bd-empty-title { font-family: var(--font-d); font-weight: 700; font-size: 1.1rem; }
.bd-empty-sub { font-size: .82rem; font-weight: 300; color: var(--muted); line-height: 1.65; }
.bd-muscle-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 8px; }
.bd-muscle-tag {
  font-size: .65rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 50px; cursor: pointer; border: 1px solid transparent;
  transition: all .2s; background: rgba(255,255,255,.05); color: var(--muted);
}
.bd-muscle-tag:hover { border-color: var(--accent); color: var(--accent); }
.bd-panel-result { display: flex; flex-direction: column; flex: 1; padding: 20px; gap: 14px; }
.bd-sel-header {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px 16px;
}
.bd-sel-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.bd-sel-name { font-family: var(--font-d); font-weight: 700; font-size: 1.05rem; }
.bd-sel-sub { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }
.bd-desel-btn {
  margin-left: auto; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  color: var(--muted); font-size: .9rem; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; transition: all .2s;
}
.bd-desel-btn:hover { border-color: var(--accent); color: var(--accent); }
.bd-ex-status { font-size: .75rem; color: var(--muted); text-align: center; }
.bd-ex-grid { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bd-ex-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.bd-ex-item:hover { border-color: rgba(0,230,118,.3); transform: translateX(3px); }
.bd-ex-gif { width: 70px; height: 70px; flex-shrink: 0; background: #0a0a10; overflow: hidden; }
.bd-ex-gif img { width: 100%; height: 100%; object-fit: cover; }
.bd-ex-item-info { flex: 1; padding: 8px 12px 8px 0; }
.bd-ex-item-name { font-size: .8rem; font-weight: 600; text-transform: capitalize; line-height: 1.3; margin-bottom: 5px; }
.bd-ex-item-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.bd-ex-item-pill { font-size: .58rem; font-weight: 700; padding: 2px 8px; border-radius: 3px; text-transform: capitalize; }
.bd-ex-item-pill.t { background: rgba(0,230,118,.1); color: var(--accent); }
.bd-ex-item-pill.e { background: rgba(255,198,45,.08); color: var(--gold); }
.bd-ex-more { margin-top: 4px; padding: 10px; font-size: .72rem; }
@media (max-width: 900px) {
  .bd-layout { grid-template-columns: 1fr; grid-template-rows: 55vh 1fr; }
  .bd-panel-col { border-left: none; border-top: 1px solid var(--border); }
}

/* ════════════════════════════════════════════════════════════════
   ESPACE COACHING
   ════════════════════════════════════════════════════════════════ */
#coaching { padding: clamp(24px,5vw,64px); }
.cx-wrap { max-width: 1100px; margin: 0 auto; overflow-x: clip; }
.cx-loading { display: flex; align-items: center; justify-content: center; min-height: 50vh; color: var(--muted); }
.cx-muted { color: rgba(242,238,234,.55); font-size: .92rem; line-height: 1.6; }
.cx-empty { padding: 24px 0; }

/* Cartes */
.cx-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: clamp(22px,3vw,38px); }
.cx-setup { max-width: 560px; margin: 8vh auto 0; }
.cx-setup .sh2 { margin: 8px 0 14px; }
.cx-steps { margin: 18px 0 0; padding-left: 18px; color: rgba(242,238,234,.7); line-height: 2; font-size: .92rem; }
.cx-steps code, .cx-setup code { background: var(--surface2); padding: 2px 7px; border-radius: 5px; color: var(--accent); font-size: .85em; }

/* Auth */
.cx-auth-wrap { display: flex; justify-content: center; }
.cx-auth { width: 100%; max-width: 440px; margin-top: 4vh; }
.cx-auth .sh2 { margin: 8px 0 6px; }
.cx-form { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.cx-full { width: 100%; justify-content: center; margin-top: 6px; }
.cx-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cx-role { position: relative; display: flex; align-items: center; justify-content: center; padding: 13px; border: 1.5px solid var(--border); border-radius: 9px; font-size: .85rem; transition: border-color .2s, background .2s; }
.cx-role input { position: absolute; opacity: 0; }
.cx-role:has(input:checked) { border-color: var(--accent); background: rgba(0,230,118,.08); color: var(--accent); }
.cx-switch { margin-top: 18px; text-align: center; font-size: .88rem; color: var(--muted); }
.cx-link { color: var(--accent); font-weight: 600; font-size: inherit; text-decoration: underline; }

/* En-tête */
.cx-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.cx-title { font-family: var(--font-d); font-weight: 800; font-size: clamp(1.5rem,3vw,2.3rem); line-height: 1.1; margin: 6px 0 4px; }
.cx-sub { color: rgba(242,238,234,.6); font-size: .9rem; }
.cx-code { color: var(--accent); letter-spacing: .14em; font-family: var(--font-s); font-size: 1.1em; }
.cx-logout { padding: 9px 18px; font-size: .72rem; }

/* Layout coach */
.cx-layout { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: start; }
.cx-side { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; position: sticky; top: 0; }
.cx-side-ttl { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.cx-clients { display: flex; flex-direction: column; gap: 6px; }
.cx-client { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; text-align: left; transition: background .2s; width: 100%; }
.cx-client:hover { background: var(--surface2); }
.cx-client.active { background: rgba(0,230,118,.1); }
.cx-client-av { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--bg); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.cx-client-nm { font-size: .9rem; font-weight: 500; }

/* Main coach */
.cx-main { min-height: 320px; }
.cx-placeholder, .cx-loading { display: flex; align-items: center; justify-content: center; min-height: 300px; text-align: center; }
.cx-prog-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.cx-prog-name { font-family: var(--font-d); font-weight: 800; font-size: 1.5rem; }
.cx-add { padding: 12px 22px; font-size: .74rem; }

/* Progress */
.cx-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.cx-progress-bar { flex: 1; height: 8px; background: var(--surface2); border-radius: 6px; overflow: hidden; }
.cx-progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #00b85e); border-radius: 6px; transition: width .5s var(--ease); }
.cx-progress-lbl { font-size: .82rem; color: rgba(242,238,234,.7); white-space: nowrap; }

/* Liste d'exercices programmés */
.cx-assign-list { display: flex; flex-direction: column; gap: 10px; }
.cx-assign { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; transition: border-color .2s; }
.cx-assign:hover { border-color: rgba(0,230,118,.3); }
.cx-assign-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cx-assign-nm { font-weight: 600; font-size: 1rem; }
.cx-assign-meta { font-size: .82rem; color: rgba(242,238,234,.55); }
.cx-assign-note { font-size: .82rem; color: var(--gold); font-style: italic; }
.cx-assign-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cx-assign-coachee.is-done { opacity: .6; }
.cx-assign-coachee.is-skip { opacity: .45; }
.cx-bp { display: inline-block; font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: rgba(0,230,118,.1); padding: 3px 9px; border-radius: 20px; width: fit-content; }
.cx-status { font-size: .72rem; font-weight: 700; padding: 5px 11px; border-radius: 20px; }
.cx-st-pending { background: rgba(255,255,255,.08); color: rgba(242,238,234,.7); }
.cx-st-done { background: rgba(0,230,118,.15); color: var(--accent); }
.cx-st-skip { background: rgba(255,198,45,.12); color: var(--gold); }
.cx-del { width: 30px; height: 30px; border-radius: 7px; color: rgba(242,238,234,.45); font-size: 1.25rem; line-height: 1; transition: background .2s, color .2s; }
.cx-del:hover { background: rgba(255,60,60,.12); color: #ff5a5a; }
.cx-mini { font-size: .75rem; font-weight: 600; padding: 8px 14px; border-radius: 8px; transition: transform .15s; }
.cx-mini:hover { transform: translateY(-1px); }
.cx-mini-done { background: var(--accent); color: var(--bg); }
.cx-mini-skip { border: 1px solid var(--border); color: rgba(242,238,234,.7); }

/* Carte stat coaché */
.cx-stat-card { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; }
.cx-stat-big { font-family: var(--font-d); font-weight: 800; font-size: clamp(2.4rem,6vw,3.6rem); color: var(--accent); line-height: 1; }
.cx-stat-card > div:last-child { flex: 1; }
.cx-stat-lbl { font-weight: 600; margin-bottom: 8px; }
.cx-stat-card .cx-progress-bar { margin-bottom: 8px; }
.cx-link-coach { max-width: 460px; }
.cx-link-coach .sh2 { font-size: 1.5rem; margin-bottom: 8px; }

/* Modal sélecteur d'exercices */
.cx-modal { position: fixed; inset: 0; z-index: 10005; background: rgba(4,4,8,.8); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.cx-modal-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; width: 100%; max-width: 560px; max-height: 86vh; display: flex; flex-direction: column; padding: 22px; }
.cx-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cx-modal-head h3 { font-family: var(--font-d); font-weight: 800; font-size: 1.3rem; }
.cx-modal-close { width: 34px; height: 34px; border-radius: 8px; font-size: 1.5rem; color: var(--muted); transition: background .2s; }
.cx-modal-close:hover { background: var(--surface2); color: var(--white); }
.cx-modal-search { width: 100%; margin-bottom: 14px; }
.cx-ex-results { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cx-ex-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 10px; text-align: left; transition: background .2s; }
.cx-ex-item:hover { background: var(--surface2); }
.cx-ex-nm { font-size: .92rem; font-weight: 500; }
.cx-param-sel { margin-bottom: 16px; font-size: .92rem; }
.cx-param-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }
.cx-param-actions .btn-g, .cx-param-actions .btn-o { padding: 12px 24px; font-size: .76rem; }

/* Toasts (fallback si app.js absent) */
#cxToastHost { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 10010; display: flex; flex-direction: column; gap: 8px; }
.cx-toast { padding: 12px 22px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--border); color: var(--white); font-size: .88rem; opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; }
.cx-toast.show { opacity: 1; transform: translateY(0); }
.cx-toast-success { border-color: rgba(0,230,118,.4); }
.cx-toast-error { border-color: rgba(255,90,90,.5); }

@media (max-width: 760px) {
  .cx-layout { grid-template-columns: 1fr; }
  .cx-side { position: static; }
  .cx-clients { flex-direction: row; flex-wrap: wrap; }
  .cx-client { width: auto; }
}

/* ════════════════════════════════════════════════════════════════
   ACCESSIBILITÉ
   ════════════════════════════════════════════════════════════════ */
/* Curseur natif sur appareils tactiles (le curseur custom n'a pas de sens) */
@media (hover: none), (pointer: coarse) {
  body, a, button, input, textarea, select { cursor: auto; }
  #cdot, #cring { display: none; }
  /* Sans survol (tactile), on révèle en permanence le contenu des cartes
     Services — sinon descriptions et liens restaient invisibles sur mobile. */
  .svc-ds { max-height: 200px; opacity: 1; }
  .svc-lk, .svc-card:hover .svc-lk { opacity: 1; }
}

/* Respect de la préférence "moins d'animations" */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  #cdot, #cring { display: none; }
  body, a, button, input, textarea, select { cursor: auto; }
}

/* Visibilité du focus clavier (sans gêner la souris) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ─── Bouton d'installation PWA ──────────────────────────────── */
.pwa-install {
  position: fixed; right: 18px; bottom: 18px; z-index: 9995;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px;
  background: var(--accent); color: var(--bg);
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  box-shadow: 0 10px 30px rgba(0,230,118,.35);
  transition: transform .2s, box-shadow .2s;
}
.pwa-install:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(0,230,118,.45); }
@media (max-width: 600px) { .pwa-install { right: 12px; bottom: 12px; } }

/* ─── Coaching : sous-onglets & progression ──────────────────── */
/* Défilement horizontal contenu : sur mobile, les 4 onglets glissent
   dans la pilule au lieu de faire déborder (et décaler) toute la page. */
.cx-subtabs { display: flex; width: fit-content; max-width: 100%; gap: 4px; background: var(--surface2); padding: 4px; border-radius: 10px; margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.cx-subtabs::-webkit-scrollbar { display: none; }
.cx-subtab { flex: 0 0 auto; white-space: nowrap; padding: 8px 18px; border-radius: 7px; font-size: .82rem; font-weight: 600; color: rgba(242,238,234,.6); transition: background .2s, color .2s; }
.cx-subtab.active { background: var(--accent); color: var(--bg); }

.cx-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.cx-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; }
.cx-tile-v { font-family: var(--font-d); font-weight: 800; font-size: 1.7rem; color: var(--accent); line-height: 1; }
.cx-tile-l { font-size: .72rem; color: rgba(242,238,234,.55); margin-top: 6px; }

.cx-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cx-chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.cx-chart-ttl { font-size: .82rem; font-weight: 700; margin-bottom: 14px; }

/* Auto-évaluation ressenti (douleurs & RPS) */
.cx-zones { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.cx-zone-chip { padding: 8px 14px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface2);
  color: rgba(242,238,234,.8); font-size: .82rem; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.cx-zone-chip:hover { border-color: var(--accent); }
.cx-zone-chip.active { border-color: var(--accent); background: rgba(0,230,118,.14); color: var(--accent); font-weight: 600; }
.cx-scale { display: flex; gap: 8px; }
.cx-scale-b { flex: 1; padding: 12px 0; border-radius: 10px; border: 1px solid var(--border); background: var(--surface2);
  color: rgba(242,238,234,.7); font-weight: 700; font-size: 1rem; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.cx-scale-b:hover { border-color: var(--accent); }
.cx-scale-b.active { border-color: var(--accent); background: rgba(0,230,118,.16); color: var(--accent); }
.cx-scale-lbl { display: flex; justify-content: space-between; font-size: .7rem; color: rgba(242,238,234,.45); margin: 6px 2px 4px; }
.cx-w-reco-card { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px;
  background: var(--surface2); border: 1px solid var(--accent); margin-bottom: 14px; }
.cx-w-reco-ico { font-size: 1.8rem; }
.cx-w-reco-card b { display: block; font-size: .95rem; }
.cx-w-reco-card .cx-muted { font-size: .78rem; }
.cx-wellness-chip { margin-top: 12px; }
/* Tableau de bord coach : ressenti de l'équipe */
.cx-gauge { height: 10px; border-radius: 6px; background: var(--surface2); overflow: hidden; }
.cx-gauge-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), #ffb300); transition: width .5s var(--ease); }
.cx-gauge-v { font-family: var(--font-d); font-weight: 800; font-size: 1.1rem; margin: 6px 0 0; }
.cx-pain-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-pain-chip { padding: 6px 12px; border-radius: 16px; background: var(--surface2); border: 1px solid var(--border); font-size: .8rem; color: rgba(242,238,234,.8); }
.cx-pain-chip b { color: var(--accent); margin-left: 4px; }
.cx-alerts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.cx-alert { padding: 11px 14px; border-radius: 10px; font-size: .84rem; line-height: 1.4;
  background: rgba(255,61,0,.1); border: 1px solid rgba(255,61,0,.4); color: #ffb59c; }
.cx-alert b { color: #fff; }
.cx-wc-list { display: flex; flex-direction: column; gap: 8px; }
.cx-wc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 12px;
  border-radius: 10px; background: var(--surface2); border: 1px solid var(--border); font-size: .82rem; }
.cx-wc-who { min-width: 150px; }
.cx-wc-meta { color: rgba(242,238,234,.7); white-space: nowrap; }
.cx-wc-zones { display: flex; flex-wrap: wrap; gap: 5px; }
.cx-wc-note { flex-basis: 100%; color: rgba(242,238,234,.6); font-style: italic; font-size: .78rem; }
.cx-relance-list { display: flex; flex-direction: column; gap: 8px; }
.cx-relance-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px;
  border-radius: 10px; background: var(--surface2); border: 1px solid var(--border); }
.cx-relance-who { font-size: .88rem; font-weight: 600; }
.cx-relance-btn:disabled { opacity: .6; cursor: default; }

/* Vue d'ensemble : activité de la semaine (sparkline + zones + export) */
.cx-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.cx-chart-head .cx-chart-ttl { margin: 0; }
.cx-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cx-ov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.cx-ov-sub { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(242,238,234,.5); margin: 0 0 12px; }
.cx-spark { display: flex; align-items: flex-end; gap: 8px; height: 110px; }
.cx-spark-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.cx-spark-bar { width: 100%; min-height: 3px; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent), rgba(0,230,118,.35)); transition: height .4s var(--ease); }
.cx-spark-x { font-size: .68rem; color: rgba(242,238,234,.4); }
@media (max-width: 640px) { .cx-ov-grid { grid-template-columns: 1fr; gap: 18px; } }
.cx-chart { width: 100%; height: auto; }
.cx-cv { fill: rgba(242,238,234,.75); font-size: 9px; font-weight: 600; }
.cx-cl { fill: rgba(242,238,234,.4); font-size: 8.5px; }

.cx-donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cx-donut { width: 120px; height: 120px; flex-shrink: 0; }
.cx-donut-c { fill: var(--white); font-family: var(--font-d); font-weight: 800; font-size: 22px; }
.cx-legend { display: flex; flex-direction: column; gap: 6px; }
.cx-leg { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: rgba(242,238,234,.75); }
.cx-leg span { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }

.cx-pr { display: flex; flex-direction: column; gap: 8px; }
.cx-pr li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .85rem; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.cx-pr li:last-child { border-bottom: none; padding-bottom: 0; }
.cx-pr b { color: var(--accent); }

.cx-logs { margin-top: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.cx-log { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .85rem; }
.cx-log:last-child { border-bottom: none; }
.cx-log-date { color: var(--accent); font-weight: 600; font-size: .78rem; }
.cx-log-nm { font-weight: 500; }
.cx-log-meta { color: rgba(242,238,234,.55); font-size: .8rem; text-align: right; }
.cx-log-panel { max-width: 460px; }

@media (max-width: 680px) {
  .cx-tiles { grid-template-columns: repeat(2, 1fr); }
  .cx-charts { grid-template-columns: 1fr; }
  .cx-log { grid-template-columns: 52px 1fr; }
  .cx-log-meta { grid-column: 2; text-align: left; }
}

/* ════════════════════════════════════════════════════════════════
   COACHING v2 · PROGRAMMES · RDV · SÉANCE (ajouts)
   ════════════════════════════════════════════════════════════════ */

/* Honeypot anti-spam : hors écran, invisible pour les humains */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Presets prévention (onglet Exercices) */
.ex-presets { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.ex-presets-lbl { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(242,238,234,.45); }
.ex-preset { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  font-size: .78rem; color: rgba(242,238,234,.8); transition: border-color .2s, color .2s, background .2s; }
.ex-preset:hover { border-color: var(--accent); color: var(--accent); }
.ex-preset.active { background: rgba(0,230,118,.12); border-color: var(--accent); color: var(--accent); }

/* Programmes prêts à l'emploi (onglet Ma Routine) */
.rt-programs-list { display: flex; flex-direction: column; gap: 8px; }
.rt-program { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  transition: border-color .2s, transform .2s; }
.rt-program:hover { border-color: var(--accent); transform: translateX(2px); }
.rt-program-ico { font-size: 1.3rem; line-height: 1.2; }
.rt-program-body { display: flex; flex-direction: column; gap: 2px; }
.rt-program-nm { font-weight: 700; font-size: .88rem; }
.rt-program-meta { font-size: .72rem; color: var(--accent); }
.rt-program-desc { font-size: .76rem; color: rgba(242,238,234,.55); line-height: 1.4; }

/* Pause active express — sélecteur par temps disponible */
.rt-express-sub { font-size: .76rem; color: rgba(242,238,234,.55); line-height: 1.4; margin: 0 0 10px; }
.rt-express-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rt-express { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; text-align: center;
  cursor: pointer; transition: border-color .2s, transform .2s, background .2s; }
.rt-express:hover { border-color: var(--accent); transform: translateY(-2px); background: rgba(0,230,118,.06); }
.rt-express b { font-size: 1.05rem; color: var(--accent); font-weight: 800; }
.rt-express span { font-size: .68rem; color: rgba(242,238,234,.6); line-height: 1.2; }

/* Modal de prise de rendez-vous (Cal.com / Calendly) */
.cal-modal { position: fixed; inset: 0; z-index: 10010; display: none; align-items: center; justify-content: center;
  background: rgba(4,4,8,.82); backdrop-filter: blur(6px); padding: 18px; }
.cal-panel { width: min(960px, 100%); height: min(82vh, 760px); background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px;
  border-bottom: 1px solid var(--border); font-weight: 700; font-size: .9rem; }
.cal-close { font-size: 1.4rem; line-height: 1; color: rgba(242,238,234,.6); padding: 4px 8px; }
.cal-close:hover { color: var(--accent); }
.cal-frame { flex: 1; width: 100%; border: 0; background: #fff; }
.ct-cal-btn { width: 100%; margin-bottom: 16px; justify-content: center; display: inline-flex; }

/* En-tête coaching : actions (rappels, déconnexion) */
.cx-header-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.cx-push.active { border-color: var(--accent); color: var(--accent); }
.cx-invite-banner { background: rgba(0,230,118,.1); border: 1px solid rgba(0,230,118,.35);
  border-radius: 8px; padding: 9px 12px; font-size: .8rem; margin: 4px 0 10px; }

/* Vue d'ensemble coach */
.cx-overview-btn { margin-bottom: 14px; }
.cx-challenge { margin-bottom: 16px; }
.cx-challenge.is-over { opacity: .55; }
.cx-challenge-head { display: flex; align-items: center; gap: 10px; font-size: .85rem; margin-bottom: 8px; }
.cx-challenge-head .cx-muted { font-size: .72rem; }
.cx-board { display: flex; flex-direction: column; gap: 6px; margin: 0 0 6px; padding: 0; list-style: none; }
.cx-board li { display: flex; align-items: center; gap: 10px; font-size: .84rem; padding: 6px 0; border-bottom: 1px solid var(--border); }
.cx-board li:last-child { border-bottom: none; }
.cx-board-rank { width: 26px; text-align: center; }
.cx-board-nm { flex: 1; }
.cx-board b { color: var(--accent); }
.cx-challenge-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }

/* Modèles de programmes */
.cx-template-bar { display: flex; gap: 16px; margin: 0 0 14px; }
.cx-template-bar .cx-link[disabled] { opacity: .4; pointer-events: none; }
.cx-tpl-row { display: flex; align-items: center; gap: 6px; }
.cx-tpl-row .cx-ex-item { flex: 1; }

/* Messagerie coach ↔ coaché */
.cx-thread { display: flex; flex-direction: column; gap: 8px; max-height: 420px; min-height: 220px;
  overflow-y: auto; padding: 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px 14px 0 0; }
.cx-msg { max-width: 78%; align-self: flex-start; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px 12px 12px 4px; padding: 9px 12px; display: flex; flex-direction: column; gap: 3px; }
.cx-msg.is-mine { align-self: flex-end; background: rgba(0,230,118,.1); border-color: rgba(0,230,118,.3);
  border-radius: 12px 12px 4px 12px; }
.cx-msg-body { font-size: .87rem; line-height: 1.45; word-break: break-word; }
.cx-msg-time { font-size: .66rem; color: rgba(242,238,234,.4); align-self: flex-end; }
.cx-msg-form { display: flex; gap: 8px; padding: 12px; background: var(--surface);
  border: 1px solid var(--border); border-top: none; border-radius: 0 0 14px 14px; }
.cx-msg-form input { flex: 1; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px;
  padding: 11px 14px; color: var(--white); font-family: var(--font-b); font-size: .87rem; outline: none; }
.cx-msg-form input:focus { border-color: var(--accent); }

/* Mensurations */
.cx-measure-form { background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px; margin-bottom: 16px; }

/* Badges de motivation */
.cx-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.cx-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,198,45,.08); border: 1px solid rgba(255,198,45,.35); font-size: .78rem; font-weight: 600; }
.cx-badge-ico { font-size: .95rem; }

@media (max-width: 680px) {
  .cx-thread { max-height: 320px; }
  .cx-msg { max-width: 92%; }
  .cal-panel { height: 90vh; }
}

/* ════════════════════════════════════════════════════════════════
   PRÉSENTATION (démo publique) · ACCÈS CONNECTÉ · PROFIL COACHÉ
   ════════════════════════════════════════════════════════════════ */

/* Onglets réservés : l'attribut hidden doit toujours gagner */
.nav-tab[hidden], .nav-menu-item[hidden] { display: none !important; }

/* Grille de présentation */
.pr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 28px; }
.pr-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.pr-card-head { display: flex; flex-direction: column; gap: 6px; }
.pr-ttl { font-family: var(--font-d); font-size: 1.05rem; font-weight: 800; }
.pr-desc { font-size: .85rem; color: rgba(242,238,234,.6); line-height: 1.5; }
.pr-canvas { height: 380px; border-radius: 12px; overflow: hidden; position: relative; background: #07070d; }
.pr-card-3d { grid-row: span 2; }

/* Échantillon d'exercices */
.pr-ex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pr-ex { display: flex; flex-direction: column; gap: 4px; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px; text-align: left; transition: border-color .2s, transform .2s; }
.pr-ex:hover { border-color: var(--accent); transform: translateY(-2px); }
.pr-ex img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: #0a0a10; }
.pr-ex-nm { font-size: .7rem; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pr-ex-bp { font-size: .62rem; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }

/* Maquettes routine & minuteur */
.pr-mock { background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 18px;
  display: flex; flex-direction: column; gap: 12px; }
.pr-mock-row { display: flex; align-items: center; gap: 10px; }
.pr-mock-n { width: 22px; height: 22px; border-radius: 50%; background: rgba(0,230,118,.15); color: var(--accent);
  font-size: .7rem; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.pr-mock-bar { height: 10px; border-radius: 5px; background: linear-gradient(90deg, rgba(0,230,118,.5), rgba(0,230,118,.15)); }
.pr-mock-tag { margin-left: auto; font-size: .7rem; color: rgba(242,238,234,.55); font-weight: 600; }
.pr-mock-progress { height: 6px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: 4px; }
.pr-mock-fill { width: 66%; height: 100%; border-radius: 3px; background: var(--accent); }
.pr-mock-lbl { font-size: .72rem; color: rgba(242,238,234,.5); }
.pr-mock-timer { align-items: center; gap: 6px; }
.pr-ring { width: 110px; height: 110px; }
.pr-ring-bg { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 8; }
.pr-ring-fill { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 314; stroke-dashoffset: 96; transform: rotate(-90deg); transform-origin: center; }
.pr-mock-time { font-family: var(--font-s); font-size: 2rem; letter-spacing: .06em; color: var(--accent); }
.pr-mock-phase { font-size: .68rem; letter-spacing: .12em; color: rgba(242,238,234,.5); }

/* Bandeau CTA */
.pr-cta { text-align: center; background: linear-gradient(160deg, rgba(0,230,118,.08), transparent 55%), var(--surface);
  border: 1px solid rgba(0,230,118,.25); border-radius: 18px; padding: 36px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pr-cta-ttl { font-family: var(--font-d); font-size: 1.35rem; font-weight: 800; }
.pr-cta-txt { font-size: .9rem; color: rgba(242,238,234,.65); max-width: 520px; line-height: 1.55; }
.pr-cta .h-ctas { margin-top: 8px; }

@media (max-width: 900px) {
  .pr-grid { grid-template-columns: 1fr; }
  .pr-card-3d { grid-row: auto; }
  .pr-canvas { height: 320px; }
}

/* Exercice personnalisé */
.ex-pill-c { background: rgba(255,198,45,.12); color: var(--gold); border: 1px solid rgba(255,198,45,.3); }
.modal-act-del { color: #ff6b5e; }
.modal-act-del:hover { border-color: #ff6b5e; }

/* Coach : ajout de coaché */
.cx-add-coachee { width: 100%; margin-top: 12px; justify-content: center; font-size: .78rem; padding: 11px 14px; }

/* Fiche profil coaché */
.cx-profile-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px; margin-bottom: 16px; }
.cx-profile-save { display: flex; align-items: flex-end; }
.cx-radar { max-width: 300px; margin: 0 auto; display: block; }

/* ════════════════════════════════════════════════════════════════
   COACHING — polish chirurgical (revue visuelle)
   ════════════════════════════════════════════════════════════════ */

/* Boutons-puces : actions secondaires (lien d'invitation, modèles…) */
.cx-chip-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  font-size: .74rem; font-weight: 600; color: rgba(242,238,234,.85);
  transition: border-color .2s, color .2s; }
.cx-chip-btn:hover { border-color: var(--accent); color: var(--accent); }
.cx-chip-btn[disabled] { opacity: .4; pointer-events: none; }
.cx-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Les noms d'exercices du catalogue sont en minuscules : majuscule initiale */
.cx-assign-nm::first-letter, .cx-ex-nm::first-letter, .cx-log-nm::first-letter,
.ex-nm::first-letter, .rt-item-title::first-letter, .tm-ex-nm::first-letter,
.pr-ex-nm::first-letter, .bd-exo-item::first-letter, .cx-pr li span::first-letter,
.ex-modal-title::first-letter { text-transform: uppercase; }

/* Boutons de formulaire à largeur naturelle (pas pleine largeur) */
.cx-measure-form .btn-g, .cx-challenge-form .btn-g { width: auto; justify-self: start; align-self: flex-start; }

/* Mobile : en-tête compact, actions sur une ligne */
@media (max-width: 680px) {
  .cx-title { font-size: 1.3rem; }
  .cx-header { margin-bottom: 16px; }
  .cx-header-actions { width: 100%; flex-wrap: nowrap; }
  .cx-push, .cx-logout { flex: 1; justify-content: center; text-align: center; padding: 10px 10px; font-size: .66rem; }
  .cx-prog-head { flex-wrap: wrap; gap: 10px; }
  .cx-add { width: 100%; justify-content: center; }
  .cx-template-bar { flex-wrap: wrap; gap: 8px; }
}

/* ════════════════════════════════════════════════════════════════
   ESPACE COACHING — HABILLAGE « PERFORMANCE LAB » (refonte luxe)
   Direction : écrin sombre feutré, halos verts discrets, chiffres
   Bebas monumentaux, cartes en verre stratifié, un seul vrai CTA.
   ════════════════════════════════════════════════════════════════ */

/* ── Scène : halos d'ambiance + entrée orchestrée ──
   (.sec est déjà positionnée : on ne touche PAS à sa position) */
#coaching::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(560px 380px at 12% 60px,  rgba(0,230,118,.07), transparent 65%),
    radial-gradient(640px 420px at 95% 340px, rgba(255,198,45,.045), transparent 70%);
}
.cx-wrap { position: relative; z-index: 1; }
@keyframes cxRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cx-wrap > * { animation: cxRise .55s var(--ease) both; }
.cx-wrap > *:nth-child(2) { animation-delay: .06s; }
.cx-wrap > *:nth-child(3) { animation-delay: .12s; }
.cx-wrap > *:nth-child(4) { animation-delay: .18s; }
.cx-wrap > *:nth-child(5) { animation-delay: .24s; }
.cx-wrap > *:nth-child(n+6) { animation-delay: .3s; }

/* ── Matière commune : verre stratifié ── */
.cx-tile, .cx-chart-card, .cx-assign, .cx-profile-card, .cx-measure-form,
.cx-logs, .cx-side, .cx-thread, .cx-msg-form, .cx-card {
  background: linear-gradient(168deg, rgba(255,255,255,.045), rgba(255,255,255,.012) 58%, rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 18px 44px rgba(0,0,0,.34);
}

/* ── En-tête : éditorial ── */
.cx-header { align-items: center; padding-bottom: 20px; margin-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,.06); }
.cx-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -.01em; }
.cx-sub, .cx-sub b { font-size: .85rem; }
.cx-push, .cx-logout { border-radius: 999px; font-size: .68rem; padding: 10px 18px; }

/* ── Sous-onglets : règle éditoriale soulignée ── */
.cx-subtabs { background: none; padding: 0 0 2px; border-radius: 0; gap: 26px;
  border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 26px; }
.cx-subtab { padding: 10px 2px 13px; border-radius: 0; font-size: .85rem; letter-spacing: .01em;
  color: rgba(242,238,234,.45); position: relative; }
.cx-subtab:hover { color: rgba(242,238,234,.85); background: none; }
.cx-subtab.active { background: none; color: var(--white); }
.cx-subtab.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(0,230,118,.15)); border-radius: 2px;
  box-shadow: 0 0 14px rgba(0,230,118,.55); }

/* ── HÉROS « Ta séance du jour » ── */
.cx-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-radius: 22px; padding: 34px 36px; margin-bottom: 30px; overflow: hidden;
  background:
    linear-gradient(120deg, rgba(0,230,118,.10), transparent 45%),
    linear-gradient(168deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid rgba(0,230,118,.22);
  box-shadow: 0 24px 60px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06); }
.cx-hero-glow { position: absolute; width: 420px; height: 420px; right: -120px; top: -200px;
  background: radial-gradient(circle, rgba(0,230,118,.16), transparent 60%); pointer-events: none; }
.cx-hero-kicker { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.cx-hero-count { font-family: var(--font-s); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: .95;
  letter-spacing: .02em; }
.cx-hero-count b { color: var(--accent); font-weight: 400; }
.cx-hero-meta { color: rgba(242,238,234,.55); font-size: .85rem; margin: 8px 0 22px; }
.cx-hero-hint { color: rgba(242,238,234,.4); font-size: .72rem; margin-top: 14px; max-width: 380px; }
.cx-hero-empty { border-color: rgba(255,255,255,.08); }
.cx-hero-streak { flex-shrink: 0; text-align: center; padding: 18px 22px; border-radius: 18px;
  background: rgba(255,198,45,.07); border: 1px solid rgba(255,198,45,.25); line-height: 1.05; }
.cx-hero-streak span { font-size: 1.5rem; display: block; }
.cx-hero-streak b { font-family: var(--font-s); font-size: 2.2rem; color: var(--gold); }
.cx-hero-streak small { display: block; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(242,238,234,.5); margin-top: 4px; }

.cx-start-btn { display: inline-flex; align-items: center; gap: 12px; padding: 17px 34px;
  border-radius: 999px; font-weight: 800; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
  color: #03130a; background: linear-gradient(135deg, #00e676, #00c9a7);
  box-shadow: 0 14px 38px rgba(0,230,118,.35), inset 0 1px 0 rgba(255,255,255,.35);
  position: relative; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.cx-start-btn:hover { transform: translateY(-2px) scale(1.015); box-shadow: 0 18px 48px rgba(0,230,118,.5); }
.cx-start-btn::after { content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); animation: cxShine 3.2s ease-in-out infinite; }
@keyframes cxShine { 0%, 55% { left: -80%; } 75%, 100% { left: 130%; } }
.cx-start-ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(3,19,10,.18); font-size: .7rem; }

/* ── Titres de section ── */
.cx-section-ttl { display: flex; align-items: center; gap: 12px; font-size: .7rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: rgba(242,238,234,.5); margin: 26px 0 12px; }
.cx-section-ttl::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.06); }

/* ── Cartes d'exercices : rail de statut ── */
.cx-assign { border-radius: 16px; padding: 16px 18px 16px 22px; position: relative;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.cx-assign::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
  border-radius: 3px; background: rgba(255,255,255,.12); }
.cx-assign:hover { transform: translateX(3px); border-color: rgba(0,230,118,.3); }
.cx-assign.is-done::before { background: linear-gradient(180deg, var(--accent), rgba(0,230,118,.2));
  box-shadow: 0 0 10px rgba(0,230,118,.5); }
.cx-assign.is-skip { opacity: .45; }
.cx-list-done .cx-assign { opacity: .55; }
.cx-list-done .cx-assign:hover { opacity: .9; }
.cx-list-upcoming .cx-assign::before { background: rgba(255,198,45,.4); }
.cx-bp { font-size: .58rem; letter-spacing: .16em; padding: 4px 10px; border-radius: 99px;
  background: rgba(0,230,118,.08); border: 1px solid rgba(0,230,118,.22); color: var(--accent); }
.cx-assign-nm { font-family: var(--font-d); font-weight: 700; font-size: .98rem; }
.cx-assign-note { color: var(--gold); opacity: .85; }

/* Actions express */
.cx-mini { border-radius: 999px; font-weight: 700; transition: transform .15s, box-shadow .2s, border-color .2s; }
.cx-mini-done { background: linear-gradient(135deg, #00e676, #00c9a7); color: #03130a; padding: 9px 18px;
  box-shadow: 0 6px 20px rgba(0,230,118,.28); }
.cx-mini-done:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0,230,118,.45); }
.cx-mini-edit { width: 36px; height: 36px; display: inline-grid; place-items: center;
  border: 1px solid rgba(255,255,255,.14); color: rgba(242,238,234,.6); border-radius: 50%; }
.cx-mini-edit:hover { border-color: var(--accent); color: var(--accent); }
.cx-mini-skip { border: 1px solid transparent; color: rgba(242,238,234,.4); padding: 9px 12px; }
.cx-mini-skip:hover { color: rgba(242,238,234,.75); }
.cx-status.cx-st-done { background: rgba(0,230,118,.1); border: 1px solid rgba(0,230,118,.3); color: var(--accent);
  border-radius: 99px; padding: 6px 14px; font-weight: 700; }

/* ── Tuiles de stats : chiffres monumentaux ── */
.cx-tiles { gap: 14px; }
.cx-tile { border-radius: 18px; padding: 22px 16px 18px; position: relative; overflow: hidden;
  transition: transform .2s var(--ease), border-color .2s; }
.cx-tile::before { content: ''; position: absolute; top: 0; left: 18%; right: 18%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,230,118,.5), transparent); }
.cx-tile:hover { transform: translateY(-3px); border-color: rgba(0,230,118,.3); }
.cx-tile-v { font-family: var(--font-s); font-weight: 400; font-size: 2.7rem; letter-spacing: .02em;
  text-shadow: 0 0 24px rgba(0,230,118,.35); }
.cx-tile-l { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; margin-top: 8px; }

/* ── Cartes graphiques ── */
.cx-chart-card { border-radius: 18px; }
.cx-chart-ttl { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(242,238,234,.55); }

/* ── Badges : médaillons ── */
.cx-badge { background: linear-gradient(135deg, rgba(255,198,45,.12), rgba(255,198,45,.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08); padding: 8px 16px; }

/* ── Barre latérale coach ── */
.cx-side { border-radius: 20px; padding: 18px; align-self: start; position: sticky; top: 90px; }
.cx-side-ttl { font-size: .62rem; letter-spacing: .2em; }
.cx-client { border-radius: 12px; transition: background .2s, transform .2s var(--ease); }
.cx-client:hover { transform: translateX(2px); }
.cx-client.active { background: linear-gradient(90deg, rgba(0,230,118,.13), rgba(0,230,118,.03));
  box-shadow: inset 2px 0 0 var(--accent); }
.cx-client-av { background: linear-gradient(135deg, #00e676, #00c9a7); color: #03130a; font-weight: 800;
  box-shadow: 0 0 0 2px rgba(0,230,118,.25), 0 4px 14px rgba(0,230,118,.25); }
.cx-add-coachee { border-radius: 999px; letter-spacing: .06em; }

/* ── Progression (barre) ── */
.cx-progress-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.06);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.5); }
.cx-progress-fill { border-radius: 99px; background: linear-gradient(90deg, #00c9a7, var(--accent));
  box-shadow: 0 0 16px rgba(0,230,118,.5); }

/* ── Messagerie : salon feutré ── */
.cx-thread { border-radius: 18px 18px 0 0; padding: 22px; }
.cx-msg { box-shadow: 0 6px 18px rgba(0,0,0,.25); border-radius: 14px 14px 14px 5px; }
.cx-msg.is-mine { background: linear-gradient(135deg, rgba(0,230,118,.16), rgba(0,201,167,.08));
  border-color: rgba(0,230,118,.3); border-radius: 14px 14px 5px 14px; }
.cx-msg-form { border-radius: 0 0 18px 18px; }
.cx-msg-form .btn-g { border-radius: 999px; }

/* ── État vide ── */
.cx-empty-state { text-align: center; padding: 46px 20px; border: 1px dashed rgba(255,255,255,.12);
  border-radius: 18px; color: rgba(242,238,234,.5); font-size: .9rem; line-height: 1.6; }
.cx-empty-state span { display: block; font-size: 2rem; margin-bottom: 10px; }

/* ── Connexion : carte vitrine ── */
.cx-auth { border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06); }

/* ── Mobile ── */
@media (max-width: 680px) {
  .cx-hero { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .cx-hero-streak { align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; }
  .cx-hero-streak span { font-size: 1.2rem; }
  .cx-start-btn { width: 100%; justify-content: center; }
  .cx-side { position: static; }
  .cx-subtabs { gap: 18px; }
}

/* ════════════════════════════════════════════════════════════════
   OUTILS (Exercices · Anatomie · Routine · Minuteur) — extension luxe
   + composants du dashboard coach intelligent
   ════════════════════════════════════════════════════════════════ */

/* ── Têtes de section outils : compactes, le contenu d'abord ── */
.sec-tool .sec-hd { margin-bottom: 22px; }
.sec-tool .sh2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.sec-tool { padding-bottom: 110px; }   /* le bouton « Installer l'app » ne recouvre plus le contenu */
#coaching { padding-bottom: 110px; }

/* ── Halos d'ambiance sur les outils (cohérence avec le coaching) ── */
.sec-tool::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(520px 360px at 8% 80px, rgba(0,230,118,.05), transparent 65%),
    radial-gradient(600px 400px at 96% 420px, rgba(255,198,45,.03), transparent 70%);
}
.sec-tool > * { position: relative; z-index: 1; }

/* ── Cartes exercices : verre stratifié + lueur au survol ── */
.ex-card {
  background: linear-gradient(168deg, rgba(255,255,255,.045), rgba(255,255,255,.012) 58%, rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 14px 36px rgba(0,0,0,.3);
  border-radius: 16px;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.ex-card:hover { transform: translateY(-4px); border-color: rgba(0,230,118,.35);
  box-shadow: 0 20px 48px rgba(0,0,0,.45), 0 0 0 1px rgba(0,230,118,.12); }

/* GIFs sur fond blanc : vignette adoucie pour s'intégrer au thème sombre */
.ex-gif, .ex-gif img, .rt-item-img img, .pr-ex img, .ex-modal-gif img, .rtp-media img {
  border-radius: 12px;
}
.ex-gif img, .rt-item-img img, .pr-ex img, .ex-modal-gif img, .rtp-media img {
  background: #fff;
  filter: saturate(.92) contrast(.97);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}

/* Vignettes lisibles dans Ma Routine */
.rt-item-img { width: 72px; height: 72px; flex-shrink: 0; }
.rt-item-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── Panneaux Routine / Minuteur : même matière ── */
.rt-item, .rt-dash-card, .rt-summary, .tm-config-card, .tm-screen-card, .tm-builder-card,
.rt-controls > div, .tm-config, .tm-screen-wrap {
  background: linear-gradient(168deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  border: 1px solid rgba(255,255,255,.07);
}
.rt-item { border-radius: 14px; transition: transform .2s var(--ease), border-color .2s; }
.rt-item:hover { transform: translateX(3px); border-color: rgba(0,230,118,.3); }

/* ── Champs & filtres : focus lumineux ── */
.ex-search:focus, .ex-select-filter:focus, .rt-input:focus, .cx-form input:focus,
.cx-form select:focus, .cx-form textarea:focus {
  border-color: rgba(0,230,118,.55) !important;
  box-shadow: 0 0 0 3px rgba(0,230,118,.12);
}

/* Indicateur de chargement 3D plus présent */
.an3d-loading { background: rgba(6,6,10,.55); backdrop-filter: blur(3px); border-radius: 12px;
  padding: 12px 18px; }

/* ── Dashboard coach : liste coachés intelligente ── */
.cx-client { align-items: center; }
.cx-client-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cx-client-meta { font-size: .66rem; color: rgba(242,238,234,.45); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.cx-client-av { position: relative; }
.cx-dot { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px;
  border-radius: 50%; border: 2px solid var(--surface); }
.cx-dot-green  { background: #2bdf7e; box-shadow: 0 0 8px rgba(0,230,118,.8); }
.cx-dot-orange { background: #ffb02d; box-shadow: 0 0 8px rgba(255,176,45,.7); }
.cx-dot-red    { background: #ff5a5a; box-shadow: 0 0 8px rgba(255,90,90,.7); }

/* ── Exercices « À venir » verrouillés ── */
.cx-status.cx-st-wait { background: rgba(255,198,45,.08); border: 1px solid rgba(255,198,45,.28);
  color: var(--gold); border-radius: 99px; padding: 6px 14px; font-weight: 600; font-size: .74rem; }
.cx-list-upcoming .cx-assign { opacity: .7; }
.cx-list-upcoming .cx-assign:hover { opacity: 1; }

/* ── « Tout est fait » : coche dessinée + actions suivantes ── */
.cx-hero-check { display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: rgba(0,230,118,.12); border: 1px solid rgba(0,230,118,.45);
  color: var(--accent); font-size: 1.4rem; vertical-align: middle; margin-right: 10px;
  box-shadow: 0 0 24px rgba(0,230,118,.25); }
.cx-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ── Connexion : la promesse ── */
.cx-auth-promise { font-size: .74rem; color: rgba(242,238,234,.55); margin: -6px 0 14px;
  padding: 9px 12px; background: rgba(0,230,118,.05); border: 1px solid rgba(0,230,118,.14);
  border-radius: 9px; }

/* ── Sous-onglets mobile : fondu indiquant la suite ── */
@media (max-width: 680px) {
  .cx-subtabs { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent);
    mask-image: linear-gradient(90deg, #000 86%, transparent); }
  /* Actions des cartes : rangée pleine largeur sous le contenu */
  .cx-assign-coachee { flex-direction: column; align-items: stretch; gap: 12px; }
  .cx-assign-coachee .cx-assign-side { display: flex; align-items: center; gap: 10px; }
  .cx-assign-coachee .cx-mini-done { flex: 1; text-align: center; justify-content: center; padding: 12px; }
  .cx-assign-coachee .cx-mini-skip { margin-left: auto; }
}
/* hidden doit toujours gagner sur les display des formulaires */
.cx-challenge-form[hidden], .cx-form[hidden] { display: none !important; }

/* ════════════════════════════════════════════════════════════════
   PLANNING · PRÉSENCES · CONTENUS DE SÉANCE · ONBOARDING
   ════════════════════════════════════════════════════════════════ */

.cx-plan { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.cx-plan-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 14px; }

/* Calendrier */
.cx-cal { background: linear-gradient(168deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  border: 1px solid rgba(255,255,255,.07); border-radius: 18px; padding: 16px;
  box-shadow: 0 18px 44px rgba(0,0,0,.34); }
.cx-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cx-cal-month { font-family: var(--font-d); font-weight: 700; font-size: .92rem; text-transform: capitalize; }
.cx-cal-nav { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--border);
  color: rgba(242,238,234,.7); font-size: 1.05rem; transition: border-color .2s, color .2s; }
.cx-cal-nav:hover { border-color: var(--accent); color: var(--accent); }
.cx-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cx-cal-wd { text-align: center; font-size: .6rem; letter-spacing: .1em; color: rgba(242,238,234,.35);
  padding: 4px 0 8px; }
.cx-cal-cell { position: relative; aspect-ratio: 1; border-radius: 10px; font-size: .8rem;
  color: rgba(242,238,234,.75); display: grid; place-items: center;
  transition: background .15s, color .15s, box-shadow .2s; }
.cx-cal-cell:hover { background: rgba(255,255,255,.06); }
.cx-cal-cell.is-empty { pointer-events: none; }
.cx-cal-cell.is-today { box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); font-weight: 700; }
.cx-cal-cell.is-selected { background: rgba(0,230,118,.16); color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(0,230,118,.5); font-weight: 700; }
.cx-cal-dot { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px rgba(0,230,118,.8); }
.cx-cal-cell.has-absent .cx-cal-dot { background: #ff5a5a; box-shadow: 0 0 8px rgba(255,90,90,.8); }

.cx-plan-rate { font-size: .82rem; color: rgba(242,238,234,.7); padding: 12px 16px;
  border: 1px solid rgba(0,230,118,.2); border-radius: 12px; background: rgba(0,230,118,.05); }
.cx-plan-rate b { color: var(--accent); font-family: var(--font-s); font-size: 1.3rem; margin-right: 6px; }
.cx-plan-add { width: 100%; justify-content: center; border-radius: 999px; }

/* Carte de séance */
.cx-session { background: linear-gradient(168deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 18px 20px;
  box-shadow: 0 18px 44px rgba(0,0,0,.3); margin-bottom: 14px; }
.cx-session.is-cancelled { opacity: .45; }
.cx-session-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.cx-session-time { font-family: var(--font-s); font-size: 1.25rem; color: var(--accent); letter-spacing: .03em; }
.cx-session-time small { color: rgba(242,238,234,.45); font-family: var(--font-b); font-size: .72rem; }
.cx-session-ttl { font-family: var(--font-d); font-weight: 700; flex: 1; min-width: 120px; }
.cx-session-loc { font-size: .78rem; color: rgba(242,238,234,.6); margin-bottom: 4px; }
.cx-att-group { display: inline-flex; align-items: center; gap: 6px; }
.cx-att-btn { padding: 7px 12px; border-radius: 999px; font-size: .7rem; font-weight: 700;
  border: 1px solid var(--border); color: rgba(242,238,234,.55); transition: all .2s; }
.cx-att-btn.on[data-att="present"] { background: rgba(0,230,118,.14); border-color: rgba(0,230,118,.5); color: var(--accent); }
.cx-att-btn.on[data-att="absent"]  { background: rgba(255,90,90,.12); border-color: rgba(255,90,90,.5); color: #ff7a7a; }
.cx-status.cx-att-present { background: rgba(0,230,118,.1); border: 1px solid rgba(0,230,118,.35); color: var(--accent); border-radius: 99px; padding: 6px 14px; }
.cx-status.cx-att-absent  { background: rgba(255,90,90,.1); border: 1px solid rgba(255,90,90,.35); color: #ff7a7a; border-radius: 99px; padding: 6px 14px; }
.cx-status.cx-att-planned { background: rgba(255,255,255,.05); border: 1px solid var(--border); color: rgba(242,238,234,.6); border-radius: 99px; padding: 6px 14px; }

/* Contenus de séance */
.cx-session-items { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.cx-sitem { position: relative; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px; padding: 12px 38px 12px 14px; }
.cx-sitem .cx-del { position: absolute; top: 8px; right: 8px; }
.cx-sitem-head, .cx-sitem-ex { display: flex; align-items: center; gap: 10px; font-size: .9rem; width: 100%; text-align: left; }
.cx-sitem-ex { transition: color .2s; }
.cx-sitem-ex:hover .cx-sitem-ttl { color: var(--accent); }
.cx-sitem-ico { font-size: 1rem; }
.cx-sitem-ttl { font-weight: 600; }
.cx-sitem-ttl::first-letter { text-transform: uppercase; }
.cx-sitem-open { margin-left: auto; font-size: .68rem; color: var(--accent); white-space: nowrap; }
.cx-sitem-details { font-size: .8rem; color: rgba(242,238,234,.6); margin-top: 8px; line-height: 1.5; white-space: pre-line; }
.cx-yt-wrap { margin-top: 10px; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: #000; }
.cx-yt { width: 100%; height: 100%; border: 0; }
.cx-sitem-media { margin-top: 10px; border-radius: 12px; max-width: 100%; max-height: 360px; display: block; }
.cx-session-add { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.08); }
.cx-content-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.cx-content-tabs .cx-chip-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(0,230,118,.07); }
.cx-empty-line { font-size: .8rem; }

/* Agenda coach (vue d'ensemble) */
.cx-agenda { display: flex; flex-direction: column; }
.cx-agenda-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: .85rem; }
.cx-agenda-row:last-child { border-bottom: none; }
.cx-agenda-when b { color: var(--accent); }
.cx-agenda-who { font-weight: 600; }
.cx-agenda-what { font-size: .76rem; text-align: right; }

/* Héros : prochaine séance */
.cx-hero-next { font-size: .8rem; color: rgba(242,238,234,.7); margin-top: -14px; margin-bottom: 16px; }
.cx-hero-next b { color: var(--gold); }

/* Messagerie : séparateurs de jour */
.cx-msg-day { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.cx-msg-day::before, .cx-msg-day::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.06); }
.cx-msg-day span { font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(242,238,234,.4); }

/* Records : tendance */
.cx-pr-up { font-style: normal; color: var(--gold); font-size: .72rem; font-weight: 700; }
.cx-pr-flat { font-style: normal; color: rgba(242,238,234,.35); font-size: .72rem; }

/* Légende 3D */
.bd-legend { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 10px;
  font-size: .7rem; color: rgba(242,238,234,.55); }
.bd-legend span { display: inline-flex; align-items: center; gap: 7px; }
.bd-leg-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.bd-leg-green { background: #00e676; box-shadow: 0 0 8px rgba(0,230,118,.7); }
.bd-leg-gold  { background: #ffc62d; box-shadow: 0 0 8px rgba(255,198,45,.7); }
.bd-leg-heat  { background: linear-gradient(135deg, #0a3, #00e676); box-shadow: 0 0 10px rgba(0,230,118,.9); }

/* Onboarding */
.cx-onboard { display: flex; }
.cx-onboard-panel { max-width: 520px; text-align: center; padding: 38px 34px; }
.cx-onboard-ttl { font-family: var(--font-d); font-size: 1.6rem; font-weight: 800; margin: 6px 0 22px; }
.cx-onboard-steps { display: flex; flex-direction: column; gap: 14px; text-align: left; margin-bottom: 26px; }
.cx-onboard-step { display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; align-items: center; }
.cx-onboard-step span { grid-row: span 2; width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.2rem;
  background: rgba(0,230,118,.1); border: 1px solid rgba(0,230,118,.3); }
.cx-onboard-step b { font-size: .92rem; }
.cx-onboard-step p { font-size: .78rem; color: rgba(242,238,234,.55); line-height: 1.5; }
.cx-onboard-go { justify-content: center; }

@media (max-width: 860px) {
  .cx-plan { grid-template-columns: 1fr; }
  .cx-plan-side { position: static; }
  .cx-agenda-row { grid-template-columns: 110px 1fr; }
  .cx-agenda-what { grid-column: 2; text-align: left; }
}

/* Identifiants coaché à transmettre + bouton mot de passe */
.cx-creds { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.cx-cred-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: rgba(0,230,118,.06); border: 1px solid rgba(0,230,118,.2);
  border-radius: 12px; }
.cx-cred-row span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(242,238,234,.5); }
.cx-cred-row code { font-family: var(--font-s); font-size: 1.15rem; letter-spacing: .05em; color: var(--accent); }
.cx-pass { font-size: .68rem; padding: 10px 16px; border-radius: 999px; }
@media (max-width: 680px) { .cx-pass { flex: 1; justify-content: center; text-align: center; } }

/* Boîte de réception des leads (vue d'ensemble coach) */
.cx-lead-count { display: inline-block; margin-left: 8px; padding: 3px 10px; border-radius: 99px;
  background: rgba(0,230,118,.14); border: 1px solid rgba(0,230,118,.4); color: var(--accent);
  font-size: .64rem; letter-spacing: .04em; }
.cx-leads { display: flex; flex-direction: column; gap: 12px; }
.cx-lead { background: rgba(255,255,255,.03); border: 1px solid rgba(0,230,118,.2);
  border-left: 3px solid var(--accent); border-radius: 12px; padding: 14px 16px; }
.cx-lead.is-handled { border-color: rgba(255,255,255,.07); border-left-color: rgba(255,255,255,.15); opacity: .55; }
.cx-lead.is-handled:hover { opacity: .85; }
.cx-lead-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cx-lead-head > .cx-muted { font-size: .7rem; }
.cx-lead-acts { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.cx-lead-acts .cx-chip-btn { padding: 5px 11px; font-size: .68rem; }
.cx-lead-mail { font-size: .76rem; color: var(--accent); margin-top: 2px; }

/* ════════════════════════════════════════════════════════════════
   COMPTABILITÉ DES SÉANCES
   ════════════════════════════════════════════════════════════════ */
.cx-bill-rate { background: linear-gradient(168deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 18px 20px; margin-bottom: 18px; }
.cx-bill-rate > label { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(242,238,234,.5); margin-bottom: 10px; }
.cx-bill-rate-in { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cx-bill-rate-in input { width: 120px; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 14px; color: var(--white); font-family: var(--font-s); font-size: 1.2rem; }
.cx-bill-rate-in span { color: rgba(242,238,234,.6); font-size: .85rem; }
.cx-bill-rate-in .btn-o { border-radius: 999px; }
.cx-bill-hint { font-size: .72rem; margin-top: 10px; }

.cx-bill-tiles .cx-due { color: var(--gold); }
.cx-bill-exports { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }

.cx-bill-month { margin-bottom: 16px; }
.cx-bill-month-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.07); }
.cx-bill-month-ttl { font-family: var(--font-d); font-weight: 700; text-transform: capitalize; font-size: 1rem; }
.cx-bill-month-sum { font-family: var(--font-s); font-size: 1.15rem; color: var(--accent); }
.cx-bill-month-sum small { font-family: var(--font-b); font-size: .68rem; color: rgba(242,238,234,.45); margin-left: 6px; }
.cx-bill-rows { display: flex; flex-direction: column; gap: 6px; }
.cx-bill-row { display: grid; grid-template-columns: 84px 1fr auto auto; gap: 12px; align-items: center;
  padding: 11px 14px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.05);
  border-radius: 11px; font-size: .86rem; }
.cx-bill-row.is-paid { border-color: rgba(0,230,118,.22); }
.cx-bill-row.is-free { opacity: .8; }
.cx-bill-date { color: var(--accent); font-weight: 600; font-size: .78rem; }
.cx-bill-ttl::first-letter { text-transform: uppercase; }
.cx-bill-amt { font-family: var(--font-s); font-size: 1.05rem; letter-spacing: .02em; }
.cx-bill-acts { display: inline-flex; align-items: center; gap: 6px; }
.cx-bill-acts .cx-att-btn[disabled] { opacity: .35; pointer-events: none; }
.cx-bill-status { font-size: .72rem; padding: 5px 12px; border-radius: 99px; font-weight: 600; }
.cx-bill-status.paid { background: rgba(0,230,118,.1); border: 1px solid rgba(0,230,118,.3); color: var(--accent); }
.cx-bill-status.due  { background: rgba(255,198,45,.08); border: 1px solid rgba(255,198,45,.3); color: var(--gold); }
.cx-bill-status.free { background: rgba(255,255,255,.05); border: 1px solid var(--border); color: rgba(242,238,234,.6); }

@media (max-width: 680px) {
  .cx-bill-row { grid-template-columns: 1fr auto; row-gap: 6px; }
  .cx-bill-date { grid-column: 1; }
  .cx-bill-amt { grid-column: 2; text-align: right; }
  .cx-bill-ttl { grid-column: 1 / -1; }
  .cx-bill-acts, .cx-bill-status { grid-column: 1 / -1; }
}

/* ════════════════════════════════════════════════════════════════
   CORRECTIFS MOBILE — messagerie, PWA, sous-onglets
   ════════════════════════════════════════════════════════════════ */

/* Le bouton « Installer l'app » ne doit plus recouvrir le contenu.
   Sur mobile : plus discret, et la zone de saisie des messages passe
   au-dessus de lui (z-index) avec une marge de sécurité. */
@media (max-width: 760px) {
  .pwa-install { right: 10px; bottom: 10px; padding: 9px 14px; font-size: .7rem; z-index: 60; opacity: .96; }
  /* La barre de saisie des messages reste cliquable au-dessus du bouton PWA */
  .cx-msg-form { position: relative; z-index: 70; }
  /* Espace en bas des zones défilantes pour ne pas finir sous le bouton PWA */
  .cx-thread { padding-bottom: 16px; }
  #coaching, .sec-tool { padding-bottom: 84px; }
}

/* Messagerie mobile : bulles plus larges, mots longs coupés proprement,
   formulaire d'envoi compact qui tient sur une ligne */
@media (max-width: 680px) {
  .cx-msg { max-width: 90%; }
  .cx-msg-body { word-break: break-word; overflow-wrap: anywhere; hyphens: auto; }
  .cx-thread { min-height: 300px; max-height: 56vh; }
  .cx-msg-form { gap: 6px; padding: 10px; }
  .cx-msg-form input { padding: 11px 12px; font-size: 16px; /* 16px = pas de zoom auto iOS */ min-width: 0; }
  .cx-msg-form .btn-g { padding: 11px 16px; font-size: .8rem; white-space: nowrap; flex-shrink: 0; }
}

/* En-tête coaching mobile : 3 boutons d'action lisibles sur une ligne */
@media (max-width: 680px) {
  .cx-header-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; width: 100%; }
  .cx-push, .cx-pass, .cx-logout { padding: 9px 6px; font-size: .6rem; letter-spacing: .02em;
    justify-content: center; text-align: center; }
}

/* Aide d'installation iOS (bandeau bas, fermable) */
.ios-install { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 10040;
  background: linear-gradient(165deg, #11131c, #0b0c12); border: 1px solid rgba(0,230,118,.3);
  border-radius: 16px; padding: 16px 18px 16px; color: var(--white);
  box-shadow: 0 18px 50px rgba(0,0,0,.55); transform: translateY(140%); opacity: 0;
  transition: transform .35s var(--ease), opacity .35s; }
.ios-install.show { transform: translateY(0); opacity: 1; }
.ios-install p { font-size: .82rem; line-height: 1.5; }
.ios-install p + p { margin-top: 6px; color: rgba(242,238,234,.7); }
.ios-install b { color: var(--accent); }
.ios-install-steps b { color: var(--white); }
.ios-share { display: inline-block; padding: 1px 8px; border-radius: 6px;
  background: rgba(0,122,255,.15); border: 1px solid rgba(0,122,255,.4); color: #4da3ff; font-weight: 600; }
.ios-install-x { position: absolute; top: 8px; right: 10px; width: 28px; height: 28px;
  font-size: 1.3rem; line-height: 1; color: rgba(242,238,234,.5); }
.ios-install-x:hover { color: var(--white); }

/* Le bouton PWA flottant gêne la messagerie : on le masque dans le coaching
   sur mobile (l'aide iOS et le menu navigateur permettent toujours d'installer) */
@media (max-width: 760px) {
  body.tab-coaching .pwa-install { display: none; }
}

/* ════════════════════════════════════════════════════════════════
   MOBILE : corrections d'affichage (clavier iOS, zoom, safe areas)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 680px) {
  /* iOS zoome automatiquement quand un champ < 16px reçoit le focus,
     ce qui « coupe » la page (symptôme : messages/écrans tronqués).
     16px sur tous les champs mobiles = plus aucun zoom forcé. */
  input, select, textarea, .cx-msg-form input, .ex-search, .cx-form input,
  .cx-form select, .cx-form textarea, .rt-input, .cx-modal-search {
    font-size: 16px !important;
  }
  /* Fil de discussion : hauteur dynamique qui s'adapte au clavier ouvert */
  .cx-thread { max-height: 52dvh; min-height: 200px; }
  .cx-msg-body { overflow-wrap: anywhere; }
  /* Le formulaire d'envoi reste compact */
  .cx-msg-form { padding: 10px; gap: 6px; }
  .cx-msg-form .btn-g { padding: 12px 16px; font-size: .72rem; }
}

/* Boutons flottants : ne pas chevaucher la barre iPhone (safe area) */
.pwa-install { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 600px) { .pwa-install { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); } }

/* ════════════════════════════════════════════════════════════════
   CURSEUR TOUJOURS VISIBLE — y compris en plein écran
   Le curseur personnalisé (#cdot/#cring) est rattaché à <body> ; en
   plein écran (lecteur de séance, minuteur), seul l'élément agrandi est
   rendu, donc le curseur custom ne peut pas s'y afficher. On rétablit
   alors le curseur natif pour qu'il reste TOUJOURS visible.
   ════════════════════════════════════════════════════════════════ */
:fullscreen, :fullscreen * { cursor: auto !important; }
:fullscreen a, :fullscreen button, :fullscreen [role="button"], :fullscreen [onclick],
:fullscreen .rtp-btn, :fullscreen .tm-ctrl-btn, :fullscreen .rtp-nav-btn { cursor: pointer !important; }
:fullscreen input, :fullscreen textarea { cursor: text !important; }
:-webkit-full-screen, :-webkit-full-screen * { cursor: auto !important; }
:-webkit-full-screen a, :-webkit-full-screen button { cursor: pointer !important; }


/* ════════════════════════════════════════════════════════════════
   HÉROS — L'ÉCORCHÉ VIVANT (zone 3D)
   ════════════════════════════════════════════════════════════════ */
.hero-3d { position: absolute; top: 0; right: 0; width: 52%; height: 100%; z-index: 1;
  pointer-events: none; opacity: 0; transition: opacity 1.4s var(--ease);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.hero-3d.on { opacity: 1; }
.hero-3d::before { content: ''; position: absolute; inset: 0;
  background: radial-gradient(46% 58% at 58% 46%, rgba(6,6,10,.5), transparent 72%); }
.hero-3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
@media (max-width: 980px) { .hero-3d { display: none; } }

/* ════════════════════════════════════════════════════════════════
   MINUTEUR — DÉMO DE L'EXERCICE EN COURS (GIF + consignes)
   ════════════════════════════════════════════════════════════════ */
.tm-ex-demo { display: flex; gap: 16px; align-items: flex-start; margin-top: 18px;
  padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); text-align: left;
  animation: tmDemoIn .4s var(--ease) both; }
@keyframes tmDemoIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tm-ex-demo-media { flex-shrink: 0; width: 132px; height: 132px; border-radius: 14px;
  overflow: hidden; background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.06); }
.tm-ex-demo-media img { width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.95) contrast(.97); }
.tm-ex-demo-body { flex: 1; min-width: 0; }
.tm-ex-demo-ttl { font-size: .64rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.tm-ex-demo-steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.tm-ex-demo-steps li { font-size: .8rem; line-height: 1.45; color: rgba(242,238,234,.78); }
.tm-ex-demo-steps li::marker { color: var(--accent); font-weight: 700; }

@media (max-width: 600px) {
  .tm-ex-demo { flex-direction: column; align-items: stretch; gap: 12px; }
  .tm-ex-demo-media { width: 100%; height: 200px; }
}

/* Minuteur — nom du prochain exercice (pendant la récup) */
.tm-ex-demo-next { font-family: var(--font-d); font-weight: 700; font-size: .98rem;
  color: var(--white); margin: 0 0 8px; line-height: 1.2; }
.tm-ex-demo-next::first-letter { text-transform: uppercase; }

/* ════════════════════════════════════════════════════════════════
   « LE COACH » — séances guidées (refonte du Minuteur)
   ════════════════════════════════════════════════════════════════ */
/* — Vue 1 : cartes d'intention — */
.coach-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.coach-cards-load { color: var(--muted); font-size: .85rem; padding: 24px 0; }
.coach-card-skel { min-height: 184px; border-radius: 14px; border: 1px solid var(--border);
  background: linear-gradient(100deg, var(--surface) 30%, rgba(255,255,255,.06) 50%, var(--surface) 70%);
  background-size: 220% 100%; animation: coachSkel 1.3s ease-in-out infinite; }
@keyframes coachSkel { from { background-position: 220% 0; } to { background-position: -220% 0; } }
.cx-forgot { display: block; margin: 14px auto 0; font-size: .8rem; }
.coach-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  text-align: left; padding: 20px; border-radius: 14px; cursor: pointer; min-height: 184px;
  background: var(--surface); border: 1px solid var(--border); color: var(--white);
  transition: border-color .2s, transform .2s, box-shadow .2s; position: relative; overflow: hidden; }
.coach-card::before { content:''; position:absolute; inset:0; opacity:0; transition: opacity .25s;
  background: radial-gradient(120% 80% at 100% 0, rgba(0,230,118,.12), transparent 60%); }
.coach-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.coach-card:hover::before { opacity: 1; }
.coach-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.coach-card > * { position: relative; z-index: 1; }
.coach-card-ico { font-size: 1.7rem; line-height: 1; margin-bottom: 2px; }
.coach-card-nm { font-family: var(--font-d); font-weight: 800; font-size: 1.12rem; line-height: 1.15; }
.coach-card-meta { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.coach-card-desc { font-size: .82rem; font-weight: 300; line-height: 1.5; color: rgba(242,238,234,.6); flex: 1; }
.coach-card-go { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-top: 6px; opacity: .5; transition: opacity .2s, color .2s; }
.coach-card:hover .coach-card-go { opacity: 1; color: var(--accent); }
.coach-card-mine { background: linear-gradient(160deg, rgba(0,230,118,.08), var(--surface)); border-color: rgba(0,230,118,.3); }

/* Volet « personnalisé » replié */
.coach-advanced { margin-top: 22px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.02); }
.coach-advanced > summary { cursor: pointer; list-style: none; padding: 16px 20px; display: flex;
  align-items: baseline; gap: 12px; flex-wrap: wrap; font-weight: 700; font-size: .9rem; color: var(--white); }
.coach-advanced > summary::-webkit-details-marker { display: none; }
.coach-advanced > summary:hover { color: var(--accent); }
.coach-adv-hint { font-size: .74rem; font-weight: 400; color: var(--muted); }
.coach-advanced[open] > summary { border-bottom: 1px solid var(--border); }
.coach-advanced .tm-panel-config { background: none; border: none; padding: 20px; }
.coach-start-custom { background: linear-gradient(135deg, var(--accent), #00c853); color: var(--bg); font-weight: 700; margin-top: 4px; }

/* — Vue 2 : séance immersive — */
.coach-back { background: none; border: 1px solid var(--border); color: var(--muted); font-size: .8rem;
  font-weight: 600; padding: 8px 16px; border-radius: 8px; cursor: pointer; margin-bottom: 16px; transition: all .2s; align-self: flex-start; }
.coach-back:hover { color: var(--white); border-color: var(--white); }
.coach-stage { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(16px, 2.5vw, 28px); align-items: center; }
.coach-stage.no-media { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
/* Média (vidéo) en grand, à gauche */
.coach-stage .tm-ex-demo { flex-direction: column; margin: 0; padding: 0; border: none; gap: 14px; align-items: stretch; }
.coach-stage .coach-media { width: 100%; max-width: 460px; height: auto; aspect-ratio: 1 / 1;
  margin: 0 auto; border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.06); }
.coach-stage .coach-media video, .coach-stage .coach-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.coach-stage .tm-ex-demo-body { width: 100%; max-width: 460px; margin: 0 auto; }
.coach-stage .tm-screen { min-height: 460px; }

@media (max-width: 860px) {
  .coach-stage, .coach-stage.no-media { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}

/* Le bouton « Réserver un créneau » reste caché tant qu'aucun agenda n'est configuré */
.ct-cal-btn[hidden] { display: none !important; }
