/* Les Outsiders — thème (charte Ornella).
   Mode : "auto" (suit le téléphone, par défaut), ou forcé clair / sombre via <html data-theme="light|dark">. */

:root {
  color-scheme: light;
  --bg: #F2F2F2;
  --tx: #2A1D4D;
  --mut: #6B5A82;
  --eyebrow: #754E91;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-soft: rgba(255, 255, 255, 0.5);
  --glass-strong: rgba(64, 47, 105, 0.07);
  --band: rgba(204, 158, 226, 0.30);
  --pill-bg: #402F69;
  --pill-tx: #FFFFFF;
  --primary: #402F69;
  --primary-tx: #FFFFFF;
  --primary-glow: rgba(64, 47, 105, 0.28);
  --chip-on-bg: #402F69;
  --chip-on-tx: #FFFFFF;
  --shadow: 0 10px 30px rgba(64, 47, 105, 0.10);
  --nav-bg: rgba(242, 242, 242, 0.82);
  --logo-top: #CC9EE2;
  --logo-base: #402F69;
  --halo-1: #CC9EE2;
  --halo-1-o: 0.45;
  --halo-2: #D9C9DD;
  --halo-2-o: 0.8;
  --ok: #1F7A4D;
  --ok-bg: rgba(31, 122, 77, 0.12);
  --err: #B3261E;
  --err-bg: rgba(179, 38, 30, 0.10);
  --warn: #8A5A00;
  --warn-bg: rgba(138, 90, 0, 0.12);
  --ph: #8f7fa6;
  --input-bg: rgba(64, 47, 105, 0.06);
  --ring-track: rgba(64, 47, 105, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1B1230;
    --tx: #F2F2F2;
    --mut: #D9C9DD;
    --eyebrow: #CC9EE2;
    --glass: rgba(217, 201, 221, 0.09);
    --glass-soft: rgba(217, 201, 221, 0.06);
    --glass-strong: rgba(217, 201, 221, 0.14);
    --band: rgba(204, 158, 226, 0.16);
    --pill-bg: #CC9EE2;
    --pill-tx: #2A1D4D;
    --primary: #CC9EE2;
    --primary-tx: #2A1D4D;
    --primary-glow: rgba(204, 158, 226, 0.28);
    --chip-on-bg: #F2F2F2;
    --chip-on-tx: #2A1D4D;
    --shadow: none;
    --nav-bg: rgba(27, 18, 48, 0.78);
    --logo-top: #D9C9DD;
    --logo-base: #D9C9DD;
    --halo-1: #754E91;
    --halo-1-o: 0.5;
    --halo-2: #CC9EE2;
    --halo-2-o: 0.18;
    --ok: #7FE0AE;
    --ok-bg: rgba(127, 224, 174, 0.12);
    --err: #FF9C94;
    --err-bg: rgba(255, 156, 148, 0.12);
    --warn: #F3C86B;
    --warn-bg: rgba(243, 200, 107, 0.12);
    --ph: #9d8cb0;
    --input-bg: rgba(27, 18, 48, 0.55);
    --ring-track: rgba(217, 201, 221, 0.16);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1B1230;
  --tx: #F2F2F2;
  --mut: #D9C9DD;
  --eyebrow: #CC9EE2;
  --glass: rgba(217, 201, 221, 0.09);
  --glass-soft: rgba(217, 201, 221, 0.06);
  --glass-strong: rgba(217, 201, 221, 0.14);
  --band: rgba(204, 158, 226, 0.16);
  --pill-bg: #CC9EE2;
  --pill-tx: #2A1D4D;
  --primary: #CC9EE2;
  --primary-tx: #2A1D4D;
  --primary-glow: rgba(204, 158, 226, 0.28);
  --chip-on-bg: #F2F2F2;
  --chip-on-tx: #2A1D4D;
  --shadow: none;
  --nav-bg: rgba(27, 18, 48, 0.78);
  --logo-top: #D9C9DD;
  --logo-base: #D9C9DD;
  --halo-1: #754E91;
  --halo-1-o: 0.5;
  --halo-2: #CC9EE2;
  --halo-2-o: 0.18;
  --ok: #7FE0AE;
  --ok-bg: rgba(127, 224, 174, 0.12);
  --err: #FF9C94;
  --err-bg: rgba(255, 156, 148, 0.12);
  --warn: #F3C86B;
  --warn-bg: rgba(243, 200, 107, 0.12);
  --ph: #9d8cb0;
  --input-bg: rgba(27, 18, 48, 0.55);
  --ring-track: rgba(217, 201, 221, 0.16);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F2F2F2;
  --tx: #2A1D4D;
  --mut: #6B5A82;
  --eyebrow: #754E91;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-soft: rgba(255, 255, 255, 0.5);
  --glass-strong: rgba(64, 47, 105, 0.07);
  --band: rgba(204, 158, 226, 0.30);
  --pill-bg: #402F69;
  --pill-tx: #FFFFFF;
  --primary: #402F69;
  --primary-tx: #FFFFFF;
  --primary-glow: rgba(64, 47, 105, 0.28);
  --chip-on-bg: #402F69;
  --chip-on-tx: #FFFFFF;
  --shadow: 0 10px 30px rgba(64, 47, 105, 0.10);
  --nav-bg: rgba(242, 242, 242, 0.82);
  --logo-top: #CC9EE2;
  --logo-base: #402F69;
  --halo-1: #CC9EE2;
  --halo-1-o: 0.45;
  --halo-2: #D9C9DD;
  --halo-2-o: 0.8;
  --ok: #1F7A4D;
  --ok-bg: rgba(31, 122, 77, 0.12);
  --err: #B3261E;
  --err-bg: rgba(179, 38, 30, 0.10);
  --warn: #8A5A00;
  --warn-bg: rgba(138, 90, 0, 0.12);
  --ph: #8f7fa6;
  --input-bg: rgba(64, 47, 105, 0.06);
  --ring-track: rgba(64, 47, 105, 0.12);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--tx);
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Plus Jakarta Sans', 'Montserrat', sans-serif; margin: 0; }
a { color: var(--eyebrow); }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 16px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Halos flous en arrière-plan */
.halo { position: fixed; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0; }
.halo.h1 { top: -110px; right: -120px; width: 330px; height: 330px; background: var(--halo-1); opacity: var(--halo-1-o); }
.halo.h2 { bottom: 120px; left: -130px; width: 280px; height: 280px; background: var(--halo-2); opacity: var(--halo-2-o); }

/* Mise en page */
.wrap {
  position: relative; z-index: 1;
  width: 100%; max-width: 520px; margin: 0 auto;
  padding: 28px 20px 120px;
  display: flex; flex-direction: column; gap: 18px;
}
.wrap.center { align-items: center; padding-top: 56px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.grow { flex: 1; min-width: 0; }

/* Titres */
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--eyebrow); text-transform: uppercase; }
.h-page { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.h-big { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.sub { color: var(--mut); font-size: 13.5px; line-height: 1.6; margin: 0; }
.small { font-size: 12px; color: var(--mut); line-height: 1.5; }

/* Logo */
.logo-top { fill: var(--logo-top); }
.logo-base { fill: var(--logo-base); }
.brand { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.brand .name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.brand .tag { font-size: 10px; font-weight: 600; letter-spacing: .28em; color: var(--eyebrow); }
.brand-inline { display: flex; align-items: center; gap: 10px; }
.brand-inline span { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: var(--tx); }

/* Verre dépoli, sans bordure */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.glass.pad { padding: 14px; }
.band { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--band); min-height: 40px; }
.band .ttl { flex: 1; min-width: 0; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; font-weight: 700; }
.band .meta { font-size: 12px; color: var(--mut); }
.body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.pill {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .14em;
  color: var(--pill-tx); background: var(--pill-bg); padding: 5px 10px; border-radius: 7px; text-transform: uppercase; white-space: nowrap;
}
.tagchip { font-size: 11px; font-weight: 700; color: #2A1D4D; padding: 5px 10px; border-radius: 8px; background: #D9C9DD; white-space: nowrap; }
.tagchip.off { opacity: .55; text-decoration: line-through; }
.status { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 8px; white-space: nowrap; }
.status.ok { color: var(--ok); background: var(--ok-bg); }
.status.warn { color: var(--warn); background: var(--warn-bg); }
.status.err { color: var(--err); background: var(--err-bg); }

/* Champs */
.field {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 18px;
  border-radius: 18px; background: var(--glass);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.field svg { flex: none; stroke: var(--mut); }
.field input, .field select, .field textarea {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--tx);
  font-size: 16px; min-height: 52px; padding: 0;
}
.field select { appearance: none; -webkit-appearance: none; }
.field select option { color: #2A1D4D; }
.field input::placeholder { color: var(--ph); }
.field:focus-within { outline: 2px solid var(--eyebrow); outline-offset: 2px; }
.field.locked { opacity: .8; }
.eye { width: 44px; height: 44px; margin-right: -14px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--mut); }
.label { font-size: 12px; font-weight: 700; color: var(--mut); margin: 4px 0 -8px 4px; }

/* Boutons */
.btn {
  height: 56px; border: 0; border-radius: 18px; cursor: pointer; width: 100%;
  background: var(--primary); color: var(--primary-tx);
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; font-weight: 800;
  box-shadow: 0 10px 30px var(--primary-glow);
  display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
}
.btn:disabled { opacity: .55; cursor: default; box-shadow: none; }
.btn.sm { height: 46px; border-radius: 14px; font-size: 14px; width: auto; padding: 0 20px; box-shadow: none; }
.btn.sm.full { flex: 1; }
.btn.ghost { background: var(--glass-strong); color: var(--tx); box-shadow: none; font-family: inherit; font-weight: 600; }
.btn.danger { background: var(--err-bg); color: var(--err); box-shadow: none; }
.btn.glass-btn { background: var(--glass); color: var(--tx); font-family: inherit; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.linkbtn { background: none; border: 0; color: var(--eyebrow); font-weight: 600; font-size: 13px; cursor: pointer; padding: 10px; min-height: 44px; text-decoration: none; }
.iconbtn {
  width: 44px; height: 44px; border-radius: 16px; border: 0; background: var(--glass); color: var(--tx);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; flex: none;
}
.iconbtn svg { stroke: currentColor; }

/* Onglets (chips) */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 40px; padding: 0 18px; border-radius: 20px; border: 0; cursor: pointer;
  background: var(--glass); color: var(--tx); font-size: 13px; font-weight: 600;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.chip[aria-pressed="true"], .chip.on { background: var(--chip-on-bg); color: var(--chip-on-tx); font-weight: 700; }

/* Avatar */
.avatar { width: 44px; height: 44px; border-radius: 22px; background: #754E91; color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; font-weight: 800; flex: none; }

/* Progression */
.bar { height: 6px; border-radius: 3px; background: var(--glass-strong); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 3px; background: var(--eyebrow); transition: width .4s ease; }

/* Barre d'onglets du bas */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px 8px calc(14px + env(safe-area-inset-bottom));
  background: var(--nav-bg); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  display: flex; justify-content: space-around; align-items: center;
}
.tabbar a {
  min-width: 60px; height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-decoration: none; color: var(--mut); font-size: 10px; font-weight: 600;
}
.tabbar a svg { stroke: currentColor; }
.tabbar a[aria-current="page"] { color: var(--eyebrow); font-weight: 700; }
.tabbar a .badge { position: absolute; margin: -22px -22px 0 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--primary); color: var(--primary-tx); font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.tabbar-inner { width: 100%; max-width: 520px; display: flex; justify-content: space-around; }

/* Messages */
.msg { padding: 12px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; }
.msg.err { color: var(--err); background: var(--err-bg); }
.msg.ok { color: var(--ok); background: var(--ok-bg); }
.msg.info { color: var(--tx); background: var(--glass-strong); }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { border-radius: 22px; height: 96px; background: var(--glass); animation: pulse 1.3s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }

/* Feuille (bottom sheet) + confirmation */
.sheet-back { position: fixed; inset: 0; z-index: 40; background: rgba(20, 12, 36, .55); display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: 100%; max-width: 520px; max-height: 88vh; overflow: auto;
  background: var(--bg); border-radius: 26px 26px 0 0; padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 14px; position: relative;
}
.sheet::before { content: ""; width: 42px; height: 4px; border-radius: 2px; background: var(--glass-strong); align-self: center; margin-bottom: 2px; }
.sheet h3 { font-size: 20px; font-weight: 800; }

.toast {
  position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); z-index: 60;
  max-width: calc(100% - 40px); padding: 12px 18px; border-radius: 16px; font-size: 13px; font-weight: 600;
  background: var(--pill-bg); color: var(--pill-tx); box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

@media (min-width: 700px) {
  .wrap { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ========================================================================
   Tablette et ordinateur
   ======================================================================== */
.side-brand { display: none; }
.cards { display: flex; flex-direction: column; gap: 12px; }

@media (min-width: 768px) {
  .wrap.wide { max-width: 900px; padding: 40px 32px 60px; gap: 22px; }
  .wrap.wide.narrow { max-width: 620px; }
  .wrap.center { padding-top: 72px; }
  /* les pages de connexion / formulaires restent un bloc centré, lisible */
  .wrap:not(.wide) { max-width: 460px; }
  .wrap:not(.wide) .glass, .wrap:not(.wide) form { width: 100%; }
  .cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .h-big { font-size: 30px; }
  .h-page { font-size: 26px; }
  .halo.h1 { width: 520px; height: 520px; }
  .halo.h2 { width: 420px; height: 420px; }

  /* les feuilles deviennent des fenêtres centrées */
  .sheet-back { align-items: center; padding: 24px; }
  .sheet { border-radius: 26px; max-width: 480px; padding: 28px; }
  .sheet::before { display: none; }

  .btn:hover, .chip:hover, .iconbtn:hover { filter: brightness(1.06); }
  .toast { bottom: 40px; }
}

@media (min-width: 1024px) {
  /* la barre du bas devient un menu à gauche */
  body:has(.tabbar) { padding-left: 240px; }
  .tabbar {
    top: 0; bottom: 0; right: auto; width: 240px; padding: 28px 16px;
    flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 6px;
    -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  }
  .tabbar-inner { flex-direction: column; justify-content: flex-start; gap: 6px; max-width: none; }
  .tabbar a {
    flex-direction: row; justify-content: flex-start; gap: 14px; height: 48px; padding: 0 16px;
    border-radius: 16px; font-size: 14px; min-width: 0;
  }
  .tabbar a:hover { background: var(--glass-strong); }
  .tabbar a[aria-current="page"] { background: var(--glass); box-shadow: var(--shadow); }
  .side-brand { display: flex; align-items: center; gap: 12px; padding: 4px 16px 24px; }
  .side-brand span { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 18px; color: var(--tx); letter-spacing: -.01em; }
  .wrap.wide { max-width: 1040px; }
  .wrap.wide .brand-inline { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toast { left: calc(50% + 120px); }
}

@media (min-width: 1400px) {
  .wrap.wide { max-width: 1180px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ========================================================================
   Version 3 : tableau de bord, bannières, graphiques, annonces
   ======================================================================== */
.avatar.img, .avatar img { object-fit: cover; }
.avatar img { width: 100%; height: 100%; border-radius: inherit; display: block; }
.avatar.lg { width: 84px; height: 84px; border-radius: 42px; font-size: 28px; }
.avatar.sm { width: 26px; height: 26px; border-radius: 13px; font-size: 10px; }
.avatar { overflow: hidden; }

/* Carte de statistiques */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.kpi .v { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.kpi .l { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--eyebrow); text-transform: uppercase; }
.kpi .s { font-size: 12px; color: var(--mut); }
@media (min-width: 768px) { .kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Anneau de progression */
.ring { position: relative; width: 112px; height: 112px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .track { stroke: var(--ring-track); }
.ring .val { stroke: var(--eyebrow); stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.ring .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 24px; line-height: 1; }
.ring .num small { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 10px; color: var(--mut); margin-top: 4px; letter-spacing: .08em; }

/* Mini-graphiques */
.chart { width: 100%; max-width: 520px; height: auto; display: block; }
.chart .bar-fill { fill: var(--eyebrow); }
.chart .bar-bg { fill: var(--ring-track); }
.chart text { fill: var(--mut); font-family: 'Montserrat', sans-serif; font-size: 10px; }
.hbar { display: flex; flex-direction: column; gap: 6px; }
.hbar .top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.hbar .top b { font-weight: 700; }

/* Carrousel de formations (on glisse vers la droite) */
.carousel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 20px 10px; margin: 0 -20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > .fcard { scroll-snap-align: start; flex: 0 0 min(300px, 82%); }
@media (min-width: 768px) { .carousel { margin: 0 -32px; padding: 2px 32px 10px; } .carousel > .fcard { flex-basis: 320px; } }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; } }

.fcard { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.banner { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #402F69, #754E91 60%, #CC9EE2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.banner img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner .logo-top, .banner .logo-base { fill: rgba(242, 242, 242, .75); }
.banner .pill { position: absolute; top: 10px; left: 10px; z-index: 1; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20, 12, 36, .35)); pointer-events: none; }
.fcard .ttl2 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 16px; line-height: 1.25; }
.teacher { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--mut); }

/* Interrupteur de thème */
.seg { display: flex; gap: 6px; background: var(--glass-strong); padding: 4px; border-radius: 16px; }
.seg button { flex: 1; height: 40px; border: 0; border-radius: 12px; background: transparent; color: var(--tx); font-weight: 600; font-size: 13px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--chip-on-bg); color: var(--chip-on-tx); font-weight: 700; }

/* Annonces */
.ann.live .band { background: var(--primary); }
.ann.live .band .pill { background: var(--primary-tx); color: var(--primary); }
.ann.live .band .meta { color: var(--primary-tx); opacity: .85; }
.ann .msg-text { white-space: pre-wrap; font-size: 13.5px; line-height: 1.65; color: var(--mut); }
.ann .ttl3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px; font-weight: 700; line-height: 1.3; }
.dot { width: 9px; height: 9px; border-radius: 5px; background: var(--eyebrow); flex: none; }
.notif-badge { position: absolute; top: 2px; right: 8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--primary); color: var(--primary-tx); font-size: 9px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.tabbar a { position: relative; }
@media (min-width: 1024px) { .notif-badge { position: static; margin-left: auto; } }

.livebar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.livebar .x { background: transparent; border: 0; color: var(--mut); width: 36px; height: 36px; cursor: pointer; flex: none; border-radius: 12px; }

.divider { height: 1px; background: var(--glass-strong); border: 0; margin: 4px 0; }
.upload { position: relative; display: inline-flex; }
.upload input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.thumb { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: var(--input-bg) center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--mut); font-size: 12px; }
textarea.area { width: 100%; min-height: 96px; border: 0; outline: 0; background: transparent; color: var(--tx); font-size: 16px; padding: 14px 0; resize: vertical; }
.field.top { align-items: flex-start; }
.hint { font-size: 12px; color: var(--mut); }
.checkrow { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.checkrow input { width: 20px; height: 20px; accent-color: var(--primary); }
