:root {
  --bg: #046bd2;
  --bg-soft: #faf7f3;
  --surface: #ffffff;
  --ink: #1a1410;
  --ink-soft: #6b5d52;
  --ink-mute: #a89e94;
  --accent: #d4456b;
  --accent-soft: #fce8ee;
  --accent-deep: #8a2342;
  --gold: #c9a96e;
  --gold-soft: #f6ecd9;
  --success: #2d8a5f;
  --success-soft: #dff4ea;
  --border: rgba(26, 20, 16, 0.08);
  --border-strong: rgba(26, 20, 16, 0.18);
  --radius: 14px;
  --shadow-soft: 0 2px 8px rgba(26, 20, 16, 0.04);
  --shadow-pop: 0 12px 32px rgba(26, 20, 16, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ====================================================
   HEADER WRAPPER
   ==================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.topbar {
  padding: clamp(8px, 1.2vw, 12px) clamp(14px, 3vw, 32px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(12px, 2.5vw, 32px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(212, 69, 107, 0.3);
}

.logo-img {
  height: clamp(52px, 6.5vw, 84px);
  width: auto;
  display: block;
  border-radius: 8px;
}

/* Search */
.search-wrap {
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

.search-input {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 16px 11px 42px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}

.search-input::placeholder { color: var(--ink-mute); }

.search-input:focus {
  border-color: var(--accent);
  background: var(--surface);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-mute);
  font-size: 16px;
  pointer-events: none;
}

.search-shortcut {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  color: var(--ink-mute);
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
}

/* Right cluster */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.roses-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  background: var(--gold-soft);
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: #8a6a2e;
  transition: transform 0.15s, box-shadow 0.2s;
}

.roses-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 169, 110, 0.25);
}

.roses-pill .rose-ico { font-size: 14px; }
.roses-pill .plus-mark {
  background: var(--gold);
  color: white;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.15s, color 0.15s;
  position: relative;
}

.icon-btn:hover { background: var(--bg-soft); color: var(--ink); }

.icon-btn .badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--surface);
}

.icon-btn .dot {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  border: 2px solid var(--surface);
}

.avatar-wrap {
  position: relative;
  cursor: pointer;
  padding: 2px;
  border-radius: 50%;
  transition: background 0.2s;
}

.avatar-wrap:hover { background: var(--bg-soft); }

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  border: 2px solid var(--accent);
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-wrap .online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 11px;
  height: 11px;
  background: var(--success);
  border: 2px solid var(--surface);
  border-radius: 50%;
}

