/* MrCoach — identité visuelle v3 (Imed 10/11/2026) : bleu nuit + jaune balle + neutres chauds, police Inter.
   Grille 4/8 px, coins 10/16/22 px, cibles tactiles ≥ 44 px, champs ≥ 16 px (pas de zoom iOS), mode sombre automatique. */

/* Inter (Rasmus Andersson, licence SIL OFL 1.1) — variable 100–900, sous-ensemble latin (français complet). */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/inter.woff2") format("woff2-variations"), url("/inter.woff2") format("woff2");
}

:root {
  --nuit: #0B1D3A; --nuit-2: #17345F; --balle: #C8F135;
  --fond: #F5F4F0; --carte: #FFFFFF; --carte-2: #F1EFE9; --texte: #0E1A2B; --doux: #5A616D; --pale: #686E79; --trait: #E6E2DA;
  --accent: #0B1D3A; --sur-accent: #FFFFFF; --accent-doux: #E5E9F1; --lien: #1D4A8A; --focus: #1D4A8A;
  --vert: #0E7A4E; --vert-bg: #E0F3E9; --ambre: #965600; --ambre-bg: #FCEED6; --rouge: #BF3329; --rouge-bg: #FCE6E3;
  --ombre: 0 1px 2px rgba(14, 26, 43, .05), 0 6px 20px -4px rgba(14, 26, 43, .08);
  --ombre-haute: 0 2px 6px rgba(14, 26, 43, .08), 0 18px 40px -8px rgba(14, 26, 43, .22);
  --r-s: 10px; --r: 16px; --r-l: 22px;
  --vite: 180ms; --courbe: cubic-bezier(.2, .8, .2, 1);
  --haut: env(safe-area-inset-top, 0px); --bas: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #08101D; --carte: #111B2B; --carte-2: #182438; --texte: #EDF1F6; --doux: #A0AABA; --pale: #8A94A4; --trait: #223049;
    --accent: #C8F135; --sur-accent: #0B1D3A; --accent-doux: #22311A; --lien: #C8F135; --focus: #C8F135;
    --vert: #4CD99A; --vert-bg: #0E2C21; --ambre: #F2B84E; --ambre-bg: #33260F; --rouge: #FF8A7E; --rouge-bg: #3A1A19;
    --ombre: 0 0 0 1px rgba(255, 255, 255, .045); --ombre-haute: 0 0 0 1px rgba(255, 255, 255, .06), 0 18px 40px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--fond); color: var(--texte); }
