/* 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: #5C636F; --pale: #868C96; --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: #9BA5B4; --pale: #7D8797; --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; 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: #E5372B; 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: nowrap; overflow-x: auto; margin: 0 -16px 8px; padding: 2px 16px 4px; scrollbar-width: none; }
.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 { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 16px; min-height: 56px; }
.compte p + p, .profil + p { border-top: 1px solid var(--trait); }
.compte p > svg { width: 20px; height: 20px; fill: none; stroke: var(--doux); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.compte p > span { min-width: 0; overflow-wrap: anywhere; }
.compte .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 { flex: 1; }
.compte 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); } }