/* Auth buttons (utilisateur non connecté) */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-link {
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.btn-link.ghost {
  color: var(--ink-soft);
}
.btn-link.ghost:hover {
  background: var(--bg-soft);
  color: var(--ink);
}
.btn-link.primary {
  background: var(--accent);
  color: white;
}
.btn-link.primary:hover {
  background: var(--accent-deep);
}
.btn-link.danger {
  color: #a00020;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-link.danger:hover {
  background: rgba(220, 30, 60, 0.10);
}
/* Bouton/lien compact pour les cellules d'actions de tableau */
.btn-xs { padding: 5px 10px; font-size: 12px; }

.user-actions {
  white-space: nowrap;
  text-align: right;
}
.user-actions .btn-link { display: inline-block; vertical-align: middle; }

/* La colonne Actions reste collée à droite, même si le tableau scrolle */
.perms-table th:last-child,
.perms-table td.user-actions {
  position: sticky;
  right: 0;
  background: var(--surface);
  box-shadow: -6px 0 8px -6px rgba(26, 20, 16, 0.12);
}
.perms-table thead th:last-child { background: var(--bg-soft); }
.perms-table tbody tr:hover td.user-actions { background: var(--bg-soft); }

/* Badge de rôle dans la table des membres */
.role-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.role-badge--admin {
  background: var(--gold-soft);
  color: #7a5c1e;
}
.role-badge--membre {
  background: var(--bg-soft);
  color: var(--ink-soft);
}

/* Subbar */
.subbar {
  padding: clamp(4px, 1vw, 8px) clamp(14px, 3vw, 32px) clamp(8px, 1.2vw, 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  row-gap: 4px;
  flex-wrap: wrap;
  overflow-x: visible;
  overflow-y: visible;
  scrollbar-width: none;
  position: relative;
}
.subbar::-webkit-scrollbar { display: none; }

.subbar-item {
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
}

.subbar-item:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

.subbar-item.active {
  color: var(--accent-deep);
  background: var(--accent-soft);
  box-shadow: 0 2px 8px rgba(212, 69, 107, 0.12);
}

.subbar-item .chev {
  font-size: 9px;
  color: var(--ink-mute);
  transition: transform 0.25s ease;
  margin-left: 2px;
}

.subbar-item:hover .chev,
.has-dropdown:hover .subbar-item .chev { color: var(--ink-soft); }
.has-dropdown .dropdown.show ~ .subbar-item .chev,
.subbar-item.is-open .chev { transform: rotate(180deg); }

.subbar-item .live-badge {
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 6px rgba(212, 69, 107, 0.3);
}

/* Dropdowns */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 12px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
}

.dropdown.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-menu {
  --mm-width: min(520px, calc(100vw - 24px));
  width: var(--mm-width);
  left: 50%;
  margin-left: calc(var(--mm-width) / -2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-height: 70vh;
  overflow-y: auto;
}

.mega-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s;
  cursor: pointer;
}

.mega-item:hover { background: var(--bg-soft); }

.mega-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.mega-icon.gold { background: var(--gold-soft); color: #8a6a2e; }
.mega-icon.success { background: var(--success-soft); color: var(--success); }

.mega-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.mega-item p {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.notif-dropdown {
  width: min(360px, calc(100vw - 24px));
  right: 0;
  padding: 8px;
  max-height: 70vh;
  overflow-y: auto;
}

.dd-header {
  padding: 12px 12px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.dd-header h3 {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 500;
}

.dd-header .mark-read {
  font-size: 12px;
  color: var(--accent);
  cursor: pointer;
  font-weight: 500;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.notif-item:hover { background: var(--bg-soft); }
.notif-item.unread { background: var(--accent-soft); }
.notif-item.unread:hover { background: #fad5e0; }

.notif-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.notif-body { flex: 1; min-width: 0; }
.notif-body p { font-size: 13px; line-height: 1.4; }
.notif-body p b { font-weight: 600; }
.notif-body .time { font-size: 11px; color: var(--ink-mute); margin-top: 2px; }

.profile-dropdown {
  width: min(240px, calc(100vw - 24px));
  right: 0;
  padding: 8px;
}

.profile-card {
  padding: 14px;
  background: var(--bg-soft);
  border-radius: 10px;
  margin-bottom: 6px;
}

.profile-card .name { font-weight: 600; font-size: 14px; }
.profile-card .email { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.15s;
  text-decoration: none;
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  text-align: left;
}

.menu-item:hover { background: var(--bg-soft); }
.menu-item .mi-icon { width: 18px; font-size: 15px; color: var(--ink-soft); }
.menu-item.danger { color: var(--accent-deep); }
.menu-item.danger:hover { background: var(--accent-soft); }

.menu-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}

.has-dropdown { position: relative; }

/* Stage + triangles */
.stage {
  position: relative;
  min-height: calc(100vh - 130px);
  overflow: hidden;
}

.triangle-menu {
  position: absolute;
  top: 0;
  width: clamp(180px, 50vw, 640px);
  height: clamp(130px, 33vw, 450px);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.triangle-menu.left { left: 0; }
.triangle-menu.right { right: 0; }

.triangle-shape {
  width: 100%;
  height: 100%;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  /* Ne transitionner que la couleur — pas l'image / la position, sinon
     l'image semble bouger au survol. */
  transition: background-color 0.3s ease;
  position: relative;
}

.triangle-menu.left .triangle-shape { clip-path: polygon(0 0, 100% 0, 0 100%); }
.triangle-menu.right .triangle-shape { clip-path: polygon(100% 0, 100% 100%, 0 0); }

/* Portrait de Gilles en fond du triangle droit. Le clip-path coupe la
   diagonale haut-gauche → bas-droite ; l'aire visible la plus large est
   le bord droit. On colle le portrait à droite, centré verticalement,
   en ~85% de la hauteur (le visage reste dans la zone visible). */
.triangle-menu.right .triangle-shape {
  background-color: var(--surface);
  background-image:
    linear-gradient(225deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0.75) 100%),
    url('/images/gilles.png');
  background-size: cover, auto 90%;
  background-position: center, right 8px center;
  background-repeat: no-repeat, no-repeat;
}

/* Hover : on ne change que la background-color, pas l'image. Évite le
   recalcul + flicker de l'image au survol. */
.triangle-menu:hover .triangle-shape { background-color: var(--accent-soft); }
.triangle-menu:hover .triangle-label { color: var(--accent-deep); }
/* Aucun mouvement au survol/clic — l'image de fond reste strictement fixe. */
.triangle-menu, .triangle-menu .triangle-icon-wrap {
  transition: none;
}
.triangle-menu:hover, .triangle-menu:hover .triangle-icon-wrap, .triangle-menu:active {
  transform: none;
}

.triangle-content {
  position: absolute;
  top: clamp(14px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vw, 14px);
  pointer-events: none;
}

.triangle-menu.left .triangle-content { left: clamp(14px, 2.5vw, 32px); align-items: flex-start; }
.triangle-menu.right .triangle-content { right: clamp(14px, 2.5vw, 32px); align-items: flex-end; text-align: right; }

.triangle-icon-wrap {
  position: relative;
  width: clamp(32px, 4.5vw, 56px);
  height: clamp(32px, 4.5vw, 56px);
  background: linear-gradient(
    to right,
    #0055A4 0%, #0055A4 33.33%,
    #ffffff 33.33%, #ffffff 66.66%,
    #EF4135 66.66%, #EF4135 100%
  );
  color: #1a1410;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(26, 20, 16, 0.08);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s, filter 0.25s;
}

.triangle-icon-wrap svg {
  width: clamp(16px, 2.3vw, 28px);
  height: clamp(16px, 2.3vw, 28px);
  stroke-width: 2;
}

.triangle-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--surface);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.triangle-text-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.triangle-menu.right .triangle-text-block { align-items: flex-end; }

.triangle-label {
  font-family: 'Fraunces', serif;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: clamp(160px, 22vw, 260px);
  transition: color 0.2s;
}

.triangle-hint {
  font-size: clamp(13px, 1.3vw, 16px);
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.triangle-hint .dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-mute);
  display: inline-block;
}

.triangle-hint--soft {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 13px;
  font-weight: 500;
}

/* Triangle de droite : « Collectif de citoyens » dans la même police et
   la même couleur que le nom « Gilles de Fromont » (repos + survol),
   en gardant une taille plus petite. */
.triangle-menu.right .triangle-hint {
  font-family: 'Fraunces', serif;
  color: var(--ink);
  text-transform: none;
  letter-spacing: -0.02em;
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.1;
}
/* Couleur bleue pour le nom + le sous-titre du triangle de droite */
.triangle-menu.right .triangle-label,
.triangle-menu.right .triangle-hint { color: #046bd2; }
.triangle-menu.right:hover .triangle-label,
.triangle-menu.right:hover .triangle-hint { color: #0356a8; }

/* Triangle de gauche : même rendu que la droite (Fraunces, bleu, même taille) */
.triangle-menu.left .triangle-link {
  font-family: 'Fraunces', serif;
  color: #046bd2;
  text-transform: none;
  letter-spacing: -0.02em;
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.15;
}
.triangle-menu.left .triangle-link:hover { color: #0356a8; }

/* Liens cliquables dans le triangle (parent .triangle-content a
   pointer-events: none, on les réactive ici). */
.triangle-link {
  pointer-events: auto;
  color: var(--ink);
  text-decoration: none;
  padding: 2px 0;
  transition: color 0.15s;
}
.triangle-link:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

/* Main */
.main {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 60px) clamp(14px, 3vw, 32px) clamp(36px, 5vw, 64px);
  position: relative;
  z-index: 1;
}

.main.main--wide {
  max-width: none;
}

.main.main--medium {
  max-width: 1100px;
}

/* ====================================================
   HEADER — VARIANTE DASHBOARD
   ==================================================== */
.topbar--dashboard {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.logo .logo-suffix {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  color: var(--accent);
  margin-left: 6px;
  letter-spacing: -0.01em;
}

.dash-topbar-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-topbar-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.subbar--dashboard {
  border-top: 1px solid var(--border);
  justify-content: flex-start;
  padding-left: clamp(14px, 3vw, 32px);
}

@media (max-width: 720px) {
  .dash-topbar-section { display: none; }
  .topbar--dashboard { display: flex; flex-wrap: wrap; }
  .subbar--dashboard { justify-content: center; padding-left: 0; }
}

.hero { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(26px, 5vw, 48px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p { color: var(--ink-soft); font-size: clamp(14px, 1.4vw, 16px); max-width: 480px; margin: 0 auto; }

.hero-image {
  margin: 0 auto clamp(28px, 4vw, 48px);
  display: block;
  max-width: 720px;
}
.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: clamp(10px, 1.5vw, 16px);
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 8px 24px rgba(26, 20, 16, 0.06);
}

.card-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 18px;
  margin-bottom: 14px;
  font-family: 'Fraunces', serif;
}

.card-name { font-weight: 600; font-size: 16px; margin-bottom: 2px; }
.card-meta { font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }

.card-tags { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.tag { font-size: 11px; background: var(--bg-soft); color: var(--ink-soft); padding: 3px 8px; border-radius: 6px; font-weight: 500; }

/* ====================================================
   DASHBOARD
   ==================================================== */
.dash-hero {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 24px);
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.dash-hero-avatar {
  width: clamp(56px, 7vw, 84px);
  height: clamp(56px, 7vw, 84px);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(22px, 2.8vw, 32px);
  border: 2px solid var(--accent);
  flex-shrink: 0;
}
.dash-hero-text h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.dash-hero-text h1 em {
  font-style: italic;
  color: var(--accent);
}
.dash-hero-text p {
  color: var(--ink-soft);
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.5;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: clamp(20px, 2.5vw, 28px);
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}
.stat-num {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 500;
  line-height: 1;
  color: var(--accent-deep);
}
.stat-lbl {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.stat-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-mute);
}

.dash-views {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: clamp(20px, 2.5vw, 28px);
}
.dash-views-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}
.dash-views-col .news-title { margin-bottom: 12px; }
.dash-views-col .admin-table { font-size: 13px; }
.dash-views-col .admin-table th,
.dash-views-col .admin-table td { padding: 8px 10px; }

/* ====================================================
   POST-IT
   ==================================================== */
.postit-compose {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 18px;
}
.postit-compose-form { display: flex; flex-direction: column; gap: 12px; }
.postit-compose textarea {
  width: 100%;
  background: #fffbe6;
  border: 1px solid #e9dba0;
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'Caveat', 'Fraunces', cursive, serif;
  font-size: 18px;
  line-height: 1.45;
  resize: vertical;
  color: #2a2418;
  outline: none;
}
.postit-compose textarea:focus { border-color: var(--accent); }
.postit-compose-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.postit-colors { display: flex; gap: 8px; }
.postit-color-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  display: inline-block;
  position: relative;
  transition: transform 0.12s, border-color 0.12s;
}
.postit-color-dot:hover { transform: scale(1.1); }
.postit-color-dot input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.postit-color-dot:has(input:checked) { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.postit-color--jaune  { background: #ffe982; }
.postit-color--rose   { background: #ffc7d3; }
.postit-color--vert   { background: #c8eab0; }
.postit-color--bleu   { background: #bcdfff; }
.postit-color--orange { background: #ffd29b; }

.postit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.postit-grid--small {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.postit {
  position: relative;
  padding: 16px 14px 12px;
  border-radius: 4px 4px 8px 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18), 0 2px 4px rgba(0, 0, 0, 0.10);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 140px;
  transform: rotate(-0.5deg);
  transition: transform 0.18s, box-shadow 0.18s;
}
.postit:nth-child(even) { transform: rotate(0.6deg); }
.postit:nth-child(3n)   { transform: rotate(-1deg); }
.postit:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.12);
}
.postit.is-dismissed { opacity: 0.55; }

.postit--jaune  { background: #ffe982; color: #3a2f10; }
.postit--rose   { background: #ffc7d3; color: #3a1024; }
.postit--vert   { background: #c8eab0; color: #1c3a16; }
.postit--bleu   { background: #bcdfff; color: #11315a; }
.postit--orange { background: #ffd29b; color: #4a2912; }

.postit-body {
  font-family: 'Caveat', 'Fraunces', cursive, serif;
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  flex: 1;
}

.postit-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.10);
}
.postit-author { display: flex; align-items: center; gap: 8px; min-width: 0; }
.postit-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.postit-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.postit-avatar--init { font-weight: 700; font-size: 13px; color: currentColor; }
.postit-author-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.postit-author-name { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.postit-author-date { font-size: 10px; opacity: 0.7; }

.postit-actions { display: flex; gap: 4px; flex-shrink: 0; }
.postit-act {
  background: rgba(0, 0, 0, 0.08);
  border: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s;
}
.postit-act:hover { background: rgba(0, 0, 0, 0.16); }
.postit-act--danger:hover { background: rgba(220, 30, 60, 0.18); color: #a00020; }

.postit-dismissed-tag {
  position: absolute;
  top: 8px; right: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
}

.dash-postits {
  margin-top: clamp(20px, 2.5vw, 28px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.dash-postits-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 14px;
}

/* ----- Page institutionnelle Collectif de citoyens ----- */
/* La page vit sur le stage bleu : tout texte hors carte est en blanc. */
.main.inst-main {
  padding-top: clamp(8px, 1.5vw, 18px);
}
.inst-hero {
  text-align: center;
  padding: 4px 0 clamp(20px, 3vw, 32px);
  margin-bottom: clamp(20px, 3vw, 32px);
}
.inst-hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #ffd9e0;
  margin-bottom: 12px;
}
.inst-hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--surface);
  margin: 0;
}
.inst-hero-rule {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 18px auto;
}
.inst-hero-lede {
  max-width: 640px;
  margin: 0 auto;
  font-family: 'Fraunces', serif;
  font-size: clamp(15px, 1.6vw, 17px);
  font-style: italic;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.inst-section {
  margin-bottom: clamp(28px, 4vw, 44px);
}
.inst-section-head {
  text-align: center;
  margin-bottom: clamp(18px, 2.5vw, 26px);
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
.inst-section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--surface);
  margin: 0 0 6px;
}
.inst-section-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.inst-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.inst-grid.is-dense {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.inst-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(18px, 2vw, 24px);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.inst-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-pop);
}

.inst-portrait {
  width: clamp(96px, 13vw, 132px);
  height: clamp(96px, 13vw, 132px);
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
}
.inst-grid.is-dense .inst-portrait {
  width: 72px;
  height: 72px;
  border-width: 2px;
  margin-bottom: 12px;
}
.inst-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inst-portrait span {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  color: var(--accent-deep);
}
.inst-grid.is-dense .inst-portrait span { font-size: 26px; }

.inst-card-body { width: 100%; min-width: 0; }
.inst-card-name {
  font-family: 'Fraunces', serif;
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  overflow-wrap: anywhere;
}
.inst-grid.is-dense .inst-card-name {
  font-size: 15px;
}
.inst-card-fonction {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  margin-top: 8px;
}
.inst-card-bio {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  overflow-wrap: anywhere;
}

.inst-footer {
  text-align: center;
  padding: 20px 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  margin-top: clamp(24px, 4vw, 36px);
}

/* ----- Trombinoscope (ancien — gardé pour compat) ----- */
.trombi-header { margin-bottom: 28px; }
.trombi-subtitle {
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
  margin-top: 8px;
}
.trombi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.trombi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.trombi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-pop);
  border-color: var(--accent);
}
.trombi-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trombi-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}
.trombi-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trombi-avatar span {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--accent-deep);
}
.trombi-id { min-width: 0; flex: 1; }
.trombi-name {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.trombi-role { margin-top: 4px; }
.trombi-role-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-soft);
  color: var(--ink-soft);
  padding: 3px 8px;
  border-radius: 6px;
}
.trombi-role-pill.is-admin {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.trombi-bio {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}

.trombi-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.trombi-row {
  display: flex;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.trombi-row:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-pop);
}
.trombi-row .trombi-avatar {
  width: 72px;
  height: 72px;
}
.trombi-row .trombi-avatar span { font-size: 28px; }
.trombi-row-body { flex: 1; min-width: 0; }
.trombi-fonction {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}
.trombi-perms {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.trombi-perm-pill {
  font-size: 11px;
  background: var(--bg-soft);
  color: var(--ink);
  padding: 2px 7px;
  border-radius: 5px;
}

.trombi-info {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trombi-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
}
.trombi-info-ico {
  width: 18px;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 14px;
  text-align: center;
  padding-top: 1px;
}
.trombi-info-val {
  color: var(--ink);
  overflow-wrap: anywhere;
  min-width: 0;
}
a.trombi-info-val { color: var(--ink); text-decoration: none; }
a.trombi-info-val:hover { color: var(--accent-deep); text-decoration: underline; }

.trombi-count {
  text-align: center;
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-mute);
}
.dash-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-align: left;
}
.dash-action-btn:hover { color: var(--accent-deep); }
.dash-ping-result {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
  min-height: 1.2em;
}

/* ====================================================
   PAGE ÉVÉNEMENTS (publique)
   ==================================================== */
.events-subtitle {
  font-family: 'Fraunces', serif;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  color: var(--surface);
  margin: 8px 0 14px;
  letter-spacing: -0.01em;
}
.events-subtitle--past {
  margin-top: 28px;
  opacity: 0.75;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.events-list--past { opacity: 0.85; }

.event-card {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s, box-shadow 0.2s;
}
.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.event-date {
  flex-shrink: 0;
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
}
.event-day {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--accent-deep);
  line-height: 1;
}
.event-month {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
  margin-top: 3px;
}
.event-year {
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 2px;
}

.event-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.event-type {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--gold-soft);
  color: #8a6a2e;
  padding: 3px 8px;
  border-radius: 6px;
}
.event-name {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
}
.event-detail {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  white-space: pre-line;
}

/* ====================================================
   ARTICLE PUBLIC (page /actualite/:slug)
   ==================================================== */
.article-page {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
}
.article-back {
  display: inline-block;
  padding: 14px 24px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.article-back:hover { color: var(--accent-deep); text-decoration: underline; }

.article-cover {
  margin-top: 14px;
  background: var(--bg-soft);
  max-height: 420px;
  overflow: hidden;
}
.article-cover img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.article-head {
  padding: 24px clamp(20px, 3vw, 36px) 8px;
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.article-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 3px 8px;
  border-radius: 6px;
}
.article-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
}
.article-meta {
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.share-copy {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-soft);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.share-copy:hover { background: var(--bg-soft); color: var(--ink); }
.share-copy.is-copied {
  background: var(--success-soft);
  color: var(--success);
  border-color: rgba(45, 138, 95, 0.3);
}
.article-chapo {
  font-family: 'Fraunces', serif;
  font-size: clamp(16px, 1.7vw, 19px);
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.article-body {
  padding: 22px clamp(20px, 3vw, 36px) 36px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}

.news-card-titlelink {
  color: inherit;
  text-decoration: none;
}
.news-card-titlelink:hover { color: var(--accent); }

/* ====================================================
   ADMIN — Publications (liste + éditeur)
   ==================================================== */
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.admin-toolbar .btn-link.ghost {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
}
.admin-toolbar .btn-link.ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.admin-page-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--surface);
}

.admin-empty {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.admin-filter {
  display: flex;
  gap: 4px;
  margin: 0 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.admin-filter-tab {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px 6px 0 0;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.admin-filter-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.admin-filter-tab.is-active {
  color: #fff;
  border-bottom-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}
.admin-filter-count {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}
.admin-filter-tab.is-active .admin-filter-count {
  background: var(--accent);
}

.admin-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  box-shadow: var(--shadow-soft);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th, .admin-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.admin-table th {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--bg-soft);
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--bg-soft); }
.col-actions { text-align: right; white-space: nowrap; }

.cell-title { font-weight: 600; color: var(--ink); }
.cell-slug  { font-size: 12px; color: var(--ink-mute); font-family: monospace; margin-top: 2px; }
.cell-tags  { color: var(--ink-soft); }
.cell-date  { color: var(--ink-soft); font-size: 13px; }

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pill--ok    { background: var(--success-soft); color: var(--success); }
.pill--draft { background: var(--bg-soft); color: var(--ink-soft); }
.pill--news  { background: var(--accent-soft); color: var(--accent-deep); }
.pill--link  { background: var(--gold-soft); color: #8a6a2e; }

.link-action {
  background: none;
  border: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  margin-left: 14px;
  padding: 0;
}
.link-action:hover { color: var(--accent-deep); text-decoration: underline; }
.link-action--danger { color: var(--accent-deep); }
.inline-form { display: inline; }

/* ----- Formulaire de publication ----- */
.news-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
.news-form-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(18px, 2.5vw, 28px);
  box-shadow: var(--shadow-soft);
}
.news-form-side { display: flex; flex-direction: column; gap: 18px; }

.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.side-card-title {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.news-form .field input,
.news-form .field select,
.news-form .field textarea {
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
}
.news-form .field input:focus,
.news-form .field select:focus,
.news-form .field textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
}
.news-form .field textarea { resize: vertical; min-height: 60px; line-height: 1.5; }

.field-hint {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 4px;
}

/* ----- Onglets Édition / Aperçu ----- */
.editor-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.editor-tab {
  background: none;
  border: none;
  padding: 10px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  border-radius: 6px 6px 0 0;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.editor-tab:hover { background: var(--bg-soft); color: var(--ink); }
.editor-tab.is-active {
  color: var(--accent-deep);
  border-bottom-color: var(--accent);
  background: var(--accent-soft);
}

/* ----- Article preview ----- */
.news-preview {
  padding: 4px 0 8px;
  min-width: 0;
}
.news-preview-cover {
  margin: -8px -8px 18px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-soft);
}
.news-preview-cover img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  display: block;
}
.news-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.news-preview-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 3px 8px;
  border-radius: 6px;
}
.news-preview-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}
.news-preview-chapo {
  font-family: 'Fraunces', serif;
  font-size: clamp(16px, 1.7vw, 19px);
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}
.news-preview-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.news-preview-body pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre;
  background: var(--bg-soft);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.news-preview-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
.news-preview-body > * + * { margin-top: 14px; }
.news-preview-body h1,
.news-preview-body h2,
.news-preview-body h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-top: 26px;
}
.news-preview-body h2 { font-size: 24px; }
.news-preview-body h3 { font-size: 19px; }
.news-preview-body p { margin: 14px 0; }
.news-preview-body a { color: var(--accent); text-decoration: underline; }
.news-preview-body a:hover { color: var(--accent-deep); }
.news-preview-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 12px 0;
  display: block;
}
.news-preview-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 14px;
  color: var(--ink-soft);
  font-style: italic;
  margin: 14px 0;
}
.news-preview-body ul,
.news-preview-body ol { padding-left: 22px; margin: 14px 0; }
.news-preview-body li { margin: 6px 0; }
.news-preview-body code {
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.news-preview-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

/* ----- Aperçu image de couverture ----- */
.cover-preview {
  margin-top: 8px;
  background: var(--bg-soft);
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6px;
}
.cover-preview img {
  max-width: 100%;
  max-height: 220px;
  height: auto;
  border-radius: 6px;
  display: block;
}
.cover-empty {
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.upload-btn:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent-deep);
}
.upload-status {
  font-size: 12px;
  color: var(--ink-soft);
}
.upload-status.error { color: var(--accent-deep); }

