/* =============================================================================
   ASC 360 : feuille de style
   Epure, lisible, sobre. Une seule famille de couleurs par espace :
   vert gazon profond pour ASC 360, bleu nuit et ambre pour ASC Young.
   ========================================================================== */

:root {
  --fond: #f5f4f0;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --encre: #0c1523;
  --encre-2: #4a5566;
  --encre-3: #7b8594;
  --trait: #e6e3dc;
  --trait-fort: #d6d2c8;
  --accent: #0b6e4f;
  --accent-fort: #085a40;
  --accent-doux: #e4f1eb;
  --accent-texte: #ffffff;
  --or: #a86a10;
  --or-doux: #fbf0dc;
  --rouge: #b42318;
  --rouge-doux: #fde8e6;
  --bleu: #1f4fd1;
  --bleu-doux: #e7edfc;
  --violet: #6b3fc2;
  --violet-doux: #efe9fb;
  --ombre: 0 1px 2px rgba(12, 21, 35, .05), 0 4px 16px rgba(12, 21, 35, .05);
  --ombre-forte: 0 12px 40px rgba(12, 21, 35, .18);
  --rayon: 14px;
  --rayon-s: 9px;
  --police: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --police-titre: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --barre: 256px;
  color-scheme: light;
}
:root[data-espace="young"] {
  --accent: #1d3a8a;
  --accent-fort: #152c6b;
  --accent-doux: #e8edf9;
}
:root[data-theme="sombre"] {
  --fond: #0d1117;
  --surface: #151b24;
  --surface-2: #111720;
  --encre: #eef1f5;
  --encre-2: #b3bcc8;
  --encre-3: #8490a0;
  --trait: #232c38;
  --trait-fort: #2f3a48;
  --accent: #2fb487;
  --accent-fort: #45c797;
  --accent-doux: #12352a;
  --accent-texte: #06140f;
  --or: #e3a748;
  --or-doux: #3a2a10;
  --rouge: #f07266;
  --rouge-doux: #3d1a17;
  --bleu: #7ea2ff;
  --bleu-doux: #18233f;
  --violet: #b59bf0;
  --violet-doux: #2a2140;
  --ombre: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
  color-scheme: dark;
}
:root[data-theme="sombre"][data-espace="young"] {
  --accent: #8aa6ff;
  --accent-fort: #a9beff;
  --accent-doux: #1a2445;
  --accent-texte: #0a1026;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scrollbar-gutter: stable; }
body {
  background: var(--fond);
  color: var(--encre);
  font: 15px/1.5 var(--police);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--police-titre); letter-spacing: -.02em; margin: 0; line-height: 1.15; }
h1 { font-size: 30px; font-weight: 650; }
h2 { font-size: 19px; font-weight: 620; }
h3 { font-size: 15px; font-weight: 620; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ------------------------------------------------------------ Connexion */
.connexion {
  min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr;
}
.connexion-marque {
  background: #0c1523; color: #f1f4f8; padding: 56px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.connexion-marque svg.terrain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .12; }
.connexion-marque > * { position: relative; }
.connexion-marque .grand { font-family: var(--police-titre); font-size: 56px; font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.connexion-marque .grand span { color: #36c793; }
:root[data-espace="young"] .connexion-marque .grand span { color: #f2b541; }
.connexion-marque p { color: #aab5c4; max-width: 420px; font-size: 16px; }
.connexion-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.connexion-carte { width: 100%; max-width: 380px; }
.connexion-carte h1 { font-size: 26px; margin-bottom: 6px; }
.connexion-carte .sous { color: var(--encre-2); margin: 0 0 26px; }
.bascule { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border: 1px solid var(--trait); border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.bascule button { border: 0; background: transparent; padding: 9px 10px; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--encre-2); }
.bascule button[aria-pressed="true"] { background: var(--surface); color: var(--encre); box-shadow: var(--ombre); }
.erreur-form { background: var(--rouge-doux); color: var(--rouge); border-radius: var(--rayon-s); padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }

/* ------------------------------------------------------------ Structure */
.app { display: grid; grid-template-columns: var(--barre) 1fr; min-height: 100vh; }
.barre {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--trait);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 4px;
}
.logo { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; text-decoration: none; }
.logo-pastille {
  width: 36px; height: 36px; border-radius: 11px; background: var(--encre); color: var(--fond); display: grid; place-items: center;
  font-family: var(--police-titre); font-weight: 750; font-size: 13px; letter-spacing: -.02em;
}
.logo-texte { font-family: var(--police-titre); font-weight: 700; font-size: 18px; letter-spacing: -.03em; line-height: 1; }
.logo-texte small { display: block; font-size: 11px; font-weight: 500; color: var(--encre-3); letter-spacing: .02em; margin-top: 3px; }
.nav-titre { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--encre-3); padding: 14px 12px 6px; font-weight: 600; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--encre-2);
  font-weight: 520; font-size: 14.5px;
}
.nav a:hover { background: var(--surface-2); color: var(--encre); }
.nav a[aria-current="page"] { background: var(--accent-doux); color: var(--accent-fort); }
:root[data-theme="sombre"] .nav a[aria-current="page"] { color: var(--accent); }
.nav svg { width: 18px; height: 18px; flex: none; }
.nav .compte { margin-left: auto; font-size: 12px; background: var(--surface-2); border: 1px solid var(--trait); padding: 0 7px; border-radius: 20px; color: var(--encre-3); }
.nav .compte.chaud { background: var(--or-doux); color: var(--or); border-color: transparent; }
.barre-pied { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--trait); display: flex; flex-direction: column; gap: 4px; }
.demo { font-size: 12px; color: var(--or); background: var(--or-doux); border-radius: 9px; padding: 8px 10px; margin: 6px 0; line-height: 1.4; }

.principal { min-width: 0; display: flex; flex-direction: column; }
.haut {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 14px 32px;
  background: color-mix(in srgb, var(--fond) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}
.haut.ombre { border-bottom-color: var(--trait); }
.haut .menu-mobile { display: none; }
.recherche { position: relative; flex: 1; max-width: 560px; }
.recherche input {
  width: 100%; border: 1px solid var(--trait); background: var(--surface); border-radius: 12px; padding: 10px 14px 10px 40px; outline: none;
}
.recherche input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-doux); }
.recherche > svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--encre-3); }
.recherche kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 11px var(--police); color: var(--encre-3); border: 1px solid var(--trait); border-radius: 6px; padding: 1px 6px; background: var(--surface-2); }
.resultats {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--trait); border-radius: 14px;
  box-shadow: var(--ombre-forte); max-height: 70vh; overflow-y: auto; padding: 8px; z-index: 40;
}
.resultats .groupe { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--encre-3); padding: 10px 10px 4px; font-weight: 600; }
.resultats a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; text-decoration: none; }
.resultats a:hover, .resultats a.actif { background: var(--surface-2); }
.resultats .vide { padding: 16px; color: var(--encre-3); text-align: center; }
.haut-droite { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.moi { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 4px; border-radius: 30px; }
.moi .nom { font-size: 14px; font-weight: 600; line-height: 1.1; }
.moi .role { font-size: 12px; color: var(--encre-3); }

.page { padding: 12px 32px 64px; max-width: 1320px; width: 100%; }
.entete { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 10px 0 24px; }
.entete .sur { font-size: 13px; color: var(--encre-3); font-weight: 560; margin-bottom: 6px; letter-spacing: .01em; }
.entete p { margin: 6px 0 0; color: var(--encre-2); max-width: 720px; }
.entete .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------ Boutons et champs */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--trait-fort); background: var(--surface); color: var(--encre);
  padding: 8px 14px; border-radius: 10px; font-weight: 580; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--surface-2); border-color: var(--encre-3); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn.plein { background: var(--encre); border-color: var(--encre); color: var(--fond); }
.btn.plein:hover { background: var(--accent-fort); border-color: var(--accent-fort); color: #fff; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-texte); }
.btn.accent:hover { background: var(--accent-fort); }
.btn.fantome { border-color: transparent; background: transparent; }
.btn.fantome:hover { background: var(--surface-2); }
.btn.petit { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn.danger { color: var(--rouge); }
.btn.large { width: 100%; justify-content: center; padding: 11px 14px; }
.btn-icone { border: 0; background: transparent; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: var(--encre-2); }
.btn-icone:hover { background: var(--surface-2); color: var(--encre); }
.btn-icone svg { width: 19px; height: 19px; }

.champ { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.champ label, .champ .etiquette { font-size: 13px; font-weight: 600; color: var(--encre-2); }
.champ input, .champ select, .champ textarea {
  border: 1px solid var(--trait-fort); background: var(--surface); border-radius: 10px; padding: 9px 12px; outline: none; width: 100%;
}
.champ textarea { min-height: 90px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-doux); }
.champ .aide { font-size: 12.5px; color: var(--encre-3); }
.grille-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grille-form .plein { grid-column: 1 / -1; }
.cases { display: flex; flex-wrap: wrap; gap: 6px; }
.cases label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--trait-fort); border-radius: 20px; padding: 4px 11px; font-size: 13px; cursor: pointer; font-weight: 520; color: var(--encre); }
.cases input { accent-color: var(--accent); margin: 0; }

