/* App AESNA : couleurs du logo (vert, bleu, jaune, vanille), clair et sombre. */

:root {
  --gouttiere: 24px;
  --vert: #4e9030;
  --bleu: #2f95d6;
  --bleu-vif: #52a9e1;
  --jaune: #f8cf00;
  --vanille: #f3cd5d;
  --brun: #6b4a2b;
  --degrade: linear-gradient(120deg, #4e9030 0%, #52a9e1 52%, #f8cf00 100%);
  --degrade-doux: linear-gradient(135deg, rgb(78 144 48 / 0.14), rgb(82 169 225 / 0.14) 50%, rgb(248 207 0 / 0.18));

  --fond: #f6f4ee;
  --surface: #ffffff;
  --surface-2: #f2efe7;
  --surface-3: #e9e5da;
  --bord: #e6e1d5;
  --texte: #15181d;
  --texte-2: #555c68;
  --texte-3: #8a909a;
  --accent: #2f95d6;
  --accent-fort: #1f7fbf;
  --accent-texte: #ffffff;
  --accent-doux: #e2f0fa;
  --vert-doux: #e5f1df;
  --jaune-doux: #fdf3c4;
  --succes: #3e8e2c;
  --danger: #cf3f3f;
  --danger-doux: #fbe7e7;
  --voile: rgb(15 18 24 / 0.42);
  --ombre-1: 0 1px 2px rgb(21 24 29 / 0.06), 0 1px 1px rgb(21 24 29 / 0.04);
  --ombre-2: 0 10px 28px -12px rgb(21 24 29 / 0.18), 0 2px 6px rgb(21 24 29 / 0.05);
  --ombre-3: 0 28px 70px -18px rgb(21 24 29 / 0.35);
  --rayon: 20px;
  --rayon-m: 14px;
  --rayon-s: 10px;
  --police: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cote-l: 260px;
  --nav-h: 66px;
  --doux: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}

@media (max-width: 900px) {
  :root {
    --gouttiere: 16px;
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #0e1116;
    --surface: #161a21;
    --surface-2: #1c212a;
    --surface-3: #262c37;
    --bord: #2a313c;
    --texte: #eef1f5;
    --texte-2: #a9b1bd;
    --texte-3: #7c8595;
    --accent: #5bb3ea;
    --accent-fort: #7cc4f0;
    --accent-texte: #08121b;
    --accent-doux: #14304a;
    --vert-doux: #1d2f17;
    --jaune-doux: #3a3111;
    --danger: #f06b6b;
    --danger-doux: #3d1b1d;
    --voile: rgb(0 0 0 / 0.6);
    --ombre-1: 0 1px 2px rgb(0 0 0 / 0.4);
    --ombre-2: 0 12px 30px -12px rgb(0 0 0 / 0.6), 0 2px 6px rgb(0 0 0 / 0.3);
    --ombre-3: 0 30px 80px -20px rgb(0 0 0 / 0.8);
    --degrade-doux: linear-gradient(135deg, rgb(78 144 48 / 0.22), rgb(82 169 225 / 0.2) 50%, rgb(248 207 0 / 0.16));
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --fond: #0e1116;
  --surface: #161a21;
  --surface-2: #1c212a;
  --surface-3: #262c37;
  --bord: #2a313c;
  --texte: #eef1f5;
  --texte-2: #a9b1bd;
  --texte-3: #7c8595;
  --accent: #5bb3ea;
  --accent-fort: #7cc4f0;
  --accent-texte: #08121b;
  --accent-doux: #14304a;
  --vert-doux: #1d2f17;
  --jaune-doux: #3a3111;
  --danger: #f06b6b;
  --danger-doux: #3d1b1d;
  --voile: rgb(0 0 0 / 0.6);
  --ombre-1: 0 1px 2px rgb(0 0 0 / 0.4);
  --ombre-2: 0 12px 30px -12px rgb(0 0 0 / 0.6), 0 2px 6px rgb(0 0 0 / 0.3);
  --ombre-3: 0 30px 80px -20px rgb(0 0 0 / 0.8);
  --degrade-doux: linear-gradient(135deg, rgb(78 144 48 / 0.22), rgb(82 169 225 / 0.2) 50%, rgb(248 207 0 / 0.16));
  color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--fond);
  color: var(--texte);
  font: 500 15px/1.55 var(--police);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
}
h2 {
  font-size: 19px;
  font-weight: 750;
}
h3 {
  font-size: 15px;
  font-weight: 700;
}
p {
  margin: 0;
}
a {
  color: var(--accent);
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent);
  outline-offset: 2px;
  border-radius: 8px;
}
::selection {
  background: color-mix(in srgb, var(--accent) 30%, transparent);
}