/* ----- Toolbar Markdown ----- */
.md-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
}
.md-toolbar button {
  min-width: 32px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, border-color 0.12s;
}
.md-toolbar button:hover {
  background: var(--surface);
  border-color: var(--border);
}
.md-toolbar button:active { transform: translateY(1px); }
.md-toolbar .md-sep {
  width: 1px;
  height: 18px;
  background: var(--border-strong);
  margin: 0 4px;
}

.news-sentinel { height: 1px; width: 100%; }

/* Liste des utilisateurs en ligne (dashboard) */
.dash-online {
  margin-bottom: 22px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.dash-online-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dash-online-head .news-title { margin: 0; color: var(--ink); font-size: 15px; }
.dash-online-count {
  display: inline-block;
  min-width: 20px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--success);
  background: var(--success-soft);
  border-radius: 999px;
  text-align: center;
}
.dash-online-list { display: flex; flex-wrap: wrap; gap: 8px; }
.online-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.online-chip::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 2px var(--success-soft);
}

/* Encarts stats du dashboard : une couleur par carte */
.stat-card { border-top: 3px solid var(--border-strong); }
.stat-card--news    { border-top-color: #d4456b; }
.stat-card--news    .stat-num { color: #d4456b; }
.stat-card--pages   { border-top-color: #046bd2; }
.stat-card--pages   .stat-num { color: #046bd2; }
.stat-card--events  { border-top-color: #2d8a5f; }
.stat-card--events  .stat-num { color: #2d8a5f; }
.stat-card--views   { border-top-color: #c9a96e; }
.stat-card--views   .stat-num { color: #b8860b; }
.stat-card--abonnes { border-top-color: #7c3aed; }
.stat-card--abonnes .stat-num { color: #7c3aed; }
.stat-card--comm    { border-top-color: #d97706; }
.stat-card--comm    .stat-num { color: #d97706; }

/* Communication interne */
.comm-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 18px 20px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.comm-form .field { display: flex; flex-direction: column; gap: 6px; }
.comm-form label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.comm-form input,
.comm-form textarea {
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.comm-form input:focus,
.comm-form textarea:focus { border-color: var(--accent); background: var(--surface); }

.comm-list { display: flex; flex-direction: column; gap: 12px; }
.comm-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 16px 18px;
}
.comm-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.comm-subject { margin: 0; font-size: 16px; color: var(--ink); }
.comm-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.comm-edit, .comm-del {
  border: none;
  background: transparent;
  color: var(--ink-mute);
  font-size: 14px;
  cursor: pointer;
  border-radius: 6px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.comm-edit:hover { background: var(--bg-soft); color: var(--ink); }
.comm-del:hover { background: rgba(220, 30, 60, 0.10); color: #a00020; }
.comm-body { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); white-space: pre-wrap; }
.comm-link {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 14px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
}
.comm-link:hover { background: var(--accent-deep); }
.comm-meta { margin-top: 10px; font-size: 12px; color: var(--ink-mute); }

/* Éditeur visuel Quill (publications) */
#quillToolbar { border-radius: 10px 10px 0 0; background: var(--bg-soft); }
#quillEditor { border-radius: 0 0 10px 10px; background: var(--surface); }
.ql-editor { min-height: 320px; font-size: 15px; line-height: 1.6; }
.ql-editor.ql-blank::before { color: var(--ink-mute); font-style: normal; }
#quillToolbar .ql-emoji { font-size: 16px; line-height: 1; width: auto; padding: 0 4px; }

/* Galerie média (éditeur de publications) */
.media-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.media-modal[hidden] { display: none; }
.media-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 20, 16, 0.5);
}
.media-modal-box {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.media-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.media-modal-head h3 { margin: 0; font-size: 17px; }
.media-modal-close {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink-soft);
  line-height: 1;
}
.media-modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.media-upload-label { cursor: pointer; }
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  padding: 18px 20px;
  overflow-y: auto;
}
.media-empty { grid-column: 1 / -1; text-align: center; color: var(--ink-soft); padding: 24px; }
.media-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.media-pick {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: var(--bg-soft);
  cursor: pointer;
}
.media-pick img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.15s; }
.media-pick:hover img { transform: scale(1.05); }
.media-del {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.12s;
}
.media-cell:hover .media-del { opacity: 1; }
.media-del:hover { background: #a00020; }

/* Popovers couleur / emoji de la barre Markdown */
.md-popover {
  z-index: 1000;
  display: grid;
  grid-template-columns: repeat(5, 28px);
  gap: 6px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-pop);
}
.md-popover--emoji { grid-template-columns: repeat(6, 30px); max-width: 230px; }
.md-swatch {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 7px;
  cursor: pointer;
  padding: 0;
  transition: transform 0.08s;
}
.md-swatch:hover { transform: scale(1.12); }
.md-emoji {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  border-radius: 7px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}
.md-emoji:hover { background: var(--bg-soft); }
.md-textarea {
  border-radius: 0 0 10px 10px !important;
  font-family: 'Manrope', monospace, sans-serif;
  min-height: 320px !important;
}
.md-textarea:focus {
  border-color: var(--accent) !important;
}

@media (max-width: 900px) {
  .news-form-grid { grid-template-columns: 1fr; }
}

/* ====================================================
   FORMULAIRES (inscription abonné, etc.)
   ==================================================== */
.form-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: clamp(24px, 3.5vw, 40px);
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
}

/* ====================================================
   BULLETIN D'ADHÉSION (look républicain)
   ==================================================== */
.adh-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0 0 clamp(28px, 4vw, 48px);
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.adh-flag {
  height: 6px;
  background: linear-gradient(to right, #0055a4 0 33.33%, #ffffff 33.33% 66.66%, #ef4135 66.66% 100%);
}
.adh-head {
  text-align: center;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 40px) clamp(18px, 2.5vw, 28px);
  border-bottom: 1px solid var(--border);
}
.adh-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-deep);
  margin-bottom: 12px;
}
.adh-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 14px;
}
.adh-lede {
  max-width: 540px;
  margin: 0 auto;
  font-family: 'Fraunces', serif;
  font-size: clamp(14px, 1.4vw, 16px);
  font-style: italic;
  line-height: 1.6;
  color: var(--ink-soft);
}

.adh-form { padding: 0 clamp(24px, 4vw, 40px); }

.adh-section {
  border: none;
  padding: clamp(22px, 3vw, 32px) 0;
  border-bottom: 1px solid var(--border);
}
.adh-section:last-of-type { border-bottom: none; }
.adh-section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding: 0;
  margin: 0 0 18px;
}
.adh-section-num {
  font-size: 0.85em;
  color: var(--accent-deep);
  font-weight: 600;
}
.adh-req {
  color: #ef4135;
  font-weight: 700;
  margin-left: 2px;
}

.adh-radio-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.adh-radio { cursor: pointer; }
.adh-radio input { position: absolute; opacity: 0; pointer-events: none; }
.adh-radio-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 14px;
  border: 2px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg-soft);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  height: 100%;
}
.adh-radio:hover .adh-radio-card {
  border-color: var(--accent);
  background: #fff;
}
.adh-radio input:checked + .adh-radio-card {
  border-color: var(--accent-deep);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(212, 69, 107, 0.12);
}
.adh-radio-ico {
  font-size: 22px;
  color: var(--accent-deep);
  line-height: 1;
}
.adh-radio-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.adh-radio-title {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.adh-radio-sub {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.adh-competences {
  margin-top: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg-soft);
  overflow: hidden;
}
.adh-competences[open] { background: #fff; }
.adh-competences summary {
  cursor: pointer;
  padding: 14px 16px;
  list-style: none;
  user-select: none;
}
.adh-competences summary::-webkit-details-marker { display: none; }
.adh-competences-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.adh-competences-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.adh-competences-count {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 4px 10px;
  border-radius: 999px;
}
.adh-competences-label::after {
  content: ' ▾';
  color: var(--ink-mute);
  font-size: 10px;
  margin-left: 4px;
  transition: transform 0.15s;
}
.adh-competences[open] .adh-competences-label::after { content: ' ▴'; }
.adh-competences-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 16px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 14px;
}
.adh-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink);
  transition: background 0.12s;
}
.adh-check:hover { background: var(--bg-soft); }
.adh-check input { margin-top: 3px; cursor: pointer; }
.adh-check input:checked + span { font-weight: 600; color: var(--accent-deep); }

.adh-actions {
  margin-top: clamp(24px, 3vw, 32px);
  padding: 0 clamp(24px, 4vw, 40px);
  text-align: center;
}
.adh-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: 'Fraunces', serif;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.adh-submit-arrow { font-size: 18px; transition: transform 0.15s; }
.adh-submit:hover .adh-submit-arrow { transform: translateX(3px); }
.adh-mention {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-mute);
}

