/* MANATAI VA'A — thème « océan » : fond profond, cartes en verre dépoli, accents lagon et soleil. */
:root {
  --fond: #031519; --fond2: rgba(255,255,255,.06); --carte-c: rgba(255,255,255,.055); --txt: #f3fafb; --txt2: #93b9c1; --bord: rgba(255,255,255,.1);
  --accent: #22d3e6; --accent-f: #0fa3b8; --accent2: #ffb627; --c3: #7ee081; --c4: #ff7b9c; --danger: #ff5a5f; --alerte: #e0262b;
  --grille: rgba(255,255,255,.08); --bande: rgba(255,255,255,.05); --carte: #0a2a33;
  --verre: rgba(255,255,255,.055); --verre-fort: rgba(255,255,255,.09); --ombre: 0 12px 34px rgba(0,0,0,.35);
  --degrade: linear-gradient(135deg, #22d3e6 0%, #0fa3b8 55%, #0b7a8a 100%);
  --degrade-soleil: linear-gradient(135deg, #ffd166 0%, #ffb627 50%, #ff8f1f 100%);
  --rayon: 20px;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--fond); }
html, body { margin: 0; color: var(--txt); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif; }
body {
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); min-height: 100vh; overflow-x: hidden;
  background:
    radial-gradient(900px 520px at -10% -10%, rgba(34,211,230,.20), transparent 60%),
    radial-gradient(700px 500px at 110% 20%, rgba(15,120,140,.22), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(255,182,39,.10), transparent 60%),
    linear-gradient(180deg, #05222a 0%, #031519 60%, #020f12 100%);
  background-attachment: fixed;
}
a { color: var(--accent); }
h1 { font-size: 1.4rem; margin: 0; letter-spacing: -.01em; }
h2 { font-size: .78rem; margin: 0 0 12px; color: var(--txt2); text-transform: uppercase; letter-spacing: .12em; font-weight: 800; display: flex; align-items: center; gap: 8px; }
h2::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); flex: none; }
h3 { font-size: .9rem; margin: 14px 0 6px; color: var(--txt2); }
.main { max-width: 680px; margin: 0 auto; padding: 14px 16px 100px; }
.main > * { animation: monter .45s cubic-bezier(.2,.8,.2,1) both; }
.main > *:nth-child(2) { animation-delay: .04s; } .main > *:nth-child(3) { animation-delay: .08s; } .main > *:nth-child(4) { animation-delay: .12s; }
.main > *:nth-child(5) { animation-delay: .16s; } .main > *:nth-child(n+6) { animation-delay: .2s; }
@keyframes monter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .main > *, .entree *, .lv-point { animation: none !important; } }

/* Bouton ALERTE : sur tous les écrans, au-dessus de tout */
.alerte { position: fixed; z-index: 1300; top: calc(env(safe-area-inset-top) + 10px); right: 12px; display: flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #ff4d4f, #c81e24); color: #fff; font-weight: 900; letter-spacing: .08em; text-decoration: none; padding: 10px 15px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(224,38,43,.45), inset 0 1px 0 rgba(255,255,255,.25); font-size: .85rem; }
.alerte svg { width: 18px; height: 18px; fill: #fff; }

.tete { display: flex; align-items: center; gap: 10px; margin: 4px 120px 16px 0; min-height: 46px; }
.tete h1 { font-size: 1.45rem; font-weight: 800; }
.retour { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--verre-fort); border: 1px solid var(--bord);
  font-size: 1.6rem; line-height: 1; text-decoration: none; color: var(--txt); padding-bottom: 3px; flex: none; }
.accueil-tete { margin: 8px 120px 18px 0; }
.accueil-tete small { color: var(--accent); font-weight: 800; letter-spacing: .1em; font-size: .7rem; text-transform: uppercase; }
.accueil-tete h1 { font-size: 2rem; font-weight: 900; letter-spacing: -.02em; margin-top: 4px; }
.intro, .sous-titre { color: var(--txt2); margin: 0 0 16px; font-size: .92rem; }

/* Carte « héros » (accueil, séance) */
.hero { position: relative; overflow: hidden; border-radius: 24px; padding: 20px; margin: 0 0 14px; color: #fff;
  background: radial-gradient(circle at 105% -10%, rgba(255,182,39,.95) 0 54px, rgba(255,182,39,.25) 55px 64px, transparent 65px),
    linear-gradient(150deg, #13b5c9 0%, #0b6f80 45%, #06323c 100%);
  box-shadow: 0 18px 40px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.18); }
.hero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -38px; height: 80px; opacity: .35;
  background: radial-gradient(40px 14px at 20px 0, transparent 26px, rgba(255,255,255,.55) 27px 29px, transparent 30px) 0 0/60px 30px repeat-x; }