/* ---------- Coquille ---------- */
.app {
  display: grid;
  grid-template-columns: var(--cote-l) 1fr;
  min-height: 100dvh;
}
.cote {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 14px;
  border-right: 1px solid var(--bord);
  background: color-mix(in srgb, var(--surface) 70%, var(--fond));
}
.marque {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 16px;
  color: var(--texte);
}
.marque img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--ombre-1);
}
.marque b {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.marque small {
  display: block;
  color: var(--texte-3);
  font-size: 12px;
  font-weight: 600;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lien-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--texte-2);
  font-weight: 650;
  transition: background 0.2s, color 0.2s;
}
.lien-nav:hover {
  background: var(--surface-2);
  color: var(--texte);
}
.lien-nav.actif {
  background: var(--accent-doux);
  color: var(--accent-fort);
}
.lien-nav.actif::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--degrade);
}
.lien-nav .compte {
  margin-left: auto;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--jaune);
  color: #2b2300;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.nav-titre {
  margin: 14px 12px 4px;
  color: var(--texte-3);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cote-pied {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.carte-utilisateur {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--bord);
}
.carte-utilisateur .infos {
  min-width: 0;
  flex: 1;
}
.carte-utilisateur b,
.carte-utilisateur small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.carte-utilisateur small {
  color: var(--texte-3);
  font-size: 12px;
}

.principal {
  min-width: 0;
}
.barre {
  display: none;
}
.contenu {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px var(--gouttiere) 48px;
}
.vue {
  animation: apparition 0.45s var(--doux);
}
.nav-bas {
  display: none;
}

@media (max-width: 900px) {
  .app {
    display: block;
  }
  .cote {
    display: none;
  }
  .barre {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 60px;
    padding: 0 var(--gouttiere);
    padding-top: env(safe-area-inset-top);
    background: color-mix(in srgb, var(--fond) 82%, transparent);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid color-mix(in srgb, var(--bord) 70%, transparent);
  }
  .barre .marque {
    padding: 0;
    flex: 1;
    min-width: 0;
  }
  .barre .marque img {
    width: 36px;
    height: 36px;
  }
  .barre .marque b {
    font-size: 15px;
  }
  .contenu {
    padding: 18px var(--gouttiere) calc(var(--nav-h) + 28px + env(safe-area-inset-bottom));
  }
  .nav-bas {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: calc(var(--nav-h) + env(safe-area-inset-bottom));
    padding: 6px var(--gouttiere) env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-top: 1px solid var(--bord);
  }
  .lien-bas {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 14px;
    color: var(--texte-3);
    font-size: 11px;
    font-weight: 700;
  }
  .lien-bas .ic {
    display: grid;
    place-items: center;
    width: 46px;
    height: 28px;
    border-radius: 999px;
    transition: background 0.25s var(--doux), color 0.25s;
  }
  .lien-bas.actif {
    color: var(--texte);
  }
  .lien-bas.actif .ic {
    background: var(--accent-doux);
    color: var(--accent-fort);
  }
}