.puces { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.puce { border: 1px solid var(--trait); background: var(--surface); padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 560; color: var(--encre-2); cursor: pointer; }
.puce:hover { border-color: var(--trait-fort); color: var(--encre); }
.puce[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: var(--fond); }
.filtre-ligne { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filtre-ligne input[type="search"], .filtre-ligne select { border: 1px solid var(--trait); background: var(--surface); border-radius: 10px; padding: 7px 12px; font-size: 14px; }
.filtre-ligne input[type="search"] { min-width: 240px; }

/* ------------------------------------------------------------ Cartes et blocs */
.carte { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre); }
.carte-corps { padding: 20px 22px; }
.carte-tete { display: flex; align-items: center; gap: 10px; padding: 16px 22px 0; }
.carte-tete h2 { font-size: 16px; }
.carte-tete .lien { margin-left: auto; font-size: 13px; color: var(--encre-3); text-decoration: none; font-weight: 560; }
.carte-tete .lien:hover { color: var(--accent); }
.grille { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-accueil { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
.pile { display: flex; flex-direction: column; gap: 18px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.kpi {
  background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 14px 16px; text-decoration: none; display: block;
  transition: border-color .15s, transform .15s;
}
.kpi:hover { border-color: var(--trait-fort); transform: translateY(-1px); }
.kpi .v { font-family: var(--police-titre); font-size: 28px; font-weight: 680; letter-spacing: -.03em; line-height: 1.1; }
.kpi .l { font-size: 13px; color: var(--encre-2); margin-top: 2px; }
.kpi.chaud .v { color: var(--or); }
.kpi.alerte .v { color: var(--rouge); }

.brief {
  background: var(--encre); color: var(--fond); border-radius: 18px; padding: 26px 28px; margin-bottom: 22px; position: relative; overflow: hidden;
}
:root[data-theme="sombre"] .brief { background: #1b2432; color: #eef1f5; }
.brief svg.terrain { position: absolute; right: -40px; top: -30px; width: 380px; opacity: .09; }
.brief .date { font-size: 13px; opacity: .7; font-weight: 560; letter-spacing: .02em; text-transform: capitalize; }
.brief h1 { color: inherit; font-size: 32px; margin: 6px 0 10px; }
.brief p { margin: 0; opacity: .86; max-width: 760px; font-size: 16px; }
.brief .points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; position: relative; }
.brief .points a { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); padding: 6px 12px; border-radius: 20px; font-size: 13.5px; text-decoration: none; }
.brief .points a:hover { background: rgba(255,255,255,.18); }

.liste { list-style: none; margin: 0; padding: 0; }
.liste > li { display: flex; align-items: center; gap: 12px; padding: 11px 22px; border-top: 1px solid var(--trait); }
.liste > li:first-child { border-top: 0; }
.liste .quoi { min-width: 0; flex: 1; }
.liste .quoi strong { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste .quoi span { font-size: 13px; color: var(--encre-3); }
.liste a.ligne { display: contents; text-decoration: none; }
.vide-bloc { padding: 28px 22px; text-align: center; color: var(--encre-3); font-size: 14px; }

/* ------------------------------------------------------------ Tableau joueurs */
.table-wrap { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre); overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--encre-3); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--trait); white-space: nowrap; background: var(--surface-2); }
table.t th button { all: unset; cursor: pointer; }
table.t th button:hover { color: var(--encre); }
table.t td { padding: 12px 16px; border-bottom: 1px solid var(--trait); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr { cursor: pointer; transition: background .12s; }
table.t tbody tr:hover { background: var(--surface-2); }
table.t .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qui { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.qui strong { display: block; font-weight: 620; }
.qui span { font-size: 13px; color: var(--encre-3); }
.club strong { display: block; font-weight: 560; }
.club span { font-size: 12.5px; color: var(--encre-3); }

/* ------------------------------------------------------------ Avatars et badges */
.av {
  --t: 40px; width: var(--t); height: var(--t); border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden;
  font-family: var(--police-titre); font-weight: 650; font-size: calc(var(--t) * .36); color: #fff; letter-spacing: -.02em;
  background: linear-gradient(140deg, var(--a1, #3a4a60), var(--a2, #1a2433));
}
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.s { --t: 32px; }
.av.xl { --t: 112px; border-radius: 28px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px; white-space: nowrap; background: var(--surface-2); color: var(--encre-2); border: 1px solid var(--trait); }
.badge.vert { background: var(--accent-doux); color: var(--accent-fort); border-color: transparent; }
:root[data-theme="sombre"] .badge.vert { color: var(--accent); }
.badge.or { background: var(--or-doux); color: var(--or); border-color: transparent; }
.badge.rouge { background: var(--rouge-doux); color: var(--rouge); border-color: transparent; }
.badge.bleu { background: var(--bleu-doux); color: var(--bleu); border-color: transparent; }
.badge.violet { background: var(--violet-doux); color: var(--violet); border-color: transparent; }
.badge .point { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.muet { color: var(--encre-3); }
.petit-texte { font-size: 13px; }

/* ------------------------------------------------------------ Fiche joueur */
.fiche-tete { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 26px; }
.fiche-tete .photo { position: relative; }
.fiche-tete .photo button { position: absolute; right: -6px; bottom: -6px; border: 2px solid var(--surface); }
.fiche-tete h1 { font-size: 32px; }
.fiche-tete .meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--encre-2); margin-top: 8px; font-size: 14.5px; }
.faits { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--trait); }
.fait { padding: 16px 22px; border-left: 1px solid var(--trait); }
.fait:first-child { border-left: 0; }
.fait .l { font-size: 12px; color: var(--encre-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.fait .v { font-family: var(--police-titre); font-size: 19px; font-weight: 640; margin-top: 3px; letter-spacing: -.01em; }
.fait .s { font-size: 13px; color: var(--encre-2); }
.onglets { display: flex; gap: 2px; border-bottom: 1px solid var(--trait); margin: 22px 0 18px; overflow-x: auto; }
.onglets button { border: 0; background: transparent; padding: 10px 14px; font-weight: 580; color: var(--encre-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.onglets button:hover { color: var(--encre); }
.onglets button[aria-selected="true"] { color: var(--encre); border-bottom-color: var(--accent); }
.def { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; font-size: 14.5px; }
.def dt { color: var(--encre-3); }
.def dd { margin: 0; font-weight: 520; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.stat { background: var(--surface-2); border: 1px solid var(--trait); border-radius: 12px; padding: 12px 14px; }
.stat .v { font-family: var(--police-titre); font-size: 22px; font-weight: 660; }
.stat .l { font-size: 12.5px; color: var(--encre-3); }

.depot {
  border: 1.5px dashed var(--trait-fort); border-radius: var(--rayon); padding: 22px; text-align: center; color: var(--encre-2); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.depot:hover, .depot.survol { border-color: var(--accent); background: var(--accent-doux); }
.doc { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--trait); border-radius: 12px; background: var(--surface); }
.doc + .doc { margin-top: 8px; }
.doc .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--encre-2); flex: none; }
.doc .ico svg { width: 19px; height: 19px; }
.doc.mandat .ico { background: var(--accent-doux); color: var(--accent); }
.doc .quoi { flex: 1; min-width: 0; }
.doc .quoi strong { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc .quoi span { font-size: 13px; color: var(--encre-3); }

/* ------------------------------------------------------------ Pipeline */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; }
.colonne { background: var(--surface-2); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 12px; min-height: 180px; }
.colonne h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--encre-2); display: flex; gap: 8px; align-items: center; padding: 2px 4px 10px; }
.colonne.survol { border-color: var(--accent); background: var(--accent-doux); }
.carte-k { background: var(--surface); border: 1px solid var(--trait); border-radius: 12px; padding: 12px; margin-bottom: 8px; cursor: grab; box-shadow: var(--ombre); }
.carte-k:active { cursor: grabbing; }
.carte-k .qui { min-width: 0; }
.carte-k .bas { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* ------------------------------------------------------------ ASC Scout */
.scout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.filtres-liste { position: sticky; top: 84px; }
.filtre-item { display: block; width: 100%; text-align: left; border: 1px solid var(--trait); background: var(--surface); padding: 14px 16px; border-radius: 12px; cursor: pointer; margin-bottom: 8px; }
.filtre-item:hover { border-color: var(--trait-fort); }
.filtre-item[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-doux); }
.filtre-item strong { display: block; font-weight: 620; font-size: 14.5px; line-height: 1.3; }
.filtre-item span { font-size: 12.5px; color: var(--encre-3); }
.detection { padding: 18px 20px; }
.detection + .detection { border-top: 1px solid var(--trait); }
.detection-tete { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.detection-tete .qui { flex: 1; }
.score { text-align: center; min-width: 74px; }
.score .v { font-family: var(--police-titre); font-weight: 700; font-size: 26px; letter-spacing: -.03em; color: var(--accent); line-height: 1; }
.score .l { font-size: 11px; color: var(--encre-3); text-transform: uppercase; letter-spacing: .06em; }
.pourquoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 4px 18px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 13.5px; }
.pourquoi li { display: flex; gap: 8px; align-items: baseline; }
.pourquoi .ok { color: var(--accent); font-weight: 700; }
.pourquoi .att { color: var(--or); font-weight: 700; }
.pourquoi .non { color: var(--rouge); font-weight: 700; }
.jauges { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 18px; margin-top: 14px; }
.jauge .l { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--encre-2); }
.jauge .l b { color: var(--encre); font-variant-numeric: tabular-nums; }
.jauge .barre-j { height: 6px; border-radius: 6px; background: var(--trait); margin-top: 5px; overflow: hidden; }
.jauge .barre-j i { display: block; height: 100%; border-radius: 6px; background: var(--accent); }
.jauge .barre-j i.haut-niv { background: linear-gradient(90deg, var(--accent), #36c793); }
.nouveau { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--rouge); padding: 2px 7px; border-radius: 6px; }
.forme { display: inline-flex; align-items: flex-end; gap: 2px; height: 22px; }
.forme i { width: 5px; background: var(--accent); border-radius: 2px; opacity: .8; }

/* ------------------------------------------------------------ Actualites */
.actu { display: flex; gap: 16px; padding: 16px 22px; border-top: 1px solid var(--trait); }
.actu:first-child { border-top: 0; }
.actu .src { width: 110px; flex: none; font-size: 12.5px; color: var(--encre-3); }
.actu .src b { display: block; color: var(--encre-2); font-weight: 600; }
.actu h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }
.actu h3 a { text-decoration: none; }
.actu h3 a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.actu p { margin: 5px 0 8px; color: var(--encre-2); font-size: 14px; }
.actu .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.actu-mini { padding: 12px 22px; border-top: 1px solid var(--trait); }
.actu-mini:first-child { border-top: 0; }
.actu-mini a { text-decoration: none; font-weight: 580; line-height: 1.35; display: block; }
.actu-mini a:hover { color: var(--accent); }
.actu-mini span { font-size: 12.5px; color: var(--encre-3); }

/* ------------------------------------------------------------ Planning, taches */
.jour { margin-bottom: 18px; }
.jour h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--encre-3); margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.jour h3.aujourdhui { color: var(--accent); }
.evt { display: grid; grid-template-columns: 70px 4px 1fr auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--trait); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; }
.evt .h { font-variant-numeric: tabular-nums; font-weight: 620; }
.evt .trait-c { width: 4px; height: 100%; min-height: 34px; border-radius: 4px; background: var(--c, var(--accent)); }
.evt strong { display: block; font-weight: 600; }
.evt span { font-size: 13px; color: var(--encre-3); }
.taches { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.tache { background: var(--surface); border: 1px solid var(--trait); border-radius: 12px; padding: 13px 14px; margin-bottom: 8px; box-shadow: var(--ombre); }
.tache strong { font-weight: 600; display: block; line-height: 1.35; }
.tache .bas { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: var(--encre-3); }
.tache.fait strong { text-decoration: line-through; color: var(--encre-3); }

/* ------------------------------------------------------------ Grille de scouting */
.grille-scout { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.bloc-note { border: 1px solid var(--trait); border-radius: 12px; padding: 14px 16px; background: var(--surface-2); }
.bloc-note h3 { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.bloc-note h3 b { color: var(--accent); font-variant-numeric: tabular-nums; }
.note-ligne { display: grid; grid-template-columns: 1fr 150px 28px; align-items: center; gap: 10px; font-size: 13.5px; padding: 3px 0; }
.note-ligne input[type="range"] { width: 100%; accent-color: var(--accent); }
.note-ligne output { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.radar-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }

/* ------------------------------------------------------------ Fenetre, visionneuse, messages */
dialog.fenetre {
  border: 0; padding: 0; border-radius: 18px; width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--surface); color: var(--encre);
  box-shadow: var(--ombre-forte);
}
dialog.fenetre.large { width: min(1040px, calc(100vw - 32px)); }
dialog.fenetre::backdrop { background: rgba(12, 21, 35, .45); backdrop-filter: blur(3px); }
.fenetre-tete { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--trait); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.fenetre-tete h2 { font-size: 18px; }
.fenetre-tete .btn-icone { margin-left: auto; }
.fenetre-corps { padding: 20px 22px; }
.fenetre-pied { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--trait); position: sticky; bottom: 0; background: var(--surface); }
.visionneuse iframe, .visionneuse img { width: 100%; height: 72vh; border: 0; border-radius: 10px; background: var(--surface-2); object-fit: contain; }
.toasts { position: fixed; bottom: 22px; right: 22px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: var(--encre); color: var(--fond); padding: 11px 16px; border-radius: 12px; box-shadow: var(--ombre-forte); font-size: 14px; font-weight: 520; animation: monte .25s ease-out; max-width: 380px; }
.toast.erreur { background: var(--rouge); color: #fff; }
@keyframes monte { from { transform: translateY(8px); opacity: 0; } }
.chargement { display: grid; place-items: center; min-height: 60vh; color: var(--encre-3); }

/* ------------------------------------------------------------ Mobile */
@media (max-width: 1100px) {
  .g-accueil, .g3 { grid-template-columns: minmax(0,1fr); }
  .scout { grid-template-columns: minmax(0,1fr); }
  .filtres-liste { position: static; }
  .faits { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .fait:nth-child(3) { border-left: 0; }
  .fait:nth-child(n+3) { border-top: 1px solid var(--trait); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0,1fr); }
  .barre { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 60; transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--ombre-forte); }
  .barre.ouverte { transform: none; }
  .haut .menu-mobile { display: grid; }
  .haut { padding: 12px 16px; }
  .page { padding: 8px 16px 48px; }
  .g2, .taches, .grille-scout, .grille-form { grid-template-columns: minmax(0,1fr); }
  .fiche-tete { grid-template-columns: auto 1fr; padding: 20px; }
  .fiche-tete .actions-fiche { grid-column: 1 / -1; }
  .fiche-tete h1 { font-size: 24px; }
  .av.xl { --t: 84px; border-radius: 22px; }
  .def { grid-template-columns: 1fr; gap: 2px; }
  .def dd { margin-bottom: 8px; }
  .connexion { grid-template-columns: minmax(0,1fr); }
  .connexion-marque { padding: 32px 24px; min-height: 220px; }
  .connexion-marque .grand { font-size: 40px; }
  .moi .nom, .moi .role, .recherche kbd { display: none; }
  .actu { flex-direction: column; gap: 4px; }
  .actu .src { width: auto; }
  .evt { grid-template-columns: 56px 4px 1fr; }
  .evt > :last-child { grid-column: 3; }
  h1 { font-size: 25px; }
  .note-ligne { grid-template-columns: 1fr 110px 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ------------------------------------------------------------ Scouting terrain */
.terrain-tete { margin: 10px 0 18px; }
.terrain-tete .sur { font-size: 13px; color: var(--encre-3); font-weight: 560; margin-bottom: 6px; }
.terrain-tete p { margin: 6px 0 0; color: var(--encre-2); max-width: 640px; }
.terrain-recherche { position: relative; margin-bottom: 20px; }
.terrain-recherche svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--encre-3); }
.terrain-recherche input {
  width: 100%; font-size: 19px; padding: 17px 18px 17px 52px; border-radius: 16px; border: 1px solid var(--trait-fort);
  background: var(--surface); outline: none; box-shadow: var(--ombre);
}
.terrain-recherche input:focus { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-doux); }
.terrain-titre { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--encre-3); margin: 22px 0 10px; display: flex; gap: 8px; align-items: center; }
.liste-clubs { overflow: hidden; }
.club-ligne { display: flex; align-items: center; gap: 14px; padding: 13px 18px; text-decoration: none; border-top: 1px solid var(--trait); min-height: 64px; }
.club-ligne:first-child { border-top: 0; }
.club-ligne:hover { background: var(--surface-2); }
.club-ligne .quoi { flex: 1; min-width: 0; }
.club-ligne strong { display: block; font-weight: 620; }
.club-ligne .quoi span { font-size: 13px; color: var(--encre-3); }
.club-ligne svg { width: 18px; height: 18px; color: var(--encre-3); }
.terrain-club-tete { display: flex; gap: 14px; align-items: center; margin: 14px 0 16px; }
.terrain-club-tete h1 { font-size: 28px; }
.segments { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border: 1px solid var(--trait); border-radius: 13px; padding: 4px; margin-bottom: 12px; }
.segments a { text-align: center; padding: 10px; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--encre-2); }
.segments a[aria-selected="true"] { background: var(--surface); color: var(--encre); box-shadow: var(--ombre); }
.terrain-liens { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.ligne-titre { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--encre-2); margin: 20px 0 8px; }
.joueur-ligne { padding: 0 !important; }
.joueur-zone { flex: 1; display: flex; align-items: center; gap: 12px; border: 0; background: transparent; text-align: left; padding: 11px 6px 11px 18px; cursor: pointer; min-height: 60px; min-width: 0; }
.joueur-zone:hover { background: var(--surface-2); }
.joueur-zone .quoi { flex: 1; min-width: 0; }
.joueur-zone .quoi strong { display: block; font-weight: 600; }
.joueur-zone .quoi span { font-size: 13px; color: var(--encre-3); }
.etoile { width: 56px; align-self: stretch; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--trait-fort); border-left: 1px solid var(--trait); }
.etoile svg { width: 24px; height: 24px; transition: transform .15s; }
.etoile:hover { color: #d99a1e; }
.etoile.active { color: #e0a21a; }
.etoile.active svg { fill: currentColor; transform: scale(1.08); }
.etoile-mini { color: #e0a21a; }
.puce-etoile[aria-pressed="true"] { background: #e0a21a; border-color: #e0a21a; color: #1a1204; }
.feuille-actions { display: grid; gap: 8px; margin-top: 18px; }
.feuille-actions .btn { min-height: 46px; }
.feuille-actions .btn.accent svg { fill: currentColor; }
.rapide-notes { background: var(--surface-2); border: 1px solid var(--trait); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.rapide-notes .note-ligne { grid-template-columns: 110px 1fr 34px; padding: 6px 0; }
.rapide-global { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--trait); margin-top: 8px; padding-top: 10px; font-weight: 600; }
.rapide-global b { font-family: var(--police-titre); font-size: 26px; color: var(--accent); }
.case-etoile { display: flex; align-items: center; gap: 10px; font-weight: 600; padding: 12px 14px; border: 1px solid var(--trait-fort); border-radius: 12px; cursor: pointer; }
.case-etoile svg { width: 20px; height: 20px; color: #e0a21a; fill: currentColor; }
.case-etoile input { width: 20px; height: 20px; accent-color: #e0a21a; }

/* ------------------------------------------------------------ Ecran d'arrivee */
html.arrivee-active { overflow: hidden; scrollbar-gutter: auto; }
.arrivee {
  position: fixed; inset: 0 auto auto 0; width: 100vw; height: 100dvh; z-index: 200; overflow: hidden; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 50% 43%, #16283a 0, #0c1725 34%, #07101c 72%);
  transition: opacity .62s cubic-bezier(.4,0,.2,1), visibility .62s;
}
.arrivee::before {
  content: ""; position: absolute; inset: -15%; opacity: .075; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(circle, #000 0, transparent 66%);
  animation: arrivee-grille 3.2s cubic-bezier(.2,.8,.2,1) both;
}
.arrivee::after {
  content: ""; position: absolute; left: 15%; right: 15%; top: 50%; height: 1px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(99,224,178,.9), transparent);
  box-shadow: 0 0 26px rgba(54,199,147,.65); animation: arrivee-scan 1.45s .2s ease-out both;
}
.arrivee.sortie { opacity: 0; visibility: hidden; }
.arrivee-passer {
  position: absolute; z-index: 8; top: max(22px, env(safe-area-inset-top)); right: max(24px, env(safe-area-inset-right));
  min-height: 44px; padding: 0 16px; border: 1px solid rgba(210,230,224,.22); border-radius: 999px;
  color: #d7e2df; background: rgba(7,16,28,.34); backdrop-filter: blur(12px); cursor: pointer;
  font-size: 13px; font-weight: 650; letter-spacing: .035em; opacity: 0;
  animation: arrivee-passer .42s 1.1s ease-out forwards;
}
.arrivee-passer:hover, .arrivee-passer:focus-visible { color: #fff; border-color: rgba(99,224,178,.7); background: rgba(19,45,42,.6); }
.arrivee-pluie {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; opacity: .28;
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  transition: opacity .65s ease, filter .65s ease;
}
.arrivee-pluie span {
  position: absolute; left: var(--x); top: -48%; color: rgba(91,239,179,.72);
  font: 600 10px/2.05 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  letter-spacing: .16em; text-align: center; white-space: nowrap;
  text-shadow: 0 0 9px rgba(54,199,147,.65); opacity: 0;
  animation: arrivee-pluie var(--v) var(--d) linear infinite;
}
.arrivee-pluie span:nth-child(3n) { color: rgba(174,255,225,.82); filter: blur(.15px); }
.arrivee-pluie span:nth-child(4n) { font-size: 9px; opacity: .65; }
.arrivee.phase-message .arrivee-pluie { opacity: .09; filter: blur(1.1px); }
.arrivee-cinema { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; transition: opacity .55s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.arrivee.phase-message .arrivee-cinema { opacity: .16; transform: scale(1.045); }
.arrivee-terrain {
  width: min(84vw, 980px); height: auto; color: rgba(137,184,174,.25); opacity: 0;
  filter: drop-shadow(0 0 22px rgba(54,199,147,.05));
}
.arrivee.phase-signal .arrivee-terrain { animation: arrivee-terrain 2.65s cubic-bezier(.2,.8,.2,1) both; }
.arrivee-ligne { stroke: currentColor; stroke-width: 1.2; stroke-dasharray: 1700; stroke-dashoffset: 1700; }
.arrivee.phase-signal .arrivee-ligne { animation: arrivee-dessin 1.8s .08s cubic-bezier(.2,.8,.2,1) forwards; }
.arrivee-trajectoires path {
  stroke: rgba(86,225,174,.6); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520;
}
.arrivee.phase-signal .arrivee-trajectoires path { animation: arrivee-dessin 1.15s .42s ease-out forwards; }
.arrivee-points circle {
  fill: #64e6b6; opacity: 0; transform-box: fill-box; transform-origin: center;
  filter: drop-shadow(0 0 9px rgba(84,235,179,.82));
}
.arrivee.phase-signal .arrivee-points circle { animation: arrivee-point 1.7s .34s cubic-bezier(.55,.05,.25,1) forwards; }
.arrivee-orbite {
  position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(100,230,182,.2);
  opacity: 0; transform: translate(-50%,-50%) scale(.35);
}
.orbite-1 { width: min(46vw, 430px); aspect-ratio: 1; }
.orbite-2 { width: min(58vw, 560px); aspect-ratio: 1; border-style: dashed; }
.arrivee.phase-logo .orbite-1 { animation: arrivee-orbite 1.7s cubic-bezier(.2,.8,.2,1) both; }
.arrivee.phase-logo .orbite-2 { animation: arrivee-orbite 2.1s .14s cubic-bezier(.2,.8,.2,1) both; }
.arrivee-centre { position: relative; width: min(92vw, 760px); min-height: 360px; display: grid; place-items: center; text-align: center; isolation: isolate; }
.arrivee-aura {
  position: absolute; width: min(74vw, 540px); aspect-ratio: 1; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(54,199,147,.18), rgba(54,199,147,.04) 42%, transparent 70%);
  animation: arrivee-aura 2.8s .05s ease-out both;
}
.arrivee-embleme {
  position: absolute; display: grid; place-items: center;
  animation: arrivee-embleme 1.35s .52s cubic-bezier(.2,.8,.2,1) both;
}
.arrivee.phase-message .arrivee-embleme { animation: arrivee-embleme-sortie .42s cubic-bezier(.4,0,.2,1) both; }
.arrivee-logo {
  position: relative; width: clamp(164px, 20vw, 232px); aspect-ratio: 1; display: grid; place-items: center;
  border: 1px solid rgba(141,239,205,.2); border-radius: 34%;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.012));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 80px rgba(0,0,0,.36), 0 0 70px rgba(54,199,147,.08);
}
.arrivee-logo::before {
  content: ""; position: absolute; inset: -18px; border: 1px solid rgba(128,235,198,.24); border-radius: 38%;
  transform: rotate(45deg) scale(.82); animation: arrivee-cadre 1.65s .12s cubic-bezier(.2,.8,.2,1) both;
}
.arrivee-symbole {
  position: relative; z-index: 1; font-family: var(--police-titre); font-size: clamp(64px, 9vw, 104px); font-weight: 760;
  line-height: .82; letter-spacing: -.085em; transform: translateX(-.025em);
  color: #f7fbfa; text-shadow: 0 12px 36px rgba(0,0,0,.34), 0 0 30px rgba(54,199,147,.18);
}
.arrivee-nom {
  margin-top: 28px; font-family: var(--police-titre); font-weight: 650; letter-spacing: .22em; text-transform: uppercase;
  font-size: clamp(11px, 1.4vw, 14px); color: #aebdca; white-space: nowrap; animation: arrivee-nom 1.4s .35s ease-out both;
}
.arrivee-message { position: absolute; z-index: 2; opacity: 0; transform: translateY(14px); }
.arrivee.phase-message .arrivee-message { animation: arrivee-message 1.85s .34s cubic-bezier(.2,.8,.2,1) both; }
.arrivee-bienvenue {
  min-height: 18px; color: #a9bbb6; font-size: 13px; font-weight: 650; letter-spacing: .16em;
  text-transform: uppercase; white-space: nowrap;
}
.arrivee-bienvenue span { display: inline-block; opacity: 0; transform: translateY(5px); filter: blur(3px); }
.arrivee.phase-message .arrivee-bienvenue span {
  animation: arrivee-lettre .34s calc(.28s + var(--lettre)) cubic-bezier(.2,.8,.2,1) forwards;
}
.arrivee-matrice { margin-top: 12px; font-family: var(--police-titre); font-size: clamp(34px, 6vw, 66px); font-weight: 680; letter-spacing: -.045em; line-height: 1.04; }
.arrivee-trait { display: block; width: 0; height: 2px; margin: 25px auto 0; border-radius: 2px; background: #36c793; box-shadow: 0 0 20px rgba(54,199,147,.45); }
.arrivee.phase-message .arrivee-trait { animation: arrivee-trait .72s .82s ease-out forwards; }
@keyframes arrivee-embleme {
  0% { opacity: 0; transform: scale(.78); filter: blur(10px); }
  34% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes arrivee-embleme-sortie {
  from { opacity: 1; transform: scale(1); filter: blur(0); }
  to { opacity: 0; transform: scale(1.055); filter: blur(2px); }
}
@keyframes arrivee-cadre { from { opacity: 0; transform: rotate(45deg) scale(.62); } to { opacity: 1; transform: rotate(45deg) scale(.82); } }
@keyframes arrivee-nom { from { opacity: 0; letter-spacing: .35em; } to { opacity: 1; letter-spacing: .22em; } }
@keyframes arrivee-aura { 0% { opacity: 0; transform: scale(.7); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.12); } }
@keyframes arrivee-grille { from { transform: perspective(700px) rotateX(18deg) scale(1.12); } to { transform: perspective(700px) rotateX(0) scale(1); } }
@keyframes arrivee-scan { 0% { opacity: 0; transform: scaleX(.2); } 35% { opacity: .85; } 100% { opacity: 0; transform: scaleX(1); } }
@keyframes arrivee-message { 0% { opacity: 0; transform: translateY(14px); } 18%, 100% { opacity: 1; transform: none; } }
@keyframes arrivee-trait { to { width: 86px; } }
@keyframes arrivee-passer { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes arrivee-terrain { 0% { opacity: 0; transform: perspective(900px) rotateX(18deg) scale(.92); } 30%, 100% { opacity: 1; transform: perspective(900px) rotateX(0) scale(1); } }
@keyframes arrivee-dessin { to { stroke-dashoffset: 0; } }
@keyframes arrivee-point { 0% { opacity: 0; transform: translate(0,0) scale(.5); } 18% { opacity: 1; transform: translate(0,0) scale(1); } 72%, 100% { opacity: 0; transform: translate(var(--dx),var(--dy)) scale(.28); } }
@keyframes arrivee-orbite { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.35); } 38% { opacity: .8; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.08); } }
@keyframes arrivee-pluie {
  0% { opacity: 0; transform: translate3d(-50%, -12vh, 0); }
  10% { opacity: .78; }
  82% { opacity: .46; }
  100% { opacity: 0; transform: translate3d(-50%, 158vh, 0); }
}
@keyframes arrivee-lettre { to { opacity: 1; transform: none; filter: blur(0); } }

/* ------------------------------------------------------------ Mobile : onglets du bas, tableaux en cartes */
.onglets-bas { display: none; }
.voile { display: none; }
@media (max-width: 860px) {
  .onglets-bas {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.6) blur(14px);
    border-top: 1px solid var(--trait); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .onglets-bas a, .onglets-bas button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; min-height: 52px; justify-content: center; border: 0; background: transparent; text-decoration: none; color: var(--encre-3); font-size: 11px; font-weight: 600; cursor: pointer; border-radius: 12px; }
  .onglets-bas svg { width: 22px; height: 22px; }
  .onglets-bas a[aria-current="page"] { color: var(--accent); }
  .onglets-bas a.centre span { color: var(--encre-2); }
  .onglets-bas a.centre svg { width: 46px; height: 46px; padding: 11px; margin-top: -22px; border-radius: 16px; background: var(--encre); color: var(--fond); box-shadow: var(--ombre-forte); }
  .onglets-bas a.centre[aria-current="page"] svg { background: var(--accent); color: var(--accent-texte); }
  .app:has(.barre.ouverte) .voile { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(12,21,35,.4); }
  .page { padding-bottom: 110px; }
  .toasts { bottom: 92px; left: 16px; right: 16px; }
  .toast { max-width: none; }
  .haut .recherche { max-width: none; }
  .entete .actions { margin-left: 0; width: 100%; }
  .entete .actions .btn { flex: 1; justify-content: center; }
  .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .kpi .v { font-size: 24px; }
  .brief { padding: 22px 20px; border-radius: 16px; }
  .brief h1 { font-size: 26px; }
  .liste > li { padding: 11px 16px; flex-wrap: wrap; }
  .carte-tete { padding: 14px 16px 0; }
  .carte-corps { padding: 16px; }
  .filtre-ligne input[type="search"] { min-width: 0; width: 100%; }
  .filtre-ligne .puces { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; }
  .puce { white-space: nowrap; }
  /* Tableaux : chaque ligne devient une carte lisible au pouce. */
  .table-wrap { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  table.t, table.t tbody, table.t tr, table.t td { display: block; width: 100%; }
  table.t thead { display: none; }
  table.t tbody tr { background: var(--surface); border: 1px solid var(--trait); border-radius: 14px; margin-bottom: 10px; padding: 12px 14px; box-shadow: var(--ombre); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
  table.t td { border: 0; padding: 0; width: auto; }
  table.t td:first-child { width: 100%; margin-bottom: 4px; }
  table.t td.num { text-align: left; }
  .qui { min-width: 0; }
  dialog.fenetre.feuille, dialog.fenetre { margin: auto 0 0; width: 100vw; max-width: 100vw; max-height: 92vh; border-radius: 20px 20px 0 0; }
  .fenetre-corps { padding: 18px 16px 24px; }
  .onglets { margin: 16px -16px 14px; padding: 0 16px; }
  .faits { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .fait { padding: 12px 14px; }
  .fait .v { font-size: 16px; }
  .scout .detection-tete { gap: 10px; }
  .kanban { grid-auto-columns: 82vw; scroll-snap-type: x mandatory; }
  .colonne { scroll-snap-align: start; }
}
@media (max-width: 520px) {
  .arrivee-centre { min-height: 300px; }
  .arrivee-logo { width: 172px; }
  .arrivee-nom { margin-top: 22px; letter-spacing: .16em; }
  .arrivee-matrice { max-width: 330px; }
  .arrivee-terrain { width: 126vw; }
  .arrivee-passer { top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); }
  .arrivee-pluie { opacity: .2; }
  .arrivee-pluie span:nth-child(even) { display: none; }
  .arrivee-bienvenue { font-size: 10px; letter-spacing: .11em; }
}
@media (prefers-reduced-motion: reduce) { .arrivee { display: none; } }

.fait .v .nature { font-size: 13px; font-weight: 600; color: var(--encre-3); letter-spacing: 0; }
.badge b { font-weight: 700; }

/* ------------------------------------------------------------ Feuille joueur, journal */
.etat-suivi { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.grille-actions { grid-template-columns: 1fr 1fr; }
.grille-actions .btn { justify-content: center; min-height: 48px; white-space: normal; text-align: center; }
.grille-actions .plein-ligne { grid-column: 1 / -1; }
.journal .journal-ligne { align-items: flex-start; }
.journal .journal-ligne .badge { margin-top: 2px; min-width: 92px; justify-content: center; }
.journal .quoi strong { font-weight: 560; line-height: 1.4; }
.fiche-tete .photo .etoile-fiche { position: absolute; left: -6px; top: -6px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--surface); background: var(--surface); box-shadow: var(--ombre); display: grid; place-items: center; cursor: pointer; color: var(--trait-fort); }
.fiche-tete .photo .etoile-fiche svg { width: 19px; height: 19px; }
.fiche-tete .photo .etoile-fiche.active { color: #e0a21a; }
.fiche-tete .photo .etoile-fiche.active svg { fill: currentColor; }
table.t tbody tr[data-action] { cursor: pointer; }

/* ------------------------------------------------------------ Repertoire des besoins */
.repertoire { margin-bottom: 18px; }
.repertoire .fil { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; margin-bottom: 12px; }
.lien-fil { border: 0; background: transparent; padding: 2px 4px; border-radius: 6px; cursor: pointer; font-weight: 600; color: var(--accent); }
.lien-fil:hover { background: var(--accent-doux); }
.repertoire .niveau { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: start; margin-top: 8px; }
.repertoire .niv-titre { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--encre-3); font-weight: 600; padding-top: 7px; }
.repertoire .puces { margin: 0; }
.groupe-besoin { font-size: 13px; font-weight: 560; color: var(--encre-2); margin: 22px 0 10px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; letter-spacing: 0; }
.groupe-besoin b { color: var(--encre); }
@media (max-width: 860px) { .repertoire .niveau { grid-template-columns: 1fr; gap: 4px; } .repertoire .puces { flex-wrap: nowrap; overflow-x: auto; } }

/* ------------------------------------------------------------ Alertes */
.cloche { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--encre-2); text-decoration: none; }
.cloche:hover { background: var(--surface-2); color: var(--encre); }
.cloche svg { width: 22px; height: 22px; }
.cloche .pastille { position: absolute; top: 3px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--or); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--fond); }
.cloche .pastille.grave { background: var(--rouge); }
.cloche.sonne svg { color: var(--rouge); animation: sonne 2.6s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes sonne { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 85% { transform: rotate(8deg); } 90% { transform: rotate(-5deg); } }
.bandeau-alertes { display: flex; align-items: center; gap: 12px; margin: 4px 32px 0; padding: 11px 16px; border-radius: 14px; background: var(--rouge); color: #fff; text-decoration: none; font-size: 14px; box-shadow: var(--ombre); }
.bandeau-alertes svg { width: 20px; height: 20px; flex: none; }
.bandeau-alertes span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bandeau-alertes .voir { font-weight: 700; background: rgba(255,255,255,.18); padding: 3px 10px; border-radius: 8px; }
.alerte { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--trait); border-left: 5px solid var(--trait-fort); border-radius: 14px; padding: 13px 16px; margin-bottom: 10px; box-shadow: var(--ombre); }
.alerte-critique, .alerte-urgent { border-left-color: var(--rouge); }
.alerte-critique { background: linear-gradient(90deg, var(--rouge-doux), var(--surface) 55%); }
.alerte-important { border-left-color: var(--or); }
.alerte.traitee { opacity: .6; }
.alerte-qui { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 200px; }
.alerte-qui strong { display: block; font-weight: 620; }
.alerte-qui span span { font-size: 12.5px; color: var(--encre-3); }
.alerte-quoi { flex: 1; min-width: 220px; }
.alertes-accueil { padding: 12px 16px 6px; }
.alertes-accueil .alerte { box-shadow: none; }
.nav .compte.rouge { background: var(--rouge); color: #fff; border-color: transparent; font-weight: 700; }
@media (max-width: 860px) { .bandeau-alertes { margin: 4px 16px 0; } .alerte-qui { min-width: 0; width: 100%; } }

.logo-club { width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--trait); display: grid; place-items: center; flex: none; padding: 5px; }
.logo-club img { width: 100%; height: 100%; object-fit: contain; }

.lien-frais { font-weight: 650; color: var(--or); text-decoration: none; }
.lien-frais:hover { text-decoration: underline; }

/* ------------------------------------------------------------ Profils du reseau a proposer */
.reseau-match { margin: 4px 14px 14px; border: 1px solid color-mix(in srgb, var(--or) 35%, transparent); background: var(--or-doux); border-radius: 14px; overflow: hidden; }
.reseau-match .reseau-titre { display: flex; align-items: center; gap: 8px; padding: 12px 16px; color: var(--or); }
.reseau-match .reseau-titre svg { width: 18px; height: 18px; }
.reseau-match .detection { background: var(--surface); }
.pistes-base { margin: 0 14px 14px; border: 1px solid var(--trait); border-radius: 12px; }
.pistes-base summary { cursor: pointer; padding: 11px 16px; font-weight: 600; color: var(--encre-2); font-size: 14px; }

/* ------------------------------------------------------------ Tableaux lisibles au telephone */
@media (max-width: 860px) {
  table.t td[data-label]:not(:first-child)::before { content: attr(data-label) " "; display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--encre-3); margin-bottom: 2px; }
  table.t td[data-label]:not(:first-child) { min-width: 64px; }
  table.t td.case-vide { display: none; }
  table.t td[data-label=""]::before { display: none; }
}

.idees { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.filtres-avances { margin-bottom: 14px; }
.filtres-avances summary { cursor: pointer; padding: 13px 16px; font-weight: 600; }
.grille-filtres { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0 12px; padding: 0 16px; }
.grille-filtres .champ { margin-bottom: 10px; }
@media (max-width: 860px) { .idees { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .idees .puce { white-space: nowrap; } .grille-filtres { grid-template-columns: 1fr 1fr; } }

.coach-club { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin: 10px 0; }
.coach-club .qui { flex: 1; }

.case-bool label { justify-content: flex-start; min-height: 44px; }
.case-bool input { width: 20px; height: 20px; flex: none; accent-color: var(--accent); }

/* ------------------------------------------------------------ Cette semaine */
.match { padding: 16px 18px; margin-bottom: 12px; }
.match-tete { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.match-affiche { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.equipe { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; }
.equipe:last-child { flex-direction: row-reverse; text-align: right; }
.equipe.favorite { background: var(--accent-doux); }
.equipe strong { display: block; font-weight: 650; }
.equipe span { font-size: 12.5px; color: var(--encre-3); display: block; }
.match-vs { text-align: center; color: var(--encre-3); font-size: 12px; }
.pronos { display: flex; gap: 8px; align-items: baseline; }
.pronos b { font-size: 16px; color: var(--encre); }
.forme-lettres { display: inline-flex; gap: 3px; margin-top: 4px; }
.forme-lettres i { font-style: normal; width: 17px; height: 17px; border-radius: 5px; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--encre-3); }
.forme-lettres i.f-W { background: #1f9d63; } .forme-lettres i.f-D { background: #9aa3ae; } .forme-lettres i.f-L { background: #d0453a; }
.match-infos { display: grid; gap: 6px; margin: 12px 0 10px; font-size: 14px; }
.match-infos .etiq { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--encre-3); font-weight: 700; margin-right: 4px; }
.match-joueurs { display: flex; gap: 6px; flex-wrap: wrap; }
.match-joueurs .puce { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.match-joueurs .av.s { --t: 22px; }
@media (max-width: 860px) { .match-affiche { grid-template-columns: 1fr; } .equipe:last-child { flex-direction: row; text-align: left; } .match-vs { text-align: left; padding-left: 8px; } }

.match-qui { display: grid; gap: 8px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--trait); }
.match-joueur { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.match-joueur strong { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.match-joueur span span { font-size: 13.5px; color: var(--encre-2); }

.contexte ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.contexte li { line-height: 1.45; }

/* =============================================================================
   Matrice ASC 360 : systeme visuel (direction artistique Codex, 29/09/2026)
   Cadre bleu nuit, zone de travail ivoire, vert ASC pour l'action, bronze pour
   contrats et mandats, rouge pour l'urgence reelle, azur pour ASC Young.
   ========================================================================== */
:root {
  --nuit: #0a1321; --nuit-2: #111d30; --nuit-trait: #1f2d44; --nuit-texte: #c9d3e0; --nuit-texte-2: #8c9ab0;
  --fond: #f6f3eb; --surface: #fffdf8; --surface-2: #f9f6ef; --trait: #e6e0d3; --trait-fort: #d4ccbb;
  --encre: #0b1422; --encre-2: #3f4a5a; --encre-3: #5d6877;
  --accent: #0e7a55; --accent-fort: #0a6144; --accent-doux: #e2f2ea;
  --bronze: #8a5a1c; --bronze-doux: #f6ead7;
  --azur: #1f6feb; --azur-doux: #e5eefc;
  --ombre: 0 1px 2px rgba(11,20,34,.06), 0 6px 18px rgba(11,20,34,.06);
  --ombre-forte: 0 18px 50px rgba(11,20,34,.22);
  --rayon: 16px; --rayon-s: 10px;
}
:root[data-espace="young"] { --accent: #1f6feb; --accent-fort: #1557c0; --accent-doux: #e5eefc; }

/* Coque : navigation bleu nuit */
.barre { background: linear-gradient(180deg, var(--nuit) 0%, var(--nuit-2) 100%); border-right: 1px solid var(--nuit-trait); color: var(--nuit-texte); }
.barre .logo-texte { color: #fff; }
.barre .logo-texte small { color: var(--nuit-texte-2); }
.barre .logo-pastille { background: var(--accent); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 6px 18px rgba(14,122,85,.35); }
.barre .nav-titre { color: var(--nuit-texte-2); }
.barre .nav a { color: var(--nuit-texte); min-height: 40px; }
.barre .nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.barre .nav a[aria-current="page"] { background: linear-gradient(90deg, rgba(14,122,85,.32), rgba(14,122,85,.08)); color: #fff; box-shadow: inset 3px 0 0 #3ddc97; }
.barre .nav .compte { background: rgba(255,255,255,.08); border-color: transparent; color: var(--nuit-texte); }
.barre .nav .compte.chaud { background: rgba(219,164,84,.2); color: #f0c98a; }
.barre .nav .compte.rouge { background: #d8453a; color: #fff; }
.barre .barre-pied { border-top-color: var(--nuit-trait); }
.barre .barre-pied .btn { color: var(--nuit-texte); }
.barre .barre-pied .btn:hover { background: rgba(255,255,255,.06); color: #fff; }
.barre .demo { background: rgba(219,164,84,.12); color: #f0c98a; }
.haut { background: color-mix(in srgb, var(--fond) 90%, transparent); }

/* Actions : une action verte principale, le reste ivoire */
.btn.plein { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.plein:hover { background: var(--accent-fort); border-color: var(--accent-fort); }
.btn { transition: background .18s, border-color .18s, transform .12s, box-shadow .18s; }
.btn:focus-visible, .puce:focus-visible { box-shadow: 0 0 0 4px var(--accent-doux); }
.puce[aria-pressed="true"] { background: var(--nuit); border-color: var(--nuit); color: #fff; }

/* Contrats, mandats, echeances : bronze */
.badge.bronze { background: var(--bronze-doux); color: var(--bronze); border-color: transparent; }
.badge.or { background: var(--bronze-doux); color: var(--bronze); }

/* Cartes */
.carte, .kpi, .table-wrap { border-color: var(--trait); }
.kpi:hover, a.carte:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-doux); }

/* Cibles tactiles de 44 px sur telephone */
@media (max-width: 860px) {
  .btn, .puce, .btn-icone, .filtre-ligne select, .filtre-ligne input { min-height: 44px; }
  .btn.petit { min-height: 40px; }
  .btn-icone { width: 44px; height: 44px; }
}

/* ------------------------------------------------------------ Morning Brief (Matrice) */
.mb-bande { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; margin: 6px 0 18px; }
.mb-bande h1 { font-size: 30px; }
.mb-bande .sur { width: 100%; font-size: 13px; color: var(--encre-3); font-weight: 600; letter-spacing: .02em; text-transform: capitalize; }
.mb-bande .maj { font-size: 12.5px; color: var(--encre-3); }
.decisions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.decision { position: relative; border-radius: 18px; padding: 18px 18px 16px; background: var(--surface); border: 1px solid var(--trait); box-shadow: var(--ombre); text-decoration: none; display: flex; flex-direction: column; gap: 8px; min-height: 150px; transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.decision:hover { transform: translateY(-2px); box-shadow: var(--ombre-forte); }
.decision::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c, var(--accent)); }
.decision .type { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c, var(--accent)); }
.decision .titre { font-family: var(--police-titre); font-size: 18px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.decision .detail { font-size: 13.5px; color: var(--encre-2); }
.decision .suite { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--c, var(--accent)); }
.decision.urgence { --c: #c2362b; }
.decision.opportunite { --c: var(--accent); }
.decision.action { --c: var(--bronze); }
.decision .qui { min-width: 0; }
.indicateurs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.indicateurs .kpi .v { font-size: 30px; }
@media (max-width: 1100px) { .decisions { grid-template-columns: 1fr; } .decision { min-height: 0; } }
@media (max-width: 860px) { .indicateurs { grid-template-columns: 1fr 1fr; } .mb-bande h1 { font-size: 25px; } }

/* ------------------------------------------------------------ Accueil : calendrier et a la une */
.calendrier-semaine { margin-bottom: 18px; }
.cal-jours { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; padding: 14px 18px 18px; overflow-x: auto; scroll-snap-type: x mandatory; }
.cal-jour { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; }
.cal-date { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--encre-3); font-weight: 700; display: flex; justify-content: space-between; }
.cal-date b { color: var(--encre); letter-spacing: 0; text-transform: none; }
.cal-jour.aujourdhui .cal-date { color: var(--accent); }
.cal-match { display: grid; gap: 6px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--trait); text-decoration: none; transition: border-color .18s, transform .18s; }
.cal-match:hover { border-color: var(--accent); transform: translateY(-1px); }
.cal-joueur { display: flex; align-items: center; gap: 8px; }
.cal-joueur b { font-size: 15px; font-weight: 700; }
.cal-joueur i { font-style: normal; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 2px 6px; border-radius: 6px; background: var(--accent-doux); color: var(--accent-fort); margin-left: auto; }
.cal-joueur i.st-discussion { background: #efe9fb; color: #6b3fc2; }
.cal-joueur i.st-observer { background: var(--bronze-doux); color: var(--bronze); }
.cal-affiche { font-size: 13.5px; font-weight: 600; }
.cal-info { font-size: 12px; color: var(--encre-3); }
.a-la-une { margin-bottom: 22px; border-left: 4px solid var(--accent); }
.une { padding: 12px 22px; border-top: 1px solid var(--trait); display: grid; gap: 4px; }
.une:first-of-type { border-top: 0; }
.une a { font-weight: 700; font-size: 16px; text-decoration: none; }
.une a:hover { color: var(--accent); }
.une > span { font-size: 12.5px; color: var(--encre-3); }
.mb-section { font-size: 13px; text-transform: uppercase; letter-spacing: .09em; color: var(--encre-3); margin: 4px 0 12px; }
@media (max-width: 860px) { .cal-jours { grid-auto-columns: 82%; padding: 12px; } }

.segments.trois { grid-template-columns: repeat(3, 1fr); }

.match-seul .match { border: 0; box-shadow: none; padding: 0; margin: 0; }

/* =============================================================================
   Notifications vivantes : tout ce qui demande une action attire l'oeil
   (demande du gerant, 29/09/2026 15 h 38). Coupe si « moins d'animations ».
   ========================================================================== */
@keyframes asc-clignote { 0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(216,69,58,.55); } 50% { opacity: .78; transform: scale(1.06); box-shadow: 0 0 0 6px rgba(216,69,58,0); } }
@keyframes asc-pulse-vert { 0%, 100% { box-shadow: 0 0 0 0 rgba(14,122,85,.45); } 50% { box-shadow: 0 0 0 7px rgba(14,122,85,0); } }
@keyframes asc-pulse-or { 0%, 100% { box-shadow: 0 0 0 0 rgba(219,164,84,.55); } 50% { box-shadow: 0 0 0 6px rgba(219,164,84,0); } }
@keyframes asc-scintille { 0% { background-position: -150% 0; } 100% { background-position: 250% 0; } }
@keyframes asc-bord { 0%, 100% { border-color: rgba(194,54,43,.35); } 50% { border-color: rgba(194,54,43,.95); } }

.nouveau { background: #d8453a; animation: asc-clignote 1.1s ease-in-out infinite; display: inline-block; }
.cloche .pastille { animation: asc-clignote 1.4s ease-in-out infinite; }
.barre .nav .compte.rouge { animation: asc-clignote 1.4s ease-in-out infinite; }
.barre .nav .compte.chaud { animation: asc-pulse-or 1.8s ease-in-out infinite; }
.badge.rouge { animation: asc-pulse-rouge 1.8s ease-in-out infinite; }
@keyframes asc-pulse-rouge { 0%, 100% { box-shadow: 0 0 0 0 rgba(216,69,58,.35); } 50% { box-shadow: 0 0 0 5px rgba(216,69,58,0); } }
.bandeau-alertes { background-image: linear-gradient(110deg, var(--rouge) 40%, #ef6b5f 50%, var(--rouge) 60%); background-size: 250% 100%; animation: asc-scintille 2.6s linear infinite; }
.bandeau-alertes .voir { animation: asc-clignote 1.4s ease-in-out infinite; }
.decision.urgence { animation: asc-bord 1.6s ease-in-out infinite; border-width: 1.5px; }
.decision.urgence .type::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #d8453a; margin-right: 6px; animation: asc-clignote 1s ease-in-out infinite; vertical-align: 1px; }
.decision.opportunite .suite, .decision.action .suite { position: relative; }
[data-action="scout-accepter"], [data-action="besoin-propose"].plein, .decision .suite { animation: asc-pulse-vert 2s ease-in-out infinite; border-radius: 10px; }
.kpi.alerte .v, .kpi.chaud .v { animation: asc-clignote 1.8s ease-in-out infinite; display: inline-block; transform-origin: left center; }
.reseau-match .reseau-titre svg, .alerte-critique .badge.rouge { animation: asc-clignote 1.2s ease-in-out infinite; }
.cal-jour.aujourdhui .cal-date::before { content: "● "; color: var(--accent); animation: asc-clignote 1.2s ease-in-out infinite; }
.btn.plein { background-image: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%); background-size: 250% 100%; background-repeat: no-repeat; animation: asc-scintille 3.2s ease-in-out infinite; }
.etoile.active svg { animation: asc-clignote 2.2s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .nouveau, .cloche .pastille, .barre .nav .compte, .badge.rouge, .bandeau-alertes, .bandeau-alertes .voir, .decision.urgence, .decision.urgence .type::before,
  [data-action="scout-accepter"], [data-action="besoin-propose"], .decision .suite, .kpi .v, .reseau-match .reseau-titre svg, .cal-jour .cal-date::before, .btn.plein, .etoile.active svg { animation: none !important; }
}

.btn.plein[data-action="scout-accepter"], .btn.plein[data-action="besoin-propose"] { animation: asc-pulse-vert 2s ease-in-out infinite, asc-scintille 3.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .btn.plein[data-action] { animation: none !important; } }

/* ------------------------------------------------------------ Accueil : compartiments bien lisibles */
h2.compartiment { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 750; letter-spacing: -.02em; }
h2.compartiment.grand { font-size: 22px; margin: 8px 0 14px; color: var(--encre); text-transform: none; letter-spacing: -.02em; }
.pastille-c { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex: none; background: var(--accent-doux); }
.pastille-c.une-p { background: #e6f0ff; } .pastille-c.prio { background: #fde8e6; } .pastille-c.opp { background: var(--accent-doux); }
.pastille-c.equipe-p { background: #efe9fb; } .pastille-c.presse { background: var(--bronze-doux); } .pastille-c.cal { background: #e6f0ff; }
.carte-tete { padding-top: 18px; }
.cal-date { display: block; white-space: nowrap; font-size: 13px; font-weight: 800; color: var(--encre); text-transform: capitalize; letter-spacing: 0; padding-bottom: 6px; border-bottom: 2px solid var(--trait); }
.cal-jour.aujourdhui .cal-date { border-bottom-color: var(--accent); }
.decision .type { font-size: 17px; font-weight: 850; letter-spacing: .02em; text-transform: none; }
.decision .titre { font-size: 19px; }
.decision { padding: 20px; }
@media (max-width: 860px) { h2.compartiment { font-size: 18px; } .pastille-c { width: 34px; height: 34px; font-size: 18px; } }

.calendrier-semaine .cal-jours { padding: 14px 20px 20px; scroll-padding-left: 20px; }

/* =============================================================================
   Elegance : typographie editoriale, icones fines, calme et precision
   (demande du gerant : « beaucoup plus elegant, plus de classe partout »)
   ========================================================================== */
:root { --police-titre: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif; }
h1, .mb-bande h1 { font-family: var(--police-titre); font-weight: 600; letter-spacing: -.01em; }
.mb-bande h1 { font-size: 34px; }
.mb-bande .sur { font-family: var(--police); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); font-weight: 700; }
.mb-bande .maj { font-size: 13px; }
h2.compartiment { font-family: var(--police-titre); font-size: 22px; font-weight: 600; letter-spacing: -.005em; gap: 12px; }
h2.compartiment.grand { font-size: 24px; margin: 18px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--trait); }
.pastille-c { width: 36px; height: 36px; border-radius: 50%; background: transparent !important; border: 1px solid var(--trait-fort); color: var(--accent); }
.pastille-c svg { width: 18px; height: 18px; }
.carte { border-radius: 18px; box-shadow: 0 1px 2px rgba(11,20,34,.04), 0 10px 30px rgba(11,20,34,.05); }
.carte-tete { padding: 20px 24px 4px; }
.carte-tete .lien { font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; color: var(--bronze); }
.calendrier-semaine .cal-jours { padding: 16px 24px 24px; gap: 16px; }
.cal-date { font-family: var(--police-titre); font-size: 16px; font-weight: 600; text-transform: none; border-bottom: 1px solid var(--trait); padding: 0 2px 8px; }
.cal-match { background: var(--surface); border-radius: 14px; box-shadow: 0 1px 2px rgba(11,20,34,.04); }
.cal-joueur b { font-size: 15.5px; }
.cal-joueur i { font-size: 10px; letter-spacing: .1em; }
.a-la-une { border-left: 0; }
.a-la-une .vide-bloc, .vide-bloc { font-style: italic; color: var(--encre-3); }
.decisions { gap: 18px; }
.decision { padding: 22px 22px 18px; border-radius: 18px; }
.decision::before { width: 3px; }
.decision .type { font-family: var(--police); font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.decision .titre { font-family: var(--police-titre); font-size: 21px; font-weight: 600; letter-spacing: -.005em; }
.decision .suite { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.decision.urgence { animation-duration: 2.4s; }
.kpi { border-radius: 16px; padding: 18px 20px; }
.kpi .v { font-family: var(--police-titre); font-weight: 600; }
.kpi .l { font-size: 12.5px; letter-spacing: .04em; }
.entete .sur { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); font-weight: 700; }
.entete h1 { font-size: 34px; }
.badge { font-weight: 650; letter-spacing: .01em; }
.btn { border-radius: 12px; font-weight: 650; letter-spacing: .01em; }
.nouveau { border-radius: 999px; padding: 2px 9px; font-size: 10.5px; letter-spacing: .12em; }
@media (max-width: 860px) { .mb-bande h1, .entete h1 { font-size: 27px; } h2.compartiment { font-size: 19px; } .decision .titre { font-size: 18px; } }

.filtres-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 6px 16px 16px; position: sticky; bottom: 0; background: linear-gradient(transparent, var(--surface) 30%); }
.grand-ok { min-height: 48px; padding: 0 22px; font-size: 15px; }
@media (max-width: 860px) { .filtres-actions { bottom: 78px; } .filtres-actions .btn { flex: 1; justify-content: center; } }

/* ------------------------------------------------------------ En direct */
@keyframes asc-live { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.en-direct { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 850; letter-spacing: .14em; color: #fff; background: #d8453a; padding: 4px 10px; border-radius: 999px; }
.en-direct i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: asc-live 1s ease-in-out infinite; }
.bandeau-direct { display: flex; align-items: center; gap: 14px; margin: 6px 32px 0; padding: 12px 16px; border-radius: 14px; background: var(--nuit); color: #fff; text-decoration: none; box-shadow: 0 10px 30px rgba(216,69,58,.25); border: 1px solid rgba(216,69,58,.6); animation: asc-bord 1.6s ease-in-out infinite; overflow: hidden; }
.bandeau-direct .bd-match { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bandeau-direct .voir { margin-left: auto; font-weight: 800; background: #d8453a; padding: 4px 12px; border-radius: 8px; }
.direct { padding: 18px 20px; }
.direct.vivant { border-color: rgba(216,69,58,.5); box-shadow: 0 0 0 3px rgba(216,69,58,.08), var(--ombre); }
.direct-tete { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.direct-joueurs { display: grid; gap: 6px; margin-bottom: 14px; }
.direct-joueur { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.direct-joueur b { font-family: var(--police-titre); font-size: 18px; font-weight: 600; }
.direct-joueur span { font-size: 13px; color: var(--encre-2); }
.direct-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.direct-score .eq { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.direct-score .eq.droite { justify-content: flex-end; text-align: right; }
.direct-score b { font-family: var(--police-titre); font-size: 34px; font-weight: 600; letter-spacing: .02em; }
.direct-evts { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.direct-evts li { display: grid; grid-template-columns: 40px 22px 1fr; gap: 6px; padding: 6px 8px; border-radius: 8px; }
.direct-evts li.nous { background: var(--accent-doux); font-weight: 700; }
.direct-evts .min { color: var(--encre-3); font-variant-numeric: tabular-nums; }
.direct-accueil { margin-bottom: 20px; }
@media (max-width: 860px) { .bandeau-direct { margin: 6px 16px 0; } .direct-score b { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .en-direct i, .bandeau-direct { animation: none !important; } }

/* ============================================================ MATRICE CINEMATIQUE V2
   Une seule image WebP, les mouvements et la profondeur restent en CSS. */
.arrivee {
  isolation: isolate; background: #020608; perspective: 1200px;
  transition: opacity .7s cubic-bezier(.4,0,.2,1), visibility .7s, filter .7s cubic-bezier(.4,0,.2,1);
}
.arrivee::before {
  z-index: 4; inset: 0; opacity: 1; animation: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 12%, rgba(0,5,8,.13) 46%, rgba(0,3,6,.72) 100%),
    linear-gradient(180deg, rgba(0,0,0,.54), transparent 23%, transparent 70%, rgba(0,0,0,.62));
  mask-image: none;
}
.arrivee::after {
  z-index: 5; left: -20%; right: -20%; top: 50%; height: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent 10%, rgba(198,255,231,.18), #caffeb 50%, rgba(198,255,231,.18), transparent 90%);
  box-shadow: 0 0 22px rgba(82,246,184,.9), 0 0 90px rgba(69,221,165,.75);
  animation: matrice-flash 1.7s 1.05s cubic-bezier(.2,.8,.2,1) both;
}
.arrivee.sortie { opacity: 0; visibility: hidden; filter: brightness(1.55) blur(3px); }
.arrivee-film { position: absolute; inset: -3%; z-index: 0; overflow: hidden; transform: translateZ(0); }
.arrivee-film-image {
  position: absolute; inset: 0;
  background: url('/assets/asc-matrice-cinematique-v2.webp') center 52% / cover no-repeat;
  filter: brightness(.58) saturate(.88) contrast(1.08) blur(8px);
  transform: scale(1.16) translateY(1.5%);
  animation: matrice-camera 7.2s cubic-bezier(.18,.72,.16,1) both;
  will-change: transform, filter;
}
.arrivee:not(.phase-signal) .arrivee-film-image,
.arrivee:not(.phase-signal) .arrivee-film-lumiere,
.arrivee:not(.phase-signal) .arrivee-rideau::before,
.arrivee:not(.phase-signal) .arrivee-rideau::after,
.arrivee:not(.phase-signal)::after { animation-play-state: paused !important; }
.arrivee-film-lumiere {
  position: absolute; inset: -10%; mix-blend-mode: screen; opacity: .05;
  background:
    conic-gradient(from 216deg at 50% 47%, transparent 0 11%, rgba(103,255,198,.12) 12%, transparent 14% 47%, rgba(255,224,171,.1) 49%, transparent 51%),
    radial-gradient(circle at 50% 47%, rgba(205,255,235,.32), rgba(49,216,154,.08) 12%, transparent 31%);
  animation: matrice-respire 3.4s 1.1s ease-in-out infinite;
}
.arrivee-film-reflet {
  position: absolute; inset: 46% 0 0; opacity: .32; transform: perspective(650px) rotateX(58deg) scaleX(1.5);
  transform-origin: top; mix-blend-mode: screen;
  background: repeating-linear-gradient(90deg, transparent 0 9.5%, rgba(96,240,186,.11) 10%, transparent 10.5% 20%);
  mask-image: linear-gradient(#000, transparent 78%);
}
.arrivee-rideau { position: absolute; inset: 0; z-index: 12; pointer-events: none; }
.arrivee-rideau::before, .arrivee-rideau::after {
  content: ''; position: absolute; left: 0; width: 100%; height: 50.5%; background: #010304; will-change: transform;
}
.arrivee-rideau::before { top: 0; transform-origin: top; animation: matrice-rideau-haut 1.25s .12s cubic-bezier(.76,0,.24,1) forwards; }
.arrivee-rideau::after { bottom: 0; transform-origin: bottom; animation: matrice-rideau-bas 1.25s .12s cubic-bezier(.76,0,.24,1) forwards; }
.arrivee-poussiere { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.arrivee-poussiere i {
  position: absolute; left: var(--px); top: var(--py); width: 3px; height: 3px; border-radius: 50%;
  background: #d8fff0; box-shadow: 0 0 10px #60eab5, 0 0 28px rgba(83,225,173,.8); opacity: 0;
  animation: matrice-poussiere 3.8s var(--pd) ease-in-out infinite;
}
.arrivee-pluie { z-index: 2; opacity: .15; mix-blend-mode: screen; filter: perspective(600px) rotateX(5deg); }
.arrivee-pluie span { color: rgba(114,255,203,.62); font-size: 9px; text-shadow: 0 0 12px rgba(54,230,166,.7); }
.arrivee.phase-message .arrivee-pluie { opacity: .055; filter: blur(1.3px); }
.arrivee-cinema { z-index: 2; opacity: .58; }
.arrivee.phase-message .arrivee-cinema { opacity: .08; transform: scale(1.08); }
.arrivee-terrain { width: min(92vw, 1180px); color: rgba(184,255,229,.23); filter: drop-shadow(0 0 24px rgba(54,199,147,.22)); }
.arrivee-centre { z-index: 6; width: min(94vw, 1180px); min-height: min(76vh, 680px); }
.arrivee-aura { opacity: 0; animation: none; width: min(64vw, 660px); }
.arrivee.phase-logo .arrivee-aura { animation: matrice-aura 2.4s cubic-bezier(.2,.8,.2,1) both; }
.arrivee-embleme { opacity: 0; animation: none; transform: scale(.64) translateZ(60px); }
.arrivee.phase-logo .arrivee-embleme { animation: matrice-embleme 1.45s cubic-bezier(.16,1,.3,1) forwards; }
.arrivee.phase-message .arrivee-embleme { animation: matrice-embleme-sortie .7s cubic-bezier(.55,0,.2,1) forwards; }
.arrivee-logo {
  width: clamp(190px, 22vw, 290px); border: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(5,17,19,.84) 0 44%, rgba(11,54,42,.4) 64%, transparent 72%);
  box-shadow: 0 0 0 1px rgba(170,255,224,.22), 0 0 45px rgba(82,235,178,.22), 0 0 140px rgba(40,192,138,.19);
}
.arrivee-logo::before {
  inset: -17%; border: 1px solid rgba(160,255,220,.45); border-radius: 50%;
  transform: rotate(0) scale(.7); animation: matrice-cercle 2.4s .1s cubic-bezier(.2,.8,.2,1) both;
  box-shadow: inset 0 0 30px rgba(59,222,161,.08), 0 0 28px rgba(59,222,161,.12);
}
.arrivee-logo::after {
  content: ''; position: absolute; inset: -7%; border-radius: 50%; border: 1px dashed rgba(213,255,240,.28);
  animation: matrice-rotation 9s linear infinite;
}
.arrivee-symbole {
  font-size: clamp(78px, 10vw, 136px); letter-spacing: -.1em; color: #f7fffc;
  text-shadow: 0 0 5px #fff, 0 0 22px rgba(133,255,210,.82), 0 0 72px rgba(44,212,151,.7), 0 22px 50px rgba(0,0,0,.7);
}
.arrivee-nom { margin-top: 35px; color: #e6f3ef; font-size: clamp(10px, 1.2vw, 14px); text-shadow: 0 2px 18px rgba(0,0,0,.9); }
.arrivee-message { width: min(96vw, 1160px); padding: 0 28px; opacity: 0; transform: translateY(28px) scale(.97); }
.arrivee.phase-message .arrivee-message { animation: matrice-message .72s .08s cubic-bezier(.16,1,.3,1) forwards; }
.arrivee-kicker {
  color: #9ff4d2; font-size: 11px; font-weight: 750; letter-spacing: .36em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px); text-shadow: 0 0 18px rgba(81,226,172,.46);
}
.arrivee.phase-message .arrivee-kicker { animation: matrice-kicker .55s .2s ease-out forwards; }
.arrivee-bienvenue {
  min-height: 1.2em; margin-top: 22px; color: #fff; font-family: "Segoe UI Variable Display", "Aptos Display", system-ui, sans-serif;
  font-size: clamp(42px, 6.9vw, 96px); font-weight: 280; letter-spacing: -.048em; line-height: .98;
  text-transform: none; white-space: normal; text-wrap: balance;
  text-shadow: 0 4px 28px rgba(0,0,0,.9), 0 0 46px rgba(69,220,165,.18);
}
.arrivee-bienvenue .arrivee-mot { display: inline-block; font: inherit; white-space: nowrap; }
.arrivee-bienvenue .arrivee-mot > span { display: inline-block; opacity: 0; transform: translateY(24px) rotateX(-62deg); filter: blur(8px); }
.arrivee.phase-message .arrivee-bienvenue .arrivee-mot > span {
  animation: matrice-lettre .54s calc(.22s + var(--lettre)) cubic-bezier(.16,1,.3,1) forwards;
}
.arrivee-matrice {
  margin-top: 26px; color: rgba(232,244,240,.82); font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(12px, 1.5vw, 17px); font-weight: 500; letter-spacing: .07em; line-height: 1.55;
  opacity: 0; transform: translateY(10px); text-shadow: 0 3px 18px #000;
}
.arrivee.phase-message .arrivee-matrice { animation: matrice-sous-titre .7s 1.12s ease-out forwards; }
.arrivee-trait { width: 0; margin-top: 30px; height: 1px; background: linear-gradient(90deg, transparent, #9ff4d2, #d9b778, transparent); }
.arrivee.phase-message .arrivee-trait { animation: matrice-trait 1s 1.7s cubic-bezier(.2,.8,.2,1) forwards; }
.arrivee-passer {
  z-index: 20; border-color: rgba(221,244,236,.25); background: rgba(1,9,12,.48); color: rgba(239,250,246,.86);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06); letter-spacing: .08em; text-transform: uppercase; font-size: 10px;
}
.arrivee.phase-entree .arrivee-message { animation: matrice-message-sortie .55s cubic-bezier(.55,0,.2,1) forwards; }
.arrivee.phase-entree .arrivee-film-image { animation: matrice-entree-portail .9s cubic-bezier(.7,0,.3,1) forwards; }
.arrivee.phase-entree::after { animation: matrice-flash-final .9s cubic-bezier(.2,.8,.2,1) forwards; }

@keyframes matrice-camera {
  0% { opacity: 0; transform: scale(1.2) translateY(2.5%); filter: brightness(.38) saturate(.7) contrast(1.16) blur(12px); }
  18% { opacity: 1; }
  58% { transform: scale(1.08) translateY(.5%); filter: brightness(.64) saturate(.95) contrast(1.08) blur(0); }
  100% { opacity: 1; transform: scale(1.025); filter: brightness(.7) saturate(1) contrast(1.05) blur(0); }
}
@keyframes matrice-rideau-haut { to { transform: translateY(-102%); } }
@keyframes matrice-rideau-bas { to { transform: translateY(102%); } }
@keyframes matrice-flash { 0%,100% { opacity: 0; transform: scaleX(.05); } 38% { opacity: .95; transform: scaleX(.58); } 62% { opacity: .42; transform: scaleX(1); } }
@keyframes matrice-respire { 0%,100% { opacity: .05; transform: scale(.96); } 50% { opacity: .34; transform: scale(1.05); } }
@keyframes matrice-poussiere { 0%,100% { opacity: 0; transform: translate3d(0,18px,0) scale(.5); } 35% { opacity: .8; } 65% { opacity: .35; } 90% { transform: translate3d(24px,-54px,0) scale(1.4); } }
@keyframes matrice-aura { 0% { opacity: 0; transform: scale(.42); } 38% { opacity: .9; } 100% { opacity: 0; transform: scale(1.38); } }
@keyframes matrice-embleme { 0% { opacity: 0; transform: scale(.62) translateZ(100px); filter: blur(18px); } 48% { opacity: 1; filter: blur(0); } 100% { opacity: 1; transform: scale(1) translateZ(0); filter: blur(0); } }
@keyframes matrice-embleme-sortie { from { opacity: 1; transform: scale(1); filter: blur(0); } to { opacity: 0; transform: scale(1.28); filter: blur(9px); } }
@keyframes matrice-cercle { 0% { opacity: 0; transform: scale(.45) rotate(-34deg); } 40% { opacity: 1; } 100% { opacity: .46; transform: scale(1) rotate(0); } }
@keyframes matrice-rotation { to { transform: rotate(360deg); } }
@keyframes matrice-message { to { opacity: 1; transform: none; } }
@keyframes matrice-kicker { to { opacity: 1; transform: none; } }
@keyframes matrice-lettre { 65% { opacity: 1; filter: blur(0); } 100% { opacity: 1; transform: none; filter: blur(0); } }
@keyframes matrice-sous-titre { to { opacity: 1; transform: none; } }
@keyframes matrice-trait { to { width: min(240px, 34vw); } }
@keyframes matrice-message-sortie { to { opacity: 0; transform: scale(1.08); filter: blur(7px); } }
@keyframes matrice-entree-portail { to { transform: scale(1.55); filter: brightness(1.42) saturate(.75) blur(2px); } }
@keyframes matrice-flash-final { 0% { opacity: 0; transform: scaleX(.2); } 68% { opacity: 1; transform: scaleX(1.5); } 100% { opacity: .35; transform: scaleX(1.8); } }

@media (max-width: 520px) {
  .arrivee-film { inset: 0; }
  .arrivee-film-image { background-image: url('/assets/asc-matrice-cinematique-v2-mobile.webp'); background-position: center 50%; animation-name: matrice-camera-mobile; }
  .arrivee-centre { min-height: 72vh; }
  .arrivee-logo { width: 184px; }
  .arrivee-nom { margin-top: 24px; letter-spacing: .12em; }
  .arrivee-message { padding: 0 18px; }
  .arrivee-kicker { font-size: 9px; letter-spacing: .22em; }
  .arrivee-bienvenue { margin-top: 16px; font-size: clamp(37px, 13vw, 58px); line-height: .94; letter-spacing: -.055em; }
  .arrivee-matrice { max-width: 320px; margin: 22px auto 0; font-size: 11px; }
  .arrivee-poussiere i:nth-child(even), .arrivee-pluie span:nth-child(even) { display: none; }
}

@keyframes matrice-camera-mobile {
  0% { opacity: 0; transform: scale(1.18) translateY(2%); filter: brightness(.48) saturate(.78) contrast(1.1) blur(10px); }
  17% { opacity: 1; }
  56% { transform: scale(1.08); filter: brightness(.82) saturate(1.04) contrast(1.04) blur(0); }
  100% { opacity: 1; transform: scale(1.02); filter: brightness(.76) saturate(1) contrast(1.04) blur(0); }
}

/* ============================================================ ACCUEIL INTELLIGENCE V2
   Un cockpit clair : spectaculaire au premier regard, simple a lire ensuite. */
:root {
  --police-titre: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fond: #edf3f0; --surface: #fbfdfc; --surface-2: #f2f7f4; --trait: #d9e4df; --trait-fort: #c7d6d0;
}
.principal { background: radial-gradient(circle at 78% -10%, rgba(61,202,148,.09), transparent 32%), var(--fond); }
.haut { border-bottom: 1px solid color-mix(in srgb, var(--trait) 72%, transparent); box-shadow: 0 8px 28px rgba(9,28,36,.025); }
.page { max-width: 1440px; padding-top: 20px; }
.recherche input { min-height: 46px; background: color-mix(in srgb, var(--surface) 92%, transparent); border-color: color-mix(in srgb, var(--trait) 78%, var(--accent)); box-shadow: 0 8px 24px rgba(6,24,31,.04); }
.barre { box-shadow: 10px 0 40px rgba(2,12,22,.1); }
.barre .logo-pastille { background: linear-gradient(145deg, #1fb47e, #0b6e4f); color: #fff; box-shadow: 0 8px 24px rgba(23,170,116,.24); }
.barre .logo-asc { gap: 10px; min-height: 66px; padding: 5px 8px 18px; align-items: center; }
.barre .logo-monogramme {
  position: relative; min-width: 50px; color: #f4fff9; font: 750 16px/1 var(--police-titre); letter-spacing: -.06em;
  text-shadow: 0 0 18px rgba(90,242,185,.24);
}
.barre .logo-monogramme::after {
  content: ""; position: absolute; left: 0; bottom: -9px; width: 25px; height: 2px; border-radius: 4px;
  background: linear-gradient(90deg, #70f0bf, rgba(112,240,191,0)); box-shadow: 0 0 12px rgba(83,230,174,.48);
}
.barre .logo-monogramme small { margin-left: 3px; color: #70e6b7; font: 800 6px/1 var(--police); letter-spacing: .03em; }
.barre .logo-filet { width: 1px; height: 35px; flex: none; background: linear-gradient(180deg, transparent, rgba(176,232,213,.38), transparent); }
.barre .logo-asc .logo-texte { display: grid; gap: 2px; min-width: 0; color: #fff; font-family: var(--police); line-height: 1; }
.barre .logo-asc .logo-texte strong { font-size: 12px; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
.barre .logo-asc .logo-texte span { color: rgba(231,244,240,.84); font-size: 9px; font-weight: 620; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.barre .logo-asc .logo-texte small { margin-top: 3px; color: #6fe5b6; font-size: 7px; font-weight: 760; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }
.barre .nav a { border: 1px solid transparent; }
.barre .nav a[aria-current="page"] { border-color: rgba(102,238,187,.1); box-shadow: inset 3px 0 0 #42d49e, 0 10px 24px rgba(0,0,0,.1); }
.mb-cockpit {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0,1fr) 300px;
  min-height: 270px; margin: 8px 0 24px; padding: 38px 42px; align-items: center; gap: 24px;
  border: 1px solid rgba(129,247,202,.18); border-radius: 26px; color: #f5fffb;
  background:
    linear-gradient(104deg, rgba(2,10,15,.98) 0%, rgba(5,23,27,.94) 48%, rgba(4,18,23,.76) 100%),
    url('/assets/asc-matrice-cinematique-v2.webp') center 47% / cover no-repeat;
  box-shadow: 0 26px 70px rgba(4,16,25,.18), inset 0 1px 0 rgba(255,255,255,.08);
}
.mb-cockpit::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .27; pointer-events: none;
  background:
    linear-gradient(rgba(111,240,190,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111,240,190,.08) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: linear-gradient(90deg, #000, transparent 74%);
}
.mb-cockpit::after {
  content: ''; position: absolute; z-index: -1; width: 440px; height: 440px; right: -70px; top: -100px;
  border-radius: 50%; background: radial-gradient(circle, rgba(62,235,169,.22), rgba(36,177,128,.05) 42%, transparent 70%);
  filter: blur(4px); animation: mb-respire 5s ease-in-out infinite;
}
.mb-cockpit .mb-contenu { position: relative; z-index: 2; min-width: 0; }
.mb-cockpit .sur { width: auto; margin-bottom: 13px; color: #9df0d0; font: 750 11px/1.3 var(--police); letter-spacing: .2em; text-transform: uppercase; }
.mb-cockpit h1 { color: #fff; font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; font-size: clamp(42px,4.3vw,64px); font-weight: 330; letter-spacing: -.05em; line-height: .98; }
.mb-cockpit .maj { display: block; max-width: 720px; margin-top: 16px; color: rgba(230,245,240,.76); font-size: 14px; line-height: 1.6; }
.mb-statut { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.mb-statut span, .mb-statut a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 11px; border: 1px solid rgba(194,255,231,.13); border-radius: 999px; background: rgba(3,17,21,.52); color: rgba(235,250,245,.78); font-size: 11.5px; text-decoration: none; backdrop-filter: blur(8px); }
.mb-statut a:hover { border-color: rgba(143,248,207,.5); color: #fff; }
.mb-statut .operationnel { color: #aff6da; }
.mb-statut .operationnel i { width: 7px; height: 7px; border-radius: 50%; background: #60e8b4; box-shadow: 0 0 0 5px rgba(96,232,180,.1), 0 0 14px rgba(96,232,180,.8); animation: mb-signal 2s ease-in-out infinite; }
.mb-orbite { position: relative; width: 230px; aspect-ratio: 1; justify-self: center; display: grid; place-items: center; }
.mb-orbite > i { position: absolute; inset: var(--o); border: 1px solid rgba(164,255,220,.2); border-radius: 50%; box-shadow: inset 0 0 24px rgba(60,223,162,.04); animation: mb-tour var(--d) linear infinite; }
.mb-orbite > i::before { content: ''; position: absolute; top: 50%; left: -3px; width: 6px; height: 6px; border-radius: 50%; background: #9af2d0; box-shadow: 0 0 16px #54dda8; }
.mb-orbite > i:nth-child(1) { --o: 0; --d: 14s; }
.mb-orbite > i:nth-child(2) { --o: 27px; --d: 10s; animation-direction: reverse; }
.mb-orbite > i:nth-child(3) { --o: 54px; --d: 7s; }
.mb-orbite > div { width: 104px; height: 104px; display: grid; place-content: center; text-align: center; border-radius: 50%; background: radial-gradient(circle at 42% 35%, rgba(43,95,80,.88), rgba(2,13,17,.97) 66%); border: 1px solid rgba(188,255,230,.36); box-shadow: 0 0 45px rgba(51,222,160,.22), inset 0 0 26px rgba(116,242,195,.08); }
.mb-orbite b { font: 750 29px/.88 "Segoe UI Variable Display",sans-serif; letter-spacing: -.08em; }
.mb-orbite small { margin-top: 7px; color: #9ceecd; font-size: 9px; letter-spacing: .38em; }

.indicateurs .kpi { position: relative; overflow: hidden; border-color: color-mix(in srgb, var(--trait) 74%, var(--accent)); box-shadow: 0 10px 28px rgba(8,27,35,.06); }
.indicateurs .kpi::after { content: ''; position: absolute; inset: auto 16px 0; height: 2px; opacity: .55; background: linear-gradient(90deg, var(--accent), transparent); }
.decision { box-shadow: 0 14px 38px rgba(7,23,31,.07); }
.decision:hover { transform: translateY(-4px); box-shadow: 0 22px 52px rgba(7,23,31,.13); }
.carte { border-color: rgba(132,161,149,.24); box-shadow: 0 14px 42px rgba(8,30,37,.055); }
.carte-tete { min-height: 62px; }
.cal-match { border-color: rgba(127,157,145,.22); box-shadow: 0 7px 20px rgba(8,30,37,.04); }
.cal-match:hover { box-shadow: 0 12px 28px rgba(8,30,37,.09); }
.indicateurs .kpi .v { font-size: 38px; font-weight: 380; letter-spacing: -.055em; }
.indicateurs .kpi .l { margin-top: 7px; text-transform: uppercase; letter-spacing: .09em; font-size: 10px; font-weight: 730; }
.decision .type { color: var(--c, var(--accent)); }
.decision .titre { font-size: 20px; font-weight: 580; }
h2.compartiment.grand { margin-top: 28px; font-size: 25px; }
.decision.urgence, .decision .suite, .indicateurs .kpi .v, .btn.plein { animation: none !important; }
.decision.urgence .type::before { animation-duration: 1.8s; }

.connexion-marque::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,11,17,.26), rgba(3,11,17,.82)), url('/assets/asc-matrice-cinematique-v2.webp') center / cover no-repeat; opacity: .7; transform: scale(1.03); }
.connexion-marque::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 52% 48%, rgba(68,229,169,.18), transparent 40%), linear-gradient(90deg, rgba(92,232,178,.06) 1px, transparent 1px), linear-gradient(rgba(92,232,178,.06) 1px, transparent 1px); background-size: auto, 48px 48px, 48px 48px; }
.connexion-marque > * { z-index: 1; }
.connexion-carte { padding: 30px; border: 1px solid var(--trait); border-radius: 22px; background: color-mix(in srgb, var(--surface) 93%, transparent); box-shadow: 0 28px 80px rgba(6,20,29,.1); }

@keyframes mb-tour { to { transform: rotate(360deg); } }
@keyframes mb-respire { 0%,100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes mb-signal { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

@media (max-width: 860px) {
  .page { padding-top: 12px; }
  .mb-cockpit { grid-template-columns: minmax(0,1fr) 116px; min-height: 250px; padding: 28px 24px; border-radius: 22px; background-image: linear-gradient(104deg, rgba(2,10,15,.97), rgba(4,20,24,.86)), url('/assets/asc-matrice-cinematique-v2-mobile.webp'); }
  .mb-cockpit h1 { font-size: clamp(36px,10vw,48px); }
  .mb-orbite { width: 112px; align-self: start; margin-top: 20px; }
  .mb-orbite > i:nth-child(2) { --o: 14px; }
  .mb-orbite > i:nth-child(3) { --o: 28px; }
  .mb-orbite > div { width: 58px; height: 58px; }
  .mb-orbite b { font-size: 18px; }
  .mb-orbite small { font-size: 6px; margin-top: 4px; }
}
@media (max-width: 560px) {
  .mb-cockpit { grid-template-columns: 1fr; min-height: 0; padding: 27px 22px 24px; }
  .mb-cockpit h1 { font-size: 39px; }
  .mb-cockpit .maj { font-size: 12.5px; }
  .mb-orbite { position: absolute; right: -18px; top: -15px; width: 116px; opacity: .48; }
  .mb-statut { padding-right: 0; }
  .mb-statut span, .mb-statut a { font-size: 10.5px; }
  .connexion-carte { padding: 24px; border-radius: 18px; }
}
@media (max-width: 380px) {
  .calendrier-semaine .carte-tete { align-items: flex-start; flex-wrap: wrap; }
  .calendrier-semaine .carte-tete h2 { width: 100%; }
  .calendrier-semaine .carte-tete .lien { margin-left: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .mb-cockpit::after, .mb-orbite > i, .mb-statut .operationnel i { animation: none !important; }
}

/* ============================================================ CONNEXION CINEMA V3
   Un seul decor, une carte de verre et aucune grande zone beige vide. */
.connexion {
  position: relative; isolation: isolate; min-height: 100dvh; overflow: hidden;
  grid-template-columns: minmax(0, 1.25fr) minmax(430px, .75fr); color: #eefaf6;
  background: #02080c;
}
.connexion::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: url('/assets/asc-matrice-cinematique-v2.webp') center 48% / cover no-repeat;
  transform: scale(1.015); filter: saturate(.92) contrast(1.05) brightness(.72);
}
.connexion::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 45% 48%, rgba(67,226,167,.08), transparent 30%),
    linear-gradient(90deg, rgba(1,7,11,.3) 0%, rgba(1,7,11,.64) 56%, rgba(1,7,11,.9) 100%),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.55));
}
.connexion-marque {
  min-height: 100dvh; padding: clamp(38px, 5vw, 76px); background: transparent; justify-content: space-between;
}
.connexion-marque::before, .connexion-marque::after { display: none; }
.connexion-marque svg.terrain { opacity: .19; filter: drop-shadow(0 0 20px rgba(80,229,174,.18)); }
.connexion-marque .logo { width: max-content; padding: 0; }
.connexion-marque .logo-pastille { color: #dffcf0; background: rgba(3,18,22,.62); border: 1px solid rgba(185,255,229,.28); box-shadow: 0 0 28px rgba(68,224,165,.15); }
.connexion-marque .logo-texte { color: #fff !important; font-family: var(--police); font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.connexion-marque .logo-texte small { color: rgba(221,240,234,.6) !important; }
.connexion-marque .grand { max-width: 700px; color: #fff; font-family: var(--police-titre); font-size: clamp(68px, 8vw, 118px); font-weight: 260; letter-spacing: -.075em; text-shadow: 0 10px 45px rgba(0,0,0,.7); }
.connexion-marque .grand span { color: #7bf0bf; text-shadow: 0 0 36px rgba(69,226,166,.42); }
.connexion-marque p { max-width: 610px; color: rgba(228,243,238,.74); font-size: clamp(15px, 1.4vw, 19px); line-height: 1.65; text-shadow: 0 3px 18px rgba(0,0,0,.8); }
.connexion-marque > p:last-child { margin: 0; color: rgba(223,241,235,.58); font-size: 12px; letter-spacing: .04em; }
.connexion-form {
  position: relative; min-height: 100dvh; padding: 42px; align-items: center;
  background: linear-gradient(180deg, rgba(2,10,15,.52), rgba(2,10,15,.78));
  border-left: 1px solid rgba(190,255,231,.11); backdrop-filter: blur(20px) saturate(1.12);
}
.connexion-carte {
  position: relative; max-width: 440px; padding: 38px; overflow: hidden;
  color: #f4fffb; background: linear-gradient(145deg, rgba(12,29,32,.82), rgba(3,13,18,.74));
  border: 1px solid rgba(190,255,231,.19); border-radius: 26px;
  box-shadow: 0 40px 100px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.08);
}
.connexion-carte::before {
  content: 'ENTREE SECURISEE · ASC 360'; display: block; margin-bottom: 24px; color: #8cecc7;
  font: 760 10px/1.2 var(--police); letter-spacing: .23em;
}
.connexion-carte::after {
  content: ''; position: absolute; width: 180px; height: 180px; top: -90px; right: -75px; border-radius: 50%;
  border: 1px solid rgba(135,245,203,.15); box-shadow: 0 0 0 26px rgba(113,237,190,.025), 0 0 0 54px rgba(113,237,190,.018);
}
.connexion-carte h1 { color: #fff; font-size: 46px; font-weight: 310; letter-spacing: -.055em; }
.connexion-carte .sous { color: rgba(224,240,235,.66); font-size: 14px; line-height: 1.55; }
.connexion-carte .champ label { color: rgba(227,244,238,.76); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.connexion-carte .champ input {
  min-height: 50px; color: #fff; background: rgba(3,12,17,.64); border-color: rgba(188,255,230,.18); border-radius: 13px;
}
.connexion-carte .champ input:focus { border-color: #68e5b5; box-shadow: 0 0 0 4px rgba(73,220,164,.12), 0 0 30px rgba(73,220,164,.08); }
.connexion-carte input:-webkit-autofill,
.connexion-carte input:-webkit-autofill:hover,
.connexion-carte input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f7fffc; caret-color: #8cf0ca;
  -webkit-box-shadow: 0 0 0 1000px #07151a inset, 0 0 0 4px rgba(73,220,164,.12) !important;
  border-color: rgba(104,229,181,.72); transition: background-color 9999s ease-out;
}
.connexion-carte .bascule { background: rgba(2,10,15,.6); border-color: rgba(188,255,230,.13); }
.connexion-carte .bascule button { min-height: 42px; color: rgba(225,242,236,.6); }
.connexion-carte .bascule button[aria-pressed="true"] { color: #f6fffb; background: rgba(43,133,103,.38); box-shadow: inset 0 0 0 1px rgba(149,245,208,.13); }
.connexion-carte .btn.plein { min-height: 52px; margin-top: 7px; color: #02110c; background: linear-gradient(110deg, #58dca8, #8af0c9 50%, #45c993); border: 0; box-shadow: 0 14px 35px rgba(54,211,153,.19); }
.connexion-carte .btn.plein:hover { color: #02110c; filter: brightness(1.06); transform: translateY(-1px); }
.connexion-carte .erreur-form { color: #ffc8c3; background: rgba(150,34,26,.24); border: 1px solid rgba(255,142,131,.18); }

@media (max-width: 860px) {
  .connexion { display: block; min-height: 100dvh; overflow-y: auto; background: #02080c; }
  .connexion::before { position: fixed; background-image: url('/assets/asc-matrice-cinematique-v2-mobile.webp'); background-position: center 44%; filter: saturate(.92) contrast(1.05) brightness(.62); }
  .connexion::after { position: fixed; background: linear-gradient(180deg, rgba(1,7,11,.22), rgba(1,7,11,.72) 40%, #02090d 78%); }
  .connexion-marque { min-height: 41vh; padding: 26px 24px 18px; }
  .connexion-marque .grand { margin-top: auto; font-size: clamp(52px, 17vw, 78px); }
  .connexion-marque p { max-width: 560px; font-size: 14px; }
  .connexion-marque > p:last-child { display: none; }
  .connexion-form { min-height: 59vh; padding: 18px 20px 36px; align-items: flex-start; background: transparent; border: 0; backdrop-filter: none; }
  .connexion-carte { max-width: 560px; margin: 0 auto; padding: 28px; background: rgba(3,14,19,.88); backdrop-filter: blur(18px); }
  .connexion-carte h1 { font-size: 38px; }
  .mb-statut span, .mb-statut a { min-height: 44px; }
}
@media (max-width: 380px) {
  .connexion-marque { min-height: 36vh; padding: 22px 18px 12px; }
  .connexion-marque .grand { font-size: 48px; }
  .connexion-marque p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; }
  .connexion-form { min-height: 64vh; padding: 12px 14px 28px; }
  .connexion-carte { padding: 23px 20px; border-radius: 21px; }
  .connexion-carte::before { margin-bottom: 17px; font-size: 8.5px; }
  .connexion-carte h1 { font-size: 34px; }
}

.ajout-contact { margin-bottom: 18px; }
.ajout-ligne { display: flex; gap: 10px; flex-wrap: wrap; }
.ajout-ligne input { flex: 1; min-width: 220px; border: 1px solid var(--trait-fort); border-radius: 12px; padding: 12px 14px; background: var(--surface); font-size: 15px; }
.ajout-ligne input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-doux); }

/* Panneau de filtre des contacts */
.panneau-filtre { border-left: 3px solid var(--vert, #1f7a55); }
.pf-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pf-compte { font-size: 14px; color: var(--encre-2, #555); } .pf-compte strong { font-size: 20px; color: var(--encre, #111); }
.pf-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 14px; }
.pf-champ { display: flex; flex-direction: column; gap: 5px; } .pf-large { grid-column: 1 / -1; }
.pf-champ span, .pf-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-2, #555); }
.pf-label { margin-bottom: 8px; }
.pf-champ input, .pf-champ select { border: 1px solid var(--trait); background: var(--surface); border-radius: 10px; padding: 9px 12px; font-size: 14px; min-height: 42px; width: 100%; }
.pf-actifs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--trait); }

/* ============================================================ CONNEXION V4
   Un decor plein ecran, une marque sobre a gauche, une carte de verre a droite,
   trois portes lisibles : ASC 360, ASC Young, ASC Partenaire. */
.cx { --cx-accent: #7bf0bf; --cx-lueur: rgba(69,226,166,.35);
  position: relative; isolation: isolate; min-height: 100dvh; overflow: hidden; color: #eef7f4;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 470px); grid-template-rows: auto 1fr;
  gap: 0 clamp(24px, 5vw, 80px); padding: clamp(24px, 4vw, 56px) clamp(24px, 5vw, 72px); background: #03090d; }
.cx[data-espace="young"] { --cx-accent: #f3c969; --cx-lueur: rgba(243,201,105,.3); }
.cx[data-espace="partenaire"] { --cx-accent: #9fcfff; --cx-lueur: rgba(120,185,255,.32); }
.cx::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('/assets/asc-matrice-cinematique-v2.webp') center 45% / cover no-repeat; filter: saturate(.85) brightness(.55); transform: scale(1.02); }
.cx::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 20% 40%, transparent 0, rgba(2,7,10,.55) 60%, rgba(2,7,10,.92) 100%), linear-gradient(90deg, rgba(2,7,10,.15), rgba(2,7,10,.75)); }
.cx-decor { position: absolute; inset: 12% 42% 12% 6%; z-index: -1; color: var(--cx-accent); opacity: .08; pointer-events: none; }
.cx-decor svg { width: 100%; height: 100%; }
.cx-haut { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; width: max-content; min-height: 64px; }
.cx-monogramme { position: relative; display: inline-flex; align-items: baseline; gap: 4px; color: #f7fffc; font-size: 21px; font-weight: 780; letter-spacing: -.07em; line-height: 1; text-shadow: 0 0 24px var(--cx-lueur); }
.cx-monogramme::after { content: ''; position: absolute; left: 0; bottom: -10px; width: 27px; height: 2px; border-radius: 3px; background: var(--cx-accent); box-shadow: 0 0 18px var(--cx-lueur); }
.cx-monogramme small { color: var(--cx-accent); font-size: 8px; font-weight: 760; letter-spacing: .13em; }
.cx-separateur { width: 1px; height: 39px; background: linear-gradient(transparent, rgba(255,255,255,.34), transparent); }
.cx-maison { display: grid; gap: 1px; color: #fff; font-family: var(--police); line-height: 1.05; text-transform: uppercase; }
.cx-maison strong { font-size: 13px; font-weight: 720; letter-spacing: .19em; }
.cx-maison > span { font-size: 10px; font-weight: 620; letter-spacing: .22em; color: rgba(236,248,244,.72); }
.cx-maison small { margin-top: 5px; font-size: 8px; font-weight: 620; letter-spacing: .2em; color: var(--cx-accent); }
.cx-marque { align-self: center; max-width: 620px; }
.cx-sur { font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--cx-accent); margin-bottom: 18px; }
.cx-titre { margin: 0; font-family: var(--police-titre, Georgia, serif); font-weight: 400; font-size: clamp(64px, 8.5vw, 124px); line-height: .95; letter-spacing: -.045em; color: #fff; text-shadow: 0 12px 50px rgba(0,0,0,.6); }
.cx-titre span { color: var(--cx-accent); font-style: italic; text-shadow: 0 0 40px var(--cx-lueur); transition: color .4s ease; }
.cx-marque p { margin: 22px 0 0; max-width: 520px; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.65; color: rgba(232,244,240,.78); }
.cx-carte { align-self: center; position: relative; padding: 34px 32px 26px; border-radius: 24px;
  background: linear-gradient(160deg, rgba(16,30,36,.78), rgba(5,13,18,.86)); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 100px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.07); backdrop-filter: blur(22px) saturate(1.1); }
.cx-carte::before { content: ''; position: absolute; left: 32px; right: 32px; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--cx-accent), transparent); opacity: .8; }
.cx-carte h1 { margin: 0; font-family: var(--police-titre, Georgia, serif); font-weight: 400; font-size: 36px; letter-spacing: -.03em; color: #fff; }
.cx-sous { margin: 6px 0 20px; font-size: 14px; color: rgba(226,240,236,.66); }
.cx-espaces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.cx-espaces button { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 11px; border-radius: 14px; cursor: pointer; text-align: left;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.1); color: rgba(235,246,242,.7); transition: border-color .2s, background .2s, transform .2s; }
.cx-espaces button:hover { border-color: rgba(255,255,255,.26); transform: translateY(-1px); }
.cx-espaces button[aria-checked="true"] { background: color-mix(in srgb, var(--cx-accent) 14%, transparent); border-color: var(--cx-accent); color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--cx-accent) 14%, transparent); }
.cx-espaces .cx-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; margin-bottom: 4px; background: rgba(255,255,255,.07); color: var(--cx-accent); }
.cx-espaces button:not([aria-checked="true"]) .cx-ico { color: rgba(235,246,242,.6); }
.cx-espaces .cx-ico svg { width: 16px; height: 16px; }
.cx-espaces b { font-size: 13px; font-weight: 650; }
.cx-espaces small { font-size: 11px; color: rgba(226,240,236,.55); line-height: 1.3; }
.cx-carte .champ label { color: rgba(227,244,238,.72); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 650; }
.cx-carte .champ input { min-height: 48px; color: #fff; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; }
.cx-carte .champ input:focus { outline: none; border-color: var(--cx-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cx-accent) 18%, transparent); }
.cx-carte input:-webkit-autofill,
.cx-carte input:-webkit-autofill:hover,
.cx-carte input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px rgba(5,14,18,.96) inset, 0 0 0 4px color-mix(in srgb, var(--cx-accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--cx-accent) 62%, rgba(255,255,255,.18));
  transition: background-color 9999s ease-out 0s;
}
.cx-carte .btn.plein { width: 100%; min-height: 52px; margin-top: 6px; border: 0; border-radius: 13px; font-weight: 700; color: #04130d; background: var(--cx-accent); box-shadow: 0 14px 34px var(--cx-lueur); transition: filter .2s, transform .2s; }
.cx-carte .btn.plein:hover { filter: brightness(1.07); transform: translateY(-1px); }
.cx-carte .erreur-form { color: #ffd0cb; background: rgba(160,40,30,.28); border: 1px solid rgba(255,140,130,.22); border-radius: 12px; }
.cx-pied { margin: 16px 0 0; text-align: center; font-size: 12px; color: rgba(226,240,236,.5); }
@media (max-width: 900px) {
  .cx { grid-template-columns: 1fr; grid-template-rows: auto auto auto; overflow-y: auto; padding: 22px 16px 32px; gap: 0; }
  .cx::before { position: fixed; background-image: url('/assets/asc-matrice-cinematique-v2-mobile.webp'); }
  .cx::after { position: fixed; background: linear-gradient(180deg, rgba(2,7,10,.35), rgba(2,7,10,.8) 45%, #03090d 85%); }
  .cx-marque { padding: 11vh 4px 26px; }
  .cx-titre { font-size: clamp(54px, 16vw, 84px); }
  .cx-marque p { font-size: 14.5px; }
  .cx-carte { padding: 26px 20px 22px; }
  .cx-haut { min-height: 56px; }
}
@media (max-width: 420px) { .cx-espaces { gap: 6px; } .cx-espaces button { padding: 10px 8px; } .cx-espaces small { display: none; } .cx-maison strong { font-size: 11px; } .cx-maison > span { font-size: 8px; } }

/* ============================================================ ESPACE PARTENAIRE */
.pp-accueil { position: relative; overflow: hidden; padding: clamp(26px, 4vw, 44px); border-radius: 24px; margin-bottom: 24px; color: #eef6fb; background: linear-gradient(135deg, #0b1a2a, #10283d 60%, #123049); }
.pp-accueil svg.terrain { position: absolute; right: -40px; top: -20px; width: 420px; opacity: .08; color: #9fcfff; }
.pp-accueil .sur { color: #9fcfff; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.pp-accueil h1 { margin: 8px 0 10px; color: #fff; font-family: var(--police-titre, Georgia, serif); font-weight: 400; font-size: clamp(32px, 4vw, 46px); }
.pp-accueil p { max-width: 620px; color: rgba(230,240,248,.78); line-height: 1.6; }
.pp-chiffres { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.pp-chiffres a { min-width: 150px; padding: 14px 18px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.pp-chiffres a.chaud { border-color: #9fcfff; box-shadow: 0 0 0 3px rgba(159,207,255,.14); }
.pp-chiffres b { display: block; font-size: 30px; font-weight: 400; letter-spacing: -.03em; }
.pp-chiffres span { font-size: 12.5px; color: rgba(230,240,248,.7); }
.pp-accueil .btn.plein { background: #9fcfff; color: #06182a; border: 0; }
.pp-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.pp-tete { display: flex; gap: 14px; align-items: flex-start; }
.pp-tete > div { flex: 1; min-width: 0; }
.pp-tete h3 { margin: 2px 0 4px; font-size: 18px; }
.pp-tete p { margin: 0; }
.pp-mot { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-style: italic; line-height: 1.55; }
.pp-faits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pp-faits span { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--trait); }
.pp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pp-acces { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 14px 0 0; }
.pp-acces dt { font-weight: 650; color: var(--encre-2); }
.pp-acces dd { margin: 0; word-break: break-all; }
.pp-acces code { font-size: 16px; padding: 3px 8px; border-radius: 8px; background: var(--surface-2); user-select: all; }

/* ============================================================ UTILISATEURS, CALENDRIER, LEGAL */
.ud-bloc { margin-bottom: 16px; }
.ud-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.ud-tete h2 { margin: 0 0 6px; font-size: 20px; display: flex; align-items: center; gap: 8px; }
.ud-droits { margin: 0; padding-left: 18px; color: var(--encre-2); font-size: 13.5px; line-height: 1.6; }
.ud-apercu { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--trait); font-size: 13.5px; }
.ud-apercu ul { margin: 6px 0 0; padding-left: 18px; color: var(--encre-2); }
.cal-ligne .cal-heure { min-width: 48px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--encre); }
.cal-ligne.suivi { background: color-mix(in srgb, var(--accent) 7%, transparent); border-radius: 12px; }
.cal-ligne .quoi strong .muet { font-weight: 400; }
.pied-legal { padding: 18px 28px 28px; font-size: 12px; color: var(--encre-2); text-align: center; line-height: 1.6; }
.pied-legal a, .barre-legal { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.barre-legal { display: block; margin-top: 10px; font-size: 11px; opacity: .7; }
.cx-legal { margin: 8px 0 0; text-align: center; font-size: 11px; color: rgba(226,240,236,.4); }
.legal { display: grid; gap: 14px; max-width: 880px; }
.legal h2 { margin: 0 0 10px; font-size: 19px; }
.legal ul { margin: 0; padding-left: 18px; line-height: 1.7; }
.legal p { margin: 0; line-height: 1.7; }
.legal-dl { display: grid; grid-template-columns: minmax(150px, auto) 1fr; gap: 6px 18px; margin: 0; }
.legal-dl dt { font-weight: 650; color: var(--encre-2); } .legal-dl dd { margin: 0; }
.legal-manque { color: #b4540a; font-style: italic; }
@media (max-width: 600px) { .legal-dl { grid-template-columns: 1fr; } .legal-dl dd { margin-bottom: 8px; } }

/* ============================================================ RAPPORT : NIVEAU DU CHAMPIONNAT */
.rappel-niveau { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, #d99a1e 12%, var(--surface)); border: 1px solid color-mix(in srgb, #d99a1e 45%, transparent); font-size: 13.5px; line-height: 1.55; }
.rappel-niveau svg { flex: 0 0 20px; width: 20px; height: 20px; color: #b77a07; margin-top: 2px; }
.rappel-niveau span { display: block; margin-top: 6px; color: var(--encre-2); font-size: 12.5px; }
.note-ligne { grid-template-columns: 1fr 130px 28px auto; }
.non-vu { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--encre-2); white-space: nowrap; cursor: pointer; }
.non-vu input { margin: 0; }
.note-ligne.est-non-vu > label:first-child, .note-ligne.est-non-vu output { opacity: .45; }
.bloc-poste { border-color: color-mix(in srgb, var(--accent) 45%, var(--trait)); }
.niveau-rapport { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13px; color: var(--encre-2); }
.niveau-rapport b { color: var(--encre); }
@media (max-width: 700px) { .note-ligne { grid-template-columns: 1fr 96px 24px; } .non-vu { grid-column: 1 / -1; justify-self: end; } }
/* ============================================================ EFFECTIF A LA MAIN */
.saisie-papier { width: 100%; margin-top: 4px; padding: 14px 16px; border: 1px solid var(--trait-fort, var(--trait)); border-radius: 12px; font: 15px/1.9 ui-monospace, "Cascadia Mono", Consolas, monospace; background: repeating-linear-gradient(var(--surface), var(--surface) 27.5px, color-mix(in srgb, var(--accent) 12%, var(--trait)) 28.5px); resize: vertical; }
.saisie-papier:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-doux); }
.saisie-pied { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
/* Bouton musique de l'ecran de connexion */
.cx-son { display: block; margin: 10px auto 0; padding: 4px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 99px; background: transparent; color: rgba(226,240,236,.6); font-size: 11.5px; cursor: pointer; }
.cx-son[aria-pressed="true"] { color: var(--cx-accent); border-color: color-mix(in srgb, var(--cx-accent) 45%, transparent); }
/* ============================================================ PORTRAITS : LE VISAGE ENTIER */
.av img { object-fit: cover; object-position: center 22%; }
.av:has(img) { background: #eef1f4; }
.qui .av, .liste .av, td .av { --t: 50px; }
.av.s { --t: 40px; }
.av.xl { --t: 168px; border-radius: 30px; box-shadow: 0 16px 40px rgba(8,30,37,.16); }
.av.xl img { object-fit: contain; object-position: center bottom; background: linear-gradient(180deg, #f4f6f8, #e6ebef); }
@media (max-width: 700px) { .av.xl { --t: 128px; } .qui .av, td .av { --t: 44px; } }

/* ============================================================ CONTRAT ET MANDAT */
.cm-bloc { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; margin-bottom: 18px; }
.cm-carte { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; border: 1px dashed var(--trait-fort, var(--trait)); background: var(--surface); }
.cm-carte.present { border-style: solid; border-color: color-mix(in srgb, var(--accent) 40%, var(--trait)); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.cm-carte .quoi { flex: 1; min-width: 160px; }
.cm-carte .quoi strong { display: block; }
.cm-carte .quoi span { font-size: 12.5px; color: var(--encre-2); }
.cm-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--accent); }
.cm-ico svg { width: 20px; height: 20px; }
.cm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cm-actions label.btn { cursor: pointer; }
/* ============================================================ CONNEXIONS ET ACTIVITE */
.cx-liste { display: grid; gap: 8px; }
.cx-ligne { border: 1px solid var(--trait); border-radius: 14px; background: var(--surface); }
.cx-ligne summary { display: grid; grid-template-columns: 120px minmax(160px, 1fr) 110px 110px auto; gap: 12px; align-items: center; padding: 12px 16px; cursor: pointer; list-style: none; }
.cx-ligne summary::-webkit-details-marker { display: none; }
.cx-date b, .cx-qui strong, .cx-temps b { display: block; font-variant-numeric: tabular-nums; }
.cx-date span, .cx-qui span, .cx-temps span { font-size: 12px; color: var(--encre-2); font-variant-numeric: tabular-nums; }
.cx-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 4px 16px 16px; border-top: 1px solid var(--trait); }
.cx-detail h4 { margin: 12px 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-2); }
.cx-page, .cx-periode { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dotted var(--trait); font-size: 13px; font-variant-numeric: tabular-nums; }
.cx-periode.actif b { color: var(--accent-fort, var(--accent)); }
.cx-periode.inactif b { color: #b4540a; font-weight: 500; }
.cx-periodes { max-height: 260px; overflow: auto; }
.cx-pulse { animation: mb-signal 1.6s ease-in-out infinite; }
@media (max-width: 800px) { .cx-ligne summary { grid-template-columns: 1fr 1fr; } .cx-detail { grid-template-columns: 1fr; } }
/* ============================================================ PORTRAITS EN FORMAT CARTE
   Une vraie photo s'affiche dans un cadre vertical (4:5), tete entiere, sans troncature. */
.av.av-photo { width: calc(var(--t) * 1.15) !important; height: calc(var(--t) * 1.42) !important; border-radius: 12px !important; background: linear-gradient(180deg, #f3f5f7, #dfe5ea) !important; box-shadow: 0 2px 8px rgba(8,30,37,.12); }
.av.av-photo img { width: 100%; height: 100%; object-fit: cover !important; object-position: center top !important; }
.qui .av.av-photo, td .av.av-photo, .liste .av.av-photo { --t: 50px; }
.av.s.av-photo { --t: 38px; border-radius: 10px !important; }
.av.xl.av-photo { --t: 170px; border-radius: 26px !important; }
.av.xl.av-photo img { object-fit: contain !important; object-position: center bottom !important; }
@media (max-width: 700px) { .qui .av.av-photo, td .av.av-photo { --t: 44px; } .av.xl.av-photo { --t: 130px; } }
/* ============================================================ FILM D'ARRIVEE : TEXTES LISIBLES
   Un voile sombre derriere le message, des lettres plus pleines et un contour lumineux. */
.arrivee-message::before { content: ""; position: absolute; inset: -18% -6%; z-index: -1; background: radial-gradient(ellipse at center, rgba(1,8,10,.78) 0%, rgba(1,8,10,.55) 45%, transparent 75%); pointer-events: none; }
.arrivee-kicker { font-size: clamp(13px, 1.3vw, 17px) !important; font-weight: 800 !important; letter-spacing: .32em !important; color: #8ff5cc !important; text-shadow: 0 0 18px rgba(80,240,180,.55), 0 2px 10px #000 !important; }
.arrivee-bienvenue { font-weight: 560 !important; color: #ffffff !important; -webkit-text-stroke: .5px rgba(255,255,255,.35); text-shadow: 0 0 34px rgba(90,240,185,.45), 0 4px 24px rgba(0,0,0,.95), 0 0 2px #000 !important; }
.arrivee-matrice { font-size: clamp(18px, 2.1vw, 28px) !important; font-weight: 600 !important; color: #eafff6 !important; letter-spacing: .02em !important; text-shadow: 0 2px 14px #000, 0 0 22px rgba(80,240,180,.35) !important; }
.arrivee-passer { font-size: 13px !important; background: rgba(0,0,0,.55) !important; }
/* ============================================================ MESSAGERIE */
.msg-grille { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 16px; align-items: start; }
.msg-liste { max-height: 72vh; overflow: auto; padding: 6px; }
.msg-ligne { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--encre); border: 1px solid transparent; }
.msg-ligne + .msg-ligne { margin-top: 4px; }
.msg-ligne:hover { background: var(--surface-2); }
.msg-ligne.actif { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.msg-ligne .msg-de { font-size: 13px; color: var(--encre-2); }
.msg-ligne strong { grid-column: 1 / -1; font-weight: 520; }
.msg-ligne.non-lu strong, .msg-ligne.non-lu .msg-de { font-weight: 750; color: var(--encre); }
.msg-ligne.non-lu { border-left: 3px solid var(--accent); }
.msg-ligne .msg-extrait { grid-column: 1 / -1; font-size: 12.5px; color: var(--encre-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-ligne time { grid-column: 1 / -1; font-size: 11.5px; color: var(--encre-3, var(--encre-2)); }
.msg-ligne .badge { justify-self: end; }
.msg-lecture-tete { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.msg-lecture-tete h2 { margin: 0; }
.msg-texte { white-space: pre-wrap; line-height: 1.65; margin: 14px 0; }
.msg-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.msg-rapport { margin-top: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--trait)); background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.msg-rapport-tete { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.msg-rapport-tete > div:nth-child(2) { flex: 1; } .msg-rapport-tete strong { display: block; } .msg-rapport-tete span { font-size: 12.5px; color: var(--encre-2); }
.msg-dests { display: grid; gap: 10px; margin-top: 6px; }
.msg-dests.desactive { opacity: .4; pointer-events: none; }
.msg-groupe > span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-2); margin-bottom: 4px; }
.msg-dest { display: inline-flex; align-items: center; gap: 6px; margin: 0 14px 6px 0; font-weight: 560; cursor: pointer; }
.msg-dest small { color: var(--encre-2); font-weight: 400; }
.msg-tous { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; margin: 4px 0 8px; cursor: pointer; }
.msg-cc { margin: 0 0 14px; } .msg-cc summary { cursor: pointer; font-size: 13.5px; color: var(--accent-fort, var(--accent)); font-weight: 600; }
.msg-urgence { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.msg-urgence label { display: inline-flex; gap: 6px; align-items: center; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--trait); cursor: pointer; font-weight: 600; }
.msg-urgence label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.msg-urgence .u-or:has(input:checked) { border-color: #c98a12; background: color-mix(in srgb, #c98a12 14%, transparent); }
.msg-urgence .u-rouge:has(input:checked) { border-color: #c2362b; background: color-mix(in srgb, #c2362b 14%, transparent); color: #9d261d; }
@media (max-width: 860px) { .msg-grille { grid-template-columns: 1fr; } }

/* ============================================================ VUE A 360 DEGRES */
.espaces { position: relative; }
.espaces-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: 290px; max-height: 70vh; overflow: auto; padding: 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--trait); box-shadow: 0 20px 50px rgba(8,30,37,.18); }
.espaces-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font-weight: 560; color: var(--encre); }
.espaces-menu button:hover, .espaces-menu button[aria-current="true"] { background: var(--surface-2); }
.espaces-menu button small { display: block; font-weight: 400; font-size: 12px; color: var(--encre-2); }
.espaces-groupe { padding: 10px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-2); }
.bandeau-vue { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 28px 12px; padding: 10px 16px; border-radius: 14px; background: #fff4dc; border: 1px solid #e7b95a; color: #6b4a06; font-size: 14px; }
.bandeau-vue svg { width: 18px; height: 18px; }
.bandeau-vue .btn { margin-left: auto; }
/* ============================================================ FILM D'ARRIVEE : 15 S, DROP ET PLUIE DE CODE */
.arrivee-matrice-pluie { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: .55; mix-blend-mode: screen; pointer-events: none; }
.arrivee.phase-logo .arrivee-matrice-pluie { opacity: .8; }
.arrivee.phase-message .arrivee-matrice-pluie { opacity: .35; }
.arrivee-film-image { animation-duration: 15s !important; }
.arrivee.drop::after { content: ""; position: absolute; inset: 0; z-index: 30; pointer-events: none; background: radial-gradient(circle at center, rgba(235,255,245,.95), rgba(120,255,200,.45) 35%, transparent 70%); animation: asc-eclair .9s ease-out forwards; }
.arrivee.drop .arrivee-film, .arrivee.drop .arrivee-centre { animation: asc-secousse .55s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes asc-eclair { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes asc-secousse { 10%, 90% { transform: translate3d(-2px, 1px, 0); } 20%, 80% { transform: translate3d(4px, -2px, 0); } 30%, 50%, 70% { transform: translate3d(-7px, 3px, 0) scale(1.01); } 40%, 60% { transform: translate3d(7px, -3px, 0) scale(1.01); } }
@media (prefers-reduced-motion: reduce) { .arrivee.drop .arrivee-film, .arrivee.drop .arrivee-centre { animation: none; } }
/* Planning partage : qui y va, verification */
.evt-infos { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.evt-infos .badge svg, .cal-qui svg { width: 13px; height: 13px; }
.cal-qui { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
/* Film d'arrivee : toujours plein ecran, au-dessus de tout, sur ordinateur comme sur telephone */
.arrivee { position: fixed !important; inset: 0 !important; width: 100% !important; height: 100% !important; min-height: 100lvh; z-index: 10000 !important; }
html.arrivee-active, html.arrivee-active body { overflow: hidden !important; height: 100%; }
html.arrivee-active .onglets-bas, html.arrivee-active .haut { visibility: hidden; }
@media (max-width: 700px) {
  .arrivee-bienvenue { font-size: clamp(38px, 11vw, 56px) !important; line-height: 1.02 !important; }
  .arrivee-matrice { font-size: clamp(16px, 4.6vw, 20px) !important; padding: 0 18px; }
  .arrivee-kicker { font-size: 11px !important; letter-spacing: .24em !important; }
  .arrivee-message::before { inset: -30% -10%; }
}
/* iPhone : Safari agrandit la page quand un champ fait moins de 16 px, puis ne revient pas.
   Tous les champs a 16 px sur telephone : plus aucun zoom involontaire, page toujours centree. */
@media (max-width: 900px) {
  input, select, textarea, .cx-carte .champ input { font-size: 16px !important; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { overflow-x: hidden; }
}
/* Connexion sur telephone : tout centre, dans l'axe de la carte */
@media (max-width: 900px) {
  .cx-haut { justify-content: center; }
  .cx-marque { text-align: center; margin: 0 auto; }
  .cx-marque p { margin-left: auto; margin-right: auto; }
  .cx-carte { width: 100%; max-width: 520px; margin: 0 auto; }
  .cx-carte h1, .cx-sous, .cx-pied { text-align: center; }
  .cx-espaces button { align-items: center; text-align: center; }
}/* ============================================================ FILM D'ARRIVEE V3 : ASC HOLOGRAPHIQUE, NOM EN COULEURS, CITATION
   Un logo holographique (degrade qui coule, lignes de balayage, eclats de glitch), un anneau
   arc-en-ciel qui tourne, le nom de la societe allume lettre par lettre en vague de couleurs,
   un sol de donnees en perspective, des faisceaux, une parallaxe a la souris et la devise en bas. */
@property --asc-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.arrivee-centre { translate: calc(var(--mx, 0) * -20px) calc(var(--my, 0) * -14px); transition: translate .7s cubic-bezier(.2,.8,.2,1); }
.arrivee-film { translate: calc(var(--mx, 0) * 12px) calc(var(--my, 0) * 9px); transition: translate .9s cubic-bezier(.2,.8,.2,1); }

/* Sol de donnees : une grille lumineuse qui file vers l'horizon */
.arrivee-sol {
  position: absolute; left: -60%; right: -60%; bottom: -8%; height: 58%; z-index: 3; pointer-events: none; opacity: 0;
  background:
    repeating-linear-gradient(90deg, rgba(80,230,255,.5) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(90,245,190,.55) 0 1px, transparent 1px 64px);
  transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 88%); mask-image: linear-gradient(to top, #000 10%, transparent 88%);
  translate: calc(var(--mx, 0) * 40px) 0; transition: opacity 1.4s ease, translate .9s cubic-bezier(.2,.8,.2,1);
  animation: asc-sol 1.6s linear infinite;
}
.arrivee.phase-signal .arrivee-sol { opacity: .32; }
.arrivee.phase-logo .arrivee-sol { opacity: .55; animation-duration: .7s; }
.arrivee.phase-message .arrivee-sol { opacity: .34; animation-duration: 1.1s; }
@keyframes asc-sol { to { background-position: 0 64px, 0 64px; } }

/* Faisceaux : trois projecteurs qui balaient depuis le sol */
.arrivee-faisceaux { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 1s ease; mix-blend-mode: screen; overflow: hidden; }
.arrivee.phase-logo .arrivee-faisceaux { opacity: 1; }
.arrivee.phase-message .arrivee-faisceaux { opacity: .55; }
.arrivee-faisceaux i {
  position: absolute; bottom: -12%; left: 50%; width: 18vw; height: 135vh; margin-left: -9vw; transform-origin: 50% 100%;
  background: linear-gradient(to top, rgba(70,235,190,.42), rgba(70,235,190,.08) 55%, transparent 80%);
  filter: blur(22px); animation: asc-faisceau 5.5s ease-in-out infinite alternate;
}
.arrivee-faisceaux i:nth-child(2) { background: linear-gradient(to top, rgba(70,170,255,.42), rgba(70,170,255,.08) 55%, transparent 80%); animation-duration: 6.8s; animation-delay: -2s; }
.arrivee-faisceaux i:nth-child(3) { background: linear-gradient(to top, rgba(190,120,255,.38), rgba(190,120,255,.06) 55%, transparent 80%); animation-duration: 4.6s; animation-delay: -3.4s; }
@keyframes asc-faisceau { from { transform: rotate(-38deg); } to { transform: rotate(38deg); } }

/* Balayage : une ligne de scan traverse l'ecran au drop, puis a l'entree */
.arrivee-balayage { position: absolute; left: 0; right: 0; top: -4px; height: 3px; z-index: 8; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, #7af7ff 20%, #fff 50%, #b98cff 80%, transparent);
  box-shadow: 0 0 24px #6ff3ff, 0 0 70px rgba(111,243,255,.7); }
.arrivee.phase-logo .arrivee-balayage { animation: asc-balayage 1.25s .05s cubic-bezier(.5,0,.3,1) both; }
.arrivee.phase-entree .arrivee-balayage { animation: asc-balayage-retour .9s cubic-bezier(.5,0,.3,1) both; }
@keyframes asc-balayage { 0% { opacity: 1; top: -4px; } 88% { opacity: 1; } 100% { opacity: 0; top: 100%; } }
@keyframes asc-balayage-retour { 0% { opacity: 1; top: 100%; } 88% { opacity: 1; } 100% { opacity: 0; top: -4px; } }

/* Le logo : flottement, anneau arc-en-ciel, lettres holographiques */
.arrivee.phase-logo .arrivee-logo { animation: asc-flotte 4.2s 1.4s ease-in-out infinite; }
@keyframes asc-flotte { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.arrivee-anneau {
  position: absolute; inset: -12%; border-radius: 50%; z-index: 0; pointer-events: none;
  background: conic-gradient(from var(--asc-a), #22f5c0, #36b6ff, #9d6bff, #ff5fa2, #ffcf5a, #22f5c0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  filter: drop-shadow(0 0 10px rgba(110,220,255,.9)) drop-shadow(0 0 28px rgba(157,107,255,.55));
  opacity: 0; transform: scale(.6);
}
.arrivee.phase-logo .arrivee-anneau { animation: asc-anneau-entree 1.3s .15s cubic-bezier(.16,1,.3,1) forwards, asc-anneau-tour 3.2s linear infinite; }
@keyframes asc-anneau-entree { to { opacity: 1; transform: scale(1); } }
@keyframes asc-anneau-tour { to { --asc-a: 360deg; } }
.arrivee .arrivee-symbole {
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; font-weight: 900; letter-spacing: -.04em; font-style: italic;
  font-size: clamp(84px, 11vw, 150px); text-shadow: none; padding: 0 .12em;
  background:
    repeating-linear-gradient(0deg, rgba(0,20,30,.22) 0 2px, transparent 2px 5px),
    linear-gradient(100deg, #f2fffb 0%, #5ef3c0 16%, #3ab8ff 34%, #b38bff 50%, #ff7ab8 62%, #ffd36e 76%, #f2fffb 90%);
  background-size: 100% 100%, 260% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 14px rgba(94,243,192,.55)) drop-shadow(0 0 42px rgba(58,184,255,.45)) drop-shadow(0 18px 30px rgba(0,0,0,.7));
  animation: asc-holo 4.5s linear infinite;
}
@keyframes asc-holo { from { background-position: 0 0, 0% 0; } to { background-position: 0 0, 260% 0; } }
.arrivee .arrivee-symbole::before, .arrivee .arrivee-symbole::after {
  content: attr(data-t); position: absolute; inset: 0; padding: inherit; background: none; pointer-events: none; opacity: 0; mix-blend-mode: screen;
}
.arrivee .arrivee-symbole::before { -webkit-text-fill-color: #29f0ff; color: #29f0ff; }
.arrivee .arrivee-symbole::after { -webkit-text-fill-color: #ff3fa4; color: #ff3fa4; }
.arrivee.phase-logo .arrivee-symbole::before { animation: asc-glitch-a 3.4s .2s steps(1) infinite; }
.arrivee.phase-logo .arrivee-symbole::after { animation: asc-glitch-b 3.4s .2s steps(1) infinite; }
@keyframes asc-glitch-a {
  0% { opacity: .9; transform: translate(-6px, 0); clip-path: inset(10% 0 62% 0); }
  4% { opacity: .9; transform: translate(5px, 0); clip-path: inset(58% 0 12% 0); }
  8% { opacity: .8; transform: translate(-3px, 0); clip-path: inset(34% 0 40% 0); }
  12%, 60% { opacity: 0; }
  62% { opacity: .8; transform: translate(4px, 0); clip-path: inset(70% 0 8% 0); }
  65%, 100% { opacity: 0; }
}
@keyframes asc-glitch-b {
  0% { opacity: .85; transform: translate(6px, 0); clip-path: inset(48% 0 24% 0); }
  4% { opacity: .85; transform: translate(-5px, 0); clip-path: inset(6% 0 70% 0); }
  8% { opacity: .7; transform: translate(3px, 0); clip-path: inset(80% 0 4% 0); }
  12%, 60% { opacity: 0; }
  62% { opacity: .75; transform: translate(-4px, 0); clip-path: inset(20% 0 55% 0); }
  65%, 100% { opacity: 0; }
}

/* Alliance Soccer Consulting : grand, lettre par lettre, vague de couleurs qui court sans fin */
.arrivee .arrivee-nom {
  position: relative; margin-top: 46px; font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(17px, 2.3vw, 30px); font-weight: 800; letter-spacing: .26em; text-transform: uppercase; white-space: nowrap;
  color: #5ef3c0; animation: none; text-shadow: none;
}
.arrivee-nom .arrivee-mot { display: inline-block; white-space: nowrap; font: inherit; }
.arrivee-nom span {
  display: inline-block; opacity: 0; transform: translateY(18px) scale(.6); filter: blur(10px);
  text-shadow: 0 0 12px color-mix(in srgb, currentColor 85%, transparent), 0 0 34px color-mix(in srgb, currentColor 50%, transparent), 0 3px 6px #000;
}
.arrivee.phase-logo .arrivee-nom span {
  animation: asc-lettre-nom .7s calc(.55s + var(--i) * 48ms) cubic-bezier(.16,1,.3,1) forwards, asc-couleur 3.6s calc(var(--i) * -120ms) linear infinite;
}
@keyframes asc-lettre-nom { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes asc-couleur { 0%, 100% { color: #5ef3c0; } 20% { color: #3ab8ff; } 40% { color: #b38bff; } 60% { color: #ff7ab8; } 80% { color: #ffd36e; } }
.arrivee .arrivee-nom::after {
  content: ""; position: absolute; left: 50%; bottom: -16px; width: 0; height: 2px; translate: -50% 0; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #5ef3c0, #3ab8ff, #b38bff, #ff7ab8, #ffd36e, transparent);
  box-shadow: 0 0 16px rgba(94,243,192,.7);
}
.arrivee.phase-logo .arrivee-nom::after { animation: asc-trait-nom 1.2s 1.6s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes asc-trait-nom { to { width: 110%; } }

/* La phrase de la matrice : grande, et la decision en lumiere */
.arrivee .arrivee-matrice {
  margin-top: 30px !important; font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif !important;
  font-size: clamp(24px, 3.3vw, 44px) !important; font-weight: 650 !important; letter-spacing: -.01em !important; line-height: 1.25 !important;
  color: #ffffff !important; text-wrap: balance;
}
.arrivee-qui { color: #ffffff; }
.arrivee-cle {
  position: relative; display: inline-block; font-style: normal; font-weight: 850;
  background: linear-gradient(100deg, #8dffd9, #9fe0ff 30%, #e2ccff 55%, #ffe39a 80%, #8dffd9); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 16px rgba(94,243,192,.5)) drop-shadow(0 3px 8px rgba(0,0,0,.9));
  animation: asc-holo-cle 4s linear infinite;
}
@keyframes asc-holo-cle { to { background-position: 220% 0; } }
.arrivee-cle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.1em; height: 3px; border-radius: 3px; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, #5ef3c0, #3ab8ff, #b38bff, #ffd36e);
}
.arrivee.phase-message .arrivee-cle::after { animation: asc-souligne .9s 1.9s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes asc-souligne { to { transform: scaleX(1); } }

/* La devise, en bas, mot a mot */
.arrivee-citation {
  position: absolute; left: 50%; bottom: max(5vh, calc(env(safe-area-inset-bottom) + 18px)); translate: -50% 0; z-index: 9;
  width: min(92vw, 1000px); margin: 0; text-align: center; pointer-events: none; transition: opacity .5s ease;
}
.arrivee-citation::before {
  content: ""; display: block; width: 0; height: 1px; margin: 0 auto 16px;
  background: linear-gradient(90deg, transparent, #ffd36e, transparent);
}
.arrivee.phase-logo .arrivee-citation::before { animation: asc-trait-citation 1.1s 1.7s ease-out forwards; }
@keyframes asc-trait-citation { to { width: min(320px, 60%); } }
.arrivee-citation blockquote {
  margin: 0; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-style: italic; font-weight: 500;
  font-size: clamp(16px, 1.75vw, 24px); line-height: 1.45; color: #fbf4e2;
  text-shadow: 0 2px 12px #000, 0 0 22px rgba(255,211,110,.28);
}
.arrivee-citation .gm { color: #ffd36e; font-weight: 700; font-style: normal; }
.arrivee-citation blockquote span { display: inline-block; opacity: 0; transform: translateY(12px); filter: blur(6px); }
.arrivee.phase-logo .arrivee-citation blockquote span { animation: asc-mot .7s calc(2s + var(--k) * 90ms) cubic-bezier(.16,1,.3,1) forwards; }
@keyframes asc-mot { to { opacity: 1; transform: none; filter: blur(0); } }
.arrivee-citation figcaption {
  margin-top: 10px; font-size: 11px; font-weight: 800; letter-spacing: .34em; text-transform: uppercase; color: #ffd36e; opacity: 0;
  text-shadow: 0 0 14px rgba(255,211,110,.5), 0 2px 6px #000;
}
.arrivee.phase-logo .arrivee-citation figcaption { animation: asc-mot .8s 3.6s ease-out forwards; }
.arrivee.phase-entree .arrivee-citation { opacity: 0; }

@media (max-width: 700px) {
  .arrivee .arrivee-symbole { font-size: clamp(74px, 22vw, 104px); }
  .arrivee .arrivee-nom { margin-top: 34px; font-size: clamp(13px, 4vw, 17px); letter-spacing: .13em; }
  .arrivee .arrivee-matrice { font-size: clamp(21px, 6.2vw, 27px) !important; padding: 0 14px; }
  .arrivee-citation { bottom: max(3.5vh, calc(env(safe-area-inset-bottom) + 14px)); }
  .arrivee-citation blockquote { font-size: 14.5px; line-height: 1.4; }
  .arrivee-citation figcaption { font-size: 10px; letter-spacing: .26em; }
  .arrivee-faisceaux i { width: 34vw; margin-left: -17vw; }
  .arrivee-sol { height: 40%; }
}