.hero small { font-weight: 800; letter-spacing: .12em; font-size: .7rem; text-transform: uppercase; opacity: .85; }
.hero-chiffres { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.hero-chiffres div b { display: block; font-size: clamp(1.5rem, 7vw, 2.1rem); font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.hero-chiffres div b small { font-size: .45em; font-weight: 700; opacity: .8; letter-spacing: 0; margin-left: 2px; }
.hero-chiffres div span { font-size: .72rem; opacity: .85; text-transform: uppercase; letter-spacing: .06em; }
.hero-barres { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 5px; height: 42px; margin-top: 14px; }
.hero-barres i { flex: 1; border-radius: 5px 5px 2px 2px; background: rgba(255,255,255,.85); min-height: 3px; }
.hero-barres i.zero { background: rgba(255,255,255,.22); }
.hero-jours { position: relative; z-index: 1; display: flex; gap: 5px; margin-top: 4px; font-size: .62rem; opacity: .75; }
.hero-jours span { flex: 1; text-align: center; }

/* Tuiles */
.tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tuile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 3px; background: var(--verre); border: 1px solid var(--bord); border-radius: var(--rayon);
  padding: 16px; text-decoration: none; color: var(--txt); min-height: 112px; box-shadow: var(--ombre); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .15s ease, border-color .15s ease; }
.tuile:active { transform: scale(.97); }
.tuile::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(34,211,230,.18), transparent 70%); }
.tuile.grande { grid-column: 1 / -1; min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; padding: 18px; }
.tuile.grande span { flex-basis: 100%; padding-left: 58px; margin-top: -6px; }
.tuile.accent { background: linear-gradient(135deg, rgba(34,211,230,.35), rgba(11,122,138,.25)); border-color: rgba(34,211,230,.45); }
.tuile.accent::after { background: radial-gradient(circle, rgba(255,182,39,.35), transparent 70%); }
.tuile b { font-size: 1.04rem; font-weight: 800; }
.tuile span { color: var(--txt2); font-size: .8rem; position: relative; z-index: 1; }
.ico { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tuile .ico { width: 44px; height: 44px; padding: 9px; border-radius: 14px; background: rgba(34,211,230,.12); box-shadow: inset 0 0 0 1px rgba(34,211,230,.25); margin-bottom: 6px; }
.tuile.grande .ico { margin-bottom: 0; }
.tuile.accent .ico { stroke: #fff; background: var(--degrade-soleil); box-shadow: 0 6px 16px rgba(255,150,30,.4); }

/* Blocs */
.carte-bloc { background: var(--verre); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 16px; margin: 0 0 12px;
  box-shadow: var(--ombre); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lbl { display: block; font-size: .8rem; color: var(--txt2); margin: 14px 0 7px; font-weight: 600; }
.lbl:first-of-type { margin-top: 0; }
input, textarea, select { width: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--bord); background: rgba(0,0,0,.25); color: var(--txt); font: inherit; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34,211,230,.2); }
select option { background: #062a33; color: var(--txt); }
input[type=checkbox] { width: 22px; height: 22px; flex: none; accent-color: var(--accent); }
input[type=range] { padding: 0; accent-color: var(--accent); }
.tech-nom { margin-top: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: .9rem; }
.check.petit { margin: 0 0 0 auto; font-size: .78rem; align-items: center; }
.check.petit input { width: 18px; height: 18px; }
.note { color: var(--txt2); font-size: .8rem; margin: 10px 0 0; }
.vide { color: var(--txt2); text-align: center; padding: 26px 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.chip { border: 1px solid var(--bord); background: var(--fond2); color: var(--txt); border-radius: 999px; padding: 9px 15px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.chip.on { background: var(--degrade); border-color: transparent; color: #022127; font-weight: 800; box-shadow: 0 6px 16px rgba(34,211,230,.3); }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--fond2); border: 1px solid var(--bord); border-radius: 14px; }
.stepper button { width: 50px; height: 46px; border: 0; background: none; color: var(--accent); font-size: 1.6rem; cursor: pointer; }
.stepper span { min-width: 40px; text-align: center; font-weight: 900; font-size: 1.3rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 13px 18px; font: inherit; font-weight: 800;
  background: var(--degrade); color: #022127; cursor: pointer; text-decoration: none; margin: 4px 0; position: relative; overflow: hidden; transition: transform .12s; }
.btn:active { transform: scale(.97); }
.btn-ghost { background: var(--fond2); color: var(--txt); border: 1px solid var(--bord); }
.btn-danger { background: rgba(255,90,95,.1); color: var(--danger); border: 1px solid rgba(255,90,95,.5); }
.btn-petit { padding: 7px 12px; font-size: .82rem; border-radius: 10px; }
.btn-go { width: 100%; font-size: 1.2rem; padding: 19px; letter-spacing: .04em; box-shadow: 0 12px 30px rgba(34,211,230,.35), inset 0 1px 0 rgba(255,255,255,.35); }
.actions .btn { width: 100%; }
.depart-zone { position: sticky; bottom: 0; padding: 12px 0 calc(env(safe-area-inset-bottom) + 8px); background: linear-gradient(transparent, rgba(3,21,25,.95) 30%); }
.depart-zone .note { text-align: center; }

.gps-etat { font-size: .82rem; text-align: center; padding: 7px 12px; border-radius: 999px; margin: 0 auto 8px; width: fit-content; background: var(--fond2); font-weight: 600; }
.gps-etat::before, .lv-gps::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; background: currentColor; box-shadow: 0 0 8px currentColor; vertical-align: 1px; }
.gps-etat.bon, .lv-gps.bon { color: #7ee081; }
.gps-etat.moyen, .lv-gps.moyen { color: #ffd166; }
.gps-etat.mauvais, .lv-gps.mauvais { color: #ff8a80; }

.badge { background: rgba(255,182,39,.12); color: var(--accent2); border: 1px solid rgba(255,182,39,.35); border-radius: 14px; padding: 10px 14px; font-size: .84rem; margin-bottom: 12px; font-weight: 600; }
.alerte-bloc { background: rgba(255,90,95,.1); border: 1px solid rgba(255,90,95,.4); color: #ffd6d6; border-radius: 14px; padding: 11px 13px; font-size: .86rem; margin: 0 0 12px; }
.tag { display: inline-block; font-size: .68rem; padding: 3px 8px; border-radius: 999px; background: var(--fond2); color: var(--txt2); border: 1px solid var(--bord); margin-top: 4px; font-weight: 700; }
.tag.ok { color: #7ee081; border-color: rgba(126,224,129,.4); background: rgba(126,224,129,.08); }
.tag.attente { color: var(--accent2); border-color: rgba(255,182,39,.4); background: rgba(255,182,39,.08); }
.tag.ko { color: #ff8a80; border-color: rgba(255,138,128,.4); background: rgba(255,138,128,.08); }

.jour { margin-bottom: 16px; }
.jour-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 4px 8px; font-size: .88rem; }
.jour-tete a { font-size: .8rem; text-decoration: none; font-weight: 700; }
.ligne { display: flex; justify-content: space-between; gap: 10px; background: var(--verre); border: 1px solid var(--bord); border-radius: 16px; padding: 13px 14px; margin-bottom: 8px;
  text-decoration: none; color: var(--txt); position: relative; overflow: hidden; }
.ligne::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--degrade); }
.ligne b { font-weight: 800; }
.ligne .droite b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.ligne span { display: block; color: var(--txt2); font-size: .78rem; }
.ligne .droite { text-align: right; }
.hc { display: flex; align-items: center; gap: 6px; padding: 8px 0; border-top: 1px solid var(--bord); }
.hc > div { flex: 1; }
.hc span { display: block; color: var(--txt2); font-size: .8rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-bottom: 12px; }
.cell { background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid var(--bord); border-radius: 16px; padding: 12px; }
.cell b { display: block; font-size: 1.35rem; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.01em;
  background: linear-gradient(180deg, #ffffff, #bdeff5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cell b small { font-size: .62rem; font-weight: 700; color: var(--txt2); -webkit-text-fill-color: var(--txt2); margin-left: 3px; }
.cell span { font-size: .68rem; color: var(--txt2); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.verdict { background: linear-gradient(90deg, rgba(255,182,39,.12), rgba(255,182,39,.02)); border-left: 3px solid var(--accent2); padding: 11px 13px; border-radius: 10px; font-size: .9rem; }

/* Jauges circulaires (résultats) */
.jauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; }
.jauge { background: var(--verre); border: 1px solid var(--bord); border-radius: 18px; padding: 10px 6px 8px; text-align: center; }
.jauge svg { width: 100%; max-width: 120px; height: auto; display: block; margin: 0 auto; }
.jauge .j-val { font: 900 22px/1 -apple-system, system-ui, sans-serif; fill: #fff; }
.jauge .j-u { font: 700 9px/1 system-ui; fill: var(--txt2); letter-spacing: .06em; }
.jauge span { display: block; font-size: .68rem; color: var(--txt2); text-transform: uppercase; letter-spacing: .07em; font-weight: 800; margin-top: 2px; }

.cv { width: 100%; height: 220px; display: block; }
.cv.carte { height: 320px; border-radius: 16px; }
.legende { display: flex; align-items: center; gap: 8px; font-size: .76rem; color: var(--txt2); margin-top: 8px; flex-wrap: wrap; }
.legende i { width: 80px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, hsl(0,85%,50%), hsl(60,85%,50%), hsl(120,85%,45%)); }

.tableau { overflow-x: auto; border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th, td { text-align: left; padding: 9px 7px; border-bottom: 1px solid var(--bord); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
th { color: var(--txt2); font-weight: 800; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
td b { font-variant-numeric: tabular-nums; }
td small, th small { display: block; color: var(--txt2); font-size: .7rem; font-weight: 500; text-transform: none; letter-spacing: 0; }
tr.relache td { color: var(--txt2); }
table.cl tr td { border-bottom: 0; }
table.cl tr { background: var(--fond2); }
table.cl tr + tr td { border-top: 6px solid transparent; }
table.cl td:first-child { border-radius: 12px 0 0 12px; } table.cl td:last-child { border-radius: 0 12px 12px 0; }
table.cl .rang { font-weight: 900; color: var(--accent); width: 34px; font-size: 1.15rem; text-align: center; }
table.cl tr:nth-child(1) .rang { color: #ffd166; text-shadow: 0 0 12px rgba(255,209,102,.6); }
table.cl tr:nth-child(2) .rang { color: #dfe7ea; } table.cl tr:nth-child(3) .rang { color: #e3a46b; }
table.cl .val { text-align: right; }
table.cl .val b { font-size: 1.05rem; }
table.cl tr.moi { background: rgba(34,211,230,.16); box-shadow: inset 0 0 0 1px rgba(34,211,230,.5); }
.code { display: block; word-break: break-all; background: rgba(0,0,0,.3); padding: 10px; border-radius: 10px; font-size: .8rem; margin: 8px 0; }
.code.masque { filter: blur(5px); user-select: none; }
details summary { cursor: pointer; color: var(--txt2); font-weight: 600; }
details input { margin: 10px 0 6px; }

.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 22px); transform: translateX(-50%); background: rgba(255,255,255,.96); color: #062028; padding: 13px 18px;
  border-radius: 16px; font-weight: 700; z-index: 1100; max-width: calc(100% - 32px); box-shadow: 0 12px 30px rgba(0,0,0,.45); }

/* Écran de séance : compteur de vitesse */
.live { position: fixed; inset: 0; z-index: 500; color: #fff; display: flex; flex-direction: column; overflow-y: auto;
  padding: calc(env(safe-area-inset-top) + 62px) 16px calc(env(safe-area-inset-bottom) + 14px);
  background: radial-gradient(600px 420px at 50% 28%, rgba(34,211,230,.14), transparent 70%), linear-gradient(180deg, #021013, #000 70%); }
.live-top { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; position: absolute; top: calc(env(safe-area-inset-top) + 18px); left: 16px; right: 130px; }
.lv-mode { font-weight: 800; color: var(--accent); letter-spacing: .02em; }
.lv-gps { font-weight: 700; }
.lv-phase { text-align: center; font-weight: 900; font-size: 1.02rem; padding: 11px; border-radius: 16px; background: rgba(255,255,255,.08); letter-spacing: .05em; }
.lv-phase.effort, .lv-phase.tech { background: linear-gradient(135deg, #12a150, #0b6b2f); box-shadow: 0 8px 22px rgba(18,161,80,.35); }
.lv-phase.compte, .lv-phase.recup { background: linear-gradient(135deg, #ffb627, #c77700); color: #1e1300; box-shadow: 0 8px 22px rgba(255,150,30,.35); }
.lv-phase.relache { background: rgba(255,255,255,.1); }
.lv-cadran { position: relative; width: min(88vw, 400px, 52vh); aspect-ratio: 1 / .86; margin: 1.5vh auto 0; }
.lv-cadran canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lv-centre { position: absolute; left: 0; right: 0; top: 34%; text-align: center; }
.lv-big { text-align: center; font-size: clamp(64px, 21vw, 124px); font-weight: 900; line-height: .95; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.lv-big small { display: block; font-size: .16em; font-weight: 800; letter-spacing: .12em; color: var(--txt2); margin-top: 4px; }
.lv-big-l { text-align: center; color: var(--txt2); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin-top: 6px; }
.lv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 1vh; }
.lv-grid .cell { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); text-align: center; padding: 11px 6px; border-radius: 18px; }
.lv-grid .cell b { font-size: clamp(26px, 8.5vw, 42px); background: none; color: #fff; -webkit-text-fill-color: #fff; }
.lv-grid .cell b small { -webkit-text-fill-color: var(--txt2); }
.lv-grid .cell span { color: var(--txt2); font-size: .7rem; }
.lv-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; }
.lv-actions .btn { flex: 1; padding: 17px 8px; border-radius: 18px; }
.btn-stop { background: linear-gradient(135deg, #ff5a5f, #c81e24); color: #fff; flex: 2 !important; box-shadow: 0 10px 24px rgba(224,38,43,.35); }
.hold .hold-bar { position: absolute; inset: 0; width: 0; background: rgba(255,255,255,.35); }
.hold.appui .hold-bar { width: 100%; transition: width var(--d, 1200ms) linear; }
.hold > span:last-child { position: relative; }
.lockov { position: fixed; inset: 0; z-index: 900; background: rgba(0,0,0,.2); display: flex; align-items: flex-end; justify-content: center; padding: 0 16px calc(env(safe-area-inset-bottom) + 14px); touch-action: none; }
.lockov .btn { width: 100%; background: rgba(30,30,30,.95); color: #fff; padding: 18px; }
.live.blanc { background: #fff; color: #000; }
.live.blanc .lv-big small, .live.blanc .lv-big-l, .live.blanc .lv-grid .cell span { color: #333; -webkit-text-fill-color: #333; }
.live.blanc .lv-grid .cell { background: #f1f4f5; border-color: #d5dde0; }
.live.blanc .lv-grid .cell b { color: #000; -webkit-text-fill-color: #000; }
.live.blanc .lv-phase.relache { color: #000; }
.live.blanc .btn-ghost { color: #000; border-color: #999; background: #f1f4f5; }
[hidden] { display: none !important; }
.btn.large { width: 100%; margin-bottom: 12px; }

/* Analyse d'une séance */
.sommaire { position: sticky; top: 0; z-index: 20; display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; margin: 0 0 8px; background: linear-gradient(rgba(3,21,25,.97) 75%, transparent); scrollbar-width: none; }
.sommaire button { flex: none; border: 1px solid var(--bord); background: var(--verre-fort); color: var(--txt); border-radius: 999px; padding: 9px 15px; font: inherit; font-size: .84rem; font-weight: 700; }
.groupe { scroll-margin-top: 64px; }
.titre-groupe { color: #fff; font-size: 1.15rem; font-weight: 900; margin: 22px 0 12px; text-transform: none; letter-spacing: -.01em; }
.titre-groupe::before { width: 22px; height: 4px; border-radius: 4px; background: var(--degrade); }
.record-bloc { display: flex; gap: 12px; align-items: center; background: linear-gradient(135deg, rgba(255,182,39,.28), rgba(255,143,31,.08)); border: 1px solid rgba(255,182,39,.5);
  border-radius: 18px; padding: 14px; margin-bottom: 10px; box-shadow: 0 10px 26px rgba(255,150,30,.15); }
.record-bloc b { display: block; color: #ffd166; font-weight: 900; }
.record-bloc span { font-size: .82rem; color: #fbe8c0; }
.ico.petit { width: 34px; height: 34px; flex: none; stroke: #ffd166; }
.bilan { margin: 0; padding-left: 0; list-style: none; }
.bilan li { margin: 0 0 8px; padding-left: 22px; position: relative; }
.bilan li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.ligne-form { display: flex; gap: 8px; align-items: center; }
.ligne-form input, .ligne-form select { flex: 1; }
td.ok { color: #7ee081; }
td.ko { color: #ff8a80; }
#cl-type, #pg-indic { margin-bottom: 10px; }

.suivi-bandeau { position: fixed; z-index: 950; left: 12px; bottom: calc(env(safe-area-inset-bottom) + 12px); display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #f97316, #b54708); color: #fff; border-radius: 999px; padding: 6px 6px 6px 14px; font-weight: 900; font-size: .76rem; box-shadow: 0 8px 20px rgba(249,115,22,.4); }
.suivi-bandeau a { color: #fff; text-decoration: none; letter-spacing: .05em; }
.suivi-bandeau button { border: 0; border-radius: 999px; background: #fff; color: #b54708; font-weight: 900; padding: 7px 12px; }
body.en-seance .suivi-bandeau { display: none; }

/* Écran d'entrée immersif */
.entree { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: #fff; overflow: hidden;
  background: radial-gradient(circle at 82% 14%, #ffd166 0 56px, rgba(255,182,39,.35) 57px 72px, transparent 73px), linear-gradient(165deg, #16c2d6 0%, #0b6f80 42%, #04252d 100%); }
.entree::before, .entree::after { content: ""; position: absolute; left: -50%; width: 200%; height: 140px; bottom: -40px; opacity: .35;
  background: radial-gradient(60px 22px at 30px 0, transparent 44px, rgba(255,255,255,.7) 45px 48px, transparent 49px) 0 0/90px 40px repeat-x; animation: houle 7s linear infinite; }
.entree::after { bottom: -10px; opacity: .2; animation-duration: 11s; animation-direction: reverse; }
@keyframes houle { to { transform: translateX(90px); } }
.entree-centre { position: relative; z-index: 1; max-width: 420px; }
.entree img { border-radius: 28px; box-shadow: 0 18px 40px rgba(0,0,0,.4); animation: flotte 4s ease-in-out infinite; }
@keyframes flotte { 50% { transform: translateY(-8px) rotate(-2deg); } }
.entree small { display: block; margin-top: 22px; letter-spacing: .2em; font-weight: 900; color: #c9f6fb; font-size: .78rem; }
.entree h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); line-height: 1; margin: 10px 0; font-weight: 900; letter-spacing: -.03em; text-shadow: 0 6px 24px rgba(0,0,0,.25); }
.entree p { opacity: .92; letter-spacing: .08em; font-weight: 700; font-size: .85rem; }
.entree .btn-go { margin-top: 22px; font-size: 1.3rem; letter-spacing: .12em; padding: 21px; background: var(--degrade-soleil); color: #2a1600; box-shadow: 0 16px 40px rgba(255,140,0,.45), inset 0 1px 0 rgba(255,255,255,.5); }

.hero-infos { position: relative; overflow: hidden; border-radius: 24px; padding: 22px; margin-bottom: 12px; color: #fff;
  background: radial-gradient(circle at 105% -5%, #ffd166 0 46px, rgba(255,182,39,.3) 47px 56px, transparent 57px), linear-gradient(155deg, #13b5c9, #0b6f80 50%, #06323c); box-shadow: var(--ombre); }
.hero-infos small { color: #c9f6fb; font-weight: 900; letter-spacing: .12em; font-size: .7rem; text-transform: uppercase; }
.hero-infos h2 { color: #fff; text-transform: none; letter-spacing: -.02em; font-size: 1.7rem; font-weight: 900; margin: 6px 0; display: block; }
.hero-infos h2::before { display: none; }
.hero-infos p { margin: 0; opacity: .92; }
.recompenses-bloc { border-color: rgba(255,182,39,.45); background: linear-gradient(135deg, rgba(255,182,39,.2), rgba(255,182,39,.04)); }
.recompenses-bloc h2 { color: #ffd166; } .recompenses-bloc h2::before { background: #ffd166; box-shadow: 0 0 10px #ffd166; }
.sos-bloc { border-color: rgba(255,90,95,.45); background: linear-gradient(135deg, rgba(255,90,95,.2), rgba(255,90,95,.04)); }
.sos-bloc h2 { color: #ff8a80; } .sos-bloc h2::before { background: #ff5a5f; box-shadow: 0 0 10px #ff5a5f; }
.lien-bas { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.lien-bas .btn { flex: 1; }
.coach-zone { margin: 0 -4px; }
.coach-zone .vaa-coach { margin: 0; }

/* Installation sur l'écran d'accueil */
.installer { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; margin: 0 0 14px; padding: 14px 16px; border-radius: 20px; cursor: pointer; color: var(--txt); font: inherit;
  background: linear-gradient(135deg, rgba(255,182,39,.22), rgba(255,143,31,.06)); border: 1px solid rgba(255,182,39,.5); box-shadow: 0 10px 26px rgba(255,150,30,.15); }
.installer b { display: block; font-size: 1.02rem; font-weight: 900; color: #ffd166; }
.installer small { display: block; color: #fbe8c0; font-size: .8rem; }
.installer-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--degrade-soleil); box-shadow: 0 6px 16px rgba(255,150,30,.4); }
.installer-ico svg { width: 24px; height: 24px; fill: none; stroke: #2a1600; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn-installer-entree { width: 100%; margin-top: 12px; background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.4); padding: 15px; }
.modale { position: fixed; inset: 0; z-index: 1250; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(2,12,15,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modale-boite { width: 100%; max-width: 400px; border-radius: 26px; padding: 24px; text-align: center; color: var(--txt);
  background: linear-gradient(160deg, #0c4d59, #06262e); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.modale-boite img { border-radius: 16px; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.modale-boite h2 { justify-content: center; font-size: 1.15rem; color: #fff; text-transform: none; letter-spacing: 0; margin: 12px 0; }
.modale-boite h2::before { display: none; }
.modale-boite ol { text-align: left; padding-left: 22px; margin: 0 0 16px; }
.modale-boite li { margin: 0 0 10px; }
.modale-boite p { text-align: left; }
.code-reco { font: 900 2rem/1.1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .14em; text-align: center; margin: 6px 0 12px; color: #ffd166; text-shadow: 0 0 18px rgba(255,209,102,.35); }

.quitter { position: fixed; z-index: 1300; top: calc(env(safe-area-inset-top) + 10px); left: 12px; border: 1px solid var(--bord); background: rgba(3,21,25,.75); color: var(--txt);
  border-radius: 999px; padding: 9px 14px; font: 800 .8rem system-ui; letter-spacing: .04em; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; }
.main > .quitter { animation: none; }
.accueil-tete { margin-top: 48px; }
.suivi-depart { display: flex; gap: 12px; align-items: center; margin: 0 0 10px; padding: 12px 14px; border-radius: 16px; background: rgba(255,77,79,.12); border: 1px solid rgba(255,77,79,.45); cursor: pointer; }
.suivi-depart input { width: 24px; height: 24px; accent-color: #ff4d4f; }
.suivi-depart b { display: block; color: #ff8a80; font-weight: 900; }
.suivi-depart small { display: block; color: var(--txt2); font-size: .78rem; }
.question-coach { border-color: rgba(34,211,230,.5); background: linear-gradient(135deg, rgba(34,211,230,.18), rgba(34,211,230,.04)); }
.exclus { margin: 4px 0 12px; }
.exclus .check { margin: 6px 0; }

/* Verrouillage de l'app : le téléphone reste allumé (GPS actif) mais l'écran est noir et insensible aux gouttes */
.lv-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; flex: none; }
.lv-actions .btn-ghost { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px; font-size: .74rem; letter-spacing: -.01em; }
.lv-actions .btn-ghost .lv-ico { width: 22px; height: 22px; }
.lv-emo { font-size: 1.25rem; line-height: 22px; }
.lv-actions .btn-stop { flex: 1.35; }
#lv-son.off { background: #ff8f1f; border-color: #ff8f1f; color: #241300; }
.lockov { background: #000; flex-direction: column; justify-content: space-between; align-items: stretch; padding-top: calc(env(safe-area-inset-top) + 66px); color: #9fb3bf; }
.lockov-msg { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px solid rgba(255,182,39,.45); color: #ffb627; border-radius: 16px; padding: 10px 14px; max-width: 420px; width: 100%; margin: 0 auto; }
.lockov-msg svg { width: 24px; height: 24px; fill: none; stroke: #ffb627; stroke-width: 2.4; stroke-linecap: round; }
.lockov-msg b { font-size: 1rem; font-weight: 900; }
.lockov-msg span { flex-basis: 100%; font-size: .8rem; color: #8a9aa5; }
.lk-live { text-align: center; max-width: 460px; width: 100%; margin: 0 auto; }
.lk-phase { font-weight: 800; letter-spacing: .04em; font-size: .9rem; min-height: 1.2em; color: #ffb627; }
.lk-big { font-size: clamp(4.5rem, 26vw, 8rem); font-weight: 900; line-height: 1; color: #d8e6ee; font-variant-numeric: tabular-nums; }
.lk-big small { font-size: 1.1rem; margin-left: 6px; color: #8a9aa5; }
.lk-big-l { font-size: .85rem; margin-bottom: 12px; }
.lk-grid { opacity: .8; }
.lockov .btn { width: 100%; background: #151a1e; color: #c9d6de; border: 1px solid #2a333a; padding: 18px; font-weight: 800; }