/* ---------- En-têtes de page ---------- */
.entete-page {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin-bottom: 22px;
}
.entete-page .titres {
  flex: 1 1 260px;
  min-width: 0;
}
.entete-page .surtitre {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: var(--texte-3);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sous-titre {
  margin-top: 6px;
  color: var(--texte-2);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--texte);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: transform 0.15s var(--doux), background 0.2s, box-shadow 0.2s, border-color 0.2s, opacity 0.2s;
}
.bouton:hover {
  background: var(--surface-3);
}
.bouton:active {
  transform: scale(0.97);
}
.bouton[disabled] {
  opacity: 0.5;
  pointer-events: none;
}
.bouton.primaire {
  background: var(--accent);
  color: var(--accent-texte);
  box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--accent) 80%, transparent);
}
.bouton.primaire:hover {
  background: var(--accent-fort);
}
.bouton.marque-btn {
  background: var(--degrade);
  color: #fff;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
  box-shadow: 0 10px 22px -12px rgb(47 149 214 / 0.9);
}
.bouton.contour {
  background: transparent;
  border-color: var(--bord);
}
.bouton.contour:hover {
  background: var(--surface-2);
}
.bouton.fantome {
  background: transparent;
}
.bouton.fantome:hover {
  background: var(--surface-2);
}
.bouton.danger {
  background: var(--danger-doux);
  color: var(--danger);
}
.bouton.petit {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}
.bouton.plein {
  width: 100%;
}
.bouton.rond {
  width: 42px;
  min-width: 42px;
  padding: 0;
}
.bouton.rond.petit {
  width: 34px;
  min-width: 34px;
}
.bouton .ic-svg {
  flex: none;
}

/* Actions rapides (appel, WhatsApp, SMS) */
.rapides {
  display: flex;
  gap: 6px;
}
.rapide {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--bord);
  background: var(--surface);
  color: var(--texte-2);
  transition: transform 0.15s var(--doux), background 0.2s, color 0.2s, border-color 0.2s;
}
.rapide:hover {
  transform: translateY(-2px);
}
.rapide.appel:hover {
  background: var(--accent-doux);
  color: var(--accent-fort);
  border-color: transparent;
}
.rapide.wa:hover {
  background: #dcf8e6;
  color: #128c4a;
  border-color: transparent;
}
.rapide.sms:hover {
  background: var(--jaune-doux);
  color: #8a6d00;
  border-color: transparent;
}
:root[data-theme="dark"] .rapide.wa:hover {
  background: #123222;
  color: #5ee08f;
}

/* ---------- Cartes ---------- */
.carte {
  position: relative;
  padding: 20px;
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  background: var(--surface);
  box-shadow: var(--ombre-1);
}
.carte.cliquable {
  transition: transform 0.2s var(--doux), box-shadow 0.2s;
}
.carte.cliquable:hover {
  transform: translateY(-3px);
  box-shadow: var(--ombre-2);
}
.carte-entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.carte-entete h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.carte-entete .lien {
  font-size: 13px;
  font-weight: 700;
}
.grille {
  display: grid;
  gap: 16px;
}
.grille.d2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}
.grille.d3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.grille.kpis {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
}
.pile {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- Accueil ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 26px;
  background: var(--degrade);
  color: #fff;
  box-shadow: 0 30px 60px -32px rgb(47 149 214 / 0.8);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 240px at 85% 0%, rgb(255 255 255 / 0.28), transparent 60%), radial-gradient(400px 200px at 0% 100%, rgb(0 0 0 / 0.16), transparent 60%);
}
.hero > * {
  position: relative;
}
.hero .vanille {
  position: absolute;
  right: -18px;
  bottom: -26px;
  width: 190px;
  opacity: 0.95;
  filter: drop-shadow(0 10px 18px rgb(0 0 0 / 0.25));
  transform: rotate(-8deg);
  pointer-events: none;
}
.hero .date {
  font-weight: 700;
  opacity: 0.92;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
}
.hero h1 {
  margin: 6px 0 8px;
  font-size: clamp(26px, 4vw, 38px);
  text-shadow: 0 2px 10px rgb(0 0 0 / 0.18);
}
.hero p {
  max-width: 520px;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
}
.hero .actions {
  margin-top: 20px;
}
.hero .bouton {
  background: rgb(255 255 255 / 0.95);
  color: #15181d;
}
.hero .bouton.verre {
  background: rgb(255 255 255 / 0.18);
  color: #fff;
  border-color: rgb(255 255 255 / 0.4);
  backdrop-filter: blur(6px);
}
@media (max-width: 600px) {
  .hero {
    padding: 22px 20px;
    border-radius: 22px;
  }
  .hero .vanille {
    width: 130px;
    right: -22px;
    bottom: -24px;
    opacity: 0.85;
  }
}

.kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
}
.kpi .ic-kpi {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--accent-doux);
  color: var(--accent-fort);
}
.kpi.vert .ic-kpi {
  background: var(--vert-doux);
  color: var(--vert);
}
.kpi.jaune .ic-kpi {
  background: var(--jaune-doux);
  color: #9a7a00;
}
.kpi.brun .ic-kpi {
  background: color-mix(in srgb, var(--brun) 16%, transparent);
  color: var(--brun);
}
:root[data-theme="dark"] .kpi.brun .ic-kpi {
  color: #d5a77c;
}
.kpi-valeur {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.kpi-libelle {
  color: var(--texte-2);
  font-size: 13px;
  font-weight: 650;
}

/* Anniversaires */
.anniv-jour {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.anniv-carte {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 260px;
  padding: 14px;
  border-radius: 18px;
  background: var(--degrade-doux);
  border: 1px solid color-mix(in srgb, var(--vanille) 50%, var(--bord));
}
.anniv-carte .infos {
  flex: 1;
  min-width: 0;
}
.anniv-carte b {
  display: block;
  font-size: 15px;
}
.anniv-carte small {
  color: var(--texte-2);
  font-weight: 600;
}
.liste-anniv {
  display: flex;
  flex-direction: column;
}
.ligne-anniv {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bord);
}
.ligne-anniv:last-child {
  border-bottom: 0;
}
.ligne-anniv .quand {
  display: grid;
  place-items: center;
  width: 50px;
  min-width: 50px;
  height: 54px;
  border-radius: 14px;
  background: var(--surface-2);
  line-height: 1;
}
.ligne-anniv .quand b {
  font-size: 19px;
  font-weight: 800;
}
.ligne-anniv .quand small {
  color: var(--texte-3);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}
.ligne-anniv .infos {
  flex: 1;
  min-width: 0;
}
.ligne-anniv .infos b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ligne-anniv .infos small {
  color: var(--texte-2);
  font-size: 13px;
}
.ligne-anniv.aujourdhui .quand {
  background: var(--degrade);
  color: #fff;
}
.ligne-anniv.aujourdhui .quand small {
  color: rgb(255 255 255 / 0.9);
}
.mois-ruban {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  align-items: end;
  height: 120px;
  padding-top: 8px;
}
.mois-ruban button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--texte-3);
  font-size: 11px;
  font-weight: 750;
}
.mois-ruban .barre-mois {
  width: 100%;
  max-width: 34px;
  min-height: 4px;
  border-radius: 8px 8px 4px 4px;
  background: color-mix(in srgb, var(--accent) 32%, var(--surface-2));
  transition: background 0.2s, transform 0.2s var(--doux);
}
.mois-ruban button:hover .barre-mois {
  transform: scaleY(1.04);
}
.mois-ruban button.actif {
  color: var(--texte);
}
.mois-ruban button.actif .barre-mois {
  background: var(--degrade);
}

/* ---------- Avatars et badges ---------- */
.avatar {
  --t: 44px;
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: var(--t);
  height: var(--t);
  border-radius: 50%;
  overflow: hidden;
  background: var(--c, var(--surface-3));
  color: #fff;
  font-size: calc(var(--t) * 0.36);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface-2);
}
.avatar.xs {
  --t: 32px;
}
.avatar.s {
  --t: 40px;
}
.avatar.l {
  --t: 64px;
}
.avatar.xl {
  --t: 112px;
}
.anneau {
  display: inline-grid;
  padding: 3px;
  border-radius: 50%;
  background: var(--degrade);
  flex: none;
}
.anneau .avatar {
  border: 3px solid var(--surface);
}
.empile {
  display: flex;
}
.empile .avatar {
  margin-left: -10px;
  border: 2px solid var(--surface);
}
.empile .avatar:first-child {
  margin-left: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--texte-2);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge.promo {
  background: color-mix(in srgb, var(--c) 16%, transparent);
  color: color-mix(in srgb, var(--c) 78%, var(--texte));
}
.badge.promo::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
  flex: none;
}
.badge.bureau {
  background: var(--accent-doux);
  color: var(--accent-fort);
}
.badge.novice {
  background: var(--jaune-doux);
  color: #8a6d00;
}
:root[data-theme="dark"] .badge.novice {
  color: #f4d35e;
}
.badge.doyen {
  background: var(--vert-doux);
  color: var(--vert);
}
:root[data-theme="dark"] .badge.doyen {
  color: #8fd06c;
}
.badge.danger {
  background: var(--danger-doux);
  color: var(--danger);
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---------- Champs ---------- */
.champ {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.champ > span,
.champ > label {
  color: var(--texte-2);
  font-size: 13px;
  font-weight: 700;
}
.saisie {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--bord);
  border-radius: 14px;
  background: var(--surface);
  color: var(--texte);
  font-weight: 550;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.saisie:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
textarea.saisie {
  min-height: 140px;
  resize: vertical;
  line-height: 1.55;
}
select.saisie {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a909a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.aide {
  color: var(--texte-3);
  font-size: 12.5px;
  font-weight: 550;
}
.recherche {
  position: relative;
  flex: 1 1 260px;
}
.recherche .ic-svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--texte-3);
  pointer-events: none;
}
.recherche .saisie {
  padding-left: 42px;
  border-radius: 999px;
}
.recherche kbd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 2px 7px;
  border: 1px solid var(--bord);
  border-radius: 7px;
  color: var(--texte-3);
  font: 700 11px var(--police);
}
@media (max-width: 900px) {
  .recherche kbd {
    display: none;
  }
}
.formulaire {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ligne-champs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 12px;
}