.adh-tarifs {
  margin-top: 18px;
  background: #f5f8fc;
  border: 1px solid #c9d8e8;
  border-left: 3px solid #0055a4;
  border-radius: 10px;
  padding: 18px 20px;
}
.adh-tarifs-title {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 500;
  color: #0055a4;
  margin: 0 0 12px;
  text-transform: none;
  letter-spacing: 0;
}
.adh-tarifs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.adh-tarifs-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 6px 0;
  border-bottom: 1px dotted rgba(0, 85, 164, 0.2);
  font-size: 14px;
}
.adh-tarifs-list li:last-child { border-bottom: none; }
.adh-tarif-label { color: var(--ink); }
.adh-tarif-amount {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: #0055a4;
  font-size: 15px;
  white-space: nowrap;
}
.adh-tarifs-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--ink-mute);
  font-style: italic;
}

.form-card--center { text-align: center; }

.form-card-head { margin-bottom: 24px; }
.form-card-head h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.form-card-head h1 em { font-style: italic; color: var(--accent); }
.form-card-head p {
  color: var(--ink-soft);
  font-size: 14px;
}

.form-card--center h1 em { font-style: italic; color: var(--accent); }

.form-alert {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border: 1px solid rgba(212, 69, 107, 0.25);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 18px;
}