body {
  font: 16px/1.45 "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  letter-spacing: -.011em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
/* Appli, pas page web : un appui long ne doit jamais sélectionner de mots ni ouvrir la bulle Copier/Chercher d'iOS
   (vu par Imed le 10/11 sur le menu d'un message). Seuls les champs de saisie et .selectionnable restent sélectionnables. */
html { -webkit-tap-highlight-color: transparent; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, [contenteditable="true"], .selectionnable { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
img { -webkit-user-drag: none; }
#actions.verrou { pointer-events: none; }
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
a { color: inherit; }
svg { flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.doux { color: var(--doux); }
.petit { font-size: 13px; line-height: 1.45; }
.centre { text-align: center; }
.num, .heure, .gros, .barre-val { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.num { white-space: nowrap; }
.err { min-height: 20px; color: var(--rouge); font-size: 14px; font-weight: 500; margin: 8px 2px; }
.err:empty { min-height: 8px; margin: 4px 0; }

/* ---------- logo ---------- */
.marque-icone { display: inline-grid; place-items: center; overflow: hidden; background: linear-gradient(150deg, var(--nuit-2), var(--nuit) 70%); border-radius: 23%; flex: none; }
.marque-icone svg { width: 100%; height: 100%; }
.marque-icone.s { width: 32px; height: 32px; border-radius: 9px; }
.marque-icone.l { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 14px 32px rgba(0, 0, 0, .35); }
.marque-icone.xl { width: 96px; height: 96px; border-radius: 26px; }
.marque-mini { display: flex; align-items: center; gap: 10px; }
.mot { font-weight: 800; font-size: 19px; letter-spacing: -.035em; }
.marque-mini.claire .mot { color: #fff; }
@media (prefers-color-scheme: dark) { .marque-icone.s { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); } }

.demarrage { position: fixed; inset: 0; display: grid; place-items: center; background: var(--fond); z-index: 100; }
.demarrage .marque-icone { animation: respire 1.6s ease-in-out infinite; }
@keyframes respire { 50% { transform: scale(.94); opacity: .85; } }

/* ---------- boutons / champs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px;
  border-radius: 14px; font-weight: 650; font-size: 16px; letter-spacing: -.01em; text-decoration: none; text-align: center;
  transition: transform var(--vite) var(--courbe), background-color var(--vite), opacity var(--vite), box-shadow var(--vite);
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.principal { background: var(--accent); color: var(--sur-accent); box-shadow: 0 1px 2px rgba(11, 29, 58, .2), 0 6px 16px -6px rgba(11, 29, 58, .5); }
.btn.principal:active { background: var(--nuit-2); }
.btn.vert { background: var(--vert); color: #fff; }
.btn.rouge-plein { background: var(--rouge); color: #fff; }
.btn.contour { border: 1.5px solid var(--trait); background: var(--carte); color: var(--texte); }
.btn.contour:active, .btn.rouge:active { background: var(--carte-2); }
.btn.rouge { border: 1.5px solid color-mix(in srgb, var(--rouge) 45%, var(--trait)); color: var(--rouge); background: var(--carte); }
.btn.large { width: 100%; }
.btn.lien { min-height: 44px; padding: 0 8px; color: var(--lien); font-weight: 600; font-size: 15px; box-shadow: none; }
@media (prefers-color-scheme: dark) {
  .btn.principal { box-shadow: 0 6px 18px -8px rgba(200, 241, 53, .55); }
  .btn.principal:active { background: #B5DD27; }
  .btn.vert { color: #06231A; }
  .btn.rouge-plein { color: #2A0A07; }
}
.champ {
  display: block; width: 100%; min-height: 52px; border: 1.5px solid var(--trait); border-radius: 14px; padding: 13px 15px;
  background: var(--carte); font-size: 17px; outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color var(--vite), box-shadow var(--vite);
}
.champ::placeholder { color: var(--pale); }
.champ:focus { border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 14%, transparent); }
textarea.champ { min-height: 96px; resize: vertical; line-height: 1.45; }
input[type="date"].champ, input[type="time"].champ { min-height: 52px; text-align: left; }
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; }
.etiquette { display: block; margin: 20px 2px 8px; font-size: 13px; font-weight: 650; color: var(--doux); letter-spacing: .005em; }
.ligne-btns { display: flex; gap: 12px; }
.ligne-btns > * { flex: 1; min-width: 0; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce {
  min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1.5px solid var(--trait); background: var(--carte);
  font-weight: 600; font-size: 15px; white-space: nowrap; transition: background-color var(--vite), color var(--vite), border-color var(--vite), transform var(--vite);
}
.puce:active { transform: scale(.96); }
.puce.actif { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }

/* ---------- écrans d'entrée (connexion, inscription, e-mails) ---------- */
.ecran-entree { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding-bottom: calc(32px + var(--bas)); }
.entree-haut {
  position: relative; overflow: hidden; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(44px + var(--haut)) 24px 72px; color: #fff;
  background: radial-gradient(90% 60% at 90% -10%, rgba(200, 241, 53, .09), transparent 60%), linear-gradient(165deg, #1A3A68 0%, #0B1D3A 62%, #07142A 100%);
}
.entree-haut.compact { padding: calc(20px + var(--haut)) 24px 64px; align-items: center; }
.lignes-terrain { position: absolute; left: 50%; bottom: -96px; width: 560px; height: 300px; transform: translateX(-50%); color: rgba(255, 255, 255, .09); pointer-events: none; }
.entree-haut.compact .lignes-terrain { bottom: -190px; }
.entree-haut > *:not(.lignes-terrain) { position: relative; }
.entree-haut h1 { margin: 18px 0 4px; font-size: 38px; font-weight: 800; letter-spacing: -.045em; line-height: 1.05; }
.accroche { margin: 0; font-size: 16px; color: rgba(255, 255, 255, .78); }
.auth-boite {
  position: relative; width: calc(100% - 32px); max-width: 420px; margin-top: -44px; padding: 20px 20px 16px; text-align: center;
  background: var(--carte); border-radius: var(--r-l); box-shadow: var(--ombre-haute);
  animation: glisse 260ms var(--courbe);
}
@keyframes glisse { from { transform: translateY(10px); } }
.aide { margin: 6px 2px 0; font-size: 13px; color: var(--doux); }
.auth-boite form { text-align: left; }
.auth-boite h1 { margin: 8px 0 12px; font-size: 26px; font-weight: 750; letter-spacing: -.03em; line-height: 1.15; }
.auth-boite > p { margin: 0 0 16px; }
.pictogramme { display: inline-grid; place-items: center; width: 60px; height: 60px; margin-top: 8px; border-radius: 18px; background: var(--accent-doux); color: var(--accent); }
.pictogramme svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) { .pictogramme { background: rgba(200, 241, 53, .1); } }
.segment { display: flex; background: var(--carte-2); border-radius: 13px; padding: 4px; margin: 4px 0 4px; position: relative; }
.segment button { flex: 1; min-height: 44px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--doux); transition: background-color var(--vite), color var(--vite), box-shadow var(--vite); }
.segment button.actif { background: var(--carte); color: var(--texte); box-shadow: 0 1px 2px rgba(14, 26, 43, .08), 0 2px 8px rgba(14, 26, 43, .06); }
@media (prefers-color-scheme: dark) { .segment { background: #0B1424; } .segment button.actif { background: var(--carte-2); box-shadow: none; } }
.choix-role { display: flex; gap: 12px; }
.choix-role button {
  flex: 1; min-height: 64px; border-radius: 16px; border: 1.5px solid var(--trait); background: var(--carte); font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: all var(--vite);
}
.choix-role svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.choix-role button:active { transform: scale(.97); }
.choix-role button.actif { border-color: var(--accent); background: var(--accent-doux); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
#auth-ok { margin-top: 4px; }
.centre-bloc { display: flex; margin: 8px auto 0; }
.gros-texte { font-size: 17px; line-height: 1.5; margin: 0 0 8px !important; overflow-wrap: anywhere; }
.ok-msg { min-height: 0; color: var(--vert); font-size: 15px; font-weight: 600; margin: 0 2px 8px !important; }
.ok-msg:empty, #att-err:empty { margin: 0 !important; min-height: 0; }
#v-attente .auth-boite .doux.petit { margin: 8px 0 16px; }
#att-modifier { margin-top: 12px; }
#f-att-email { margin-top: 4px; }
#f-att-email .btn, #f-oubli .btn, #f-reinit .btn { margin-top: 12px; }
#f-oubli > p.doux { margin: 0 0 4px; text-align: center; }
#oubli-fait { margin-bottom: 8px; }
.bandeau { background: var(--accent-doux); color: var(--accent); border-radius: 14px; padding: 12px 16px; margin: 0 0 16px; font-weight: 600; font-size: 15px; text-align: left; }
@media (prefers-color-scheme: dark) { .bandeau { background: rgba(200, 241, 53, .1); } }
/* lien d'invitation d'un coach : « Invitation de … » + deux choix (v4, 10/11/2026) */
.invit-carte { margin: 0 0 16px; padding: 18px 16px 16px; border-radius: 18px; background: var(--accent-doux); text-align: center; }
.invit-carte .invit-de { margin: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); }
.invit-carte .invit-coach { margin: 4px 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: var(--texte); overflow-wrap: anywhere; }
.invit-carte > p.doux { margin: 0 0 4px; font-size: 15px; }
.invit-carte .btn.large { margin-top: 12px; }
.invit-carte .btn.contour { background: var(--carte); }
.invit-carte.dans-feuille { margin-top: 12px; }
.invit-carte.dans-feuille .gros-texte { margin: 12px 0 4px !important; font-weight: 700; }
@media (prefers-color-scheme: dark) { .invit-carte { background: rgba(200, 241, 53, .08); } }
.sans-invit { padding: 4px 4px 12px; text-align: center; }
.sans-invit .gros-texte { margin: 14px 0 0 !important; }

/* ---------- structure de l'appli ---------- */
#v-app { padding: 0 16px calc(112px + var(--bas)); max-width: 640px; margin: 0 auto; }
.entete {
  position: sticky; top: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between;
  margin: 0 -16px; padding: calc(10px + var(--haut)) 20px 10px; min-height: calc(56px + var(--haut));
  background: color-mix(in srgb, var(--fond) 86%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
}
.entete .mot { font-size: 18px; }
.hors-ligne { margin: 4px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--ambre-bg); color: var(--ambre); font-size: 14px; font-weight: 600; text-align: center; }
#contenu.entre { animation: apparait 220ms var(--courbe); }
@keyframes apparait { from { opacity: .4; transform: translateY(6px); } }
.surtitre { margin: 12px 4px 0; font-size: 14px; font-weight: 600; color: var(--doux); }
h1.titre { margin: 2px 4px 16px; font-size: 32px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.titre-sec { display: flex; align-items: center; justify-content: space-between; margin: 28px 4px 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); }
.carte { background: var(--carte); border-radius: var(--r); box-shadow: var(--ombre); }
.carte + .carte { margin-top: 12px; }
.vide { padding: 28px 24px 24px; text-align: center; color: var(--doux); font-size: 15px; line-height: 1.5; }
.vide .illu { display: block; width: 112px; height: 84px; margin: 0 auto 12px; }
.vide b { color: var(--texte); }
.vide .btn { margin-top: 16px; }

/* barre d'onglets façon iOS */
.barre {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center;
  background: color-mix(in srgb, var(--carte) 82%, transparent); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border-top: .5px solid color-mix(in srgb, var(--texte) 14%, transparent); padding: 6px 8px calc(4px + var(--bas));
}
.barre button { flex: 1; max-width: 140px; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 50px; padding-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0; color: var(--pale); position: relative; transition: color var(--vite); }
.barre button svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--vite) var(--courbe); }
.barre button:active svg { transform: scale(.88); }
.barre button.actif { color: var(--accent); }
.barre button.actif svg .plein { fill: currentColor; fill-opacity: .14; }
.pastille { position: absolute; top: 0; left: calc(50% + 7px); min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: #D92D20; color: #fff; font-size: 11.5px; font-weight: 700; line-height: 19px; text-align: center; box-shadow: 0 0 0 2px var(--carte); font-variant-numeric: tabular-nums; }
@media (min-width: 700px) {
  .barre { left: 50%; right: auto; bottom: 16px; transform: translateX(-50%); width: 440px; border-radius: 22px; border: .5px solid color-mix(in srgb, var(--texte) 12%, transparent); box-shadow: var(--ombre-haute); padding: 6px 8px; }
}
.plus {
  position: fixed; right: max(20px, calc(50% - 300px)); bottom: calc(84px + var(--bas)); z-index: 21; width: 60px; height: 60px; border-radius: 20px;
  display: grid; place-items: center; background: linear-gradient(150deg, var(--nuit-2), var(--nuit)); color: var(--balle);
  box-shadow: 0 2px 4px rgba(11, 29, 58, .2), 0 12px 28px -6px rgba(11, 29, 58, .55); transition: transform var(--vite) var(--courbe);
}
.plus svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.plus:active { transform: scale(.92); }
@media (prefers-color-scheme: dark) { .plus { background: var(--balle); color: var(--nuit); box-shadow: 0 10px 28px -8px rgba(200, 241, 53, .5); } }
@media (min-width: 700px) { .plus { bottom: 96px; } }

/* ---------- avatars à initiales ---------- */
.av {
  position: relative; display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--av, #1D4ED8); color: #fff; font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .01em;
}
.av.m { width: 40px; height: 40px; font-size: 14px; }
.av.l { width: 64px; height: 64px; font-size: 22px; letter-spacing: -.01em; }
.av .pt { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--carte); }
.av .pt svg { width: 10px; height: 10px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pt.accepte { background: var(--vert); } .pt.attente { background: var(--ambre); } .pt.refuse { background: var(--rouge); }
@media (prefers-color-scheme: dark) { .av .pt svg { stroke: #08101D; } }

/* ---------- séances ---------- */
.segment.vues { margin: 0 0 4px; }
.legende { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 12px 4px 0; font-size: 13px; color: var(--doux); }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.legende i { width: 8px; height: 8px; border-radius: 50%; }
.jour { display: flex; align-items: baseline; gap: 8px; margin: 24px 4px 10px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.jour .badge-jour { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; background: var(--balle); color: var(--nuit); }
.seance { display: block; width: 100%; text-align: left; padding: 16px; transition: background-color var(--vite); }
button.seance:active { background: var(--carte-2); }
.carte > .seance:first-child { border-radius: var(--r) var(--r) 0 0; }
.carte > .seance:last-child { border-radius: 0 0 var(--r) var(--r); }
.carte > .seance:only-child { border-radius: var(--r); }
.seance + .seance { border-top: 1px solid var(--trait); }
.seance-haut { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.heure { font-size: 24px; font-weight: 750; letter-spacing: -.035em; line-height: 1.15; white-space: nowrap; }
.heure .fin { font-size: 16px; font-weight: 550; color: var(--doux); letter-spacing: -.015em; }
.duree { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 8px; background: var(--carte-2); color: var(--doux); font-size: 13px; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lieu { display: flex; align-items: center; gap: 6px; color: var(--doux); font-size: 14px; margin-top: 6px; }
.lieu svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.joueurs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.etat { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 650; white-space: nowrap; }
.etat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.etat.attente { background: var(--ambre-bg); color: var(--ambre); }
.etat.accepte { background: var(--vert-bg); color: var(--vert); }
.etat.refuse { background: var(--rouge-bg); color: var(--rouge); }
/* joueur dans une carte de séance du coach : avatar + pastille d'état + nom */
.etat.qui { padding: 3px 12px 3px 3px; gap: 8px; background: var(--carte-2); color: var(--texte); font-weight: 600; max-width: 100%; }
.etat.qui::before { display: none; }
.etat.qui > span { overflow: hidden; text-overflow: ellipsis; }
.etat.qui .av { width: 28px; height: 28px; font-size: 11px; }
.etat.qui .av .pt { width: 13px; height: 13px; right: -2px; bottom: -2px; box-shadow: 0 0 0 2px var(--carte-2); }
.etat.qui .av .pt svg { width: 8px; height: 8px; }
.etat.qui.refuse > span { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--rouge) 60%, transparent); color: var(--doux); }
.cause { font-size: 14px; color: var(--rouge); margin-top: 4px; font-style: italic; }
.note { margin-top: 12px; padding: 10px 12px; background: var(--carte-2); border-left: 3px solid var(--balle); border-radius: 4px 10px 10px 4px; font-size: 14px; white-space: pre-wrap; }
@media (prefers-color-scheme: light) { .note { border-left-color: var(--nuit); } }

/* demande à accepter (joueur) */
.demande { padding: 20px; position: relative; overflow: hidden; }
.demande::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--balle), #E6F98F); }
.demande .qui { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--doux); }
.demande .qui b { color: var(--texte); font-weight: 650; }
.demande .quand-jour { margin-top: 16px; font-size: 15px; font-weight: 650; color: var(--doux); }
.demande .quand { font-size: 30px; font-weight: 800; letter-spacing: -.045em; line-height: 1.1; margin: 2px 0 4px; font-variant-numeric: tabular-nums; }
.demande .details { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.demande .details span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--carte-2); font-size: 14px; font-weight: 550; color: var(--texte); }
.demande .details svg { width: 15px; height: 15px; fill: none; stroke: var(--doux); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.demande .ligne-btns { margin-top: 20px; }
.demande .btn { min-height: 56px; font-size: 17px; }
.demande .serie { margin-top: 12px; width: 100%; }

/* nouveautés et notifications */
.avis { padding: 4px 16px; }
.avis-l { display: flex; gap: 12px; padding: 12px 0; font-size: 15px; line-height: 1.4; }
.avis-l + .avis-l { border-top: 1px solid var(--trait); }
.avis-l::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--accent); }
@media (prefers-color-scheme: light) { .avis-l::before { background: #2563EB; } }
.avis-l small { display: block; margin-top: 2px; color: var(--doux); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.titre-sec .btn.lien { min-height: 32px; text-transform: none; letter-spacing: -.01em; font-size: 15px; padding: 0 4px; }
.info-notif { display: flex; gap: 14px; padding: 16px; margin-top: 4px; }
.info-notif .ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-doux); color: var(--accent); }
@media (prefers-color-scheme: dark) { .info-notif .ico { background: rgba(200, 241, 53, .1); } }
.info-notif .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.info-notif .txt { flex: 1; min-width: 0; }
.info-notif p { margin: 0 0 8px; font-size: 15px; line-height: 1.45; }
.info-notif p.petit { font-size: 13.5px; }
.info-notif .btn.lien { margin-left: -8px; }
.info-notif .btn.large { margin-top: 4px; }
/* aide « Recevoir les notifications » (carte de notification + feuille avec les pages du PDF) */
.notif-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 4px; }
.info-notif .notif-actions .btn.lien { margin-left: 0; }
.btn.aide-btn { min-height: 40px; padding: 0 14px; font-size: 15px; border-radius: 12px; border: 1.5px solid var(--trait); background: var(--carte); color: var(--texte); }
.btn.aide-btn:active { background: var(--carte-2); }
.info-notif .btn.aide-lien { display: flex; margin-top: 2px; min-height: 40px; font-size: 14.5px; }
.aide-barre { position: sticky; top: -4px; z-index: 1; display: flex; align-items: center; gap: 8px; margin: 0 -16px 10px; padding: 8px 16px; background: var(--fond); }
.aide-barre .puce { min-height: 36px; }
.aide-barre .btn.lien { margin-left: auto; min-height: 36px; font-size: 14.5px; }
.aide-pages img { display: block; width: 100%; height: auto; margin: 0 0 12px; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(11, 29, 58, .08), 0 6px 18px -8px rgba(11, 29, 58, .25); }

/* ---------- statistiques ---------- */
.periode { flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 2px 0 4px; }
.periode .puce { min-height: 40px; padding: 0 13px; font-size: 14.5px; }
.periode::-webkit-scrollbar { display: none; }
.periode-texte { margin: 4px 4px 12px; }
.dates-libres { display: flex; gap: 8px; align-items: center; margin: 4px 0 12px; }
.dates-libres input { flex: 1; min-width: 0; min-height: 48px; padding: 8px 10px; font-size: 16px; }
.dates-libres .btn { min-height: 48px; padding: 0 16px; }
.totaux { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.totaux.carte { background: none; box-shadow: none; }
.tuile { padding: 16px; background: var(--carte); border-radius: var(--r); box-shadow: var(--ombre); min-width: 0; }
.tuile.forte { background: linear-gradient(150deg, var(--nuit-2), var(--nuit) 75%); color: #fff; box-shadow: 0 10px 28px -12px rgba(11, 29, 58, .6); }
.tuile .tuile-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--carte-2); color: var(--doux); margin-bottom: 12px; }
.tuile.forte .tuile-ico { background: rgba(200, 241, 53, .16); color: var(--balle); }
.tuile .tuile-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gros { font-size: 34px; font-weight: 800; letter-spacing: -.045em; line-height: 1.05; white-space: nowrap; }
.gros small { font-size: 18px; font-weight: 700; letter-spacing: -.02em; margin-left: 2px; }
.tuile .doux { font-size: 14px; margin-top: 4px; }
.tuile.forte .doux { color: rgba(255, 255, 255, .72); }
@media (prefers-color-scheme: dark) { .tuile.forte { background: linear-gradient(150deg, #1D3D6B, #12284A 75%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); } }
.graphe { margin-top: 12px; padding: 16px 16px 12px; }
.graphe-titre { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 15px; font-weight: 700; }
.graphe-titre span { font-size: 13px; font-weight: 500; color: var(--doux); }
.barres { display: flex; align-items: flex-end; gap: 6px; height: 132px; padding-top: 20px; border-bottom: 1px solid var(--trait); }
.barres > div { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.barres i { display: block; width: 100%; max-width: 34px; min-height: 2px; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--accent) 22%, var(--carte)); transition: height 300ms var(--courbe); }
.barres > div.haut i { background: var(--accent); }
.barres > div.zero i { background: var(--trait); }
.barre-val { position: absolute; font-size: 11.5px; font-weight: 700; color: var(--texte); white-space: nowrap; transform: translateY(-4px); }
.axe { display: flex; gap: 6px; margin-top: 6px; }
.axe span { flex: 1; min-width: 0; text-align: center; font-size: 11px; color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: clip; font-variant-numeric: tabular-nums; }
.ligne { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 16px; text-align: left; transition: background-color var(--vite); }
button.ligne:active { background: var(--carte-2); }
.carte > .ligne:first-child { border-radius: var(--r) var(--r) 0 0; }
.carte > .ligne:last-child { border-radius: 0 0 var(--r) var(--r); }
.carte > .ligne:only-child { border-radius: var(--r); }
.ligne + .ligne { border-top: 1px solid var(--trait); }
.ligne .milieu { flex: 1; min-width: 0; }
.ligne .nom { font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.ligne .jauge { height: 6px; margin-top: 8px; border-radius: 3px; background: var(--carte-2); overflow: hidden; }
.ligne .jauge i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.ligne .chiffres { text-align: right; font-size: 13px; color: var(--doux); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ligne .chiffres b { color: var(--texte); font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.chevron { width: 18px; height: 18px; fill: none; stroke: var(--pale); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.inviter { margin: 0 0 16px; }

/* squelettes de chargement */
.squelette { position: relative; overflow: hidden; background: var(--carte-2); border-radius: 8px; }
.squelette::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--carte) 70%, transparent), transparent); animation: brille 1.3s infinite; }
@keyframes brille { to { transform: translateX(100%); } }
.sq-ligne { height: 14px; margin: 8px 0; }
.sq-tuile { height: 116px; border-radius: var(--r); }
.sq-carte { height: 180px; border-radius: var(--r); margin-top: 12px; }

/* ---------- formulaire de séance ---------- */
.coche { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; width: 100%; text-align: left; font-size: 16px; font-weight: 550; transition: background-color var(--vite); }
.coche:active { background: var(--carte-2); }
.coche + .coche { border-top: 1px solid var(--trait); }
.coche > span:first-of-type { flex: 1; min-width: 0; }
.coche i.case-c { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--pale); flex: none; display: flex; align-items: center; justify-content: center; transition: all var(--vite); }
.coche.actif i.case-c { background: var(--accent); border-color: var(--accent); }
.coche.actif i.case-c::after { content: ""; width: 6px; height: 11px; border: solid var(--sur-accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.liste-coches { max-height: 300px; overflow-y: auto; }
.coche.actif { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.btn.lien.petit-lien { display: flex; margin: 4px 0 0 auto; min-height: 40px; font-size: 14px; }
.sans-joueur { padding: 20px 18px 18px; text-align: center; }
.sans-joueur .illu { display: block; width: 96px; height: 72px; margin: 0 auto 8px; }
.sans-joueur p { margin: 0 0 4px; font-size: 16px; font-weight: 600; line-height: 1.45; }
.feuille-corps .sans-joueur .btn.large { margin-top: 14px; }
#f-ok:disabled { opacity: .4; }
/* « Ajouter un joueur » */
.bloc-ajout { padding: 16px; }
.bloc-ajout .aide { margin-top: 10px; }
.changer-lien { margin-top: 16px; text-align: center; }
.changer-lien .aide { margin-top: 0; }
.ligne.invite { gap: 10px; padding-right: 8px; }
.ligne.invite .btn.lien { padding: 0 6px; font-size: 14px; }
.ligne.invite .btn.lien.doux { color: var(--doux); }
.ico-rond { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--carte-2); color: var(--doux); flex: none; }
.ico-rond svg { width: 18px; height: 18px; }
.ligne.retire { opacity: .7; }
.btn.lien.rouge-txt { color: var(--rouge); }
.btn.arme { background: var(--rouge) !important; color: #fff !important; border-color: var(--rouge) !important; }
.btn.lien.arme { border-radius: 10px; padding: 0 12px; }
.resume { margin: 20px 2px 8px; font-weight: 700; font-size: 17px; text-align: center; line-height: 1.45; font-variant-numeric: tabular-nums; }
#f-resume:not(:empty) { margin: 24px 0 8px; padding: 14px 16px; border-radius: 14px; background: var(--accent-doux); color: var(--accent); }
#f-resume .doux { color: inherit; opacity: .8; font-weight: 550; }
@media (prefers-color-scheme: dark) { #f-resume:not(:empty) { background: rgba(200, 241, 53, .1); } }
.alerte { background: var(--ambre-bg); color: var(--ambre); border-radius: 14px; padding: 14px 16px; margin: 12px 0; font-size: 15px; }
.alerte ul { margin: 6px 0 10px; padding-left: 18px; }
.case { display: flex; align-items: center; gap: 12px; min-height: 48px; margin-top: 16px; font-size: 16px; font-weight: 600; }
.case input { width: 24px; height: 24px; accent-color: var(--accent); }
.rangee { display: flex; gap: 12px; }
.rangee > * { flex: 1; min-width: 0; }
.durees { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.durees .puce { padding: 0 6px; border-radius: 12px; }

/* détail d'une séance (feuille) */
.entete-seance { text-align: center; padding: 12px 0 4px; }
.entete-seance .jour-l { font-size: 15px; font-weight: 650; color: var(--doux); }
.entete-seance .heure { font-size: 34px; display: block; margin: 2px 0 8px; }
.entete-seance .heure .fin { font-size: 22px; }
.entete-seance .infos { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.entete-seance .infos span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--carte); font-size: 14px; font-weight: 550; box-shadow: var(--ombre); }
.entete-seance .infos svg { width: 15px; height: 15px; fill: none; stroke: var(--doux); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- feuille ---------- */
.voile { position: fixed; inset: 0; background: rgba(4, 10, 20, .42); z-index: 40; animation: fondu var(--vite) ease-out; }
@keyframes fondu { from { opacity: 0; } }
.feuille {
  position: fixed; left: 0; right: 0; bottom: 0; max-height: calc(100dvh - 40px - var(--haut)); display: flex; flex-direction: column;
  background: var(--fond); border-radius: 24px 24px 0 0; z-index: 41; max-width: 640px; margin: 0 auto;
  box-shadow: 0 -10px 40px rgba(4, 10, 20, .18); animation: monte 240ms var(--courbe);
}
@keyframes monte { from { transform: translateY(40px); opacity: .4; } }
.poignee { width: 36px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--texte) 18%, transparent); margin: 8px auto 0; flex: none; }
.feuille-haut { display: grid; grid-template-columns: 88px 1fr 88px; align-items: center; padding: 4px 12px 8px; }
.feuille-haut h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.02em; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fermer { justify-self: start; color: var(--lien); font-weight: 600; font-size: 16px; min-height: 44px; padding: 0 8px; border-radius: 10px; }
.fermer:active { background: var(--carte-2); }
.feuille-corps { overflow-y: auto; padding: 4px 16px calc(28px + var(--bas)); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.feuille-corps > p:first-child:not(.resume) { margin-top: 4px; }
.feuille-corps .btn.large { margin-top: 12px; }
.feuille-corps .titre-sec:first-child { margin-top: 12px; }
.lien-texte { word-break: break-all; padding: 14px 16px; font-size: 14px; user-select: all; -webkit-user-select: all; font-variant-numeric: tabular-nums; color: var(--lien); font-weight: 550; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(160px + var(--bas)); transform: translateX(-50%); z-index: 60; width: max-content; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 16px; background: #0E1A2B; color: #fff;
  font-size: 15px; font-weight: 550; line-height: 1.35; box-shadow: 0 12px 32px -6px rgba(4, 10, 20, .4); animation: toast 240ms var(--courbe);
}
.toast::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--balle) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%230B1D3A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
@media (prefers-color-scheme: dark) { .toast { background: #EDF1F6; color: #0E1A2B; } }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 12px) scale(.98); } }

/* ---------- compte ---------- */
.profil { display: flex; align-items: center; gap: 16px; padding: 20px 16px; }
.profil .nom-p { font-size: 20px; font-weight: 750; letter-spacing: -.025em; line-height: 1.2; }
.role { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: var(--balle); color: var(--nuit); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.compte p, .fz-carte p { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 16px; min-height: 56px; }
.compte p + p, .fz-carte p + p, .profil + p { border-top: 1px solid var(--trait); }
.compte p > svg, .fz-carte p > svg { width: 20px; height: 20px; fill: none; stroke: var(--doux); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.compte p > span, .fz-carte p > span { min-width: 0; overflow-wrap: anywhere; }
.compte .sous, .fz-carte .sous { display: block; font-size: 12.5px; font-weight: 600; color: var(--doux); }
.compte .lien-c { color: var(--lien); font-size: 14px; font-weight: 550; }
.actions-compte { margin-top: 12px; }
.actions-compte .btn + .btn { margin-top: 12px; }

/* ---------- grands écrans ---------- */
@media (min-width: 700px) {
  #v-app { padding-top: 8px; }
  .entete { border-radius: 0 0 18px 18px; }
  h1.titre { font-size: 36px; }
  .ecran-entree .entree-haut { padding-bottom: 96px; }
  .lignes-terrain { width: 900px; height: 420px; }
  .toast { bottom: 110px; }
}
@media (max-width: 350px) {
  h1.titre { font-size: 28px; }
  .heure { font-size: 21px; }
  .gros { font-size: 28px; }
  .demande .quand { font-size: 26px; }
  .durees .puce { font-size: 14px; }
  .entree-haut h1 { font-size: 34px; }
}

/* ---------- mouvements réduits ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .squelette::after { display: none; }
}

/* icônes au trait (par défaut ; les règles ci-dessus précisent tailles et couleurs) */
:where(#contenu, #feuille-corps, .barre) svg:where(:not(.illu)) { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.illu { width: 112px; height: 84px; }
.compte .nom-p b { font-weight: inherit; }

/* petits écrans (iPhone SE…) : en-tête d'entrée plus compact pour garder le bouton visible */
@media (max-height: 720px) {
  .entree-haut { padding: calc(24px + var(--haut)) 20px 60px; }
  .entree-haut .marque-icone.l { width: 64px; height: 64px; border-radius: 17px; }
  .entree-haut h1 { margin-top: 12px; font-size: 32px; }
  .accroche { font-size: 15px; }
}
@media (max-width: 350px) {
  .segment button { font-size: 14px; }
  .auth-boite { width: calc(100% - 24px); padding: 16px 16px 12px; }
}

/* =====================================================================================================================
   MESSAGERIE (Imed 10/11/2026) — sobre, façon iMessage : mes bulles en bleu nuit (clair) / jaune balle (sombre),
   celles de l'autre en carte ; séparateurs de jour, bulles regroupées, saisie qui grandit, clavier iPhone et safe-area.
   ===================================================================================================================== */
:root { --bulle-moi: linear-gradient(165deg, #1B3B6A, #0B1D3A 70%); --bulle-moi-uni: #0B1D3A; --sur-bulle-moi: #FFFFFF; --meta-moi: rgba(255, 255, 255, .62);
  --bulle-lui: var(--carte); --vu: #C8F135; --lien-moi: #DDF77F; --fond-conv: #F2F1EC; }
@media (prefers-color-scheme: dark) {
  :root { --bulle-moi: linear-gradient(165deg, #D4F65A, #BFE82E 80%); --bulle-moi-uni: #C8F135; --sur-bulle-moi: #0B1D3A; --meta-moi: rgba(11, 29, 58, .58);
    --bulle-lui: #172338; --vu: #1D4ED8; --lien-moi: #0B1D3A; --fond-conv: #070E1A; }
}

/* ---------- onglet Messages ---------- */
.titre-ligne { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.titre-ligne > div { min-width: 0; }
.btn-rond { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: 0 4px 18px 0; border-radius: 50%; background: var(--accent); color: var(--sur-accent); box-shadow: 0 6px 16px -6px rgba(11, 29, 58, .5); transition: transform var(--vite) var(--courbe); }
.btn-rond:active { transform: scale(.92); }
.btn-rond svg { width: 21px; height: 21px; }
.tous-btn { margin: 0 0 16px; }
.tous-btn svg, .tous-ligne svg { width: 20px; height: 20px; }
.cherche { margin: 0 0 12px; min-height: 46px; padding: 10px 14px; border-radius: 12px; background: var(--carte); }
.liste-conv .conv-ligne { min-height: 74px; gap: 14px; }
.conv-l1, .conv-l2 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.conv-l1 .nom { flex: 1; min-width: 0; white-space: nowrap; font-size: 16px; }
.conv-quand { flex: none; font-size: 13px; color: var(--pale); font-variant-numeric: tabular-nums; }
.conv-l2 { margin-top: 3px; align-items: center; }
.conv-apercu { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; line-height: 1.35; color: var(--doux); overflow-wrap: anywhere; }
.conv-apercu .coches { width: 16px; height: 11px; margin: 0 4px -1px 0; color: var(--pale); }
.conv-apercu .coches.vu { color: #2563EB; }
@media (prefers-color-scheme: dark) { .conv-apercu .coches.vu { color: var(--balle); } }
.tag-tous svg { width: 14px; height: 14px; margin: 0 4px -2px 0; color: var(--pale); }
.conv-n { flex: none; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--accent); color: var(--sur-accent); font-size: 12.5px; font-weight: 750; line-height: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.non-lu .nom { font-weight: 750; }
.non-lu .conv-apercu { color: var(--texte); font-weight: 550; }
.non-lu .conv-quand { color: var(--accent); font-weight: 650; }
@media (prefers-color-scheme: light) { .non-lu .conv-quand { color: #1D4A8A; } }
.ico-rond.accent { background: var(--accent-doux); color: var(--accent); }
@media (prefers-color-scheme: dark) { .ico-rond.accent { background: rgba(200, 241, 53, .12); } }
.ico-rond.l { width: 52px; height: 52px; }
.ico-rond.l svg { width: 26px; height: 26px; }
.ligne.carte.tous-ligne { margin-top: 8px; border-radius: var(--r); }
.tous-entete { display: flex; align-items: center; gap: 14px; margin: 8px 0 14px; }
.tous-entete p { margin: 0; font-size: 15px; line-height: 1.45; }
#tous-texte { min-height: 132px; }

/* ---------- réglages (interrupteur façon iOS) ---------- */
.reglage { padding: 4px 16px 14px; }
.reglage-l { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.reglage-l .milieu { flex: 1; min-width: 0; }
.reglage-l .nom { font-weight: 650; font-size: 16px; }
.reglage .aide { margin: 2px 0 0; line-height: 1.45; }
.interrupteur { position: relative; flex: none; width: 52px; height: 32px; border-radius: 16px; background: color-mix(in srgb, var(--texte) 16%, var(--carte)); transition: background-color 200ms var(--courbe); }
.interrupteur i { position: absolute; top: 2px; left: 2px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .22), 0 0 0 .5px rgba(0, 0, 0, .04); transition: transform 220ms var(--courbe); }
.interrupteur[aria-checked="true"] { background: var(--vert); }
.interrupteur[aria-checked="true"] i { transform: translateX(20px); }
.interrupteur:disabled { opacity: .6; }
.fiche-ecrire { margin: 0 0 16px; }
.ecrire-seance { margin-top: 20px; }
.ecrire-seance .btn.large { margin-top: 0; }
.ecrire-plusieurs { flex-wrap: wrap; }
.ecrire-plusieurs .btn { min-height: 48px; padding: 0 14px; }
.feuille-corps .btn.large + .btn.contour.large { margin-top: 12px; }

/* ---------- écran de conversation ---------- */
html.conv-ouverte, html.conv-ouverte body { overflow: hidden; overscroll-behavior: none; }
.conv { position: fixed; left: 0; right: 0; top: 0; height: 100dvh; z-index: 30; display: flex; flex-direction: column; background: var(--fond-conv); will-change: transform; }
@supports not (height: 100dvh) { .conv { height: 100vh; } }
.conv-haut {
  flex: none; display: flex; align-items: center; gap: 4px; min-height: calc(60px + var(--haut));
  padding: calc(6px + var(--haut)) 12px 8px 4px; background: color-mix(in srgb, var(--fond) 84%, transparent);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: .5px solid color-mix(in srgb, var(--texte) 12%, transparent); position: relative; z-index: 2;
}
.conv-retour { flex: none; display: inline-flex; align-items: center; gap: 0; min-width: 44px; min-height: 44px; padding: 0 6px 0 4px; color: var(--lien); font-size: 16px; font-weight: 600; border-radius: 10px; }
.conv-retour svg { width: 28px; height: 28px; stroke-width: 2.3; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.conv-retour:active { background: var(--carte-2); }
.conv-retour-n { margin-left: -2px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--sur-accent); font-size: 12px; font-weight: 750; line-height: 20px; text-align: center; }
.conv-qui { flex: 1; display: flex; align-items: center; gap: 11px; min-width: 0; }
.conv-qui > div { min-width: 0; }
.conv-qui .av { width: 40px; height: 40px; font-size: 14px; }
.conv-nom { font-size: 17px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.conv-sous { font-size: 12.5px; color: var(--doux); line-height: 1.2; margin-top: 1px; }
.conv-fil { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 12px; }
.conv-pile { display: flex; flex-direction: column; justify-content: flex-end; min-height: 100%; padding: 10px 0 14px; }
.conv-intro { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: auto 0; padding: 32px 16px; text-align: center; }
.conv-intro .av { margin-bottom: 10px; box-shadow: 0 0 0 4px var(--fond-conv), 0 0 0 5px var(--trait); }
.conv-intro b { font-size: 20px; font-weight: 750; letter-spacing: -.025em; }
.conv-intro span { font-size: 14px; color: var(--doux); }
.conv-intro span.doux { margin-top: 10px; color: var(--pale); }
.conv-debut { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px auto 6px; padding: 6px 12px; max-width: 300px; font-size: 12.5px; color: var(--doux); text-align: center; }
.conv-debut svg { width: 14px; height: 14px; flex: none; }
.conv-plus { display: grid; place-items: center; height: 40px; }
.conv-plus i { width: 22px; height: 22px; border-radius: 50%; }
.jour-msg { display: flex; justify-content: center; margin: 14px 0 8px; pointer-events: none; }
.jour-msg span { padding: 4px 11px; border-radius: 9px; font-size: 12px; font-weight: 650; color: var(--doux); background: color-mix(in srgb, var(--carte) 88%, transparent); box-shadow: 0 1px 2px rgba(14, 26, 43, .07); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@media (prefers-color-scheme: dark) { .jour-msg span { background: color-mix(in srgb, var(--carte-2) 90%, transparent); box-shadow: none; } }

/* bulles */
.msg { position: relative; display: flex; margin-top: 2px; transition: transform 200ms var(--courbe); }
.msg.debut { margin-top: 10px; }
.msg.glisse { transition: none; }
.msg.moi { justify-content: flex-end; }
.repondre-ico { position: absolute; left: -36px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; display: grid; place-items: center; background: var(--carte-2); color: var(--doux); opacity: 0; transform: scale(.6); transition: opacity 150ms, transform 150ms; }
.repondre-ico svg { width: 16px; height: 16px; }
.msg.glisse .repondre-ico { opacity: .6; }
.msg.pret .repondre-ico { opacity: 1; transform: scale(1); background: var(--accent); color: var(--sur-accent); }
.bulle {
  position: relative; max-width: min(78%, 440px); padding: 8px 12px 7px; border-radius: 20px; font-size: 16px; line-height: 1.38; letter-spacing: -.012em;
  overflow-wrap: anywhere; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: transform 160ms var(--courbe), filter 160ms;
}
.lui .bulle { background: var(--bulle-lui); color: var(--texte); box-shadow: 0 1px 1.5px rgba(14, 26, 43, .09); }
.moi .bulle { background: var(--bulle-moi); background-color: var(--bulle-moi-uni); color: var(--sur-bulle-moi); }
@media (prefers-color-scheme: dark) { .lui .bulle { box-shadow: none; } }
/* bulles regroupées : coins resserrés du côté de l'auteur */
.moi:not(.fin) .bulle { border-bottom-right-radius: 6px; }
.moi:not(.debut) .bulle { border-top-right-radius: 6px; }
.lui:not(.fin) .bulle { border-bottom-left-radius: 6px; }
.lui:not(.debut) .bulle { border-top-left-radius: 6px; }
.msg.choisi .bulle { transform: scale(1.03); filter: brightness(1.04); box-shadow: 0 8px 26px rgba(14, 26, 43, .25); }
.msg.eclat .bulle { animation: eclat 1.1s ease-out; }
@keyframes eclat { 20% { box-shadow: 0 0 0 4px var(--balle); } }
.bulle .txt { white-space: pre-wrap; }
.bulle a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.lui .bulle a { color: var(--lien); }
@media (prefers-color-scheme: dark) { .lui .bulle a { color: var(--balle); } .moi .bulle a { color: #0B1D3A; } }
.meta { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 7px 0 -3px 10px; font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: 0; color: var(--pale); font-variant-numeric: tabular-nums; white-space: nowrap; }
.moi .meta { color: var(--meta-moi); }
.coches { width: 17px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.moi .coches.vu { color: var(--vu); stroke-width: 1.9; }
.coches.attente { width: 12px; height: 12px; }
.meta .echec { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--rouge); color: #fff; font-size: 10px; font-weight: 800; }
.en-attente .bulle { opacity: .82; }
.statut { align-self: flex-end; margin: 4px 4px 0; font-size: 12px; font-weight: 550; color: var(--pale); font-variant-numeric: tabular-nums; }
.statut.echec { color: var(--rouge); min-height: 32px; padding: 0 4px; }
/* emojis seuls : en grand, sans bulle */
.bulle.emoji-seul { background: none !important; box-shadow: none !important; padding: 0 2px; font-size: 44px; line-height: 1.12; }
.bulle.emoji-seul .meta { display: none; }
/* message supprimé */
.bulle.supprimee { background: transparent !important; box-shadow: inset 0 0 0 1px var(--trait) !important; color: var(--pale) !important; font-style: italic; font-size: 15px; }
.bulle.supprimee .txt { display: inline-flex; align-items: center; gap: 6px; }
.bulle.supprimee svg { width: 15px; height: 15px; }
.bulle.supprimee .meta { color: var(--pale); }
/* « Message à tous », citation, carte de séance */
.msg-tous { display: flex; align-items: center; gap: 5px; margin: 0 0 3px; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; opacity: .72; }
.msg-tous svg { width: 14px; height: 14px; }
.citation { display: block; width: 100%; min-width: 150px; margin: 2px 0 6px; padding: 6px 10px 7px; border-radius: 12px; text-align: left; border-left: 3px solid var(--balle); background: rgba(255, 255, 255, .1); font-size: 14px; line-height: 1.3; }
.lui .citation { background: var(--carte-2); border-left-color: var(--nuit-2); }
@media (prefers-color-scheme: dark) { .moi .citation { background: rgba(11, 29, 58, .1); border-left-color: #0B1D3A; } .lui .citation { border-left-color: var(--balle); } }
.citation b { display: block; font-size: 12.5px; font-weight: 750; }
.citation span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; opacity: .85; }
.msg-seance { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 200px; margin: 2px 0 6px; padding: 9px 12px 9px 9px; border-radius: 14px; text-align: left; background: rgba(255, 255, 255, .1); }
.lui .msg-seance { background: var(--carte-2); }
@media (prefers-color-scheme: dark) { .moi .msg-seance { background: rgba(11, 29, 58, .1); } }
.ms-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--balle); color: var(--nuit); }
.ms-ico svg { width: 19px; height: 19px; }
.moi .ms-ico { background: rgba(200, 241, 53, .95); }
@media (prefers-color-scheme: dark) { .moi .ms-ico { background: #0B1D3A; color: var(--balle); } }
.msg-seance > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ms-titre { font-size: 11.5px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; opacity: .7; }
.ms-quand { font-size: 15.5px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.ms-lieu { font-size: 13.5px; opacity: .78; line-height: 1.3; }
.msg-seance.annulee .ms-quand { text-decoration: line-through; opacity: .7; }
/* photo */
.bulle.t-photo { padding: 3px; }
.bulle.t-photo .txt { display: block; padding: 6px 9px 2px; }
.bulle.t-photo .msg-tous, .bulle.t-photo .citation, .bulle.t-photo .msg-seance { margin-left: 0; }
.bulle.t-photo { width: min(264px, 68vw); }
.msg-photo { display: block; width: 100%; max-height: 360px; border-radius: 17px; overflow: hidden; background: var(--carte-2); }
.msg-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bulle.t-photo.nue .meta { position: absolute; right: 9px; bottom: 9px; float: none; margin: 0; padding: 3px 7px; border-radius: 10px; background: rgba(4, 10, 20, .45); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bulle.t-photo.nue .coches.vu { color: var(--balle); }
.bulle.t-photo:not(.nue) .meta { margin-right: 6px; margin-bottom: 2px; }
.moi:not(.fin) .bulle.t-photo .msg-photo { border-bottom-right-radius: 4px; }
/* vocal */
.bulle.t-vocal { padding: 8px 12px 7px 8px; }
.vocal { display: flex; align-items: center; gap: 10px; width: min(250px, 62vw); }
.vocal-lire { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--sur-accent); }
.moi .vocal-lire { background: var(--balle); color: var(--nuit); }
@media (prefers-color-scheme: dark) { .moi .vocal-lire { background: #0B1D3A; color: var(--balle); } }
.vocal-lire svg { width: 18px; height: 18px; }
.vocal-lire:disabled { opacity: .5; }
.vocal-piste { position: relative; flex: 1; height: 30px; cursor: pointer; }
.vocal-barres { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; }
.vocal-barres i { flex: 1; min-width: 2px; border-radius: 2px; background: currentColor; opacity: .3; }
.vocal-barres.plein { clip-path: inset(0 calc(100% - var(--p) * 100%) 0 0); }
.vocal-barres.plein i { opacity: 1; }
.lui .vocal-barres.plein i { background: var(--accent); }
@media (prefers-color-scheme: light) { .lui .vocal-barres.plein i { background: var(--nuit); } }
.vocal-duree { flex: none; min-width: 34px; font-size: 13px; font-weight: 600; opacity: .8; }
.bulle.t-vocal .meta { margin-top: 2px; }

.conv-nouveaux { position: absolute; left: 50%; bottom: calc(var(--saisie-h, 70px) + 12px); transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 16px 0 12px; border-radius: 19px; background: var(--accent); color: var(--sur-accent); font-size: 14px; font-weight: 650; box-shadow: 0 8px 22px -6px rgba(4, 10, 20, .45); animation: toast 220ms var(--courbe); }
.conv-nouveaux svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* saisie */
.conv-bas { flex: none; position: relative; z-index: 2; padding: 8px 10px calc(8px + var(--bas)); background: color-mix(in srgb, var(--carte) 86%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-top: .5px solid color-mix(in srgb, var(--texte) 12%, transparent); }
.conv.clavier .conv-bas { padding-bottom: 8px; }
@media (prefers-color-scheme: dark) { .conv-bas { background: color-mix(in srgb, #0D1626 88%, transparent); } }
.conv-saisie, .conv-enreg { display: flex; align-items: flex-end; gap: 6px; }
.conv-btn { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--doux); cursor: pointer; transition: background-color var(--vite), transform var(--vite) var(--courbe); }
.conv-btn:active { background: var(--carte-2); transform: scale(.92); }
.conv-btn svg, .conv-envoyer svg, .joint-l svg, .conv-coupee svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.conv-btn svg { width: 25px; height: 25px; }
.conv-texte {
  flex: 1; min-width: 0; min-height: 42px; max-height: 132px; padding: 10px 15px; border-radius: 21px; border: 1px solid var(--trait); background: var(--carte);
  font-size: 16.5px; line-height: 1.3; resize: none; outline: none; -webkit-appearance: none; appearance: none; overflow-y: auto; transition: border-color var(--vite);
}
.conv-texte::placeholder { color: var(--pale); }
.conv-texte:focus { border-color: color-mix(in srgb, var(--focus) 55%, var(--trait)); }
@media (prefers-color-scheme: dark) { .conv-texte { background: #0A1322; } }
.conv-envoyer { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--sur-accent); transition: transform var(--vite) var(--courbe), opacity var(--vite); animation: pop 180ms var(--courbe); }
.conv-envoyer svg { width: 22px; height: 22px; stroke-width: 2.4; }
.conv-envoyer:active { transform: scale(.9); }
.conv-envoyer:disabled { background: var(--carte-2); color: var(--pale); animation: none; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.conv-joint { margin: 0 2px 8px; display: flex; flex-direction: column; gap: 6px; }
.joint-l { display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 12px; border-radius: 14px; background: var(--carte-2); border-left: 3px solid var(--accent); animation: glisse 180ms var(--courbe); }
.joint-l > svg { width: 20px; height: 20px; flex: none; color: var(--doux); }
.joint-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; line-height: 1.3; }
.joint-txt b { font-size: 12.5px; font-weight: 750; color: var(--accent); }
@media (prefers-color-scheme: light) { .joint-txt b { color: var(--nuit-2); } }
.joint-txt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--doux); }
.joint-photo img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; flex: none; }
.joint-x { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--doux); }
.joint-x svg { width: 18px; height: 18px; }
.joint-x:active { background: var(--trait); }
.conv-coupee { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--carte-2); color: var(--doux); font-size: 14.5px; font-weight: 550; line-height: 1.4; }
.conv-coupee svg { width: 20px; height: 20px; flex: none; }
.conv-coupee span { flex: 1; }
.conv-coupee .btn.lien { min-height: 36px; }
/* enregistrement d'un vocal */
.conv-enreg { align-items: center; }
.enreg-milieu { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 14px; border-radius: 21px; background: var(--rouge-bg); color: var(--rouge); }
.enreg-point { width: 10px; height: 10px; border-radius: 50%; background: var(--rouge); animation: clignote 1s ease-in-out infinite; }
@keyframes clignote { 50% { opacity: .25; } }
#enreg-temps { font-size: 16px; font-weight: 700; }
.enreg-aide { font-size: 13px; font-weight: 550; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#enreg-annuler { color: var(--rouge); }

/* appui long : menu d'actions */
.actions-voile { z-index: 50; background: rgba(4, 10, 20, .32); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-width: 520px; margin: 0 auto; padding: 8px 10px calc(10px + var(--bas)); animation: monte 220ms var(--courbe); }
.actions-groupe { border-radius: 16px; overflow: hidden; background: var(--carte); box-shadow: var(--ombre-haute); }
@media (prefers-color-scheme: dark) { .actions-groupe, .actions-annuler { background: #16223A; } }
.actions-apercu { padding: 12px 16px; font-size: 12.5px; color: var(--doux); text-align: center; border-bottom: .5px solid var(--trait); }
.actions-apercu span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; font-size: 14px; color: var(--texte); }
.actions-groupe button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; font-size: 17px; font-weight: 550; color: var(--lien); }
.actions-groupe button + button { border-top: .5px solid var(--trait); }
.actions-groupe button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.actions-groupe button.rouge-txt { color: var(--rouge); }
.actions-groupe button:active, .actions-annuler:active { background: var(--carte-2); }
.actions-annuler { width: 100%; min-height: 56px; margin-top: 8px; border-radius: 16px; background: var(--carte); font-size: 17px; font-weight: 700; color: var(--lien); box-shadow: var(--ombre-haute); }

/* photo en plein écran */
.visionneuse { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(2, 6, 14, .94); animation: fondu 180ms ease-out; padding: calc(56px + var(--haut)) 0 calc(24px + var(--bas)); }
.visionneuse img { max-width: 100%; max-height: 100%; object-fit: contain; }
.vis-fermer { position: absolute; top: calc(10px + var(--haut)); right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; }
.vis-fermer svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

@media (min-width: 700px) {
  .conv { max-width: 720px; margin: 0 auto; box-shadow: 0 0 0 .5px var(--trait), 0 0 60px rgba(4, 10, 20, .12); }
}
@media (prefers-reduced-motion: reduce) { .msg, .bulle { transition: none; } }
:where(#v-conv, .actions) svg:where(:not(.illu):not(.coches)) { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.aide.support { margin-top: 18px; }
.aide.support a { color: inherit; text-decoration: underline; }

/* =====================================================================================================================
   PROFIL (Imed 10/11/2026) : photo de profil (avatars), date de naissance, homme/femme, recadrage carré
   ===================================================================================================================== */
.av.a-photo { color: transparent; background: var(--carte-2); }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.av .pt { z-index: 1; }
.av.xl { width: 128px; height: 128px; font-size: 40px; }
.av.sans-photo { background: var(--carte-2); color: var(--doux); box-shadow: inset 0 0 0 1.5px var(--trait); }
.av.sans-photo svg { width: 42%; height: 42%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.photo-cible { position: relative; flex: none; display: inline-grid; border-radius: 50%; transition: transform var(--vite) var(--courbe); }
.photo-cible:active { transform: scale(.95); }
.photo-plus { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--sur-accent); box-shadow: 0 0 0 3px var(--carte); }
.photo-plus svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.photo-ajout { display: flex; align-items: center; gap: 14px; margin: 6px 0 2px; text-align: left; }
.photo-ajout-txt { display: flex; flex-direction: column; min-width: 0; }
.photo-ajout-txt b { font-size: 16px; font-weight: 650; }
.photo-ajout-txt small { font-size: 13px; color: var(--doux); }
.photo-ajout.centre-photo { justify-content: center; margin: 4px 0 4px; }
.photo-ajout.centre-photo .photo-plus { box-shadow: 0 0 0 3px var(--carte); }
.photo-grand { display: flex; justify-content: center; margin: 12px 0 8px; }
.photo-grand .av { box-shadow: 0 0 0 4px var(--fond), 0 0 0 5px var(--trait); }
.photo-aide { margin-top: 14px; }
.compte .profil .photo-plus { width: 24px; height: 24px; }
.compte .profil .photo-plus svg { width: 14px; height: 14px; stroke-width: 2; }
.btn.lien.photo-lien { display: flex; min-height: 34px; margin: 4px 0 0 -8px; font-size: 14px; }
.compte p.avec-btn > span, .fz-carte p.avec-btn > span { flex: 1; }
.compte p.avec-btn .btn.lien, .fz-carte p.avec-btn .btn.lien { flex: none; min-height: 36px; font-size: 15px; }
.infos-p { margin-top: 3px; font-size: 15px; font-weight: 650; color: var(--texte); }
.choix-sexe { margin-bottom: 4px; }
.aide.err-txt { color: var(--rouge); font-weight: 550; }
#auth-joueur .aide:empty { display: none; }
/* recadrage : carré, rond de visée, zoom */
.recadre { position: relative; width: min(100%, 360px); aspect-ratio: 1; margin: 8px auto 0; border-radius: 20px; overflow: hidden; background: #000; touch-action: none; }
.recadre canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.recadre canvas:active { cursor: grabbing; }
.rc-rond { position: absolute; inset: 0; pointer-events: none; border-radius: 20px; background: radial-gradient(circle at center, transparent 0 calc(50% - 1px), rgba(4, 10, 20, .5) 50%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.rc-rond::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); }
.rc-zoom { display: flex; align-items: center; gap: 10px; width: min(100%, 360px); margin: 14px auto 0; color: var(--doux); }
.rc-zoom svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.rc-zoom input { flex: 1; accent-color: var(--accent); height: 32px; }

/* ---------- export du planning en PDF (Imed 10/11/2026) ---------- */
.titre-export { position: relative; }
.titre-export h1.titre { padding-right: 128px; }
.btn-export {
  position: absolute; right: 4px; bottom: 17px; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px 0 11px;
  border-radius: 20px; border: 1.5px solid var(--trait); background: var(--carte); color: var(--texte); font-weight: 650; font-size: 14px;
  box-shadow: 0 1px 2px rgba(14, 26, 43, .05); transition: transform var(--vite) var(--courbe), background-color var(--vite);
}
.btn-export svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn-export:active { transform: scale(.95); background: var(--carte-2); }
.exp-intro { margin: 2px 2px 14px; font-size: 15px; }
.exp-modes { display: flex; gap: 12px; }
.exp-modes button {
  flex: 1; min-height: 108px; border-radius: 18px; border: 1.5px solid var(--trait); background: var(--carte); color: var(--texte);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 12px 8px; transition: all var(--vite);
}
.exp-modes button:active { transform: scale(.97); }
.exp-modes svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.exp-modes b { font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.exp-modes small { font-size: 13px; color: var(--doux); }
.exp-modes button.actif { border-color: var(--accent); background: var(--accent-doux); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.exp-modes button.actif small { color: inherit; opacity: .85; }
.exp-resume { display: flex; align-items: center; gap: 12px; margin: 18px 0 2px; padding: 14px 16px; border-radius: 14px; background: var(--carte-2); }
.exp-resume svg { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--doux); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.exp-resume b { display: block; font-size: 16px; letter-spacing: -.015em; }
.exp-resume span { font-size: 13px; color: var(--doux); }
#exp-creer svg { width: 20px; height: 20px; }
.btn .roue { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: exp-tourne .8s linear infinite; }
@keyframes exp-tourne { to { transform: rotate(360deg); } }
.exp-fichier { display: flex; align-items: center; gap: 14px; margin: 18px 0 14px; padding: 14px 16px; border-radius: 16px; background: var(--carte); box-shadow: var(--ombre); }
.exp-pdf { flex: none; width: 42px; height: 50px; border-radius: 8px 14px 8px 8px; background: var(--nuit); color: var(--balle); display: grid; place-items: center; font-weight: 800; font-size: 12px; letter-spacing: .05em; }
.exp-fichier b { display: block; font-size: 15px; letter-spacing: -.01em; word-break: break-all; }
.exp-fichier div span { font-size: 13px; color: var(--doux); }
#exp-pret .btn + .btn { margin-top: 10px; }
#exp-pret .btn.lien { display: flex; margin: 6px auto 0; }
@media (prefers-color-scheme: dark) {
  .exp-pdf { background: var(--balle); color: var(--nuit); }
  .btn-export { box-shadow: none; }
}

/* =====================================================================================================================
   RÉGLAGE NOTIFICATIONS (Imed 10/11/2026) : Compte › Notifications, interrupteur + état ; aide « Bloquées par le téléphone »
   ===================================================================================================================== */
.notif-reglage .nom { display: block; }
.notif-etat { display: block; margin-top: 1px; font-size: 13.5px; font-weight: 600; color: var(--doux); }
.notif-etat.ok { color: var(--vert); }
.notif-etat.bloque { color: var(--ambre); }
.notif-reglage .btn.lien { display: flex; min-height: 40px; margin: 4px 0 0 -8px; font-size: 14.5px; }
.notif-reglage .btn.principal { margin-top: 12px; }
.notif-reglage .aide { margin-bottom: 2px; }
.aide-bloque .gros-texte { margin: 8px 2px 14px !important; font-size: 16px; }
.aide-etapes { padding: 14px 16px; }
.aide-etapes .aide-titre { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 750; }
.aide-etapes ol { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.45; }
.aide-etapes ol li + li { margin-top: 8px; }
.aide-etapes .doux.petit { margin: 10px 0 0; }
.chemin-a { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 6px; }
.chemin-a b { padding: 5px 10px; border-radius: 9px; background: var(--carte-2); font-size: 14px; font-weight: 650; }
.chemin-a i { font-style: normal; font-weight: 700; color: var(--pale); }
.aide-bloque .btn.large { margin-top: 12px; }
.aide-barre .puces { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.aide-barre .puces::-webkit-scrollbar { display: none; }
.aide-barre .puce { padding: 0 12px; font-size: 14px; }

/* =====================================================================================================================
   EFFACER (Imed 10/11/2026) : glisser une conversation vers la gauche → « Effacer » ; menu ⋯ de la conversation ;
   toast avec « Annuler »
   ===================================================================================================================== */
.liste-conv { overflow: hidden; }
.conv-item { position: relative; overflow: hidden; background: var(--rouge); }
.conv-item + .conv-item { border-top: 1px solid var(--trait); }
.conv-item .conv-ligne { position: relative; z-index: 1; background: var(--carte); transition: transform 220ms var(--courbe), background-color var(--vite); touch-action: pan-y; }
.conv-item .conv-ligne.glisse { transition: none; }
.conv-item .conv-ligne:active { background: var(--carte-2); }
.conv-effacer-btn { position: absolute; top: 0; right: 0; bottom: 0; width: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #fff; font-size: 13px; font-weight: 700; }
.conv-effacer-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) { .conv-effacer-btn { color: #2A0A07; } }
.conv-menu { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--lien); }
.conv-menu svg { width: 24px; height: 24px; fill: currentColor; stroke: none !important; }
.conv-menu:active { background: var(--carte-2); }
.actions-apercu.confirme { padding: 16px 18px 14px; }
.actions-apercu.confirme b { display: block; font-size: 16px; color: var(--texte); line-height: 1.3; }
.actions-apercu.confirme span { -webkit-line-clamp: 3; margin-top: 6px; font-size: 14px; color: var(--doux); }
.actions-groupe button.rouge-txt.fort { font-weight: 700; }
.toast.avec-action { padding-right: 8px; pointer-events: auto; }
.toast-btn { flex: none; margin-left: 6px; min-height: 36px; padding: 0 12px; border-radius: 10px; color: var(--balle); font-weight: 750; font-size: 15px; }
.toast-btn:active { background: rgba(255, 255, 255, .12); }
@media (prefers-color-scheme: dark) { .toast-btn { color: #1D4A8A; } .toast-btn:active { background: rgba(11, 29, 58, .08); } }
#actions:not([hidden]) ~ .toast { bottom: calc(330px + var(--bas)); }

/* =====================================================================================================================
   HEURES LIBRES, GROUPES, DISCUSSIONS DE GROUPE (Imed 10/11/2026)
   Joueur (v2, 10/11/2026 23h30) : 7 lignes avec puces jaune balle et gros « + », feuille à moments rapides et curseur ;
   coach : pastilles Libre / Pas indiqué / Pas libre, « Trouver un créneau », meilleurs moments, jours, grille lisible.
   ===================================================================================================================== */
:root { --libre: #C8F135; --sur-libre: #0B1D3A; --libre-bord: #A9CF1F; --case: #F1EFE9; --case-bord: #E3DFD6; }
@media (prefers-color-scheme: dark) { :root { --libre: #C8F135; --sur-libre: #0B1D3A; --libre-bord: #DDF77F; --case: #142033; --case-bord: #1F2D45; } }

/* avatars de groupe (carré arrondi), petits avatars, étiquettes */
.av.g { border-radius: 30%; color: var(--av-t, #fff); font-weight: 750; letter-spacing: -.01em; }
.av.g img { border-radius: 30%; }
.av.s { width: 22px; height: 22px; font-size: 9px; }
.tag-g { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 10px 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--g) 13%, var(--carte)); color: var(--texte); font-size: 12.5px; font-weight: 700; letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g) 28%, transparent); }
.tag-g i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--g) 25%, transparent); }
@media (prefers-color-scheme: dark) { .tag-g { background: color-mix(in srgb, var(--g) 22%, var(--carte)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g) 45%, transparent); } }
.tag-g.grand { padding: 6px 14px 6px 10px; font-size: 14px; min-height: 34px; }
.tag-coach { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: var(--balle); color: var(--nuit); font-size: 10.5px; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; vertical-align: 1px; }
.seance-g { margin: -2px 0 8px; }
.entete-seance .seance-g { display: flex; justify-content: center; margin: 0 0 6px; }
.demande .qui .tag-g { margin-left: auto; }
.fiche-groupes { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }

/* ---------- messagerie de groupe ---------- */
.pic-groupe { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 5px; vertical-align: -3px; color: var(--doux); }
.pic-groupe svg { width: 17px; height: 17px; }
.pic-muet { flex: none; color: var(--pale); }
.pic-muet svg { width: 15px; height: 15px; vertical-align: -2px; }
.msg-auteur { display: flex; align-items: center; gap: 7px; margin: 12px 0 3px 4px; font-size: 12.5px; color: var(--doux); }
.msg-auteur b { font-weight: 700; color: var(--texte); }
.msg-auteur .tag-coach { margin-left: 0; }
.msg-auteur + .msg.debut { margin-top: 0; }
.statut.vu-par { min-height: 28px; padding: 0 4px; color: var(--doux); font-weight: 650; }
.statut.vu-par:active { color: var(--texte); }
.vu-liste .coches { width: 18px; height: 12px; color: var(--vert); }
#v-conv .conv-coupee { background: var(--accent-doux); color: var(--accent); }
@media (prefers-color-scheme: dark) { #v-conv .conv-coupee { background: rgba(200, 241, 53, .08); } }

/* ---------- joueur : cartes de l'accueil ---------- */
.info-dispo { display: flex; gap: 14px; padding: 16px; margin: 4px 0 12px; }
.info-dispo .ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--balle); color: var(--nuit); }
.info-dispo .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.info-dispo .txt { flex: 1; min-width: 0; }
.info-dispo p { margin: 0 0 6px; font-size: 15.5px; line-height: 1.42; }
.info-dispo p.petit { font-size: 13.5px; margin-bottom: 10px; }
.info-dispo.forte { position: relative; overflow: hidden; }
.info-dispo.forte::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--balle), #E6F98F); }
.raccourci-dispo { border-radius: var(--r); }
.raccourci-dispo .ico-rond svg { width: 19px; height: 19px; }

/* ---------- joueur : « Mes heures libres » (feuille) ---------- */
.hub-intro { margin: 4px 4px 14px; font-size: 15px; color: var(--doux); line-height: 1.45; }
.hub-carte { padding: 14px 16px 16px; }
.hub-carte + .hub-carte { margin-top: 12px; }
.hub-t { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.hub-t .milieu { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hub-t b { font-size: 16.5px; font-weight: 750; letter-spacing: -.02em; }
.hub-t small { font-size: 13px; color: var(--doux); }
.hub-tot { flex: none; font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.hub-tot small { font-size: 12px; font-weight: 600; color: var(--doux); margin-left: 2px; }
.hub-vide { margin: 4px 0 8px; font-size: 14.5px; color: var(--pale); }
.hub-alerte { margin: 8px 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--ambre-bg); color: var(--ambre); font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.hub-liste { margin: 0 0 8px; border-radius: 12px; background: var(--carte-2); }
.hub-l { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 4px 4px 12px; font-size: 14.5px; }
.hub-l + .hub-l { border-top: 1px solid var(--trait); }
.hub-l .milieu { flex: 1; min-width: 0; }
.hub-l .btn.lien { min-height: 40px; font-size: 14px; }
.exc { flex: none; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; }
.exc.libre { background: var(--vert-bg); color: var(--vert); }
.exc.absent { background: var(--ambre-bg); color: var(--ambre); }
.hub-btns { margin-top: 12px; }
.hub-btns .btn { min-height: 46px; padding: 0 12px; font-size: 15px; }
.hub-carte .btn.large { margin-top: 12px; }
.hub-carte .btn.large + .btn.large { margin-top: 8px; }

/* frise de la semaine : jour · barre 7h → 22h · plages */
.frise { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 4px; }
.frise-l { display: grid; grid-template-columns: 34px 1fr minmax(84px, 38%); align-items: center; gap: 10px; min-height: 20px; }
.frise-l > b { font-size: 13px; font-weight: 700; color: var(--texte); }
.frise-l.sans > b, .frise-l.sans .frise-t { color: var(--pale); }
.frise-rail { position: relative; height: 12px; border-radius: 6px; background: var(--case); box-shadow: inset 0 0 0 1px var(--case-bord); }
.frise-rail i { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: var(--libre); box-shadow: inset 0 0 0 1px var(--libre-bord); min-width: 4px; }
.frise-t { font-size: 12.5px; font-weight: 600; color: var(--doux); font-variant-numeric: tabular-nums; line-height: 1.3; overflow-wrap: anywhere; }
.frise-axe { min-height: 14px; margin-bottom: -2px; }
.frise-rail.axe { height: 14px; background: none; box-shadow: none; }
.frise-rail.axe i { top: 0; bottom: auto; width: auto; min-width: 0; background: none; box-shadow: none; transform: translateX(-50%); font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--pale); }

/* ---------- éditeur plein écran ---------- */
.dispo-ed { position: fixed; inset: 0; z-index: 31; display: flex; flex-direction: column; background: var(--fond); animation: monte 220ms var(--courbe); }
.dispo-haut { flex: none; display: flex; align-items: center; gap: 6px; min-height: calc(60px + var(--haut)); padding: calc(6px + var(--haut)) 12px 8px 4px;
  background: color-mix(in srgb, var(--fond) 86%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: .5px solid color-mix(in srgb, var(--texte) 12%, transparent); }
.dispo-haut .conv-retour[hidden] + .dispo-titres { padding-left: 12px; }
.dispo-titres { flex: 1; min-width: 0; }
.dispo-titre { font-size: 17px; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dispo-sous { font-size: 12.5px; color: var(--doux); }
.dispo-corps { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 12px 16px 24px; }
.dispo-corps > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.dispo-corps svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dispo-bas { flex: none; padding: 10px 16px calc(10px + var(--bas)); background: color-mix(in srgb, var(--carte) 88%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-top: .5px solid color-mix(in srgb, var(--texte) 12%, transparent); }
.dispo-bas > * { max-width: 520px; margin-left: auto; margin-right: auto; }
.de-bas-btns { display: flex; gap: 10px; }
.de-bas-btns .btn { min-height: 50px; }
.de-bas-btns .btn.principal { flex: 1; }
.de-bas-btns .btn.contour { flex: 0 0 38%; }
.de-resume { min-height: 18px; margin-bottom: 8px; text-align: center; font-size: 13.5px; color: var(--texte); font-variant-numeric: tabular-nums; }
.de-resume .a-enreg { color: var(--ambre); font-weight: 650; }
.de-question { margin: 4px 2px 6px; font-size: 24px; font-weight: 800; letter-spacing: -.035em; line-height: 1.15; }
.de-intro { margin: 2px 2px 14px; font-size: 15.5px; line-height: 1.5; }
.de-seg { margin: 0 auto 10px; }
.de-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.de-seg svg { width: 17px; height: 17px; }
.de-note { display: flex; align-items: flex-start; gap: 8px; margin: 0 2px 12px; font-size: 13.5px; color: var(--doux); line-height: 1.4; }
.de-note svg { flex: none; width: 17px; height: 17px; margin-top: 1px; }
/* ---------- joueur : « Mes heures libres » v2 (Imed 10/11/2026, 23h30) : 7 lignes, puces, gros « + » ---------- */
#v-dispos.etape .dispo-haut { display: none; }
#v-dispos.etape .dispo-corps { padding-top: calc(18px + var(--haut)); }
.de-question { margin: 4px 2px 4px; font-size: 26px; }
.de-intro { margin: 0 2px 14px; font-size: 16px; color: var(--doux); }
.hj { overflow: hidden; }
.hj-l { display: grid; grid-template-columns: 96px minmax(0, 1fr) 48px; align-items: center; gap: 8px; min-height: 60px; padding: 6px 8px 6px 16px; cursor: pointer; transition: background-color var(--vite); }
.hj-l + .hj-l { border-top: 1px solid var(--trait); }
.hj-l:active { background: var(--carte-2); }
.hj-nom { font-size: 16.5px; font-weight: 700; letter-spacing: -.015em; }
.hj-nom .court { display: none; }
.hj-l.sans .hj-nom { color: var(--doux); font-weight: 600; }
.hj-puces { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; padding: 3px 0; }
.hj-puce { position: relative; display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border-radius: 19px; background: var(--libre); color: var(--sur-libre); font-size: 15.5px; font-weight: 750; letter-spacing: -.01em; box-shadow: inset 0 0 0 1px var(--libre-bord); transition: transform var(--vite) var(--courbe); }
.hj-puce::before { content: ""; position: absolute; inset: -4px -3px; }
.hj-puce:active { transform: scale(.95); }
.hj-puce.vide { background: var(--carte-2); color: var(--pale); box-shadow: none; font-weight: 600; font-size: 15px; pointer-events: none; }
.hj-plus { justify-self: end; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-doux); color: var(--accent); transition: transform var(--vite) var(--courbe), background-color var(--vite); }
.hj-plus:active { transform: scale(.9); }
.dispo-corps .hj-plus svg { width: 24px; height: 24px; stroke-width: 2.4; }
@media (prefers-color-scheme: dark) { .hj-plus { background: rgba(200, 241, 53, .12); } }
.hj-l.eclat { animation: eclat-hj .9s ease-out; }
@keyframes eclat-hj { 10% { background: color-mix(in srgb, var(--libre) 30%, var(--carte)); } }
.hj-pied { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; margin: 8px 6px 0; }
.hj-tot { font-size: 16px; color: var(--texte); }
.hj-tot b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.hj-pied .btn.lien { min-height: 44px; font-size: 14.5px; }
.hj-sec { overflow: hidden; }
.hj-l2, .hj-sec .hub-l { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 6px 8px 6px 14px; text-align: left; font-size: 15.5px; }
.hj-l2 + .hj-l2, .hj-sec .hub-l + .hj-l2, .hj-sec .hub-l + .hub-l { border-top: 1px solid var(--trait); }
.hj-l2 .milieu { flex: 1; min-width: 0; display: block; line-height: 1.35; }
.hj-l2 .milieu small { display: block; font-size: 13px; color: var(--doux); font-weight: 500; }
.hj-l2 .etat { display: inline-block; margin-left: 6px; vertical-align: 1px; }
.hj-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-doux); color: var(--accent); }
.dispo-corps .hj-ico svg { width: 19px; height: 19px; stroke-width: 2; }
@media (prefers-color-scheme: dark) { .hj-ico { background: rgba(200, 241, 53, .12); } }
.hj-l2.ajout { color: var(--lien); font-weight: 650; }
.hj-l2.ajout:active { background: var(--carte-2); }
.hj-sec .hub-l .btn.lien, .hj-l2 .btn.lien { min-height: 44px; font-size: 14.5px; }
.hj-aide { margin: 18px 8px 4px; }
#v-dispos .titre-sec { margin-top: 26px; }
@media (max-width: 370px) { .hj-l { grid-template-columns: 52px minmax(0, 1fr) 48px; padding-left: 14px; } .hj-nom .long { display: none; } .hj-nom .court { display: inline; } }
@media (max-height: 700px) {
  .hj-l { min-height: 52px; padding-top: 4px; padding-bottom: 4px; }
  .hj-plus { width: 44px; height: 44px; }
  .de-question { font-size: 22px; }
  .de-intro { margin-bottom: 10px; font-size: 15px; }
  .de-seg { margin-bottom: 8px; }
  #v-dispos.etape .dispo-corps { padding-top: calc(10px + var(--haut)); }
}

/* feuille « Lundi — quand êtes-vous libre ? » : moments rapides, curseur à deux poignées, « Aussi le… » */
.feuille.f-heures .feuille-haut { display: none; }
.feuille.f-heures .feuille-corps { padding-top: 2px; }
.hs-titre { margin: 10px 2px 4px; font-size: 20px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.hs-sec { margin: 14px 2px 8px; font-size: 12.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); }
.hs-moments { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hs-m { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 56px; padding: 6px 14px; border-radius: 14px; background: var(--carte); box-shadow: var(--ombre), inset 0 0 0 1.5px transparent; text-align: left; line-height: 1.2; transition: background-color var(--vite), transform var(--vite) var(--courbe); }
.hs-m:active { transform: scale(.97); }
.hs-m b { font-size: 16px; font-weight: 700; letter-spacing: -.015em; }
.hs-m small { margin-top: 2px; font-size: 13.5px; font-weight: 600; color: var(--doux); }
.hs-m.actif { background: var(--libre); color: var(--sur-libre); box-shadow: inset 0 0 0 1.5px var(--libre-bord); }
.hs-m.actif small { color: var(--sur-libre); opacity: .72; }
.hs-precis { padding: 10px 12px 12px; border-radius: 16px; background: var(--carte); box-shadow: var(--ombre); }
.hs-precis.inactif .hs-rail, .hs-precis.inactif .hs-pas, .hs-precis.inactif .hs-axe { opacity: .42; }
.hs-lbl { display: block; width: 100%; min-height: 44px; border-radius: 12px; font-size: 25px; font-weight: 800; letter-spacing: -.03em; color: var(--texte); text-align: center; }
.hs-lbl:active { background: var(--carte-2); }
.hs-lbl .fl { margin: 0 3px; color: var(--pale); font-weight: 600; }
.hs-lbl .et { color: var(--pale); font-weight: 600; }
.hs-lbl.plusieurs { font-size: 18px; }
.hs-lbl .doux { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.hs-saisie { display: flex; align-items: center; gap: 8px; margin: 4px 0 6px; }
.hs-saisie .champ { min-height: 46px; padding: 8px 12px; font-size: 17px; font-variant-numeric: tabular-nums; }
.hs-saisie span { color: var(--pale); }
.hs-rail { position: relative; height: 48px; margin: 2px 20px 0; touch-action: none; cursor: pointer; -webkit-user-select: none; user-select: none; }
.hs-fond, .hs-sel { position: absolute; top: 19px; height: 10px; border-radius: 5px; pointer-events: none; }
.hs-fond { left: 0; right: 0; background: var(--case); box-shadow: inset 0 0 0 1px var(--case-bord); }
.hs-sel { background: var(--libre); box-shadow: inset 0 0 0 1px var(--libre-bord); }
.hs-poignee { position: absolute; top: 2px; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; touch-action: none; }
.hs-poignee::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2.5px var(--nuit), 0 3px 8px rgba(11, 29, 58, .28); transition: transform 120ms var(--courbe); }
.hs-poignee.tenue::after, .hs-poignee:active::after { transform: scale(1.2); }
.hs-poignee:focus-visible { outline: none; }
.hs-poignee:focus-visible::after { box-shadow: 0 0 0 2.5px var(--nuit), 0 0 0 6px color-mix(in srgb, var(--focus) 35%, transparent); }
@media (prefers-color-scheme: dark) { .hs-poignee::after { background: var(--balle); box-shadow: 0 0 0 2.5px var(--fond), 0 3px 10px rgba(0, 0, 0, .5); } }
.hs-axe { position: relative; height: 16px; margin: 0 20px; font-size: 11px; font-weight: 600; color: var(--pale); font-variant-numeric: tabular-nums; }
.hs-axe span { position: absolute; top: 0; transform: translateX(-50%); }
.hs-pas { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; }
.hs-borne { display: flex; align-items: center; gap: 4px; }
.hs-borne span { min-width: 36px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--doux); }
.hs-borne button { min-width: 50px; height: 44px; border-radius: 12px; background: var(--carte-2); font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; transition: transform var(--vite) var(--courbe); }
.hs-borne button:active { transform: scale(.94); background: var(--trait); }
.hs-aussi { display: flex; flex-wrap: wrap; gap: 6px; }
.hs-aussi .puce { flex: 1 1 0; min-width: 48px; padding: 0 6px; font-size: 15px; }
.hs-aussi .puce.actif { background: var(--libre); border-color: var(--libre-bord); color: var(--sur-libre); }
.hs-btns { display: flex; gap: 10px; margin-top: 16px; }
.hs-btns .btn { min-height: 52px; }
.hs-btns .btn.principal { flex: 1; }
.hs-btns .btn.contour, .hs-btns .btn.rouge { flex: 0 0 36%; }
.hs-annuler2 { display: block; margin: 4px auto 0; }
@media (max-height: 700px) {
  .hs-titre { margin-top: 6px; font-size: 18px; }
  .hs-sec { margin: 10px 2px 6px; }
  .hs-precis { padding: 6px 12px 8px; }
  .hs-lbl { min-height: 38px; font-size: 22px; }
  .hs-pas { margin-top: 4px; }
  .hs-btns { margin-top: 12px; }
  .feuille.f-heures .feuille-corps { padding-bottom: calc(12px + var(--bas)); }
}

/* ---------- coach : formulaire de séance ---------- */
.f-groupes { margin-bottom: 4px; }
.puce-g { display: inline-flex; align-items: center; gap: 8px; }
.puce-g i { width: 10px; height: 10px; border-radius: 50%; background: var(--g); flex: none; }
.puce-g small { font-size: 12.5px; font-weight: 700; color: var(--pale); }
.puce-g.actif { background: color-mix(in srgb, var(--g) 16%, var(--carte)); border-color: var(--g); color: var(--texte); box-shadow: inset 0 0 0 1px var(--g); }
.puce-g.actif small { color: var(--texte); }
@media (prefers-color-scheme: dark) { .puce-g.actif { background: color-mix(in srgb, var(--g) 30%, var(--carte)); } }
.coche-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.coche-txt > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coche-txt small { font-size: 12.5px; font-weight: 550; color: var(--doux); line-height: 1.3; }
.coche-txt small:empty { display: none; }
.coche.fixe { cursor: default; }
.dispo-p { flex: none; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.dispo-p:empty { display: none; }
.dispo-p.libre { background: var(--vert-bg); color: var(--vert); }
.dispo-p.inconnu { background: var(--carte-2); color: var(--pale); }
.dispo-p.pas_libre { background: var(--ambre-bg); color: var(--ambre); }
.liste-coches { max-height: 360px; }
.f-sous-liste { display: flex; justify-content: flex-end; }
.btn.f-chercher { margin-top: 6px; }
.f-avert { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 8px; padding: 10px 12px; border-radius: 12px; background: var(--ambre-bg); color: var(--ambre); font-size: 14px; font-weight: 600; line-height: 1.4; }
.f-avert svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.resume-g { display: block; margin-bottom: 6px; }
.resume-g .tag-g { font-size: 13px; }
#f-resume.eclat-r { animation: eclat-r 1s ease-out; }
@keyframes eclat-r { 15% { box-shadow: 0 0 0 4px var(--balle); } }
.creneaux { margin: 10px 0 4px; }
.cr-titre { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 14px 2px 8px; }
.cr-titre b { font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; color: var(--vert); }
.cr-titre span { font-size: 12.5px; color: var(--doux); }
.cr { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; margin-bottom: 8px; padding: 10px 12px 10px 14px; border-radius: 14px; background: var(--carte); box-shadow: var(--ombre); text-align: left; border-left: 4px solid var(--vert); transition: transform var(--vite) var(--courbe), box-shadow var(--vite); }
.cr:active { transform: scale(.98); }
.cr.partiel { border-left-color: var(--ambre); }
.cr.choisi { box-shadow: 0 0 0 2px var(--accent), var(--ombre); }
.cr-j { flex: none; display: flex; flex-direction: column; min-width: 112px; }
.cr-j b { font-size: 15px; font-weight: 750; letter-spacing: -.015em; }
.cr-j .num { font-size: 14.5px; font-weight: 650; color: var(--texte); }
.cr-s { flex: 1; min-width: 0; font-size: 13px; color: var(--doux); line-height: 1.35; }
.cr-k { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 6px; background: var(--ambre-bg); color: var(--ambre); font-weight: 750; }
.cr-aucun { display: flex; flex-direction: column; gap: 2px; margin: 12px 0 4px; padding: 14px 16px; border-radius: 14px; background: var(--carte-2); font-size: 14.5px; }
.cr-aucun span { color: var(--doux); font-size: 13.5px; }
.cr-court { display: flex; align-items: center; gap: 12px; width: 100%; margin: 10px 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--accent-doux); color: var(--accent); text-align: left; }
.cr-court > svg:first-child { width: 22px; height: 22px; flex: none; }
.cr-court > span { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.cr-court b { font-size: 15px; font-weight: 750; }
@media (prefers-color-scheme: dark) { .cr-court { background: rgba(200, 241, 53, .1); } }
.cr-note { display: flex; gap: 8px; margin: 10px 2px 0; font-size: 13px; color: var(--doux); line-height: 1.4; }
.cr-note svg { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.cr-plus { margin: 0 4px 6px; }
.cr .chevron, .cr-court .chevron { flex: none; }

/* ---------- coach : groupes ---------- */
.seg-j { margin: 0 0 14px; }
.seg-j button { font-size: 14.5px; }
.groupe-l { min-height: 76px; }
.pile-av { display: flex; align-items: center; margin-top: 6px; }
.pile-av .av { box-shadow: 0 0 0 2px var(--carte); }
.pile-av .av + .av { margin-left: -6px; }
.pile-av .plus-av { background: var(--carte-2); color: var(--doux); font-size: 9.5px; }
.pile-av small { margin-left: 8px; font-size: 12.5px; color: var(--doux); }
.groupe-tete { display: flex; align-items: center; gap: 16px; padding: 12px 4px 4px; }
.groupe-tete .nom-p { font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; overflow-wrap: anywhere; }
.groupe-tete.centre-t { flex-direction: column; text-align: center; gap: 8px; padding-top: 16px; }
.groupe-tete.centre-t .photo-cible { cursor: pointer; }
.groupe-actions { margin-top: 8px; }
.groupe-actions .btn.large { margin-top: 10px; }
.couleurs { display: flex; flex-wrap: wrap; gap: 12px; }
.pastille-c { width: 44px; height: 44px; border-radius: 30%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); transition: transform var(--vite) var(--courbe), box-shadow var(--vite); }
.pastille-c.actif { box-shadow: 0 0 0 3px var(--fond), 0 0 0 5px var(--accent); transform: scale(.92); }
.rangee-btn { display: flex; gap: 8px; }
.rangee-btn .champ { flex: 1; min-width: 0; }
.rangee-btn .btn { flex: none; min-height: 52px; }

/* ---------- coach : « Heures libres de mes joueurs » v2 (Imed 10/11/2026, 23h30 : téléphone d'abord) ---------- */
:root { --niv1: color-mix(in srgb, var(--nuit-2) 30%, var(--carte)); --niv2: color-mix(in srgb, var(--nuit-2) 58%, var(--carte)); --niv3: var(--nuit); }
@media (prefers-color-scheme: dark) { :root { --niv1: color-mix(in srgb, var(--balle) 26%, var(--carte)); --niv2: color-mix(in srgb, var(--balle) 58%, var(--carte)); --niv3: var(--balle); } }
@media (min-width: 760px) { #v-app.vue-large { max-width: 980px; } }
.ch-nav { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.btn-rond.doux-r { margin: 0; background: var(--carte); color: var(--texte); box-shadow: var(--ombre); }
.btn-rond.doux-r svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ch-sem { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ch-sem b { font-size: 16px; font-weight: 750; letter-spacing: -.02em; }
.ch-sem .btn.lien { min-height: 28px; font-size: 13.5px; }
.ch-reglages { display: flex; flex-direction: column; gap: 10px; }
.ch-durees { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 16px; background: var(--carte-2); }
@media (prefers-color-scheme: dark) { .ch-durees { background: #0B1424; } }
.ch-durees-t { display: none; flex: none; padding: 0 10px 0 8px; font-size: 14px; font-weight: 650; color: var(--doux); }
.ch-d { flex: 1; min-height: 52px; border-radius: 12px; font-size: 17px; font-weight: 750; letter-spacing: -.02em; color: var(--doux); font-variant-numeric: tabular-nums; transition: background-color var(--vite), color var(--vite), transform var(--vite) var(--courbe); }
.ch-d:active { transform: scale(.96); }
.ch-d.actif { background: var(--accent); color: var(--sur-accent); box-shadow: 0 1px 2px rgba(11, 29, 58, .2), 0 6px 14px -6px rgba(11, 29, 58, .45); }
.ch-filtre { display: flex; flex-wrap: nowrap; gap: 8px; margin: 0 -16px; padding: 2px 16px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.ch-filtre::-webkit-scrollbar { display: none; }
.ch-filtre .puce { flex: none; min-height: 44px; padding: 0 14px; font-size: 14.5px; }
.ch-titre { margin-top: 20px; }
.ch-titre-d { text-transform: none; letter-spacing: -.005em; font-weight: 600; font-size: 13px; color: var(--pale); }
.ch-inconnus { display: flex; gap: 8px; margin: 14px 4px 0; line-height: 1.45; }
.ch-inconnus svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.ch-inconnus .btn.lien { display: inline; min-height: 0; padding: 0; font-size: inherit; }
/* meilleurs moments */
.mm { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; }
.mm-liste .mm + .mm { border-top: 1px solid var(--trait); }
.mm-g { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mm-q { font-size: 20px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.mm-n { font-size: 14px; color: var(--doux); }
.mm-n b { color: var(--vert); font-weight: 800; }
.mm .pile-av { margin-top: 6px; }
.mm .pile-av .av, .pj-l .pile-av .av { width: 28px; height: 28px; font-size: 10.5px; letter-spacing: -.02em; }
.mm .pile-av .av + .av, .pj-l .pile-av .av + .av { margin-left: -4px; }
.mm-prog { flex: none; min-height: 46px; padding: 0 14px; border-radius: 13px; font-size: 15px; }
.mm-bande { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.mm-bande .mm { flex-direction: column; align-items: stretch; padding: 14px; border-radius: var(--r); background: var(--carte); box-shadow: var(--ombre); }
.mm-bande .mm-prog { width: 100%; }
.ch-rien { display: flex; flex-direction: column; gap: 2px; padding: 16px; font-size: 15px; }
.ch-rien span { color: var(--doux); font-size: 14px; }
.ch-vide { margin-top: 16px; padding: 22px 18px 18px; text-align: center; }
.ch-vide-ico { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 14px; background: var(--balle); color: var(--nuit); }
#contenu .ch-vide-ico svg { width: 24px; height: 24px; stroke-width: 1.9; }
.ch-vide p { margin: 0 0 6px; font-size: 15.5px; line-height: 1.45; }
.ch-vide .btn { margin-top: 12px; }
/* bande des 7 jours (jauge = le plus de joueurs libres ensemble) + plages du jour */
.bj { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.bj-j { display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 80px; padding: 8px 2px 6px; border-radius: 14px; background: var(--carte); box-shadow: var(--ombre); transition: background-color var(--vite), transform var(--vite) var(--courbe); }
.bj-j:active { transform: scale(.95); }
.bj-j small { font-size: 12px; font-weight: 650; color: var(--doux); }
.bj-j b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.bj-jauge { width: 72%; height: 5px; margin-top: 4px; border-radius: 3px; background: var(--case); overflow: hidden; }
.bj-jauge i { display: block; height: 100%; border-radius: 3px; background: var(--niv2); }
.bj-jauge.n1 i { background: var(--niv1); } .bj-jauge.n3 i { background: var(--niv3); }
.bj-n { margin-top: 2px; font-size: 11.5px; font-weight: 700; color: var(--pale); }
.bj-j.auj small { color: var(--accent); font-weight: 800; }
.bj-j.auj { box-shadow: var(--ombre), inset 0 0 0 2px var(--balle); }
.bj-j.actif { background: var(--accent); color: var(--sur-accent); }
.bj-j.actif small, .bj-j.actif .bj-n { color: inherit; opacity: .8; }
.bj-j.actif .bj-jauge { background: color-mix(in srgb, var(--sur-accent) 22%, transparent); }
.bj-j.actif .bj-jauge i { background: var(--balle); }
@media (prefers-color-scheme: dark) { .bj-j.actif .bj-jauge i { background: var(--nuit); } }
.bj-j.passe:not(.actif) { opacity: .5; }
.pj-titre { margin: 18px 4px 8px; font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.pj { overflow: hidden; }
.pj-l { --niv: var(--niv2); display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 8px 12px 8px 0; text-align: left; transition: background-color var(--vite); }
.pj > * + * { border-top: 1px solid var(--trait); }
.pj-l:active { background: var(--carte-2); }
.pj-l.n1 { --niv: var(--niv1); } .pj-l.n3 { --niv: var(--niv3); background: color-mix(in srgb, var(--niv3) 7%, var(--carte)); }
.pj-barre { flex: none; align-self: stretch; width: 6px; margin: -8px 0; border-radius: 0 4px 4px 0; background: var(--niv); }
.pj-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pj-t b { font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.pj-t small { font-size: 13.5px; color: var(--doux); }
.pj-l .pile-av { flex: none; }
.pj-l.court .pj-t, .pj-l.court .pile-av { opacity: .5; }
.pj-l.court .pj-barre { background: var(--case-bord); }
.pj-l.seance .pj-barre { background: repeating-linear-gradient(180deg, var(--rouge) 0 4px, transparent 4px 7px); opacity: .7; }
.pj-l.seance .pj-t b { color: var(--doux); }
.pj-rien { padding: 18px 16px; color: var(--doux); font-size: 15px; }
.pl-j.gris { opacity: .5; }
.pl-g { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.pl-court { margin-top: 12px; }
.ch-case-t { margin: 6px 4px 12px; font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* tablette / ordinateur : grille lisible (plage utile, cases hautes, 3 niveaux, chiffre au survol) */
.chaleur-c { padding: 10px 12px 12px 2px; }
.ch-r { display: grid; grid-template-columns: 48px repeat(7, minmax(0, 1fr)); column-gap: 4px; height: 28px; }
.ch-r + .ch-r { margin-top: 2px; }
.ch-r.demi + .ch-r:not(.demi) { margin-top: 5px; }
.ch-tete { height: auto; margin-bottom: 8px; }
.ch-tete span { display: flex; flex-direction: column; align-items: center; font-size: 13px; line-height: 1.2; }
.ch-tete b { font-weight: 750; }
.ch-tete small { font-size: 11.5px; color: var(--pale); font-weight: 600; }
.ch-tete .auj small { display: inline-block; padding: 0 6px; border-radius: 6px; background: var(--balle); color: var(--nuit); font-weight: 750; }
.ch-tete .passe { opacity: .5; }
.ch-h { font-size: 11.5px; font-weight: 650; color: var(--doux); text-align: right; padding-right: 8px; margin-top: -7px; font-variant-numeric: tabular-nums; }
.ch-c { position: relative; display: grid; place-items: center; border-radius: 7px; background: var(--case); transition: transform var(--vite) var(--courbe), box-shadow var(--vite); }
.ch-c:active { transform: scale(.94); }
.ch-c.n1 { background: var(--niv1); } .ch-c.n2 { background: var(--niv2); } .ch-c.n3 { background: var(--niv3); }
.ch-c::before { content: attr(data-n); font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--texte); opacity: 0; transition: opacity var(--vite); }
.ch-c.n2::before, .ch-c.n3::before { color: #fff; }
@media (prefers-color-scheme: dark) { .ch-c.n2::before, .ch-c.n3::before { color: var(--nuit); } }
@media (hover: hover) { .ch-c:hover { box-shadow: 0 0 0 2px var(--accent); z-index: 1; } .ch-c:hover::before { opacity: 1; } }
.ch-c:focus-visible::before, .ch-c:active::before { opacity: 1; }
.ch-c.passe { opacity: .38; }
.ch-c.occ::after { content: ""; position: absolute; inset: 0; border-radius: 7px; background: repeating-linear-gradient(135deg, transparent 0 4px, color-mix(in srgb, var(--rouge) 45%, transparent) 4px 5.5px); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rouge) 55%, transparent); pointer-events: none; }
.ch-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 12px 4px 0; font-size: 12.5px; color: var(--doux); }
.ch-deg { display: inline-flex; gap: 3px; }
.ch-deg i { width: 18px; height: 12px; border-radius: 3px; }
.ch-deg i.n1 { background: var(--niv1); } .ch-deg i.n2 { background: var(--niv2); } .ch-deg i.n3 { background: var(--niv3); }
.ch-occ-l { display: inline-flex; align-items: center; gap: 6px; }
.ch-occ-l i { width: 18px; height: 12px; border-radius: 3px; background: repeating-linear-gradient(135deg, transparent 0 3px, color-mix(in srgb, var(--rouge) 45%, transparent) 3px 4.5px); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rouge) 55%, transparent); }
@media (min-width: 760px) {
  .ch-reglages { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .ch-durees { flex: none; }
  .ch-durees-t { display: block; }
  .ch-d { min-width: 88px; min-height: 46px; }
  .ch-filtre { margin: 0; padding: 2px 0; flex-wrap: wrap; }
}
/* onglet Séances du coach : bande de la semaine (‹ cette semaine ›, 7 jours, points = séances) */
.bs { margin: 8px 0 4px; padding: 2px 6px 6px; border-radius: var(--r); background: var(--carte); box-shadow: var(--ombre); }
.bs-haut { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.bs-fl { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--doux); }
.bs-fl:active { background: var(--carte-2); }
#contenu .bs-fl svg { width: 18px; height: 18px; stroke-width: 2.2; }
.bs-t { font-size: 14px; font-weight: 700; color: var(--texte); }
.bs-jours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.bs-j { display: flex; flex-direction: column; align-items: center; min-height: 56px; padding: 4px 0 2px; border-radius: 12px; transition: background-color var(--vite); }
.bs-j:active { background: var(--carte-2); }
.bs-j small { font-size: 11.5px; font-weight: 650; color: var(--pale); }
.bs-j b { min-width: 30px; padding: 1px 4px; border-radius: 9px; font-size: 17px; font-weight: 750; text-align: center; }
.bs-j.auj b { background: var(--balle); color: var(--nuit); }
.bs-j.auj small { color: var(--texte); }
.bs-j.passe { opacity: .55; }
.bs-pts { display: flex; gap: 3px; height: 6px; margin-top: 4px; }
.bs-pts i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ---------- coach : fiche joueur, heures libres ---------- */
.fiche-dispo { padding: 14px 16px; }
.fiche-dispo .fd-t { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 14px 0 8px; font-size: 13px; font-weight: 750; color: var(--texte); }
.fiche-dispo .fd-t:first-child, .fiche-dispo .fd-note + .fd-t { margin-top: 0; }
.fiche-dispo .fd-t span { font-weight: 600; color: var(--doux); font-size: 12.5px; text-align: right; }
.fd-note { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 8px 10px; border-radius: 10px; background: var(--vert-bg); color: var(--vert); font-size: 13.5px; font-weight: 650; }
.fd-note svg { width: 16px; height: 16px; }
.vide-fd p { margin: 0 0 4px; }
.maj-le { text-transform: none; letter-spacing: -.005em; font-weight: 600; font-size: 12.5px; color: var(--pale); }

@media (min-width: 720px) { .dispo-corps { padding: 16px 24px 28px; } }
@media (max-width: 360px) { .seg-j button { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .dispo-ed { animation: none; } }

/* ---------- compte PARENT (Imed 10/11/2026) : sélecteur d'enfant, vue « Tous », fiches enfant ---------- */
.selecteur {
  position: sticky; top: calc(56px + var(--haut)); z-index: 14; margin: 0 -16px; padding: 2px 0 10px;
  background: color-mix(in srgb, var(--fond) 86%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
}
.sel-rangee { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.sel-rangee::-webkit-scrollbar { display: none; }
.sel-item {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px 4px 5px; scroll-snap-align: start;
  border-radius: 999px; background: var(--carte); box-shadow: var(--ombre); font-size: 15px; font-weight: 650; color: var(--texte); letter-spacing: -.01em;
  transition: background-color var(--vite), color var(--vite), transform var(--vite) var(--courbe);
}
.sel-item:active { transform: scale(.96); }
.sel-item .av { width: 34px; height: 34px; font-size: 12.5px; }
.sel-item .av img { border-radius: 50%; }
.sel-item.actif { background: var(--accent); color: var(--sur-accent); box-shadow: 0 1px 2px rgba(11, 29, 58, .2), 0 6px 16px -8px rgba(11, 29, 58, .6); }
.sel-item.actif .av { box-shadow: 0 0 0 2px var(--sur-accent); }
.av.sel-tous { background: var(--accent-doux); color: var(--accent); }
.av.sel-tous svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sel-item.actif .av.sel-tous { background: color-mix(in srgb, var(--sur-accent) 18%, transparent); color: var(--sur-accent); box-shadow: none; }
.sel-n { position: absolute; top: -3px; left: 28px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #D92D20; color: #fff; font-size: 11px; font-weight: 750; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--fond); font-variant-numeric: tabular-nums; }
@media (prefers-color-scheme: dark) { .sel-item.actif { box-shadow: 0 6px 18px -8px rgba(200, 241, 53, .45); } .av.sel-tous { background: rgba(200, 241, 53, .12); } }
#contenu.change { opacity: .55; transition: opacity 120ms; pointer-events: none; }

.pour-tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 2px; border-radius: 999px; background: var(--accent-doux); color: var(--accent); font-size: 13px; font-weight: 750; letter-spacing: -.005em; vertical-align: middle; }
.pour-tag .av { box-shadow: 0 0 0 1.5px var(--carte); }
@media (prefers-color-scheme: dark) { .pour-tag { background: rgba(200, 241, 53, .12); } }
.demande-pour { margin: -4px 0 12px; }
.seance-g .pour-tag + .tag-g { margin-left: 6px; }
.pour-mini { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 1px 8px; border-radius: 999px; background: var(--accent-doux); color: var(--accent); font-size: 11.5px; font-weight: 750; }
@media (prefers-color-scheme: dark) { .pour-mini { background: rgba(200, 241, 53, .12); } }
.avis-pour { color: var(--accent); font-weight: 750; }
@media (prefers-color-scheme: light) { .avis-pour { color: #1D4A8A; } }

.tag-parent { margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: var(--carte-2); color: var(--doux); font-size: 11.5px; font-weight: 650; white-space: nowrap; }
.msg-par { margin: 10px 0 3px 12px; font-size: 12.5px; font-weight: 650; color: var(--doux); }
.msg-par.moi { margin: 10px 12px 3px 0; text-align: right; }

/* inscription parent : un bloc par enfant */
.auth-enfants { margin-top: 4px; }
.auth-enfants .titre-sec { margin-top: 26px; }
.enfant-ins { padding: 16px 16px 18px; margin-bottom: 12px; text-align: left; }
.enfant-ins .etiquette:first-of-type { margin-top: 14px; }
.enfant-tete { display: flex; align-items: center; gap: 14px; }
.enfant-tete.seul { margin: 8px 0 4px; }
.enfant-titre { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.enfant-titre b { font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.enfant-titre small { font-size: 13px; color: var(--doux); }
.photo-cible.petite .photo-plus { width: 24px; height: 24px; }
#enfant-plus { margin-top: 0; }
.btn-parent svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.invit-aide { margin: 10px 4px 0 !important; }

/* compte : accès de l'enfant, coach : carte du parent, ajout d'un enfant */
.acces-carte { padding: 4px 16px 14px; }
.acces-carte .aide { margin-top: 2px; }
.acces-carte .btn.lien { padding-left: 0; }
.parent-carte { margin: 4px 0 14px; padding: 6px 16px 14px; }
.parent-carte .ligne { padding-left: 0; padding-right: 0; }
.parent-carte .sous { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); }
.parent-carte .ligne-btns { margin-top: 4px; }
.parent-carte .aide { margin: 10px 0 0; }
.info-coach { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; padding: 12px 14px; font-size: 15px; }
.coche.retire { opacity: .62; }
.coche i.case-c.ok { background: var(--vert); border-color: var(--vert); }
.coche i.case-c.ok::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.coche-txt small { display: block; font-size: 12.5px; font-weight: 500; color: var(--doux); }

/* ---------- international (Imed 10/11/2026) : téléphone avec pays, fenêtre de choix, « heure de Paris » ---------- */
.tel-ligne { display: flex; gap: 8px; align-items: stretch; }
.tel-ligne .champ { flex: 1; min-width: 0; }
.tel-pays { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 12px; min-height: 52px; border-radius: 14px;
  border: 1.5px solid var(--trait); background: var(--carte); color: var(--texte); font-size: 16px; font-weight: 650; cursor: pointer; }
.tel-pays:active { background: var(--carte-2); }
.tel-pays .drapeau { font-size: 22px; line-height: 1; }
.tel-pays svg { width: 16px; height: 16px; fill: none; stroke: var(--doux); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.choix { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; background: var(--fond);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.choix[hidden] { display: none; }
@media (min-width: 720px) { .choix { inset: 6vh auto 6vh 50%; width: 560px; transform: translateX(-50%); border-radius: 20px; box-shadow: var(--ombre-haute); overflow: hidden; } }
.choix .feuille-haut { flex: none; }
.choix-cherche { flex: none; padding: 4px 16px 10px; }
.choix-liste { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 12px 24px; overscroll-behavior: contain; }
.choix-l { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 12px; border: 0; border-radius: 12px;
  background: none; color: var(--texte); text-align: left; font-size: 16px; cursor: pointer; }
.choix-l:active, .choix-l.actif { background: var(--carte); }
.choix-l.actif { box-shadow: inset 0 0 0 1.5px var(--accent); }
.choix-g { flex: none; width: 28px; font-size: 22px; text-align: center; }
.choix-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.choix-t b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.choix-t small { color: var(--doux); font-size: 13px; }
.choix-d { flex: none; color: var(--doux); font-size: 14px; font-weight: 600; }
.choix-vide { padding: 24px 0; }
.fz-lieu { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 7px; background: var(--carte-2); color: var(--doux);
  font-size: 12px; font-weight: 650; letter-spacing: 0; vertical-align: middle; white-space: nowrap; }
.heure .fz-lieu, .quand .fz-lieu { vertical-align: 5px; }
.fz-form { margin-top: 8px; }
.tel-lien { color: inherit; text-decoration: none; }

/* =====================================================================================================================
   FINITION (Imed 10/11/2026 : « beau, présentable, pro et responsive »). Tablette et ordinateur ne sont pas un téléphone
   étiré : ≥ 700 px feuilles et menus en fenêtres centrées ; ≥ 1024 px barre latérale (logo, onglets, « Nouvelle
   séance »), contenu centré, Messages en 2 colonnes (liste + conversation) ; ≥ 1280 px fiche joueur et détail de
   séance en panneau à droite de la liste.
   ===================================================================================================================== */
.avis-plus { display: flex; align-items: center; justify-content: center; gap: 2px; width: 100%; min-height: 44px; border-top: 1px solid var(--trait); color: var(--lien); font-size: 14.5px; font-weight: 650; }
.avis-plus .chevron { width: 16px; height: 16px; stroke: currentColor; }
.groupe-l .pile-av { flex-wrap: nowrap; }
.groupe-l .pile-av small { white-space: nowrap; }
.conv-item.ouverte .conv-ligne { background: color-mix(in srgb, var(--accent) 8%, var(--carte)); }
.conv-item.ouverte .conv-ligne::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  button.ligne:hover, button.seance:hover, .conv-item .conv-ligne:hover, .coche:hover, .hj-l:hover, .pj-l:hover { background: color-mix(in srgb, var(--texte) 3.5%, var(--carte)); }
  .btn.contour:hover, .btn-export:hover, .puce:not(.actif):hover { border-color: color-mix(in srgb, var(--texte) 22%, var(--trait)); }
  .btn.principal:hover { filter: brightness(1.12); }
  .btn.lien:hover, .fermer:hover { text-decoration: underline; text-underline-offset: 3px; }
}

@media (min-width: 700px) {
  #v-app { max-width: 720px; padding-left: 24px; padding-right: 24px; }
  .entete { margin: 0 -24px; padding-left: 28px; padding-right: 28px; }
  .selecteur { margin: 0 -24px; }
  .sel-rangee { padding: 2px 24px; }
  .periode { margin: 0 -24px 8px; padding: 2px 24px 4px; }
  .totaux { gap: 16px; }
  .plus { right: max(24px, calc(50% - 336px)); }
}
@keyframes modale { from { opacity: 0; transform: translate(-50%, -47%) scale(.98); } }
@media (min-width: 700px) and (min-height: 600px) {
  .feuille {
    top: 50%; bottom: auto; left: 50%; right: auto; width: min(620px, calc(100vw - 48px)); max-width: none; margin: 0;
    max-height: min(calc(100dvh - 64px), 920px); border-radius: 24px; transform: translate(-50%, -50%); animation: modale 220ms var(--courbe);
    box-shadow: 0 0 0 .5px color-mix(in srgb, var(--texte) 10%, transparent), 0 30px 80px -12px rgba(4, 10, 20, .45);
  }
  .feuille .poignee { display: none; }
  .feuille-haut { padding: 12px 16px 8px; }
  .feuille-corps { padding: 4px 24px 28px; }
  .aide-barre { margin: 0 -24px 10px; padding: 8px 24px; }
  .actions { top: 50%; bottom: auto; left: 50%; right: auto; width: min(420px, calc(100vw - 48px)); margin: 0; padding: 0; transform: translate(-50%, -50%); animation: modale 200ms var(--courbe); }
  .voile { background: rgba(4, 10, 20, .5); }
}

@media (min-width: 1024px) {
  :root { --sb: 248px; --liste: 404px; }
  #v-app { max-width: none; margin: 0; padding: 0 40px 72px calc(var(--sb) + 40px); }
  #v-app > :not(.barre):not(.plus) { max-width: 820px; margin-left: auto; margin-right: auto; }
  #v-app.vue-large > :not(.barre):not(.plus) { max-width: 1060px; }
  .entete { display: none; }
  #contenu { padding-top: 28px; }
  .selecteur { top: 0; padding-top: 16px; }
  .sel-rangee { padding: 2px 0; }
  .periode { margin: 0 0 8px; padding: 2px 0 4px; }
  #hors-ligne { margin-top: 16px; }
  h1.titre { font-size: 38px; }

  /* barre latérale */
  .barre {
    top: 0; bottom: 0; left: 0; right: auto; width: var(--sb); transform: none; border-radius: 0; flex-direction: column; justify-content: flex-start; gap: 4px;
    padding: 24px 16px; border: 0; border-right: 1px solid var(--trait); box-shadow: none; background: var(--carte); -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .barre::before {
    content: "MrCoach"; display: flex; align-items: center; height: 40px; margin: 0 6px 22px; padding-left: 50px;
    background: url("/marque.svg") left center / 38px 38px no-repeat; font-size: 21px; font-weight: 800; letter-spacing: -.035em; color: var(--texte);
  }
  .barre button { flex: none; max-width: none; flex-direction: row; justify-content: flex-start; gap: 14px; min-height: 48px; padding: 0 14px; border-radius: 12px; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; color: var(--doux); transition: background-color var(--vite), color var(--vite); }
  .barre button svg { width: 24px; height: 24px; }
  .barre button:hover { background: var(--carte-2); color: var(--texte); }
  .barre button.actif { background: var(--accent-doux); color: var(--accent); }
  .barre button:active svg { transform: none; }
  .barre .pastille { position: static; margin-left: auto; box-shadow: none; }
  @media (prefers-color-scheme: dark) { .barre button.actif { background: rgba(200, 241, 53, .1); } }
  .plus { left: 16px; right: auto; bottom: 24px; width: calc(var(--sb) - 32px); height: 52px; border-radius: 14px; display: flex; gap: 8px; justify-content: center; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
  .plus::after { content: "Nouvelle séance"; }
  .plus svg { width: 22px; height: 22px; }
  .toast { left: calc(50% + var(--sb) / 2); bottom: 32px; }
  .dispo-ed { left: var(--sb); }

  /* Messages : liste à gauche, conversation à droite */
  body[data-onglet="messages"] #v-app { width: calc(var(--sb) + var(--liste)); padding-left: calc(var(--sb) + 24px); padding-right: 24px; }
  body[data-onglet="messages"] #v-app > :not(.barre):not(.plus) { max-width: none; }
  body[data-onglet="messages"] #v-app:not([hidden])::after {
    content: "Choisissez une conversation"; position: fixed; top: 0; bottom: 0; right: 0; left: calc(var(--sb) + var(--liste)); display: grid; place-items: center;
    padding-top: 92px; border-left: 1px solid var(--trait); color: var(--doux); font-size: 16px; font-weight: 600;
    background: var(--fond-conv) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23868C96' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 19.5 6 15.6A7.8 7.8 0 0 1 4.2 11c0-4.3 3.5-7.5 7.8-7.5s7.8 3.2 7.8 7.5-3.5 7.5-7.8 7.5a8.6 8.6 0 0 1-3.6-.8z'/%3E%3C/svg%3E") center calc(50% - 22px) / 64px no-repeat;
  }
  .conv { left: var(--sb); right: 0; max-width: none; margin: 0; box-shadow: none; border-left: 1px solid var(--trait); }
  body[data-onglet="messages"] .conv { left: calc(var(--sb) + var(--liste)); }
  html.conv-ouverte, html.conv-ouverte body { overflow: visible; }
  .conv-haut { padding-left: 12px; }
  .conv-fil { padding: 0 24px; }
  .conv-bas { padding-left: 20px; padding-right: 20px; }
  .bulle { max-width: min(72%, 520px); }
}
@keyframes cote { from { transform: translateX(48px); opacity: .3; } }
@media (min-width: 1280px) {
  .feuille.f-cote {
    top: 0; bottom: 0; left: auto; right: 0; width: 460px; height: 100dvh; max-height: none; transform: none; border-radius: 0; animation: cote 240ms var(--courbe);
    box-shadow: -1px 0 0 var(--trait), -24px 0 60px -24px rgba(4, 10, 20, .28);
  }
  body:has(#feuille.f-cote:not([hidden])) #voile { background: transparent; pointer-events: none; animation: none; }
  body:has(#feuille.f-cote:not([hidden])) #v-app { padding-right: calc(460px + 40px); }
}
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) { .feuille.f-cote { animation: none; } }
/* « Écrire au sujet de cette séance » avec beaucoup de joueurs : les boutons passent à la ligne au lieu de s'écraser */
.ligne-btns.ecrire-plusieurs { flex-wrap: wrap; gap: 8px; }
.ligne-btns.ecrire-plusieurs > * { flex: 1 1 auto; min-width: max-content; }
/* proposition d'un coach avec étiquette de groupe : l'étiquette passe au-dessus (jamais coupée au milieu d'un mot) */
.demande .qui:has(.tag-g) { flex-wrap: wrap; row-gap: 10px; }
.demande .qui .tag-g { order: -2; margin-left: 0; max-width: 100%; }
.demande .qui:has(.tag-g)::after { content: ""; order: -1; flex-basis: 100%; height: 0; }

/* iPhone / iPad (Safari) : un flou de fond sur un élément fixe ou collant se redessine mal pendant le défilement
   (la barre du bas apparaissait à moitié effacée — Imed, 11/11/2026). Sur ces appareils : fond quasi opaque, sans flou,
   et chaque barre sur sa propre couche. Le flou reste sur ordinateur. */
@supports (-webkit-touch-callout: none) {
  .barre, .entete, .selecteur, .conv-haut, .dispo-haut {
    backdrop-filter: none; -webkit-backdrop-filter: none; transform: translateZ(0); will-change: transform;
  }
  .barre { background: color-mix(in srgb, var(--carte) 97%, transparent); }
  .entete, .selecteur, .conv-haut, .dispo-haut { background: color-mix(in srgb, var(--fond) 97%, transparent); }
  @media (min-width: 700px) { .barre { transform: translateX(-50%) translateZ(0); } }
}

/* =====================================================================================================================
   MES STATISTIQUES (coach), VISUALISEUR DE PDF, CALENDRIER D'UN JOUEUR (Imed 11/11/2026) — téléphone d'abord,
   iPhone SE compris ; tablette / ordinateur : statistiques sur 2 colonnes.
   ===================================================================================================================== */
/* carte « Ce mois » en haut des Séances du coach */
.carte-stats {
  display: flex; align-items: center; gap: 12px; width: 100%; margin: -4px 0 14px; padding: 12px 14px; text-align: left;
  background: var(--carte); border-radius: var(--r); box-shadow: var(--ombre); transition: transform var(--vite) var(--courbe), background-color var(--vite);
}
.carte-stats:active { transform: scale(.985); background: var(--carte-2); }
.cs-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(150deg, var(--nuit-2), var(--nuit) 75%); color: var(--balle); flex: none; }
.cs-ico svg { width: 22px; height: 22px; stroke-width: 2.1; }
.cs-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cs-txt small { font-size: 12.5px; font-weight: 650; color: var(--doux); text-transform: uppercase; letter-spacing: .05em; }
.cs-txt small .cs-avenir { text-transform: none; letter-spacing: -.005em; color: var(--pale); font-weight: 600; }
.cs-txt b { font-size: 16px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carte-stats > .chevron { width: 18px; height: 18px; color: var(--pale); }
@media (prefers-color-scheme: dark) { .cs-ico { background: rgba(200, 241, 53, .12); } }

/* Compte › Mes statistiques ; fiche joueur, historique : calendrier */
.lien-stats { margin-top: 12px; border-radius: var(--r); }
.lien-stats .chevron, .st-jour .chevron { width: 18px; height: 18px; color: var(--pale); }
.fiche-cal { margin: 0 0 14px; }
.cal-btn { margin: -4px 0 14px; }

/* retour vers l'onglet d'origine */
.retour-vue { display: inline-flex; align-items: center; gap: 2px; min-height: 40px; margin: 6px 0 -6px -6px; padding: 0 10px 0 4px; border-radius: 10px; color: var(--lien); font-weight: 600; font-size: 16px; }
.retour-vue svg { width: 22px; height: 22px; stroke-width: 2.2; }
.retour-vue:active { background: var(--carte-2); }

/* tuiles : 2 × 2 sur téléphone */
.totaux.t4 { grid-template-columns: 1fr 1fr; }
.totaux.t4 .gros { font-size: 30px; }
.tuile.rouge-t .gros { color: var(--rouge); }
.tuile.rouge-t .tuile-ico { background: var(--rouge-bg); color: var(--rouge); }
.stats-second { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 12px 2px 4px; font-size: 13.5px; color: var(--doux); }
.stats-second span { padding: 5px 10px; border-radius: 999px; background: var(--carte); box-shadow: var(--ombre); white-space: nowrap; }
.stats-second b { color: var(--texte); font-weight: 700; font-variant-numeric: tabular-nums; }

/* graphique en barres : touchez une barre = le chiffre exact */
.st-graphe { padding-bottom: 12px; }
.g-info { min-height: 22px; margin: -4px 0 10px; font-size: 14px; color: var(--texte); font-variant-numeric: tabular-nums; }
.g-info b { font-weight: 700; }
.st-barres { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); align-items: end; gap: 4px; height: 150px; padding-top: 22px; border-bottom: 1px solid var(--trait); }
.st-barres.serre { gap: 2px; }
.gb { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; padding: 0; border-radius: 4px 4px 0 0; }
.gb i { display: block; width: 100%; max-width: 30px; flex: none; }
.gb .gb-f { border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--accent) 30%, var(--carte)); transition: height 300ms var(--courbe), background-color var(--vite); }
.gb .gb-a { border-radius: 3px 3px 0 0; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--carte)) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); }
.gb .gb-a + .gb-f { border-radius: 0; }
.gb .gb-a[style*="height:0%"] + .gb-f { border-radius: 3px 3px 0 0; }
.gb.haut .gb-f { background: var(--accent); }
.gb.zero::after { content: ""; display: block; width: 100%; max-width: 30px; height: 2px; border-radius: 1px; background: var(--trait); }
.gb.sel { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.gb.sel .gb-f { box-shadow: 0 0 0 2px var(--carte), 0 0 0 3.5px var(--accent); }
.gb-val { position: absolute; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 750; white-space: nowrap; color: var(--accent); font-variant-numeric: tabular-nums; pointer-events: none; }
.st-axe { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; margin-top: 6px; }
.st-barres.serre + .st-axe { gap: 2px; }
.st-axe span { text-align: center; font-size: 11px; line-height: 1.25; color: var(--doux); white-space: nowrap; overflow: visible; font-variant-numeric: tabular-nums; }
.st-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; font-size: 12.5px; color: var(--doux); }
.st-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.st-leg .l-haut { background: var(--accent); }
.st-leg .l-f { background: color-mix(in srgb, var(--accent) 30%, var(--carte)); }
.st-leg .l-a { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--carte)) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }

/* par jour de la semaine */
.st-sem { padding: 10px 16px 4px; }
.sem-l { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; min-height: 36px; }
.sem-j { font-size: 14px; font-weight: 650; color: var(--doux); }
.sem-b { height: 10px; border-radius: 5px; background: var(--carte-2); overflow: hidden; }
.sem-b i { display: block; height: 100%; border-radius: 5px; background: color-mix(in srgb, var(--accent) 35%, var(--carte)); }
.sem-l.fort .sem-b i { background: var(--accent); }
.sem-l.fort .sem-j { color: var(--texte); }
.sem-v { min-width: 92px; text-align: right; font-size: 14px; font-weight: 700; }
.sem-v small { display: block; font-size: 11.5px; font-weight: 500; color: var(--doux); margin-top: -2px; }
.st-sem .aide { margin: 6px 0 8px; }

/* jour par jour */
.st-jour { min-height: 60px; }
.st-jour .milieu { display: flex; flex-direction: column; gap: 2px; }
.st-jour .nom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-jour.avenir .nom { color: var(--doux); }
.st-fort { padding: 2px 7px; border-radius: 6px; background: var(--balle); color: var(--nuit); font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.st-avenir-btn { display: flex; margin: 8px auto 6px; }
.st-jour-res { margin: 4px 4px 12px; text-align: center; color: var(--doux); font-size: 15px; }
.seance.st-annulee .heure { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--rouge) 55%, transparent); color: var(--doux); }

/* tablette / ordinateur : 2 colonnes */
@media (min-width: 760px) {
  .stats-grille { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 24px; align-items: start; }
  .stats-grille .st-col:last-child > .titre-sec:first-child { margin-top: 4px; }
}
@media (max-width: 350px) {
  .totaux.t4 .gros { font-size: 26px; }
  .totaux.t4 .tuile { padding: 14px 12px; }
  .stats-second { font-size: 12.5px; }
  .sem-v { min-width: 80px; }
  .st-axe span { font-size: 10px; }
}

/* calendrier à envoyer */
.cal-tete { display: flex; align-items: center; gap: 12px; margin: 6px 2px 12px; }
.cal-tete b { display: block; font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.cal-liste .cal-l { min-height: 58px; padding: 10px 14px; }
.cal-j { flex: none; width: 54px; display: flex; flex-direction: column; line-height: 1.2; }
.cal-j b { font-size: 15px; font-weight: 750; }
.cal-j span { font-size: 12.5px; color: var(--doux); }
.cal-l .milieu { display: flex; flex-direction: column; min-width: 0; }
.cal-h { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.cal-l small { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-msg { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--carte-2); color: var(--doux); font-size: 14px; line-height: 1.45; word-break: break-word; }
.cal-parent { margin-top: 16px; }
.cal-parent .ligne-btns .btn { min-height: 48px; font-size: 15px; }

/* visualiseur de PDF (plein écran, au-dessus de tout sauf les toasts) */
html.pdfv-ouvert, html.pdfv-ouvert body { overflow: hidden; }
.pdfv { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; background: #2B3240; animation: fondu var(--vite) ease-out; }
.pdfv-haut {
  display: grid; grid-template-columns: 88px 1fr 88px; align-items: center; gap: 4px; padding: calc(6px + var(--haut)) 10px 8px;
  background: var(--fond); border-bottom: 1px solid var(--trait); flex: none;
}
.pdfv-fermer { justify-self: start; min-height: 44px; padding: 0 10px; border-radius: 10px; color: var(--lien); font-weight: 650; font-size: 16px; }
.pdfv-fermer:active { background: var(--carte-2); }
.pdfv-titre { min-width: 0; text-align: center; display: flex; flex-direction: column; }
.pdfv-titre b { font-size: 15.5px; font-weight: 700; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdfv-titre small { font-size: 12.5px; color: var(--doux); font-variant-numeric: tabular-nums; }
.pdfv-pdf { justify-self: end; padding: 3px 7px; border-radius: 6px; background: #D93B2B; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.pdfv-pages { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 16px 12px 20px; }
.pdfv-page { display: block; width: 100%; max-width: 820px; height: auto; margin: 0 auto 14px; background: #fff; border-radius: 4px; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.pdfv-attente, .pdfv-erreur { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 30vh; color: #E6E9EF; font-weight: 600; }
.pdfv-erreur .err { color: #FFB4AA; text-align: center; }
.pdfv-attente .roue { width: 28px; height: 28px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: exp-tourne .8s linear infinite; }
.pdfv-bas { flex: none; padding: 12px 16px calc(12px + var(--bas)); background: var(--fond); border-top: 1px solid var(--trait); }
.pdfv-bas > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.pdfv-envoyer { min-height: 56px; font-size: 17px; }
.pdfv-liens { display: flex; justify-content: center; gap: 10px; margin-top: 6px; }
.pdfv-liens.seuls { margin-top: 0; }
.pdfv-liens.seuls > * { flex: 1; min-height: 52px; }
.pdfv-aide { margin: 6px auto 0; text-align: center; font-size: 12.5px; color: var(--doux); }
@media (prefers-color-scheme: dark) { .pdfv { background: #050A13; } }
@media (min-width: 700px) { .pdfv-pages { padding: 24px; } }

/* en-tête de « Mes statistiques » : retour à gauche, Exporter à droite (le titre garde toute la largeur) */
.st-haut { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.st-haut .retour-vue { margin: 0 0 0 -6px; }
.btn-export.st-export { position: static; }
/* tuiles compactes : le chiffre d'abord, l'icône dans le coin */
.totaux.t4 .tuile { position: relative; padding: 14px 14px 12px; }
.totaux.t4 .tuile-ico { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; margin: 0; border-radius: 9px; }
.totaux.t4 .tuile-ico svg { width: 17px; height: 17px; }
.totaux.t4 .doux { font-size: 13.5px; margin-top: 2px; line-height: 1.3; }

/* Onglet « Dispos » du joueur (Imed 11/11/2026) : l'écran des heures libres s'ouvre sous la barre d'onglets, qui reste visible */
#v-dispos.en-onglet { z-index: 19; animation: none; }
#v-dispos.en-onglet .dispo-corps { padding-bottom: calc(104px + var(--bas)); }
.barre .pastille.point { min-width: 10px; width: 10px; height: 10px; padding: 0; top: 4px; left: calc(50% + 10px); }
.raccourci-dispo .btn.lien { flex: none; padding: 0 2px; pointer-events: none; }

/* ===== simplicité (Imed 11/11/2026) : accueils lisibles d'un coup d'œil, moins de touchers ===== */
/* carte « Notifications » : deux lignes au plus */
.info-notif.compacte { padding: 12px 14px; gap: 12px; align-items: flex-start; }
.info-notif.compacte .ico { width: 34px; height: 34px; border-radius: 10px; }
.info-notif.compacte .ico svg { width: 19px; height: 19px; }
.info-notif.compacte p { margin: 6px 0 6px; font-size: 14.5px; line-height: 1.35; }
.info-notif.compacte .notif-actions { margin-top: 0; gap: 4px 8px; }
.info-notif.compacte .btn { min-height: 40px; font-size: 14.5px; padding: 0 14px; border-radius: 12px; }
.info-notif.compacte .btn.lien { padding: 0 8px; }
/* « qui vient ? » en mots sous les joueurs d'une séance (coach) */
.qui-vient { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 13.5px; font-weight: 650; }
.qv { display: inline-flex; align-items: center; gap: 6px; }
.qv::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.qv.accepte { color: var(--vert); } .qv.attente { color: var(--ambre); } .qv.refuse { color: var(--rouge); }
.voir-suite { margin-top: 14px; }
/* formulaire de séance : les 14 prochains jours en une rangée qui défile */
.f-jours-defil { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px 4px; scroll-padding: 0 20px; }
.f-jours-defil::-webkit-scrollbar { display: none; }
.f-jours-defil .puce { flex: none; }
.puce-jour small { font-size: 13px; font-weight: 600; opacity: .75; }
/* joueur : « Prochaine séance » en haut */
.carte.prochaine { display: block; width: 100%; text-align: left; padding: 18px 18px 16px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #16335C, #0B1D3A 70%); color: #fff; border: 0; }
.carte.prochaine:active { transform: scale(.99); }
.prochaine .pr-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.prochaine .pr-tags:empty { display: none; }
.prochaine .pr-jour { font-size: 15px; font-weight: 650; color: var(--balle, #C8F135); }
.prochaine .pr-heure { font-size: 34px; font-weight: 800; letter-spacing: -.045em; line-height: 1.1; margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.prochaine .pr-heure span { font-size: 20px; font-weight: 600; opacity: .7; letter-spacing: -.02em; }
.prochaine .pr-infos { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14.5px; opacity: .85; }
.prochaine .pr-infos svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.prochaine .tag-g, .prochaine .pour-tag { background: rgba(255, 255, 255, .12); color: #fff; border-color: transparent; }
/* demande : une seule ligne d'en-tête (enfant · coach · groupe) */
.demande .qui { flex-wrap: wrap; gap: 8px; }
.demande .qui .tag-g { order: 0; margin-left: auto; }
.demande .qui:has(.tag-g)::after { display: none; }
.demande .qui .av { width: 28px; height: 28px; font-size: 11px; }
.demande .quand-jour { margin-top: 12px; }
/* autres dates d'une série : lignes courtes avec ✕ / ✓ */
.ad-l { min-height: 60px; gap: 10px; }
.ad-l .nom { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ad-btn { flex: none; width: 48px; min-height: 44px; padding: 0; border-radius: 12px; }
/* parent, vue « Tous » : deux enfants dans la même séance = une carte */
.seance.multi .multi-l { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.seance-enfant { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 10px; border-radius: 12px; background: var(--carte-2); text-align: left; }
.seance-enfant .pour-tag { min-width: 0; background: transparent; padding-left: 0; }
.seance-enfant .etat { margin-left: auto; }
.seance-enfant .chevron { width: 18px; height: 18px; fill: none; stroke: var(--pale, var(--doux)); stroke-width: 2; }
.seance-enfant:active { opacity: .8; }
.raccourci-absence { border-radius: var(--r); margin-top: 10px; }
.raccourci-absence .ico-rond svg { width: 20px; height: 20px; }
/* Joueurs (coach) : recherche + ligne de totaux (les grosses tuiles sont dans « Mes statistiques ») */
.totaux-ligne { margin: 10px 4px 0; font-size: 15px; color: var(--doux); }
.totaux-ligne b { color: var(--texte); font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.cherche-j { margin-top: 12px; }
.vide-court { margin: 0 4px; font-size: 15px; }
.avis:not(.tout) .avis-t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.avis-l { padding: 10px 0; font-size: 14.5px; }
@media (max-width: 380px) { .info-notif.compacte .ico { display: none; } .info-notif.compacte { padding: 10px 14px; } }

/* Annuler une séance (simulation 12/11/2026) : motif facultatif dans la feuille de confirmation */
.actions-apercu .motifs-annul { margin: 12px 0 8px; flex-wrap: wrap; }
.actions-apercu #annul-motif { margin: 0; font-size: 16px; }
/* absence signalée sur une séance (simulation 12/11/2026) */
.alerte-absence { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13.5px; font-weight: 650; color: var(--ambre); }
.alerte-absence svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.alerte-absence.bloc { align-items: flex-start; margin: 4px 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--ambre-bg); font-weight: 600; line-height: 1.4; }
.alerte-absence.bloc svg { margin-top: 2px; }
/* parent : choix de l'enfant dans l'écran Dispos (simulation 12/11/2026) */
.de-sel { margin: 0 -16px 14px; }
.prochaine .pr-absence { margin-top: 12px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 196, 0, .16); color: #FFD15C; }
/* simulation 12/11/2026 : toast d'erreur (point d'exclamation ambre au lieu de la coche), avatar d'en-tête touchable, texte ambre */
.toast.erreur::before { background: #F2B84E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5.5v5.5' fill='none' stroke='%230B1D3A' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='10' cy='14.3' r='1.4' fill='%230B1D3A'/%3E%3C/svg%3E") center/20px no-repeat; }
.entete-moi { border-radius: 50%; padding: 0; background: none; border: 0; cursor: pointer; }
.entete-moi:active { transform: scale(.94); }
.txt-ambre { color: var(--ambre); font-weight: 650; }
/* E32 (simulation 12/11/2026) : sur téléphone, le toast s'affiche EN HAUT, sous l'en-tête — il ne recouvre plus les boutons
   qu'on vient de toucher, ni la saisie d'un message ; il laisse passer les touchers (sauf s'il porte « Annuler »). */
@media (max-width: 1023px) {
  .toast { top: calc(64px + var(--haut)); bottom: auto !important; pointer-events: none; animation-name: toast-haut; }
  .toast.avec-action { pointer-events: auto; }
}
@keyframes toast-haut { from { opacity: 0; transform: translate(-50%, -12px) scale(.98); } }
/* simulation 12/11/2026 : visionneuse photo à la taille de l'écran, aides sous les suppressions, carte « Ce mois » sur deux lignes */
.visionneuse img { width: 100%; height: 100%; }
.act-aide { display: block; font-size: 12.5px; font-weight: 500; color: var(--doux); margin-top: 1px; }
.carte-stats .cs-l2 { display: block; margin-top: 2px; white-space: normal; }
.carte-stats .cs-txt b { white-space: normal; }

/* ===== Séances du coach = agenda du jour (Imed 12/11/2026) ===== */
.ligne-mois { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; margin: 6px 0 2px; padding: 8px 14px; border-radius: var(--r); background: var(--carte); box-shadow: var(--ombre); text-align: left; font-size: 15px; color: var(--doux); }
.ligne-mois b { color: var(--texte); }
.ligne-mois > svg:first-child { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; }
.ligne-mois span { flex: 1; min-width: 0; }
.ligne-mois .chevron { width: 16px; height: 16px; color: var(--pale); }
.bs-j.choisi { background: var(--accent); }
.bs-j.choisi small, .bs-j.choisi b { color: var(--sur-accent); }
.bs-j.choisi.auj b { background: var(--balle); color: var(--nuit); }
.bs-j.choisi .bs-pts i { background: var(--balle); }
.bs-j.passe.choisi { opacity: 1; }
.jc { margin: 14px 2px 10px; }
.jc-titre { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.jc-titre .btn.lien { font-size: 15px; padding: 0 4px; min-height: 36px; }
.jc-resume { margin-top: 2px; font-size: 15px; font-weight: 600; color: var(--doux); }
.jc-demain { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 10px; padding: 8px 12px; border-radius: 12px; background: var(--accent-doux); color: var(--texte); text-align: left; font-size: 14.5px; }
.jc-demain span { flex: 1; color: var(--doux); }
.jc-demain .chevron { width: 15px; height: 15px; color: var(--pale); }
.jc-seg { margin-bottom: 12px; }
.jc-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.jc-seg button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.jc-seg button[disabled] { opacity: .4; }
.jc-vide { padding: 18px 16px; text-align: center; }
.jc-vide p { margin: 0 0 12px; }
.jc-vide .ligne-btns { justify-content: center; }
.jc-reglages { margin-bottom: 10px; }
.jc-aide { margin: 4px 4px 8px; }
.sc-liste { padding: 0; overflow: hidden; }
.seance.sc { display: block; width: 100%; padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--trait); }
.seance.sc:last-child { border-bottom: 0; }
.sc-l1 { display: flex; align-items: center; gap: 10px; }
.sc-h { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.sc-h small { font-size: 15px; font-weight: 600; color: var(--doux); margin-left: 2px; letter-spacing: 0; }
.sc-noms { flex: 1; min-width: 0; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-l1 .tag-g { margin-left: auto; }
.sc-l1 > .chevron { flex: none; width: 16px; height: 16px; color: var(--pale); margin-left: auto; }
.sc-l1 .tag-g + .chevron { margin-left: 4px; }
.sc-l2 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; }
.sc-l2 .qui-vient { margin-top: 0; }
.sc-pile { display: flex; align-items: center; }
.sc-pile .av { box-shadow: 0 0 0 2px var(--carte); }
.sc-pile .av + .av { margin-left: -7px; }
.sc-pile .plus-av { background: var(--carte-2); color: var(--doux); font-size: 9.5px; }
.sc-l3 { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 14px; color: var(--doux); }
.sc-l3 svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.seance.sc .note { margin-top: 8px; }
/* tirer pour rafraîchir (Imed 12/11/2026) */
.ptr { position: fixed; left: 50%; top: calc(6px + var(--haut)); z-index: 45; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: var(--carte); color: var(--accent); box-shadow: var(--ombre-haute); opacity: 0; transform: translate(-50%, -40px); pointer-events: none; transition: opacity 120ms; }
.ptr svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ptr.pret { background: var(--accent); color: var(--balle); }
.ptr.tourne svg { animation: ptr-tourne .8s linear infinite; }
@keyframes ptr-tourne { to { transform: rotate(360deg); } }
/* déplacer en un toucher ; bouton « œil » des mots de passe (simulation 12/11/2026) */
.f-decaler { margin: 2px 0 6px; }
.mdp-oeil { position: relative; display: block; }
.mdp-oeil > input { padding-right: 52px; }
.oeil { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--pale); }
.oeil svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.oeil.on { color: var(--accent); }

/* propositions « comme un coach » (Imed 12/11/2026) : présence par défaut, présence réelle, guide de démarrage */
.case.presence-defaut { align-items: flex-start; margin-top: 12px; }
.case.presence-defaut small { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 500; color: var(--doux); line-height: 1.35; }
.presence-liste { padding: 4px 0; }
.presence-l { gap: 10px; padding: 8px 12px; }
.presence-l .nom { flex: 1; min-width: 0; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.presence-btns { display: flex; gap: 4px; flex: none; }
.pr-b { min-height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--trait); background: var(--carte); font-size: 13.5px; font-weight: 650; color: var(--doux); }
.pr-b.present.actif { background: var(--vert-bg); color: var(--vert); border-color: transparent; }
.pr-b.retard.actif { background: var(--ambre-bg); color: var(--ambre); border-color: transparent; }
.pr-b.absent.actif { background: var(--rouge-bg); color: var(--rouge); border-color: transparent; }
.guide-dem { padding: 12px 14px 6px; margin: 8px 0; }
.gd-haut { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.gd-haut b { font-size: 16px; }
.gd-haut .btn.lien { margin-left: auto; min-height: 36px; padding: 0 4px; font-size: 14px; }
.gd-l { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 6px 0; text-align: left; border-top: 1px solid var(--trait); }
.gd-l span:nth-child(2) { flex: 1; }
.gd-l b { display: block; font-size: 15px; }
.gd-l small { display: block; font-size: 13px; color: var(--doux); }
.gd-n { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--sur-accent); font-weight: 750; font-size: 14px; }
.gd-l.ok { opacity: .55; }
.gd-l.ok .gd-n { background: var(--vert-bg); color: var(--vert); }
.gd-l .chevron { width: 16px; height: 16px; color: var(--pale); }
/* créneau libre : cocher puis confirmer (Imed 12/11/2026) */
.pl-autres .coche { opacity: .8; }
#pl-heures { margin-bottom: 12px; }
/* statistiques par joueur (Imed 13/11/2026) */
.st-joueurs { padding: 0; }
.stj { gap: 12px; padding: 12px 14px; }
.stj .milieu { flex: 1; min-width: 0; }
.stj-l1 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.stj-l1 b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stj-l1 .num { flex: none; font-size: 14px; color: var(--doux); font-weight: 600; }
.stj .jauge { display: block; height: 6px; margin: 6px 0 2px; border-radius: 3px; background: var(--carte-2); overflow: hidden; }
.stj .jauge i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.stj small { display: block; font-size: 12.5px; }
.stj .chevron { width: 16px; height: 16px; color: var(--pale); }

/* « Programmer une séance » rapide (Imed 15/11) : marche même si les joueurs n'ont rien indiqué */
.rp-jours .puce b { margin-left: 2px; }
.rp-autre-l { display: inline-flex; align-items: center; gap: 6px; }
.rp-autre { width: auto; min-width: 5.5em; padding: 2px 4px; border: 0; background: transparent; font: inherit; color: inherit; }
.rp-durees { margin-top: 14px; }
.rp-etat { font-size: .78rem; color: var(--doux, #6b7280); }
.rp-etat.libre { color: var(--vert); font-weight: 600; }
.rp-etat.pas_libre { color: var(--ambre); }
.rp-quand-meme { margin-top: 12px; }
.rp-heure-t { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rp-min { margin: 0 0 8px; padding: 3px; }
.rp-min .ch-d { padding: 4px 12px; min-height: 0; font-size: 15px; }
/* séparation Jeunes / Adultes dans les listes de joueurs (Imed 15/11) */
.sep-age { padding: 10px 16px 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); background: var(--carte-2); border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.sep-age:first-child { border-top: 0; border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.liste-coches .sep-age { position: sticky; top: 0; z-index: 1; }
.rp-repet-aide { margin: 8px 2px 0; }
/* « Qui est libre ? » → feuille pré-remplie (Imed 15/11) */
.rp-creneau { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 4px; background: var(--vert-bg); color: var(--texte); }
.rp-creneau svg { width: 22px; height: 22px; flex: none; color: var(--vert); margin-top: 2px; }
.rp-creneau b { display: block; color: var(--vert); }
.rp-creneau small { display: block; color: var(--doux); font-size: 13px; margin-top: 2px; }
.puce.rp-dans:not(.actif) { border-color: color-mix(in srgb, var(--vert) 55%, var(--trait)); background: var(--vert-bg); color: var(--vert); font-weight: 600; }
/* avertissement de chevauchement avant de valider (Imed 15/11) */
.cf-avert b { display: flex; align-items: center; gap: 8px; color: var(--ambre); }
.cf-avert b svg { width: 20px; height: 20px; }
.cf-liste { margin: 8px 0 0; padding-left: 20px; text-align: left; font-size: 14px; color: var(--texte); }
.cf-liste li { margin: 4px 0; }
/* lien d'invitation visible sur Joueurs (Imed 16/11) */
.ligne-lien { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin: 12px 0 16px; }
.ligne-lien .ll-t { flex: 1; min-width: 0; }
.ligne-lien .ll-t b { display: block; font-size: 15px; }
.ligne-lien .ll-t small { display: block; color: var(--doux); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne-lien .btn { min-height: 44px; padding: 0 14px; flex: none; }

/* ---------- langue (Imed 16/11/2026) : FR · EN · ES sous la connexion, segment dans Compte ---------- */
.langues-mini { display: flex; justify-content: center; align-items: center; gap: 2px; margin: 18px 0 0; color: var(--pale); font-size: 13px; }
.langues-mini button { min-width: 44px; min-height: 36px; border-radius: 9px; font-weight: 650; letter-spacing: .04em; color: var(--doux); }
.langues-mini button.actif { color: var(--texte); background: var(--carte-2); }
.langues-mini i { font-style: normal; opacity: .6; }
.segment.langues { margin: 0 0 8px; }