/* Puces (filtres) */
.puces {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  margin: 0 -2px;
  scrollbar-width: none;
}
.puces::-webkit-scrollbar {
  display: none;
}
.puces.enveloppe {
  flex-wrap: wrap;
  overflow: visible;
}
.puce {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--bord);
  border-radius: 999px;
  background: var(--surface);
  color: var(--texte-2);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.puce:hover {
  border-color: var(--texte-3);
  color: var(--texte);
}
.puce.active {
  background: var(--texte);
  border-color: var(--texte);
  color: var(--fond);
}
.puce .n {
  opacity: 0.6;
  font-weight: 800;
}
select.puce {
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a909a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
select.puce.active {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a909a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.segmente {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  gap: 2px;
}
.segmente button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--texte-2);
  font-size: 13px;
  font-weight: 700;
}
.segmente button.actif {
  background: var(--surface);
  color: var(--texte);
  box-shadow: var(--ombre-1);
}

/* ---------- Annuaire ---------- */
.barre-outils {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.resume {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 14px;
  color: var(--texte-2);
  font-size: 13.5px;
  font-weight: 650;
}
.grille-membres {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 16px;
}
.carte-membre {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  background: var(--surface);
  box-shadow: var(--ombre-1);
  text-align: left;
  padding: 0;
  transition: transform 0.25s var(--doux), box-shadow 0.25s;
  animation: apparition 0.5s var(--doux) both;
  animation-delay: var(--d, 0ms);
}
.carte-membre:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-2);
}
.carte-membre .photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
}
.carte-membre .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carte-membre .photo .initiales {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--c);
  color: #fff;
  font-size: 46px;
  font-weight: 800;
}
.carte-membre .photo .badges {
  position: absolute;
  left: 10px;
  top: 10px;
}
.carte-membre .photo .badge {
  background: rgb(255 255 255 / 0.92);
  color: #15181d;
  backdrop-filter: blur(6px);
}
.carte-membre .corps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
  min-width: 0;
}
.carte-membre .nom {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}
.carte-membre .nom small {
  display: block;
  color: var(--texte-2);
  font-size: 13px;
  font-weight: 650;
}
.carte-membre .meta {
  color: var(--texte-3);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.carte-membre .rapides {
  margin-top: 4px;
}
.case-choix {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgb(0 0 0 / 0.25);
  color: transparent;
  backdrop-filter: blur(4px);
}
.choisi .case-choix {
  background: var(--accent);
  color: #fff;
}
.carte-membre.choisi {
  outline: 3px solid var(--accent);
  outline-offset: -1px;
}

.liste-membres {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  background: var(--surface);
  overflow: hidden;
}
.ligne-membre {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--bord);
  background: transparent;
  text-align: left;
  width: 100%;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  transition: background 0.15s;
}
.ligne-membre:last-child {
  border-bottom: 0;
}
.ligne-membre:hover {
  background: var(--surface-2);
}
.ligne-membre .infos {
  flex: 1;
  min-width: 0;
}
.ligne-membre .infos b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ligne-membre .infos small {
  display: block;
  color: var(--texte-2);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ligne-membre.choisi {
  background: var(--accent-doux);
}
.ligne-membre .case-choix {
  position: static;
  border-color: var(--bord);
  background: var(--surface);
}
.ligne-membre.choisi .case-choix {
  background: var(--accent);
  border-color: var(--accent);
}
@media (max-width: 600px) {
  .ligne-membre .rapides .rapide:not(.appel):not(.wa) {
    display: none;
  }
}

.selection {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 2 * var(--gouttiere));
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: var(--texte);
  color: var(--fond);
  box-shadow: var(--ombre-3);
  transform: translateX(-50%);
  animation: monte 0.35s var(--doux);
}
.selection b {
  white-space: nowrap;
}
.selection .bouton {
  background: rgb(255 255 255 / 0.12);
  color: inherit;
}
.selection .bouton.primaire {
  background: var(--accent);
  color: var(--accent-texte);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .selection .bouton {
    background: rgb(0 0 0 / 0.08);
  }
}
@media (max-width: 900px) {
  .selection {
    bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom));
    padding-left: 14px;
  }
  .selection .texte-long {
    display: none;
  }
}