.form-notice {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid rgba(45, 138, 95, 0.25);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 18px;
}

.btn-submit--sm {
  padding: 8px 14px;
  font-size: 13px;
}

/* Photo de profil */
.profile-photo-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 6px;
}
.profile-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-avatar span {
  font-family: 'Fraunces', serif;
  font-size: 34px;
  font-weight: 600;
  color: var(--accent-deep);
}
.profile-photo-form { display: flex; flex-direction: column; gap: 4px; }
.profile-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
}
@media (max-width: 480px) {
  .profile-grid { grid-template-columns: 1fr; }
}

/* Liste de personnes concernées (tâches) */
.assignee-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}
.assignee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.assignee-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: var(--accent);
}

/* Matrice de permissions (page Paramètres) */
.perms-table { font-size: 13px; }
.perms-table th,
.perms-table td { padding: 10px 8px; }
.perms-table .perms-col {
  text-align: center;
  width: 56px;
  font-size: 11px;
}
/* Colonnes texte resserrées pour tout faire tenir sans scroll */
.perms-table .cell-slug { font-size: 11.5px; }
.perms-table .profile-select { max-width: 130px; }
.perm-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.perm-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--accent);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field[hidden] { display: none; }
.field--wide { grid-column: 1 / -1; }

.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.btn-submit {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
  display: inline-block;
}
.btn-submit:hover { background: var(--accent-deep); }
.btn-submit:active { transform: translateY(1px); }

