/* Maponami : feuille commune aux applications AN et Sénat.
   La chambre est portée par <html data-chambre="an|senat"> ; le thème par prefers-color-scheme ou data-theme. */

/* ============ Jetons ============ */
:root {
  color-scheme: light;
  --p: #0a6fad; --p-fonce: #085a8c; --p-clair: #3fb4ee; --accent: #009fe3;
  --jaune: #f7c600; --rouge: #c8102e; --vert: #13844f;
  --sur-jaune: #1d1a0a;
  --fond: #eef3f8; --surface: #ffffff; --surface-2: #f5f8fc; --surface-3: #e8eef5;
  --texte: #14202e; --doux: #4d5b6d; --bord: #d3dce7; --bord-fort: #a9b7c8;
  --lien: #046aa6; --succes-texte: #0e6b40; --danger-texte: #a80d26;
  --ombre: 0 1px 2px rgba(16, 42, 74, .06), 0 10px 30px rgba(16, 42, 74, .08);
  --ombre-forte: 0 24px 60px rgba(16, 42, 74, .22);
  --deg: linear-gradient(120deg, #0a6fad, #009fe3 60%, #49bdf0);
  --motif-op: .055;
  --r: 12px; --r-l: 20px;
  --haut: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --rebond: cubic-bezier(.2, 1.3, .3, 1);
}
:root[data-chambre="senat"] {
  --p: #15508a; --p-fonce: #0f3f6e; --p-clair: #5b97d6; --accent: #d9a400;
  --jaune: #e2ad00; --rouge: #a3122a;
  --fond: #f5f1ea; --surface-2: #faf7f2; --surface-3: #efe8dd; --bord: #e1d7c8; --bord-fort: #c4b4a0;
  --lien: #15508a;
  --deg: linear-gradient(120deg, #15508a, #2a6db0 55%, #b8860b);
  --motif-op: .042;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --fond: #08121f; --surface: #0f1c2e; --surface-2: #13233a; --surface-3: #1a2d47;
    --texte: #e8eef6; --doux: #a3b3c7; --bord: #24374f; --bord-fort: #3a5276;
    --lien: #7fd0f7; --succes-texte: #7ee2a8; --danger-texte: #ff8a96;
    --ombre: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    --ombre-forte: 0 24px 60px rgba(0, 0, 0, .6);
    --motif-op: .06;
  }
  :root[data-chambre="senat"]:not([data-theme="light"]) {
    --motif-op: .038;
    --fond: #120d0a; --surface: #1d1612; --surface-2: #251c16; --surface-3: #2f241c; --bord: #3d2f24; --bord-fort: #5a4636;
    --lien: #9cc3ee;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --fond: #08121f; --surface: #0f1c2e; --surface-2: #13233a; --surface-3: #1a2d47;
  --texte: #e8eef6; --doux: #a3b3c7; --bord: #24374f; --bord-fort: #3a5276;
  --lien: #7fd0f7; --succes-texte: #7ee2a8; --danger-texte: #ff8a96;
  --ombre: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  --ombre-forte: 0 24px 60px rgba(0, 0, 0, .6);
  --motif-op: .06;
}
:root[data-theme="dark"][data-chambre="senat"] {
  --motif-op: .038;
  --fond: #120d0a; --surface: #1d1612; --surface-2: #251c16; --surface-3: #2f241c; --bord: #3d2f24; --bord-fort: #5a4636;
  --lien: #9cc3ee;
}


/* Titre de marque lisible sur fond sombre */
:root[data-theme="dark"] { --deg-texte: linear-gradient(120deg, #7fd0f7, #b9e6fb); }
:root[data-theme="dark"][data-chambre="senat"] { --deg-texte: linear-gradient(120deg, #9cc3ee, #e8c766); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --deg-texte: linear-gradient(120deg, #7fd0f7, #b9e6fb); }
  :root[data-chambre="senat"]:not([data-theme="light"]) { --deg-texte: linear-gradient(120deg, #9cc3ee, #e8c766); }
}

/* ============ Base ============ */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5;
  color: var(--texte); background: var(--fond);
  transition: background-color .35s, color .35s;
}
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.25; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
* { scrollbar-width: thin; scrollbar-color: var(--bord-fort) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--bord-fort); border-radius: 10px; border: 2px solid var(--fond); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Fond : motif propre à chaque chambre (masque teinté par la couleur de la chambre) */
.fond { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.fond::before {
  content: ""; position: absolute; inset: 0;
  background: var(--p); opacity: var(--motif-op);
  -webkit-mask: var(--motif) 0 0 / auto repeat; mask: var(--motif) 0 0 / auto repeat;
}
.fond::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
}

/* Sénat : motif légèrement réduit */
:root[data-chambre="senat"] .fond::before { -webkit-mask-size: 44px; mask-size: 44px; }

/* ============ Boutons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .55rem 1.1rem; border-radius: var(--r); border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .15s, background-color .15s, border-color .15s;
}
.btn:hover:not([disabled]) { transform: translateY(-2px); box-shadow: var(--ombre); }
.btn:active:not([disabled]) { transform: translateY(0) scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-p { background: var(--p); color: #fff; }
.btn-p:hover:not([disabled]) { background: var(--p-fonce); }
.btn-c { background: var(--surface); color: var(--lien); border-color: var(--bord-fort); }
.btn-c:hover:not([disabled]) { border-color: var(--p); }
.btn-danger { background: var(--rouge); color: #fff; }
.btn-fantome { background: transparent; color: var(--texte); border-color: transparent; }
.btn-fantome:hover:not([disabled]) { background: var(--surface-3); box-shadow: none; }
.btn-large { width: 100%; min-height: 54px; font-size: 1.02rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; filter: grayscale(.5); }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-rond { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--bord); background: var(--surface); cursor: pointer; transition: transform .2s var(--rebond); }
.btn-rond:hover { transform: rotate(-12deg) scale(1.05); }

/* ============ Écran d'accueil ============ */
.accueil { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden; color: #fff; background: var(--deg); }
:root[data-chambre="senat"] .accueil { background: linear-gradient(rgba(15, 40, 75, .82), rgba(40, 20, 8, .86)), url("../chambres/senat/salle.jpg") center / cover; }
.accueil::before { content: ""; position: absolute; inset: -20%; background: #fff; opacity: .08; -webkit-mask: var(--motif) 0 0 / auto repeat; mask: var(--motif) 0 0 / auto repeat; animation: derive 40s linear infinite; }
.accueil-int { position: relative; text-align: center; padding: 16px; }
.sceau { width: min(300px, 62vw); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; background: #fff; padding: 3%; box-shadow: 0 0 0 12px rgba(255, 255, 255, .12), 0 0 0 26px rgba(255, 255, 255, .06), 0 30px 80px rgba(0, 0, 0, .35); animation: sceau 1.1s var(--rebond) both; }
.sceau img { width: 100%; height: 100%; object-fit: contain; }
.accueil h1 { margin: 2rem 0 .25rem; font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: -.01em; animation: monter .8s .35s var(--ease) both; }
.accueil p { margin: 0; opacity: .9; animation: monter .8s .5s var(--ease) both; }
.accueil .chargement { width: 160px; height: 4px; margin: 2rem auto 0; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; animation: monter .8s .6s var(--ease) both; }
.accueil .chargement i { display: block; height: 100%; width: 40%; border-radius: 4px; background: #fff; animation: charger 1.2s ease-in-out infinite; }
.accueil-pied { position: absolute; bottom: 1.25rem; left: 0; right: 0; text-align: center; font-size: .8rem; opacity: .85; }
.accueil.part { animation: partir .5s var(--ease) forwards; }

/* ============ Connexion ============ */
.connexion { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.connexion-visuel { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 3rem; color: #fff; background: var(--deg); }
:root[data-chambre="senat"] .connexion-visuel { background: linear-gradient(180deg, rgba(15, 40, 75, .55), rgba(30, 15, 5, .92)), url("../chambres/senat/salle.jpg") center / cover; }
.connexion-visuel::before { content: ""; position: absolute; inset: 0; background: #fff; opacity: .09; -webkit-mask: var(--motif) 0 0 / auto repeat; mask: var(--motif) 0 0 / auto repeat; }
.connexion-visuel > * { position: relative; }
.connexion-visuel img { width: 92px; height: 92px; border-radius: 50%; background: #fff; padding: 3px; margin-bottom: 1.5rem; }
.connexion-visuel h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; max-width: 16ch; }
.connexion-visuel p { margin: .75rem 0 0; max-width: 42ch; opacity: .92; }
.atouts { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.atouts span { padding: .3rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); font-size: .82rem; backdrop-filter: blur(6px); }
.connexion-form { display: grid; place-items: center; padding: 2rem 16px; }
.connexion-carte { width: min(400px, 100%); display: flex; flex-direction: column; gap: 1rem; animation: monter .6s var(--ease) both; }
.connexion-carte h1 { margin: 0; font-size: 1.7rem; font-weight: 700; }
.connexion-carte .sous { margin: -.5rem 0 .5rem; color: var(--doux); }
.champ { display: flex; flex-direction: column; gap: .35rem; }
.champ > span { font-size: .85rem; font-weight: 600; }
.champ input, .champ textarea, .champ select {
  width: 100%; min-height: 50px; padding: .7rem .95rem; border-radius: var(--r);
  border: 1.5px solid var(--bord-fort); background: var(--surface); color: var(--texte);
  transition: border-color .15s, box-shadow .15s;
}
.champ textarea { min-height: 110px; resize: vertical; }
.champ input:focus, .champ textarea:focus, .champ select:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 4px color-mix(in srgb, var(--p) 22%, transparent); }
.champ input::placeholder, .champ textarea::placeholder { color: var(--doux); opacity: .8; }
.champ.invalide input { border-color: var(--rouge); animation: secouer .35s; }
.erreur { margin: 0; color: var(--danger-texte); font-size: .88rem; font-weight: 500; }
.aide { margin: 0; font-size: .82rem; color: var(--doux); }
.demo { padding: .75rem .9rem; border-radius: var(--r); background: var(--surface-2); border: 1px dashed var(--bord-fort); font-size: .82rem; color: var(--doux); }
.demo code { font-weight: 700; color: var(--texte); }
.demo button { border: 0; background: none; padding: 0; color: var(--lien); font-weight: 600; cursor: pointer; text-decoration: underline; }

/* ============ Coquille ============ */
.coquille { min-height: 100vh; display: flex; flex-direction: column; }
.barre {
  position: sticky; top: 0; z-index: 30; height: var(--haut);
  display: flex; align-items: center; gap: 1rem; padding: 0 clamp(16px, 3vw, 32px);
  background: color-mix(in srgb, var(--surface) 82%, transparent); border-bottom: 1px solid var(--bord);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
}
.marque { display: flex; align-items: center; gap: .7rem; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; }
.marque img { width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--bord); }
.marque strong { display: block; font-size: 1.05rem; font-weight: 800; background: var(--deg-texte, var(--deg)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marque small { display: block; font-size: .72rem; color: var(--doux); }
.nav { display: flex; gap: .25rem; margin-left: 1.5rem; }
.nav a {
  position: relative; display: inline-flex; align-items: center; gap: .45rem; min-height: 42px; padding: 0 .9rem;
  border-radius: 10px; color: var(--doux); text-decoration: none; font-weight: 500; font-size: .92rem; transition: background-color .15s, color .15s;
}
.nav a:hover { background: var(--surface-3); color: var(--texte); }
.nav a[aria-current="page"] { color: var(--lien); font-weight: 600; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: -15px; height: 3px; border-radius: 3px 3px 0 0; background: var(--p); }
.nav .pastille-live { width: 8px; height: 8px; border-radius: 50%; background: var(--rouge); animation: pulse 1.2s infinite; }
.barre-droite { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.profil { position: relative; }
.profil-btn { display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .3rem; border: 0; border-radius: 12px; background: none; cursor: pointer; text-align: left; }
.profil-btn:hover { background: var(--surface-3); }
.profil-btn strong { display: block; font-size: .88rem; font-weight: 600; }
.profil-btn small { display: block; font-size: .72rem; color: var(--doux); }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: #fff; background: var(--deg); }
.menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px; padding: .4rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--bord); box-shadow: var(--ombre-forte); transform-origin: top right; animation: menu .18s var(--ease); }
.menu p { margin: .4rem .65rem .2rem; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--doux); }
.menu button { display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 42px; padding: .45rem .65rem; border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: left; font-size: .9rem; }
.menu button:hover, .menu button:focus-visible { background: var(--surface-3); outline: none; }
.menu hr { border: 0; border-top: 1px solid var(--bord); margin: .3rem 0; }
.menu .danger { color: var(--danger-texte); }

.contenu { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 1.75rem clamp(16px, 3vw, 32px) 3rem; outline: none; }
.vue-entre { animation: vue .45s var(--ease) both; }
.pied { padding: 1.25rem 16px 1.75rem; text-align: center; font-size: .78rem; color: var(--doux); }

/* En-tête de page */
.entete { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.entete .sur { margin: 0 0 .2rem; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--lien); }
.entete h1 { margin: 0; font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 700; }
.entete .desc { margin: .35rem 0 0; color: var(--doux); max-width: 70ch; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.tricolore { display: block; width: 120px; height: 4px; margin-top: .7rem; border-radius: 4px; background: linear-gradient(90deg, var(--accent) 0 55%, var(--jaune) 55% 78%, var(--rouge) 78%); transform-origin: left; animation: tracer .7s .1s var(--ease) both; }
:root[data-chambre="senat"] .tricolore { background: linear-gradient(90deg, var(--p) 0 55%, var(--jaune) 55% 78%, var(--rouge) 78%); }

.carte { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--r-l); box-shadow: var(--ombre); }
.carte-int { padding: 1.25rem 1.4rem; }
.carte h2 { margin: 0 0 .25rem; font-size: 1.05rem; font-weight: 600; }
.grille-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.pile { display: flex; flex-direction: column; gap: 1.25rem; }

/* Indicateurs de séance */
.indics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.75rem; }
.indic { padding: 1rem 1.15rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--bord); box-shadow: var(--ombre); animation: monter .5s var(--ease) both; }
.indic:nth-child(2) { animation-delay: .05s; } .indic:nth-child(3) { animation-delay: .1s; } .indic:nth-child(4) { animation-delay: .15s; }
.indic span { display: block; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); }
.indic b { display: block; margin-top: .2rem; font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.indic b small { font-size: .55em; font-weight: 500; color: var(--doux); }
.indic .etat-ok { color: var(--succes-texte); font-size: .82rem; font-weight: 600; }
.jauge { position: relative; height: 8px; border-radius: 8px; background: var(--surface-3); margin-top: .6rem; overflow: visible; }
.jauge i { position: absolute; inset: 0 auto 0 0; border-radius: 8px; background: var(--p); transition: width .6s var(--ease); }
.jauge .seuil { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 2px; background: var(--texte); opacity: .55; }

/* ============ Bandes (direction A) ============ */
.bandes { display: flex; flex-direction: column; gap: .9rem; }
.bande {
  --c: var(--p); --t: #fff;
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) 88px 88px; align-items: stretch;
  width: 100%; min-height: 92px; padding: 0; border: 0; border-radius: 16px; overflow: hidden; text-align: left; cursor: pointer;
  background: var(--c); color: var(--t); box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 28%, transparent);
  transition: transform .2s var(--ease), box-shadow .2s; animation: monter .45s var(--ease) both;
  view-transition-name: var(--vt, none);
}
.bande:hover { transform: translateY(-3px); box-shadow: 0 14px 30px color-mix(in srgb, var(--c) 38%, transparent); }
.bande.en-cours { --c: var(--jaune); --t: var(--sur-jaune); }
.bande.manque { --c: var(--rouge); }
.bande.a-venir { --c: var(--surface); --t: var(--texte); border: 1.5px dashed var(--bord-fort); box-shadow: none; }
.bande.a-venir:hover { box-shadow: var(--ombre); }
.bande-num { display: grid; place-items: center; width: 64px; font-size: 1.35rem; font-weight: 800; background: rgba(0, 0, 0, .08); }
.bande.a-venir .bande-num { background: var(--surface-2); color: var(--doux); }
.bande-corps { padding: .85rem 1.25rem; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: .2rem; }
.bande-statut { display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start; padding: .1rem .55rem; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.bande.en-cours .bande-statut { background: rgba(0, 0, 0, .1); }
.bande.a-venir .bande-statut { background: var(--surface-3); color: var(--doux); }
.bande-statut i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.bande.en-cours .bande-statut i { animation: pulse 1.2s infinite; }
.bande-titre { font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 600; }
.bande-meta { display: flex; flex-wrap: wrap; gap: .2rem 1.25rem; font-size: .84rem; opacity: .92; }
.bande.a-venir .bande-meta { color: var(--doux); opacity: 1; }
.repartition { display: flex; height: 6px; margin-top: .35rem; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .25); }
.bande.en-cours .repartition { background: rgba(0, 0, 0, .12); }
.repartition b { height: 100%; transition: width .6s var(--ease); }
.bande-ch { display: grid; place-items: center; text-align: center; font-size: 1.45rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; background: rgba(255, 255, 255, .13); }
.bande-ch + .bande-ch { background: rgba(255, 255, 255, .22); }
.bande.en-cours .bande-ch { background: rgba(255, 255, 255, .28); }
.bande.en-cours .bande-ch + .bande-ch { background: rgba(255, 255, 255, .42); }
.bande.a-venir .bande-ch { background: transparent; }
.bande-ch em { display: block; font-style: normal; font-size: .6rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.bande-ch small { font-size: .55em; }
.bande-action { grid-column: 3 / 5; display: grid; place-items: center; padding: .75rem; }
.verdict { display: inline-block; padding: .05rem .5rem; border-radius: 6px; font-weight: 700; font-size: .78rem; background: rgba(255, 255, 255, .22); }

/* ============ Direct (direction B) ============ */
.direct {
  position: relative; overflow: hidden; border-radius: 24px; color: #e8eef6;
  background: radial-gradient(120% 90% at 50% 0%, #12305a, #060d18 72%); border: 1px solid #1d3150; box-shadow: var(--ombre-forte);
}
:root[data-chambre="senat"] .direct { background: radial-gradient(120% 90% at 50% 0%, #3d2617, #110905 72%); border-color: #3d2a1c; }
.direct::before { content: ""; position: absolute; inset: 0; background: #fff; opacity: .035; -webkit-mask: var(--motif) 0 0 / auto repeat; mask: var(--motif) 0 0 / auto repeat; }
.direct > * { position: relative; }
.direct-int { padding: 1.25rem 1.5rem 1.5rem; }
.direct-haut { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.en-direct { display: inline-flex; align-items: center; gap: .45rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ff8a96; }
.en-direct i { width: 9px; height: 9px; border-radius: 50%; background: #ff3b55; box-shadow: 0 0 0 0 rgba(255, 59, 85, .6); animation: onde 1.4s infinite; }
.clos-badge { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #a3b3c7; }
.hemi { display: block; width: 100%; height: auto; margin: .25rem 0; }
.hemi circle { transition: fill .3s; }
.hemi circle.allume { animation: pop .5s var(--rebond); transform-box: fill-box; transform-origin: center; }
.hemi circle.moi { stroke: #fff; stroke-width: 1.6; }
.hemi .majorite { stroke: rgba(255, 255, 255, .5); stroke-dasharray: 3 4; stroke-width: 1.2; }
.hemi text { fill: rgba(255, 255, 255, .55); font-size: 9px; font-family: inherit; }
.totaux { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: .6rem; }
.totaux div { padding: .65rem .5rem; border-radius: 12px; background: rgba(255, 255, 255, .06); text-align: center; }
.totaux b { display: block; font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.totaux span { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; opacity: .88; }
.totaux span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.decision { margin-top: 1rem; padding: .9rem 1rem; border-radius: 14px; text-align: center; font-weight: 700; font-size: 1.15rem; animation: tampon .6s var(--rebond) both; }
.decision.adopte { background: rgba(31, 164, 99, .18); color: #7ee2a8; box-shadow: inset 0 0 0 1px rgba(126, 226, 168, .3); }
.decision.rejete { background: rgba(200, 16, 46, .2); color: #ff9aa5; box-shadow: inset 0 0 0 1px rgba(255, 138, 150, .3); }
.decision.neutre { background: rgba(255, 255, 255, .08); color: #e8eef6; }
.decision small { display: block; font-weight: 500; font-size: .8rem; opacity: .85; margin-top: .15rem; }

/* Chrono en anneau */
.chrono { position: relative; width: 96px; height: 96px; flex: none; }
.chrono svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.chrono .fond-a { fill: none; stroke: var(--surface-3); stroke-width: 8; }
.direct .chrono .fond-a { stroke: rgba(255, 255, 255, .1); }
.chrono .a { fill: none; stroke: var(--p-clair); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 264; transition: stroke-dashoffset .5s linear, stroke .3s; }
.chrono.orange .a { stroke: #f39c12; }
.chrono.rouge .a { stroke: #ff4d63; }
.chrono.rouge { animation: battre 1s infinite; }
.chrono b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.chrono small { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-size: .6rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }

/* Résultats par choix */
.choix-res { display: flex; flex-direction: column; gap: .6rem; }
.choix-ligne {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 64px 64px; align-items: center; min-height: 58px;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--bord); background: var(--surface); cursor: pointer; text-align: left; padding: 0;
  transition: transform .15s var(--ease), border-color .15s;
}
.choix-ligne:hover { transform: translateX(3px); border-color: var(--c); }
.choix-ligne[aria-disabled="true"] { cursor: default; }
.choix-ligne[aria-disabled="true"]:hover { transform: none; border-color: var(--bord); }
.choix-ligne .barre-c { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--c) 18%, transparent); transition: width .7s var(--ease); }
.choix-ligne .nom { position: relative; display: flex; align-items: center; gap: .6rem; padding: 0 1rem; font-weight: 600; }
.choix-ligne .nom::before { content: ""; width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--c); }
.choix-ligne .n, .choix-ligne .pc { position: relative; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.choix-ligne .pc { color: var(--doux); font-weight: 600; }
.choix-ligne.gagnant { border-color: var(--c); box-shadow: inset 4px 0 0 var(--c); }

.regles { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .9rem; }
.regles li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .55rem; border-bottom: 1px solid var(--bord); }
.regles li:last-child { border-bottom: 0; padding-bottom: 0; }
.regles span { color: var(--doux); }
.regles b { text-align: right; }

/* ============ Tablette de l'élu (direction C) ============ */
.tablette { max-width: 620px; margin: 0 auto; }
.vote-carte { position: relative; overflow: hidden; border-radius: 26px; background: var(--surface); border: 1px solid var(--bord); box-shadow: var(--ombre-forte); animation: monter .5s var(--ease) both; }
.vote-carte::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--accent) 0 55%, var(--jaune) 55% 78%, var(--rouge) 78%); }
:root[data-chambre="senat"] .vote-carte::before { background: linear-gradient(90deg, var(--p) 0 55%, var(--jaune) 55% 78%, var(--rouge) 78%); }
.vote-int { padding: 1.75rem 1.5rem 1.5rem; }
.vote-tete { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; }
.vote-tete .sur { margin: 0; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--lien); }
.vote-tete h2 { margin: .3rem 0 0; font-size: clamp(1.25rem, 3vw, 1.6rem); }
.vote-carte .desc { margin: .75rem 0 1.25rem; color: var(--doux); }
.vote-carte .chrono { width: 78px; height: 78px; }
.vote-carte .chrono b { font-size: 1rem; }
.vote-carte .chrono small { bottom: 15px; }
.gros-choix { display: grid; gap: .8rem; }
.gros-btn {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 1rem; min-height: 76px; padding: 0 1.2rem;
  border-radius: 18px; border: 2px solid var(--bord); background: var(--surface-2); cursor: pointer; text-align: left;
  font-size: 1.18rem; font-weight: 600; user-select: none; -webkit-user-select: none; touch-action: none;
  transition: border-color .2s, transform .15s var(--ease), background-color .2s;
}
.gros-btn:hover { border-color: var(--c); }
.gros-btn .remplir { position: absolute; inset: 0; background: var(--c); opacity: .2; transform-origin: left; transform: scaleX(var(--k, 0)); }
.gros-btn.tient { transform: scale(.985); border-color: var(--c); }
.gros-btn .rond { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; }
.gros-btn .rond svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 3; fill: none; stroke-linecap: round; }
.gros-btn.abst .rond { color: var(--sur-jaune); }
.gros-btn > span { position: relative; }
.gros-btn .indice { margin-left: auto; font-size: .74rem; font-weight: 500; color: var(--doux); }
.vote-aide { margin: 1rem 0 0; text-align: center; font-size: .85rem; color: var(--doux); }

.recu { text-align: center; padding: 2rem 1.5rem; }
.recu svg.signe { width: 104px; height: 104px; }
.recu .cercle { fill: none; stroke: var(--c); stroke-width: 6; stroke-dasharray: 302; stroke-dashoffset: 302; animation: trace .6s ease forwards; }
.recu .coche { fill: none; stroke: var(--c); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: trace .4s .5s ease forwards; }
.recu.instantane .cercle, .recu.instantane .coche { animation: none; stroke-dashoffset: 0; }
.recu h2 { margin: .8rem 0 .15rem; font-size: 1.4rem; }
.recu p { margin: .1rem 0; color: var(--doux); }
.code { display: inline-block; margin-top: .85rem; padding: .5rem .9rem; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--bord-fort); font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; font-size: .95rem; min-width: 220px; }
.attente { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: 1.25rem; padding: .75rem; border-radius: 12px; background: var(--surface-2); color: var(--doux); font-size: .9rem; }
.attente i { width: 8px; height: 8px; border-radius: 50%; background: var(--p); animation: rebond 1.2s infinite; }
.attente i:nth-child(2) { animation-delay: .15s; } .attente i:nth-child(3) { animation-delay: .3s; }

.pointage { text-align: center; padding: 2.5rem 1.5rem; }
.pointage h2 { margin: 1rem 0 .3rem; font-size: 1.6rem; }
.pointage p { margin: 0 auto 1.75rem; max-width: 42ch; color: var(--doux); }
.btn-present { position: relative; width: 180px; height: 180px; border-radius: 50%; border: 0; cursor: pointer; background: var(--deg); color: #fff; font-size: 1.15rem; font-weight: 700; box-shadow: 0 20px 50px color-mix(in srgb, var(--p) 45%, transparent); transition: transform .2s var(--rebond); }
.btn-present::before, .btn-present::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--p) 40%, transparent); animation: halo 2.2s infinite; }
.btn-present::after { animation-delay: 1.1s; }
.btn-present:hover { transform: scale(1.04); }
.btn-present:active { transform: scale(.96); }

/* Ordre du jour compact (élu) */
.odj { list-style: none; margin: 0; padding: 0; }
.odj li { display: flex; align-items: center; gap: .85rem; padding: .8rem 0; border-bottom: 1px solid var(--bord); }
.odj li:last-child { border-bottom: 0; }
.odj .num { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--surface-3); color: var(--doux); }
.odj .en-cours .num { background: var(--jaune); color: var(--sur-jaune); }
.odj .clos .num { background: var(--p); color: #fff; }
.odj .t { flex: 1; min-width: 0; font-size: .92rem; }
.odj .t small { display: block; color: var(--doux); font-size: .78rem; }
.odj button.t { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }
.odj button.t:hover { color: var(--lien); }
.etiqs { flex: none; display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.etiq { flex: none; font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; }
.etiq.ok { background: color-mix(in srgb, var(--vert) 14%, transparent); color: var(--succes-texte); }
.etiq.ko { background: color-mix(in srgb, var(--rouge) 14%, transparent); color: var(--danger-texte); }
.etiq.moi { background: color-mix(in srgb, var(--p) 14%, transparent); color: var(--lien); }
.etiq.live { background: var(--jaune); color: var(--sur-jaune); }

/* ============ Création ============ */
.form { display: grid; gap: 1.25rem; }
.form-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.segments { display: flex; flex-wrap: wrap; gap: .5rem; }
.segments label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: .45rem 1rem; border-radius: 12px; border: 1.5px solid var(--bord-fort); background: var(--surface); cursor: pointer; font-weight: 500; font-size: .92rem; transition: border-color .15s, background-color .15s; }
.segments input { position: absolute; opacity: 0; pointer-events: none; }
.segments label:has(input:checked) { border-color: var(--p); background: color-mix(in srgb, var(--p) 10%, var(--surface)); color: var(--lien); font-weight: 600; }
.segments label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.liste-choix { display: grid; gap: .6rem; }
.choix-saisie { display: flex; gap: .5rem; align-items: center; animation: monter .3s var(--ease) both; }
.choix-saisie .pastille { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.choix-saisie input { flex: 1; min-height: 48px; padding: .6rem .9rem; border-radius: 12px; border: 1.5px solid var(--bord-fort); background: var(--surface); }
.choix-saisie input:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 4px color-mix(in srgb, var(--p) 22%, transparent); }
.choix-saisie input[readonly] { background: var(--surface-2); color: var(--doux); }
.retirer { width: 40px; height: 40px; border-radius: 10px; border: 0; background: none; cursor: pointer; color: var(--doux); font-size: 1.25rem; }
.retirer:hover { background: color-mix(in srgb, var(--rouge) 12%, transparent); color: var(--danger-texte); }
.ajouter { min-height: 48px; border-radius: 12px; border: 1.5px dashed var(--bord-fort); background: none; color: var(--lien); font-weight: 600; cursor: pointer; }
.ajouter:hover { border-color: var(--p); background: color-mix(in srgb, var(--p) 6%, transparent); }
.interrupteur { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border-radius: 14px; border: 1px solid var(--bord); background: var(--surface-2); cursor: pointer; }
.interrupteur strong { display: block; font-size: .95rem; }
.interrupteur small { color: var(--doux); }
.interrupteur input { position: absolute; opacity: 0; }
.piste { position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--bord-fort); transition: background-color .2s; }
.piste::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .25s var(--rebond); }
.interrupteur input:checked + .piste { background: var(--p); }
.interrupteur input:checked + .piste::after { transform: translateX(18px); }
.interrupteur input:focus-visible + .piste { outline: 3px solid var(--accent); outline-offset: 2px; }
.apercu { position: sticky; top: calc(var(--haut) + 16px); }

/* ============ Liste nominative ============ */
.recherche { position: relative; margin-bottom: 1rem; }
.recherche input { width: 100%; min-height: 48px; padding: .6rem .9rem .6rem 2.6rem; border-radius: 12px; border: 1.5px solid var(--bord-fort); background: var(--surface); }
.recherche svg { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--doux); }
.onglets { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.onglets button { min-height: 40px; padding: .3rem .9rem; border-radius: 999px; border: 1.5px solid var(--bord-fort); background: var(--surface); cursor: pointer; font-size: .88rem; font-weight: 500; display: inline-flex; gap: .45rem; align-items: center; }
.onglets button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.onglets button[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--surface)); font-weight: 600; }
.nominatif { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .5rem; }
.nominatif li { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--bord); animation: monter .3s var(--ease) both; }
.nominatif .avatar { width: 36px; height: 36px; font-size: .72rem; }
.nominatif strong { display: block; font-size: .9rem; font-weight: 500; }
.nominatif small { color: var(--doux); font-size: .76rem; }
.nominatif .vous { border-color: var(--p); box-shadow: inset 3px 0 0 var(--p); }

/* ============ Projection en salle ============
   Les tailles suivent la largeur du cadre (unités cqw) : la même mise en page sert à l'écran géant
   et à l'aperçu de la régie. */
.salle { position: fixed; inset: 0; z-index: 80; overflow: hidden; color: #e8eef6; background: radial-gradient(120% 90% at 50% 0%, #12305a, #04080f 75%); container-type: inline-size; }
:root[data-chambre="senat"] .salle { background: radial-gradient(120% 90% at 50% 0%, #3d2617, #0a0503 75%); }
.proj-zone { min-height: 100%; }
.salle-int { min-height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: 2cqw 3cqw; gap: 1.2cqw; }
.salle-haut { display: flex; align-items: center; gap: 1.6cqw; }
.salle-haut img { width: 6.5cqw; min-width: 40px; height: auto; border-radius: 50%; background: #fff; }
.salle-haut h1 { margin: .2em 0 0; font-size: max(1rem, 2.7cqw); line-height: 1.15; }
.salle-haut .en-direct, .salle-haut .clos-badge { font-size: max(.65rem, 1cqw); }
.salle-haut .chrono { width: 10cqw; height: 10cqw; min-width: 64px; min-height: 64px; margin-left: auto; }
.salle-haut .chrono b { font-size: max(.9rem, 2.1cqw); }
.salle-haut .chrono small { bottom: 22%; font-size: max(.5rem, .8cqw); }
/* L'hémicycle prend la hauteur restante : les totaux restent toujours visibles. */
.salle .proj-zone { height: 100%; }
.salle-int { height: 100%; }
.salle-int > div:nth-child(2):not(.proj-quorum):not(.proj-tribune) { min-height: 0; display: flex; justify-content: center; align-items: center; }
.salle .proj-quorum { display: flex !important; flex-direction: column; align-items: center; justify-content: center; }
.salle .hemi { height: 100%; max-height: 100%; width: auto; max-width: 100%; margin: 0 auto; }
.salle .totaux { gap: 1cqw; }
.salle .totaux div { padding: 1cqw .5cqw; border-radius: 1.2cqw; }
.salle .totaux b { font-size: max(1.1rem, 4.2cqw); }
.salle .totaux span { font-size: max(.7rem, 1.25cqw); }
.proj-decision { font-size: max(1rem, 2.4cqw) !important; padding: 1.2cqw !important; }
.proj-decision small { font-size: max(.7rem, 1.1cqw); }
.proj-commandes { position: fixed; right: 1rem; top: 1rem; z-index: 2; display: flex; gap: .5rem; opacity: .15; transition: opacity .25s; }
.proj-commandes:hover, .proj-commandes:focus-within { opacity: 1; }
.proj-commandes .btn { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); backdrop-filter: blur(6px); }
.proj-tribune { display: flex; align-items: center; justify-content: center; gap: 3cqw; text-align: left; }
.proj-tribune h2 { margin: 0; font-size: max(1.4rem, 5cqw); line-height: 1.1; }
.proj-tribune p { margin: .6cqw 0 0; font-size: max(.9rem, 1.9cqw); opacity: .85; }
.proj-tribune .proj-objet { display: inline-block; margin-top: 1.4cqw; padding: .5cqw 1.4cqw; border-radius: 99px; background: rgba(255, 255, 255, .1); font-weight: 600; opacity: 1; }
.avatar.proj-avatar { width: 16cqw; height: 16cqw; min-width: 80px; min-height: 80px; font-size: max(1.4rem, 5cqw); box-shadow: 0 0 0 .6cqw rgba(255, 255, 255, .12); }
.proj-suivants ol { list-style: none; display: flex; gap: 1.2cqw; margin: .8cqw 0 0; padding: 0; flex-wrap: wrap; }
.proj-suivants li { flex: 1 1 0; min-width: 160px; padding: 1cqw 1.4cqw; border-radius: 1.2cqw; background: rgba(255, 255, 255, .06); }
.proj-suivants b { display: block; font-size: max(.85rem, 1.5cqw); }
.proj-suivants span { font-size: max(.7rem, 1.1cqw); opacity: .75; }
.proj-pied { margin: 1cqw 0 0; text-align: center; font-size: max(.65rem, 1cqw); opacity: .6; }
.proj-odj { list-style: none; margin: 0; padding: 0; display: grid; gap: 1cqw; align-content: center; }
.proj-odj li { display: grid; grid-template-columns: auto 1fr auto; gap: 1.6cqw; align-items: center; padding: 1.2cqw 1.6cqw; border-radius: 1.4cqw; background: rgba(255, 255, 255, .06); font-size: max(.85rem, 1.8cqw); }
.proj-odj .num { width: 3.6cqw; height: 3.6cqw; min-width: 28px; min-height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: rgba(255, 255, 255, .12); }
.proj-odj .ouvert { background: var(--jaune); color: var(--sur-jaune); }
.proj-odj .ouvert .num { background: rgba(0, 0, 0, .12); }
.proj-odj .etat { font-weight: 700; font-size: .8em; text-transform: uppercase; letter-spacing: .06em; }
.proj-quorum { display: grid; place-items: center; text-align: center; align-content: center; }
.proj-quorum > b { font-size: max(3rem, 13cqw); line-height: 1; }
.proj-quorum > b small { font-size: .35em; opacity: .7; }
.proj-quorum p { margin: .6cqw 0 0; font-size: max(.9rem, 2cqw); }
.proj-quorum .jauge { width: 60cqw; height: 1.4cqw; min-height: 10px; margin: 2cqw 0 1cqw; background: rgba(255, 255, 255, .12); }
.proj-quorum .jauge i { background: linear-gradient(90deg, var(--p-clair), #fff); }
.proj-quorum .jauge .seuil { background: #fff; opacity: 1; }
.proj-quorum .ok { color: #7ee2a8; font-weight: 700; }
.proj-quorum .ko { color: #ff8a96; font-weight: 700; }
.proj-quorum .proj-petit { font-size: max(.75rem, 1.3cqw); opacity: .7; }
/* Aperçu de la régie : même rendu, dans un cadre 16:9 */
.salle.mini { position: relative; inset: auto; z-index: auto; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; box-shadow: var(--ombre-forte); border: 1px solid var(--bord); }
.salle.mini .salle-int { min-height: 100%; height: 100%; }
.choix-ecran { display: grid; gap: .6rem; }
.choix-ecran button { display: grid; gap: .15rem; text-align: left; padding: .85rem 1rem; border-radius: 14px; border: 1.5px solid var(--bord); background: var(--surface); cursor: pointer; transition: border-color .15s, transform .15s var(--ease); }
.choix-ecran button:hover { transform: translateX(3px); border-color: var(--p); }
.choix-ecran button[aria-checked="true"] { border-color: var(--p); background: color-mix(in srgb, var(--p) 9%, var(--surface)); box-shadow: inset 4px 0 0 var(--p); }
.choix-ecran strong { font-size: .95rem; }
.choix-ecran small { color: var(--doux); font-size: .8rem; }
.btn-plein-proj span { margin-left: .2rem; }

/* ============ Procès-verbal ============ */
.pv { max-width: 820px; margin: 0 auto; padding: 3rem 3.25rem; background: #fff; color: #111; border-radius: 6px; box-shadow: var(--ombre-forte); font-size: .95rem; color-scheme: light; }
.pv-tete { display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; gap: 1rem; text-align: center; padding-bottom: 1.25rem; border-bottom: 2px solid #111; }
.pv-tete img { width: 80px; height: 80px; }
.pv-tete p { margin: 0; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.pv-tete h1 { margin: .3rem 0 0; font-size: 1.35rem; }
.pv h2 { font-size: 1rem; margin: 1.75rem 0 .6rem; text-transform: uppercase; letter-spacing: .05em; }
.pv table { width: 100%; border-collapse: collapse; }
.pv th, .pv td { padding: .45rem .6rem; border: 1px solid #c9c9c9; text-align: left; }
.pv th { background: #f1f1f1; font-weight: 600; }
.pv td.n { text-align: right; font-variant-numeric: tabular-nums; }
.pv-decision { margin-top: 1.25rem; padding: .9rem 1rem; border: 2px solid #111; text-align: center; font-size: 1.1rem; font-weight: 700; }
.pv-noms { columns: 2; column-gap: 2rem; font-size: .82rem; margin: 0; padding-left: 1.1rem; }
.pv-signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; text-align: center; font-size: .88rem; }
.pv-signatures div { padding-top: 3.5rem; border-bottom: 1px solid #111; }
.pv-pied { margin-top: 2rem; font-size: .75rem; color: #555; text-align: center; }

/* ============ Fenêtres, notifications ============ */
.voile { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(5, 12, 22, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fondu .2s; }
.fenetre { width: min(460px, 100%); padding: 1.6rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--bord); box-shadow: var(--ombre-forte); animation: entrer .28s var(--rebond); }
.fenetre h2 { margin: 0 0 .4rem; font-size: 1.2rem; }
.fenetre p { margin: 0 0 1.25rem; color: var(--doux); }
.fenetre .actions { justify-content: flex-end; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 95; transform: translateX(-50%); display: flex; align-items: center; gap: .6rem; max-width: calc(100% - 32px); padding: .8rem 1.1rem; border-radius: 14px; background: #13233a; color: #fff; font-weight: 500; box-shadow: var(--ombre-forte); animation: toast .35s var(--rebond); }
.alerte { position: fixed; left: 50%; top: calc(var(--haut) + 12px); z-index: 85; transform: translateX(-50%); display: flex; align-items: center; gap: .9rem; width: min(520px, calc(100% - 32px)); padding: .9rem 1rem; border-radius: 16px; background: var(--jaune); color: var(--sur-jaune); box-shadow: 0 18px 40px rgba(0, 0, 0, .25); animation: descendre .6s var(--rebond); cursor: pointer; text-align: left; border: 0; }
.alerte .cloche { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .1); }
.alerte .cloche svg { animation: sonner .8s .45s ease-in-out 2; transform-origin: top center; }
.alerte strong { display: block; }
.alerte span { font-size: .86rem; }

.vide { padding: 2.5rem 1rem; text-align: center; color: var(--doux); }


/* ============ Connexion biométrique ============ */
.form-connexion { display: flex; flex-direction: column; gap: 1rem; animation: monter .5s var(--ease) both; }
.form-connexion h1 { margin: 0; font-size: 1.7rem; font-weight: 700; }
.form-connexion .sous { margin: -.5rem 0 .25rem; color: var(--doux); }
.pas { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lien); }
.biometrie { align-items: center; text-align: center; }
.lien { min-height: 40px; padding: 0 .25rem; border: 0; background: none; color: var(--lien); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.rangee-liens { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.lien-public { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; border-radius: var(--r); border: 1px solid var(--bord); color: var(--lien); font-weight: 600; text-decoration: none; transition: background-color .15s, border-color .15s; }
.lien-public:hover { border-color: var(--p); background: color-mix(in srgb, var(--p) 6%, transparent); }

.capteur {
  --k: 0; position: relative; width: 168px; height: 168px; margin: .5rem auto 0; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--surface-2); color: var(--p); box-shadow: inset 0 0 0 1.5px var(--bord), var(--ombre);
  user-select: none; -webkit-user-select: none; touch-action: none; transition: transform .2s var(--rebond), background-color .3s;
}
:root[data-theme="dark"] .capteur { color: var(--p-clair); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .capteur { color: var(--p-clair); } }
.capteur:hover { transform: scale(1.03); }
.capteur-anneau { position: absolute; inset: -7px; border-radius: 50%; background: conic-gradient(var(--p-clair) calc(var(--k) * 360deg), transparent 0); -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%); mask: radial-gradient(circle, transparent 62%, #000 63%); }
.capteur-int { position: absolute; inset: 22px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; }
.empreinte { width: 92px; height: 92px; transition: opacity .3s, transform .3s; }
.balayage { position: absolute; left: 8%; right: 8%; height: 3px; border-radius: 3px; top: 10%; background: var(--p-clair); box-shadow: 0 0 14px 4px color-mix(in srgb, var(--p-clair) 55%, transparent); opacity: 0; }
.capteur.lecture { transform: scale(.97); }
.capteur.lecture .balayage { opacity: 1; animation: balayer 1s ease-in-out infinite alternate; }
.capteur.lecture .empreinte { color: var(--p-clair); }
.capteur-ok { position: absolute; width: 70px; height: 70px; fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; opacity: 0; }
.capteur.ok { background: var(--vert); box-shadow: 0 0 0 10px color-mix(in srgb, var(--vert) 20%, transparent), var(--ombre); }
.capteur.ok .empreinte, .capteur.ok .balayage { opacity: 0; transform: scale(.6); }
.capteur.ok .capteur-ok { opacity: 1; animation: trace .45s ease forwards; }
.capteur.ok .capteur-anneau { background: transparent; }
.capteur.refus { animation: secouer .35s; }
.capteur-etat { margin: .4rem 0 0; min-height: 1.5em; font-weight: 600; text-align: center; }
@keyframes balayer { from { top: 10%; } to { top: 86%; } }

/* ============ Réseau ============ */
.reseau { display: inline-flex; align-items: center; gap: .45rem; min-height: 36px; padding: 0 .8rem; border-radius: 999px; border: 1px solid var(--bord); background: var(--surface); color: var(--doux); font-size: .78rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.reseau i { width: 8px; height: 8px; border-radius: 50%; background: #1fa463; box-shadow: 0 0 0 3px color-mix(in srgb, #1fa463 25%, transparent); }
.reseau.coupe { color: var(--sur-jaune); background: var(--jaune); border-color: transparent; }
.reseau.coupe i { background: var(--rouge); box-shadow: none; animation: pulse 1s infinite; }
.bandeau-reseau { display: flex; align-items: center; gap: .7rem; padding: .7rem clamp(16px, 3vw, 32px); background: var(--jaune); color: var(--sur-jaune); font-size: .88rem; animation: descendre-b .4s var(--ease); }
.bandeau-reseau .ico { flex: none; }
@keyframes descendre-b { from { transform: translateY(-100%); opacity: 0; } }
.note-hl { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 12px; background: color-mix(in srgb, var(--jaune) 22%, var(--surface)); color: var(--texte); font-size: .88rem; }
.recu.en-attente .sablier { width: 96px; height: 96px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--jaune) 25%, transparent); color: var(--texte); animation: battre 1.4s infinite; }
.recu.en-attente .sablier .ico { width: 44px; height: 44px; }
.fort { color: var(--texte); }

/* ============ Navigation : compteurs ============ */
.nav .compte { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--p); color: #fff; font-size: .68rem; font-weight: 700; }
.etat-ko { color: var(--danger-texte); font-size: .82rem; font-weight: 600; }

/* ============ Vote : infobulle, analyse ============ */
.astuce { margin: -.2rem 0 .8rem; text-align: center; font-size: .74rem; opacity: .65; }
.infobulle { position: fixed; z-index: 70; pointer-events: none; max-width: 260px; padding: .6rem .8rem; border-radius: 12px; background: #0b1625; color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); font-size: .82rem; animation: fondu .12s; }
.infobulle strong { display: block; font-size: .9rem; }
.infobulle small { display: block; opacity: .75; }
.ib-etat { display: inline-flex; align-items: center; gap: .4rem; margin-top: .35rem; font-weight: 600; }
.ib-etat i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.ib-abs { color: #ffb3bd; }
.carte-tete { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .9rem; }
.carte-tete h2 { margin: 0; }
.mini-onglets { display: inline-flex; padding: 3px; gap: 3px; border-radius: 10px; background: var(--surface-3); }
.mini-onglets button { min-height: 34px; padding: 0 .75rem; border: 0; border-radius: 8px; background: none; cursor: pointer; font-size: .82rem; font-weight: 500; color: var(--doux); }
.mini-onglets button[aria-selected="true"] { background: var(--surface); color: var(--texte); font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.analyse { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .45rem; max-height: 420px; overflow: auto; }
.analyse li { display: grid; grid-template-columns: 120px minmax(0, 1fr) 62px; gap: .7rem; align-items: center; font-size: .84rem; }
.an-nom { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-barre { display: flex; height: 10px; border-radius: 10px; overflow: hidden; background: var(--surface-3); }
.an-barre b { height: 100%; transition: width .6s var(--ease); }
.an-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.an-val small { display: block; font-weight: 400; font-size: .7rem; color: var(--doux); }

/* ============ Divers ============ */
.centre { display: flex; justify-content: center; margin-top: 1rem; }
.vide-li { grid-column: 1 / -1; justify-content: center; color: var(--doux); }
.titre-groupe { margin: 2rem 0 .9rem; font-size: 1.05rem; }
.recu-ligne { margin: -.4rem 0 .2rem 1rem; }
.recu-ligne .code { margin: 0; padding: .15rem .5rem; min-width: 0; font-size: .82rem; }
.facultatif { font-weight: 400; color: var(--doux); font-size: .8rem; }
.etiquette-apercu { margin: 0 0 .6rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
.pv-h3 { font-size: .9rem; margin: 1rem 0 .4rem; }
.segments-col { flex-direction: column; align-items: stretch; }
.btn-petit { min-height: 36px; padding: .3rem .7rem; font-size: .82rem; }
.etat-carte { text-align: center; }
.etat-carte > .ico { width: 44px; height: 44px; color: var(--doux); }
.etat-carte .sur { margin: 0; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--lien); }
.etat-carte h2 { margin: .4rem 0 .2rem; }
.dernier { margin-top: 1rem; border-radius: 18px; text-align: left; }
.dernier .direct-int { padding: 1rem 1.2rem; }
.dernier-t { margin: .3rem 0 0; font-weight: 600; }
.dernier .decision { margin-top: .7rem; }
.pointage .sur { margin: 0; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--lien); }
.pointage .lien { margin-top: .75rem; }
.odj .num.pt { background: color-mix(in srgb, var(--vert) 15%, transparent); color: var(--succes-texte); }
.odj .num.pt .ico { width: 18px; height: 18px; }

/* ============ Prises de parole ============ */
.parole-direct .direct-int { padding: 1.4rem 1.5rem; }
.tribune { display: flex; align-items: center; gap: 1.1rem; }
.tribune-t { flex: 1; min-width: 0; }
.tribune .sur { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ff8a96; }
.tribune h2 { margin: .15rem 0; font-size: 1.35rem; }
.tribune p { margin: 0; opacity: .8; font-size: .88rem; }
.avatar.grand { width: 68px; height: 68px; font-size: 1.2rem; box-shadow: 0 0 0 3px rgba(255, 255, 255, .15), 0 0 0 0 rgba(255, 59, 85, .5); animation: onde-av 1.8s infinite; }
@keyframes onde-av { 0% { box-shadow: 0 0 0 3px rgba(255, 255, 255, .15), 0 0 0 0 rgba(255, 59, 85, .45); } 100% { box-shadow: 0 0 0 3px rgba(255, 255, 255, .15), 0 0 0 16px rgba(255, 59, 85, 0); } }
.vide-tribune { opacity: .9; }
.vide-tribune > .ico { width: 48px; height: 48px; opacity: .6; }
.vide-tribune .sur { color: #a3b3c7; }
.tribune-actions { margin-top: 1.1rem; }
.tribune-actions .btn-c { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .2); }
.file { list-style: none; margin: 0; padding: 0; }
.file li { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .75rem 0; border-bottom: 1px solid var(--bord); animation: monter .35s var(--ease) both; }
.file li:last-child { border-bottom: 0; }
.file li.vous { background: color-mix(in srgb, var(--p) 8%, transparent); border-radius: 12px; padding-left: .6rem; padding-right: .6rem; }
.file .ordre { flex: none; width: 26px; text-align: center; font-weight: 800; color: var(--doux); }
.file .t { flex: 1; min-width: 160px; }
.file .t strong { display: block; font-weight: 600; font-size: .92rem; }
.file .t small { color: var(--doux); font-size: .76rem; }
.file-actions { display: flex; gap: .3rem; }
.position { text-align: center; }
.position .sur { margin: 0; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--lien); }
.rang { display: block; font-size: 4rem; font-weight: 800; line-height: 1; margin: .4rem 0; background: var(--deg-texte, var(--deg)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rang sup { font-size: .4em; }

/* ============ Page publique ============ */
.public { min-height: 100vh; display: flex; flex-direction: column; }
.public-int { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.public-tete { padding: 2.5rem 0 2rem; color: #fff; background: var(--deg); position: relative; overflow: hidden; }
:root[data-chambre="senat"] .public-tete { background: linear-gradient(120deg, rgba(15, 40, 75, .9), rgba(40, 20, 8, .92)), url("../chambres/senat/salle.jpg") center / cover; }
.public-tete::before { content: ""; position: absolute; inset: 0; background: #fff; opacity: .08; -webkit-mask: var(--motif) 0 0 / auto repeat; mask: var(--motif) 0 0 / auto repeat; }
.public-tete .public-int { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; }
.public-tete img { width: 84px; height: 84px; border-radius: 50%; background: #fff; }
.public-tete .sur { margin: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.public-tete h1 { margin: .15rem 0; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }
.public-tete p { margin: 0; opacity: .9; }
.public-tete .actions { grid-column: 1 / -1; }
.public-liste { flex: 1; display: grid; gap: 1.1rem; padding-top: 1.75rem; padding-bottom: 2rem; }
.public-vote { padding: 1.25rem 1.4rem; animation: monter .45s var(--ease) both; }
.public-vote h2 { margin: .5rem 0 .8rem; font-size: 1.15rem; }
.pv-ligne { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.repartition.grande { height: 14px; background: var(--surface-3); margin: 0; }
.legende { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: .7rem 0; padding: 0; font-size: .86rem; }
.legende li { display: inline-flex; align-items: center; gap: .4rem; }
.legende li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
details summary { cursor: pointer; font-weight: 600; color: var(--lien); min-height: 40px; display: flex; align-items: center; }
.public-noms { display: grid; gap: .8rem; font-size: .82rem; color: var(--doux); }
.public-noms h3 { display: flex; align-items: center; gap: .4rem; margin: 0 0 .2rem; font-size: .88rem; color: var(--texte); }
.public-noms h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.public-noms p { margin: 0; line-height: 1.6; }

/* ============ Économie de données ============ */
:root[data-eco="1"] .fond, :root[data-eco="1"] .direct::before, :root[data-eco="1"] .connexion-visuel::before { display: none; }
:root[data-eco="1"] .connexion-visuel, :root[data-eco="1"] .public-tete, :root[data-eco="1"] .accueil { background: var(--p) !important; }
:root[data-eco="1"] *, :root[data-eco="1"] *::before, :root[data-eco="1"] *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
:root[data-eco="1"] .barre { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); }

@media (max-width: 760px) {
  .reseau span { display: none; }
  .reseau { padding: 0; width: 36px; justify-content: center; }
  .analyse li { grid-template-columns: 90px minmax(0, 1fr) 54px; }
  .tribune { flex-wrap: wrap; }
  .tribune .chrono { margin-left: auto; }
  .public-tete .public-int { grid-template-columns: 1fr; }
  .public-tete img { width: 64px; height: 64px; }
  .capteur { width: 150px; height: 150px; }
}

/* En-tête dense : rien ne passe à la ligne */
.nav a, .marque strong, .marque small, .profil-btn strong, .profil-btn small { white-space: nowrap; }
@media (max-width: 1440px) and (min-width: 761px) {
  .nav { margin-left: .75rem; }
  .nav a { padding: 0 .6rem; gap: .35rem; }
  .reseau span { display: none; }
  .reseau { padding: 0; width: 36px; justify-content: center; }
  .marque small { display: none; }
}
@media (max-width: 1280px) and (min-width: 761px) {
  .profil-btn > span:not(.avatar), .profil-btn > .ico { display: none; }
}
@media (max-width: 1080px) and (min-width: 761px) {
  .nav a span { display: none; }
}
.indic span.aide { display: block; margin-top: .55rem; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .78rem; }
.btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; filter: grayscale(.4); }
.btn[aria-disabled="true"]:hover { transform: none; box-shadow: none; }

/* ============ Assemblée provinciale de Kinshasa : couleurs du blason de la Ville ============ */
:root[data-chambre="apk"] {
  --p: #233a9e; --p-fonce: #1a2c7a; --p-clair: #6f93ff; --accent: #d9871b;
  --fond: #f2f4fa; --surface-2: #f6f7fc; --surface-3: #e9ecf6; --bord: #d6dbeb; --bord-fort: #aab3cf;
  --lien: #233a9e;
  --deg: linear-gradient(120deg, #050066, #233a9e 55%, #d9871b);
  --motif-op: .05;
}
@media (prefers-color-scheme: dark) {
  :root[data-chambre="apk"]:not([data-theme="light"]) {
    --fond: #070a1f; --surface: #10142e; --surface-2: #161b3a; --surface-3: #1e2448; --bord: #262d55; --bord-fort: #3d4675;
    --lien: #a9bcff; --motif-op: .045;
  }
}
:root[data-theme="dark"][data-chambre="apk"] {
  --fond: #070a1f; --surface: #10142e; --surface-2: #161b3a; --surface-3: #1e2448; --bord: #262d55; --bord-fort: #3d4675;
  --lien: #a9bcff; --motif-op: .045;
}
:root[data-theme="dark"][data-chambre="apk"] { --deg-texte: linear-gradient(120deg, #a9bcff, #f0b866); }
@media (prefers-color-scheme: dark) { :root[data-chambre="apk"]:not([data-theme="light"]) { --deg-texte: linear-gradient(120deg, #a9bcff, #f0b866); } }
:root[data-chambre="apk"] .accueil { background: linear-gradient(rgba(5, 0, 102, .78), rgba(10, 8, 60, .9)), url("../chambres/apk/ville.jpg") center / cover; }
:root[data-chambre="apk"] .connexion-visuel { background: linear-gradient(180deg, rgba(5, 0, 102, .35), rgba(5, 0, 60, .92)), url("../chambres/apk/ville.jpg") center / cover; }
:root[data-chambre="apk"] .public-tete { background: linear-gradient(120deg, rgba(5, 0, 102, .9), rgba(35, 58, 158, .85)), url("../chambres/apk/ville.jpg") center / cover; }
:root[data-chambre="apk"] .direct { background: radial-gradient(120% 90% at 50% 0%, #1a2470, #04061a 72%); border-color: #1e2660; }
:root[data-chambre="apk"] .salle { background: radial-gradient(120% 90% at 50% 0%, #1a2470, #02030d 75%); }
:root[data-chambre="apk"] .tricolore, :root[data-chambre="apk"] .vote-carte::before { background: linear-gradient(90deg, #009fe3 0 55%, #ffed00 55% 78%, #e30613 78%); }
.entite { margin: 1.25rem 0 0 !important; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.demo-public { display: inline-block; margin-top: .75rem !important; padding: .4rem .75rem; border-radius: 10px; background: rgba(255, 255, 255, .14); font-size: .82rem; }
.avatar.photo { overflow: hidden; padding: 0; }
.avatar.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ============ Animations ============ */
@keyframes monter { from { opacity: 0; transform: translateY(14px); } }
@keyframes vue { from { opacity: 0; transform: translateY(10px); } }
@keyframes fondu { from { opacity: 0; } }
@keyframes entrer { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes menu { from { opacity: 0; transform: scale(.94) translateY(-6px); } }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 20px); } }
@keyframes descendre { from { opacity: 0; transform: translate(-50%, -130%); } }
@keyframes pulse { 50% { opacity: .25; } }
@keyframes onde { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 85, .6); } 100% { box-shadow: 0 0 0 10px rgba(255, 59, 85, 0); } }
@keyframes pop { 0% { transform: scale(.1); } 100% { transform: scale(1); } }
@keyframes tampon { 0% { opacity: 0; transform: scale(1.25); } 100% { opacity: 1; transform: scale(1); } }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes tracer { from { transform: scaleX(0); } }
@keyframes sonner { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(18deg); } 40% { transform: rotate(-16deg); } 60% { transform: rotate(10deg); } 80% { transform: rotate(-6deg); } }
@keyframes battre { 50% { transform: scale(1.06); } }
@keyframes rebond { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-6px); opacity: 1; } }
@keyframes halo { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes secouer { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes sceau { 0% { opacity: 0; transform: scale(.6) rotate(-25deg); } 100% { opacity: 1; transform: none; } }
@keyframes charger { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@keyframes partir { to { opacity: 0; transform: scale(1.06); visibility: hidden; } }
@keyframes derive { to { transform: translate(120px, 70px); } }

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }

/* ============ Responsive ============ */
@media (max-width: 1000px) {
  .grille-2 { grid-template-columns: 1fr; }
  .indics { grid-template-columns: 1fr 1fr; }
  .apercu { position: static; }
}
@media (max-width: 860px) {
  .connexion { grid-template-columns: 1fr; }
  .connexion-visuel { min-height: 260px; padding: 1.75rem 16px; }
  .connexion-visuel img { width: 64px; height: 64px; margin-bottom: 1rem; }
  .connexion-visuel p, .atouts { display: none; }
}
@media (max-width: 760px) {
  :root { --haut: 64px; }
  /* backdrop-filter ferait de la barre le repère de la nav fixe : on le retire sur téléphone. */
  .barre { gap: .5rem; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); }
  .marque img { width: 40px; height: 40px; }
  .marque small, .profil-btn > span:not(.avatar), .profil-btn > .ico { display: none; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0; justify-content: space-around; gap: 0;
    padding: .35rem .5rem calc(.35rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 90%, transparent); border-top: 1px solid var(--bord);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .nav a { flex: 1; flex-direction: column; gap: .1rem; min-height: 54px; padding: .25rem; font-size: .7rem; justify-content: center; }
  .nav a[aria-current="page"]::after { top: -6px; bottom: auto; left: 30%; right: 30%; border-radius: 0 0 3px 3px; }
  .coquille { padding-bottom: 72px; }
  .contenu { padding-top: 1.25rem; }
  .entete .actions { width: 100%; }
  .entete .actions .btn { flex: 1; }
  .bande { grid-template-columns: auto minmax(0, 1fr) 1fr; grid-template-rows: auto auto; }
  .bande-num { grid-row: 1 / 3; width: 46px; font-size: 1.1rem; }
  .bande-corps { grid-column: 2 / 4; padding: .8rem .9rem; }
  .bande-ch { min-height: 50px; font-size: 1.15rem; }
  .bande-action { grid-column: 2 / 4; }
  .indics { gap: .6rem; }
  .indic { padding: .8rem .9rem; }
  .indic b { font-size: 1.35rem; }
  .form-grille { grid-template-columns: 1fr; }
  .direct-int { padding: 1rem; }
  .chrono { width: 78px; height: 78px; }
  .chrono b { font-size: 1rem; } .chrono small { bottom: 15px; }
  .gros-btn { min-height: 68px; font-size: 1.05rem; }
  .pv { padding: 1.5rem 1.1rem; }
  .pv-noms { columns: 1; }
  .alerte { top: 8px; }
  .toast { bottom: 88px; }
  .odj li { flex-wrap: wrap; row-gap: .4rem; }
  .odj .t { flex-basis: calc(100% - 50px); }
  .odj .etiqs { flex-basis: 100%; justify-content: flex-start; padding-left: 47px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  body { background: #fff; }
  .barre, .nav, .pied, .fond, .toast, .alerte, .voile, .pv-actions, .entete { display: none !important; }
  .coquille { padding: 0; }
  .contenu { padding: 0; max-width: none; }
  .pv { box-shadow: none; padding: 0; max-width: none; }
}