/* ---------- Fiche (panneau latéral / feuille) ---------- */
.voile {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--voile);
  backdrop-filter: blur(3px);
  animation: fondu 0.25s ease;
}
.feuille {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 51;
  display: flex;
  flex-direction: column;
  width: min(460px, 100%);
  background: var(--surface);
  box-shadow: var(--ombre-3);
  animation: glisse 0.4s var(--doux);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.feuille .fermer {
  position: absolute;
  top: 14px;
  right: var(--gouttiere);
  z-index: 3;
  background: rgb(255 255 255 / 0.9);
  color: #15181d;
  backdrop-filter: blur(8px);
}
@media (max-width: 900px) {
  .feuille {
    top: auto;
    left: 0;
    width: 100%;
    max-height: 92dvh;
    border-radius: 26px 26px 0 0;
    animation: monte 0.4s var(--doux);
  }
  .feuille::before {
    content: "";
    position: sticky;
    top: 8px;
    z-index: 4;
    align-self: center;
    flex: none;
    width: 42px;
    height: 5px;
    margin-bottom: -5px;
    border-radius: 9px;
    background: rgb(255 255 255 / 0.85);
  }
}
.fiche-photo {
  position: relative;
  aspect-ratio: 5 / 4;
  background: var(--surface-2);
  flex: none;
}
.fiche-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fiche-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgb(0 0 0 / 0.65));
}
.fiche-photo .titre {
  position: absolute;
  left: var(--gouttiere);
  right: var(--gouttiere);
  bottom: 18px;
  z-index: 2;
  color: #fff;
}
.fiche-photo .titre h2 {
  font-size: 24px;
  font-weight: 800;
  text-shadow: 0 2px 12px rgb(0 0 0 / 0.4);
}
.fiche-photo .titre p {
  font-weight: 650;
  opacity: 0.92;
}
.fiche-corps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px var(--gouttiere) 28px;
}
.infos-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.info {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  min-width: 0;
}
.info small {
  display: block;
  color: var(--texte-3);
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.info b {
  display: block;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.info.large {
  grid-column: 1 / -1;
}
.contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--bord);
  border-radius: 14px;
}
.contact .num {
  flex: 1;
  min-width: 0;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Modales et notifications ---------- */
.modale {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 51;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(520px, calc(100% - 2 * var(--gouttiere)));
  max-height: calc(100dvh - 48px);
  padding: 22px var(--gouttiere);
  overflow-y: auto;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--ombre-3);
  transform: translate(-50%, -50%);
  animation: pop 0.3s var(--doux);
}
.modale.large {
  width: min(760px, calc(100% - 2 * var(--gouttiere)));
}
.modale-entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.modale-pied {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.toasts {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: calc(100% - 2 * var(--gouttiere));
  max-width: 460px;
  transform: translateX(-50%);
  pointer-events: none;
}
@media (max-width: 900px) {
  .toasts {
    bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));
  }
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--texte);
  color: var(--fond);
  font-weight: 650;
  box-shadow: var(--ombre-3);
  animation: monte 0.35s var(--doux);
  pointer-events: auto;
}
.toast.erreur .ic-svg {
  color: #ff8a8a;
}
.toast.succes .ic-svg {
  color: #7fd65a;
}
.toast.sortie {
  opacity: 0;
  transform: translateY(8px);
  transition: 0.3s;
}