.form-redirect-note {
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 12px;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-weight: 700;
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
}

/* ====================================================
   NEWS SECTION
   ==================================================== */
.news-section {
  margin-top: clamp(28px, 4vw, 40px);
}

.news-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.news-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 500;
  color: var(--surface);
  letter-spacing: -0.02em;
}

.news-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--surface);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.news-link:hover { opacity: 1; text-decoration: underline; }

.news-count {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1000px) {
  .news-grid:not(.news-grid--small) { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .news-grid:not(.news-grid--small) { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .news-grid:not(.news-grid--small) { grid-template-columns: 1fr; }
}

/* Vignettes accueil plus compactes : titre et marges réduits */
.news-grid:not(.news-grid--small) .news-card--has-cover .news-card-title { font-size: 15px; }
.news-grid:not(.news-grid--small) .news-card--has-cover .news-card-body { padding: 12px 14px 14px; gap: 6px; }

/* Variante compacte : petits carrés (page /actualites) */
.news-grid--small {
  grid-template-columns: repeat(auto-fill, 160px);
  gap: 12px;
}
.news-grid--small .news-card-cover-wrap {
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 8px;
}
.news-grid--small .news-card--has-cover .news-card-body {
  padding: 8px 10px 10px;
  gap: 4px;
}
.news-grid--small .news-card-title { font-size: 13px; -webkit-line-clamp: 2; }
.news-grid--small .news-excerpt { display: none; }
.news-grid--small .news-meta { font-size: 10px; }
.news-grid--small .news-readmore { font-size: 11px; }

.news-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  overflow: hidden;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.news-card--has-cover { padding: 0; }
.news-card--has-cover .news-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.news-card-cover-wrap {
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
.news-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.news-card--has-cover:hover .news-card-cover { transform: scale(1.04); }
/* Sur card avec cover : on garde un titre lisible (pas de réduction à 14px)
   et on conserve l'excerpt — c'est l'image qui donne le ton, le texte doit
   rester un vrai contenu, pas un mini-libellé. */
.news-card--has-cover .news-card-title { font-size: 17px; -webkit-line-clamp: 2; }
.news-card--has-cover .news-excerpt {
  -webkit-line-clamp: 2;
  font-size: 13px;
}

.news-empty {
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.85);
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  font-size: 14px;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.news-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 3px 8px;
  border-radius: 6px;
}

.news-date {
  font-size: 11px;
  color: var(--ink-mute);
  font-weight: 500;
}

.news-card-title {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-excerpt {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-readmore {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: 4px;
}
.news-readmore:hover { color: var(--accent-deep); }

/* Drawers */
.drawer {
  position: fixed;
  top: 0;
  height: 100vh;
  width: min(320px, 88vw);
  background: var(--surface);
  z-index: 300;
  padding: clamp(20px, 3vw, 32px) clamp(16px, 2.5vw, 24px);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 0 40px rgba(26, 20, 16, 0.12);
  overflow-y: auto;
}

.drawer.left { left: 0; transform: translateX(-100%); border-right: 1px solid var(--border); }
.drawer.right { right: 0; transform: translateX(100%); border-left: 1px solid var(--border); }
.drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.drawer-title { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; }

.drawer-close {
  width: 32px; height: 32px;
  border: none; background: var(--bg-soft); border-radius: 8px;
  cursor: pointer; color: var(--ink-soft); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}

.drawer-close:hover { background: var(--accent-soft); color: var(--accent-deep); }

.drawer-list { list-style: none; }
.drawer-list li {
  padding: 12px 14px; border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  color: var(--ink); font-size: 14px; font-weight: 500;
  transition: background 0.15s;
}
.drawer-list li:hover { background: var(--bg-soft); }
.drawer-list li .item-icon { color: var(--accent); font-size: 18px; width: 20px; }
.drawer-list li > a {
  display: flex; align-items: center; gap: 12px;
  color: inherit; text-decoration: none;
  margin: -12px -14px; padding: 12px 14px;
}

.overlay {
  position: fixed; inset: 0;
  background: rgba(26, 20, 16, 0.4);
  z-index: 250;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 16px 20px 22px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: clamp(24px, 4vw, 40px);
}
.site-footer-inner {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 10px;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
  transition: color 0.15s, border-color 0.15s;
}
.site-footer a:hover {
  color: #fff;
  border-bottom-color: #fff;
}
.site-footer-sep { opacity: 0.5; }
.overlay.show { opacity: 1; pointer-events: auto; }

/* ====================================================
   RESPONSIVE — uniquement les changements structurels.
   Les tailles fluides (paddings, polices, dimensions des
   triangles, largeur des dropdowns...) sont gérées via
   clamp()/min() dans les règles de base.
   ==================================================== */

/* Mobile : la topbar passe en flex sur 2 lignes (plus robuste qu'un grid
   qui débordait avec un long bouton "Inscription"). Le mega-menu passe en
   1 colonne, les libellés des triangles et le raccourci clavier sont masqués.
   On pousse le contenu sous les triangles pour qu'ils ne couvrent plus le hero. */
@media (max-width: 720px) {
  .topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 10px;
  }
  .logo { flex: 0 0 auto; }
  .topbar-right { flex: 0 0 auto; min-width: 0; }
  .search-wrap { flex: 1 1 100%; max-width: none; margin: 0; min-width: 0; }
  .search-shortcut { display: none; }
  .roses-pill .plus-mark { display: none; }
  .auth-buttons { flex-wrap: wrap; justify-content: flex-end; }

  /* mega-menu : on neutralise le centrage desktop (qui s'alignait sur
     l'item étroit) et on étire le dropdown sur toute la largeur de la
     subbar avec 12px de marge. Pour ça, les .has-dropdown de la subbar
     deviennent static : leurs enfants absolus remontent jusqu'à .subbar
     (position: relative). */
  .subbar .has-dropdown { position: static; }
  .mega-menu {
    left: 12px;
    right: 12px;
    width: auto;
    margin-left: 0;
    grid-template-columns: 1fr;
  }

  /* Triangles miniaturisés et contenu décalé sous eux pour éviter le chevauchement */
  .triangle-menu { width: clamp(70px, 18vw, 140px); height: clamp(55px, 14vw, 110px); }
  .triangle-text-block { display: none; }
  .triangle-badge { min-width: 16px; height: 16px; font-size: 9px; top: -3px; right: -3px; padding: 0 3px; }
  .main { padding-top: clamp(70px, 18vw, 130px); }
}

/* Petit mobile : on simplifie le cluster d'actions et la subbar */
@media (max-width: 480px) {
  .roses-pill { display: none; }
  .subbar-item .live-badge { display: none; }
  .icon-btn { width: 34px; height: 34px; font-size: 16px; }
}

/* ============================================================
   Pages d'authentification (connexion / inscription)
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1100px 480px at 50% -12%, var(--accent-soft), transparent 60%),
    var(--bg-soft);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-pop);
  padding: 32px 28px;
}
.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  text-align: center;
}
.auth-brand img { height: 60px; width: auto; border-radius: 10px; }
.auth-brand-name {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}
.auth-title { font-size: 22px; margin: 14px 0 4px; text-align: center; color: var(--ink); }
.auth-sub { font-size: 14px; color: var(--ink-soft); text-align: center; margin: 0 0 22px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.auth-field input {
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.auth-field input:focus { border-color: var(--accent); background: var(--surface); }
.auth-submit {
  margin-top: 6px;
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.auth-submit:hover { background: var(--accent-deep); }
.auth-alt { text-align: center; font-size: 14px; color: var(--ink-soft); margin: 18px 0 0; }
.auth-alt a { color: var(--accent); font-weight: 600; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }
.auth-back { display: block; text-align: center; margin-top: 14px; font-size: 13px; color: var(--ink-mute); text-decoration: none; }
.auth-back:hover { color: var(--ink-soft); }

/* Suggestions live sous la barre de recherche */
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.search-suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.search-suggestion:last-child { border-bottom: none; }
.search-suggestion:hover { background: var(--bg-soft); }
.search-suggestion-type {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.search-suggestion-title { font-size: 14px; }

/* Page de résultats de recherche */
.search-page { max-width: 720px; margin: 0 auto; }
.search-page-title { font-size: 24px; margin: 0 0 16px; }
.search-page-form { display: flex; gap: 10px; margin-bottom: 16px; }
.search-page-form input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
}
.search-page-hint { color: var(--ink-soft); font-size: 14px; margin: 0 0 16px; }
.search-empty {
  padding: 24px;
  text-align: center;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.search-results-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.search-result a {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.15s, transform 0.05s;
}
.search-result a:hover { border-color: var(--border-strong); }
.search-result-type {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.search-result-type--news { background: var(--accent-soft); color: var(--accent-deep); }
.search-result-type--page { background: var(--gold-soft); color: #7a5c1e; }
.search-result-title { display: block; font-size: 16px; font-weight: 600; }
.search-result-excerpt { display: block; font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }

/* Grille des commandes d'optimisation de la base */
.optimize-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.optimize-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.optimize-card h2 { margin: 0; font-size: 16px; color: var(--ink); }
.optimize-card p { margin: 0; font-size: 13px; color: var(--ink-soft); flex: 1; }
.optimize-card code {
  background: var(--bg-soft);
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 12px;
}
.optimize-card form { margin: 0; }
.optimize-card .btn-link { display: inline-block; }

/* Barre de filtres du journal d'activité */
.log-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.log-filter { display: flex; flex-direction: column; gap: 4px; }
.log-filter--grow { flex: 1 1 180px; }
.log-filter label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.log-filter select,
.log-filter input {
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  background: var(--surface);
  color: var(--ink);
}
.log-filter--grow input { width: 100%; }
.log-filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Badge de statut dans le journal d'activité */
.log-status {
  display: inline-block;
  min-width: 34px;
  text-align: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.log-status--ok  { background: var(--success-soft); color: var(--success); }
.log-status--err { background: var(--accent-soft);  color: var(--accent-deep); }

/* ============================================================
   Carte de sauvegarde (page Membres)
   ============================================================ */
.backup-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.backup-card-text h2 { margin: 0 0 4px; font-size: 16px; color: var(--ink); }
.backup-card-text p { margin: 0; font-size: 13.5px; color: var(--ink-soft); max-width: 60ch; }
.backup-card .btn-link { flex-shrink: 0; }

/* ============================================================
   Bandeau de consentement cookies (CNIL / RGPD)
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  max-width: 920px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 18px 20px;
  animation: cookie-rise 0.3s ease;
}
.cookie-banner[hidden] { display: none; }

@keyframes cookie-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner-text { flex: 1 1 320px; min-width: 0; }
.cookie-banner-text strong { display: block; font-size: 15px; margin-bottom: 4px; color: var(--ink); }
.cookie-banner-text p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.cookie-banner-text a { color: var(--accent); text-decoration: underline; }

.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cookie-btn {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.cookie-btn.ghost:hover { background: var(--bg-soft); }
.cookie-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.cookie-btn.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.cookie-prefs {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-prefs[hidden] { display: none; }
.cookie-pref {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.cookie-pref input { margin-top: 3px; flex-shrink: 0; }
.cookie-pref strong { color: var(--ink); }
.cookie-prefs-actions { display: flex; justify-content: flex-end; }

@media (max-width: 640px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 16px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .cookie-btn { flex: 1 1 auto; }
}