/* ---------- États ---------- */
.squelette {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface-2);
}
.squelette::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent);
  animation: brille 1.4s infinite;
}
.vide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 20px;
  color: var(--texte-2);
  text-align: center;
}
.vide .ic-vide {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--degrade-doux);
  color: var(--accent);
}
.vide h3 {
  color: var(--texte);
  font-size: 17px;
}
.erreur-bloc {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--danger-doux);
  color: var(--danger);
  font-weight: 650;
}
.note {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--accent-doux);
  color: var(--texte);
  font-size: 13.5px;
}
.note .ic-svg {
  flex: none;
  color: var(--accent-fort);
  margin-top: 2px;
}
.note.jaune {
  background: var(--jaune-doux);
}
.note.jaune .ic-svg {
  color: #9a7a00;
}

/* ---------- Studio ---------- */
.studio {
  display: grid;
  grid-template-columns: minmax(300px, 400px) 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 1000px) {
  .studio {
    grid-template-columns: 1fr;
  }
  .studio .zone-apercu {
    order: -1;
  }
}
.modeles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.modele {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--bord);
  border-radius: 16px;
  background: var(--surface);
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--doux);
}
.modele .pastille {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--g, var(--degrade));
  color: #fff;
}
.modele:hover {
  transform: translateY(-2px);
}
.modele.actif {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.zone-apercu {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.apercu {
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: var(--rayon);
  background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 22px 22px;
  border: 1px solid var(--bord);
}
.apercu canvas {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(70vh, 640px);
  border-radius: 12px;
  box-shadow: var(--ombre-2);
}
@media (max-width: 1000px) {
  .zone-apercu {
    position: static;
  }
  .apercu canvas {
    max-height: 58vh;
  }
}
.choix-membres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.choix-membres .puce {
  padding-left: 4px;
}
.resultats-recherche {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--bord);
  border-radius: 14px;
}
.resultats-recherche .ligne-membre {
  padding: 8px 12px;
}

/* ---------- Annonces ---------- */
.compteur {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  color: var(--texte-3);
  font-size: 12.5px;
  font-weight: 650;
}
.compteur b {
  color: var(--texte);
}
.compteur .alerte {
  color: #9a7a00;
}
.cibles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.canal {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--bord);
  border-radius: 16px;
  background: var(--surface);
}
.canal .logo-canal {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
}
.canal .infos {
  flex: 1;
  min-width: 0;
}
.canal .infos small {
  display: block;
  color: var(--texte-2);
  font-size: 12.5px;
}
.canaux {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------- Statistiques ---------- */
.graph-barres {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.barre-graph {
  display: grid;
  grid-template-columns: minmax(90px, 34%) 1fr 34px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 650;
}
.barre-graph .lib {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--texte-2);
}
.barre-graph .piste {
  height: 12px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.barre-graph .piste,
.barre-graph .remplie {
  display: block;
}
.barre-graph .remplie {
  height: 100%;
  border-radius: 999px;
  background: var(--c, var(--accent));
  transform-origin: left;
  animation: pousse 0.9s var(--doux) both;
}
.barre-graph .val {
  text-align: right;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.donut {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.donut svg {
  width: 150px;
  height: 150px;
  flex: none;
}
.legende {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 650;
}
.legende span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legende i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--c);
}

/* ---------- Accès ---------- */
.ligne-acces {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--bord);
}
.ligne-acces:last-child {
  border-bottom: 0;
}
.ligne-acces .infos {
  flex: 1 1 200px;
  min-width: 0;
}
.ligne-acces .infos b,
.ligne-acces .infos small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ligne-acces .infos small {
  color: var(--texte-2);
  font-size: 12.5px;
}

/* ---------- Connexion ---------- */
.connexion {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100dvh;
}
.connexion .panneau-marque {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 40px;
  background: var(--degrade);
  color: #fff;
}
.connexion .panneau-marque::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 400px at 80% 10%, rgb(255 255 255 / 0.3), transparent 60%), radial-gradient(500px 300px at 10% 100%, rgb(0 0 0 / 0.2), transparent 60%);
}
.connexion .panneau-marque > * {
  position: relative;
}
.connexion .logo-rond {
  width: min(300px, 60%);
  aspect-ratio: 1;
  padding: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.4);
  animation: flotte 6s ease-in-out infinite;
}
.connexion .panneau-marque h1 {
  max-width: 520px;
  font-size: clamp(28px, 3.4vw, 44px);
  text-shadow: 0 2px 14px rgb(0 0 0 / 0.2);
}
.connexion .panneau-marque p {
  max-width: 460px;
  margin-top: 12px;
  font-size: 16px;
  opacity: 0.95;
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.2);
}
.connexion .vanille-deco {
  position: absolute;
  width: 220px;
  right: -30px;
  bottom: -30px;
  transform: rotate(-12deg);
  filter: drop-shadow(0 14px 22px rgb(0 0 0 / 0.3));
}
.connexion .zone-formulaire {
  display: grid;
  place-items: center;
  padding: 32px var(--gouttiere);
}
.boite-connexion {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(420px, 100%);
  animation: apparition 0.5s var(--doux);
}
.boite-connexion .logo-mobile {
  display: none;
}
.bouton-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  border: 1px solid var(--bord);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 700;
  box-shadow: var(--ombre-1);
  transition: box-shadow 0.2s, transform 0.15s var(--doux);
}
.bouton-google:hover {
  box-shadow: var(--ombre-2);
}
.bouton-google:active {
  transform: scale(0.98);
}
.separateur {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--texte-3);
  font-size: 12.5px;
  font-weight: 700;
}
.separateur::before,
.separateur::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--bord);
}
.saisie.code {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.5em;
  text-align: center;
  padding-left: calc(14px + 0.5em);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) {
  .connexion {
    grid-template-columns: 1fr;
  }
  .connexion .panneau-marque {
    display: none;
  }
  .connexion .zone-formulaire {
    align-items: start;
    padding-top: max(40px, env(safe-area-inset-top));
    background: radial-gradient(500px 260px at 50% -40px, rgb(82 169 225 / 0.25), transparent 70%), radial-gradient(300px 200px at 0% 0%, rgb(78 144 48 / 0.18), transparent 70%), radial-gradient(300px 200px at 100% 10%, rgb(248 207 0 / 0.2), transparent 70%);
  }
  .boite-connexion .logo-mobile {
    display: block;
    width: 120px;
    height: 120px;
    margin: 0 auto 4px;
    border-radius: 50%;
    background: #fff;
    padding: 6px;
    box-shadow: var(--ombre-2);
  }
  .boite-connexion h1,
  .boite-connexion .sous-titre {
    text-align: center;
  }
}

/* ---------- Palette de recherche (Ctrl+K) ---------- */
.palette {
  top: 12vh;
  transform: translateX(-50%);
  padding: 0;
  gap: 0;
  overflow: hidden;
}
.palette .recherche {
  flex: none;
  padding: 14px;
  border-bottom: 1px solid var(--bord);
}
.palette .recherche .ic-svg {
  left: 28px;
}
.palette .resultats {
  max-height: 50vh;
  overflow-y: auto;
  padding: 6px;
}
.palette .ligne-membre {
  border: 0;
  border-radius: 12px;
}
.palette .ligne-membre.survol {
  background: var(--accent-doux);
}

@media (max-width: 600px) {
  .masque-mobile {
    display: none;
  }
}

/* ---------- Animations ---------- */
@keyframes apparition {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fondu {
  from {
    opacity: 0;
  }
}
@keyframes glisse {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
}
@keyframes monte {
  from {
    transform: translate(var(--tx, 0), 30px);
    opacity: 0;
  }
}
.selection {
  --tx: -50%;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.96);
  }
}
.palette {
  animation-name: pop-haut;
}
@keyframes pop-haut {
  from {
    opacity: 0;
    transform: translate(-50%, 8px) scale(0.98);
  }
}
@keyframes brille {
  to {
    transform: translateX(100%);
  }
}
@keyframes pousse {
  from {
    transform: scaleX(0);
  }
}
@keyframes flotte {
  50% {
    transform: translateY(-10px) rotate(-1deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
