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

/* L'attribut [hidden] doit TOUJOURS masquer, même sur les éléments qui ont un
   display via leur classe (.btn, .main-nav a, .login-field…). Sans ça,
   masquer un bouton « Supprimer » ou une entrée de nav par pôle ne marche pas. */
[hidden] { display: none !important; }

/* ═══ Thème « Maison » — refonte visuelle 2026-06-10 ═══════════════════
   Toutes les classes sont inchangées : seul l'habillage évolue.
   Ancien thème conservé dans design-backup/2026-06-10/. */
:root {
  /* Identité NOIR & BLANC : base monochrome, touches de couleur ponctuelles. */
  --ink: #111111;          /* noir (texte, boutons primaires) */
  --paper: #ffffff;        /* fond blanc */
  --surface: #ffffff;      /* cartes / surfaces */
  --muted: #5f5f5f;        /* gris texte secondaire */
  --line: #d9d9d9;         /* filet gris */
  --line-soft: #ededed;    /* filet discret */
  --panel: #f5f5f5;        /* aplat gris clair */
  --panel-strong: #ebebeb;
  --accent: #6b4cff;       /* touche de couleur (sobre, par ci par là) */
  --accent-strong: #4f33d6;
  --accent-soft: #efebff;
  --green: #1a8f4c;
  --green-soft: #1a8f4c;
  --orange: #d97f06;
  --red: #d6321f;
  --blue: #2563eb;
  --teal: #0d8f9e;

  --radius: 6px;           /* cartes, panneaux (peu d'arrondi) */
  --radius-sm: 4px;        /* champs, petites cartes */
  --radius-pill: 6px;      /* boutons, chips, badges — plus de pleines pilules */
  --shadow-sm: none;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  --font-display: Arial, Helvetica, sans-serif;   /* full Arial, aucun serif */
}

@keyframes fadeUp { 0% { opacity: 0; transform: translateY(16px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }

html, body {
  min-height: 100%;
}

body {
  font-family: Arial, Helvetica, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration: none;
}

strong { font-weight: 700; }

button, select, input, textarea {
  font-family: inherit;
}

button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button { cursor: pointer; }
img { display: block; max-width: 100%; }

/* Header */
.site-header {
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 243, 237, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
}

.brand-copy em {
  font-family: var(--font-display);
  font-size: 23px;
  color: var(--ink);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.brand-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 18px;
}

.live-dot {
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

.live-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green);
}

.main-nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  gap: 3px;
  flex-wrap: wrap;
  min-width: 0;
}

.main-nav a {
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.main-nav a:hover {
  background: var(--surface);
  border-color: var(--line);
}

/* Source de vérité UNIQUE de l'état actif : aria-current, posé par
   decoratePrimaryNavigation() pour TOUTES les pages (les anciens sélecteurs en
   dur body[data-page=…] n'en couvraient que 5 et masquaient les autres). */
.main-nav a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

/* Journalistes — chips de sujets (tags Notion) + tags par fiche. */
.jr-chip { border:1px solid var(--line,#e2dbcf); background:var(--surface,#fffefb); border-radius:999px; padding:3px 11px; font-size:12px; cursor:pointer; }
.jr-chip:hover { background:var(--ink,#211d19); color:#fff; }
.jr-tag { display:inline-block; border:1px solid var(--line,#e2dbcf); border-radius:6px; padding:1px 7px; font-size:11px; color:var(--muted,#6e655c); }

/* Éditeur de séquences : cible de dépôt pendant le glisser-déposer. */
.step-block.drag-over { outline: 2px dashed var(--accent, #6b4cff); outline-offset: 3px; }

/* ── Bandeau « mode dégradé » CRM (résilience 1 sur 3) ────────────────────── */
.crm-resilience-banner {
  margin: 0 0 14px;
  padding: 11px 14px;
  border-radius: var(--radius, 14px);
  border: 1px solid #e6c98a;
  background: #fdf6e6;
  color: #6b4e16;
  font-size: 13px;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.crm-resilience-banner strong { font-weight: 700; }
.crm-resilience-banner::before { content: "⚠"; font-size: 15px; line-height: 1.2; }

/* ── Navigation à hubs (menus déroulants) — généré par public/nav.js ──────── */
.nav-hub { position: relative; }
.nav-hub > summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 24px 8px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.nav-hub > summary::-webkit-details-marker { display: none; }
.nav-hub > summary::after {
  content: "";
  position: absolute;
  right: 9px;
  top: 50%;
  width: 5px; height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  opacity: 0.5;
  transition: transform 0.18s ease;
}
.nav-hub[open] > summary::after { transform: translateY(-30%) rotate(225deg); opacity: 0.85; }
.nav-hub > summary:hover { background: var(--surface); border-color: var(--line); }
.nav-hub > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.nav-hub > summary.active { background: var(--ink); color: #fff; }
.nav-hub-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 80;
  min-width: 226px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  background: var(--surface, #fffefb);
  border: 1px solid var(--line, #e2dbcf);
  border-radius: var(--radius, 14px);
  box-shadow: var(--shadow-lg, 0 18px 40px -16px rgba(33, 29, 25, 0.45));
}
.nav-hub-menu a {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 12.5px;
  padding: 9px 11px;
  border-radius: var(--radius-sm, 10px);
  white-space: nowrap;
  width: 100%;
  border: 1px solid transparent;
}
.nav-hub-menu a:hover { background: var(--surface-2, #f4efe7); }
.nav-hub-menu a[aria-current="page"] { background: var(--ink); color: #fff; }

/* Mobile : la nav défile horizontalement → on sort le menu du flux de scroll
   pour qu'il ne soit pas rogné (panneau pleine largeur sous l'en-tête). */
@media (max-width: 640px) {
  .nav-hub > summary { font-size: 13px; min-height: 40px; display: inline-flex; align-items: center; }
  .nav-hub-menu {
    position: fixed;
    left: 8px; right: 8px;
    top: auto;
    min-width: 0;
  }
}

.clock {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  min-width: 100px;
  text-align: right;
}

main { padding: 0; }

.container {
  width: 100%;
  padding: 0 32px;
}

/* Typography */
h1, h2, h3 {
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.15;
}

h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

h1 em, h2 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

p { margin: 0; }

/* Home */
.home-hero {
  padding: 52px 32px 30px;
  border-bottom: none;
}

.home-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.home-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-strong);
}

.home-hero p {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.02em;
  max-width: 62ch;
}

.home-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 32px 8px;
  border-bottom: none;
}

.home-tile {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 150px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.home-tile strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.home-tile-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 6px;
}

.home-tile-hint {
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.home-shortcuts-head {
  padding: 28px 32px 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.home-shortcuts-head h2 {
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 900;
}

.home-shortcuts-head .eyebrow { margin-bottom: 0; }

.home-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 32px 36px;
  border-top: none;
  border-bottom: none;
}

.home-shortcut {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  min-height: 116px;
}

.home-shortcut:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.home-shortcut.accent { background: var(--accent-soft); border-color: #ddcdf8; }
.home-shortcut.accent:hover { border-color: var(--accent); }

.home-shortcut-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-shortcut-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.home-shortcut-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: auto;
}

.home-shortcut-ext {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.home-shortcut-ext::after { content: "↗"; }

.home-next {
  margin: 0 32px 24px;
  padding: 22px 28px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.home-next-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.home-next-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.home-next strong {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.home-next span.home-next-date {
  color: #ccc;
  font-size: 13px;
  word-break: break-word;
}

/* Page head */
.page-head {
  padding: 34px 32px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.page-head-copy { flex: 1 1 auto; min-width: 240px; }

.page-head-copy h1 {
  font-family: var(--font-display);
  font-size: 33px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.page-head-copy h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-strong);
}

.page-head-copy p {
  color: var(--muted);
  font-size: 13px;
  max-width: 60ch;
}

.page-head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* Uniformise la hauteur des contrôles compacts (barres d'actions / toolbars).
   La règle globale `input,select,textarea { min-height: 44px }` est explicitement
   neutralisée ici pour garder une hauteur cohérente de 36px. */
.page-head-actions .btn,
.page-head-actions select,
.page-head-actions input,
.page-head-actions input[type="search"],
.page-head-actions a.btn,
.panel-actions .btn,
.panel-actions select,
.panel-actions input,
.panel-actions input[type="search"],
.panel-actions a.btn,
.search-toolbar .field-inline select,
.search-toolbar .field-inline input {
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  width: auto;
  padding: 0 12px;
  line-height: 1;
  font-size: 13px;
  box-sizing: border-box;
}
.page-head-actions input,
.panel-actions input {
  -webkit-appearance: none;
  appearance: none;
}
.page-head-actions select,
.panel-actions select {
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  font-size: 13px;
  width: auto;
  max-width: 220px;
  flex: 0 0 auto;
}

.page-body {
  padding: 28px 32px 60px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 18px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.btn:hover { background: var(--panel); border-color: var(--ink); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.btn-danger {
  background: var(--surface);
  border-color: var(--red);
  color: var(--red);
}

.btn-danger:hover {
  background: var(--red);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--panel);
  border-color: var(--muted);
}

.btn-sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 10px;
}

.form-actions, .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* Panels */
.panel {
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.panel + .panel { margin-top: 16px; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.panel-head h2, .panel-head h3 { flex: 0 0 auto; }

.panel-head h2, .panel-head h3 {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.panel-intro {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.section { margin-bottom: 24px; }

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.section-title h2 {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-title p {
  color: var(--muted);
  font-size: 12px;
}

/* Forms */
input[type="search"],
input[type="text"],
input[type="url"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="datetime-local"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 44px;
}

select {
  font-weight: 700;
  cursor: pointer;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(138, 95, 214, 0.16);
}

input::placeholder { color: #b6ab9d; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > span {
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.editor-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.form-message {
  min-height: 18px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-message.ok { color: var(--green); }
.form-message.err { color: var(--red); }

/* Big search (CRM) */
.search-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 4px 0 14px;
  line-height: 1.1;
}

/* Multi-select (champ CRM multipleSelects) — liste de cases à cocher */
.cf-multi { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 6px 0; max-height: 160px; overflow: auto; }
.cf-multi-opt { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: 0; }

.search-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.search-wrap {
  flex: 1;
  min-width: 280px;
  position: relative;
}

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

.search-input {
  width: 100%;
  padding: 15px 16px 15px 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 16px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(138, 95, 214, 0.14); }
.search-input::placeholder { color: #b6ab9d; font-weight: 400; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
}

.segmented button,
.filter-chip {
  padding: 8px 14px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease;
  min-height: 32px;
}

.filter-chip {
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 36px;
  margin: 0;
}

.filter-chip:hover,
.segmented button:hover,
.filter-chip.active,
.segmented button.active {
  background: var(--ink);
  color: #fff;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.status-line {
  min-height: 18px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-line.ok { color: var(--green); }
.status-line.err { color: var(--red); }

/* Badges */
.badge-shell {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-internal { background: var(--ink); color: #fff; }
.badge-external { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.badge-airtable { background: var(--accent); color: #fff; }
.badge-green { background: var(--green); color: #fff; }
.badge-orange { background: var(--orange); color: #fff; }
.badge-red { background: var(--red); color: #fff; }

/* Results list */
.results,
.sync-list,
.salons-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.result-card,
.sync-row,
.salon-row {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
  transition: background 0.15s ease;
}

.result-card:last-child,
.sync-row:last-child,
.salon-row:last-child {
  border-bottom: none;
}

.result-card {
  cursor: pointer;
}

.result-card:hover { background: #f8f4ed; }

.result-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.result-head-main {
  min-width: 0;
  flex: 1;
}

.result-name {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.result-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.result-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.result-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px 20px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.result-card.collapsed .result-details,
.result-card.collapsed .result-edit { display: none; }

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.detail-item span:first-child {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-item span:last-child,
.detail-item a {
  font-size: 13px;
  word-break: break-word;
}

.detail-item a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  background: var(--surface);
}

.stats-grid > div {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.stats-grid > div:last-child { border-right: none; }

.stats-grid .num {
  display: block;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stats-grid .lbl {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Sync */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filters label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.filters input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.search-filters {
  margin-top: -4px;
  margin-bottom: 12px;
}

.sync-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.sync-row.done { opacity: 0.55; }

.row-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.row-title {
  font-size: 15px;
  font-weight: 900;
}

.row-email,
.row-meta {
  color: var(--muted);
  font-size: 12px;
}

.row-badges,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.row-actions { justify-content: flex-end; }

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.inline-form select {
  width: auto;
  min-width: 200px;
}

/* Empty */
.empty-state,
.loading-card {
  padding: 32px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: #f8f5ef;
  border: 1px solid var(--line-soft);
}

.loading-card {
  background: var(--surface);
  border: 1px solid var(--line);
}

/* Highlight (next event) */
.highlight-card {
  padding: 22px 24px;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.highlight-card .eyebrow {
  color: var(--accent);
  margin-bottom: 0;
}

.highlight-card strong {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.highlight-card .btn {
  background: var(--surface);
  color: #000;
  border-color: #fff;
}

.highlight-card .btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.highlight-meta,
.event-meta,
.salon-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: #ccc;
  font-size: 12px;
}

.event-meta, .salon-meta { color: var(--muted); }

/* Events grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border: none;
}

.event-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.event-media {
  aspect-ratio: 16 / 9;
  background: var(--panel-strong);
  overflow: hidden;
}

.event-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  flex: 1;
}

.event-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.event-date {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-title {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.event-description,
.salon-description {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

/* Salons */
.salon-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: flex-start;
  padding: 18px 20px;
}

.salon-date-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.salon-date-block strong {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.salon-date-block .hero-stat-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.salon-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.salon-name {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.partner-card {
  display: block;
  margin-bottom: 14px;
  padding: 14px 18px;
  background: var(--ink);
  color: #fff;
}

.partner-card .eyebrow {
  color: var(--accent);
  margin-bottom: 4px;
}

.partner-card strong {
  font-size: 15px;
  font-weight: 900;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(33, 29, 25, 0.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--surface);
  padding: 32px;
  max-width: 560px;
  width: 100%;
  position: relative;
  animation: fadeUp 0.25s ease;
  max-height: min(90vh, 760px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modal h2 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.modal p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  transition: color 0.15s;
}

.modal-close:hover { color: var(--ink); }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--ink);
  color: #fff;
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 9999;
  transition: transform 0.3s ease;
  max-width: min(92vw, 640px);
}

.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }

/* Notion */
.notion-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1.45fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}

.notion-workspace > .panel {
  border: none;
  padding: 22px 24px;
}

.notion-workspace > .panel:first-child {
  border-right: 1px solid var(--line);
  background: var(--panel);
}

.notion-preview-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.notion-search-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.notion-inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notion-empty-state {
  padding: 48px 20px;
  text-align: center;
  border: 1px dashed var(--line-soft);
  background: var(--panel);
  margin-top: 12px;
}

.notion-empty-shell strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.notion-empty-shell p {
  color: var(--muted);
  font-size: 13px;
}

.notion-preview-wrap { margin-top: 14px; }

.notion-page {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 44px 56px;
  min-height: 480px;
}

.notion-print-header { display: none; }

.n-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 10px;
}

.n-cover {
  width: calc(100% + 112px);
  margin: -44px -56px 24px;
  max-height: 260px;
  object-fit: cover;
}

.n-icon {
  display: block;
  margin-bottom: 10px;
  font-size: 38px;
  line-height: 1;
}

.n-meta {
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.n-p, .n-li, .n-quote, .n-callout {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
}

.n-p { margin: 0 0 8px; min-height: 1.65em; }

.n-h1, .n-h2, .n-h3 {
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.n-h1 { margin: 26px 0 8px; font-size: 26px; line-height: 1.1; }
.n-h2 { margin: 22px 0 8px; font-size: 20px; line-height: 1.15; padding-bottom: 6px; border-bottom: 1px solid var(--line-soft); }
.n-h3 { margin: 16px 0 6px; font-size: 17px; line-height: 1.2; }

.n-toc {
  margin: 18px 0 22px;
  padding: 14px 16px 14px 18px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  border-left: 3px solid var(--accent);
}

.n-toc-list { list-style: none; margin: 0; padding: 0; }
.n-toc-item { margin: 2px 0; }
.n-toc-item.n-toc-l2 { padding-left: 16px; }
.n-toc-item.n-toc-l3 { padding-left: 32px; }

.n-toc-link {
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.15s ease;
}

.n-toc-link:hover { border-bottom-color: var(--accent); }
.n-toc-empty { font-size: 12px; color: var(--muted); margin: 0; }

.n-ul, .n-ol { margin: 0 0 8px; padding-left: 22px; }
.n-li { margin-bottom: 4px; }

.n-todo {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.65;
}

.n-todo.checked span {
  color: var(--muted);
  text-decoration: line-through;
}

.n-toggle { margin-bottom: 8px; }
.n-toggle summary {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
}
.n-toggle summary::before { content: "›"; font-weight: 700; }
.n-toggle[open] summary::before { transform: rotate(90deg); }
.n-toggle-body { padding-left: 22px; margin-top: 4px; }

.n-quote { margin: 12px 0; padding: 6px 14px; border-left: 3px solid var(--ink); }

.n-callout {
  display: flex;
  gap: 10px;
  margin: 12px 0;
  padding: 14px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
}

.n-callout-icon { width: 22px; flex: 0 0 22px; font-weight: 700; }

.n-divider { margin: 20px 0; border: none; border-top: 1px solid var(--line-soft); }

.n-code-lang { margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.n-code {
  margin: 0 0 14px;
  padding: 14px;
  background: var(--ink);
  color: #fff;
  overflow-x: auto;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre;
}

.n-image { margin: 12px 0; }
.n-image img { width: 100%; }
.n-image figcaption { margin-top: 6px; color: var(--muted); font-size: 12px; text-align: center; }

.n-bookmark {
  display: block;
  margin: 10px 0;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.n-bookmark-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.n-bm-url {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.n-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  margin: 14px 0;
}

.n-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.n-table td, .n-table th {
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.n-table tr:first-child td { background: var(--panel); font-weight: 700; }

.n-columns { display: flex; gap: 20px; margin: 10px 0; }
.n-column { flex: 1 1 0; min-width: 0; }

.n-child-page {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  font-size: 14px;
  font-weight: 700;
}

.n-child-page::before {
  content: "Page";
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rt-bold { font-weight: 700; }
.rt-italic { font-style: italic; }
.rt-strike { text-decoration: line-through; }
.rt-underline { text-decoration: underline; }
.rt-code {
  padding: 1px 5px;
  background: var(--panel);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
}
.rt-link { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }

.color-gray { color: #6d6d6d; }
.color-brown { color: #8d5c49; }
.color-orange { color: #bf5d10; }
.color-yellow { color: #9b7a00; }
.color-green { color: #0d6a43; }
.color-blue { color: #145f9b; }
.color-purple { color: #5e48a5; }
.color-pink { color: #a33a7b; }
.color-red { color: #a6291e; }

.bg-gray, .block-gray { background: var(--panel-strong); padding: 1px 4px; }
.bg-brown { background: #f3ebe7; padding: 1px 4px; }
.bg-orange, .block-orange { background: #f8ebe1; padding: 1px 4px; }
.bg-yellow, .block-yellow { background: #f6f0d6; padding: 1px 4px; }
.bg-green, .block-green { background: #e3f0e8; padding: 1px 4px; }
.bg-blue, .block-blue { background: #e3edf6; padding: 1px 4px; }
.bg-purple, .block-purple { background: #ece9f8; padding: 1px 4px; }
.bg-pink, .block-pink { background: #f5e7ef; padding: 1px 4px; }
.bg-red, .block-red { background: #f6e1df; padding: 1px 4px; }

.compact-results { min-height: 0; border: 1px solid var(--line-soft); }
.compact-results .result-card { padding: 10px 14px; }

.notion-search-card {
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: none;
  font-family: inherit;
}

.mini-card-button {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: inherit;
  padding: 16px 18px;
}

.inline-link {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Footer */
.site-footer {
  padding: 18px 32px;
  border-top: 1px solid var(--line);
  background: transparent;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-footer-tools {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.footer-link {
  border: none;
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  font-weight: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.desktop-status { font-size: 9px; letter-spacing: 0.1em; }
.desktop-status.ok { color: var(--green); }
.desktop-status.err { color: var(--red); }

.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

/* Print */
@media print {
  @page { size: A4; margin: 14mm 16mm 18mm; }
  body[data-page="notion"] { background: var(--surface); }
  body[data-page="notion"] .site-header,
  body[data-page="notion"] .site-footer,
  body[data-page="notion"] .page-head,
  body[data-page="notion"] .notion-workspace > .panel:first-child,
  body[data-page="notion"] .notion-preview-actions,
  body[data-page="notion"] .notion-inline-meta {
    display: none !important;
  }
  body[data-page="notion"] main,
  body[data-page="notion"] .container,
  body[data-page="notion"] .notion-workspace,
  body[data-page="notion"] .notion-preview-panel {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body[data-page="notion"] .notion-preview-wrap { margin: 0 !important; }
  body[data-page="notion"] .notion-print-header {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #d8d8d8;
    color: #777;
    font-size: 10px;
    text-align: right;
  }
  body[data-page="notion"] .notion-page {
    border: none !important;
    padding: 0 !important;
    min-height: 0 !important;
  }
  body[data-page="notion"] .n-code {
    background: var(--panel) !important;
    color: #111 !important;
    white-space: pre-wrap !important;
    word-break: break-word;
  }
  body[data-page="notion"] .n-table-wrap {
    overflow: visible !important;
  }
  body[data-page="notion"] .n-table {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .home-tiles,
  .home-shortcuts { grid-template-columns: repeat(2, 1fr); }
  .notion-workspace { grid-template-columns: 1fr; }
  .notion-workspace > .panel:first-child { border-right: none; border-bottom: 1px solid var(--line); }
  .events-grid { grid-template-columns: 1fr; }
  .form-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header,
  .page-head,
  .page-body,
  .home-hero,
  .home-shortcuts-head,
  .home-next,
  .site-footer { padding-left: 18px; padding-right: 18px; }
  .container { padding: 0 18px; }
  .home-tiles,
  .home-shortcuts,
  .form-grid { grid-template-columns: 1fr; }
  .home-tiles,
  .home-shortcuts { padding-left: 18px; padding-right: 18px; }
  .home-status,
  .home-next { margin-left: 18px; margin-right: 18px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid > div:nth-child(2n) { border-right: none; }
  .salon-row,
  .sync-row { grid-template-columns: 1fr; }
  .row-actions { justify-content: flex-start; }
  .search-input { font-size: 15px; padding: 13px 14px 13px 40px; }
  .notion-page { padding: 28px 22px; }
  .n-cover { width: calc(100% + 44px); margin: -28px -22px 18px; }
  .site-header-inner { flex-direction: column; align-items: flex-start; }
  /* Le menu passait en défilement horizontal invisible : on replie plutôt
     les entrées sur plusieurs lignes, toutes visibles et tapables. */
  .main-nav { width: 100%; flex-wrap: wrap; }
  .main-nav a { flex-shrink: 0; flex-grow: 1; text-align: center; }
  .n-columns { flex-direction: column; }
}

/* ─── Contacts toolbar ───────────────────────────────────────────────── */
.search-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
}

.field-inline {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-inline > span {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.field-inline > select {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  font-size: 13px;
  min-width: 180px;
  max-width: 280px;
  box-sizing: border-box;
  -webkit-appearance: menulist;
  appearance: menulist;
}

.search-toolbar-checks {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
}

.search-toolbar-checks label { display: inline-flex; align-items: center; gap: 4px; }

/* ─── Admin tabs / lists / modal ─────────────────────────────────────── */
.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin-tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 12px 18px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.admin-tab:hover { color: var(--ink); }

.admin-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.panel-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.admin-search {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  font-size: 13px;
  min-width: 200px;
  max-width: 320px;
  flex: 1 1 200px;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}
.admin-search::-webkit-search-decoration,
.admin-search::-webkit-search-cancel-button { -webkit-appearance: none; }
input[type="search"].admin-search { line-height: normal; }

.admin-search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.admin-row {
  display: flex;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line-soft);
  align-items: flex-start;
}

.admin-row-main { flex: 1; min-width: 0; }

.admin-row-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.admin-row-title strong { font-size: 15px; }

.admin-row-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.admin-row-desc {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-row-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.admin-empty {
  padding: 28px 4px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.admin-empty-error { color: var(--red); }

.admin-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

/* Modal */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-modal[hidden] { display: none; }

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33, 29, 25, 0.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.admin-modal-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.22s ease;
}

.admin-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.admin-modal-head h3 {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-modal-close {
  background: transparent;
  border: 0;
  font-size: 24px;
  line-height: 1;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.admin-modal-card form {
  padding: 20px;
}

.admin-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--line-soft);
}

.admin-modal-card .form-message { padding: 0 20px 16px; }

.field-full { grid-column: 1 / -1; }

.field-hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

/* ─── Écoles : calendrier façon source HTML ──────────────────────────── */
.ec-cal-tagline {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.ec-cal-context {
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 720px;
}

.ec-rec-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  margin-bottom: 18px;
}

.ec-rec-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.ec-rec-select {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 700;
}

.ec-rec-result {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 240px;
}

.ec-rec-empty {
  font-size: 12px;
  color: var(--muted);
}

.ec-rec-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.ec-rec-chip img { height: 18px; width: auto; }
.ec-rec-chip span { font-size: 9px; color: var(--muted); letter-spacing: 0.06em; }
.ec-rec-chip.is-pri { border-color: var(--green); }
.ec-rec-chip.is-sec { border-color: var(--orange); }
.ec-rec-chip:hover { background: var(--panel); }

.ec-cal-strip {
  display: grid;
  grid-template-columns: 200px repeat(12, 1fr);
  gap: 4px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.ec-cal-strip-lead { /* spacer */ }

.ec-cal-strip-cell {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s ease, background 0.15s ease;
}

.ec-cal-strip-cell:hover { color: var(--ink); background: #f8f5ef; }
.ec-cal-strip-cell.is-cur { color: #fff; background: var(--ink); }

.ec-cards { display: flex; flex-direction: column; gap: 8px; }

.ec-card {
  border: 1px solid var(--line-soft);
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ec-card.is-open { border-color: var(--ink); box-shadow: var(--shadow-sm); }

.ec-card-hdr {
  display: grid;
  grid-template-columns: 60px 1fr auto 24px;
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
}

.ec-card-hdr:hover { background: #f8f5ef; }

.ec-card-logo {
  height: 44px;
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line-soft);
  padding-right: 10px;
}

.ec-card-logo img { max-height: 36px; max-width: 56px; object-fit: contain; }
.ec-card-logo span { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-align: center; }

.ec-card-info strong {
  display: block;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.ec-card-sub {
  margin-top: 4px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.ec-card-contact { font-size: 12px; }

.ec-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
}

.ec-tag-stage { color: #14613a; border-color: #14613a; }
.ec-tag-alt { color: #92501a; border-color: #92501a; }

.ec-card-chev {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.ec-card-bars {
  border-top: 1px solid var(--line-soft);
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ec-bar-row {
  display: grid;
  grid-template-columns: 200px repeat(12, 1fr);
  gap: 4px;
  align-items: center;
}

.ec-bar-lbl {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ec-bar-type {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ec-bar-type-detail { color: var(--muted); font-weight: 500; }
.ec-bar-meta { font-size: 9px; color: var(--muted); letter-spacing: 0.06em; }
.ec-bar-bac { font-weight: 800; color: var(--ink); font-size: 10px; }

.ec-cell {
  height: 18px;
  border-radius: 2px;
  cursor: pointer;
  transition: filter 0.12s ease, transform 0.12s ease;
}

.ec-cell:hover { transform: translateY(-1px); filter: brightness(1.05); outline: 1px solid var(--accent); }
.ec-cell.is-cur { outline: 2px solid var(--ink); outline-offset: 0; }

.ec-cell-v0 { background: #ece7dd; }
.ec-cell-v1 { background: #ffd591; }
.ec-cell-v2 { background: #4cc26d; }
.ec-cell-start { background: #2a8a4a; }
.ec-cell-ongoing { background: #cdebd5; }

.ec-bar-detail .ec-cell { height: 12px; }

.ec-bar-foot {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.ec-bar-tel { font-family: monospace; }

@media (max-width: 720px) {
  .ec-cal-strip,
  .ec-bar-row { grid-template-columns: 100px repeat(12, 1fr); }
  .ec-card-hdr { grid-template-columns: 48px 1fr 24px; gap: 10px; }
  .ec-card-hdr .btn { display: none; }
}

.ec-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
}

.ec-tag {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--panel-strong);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.ec-months {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.ec-months-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.ec-month-input {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
}

.ec-month-input span {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ec-month-input select {
  height: 32px;
  padding: 0 4px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  font-size: 13px;
}

/* ─── Check-in ──────────────────────────────────────────────────────── */
.ck-event-select {
  min-width: 240px;
  max-width: 360px;
  font-weight: 700;
}

.ck-actions-sep {
  display: inline-block;
  width: 1px;
  height: 24px;
  background: var(--line-soft);
  margin: 0 6px;
  align-self: center;
}
@media (max-width: 720px) {
  .ck-actions-sep { display: none; }
  .ck-event-select { min-width: 0; max-width: 100%; width: 100%; }
  .clock { display: none; }
  .home-ops { grid-template-columns: 1fr; }
  .page-head-actions { width: 100%; }
  .admin-tabs { overflow-x: auto; white-space: nowrap; flex-wrap: nowrap; }
}

.sync-help-card {
  padding: 18px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  margin-top: 12px;
}
.sync-help-card strong { font-size: 14px; }
.sync-help-card p { margin: 6px 0; font-size: 13px; }
.sync-help-card ol { margin: 10px 0 10px 22px; }
.sync-help-card li { font-size: 13px; margin: 4px 0; }
.sync-help-card a { color: var(--accent); font-weight: 700; }
.sync-help-card a:hover { text-decoration: underline; }
.sync-help-small { color: var(--muted); font-size: 12px; }

.toast-host {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast-bubble {
  background: var(--ink);
  color: #fff;
  padding: 11px 18px;
  font-size: 13px;
  letter-spacing: 0.04em;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.15s ease, transform 0.18s ease;
  pointer-events: auto;
  max-width: 320px;
}
.toast-bubble.show { opacity: 1; transform: translateY(0); }
.toast-action {
  background: transparent;
  border: 0;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 12px;
  cursor: pointer;
  padding: 0;
}
.toast-action:hover { color: var(--accent); }
.toast-bubble.toast-ok { border-color: var(--green); }
.toast-bubble.toast-err { background: var(--red); border-color: var(--red); }

.ck-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.optional-marker {
  font-style: normal;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

.ck-stats {
  border: 1px solid var(--line);
  margin-bottom: 24px;
}

.ck-stat-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.ck-stat-head strong { font-size: 15px; }

.ck-stat-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.ck-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.ck-stat {
  padding: 16px 18px;
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ck-stat:last-child { border-right: none; }
.ck-stat span { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ck-stat small { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.ck-stat-ok span { color: var(--green); }
.ck-stat-warn span { color: var(--orange); }

.ck-guest-row[data-status="arrived"] { background: rgba(0, 200, 83, 0.04); }
.ck-guest-row[data-status="noshow"] { background: rgba(255, 145, 0, 0.04); }
/* Nom d'invité cliquable → aperçu du badge */
.ck-guest-name { cursor: pointer; text-decoration: underline; text-decoration-color: var(--line, #ccc); text-underline-offset: 3px; }
.ck-guest-name:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* Aperçu du badge (overlay plein écran) */
.ck-badge-preview {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.ck-badge-preview[hidden] { display: none; }
.ck-badge-preview-card {
  background: var(--surface); border: 1px solid var(--line);
  max-width: 520px; width: 100%; max-height: 90vh;
  display: flex; flex-direction: column;
}
.ck-badge-preview-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.ck-badge-preview-body { padding: 16px; overflow: auto; text-align: center; }
.ck-badge-preview-canvas { max-width: 100%; height: auto; border: 1px solid var(--line); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12); }

.ck-guest-actions { flex-wrap: wrap; gap: 4px; }

#ck-quickadd-form .field input,
#ck-quickadd-form .field select {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
}

.checkin-event-select { min-width: 280px; }

.ck-export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.ck-export-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
}

.ck-export-card.ck-export-ok { border-left: 3px solid var(--green); }
.ck-export-card.ck-export-warn { border-left: 3px solid var(--orange); }

.ck-export-card strong {
  font-size: 13px;
  letter-spacing: 0.04em;
}

.ck-export-count {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ck-export-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.ck-global-banner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  margin-bottom: 12px;
}
.ck-global-banner strong { font-size: 14px; }
.ck-global-banner span { font-size: 12px; color: var(--muted); }

.ck-requests-bulk {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.ck-bulk-sep {
  width: 1px;
  align-self: stretch;
  min-height: 20px;
  background: var(--line-soft);
}

.ck-bulk-progress {
  font-size: 12px;
  color: var(--muted, #666);
  font-variant-numeric: tabular-nums;
}

.ck-cat-add {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}
.ck-cat-add select,
.ck-cat-add input {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: inherit;
}
.ck-cat-add input { flex: 1; min-width: 220px; }
.ck-file-btn { cursor: pointer; display: inline-flex; align-items: center; }
.ck-event-bg {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
}
.ck-event-bg #ck-event-bg-status { display: inline-flex; align-items: center; gap: 12px; }

/* Miniature du fond de badge actuel (événement + par catégorie) */
.ck-bg-thumb {
  width: 52px;
  height: 36px;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  flex: 0 0 auto;
  background: var(--panel);
  align-self: center;
  margin-right: 12px;
}
.ck-event-bg .ck-bg-thumb { width: 66px; height: 46px; margin-right: 0; }
.ck-bg-none { display: inline-flex; align-items: center; justify-content: center; color: #c4b9a9; }

.ck-req-check {
  margin-right: 12px;
  align-self: center;
}

.ck-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* ─── Presse ─────────────────────────────────────────────────────────── */
.presse-stats { margin-bottom: 24px; }
.presse-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border: 1px solid var(--line);
}
.presse-stat {
  padding: 14px 16px;
  border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 2px;
}
.presse-stat:last-child { border-right: none; }
.presse-stat span { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.presse-stat small { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.presse-stat-ok span { color: var(--green); }

.presse-stat-tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.presse-stat-tags > div { display: flex; flex-direction: column; gap: 8px; }
.presse-stat-label {
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--muted);
}
.presse-stat-row { display: flex; gap: 6px; flex-wrap: wrap; }
.presse-tag {
  display: inline-flex; gap: 6px; align-items: center;
  padding: 4px 10px; background: var(--surface); border: 1px solid var(--line-soft);
  font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700;
}
.presse-tag em { font-style: normal; color: var(--accent); font-weight: 800; }

.presse-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.presse-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.presse-card:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.presse-card.is-mention { border-left: 3px solid var(--accent); }
.presse-card-img {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--panel);
  overflow: hidden;
}
.presse-card-img img { width: 100%; height: 100%; object-fit: cover; }
.presse-card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.presse-card-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.presse-card-date { font-size: 11px; color: var(--muted); }
.presse-card-title { font-size: 15px; line-height: 1.3; font-weight: 700; }
.presse-card-title a { color: var(--ink); text-decoration: none; }
.presse-card-title a:hover { color: var(--accent); }
.presse-card-summary {
  font-size: 13px; color: var(--ink); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.presse-card-foot {
  display: flex; gap: 6px; flex-wrap: wrap;
  font-size: 11px; color: var(--muted);
  border-top: 1px solid var(--line-soft); padding-top: 10px;
}
.presse-card-link { color: var(--accent); font-weight: 700; text-decoration: none; margin-left: auto; }
.presse-card-link:hover { text-decoration: underline; }

.presse-notion-summary {
  display: flex; gap: 12px; align-items: baseline;
}

.salon-deadline-urgent {
  color: var(--red) !important;
  font-weight: 700;
}

/* ─── Homepage operational widgets ───────────────────────────────────── */
.hero-name-btn {
  background: transparent;
  border: 0;
  border-bottom: 1px dashed var(--muted);
  color: var(--muted);
  font: inherit;
  font-style: italic;
  font-weight: 300;
  padding: 0 2px;
  cursor: pointer;
}
.hero-name-btn:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Pastille de santé des automatisations (synchros, sauvegardes) — l'audit a
   montré des pannes silencieuses de plusieurs jours : l'état est désormais
   TOUJOURS visible sur l'accueil, y compris quand tout va bien. */
.home-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 32px 14px;
  padding: 10px 16px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  font-size: 13px;
  color: var(--muted);
}
.home-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.home-status.err { border-color: var(--red); color: var(--ink); background: #fff5f6; }
.home-status.err .home-status-dot { background: var(--red); }
.home-status.boot .home-status-dot { background: var(--orange); }
.home-status-link { margin-left: auto; color: inherit; font-weight: 700; white-space: nowrap; }

.home-ops {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 0 32px 18px;
}
.home-ops-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.home-ops-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.home-ops-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.home-ops-value {
  font-size: 32px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.home-ops-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}
.home-ops-hint {
  font-size: 12px;
  color: var(--muted);
}
#home-ops-pending .home-ops-value { color: var(--accent); }

@media (max-width: 720px) {
  .home-ops { margin: 0 18px 16px; }
}

/* ─── Homepage news header ───────────────────────────────────────────── */
.home-news {
  border: 1px solid var(--line);
  background: var(--panel);
  margin: 0 32px 24px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.home-news-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.home-news-head strong { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.home-news-head a { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.home-news-head a:hover { color: var(--ink); }
.home-news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.home-news-item {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  text-decoration: none; color: var(--ink);
  transition: border-color 0.15s ease;
}
.home-news-item:hover { border-color: var(--ink); }
.home-news-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 10px; color: var(--muted); }
.home-news-source { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.home-news-title { font-size: 13px; line-height: 1.35; font-weight: 700; }

@media (max-width: 720px) {
  .home-news { margin: 0 18px 18px; }
  .home-news-list { grid-template-columns: 1fr; }
  .presse-stat-tags { grid-template-columns: 1fr; }
}



/* Synchro CRM unifiée */
.sync-hint { font-size: 12px; color: var(--muted); align-self: center; }
.sync-warnings { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.sync-warning {
  font-size: 12.5px;
  color: var(--ink);
  background: rgba(184, 134, 11, 0.10);
  border: 1px solid rgba(184, 134, 11, 0.35);
  border-radius: 8px;
  padding: 8px 12px;
}

/* ═══ Refonte 2026 — couche de finition (additive, mêmes sélecteurs) ═══ */
.search-toolbar, .ec-rec-bar, .ck-event-bg, .ck-requests-bulk, .ck-global-banner,
.sync-help-card, .empty-state, .loading-card, .notion-empty-state, .n-toc,
.mini-card-button, .n-bookmark, .home-ops-card, .home-news-item,
.ck-export-card, .ec-card, .compact-results, .presse-tag, .ec-rec-chip {
  border-radius: var(--radius-sm);
}
.highlight-card, .partner-card, .home-news, .ck-stats, .presse-stat-grid,
.notion-workspace, .presse-card, .ck-badge-preview-card, .events-grid .event-card {
  border-radius: var(--radius);
}
.ck-stats, .presse-stat-grid, .notion-workspace, .presse-card, .compact-results {
  overflow: hidden;
}
.home-status { border-radius: var(--radius-pill); }
.highlight-card, .partner-card { box-shadow: var(--shadow-sm); }
.home-ops-card { box-shadow: var(--shadow-sm); }
.home-ops-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.presse-card { transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.presse-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.ec-card.is-open { box-shadow: var(--shadow-sm); }
.toast { border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.admin-tab.is-active { border-bottom-width: 2px; }
.ck-tab-badge { background: var(--accent-strong); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.section-title { border-bottom-color: var(--line-soft); }
.eyebrow { color: var(--accent-strong); }
.field > span, .field-inline > span { color: var(--muted); }
.empty-state { border-style: dashed; }
.n-quote { border-left-color: var(--accent); }
.home-shortcut-ext { color: var(--accent-strong); }
.clock { font-weight: 700; color: var(--muted); font-size: 18px; }

/* ─── Accueil : actions rapides (refonte 2026) ───────────────────────── */
.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 32px 28px;
}
.home-action {
  display: inline-flex;
  align-items: center;
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.12s ease;
}
.home-action:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}
@media (max-width: 720px) {
  .home-actions { padding: 0 18px 20px; }
}

/* Recherche CRM : séparation Personnes / Entités */
.results-group-title {
  margin: 18px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line, #e3dcd2);
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--muted, #6e655c);
}
.results-group-title:first-child { margin-top: 4px; }

/* Fiche CRM : champs riches en pastilles */
.detail-item-full { grid-column: 1 / -1; }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.data-chip {
  display: inline-block; padding: 2px 9px; border-radius: var(--radius-pill);
  font-size: 12px; line-height: 1.5; border: 1px solid transparent;
}
.data-chip.chip-nl { background: #eef4ff; border-color: #cfe0ff; color: #2c4a8a; }
.data-chip.chip-attended { background: #eaf7ec; border-color: #c4e9cb; color: #2c6b3a; }
.data-chip.chip-interested { background: #fff4e6; border-color: #ffd9a8; color: #8a5a17; }
.data-chip.chip-tag { background: #f3eefb; border-color: #ddd0f2; color: #5a3a8a; }
.data-chip.chip-ok { background: #eaf7ec; border-color: #c4e9cb; color: #2c6b3a; }

/* ── Tableau de bord marketing (CRM) ───────────────────────────────────── */
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dash-head-actions { display: flex; align-items: center; gap: 12px; }
#dashboard-panel[aria-busy="true"] #dash-body { opacity: .45; }
.dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0 18px; }
.kpi-card { background: var(--surface, #fff); border: 1px solid var(--border, #e7e2d6); border-radius: 14px; padding: 14px 16px; }
.kpi-value { font-size: 26px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-label { font-size: 13px; color: var(--muted, #6b6457); margin-top: 2px; }
.kpi-hint { font-size: 11px; color: var(--muted, #9a9384); margin-top: 4px; }
.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.dash-card { background: var(--surface, #fff); border: 1px solid var(--border, #e7e2d6); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.dash-card-wide { grid-column: 1 / -1; }
.dash-card h3 { font-size: 14px; margin: 0 0 10px; font-weight: 600; }
.dash-bars { display: flex; flex-direction: column; gap: 8px; }
.dash-bar-row { display: grid; grid-template-columns: 180px 1fr 48px; align-items: center; gap: 10px; }
.dash-bar-label { font-size: 13px; color: var(--ink, #2c2722); }
.dash-bar-track { background: var(--panel-strong); border-radius: var(--radius-sm); height: 10px; overflow: hidden; }
.dash-bar-fill { display: block; height: 100%; background: var(--accent); border-radius: var(--radius-sm); }
.dash-bar-count { font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted, #6b6457); }
.dash-engaged, .dash-events { display: flex; flex-direction: column; gap: 6px; }
.dash-engaged-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; cursor: pointer; }
.dash-engaged-row:hover { background: #faf7ee; }
.dash-engaged-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-engaged-name em { color: var(--muted, #9a9384); font-style: normal; }
.dash-engaged-segs { display: flex; gap: 4px; }
.dash-event-row { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 10px; }
.dash-event-row span { font-size: 12px; color: var(--muted, #6b6457); }
.kpi-badge { display: inline-block; background: var(--ink); color: #fff; border-radius: var(--radius-pill); padding: 1px 9px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
/* Pastilles de niveau : fond clair teinté + texte foncé (lisibilité AA, dans
   l'esprit « Maison » ivoire). Le rouge plein blanc était illisible. */
.kpi-badge-chaud { background: #fae3df; color: #9a1b0d; border: 1px solid #eeb4ab; font-weight: 700; }
.kpi-badge-tiède { background: #fceccf; color: #8a4b00; border: 1px solid #efce98; font-weight: 700; }
.kpi-badge-froid { background: #e3edfb; color: #1f4f8f; border: 1px solid #c4d8f1; font-weight: 700; }
.kpi-badge-inactif { background: #ececec; color: #5a544c; border: 1px solid #dcd7cc; font-weight: 700; }
.scorecard .scorecard-breakdown { display: block; font-size: 12px; color: var(--muted, #6b6457); margin: 4px 0; }
@media (max-width: 860px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-bar-row { grid-template-columns: 120px 1fr 40px; }
}

/* ════════════════════════════════════════════════════════════════════════
   OPTIMISATION PETITS APPAREILS (téléphones) — ajout 2026-06-16
   Objectif : fluidité + lisibilité sur petits écrans. Override des règles
   ≤720px (ce bloc est plus bas dans la source → priorité).
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  :root { --radius: 12px; }
  body { -webkit-text-size-adjust: 100%; }

  /* En-tête compact + nav en BARRE HORIZONTALE qui défile (plus de bloc qui
     prend 4 lignes). On swipe la nav, le contenu reste visible immédiatement. */
  .site-header-inner { flex-direction: row; align-items: center; gap: 8px; padding: 8px 12px; }
  .brand-copy { font-size: 15px; }
  .clock { display: none; }
  .main-nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 4px;
    padding-bottom: 2px;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a {
    flex: 0 0 auto;
    flex-grow: 0;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 13px;
    min-height: 40px;        /* cible tactile confortable */
    display: inline-flex;
    align-items: center;
  }

  /* Tout en une colonne (grilles, tuiles, stats, formulaires). */
  .home-tiles, .home-actions, .home-ops, .home-shortcuts,
  .stats-grid, .form-grid, .crm-grid, .dash-grid, .data-grid,
  .cards-grid, .kpi-grid, .panel-grid, [class*="-grid"] {
    grid-template-columns: 1fr !important;
    display: grid;
  }
  .n-columns, .two-col, .split { flex-direction: column !important; }

  /* Marges/paddings resserrés pour gagner de l'espace utile. */
  main, .page-body, .container { padding-left: 12px !important; padding-right: 12px !important; }
  .panel { padding: 14px !important; }
  .page-head h1, h1 { font-size: 22px; }
  h2 { font-size: 18px; }

  /* Tableaux/larges listes → défilement horizontal au lieu de déborder. */
  table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .admin-list, .results, .result-card { max-width: 100%; }

  /* Modales plein écran sur mobile (plus de fenêtre minuscule). */
  .admin-modal-card, .modal { width: 96vw !important; max-width: 96vw !important; max-height: 92vh; }

  /* Cibles tactiles : boutons et champs plus hauts. */
  .btn, button, input, select, textarea { min-height: 42px; font-size: 15px; }
  .btn-sm { min-height: 36px; }

  /* Outils : rail horizontal défilant. */
  .tools-rail { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tool-chip { flex: 0 0 auto; }
}

/* Très petits écrans : on pousse un cran plus loin. */
@media (max-width: 400px) {
  .brand-live { display: none; }
  .main-nav a { font-size: 12px; padding: 7px 10px; }
  .home-action { font-size: 14px; }
}

/* ── Publication du formulaire public (check-in) ─────────────────────────── */
.ck-publish { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.ck-publish-linkrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 6px 0 12px; }
.ck-publish-linkrow input { flex: 1 1 280px; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-size: 13px; }
.ck-publish-linkrow select { padding: 9px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.ck-publish-grid { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.ck-publish-qr { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.ck-publish-qr img { width: 150px; height: 150px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 6px; }
.ck-publish-embed { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ck-publish-embed textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-family: ui-monospace, monospace; font-size: 12px; resize: vertical; }
.ck-publish-stats { margin-top: 12px; color: var(--muted); font-size: 13px; }

/* ── Pipeline commercial (CRM) ───────────────────────────────────────────── */
.pipe-block { margin-bottom: 20px; }
.pipe-title { font-family: var(--font-display); font-size: 16px; margin: 4px 0 10px; }
.pipe-total { font-size: 11px; color: var(--muted); font-family: Arial, sans-serif; font-weight: 400; }
.pipe-cols { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.pipe-col { flex: 0 0 220px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); display: flex; flex-direction: column; max-height: 380px; }
.pipe-col-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; font-weight: 600; font-size: 12px; border-bottom: 1px solid var(--line-soft); }
.pipe-count { flex: none; background: var(--accent); color: #fff; border-radius: var(--radius-pill); padding: 1px 9px; font-size: 11px; }
.pipe-col-body { overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.pipe-card { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 12px; cursor: pointer; color: var(--ink); }
.pipe-card:hover { border-color: var(--accent); }
.pipe-more { font-size: 11px; color: var(--muted); padding: 4px 6px; }

/* ── Connexions / Clés API (Gestion) ─────────────────────────────────────── */
.integ-group { margin-bottom: 18px; }
.integ-group-title { font-family: var(--font-display); font-size: 15px; margin: 6px 0 8px; }
.integ-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 6px; }
.integ-meta { flex: 1; min-width: 0; }
.integ-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.integ-hint { font-size: 11px; color: var(--muted); font-family: ui-monospace, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.integ-row .badge-shell { flex: none; }
.integ-set { flex: none; }

/* ── Accueil : bandeau d'indicateurs (tableau de bord) ───────────────────── */
.home-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 18px; }
.home-kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .12s; }
.home-kpi:hover { border-color: var(--ink); }
.home-kpi-value { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1; }
.home-kpi-label { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.home-kpi.urgent { border-color: var(--red); background: #fdecec; }
.home-kpi.urgent .home-kpi-value { color: var(--red); }
@media (max-width: 720px) { .home-kpis { grid-template-columns: repeat(2, 1fr); } }

/* ═══════════════════════════════════════════════════════════════════════════
   DESIGN SYSTEM — primitives entreprise (additif, réutilisable partout)
   Inspiré des patterns SaaS (Linear/Stripe/shadcn/nuxt-ui). Aucune dépendance,
   aucun framework : CSS pur + Web Animations. Tout est opt-in via classes,
   sauf les améliorations d'accessibilité (reduced-motion, focus) qui sont sûres.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Tokens additionnels : courbes d'animation + élévations + durées. */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.12s; --dur: 0.22s; --dur-slow: 0.4s;
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Accessibilité : respecte « réduire les animations » du système (a11y / Lighthouse). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Défilement doux (ancres, retours en haut). */
html { scroll-behavior: smooth; }

/* Barres de défilement discrètes et premium. */
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--muted); background-clip: content-box; }

/* ── Squelettes de chargement (loading states) ── */
@keyframes ds-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skeleton { display: block; border-radius: var(--radius, 6px); background: linear-gradient(90deg, rgba(0,0,0,0.05) 25%, rgba(0,0,0,0.10) 37%, rgba(0,0,0,0.05) 63%); background-size: 200% 100%; animation: ds-shimmer 1.4s ease infinite; min-height: 14px; }
.skeleton.line { height: 12px; margin: 6px 0; }
.skeleton.line.short { width: 40%; } .skeleton.line.med { width: 65%; }
.skeleton.card { height: 120px; border-radius: 10px; }
.skeleton.avatar { width: 44px; height: 44px; border-radius: 50%; }

/* ── Utilitaires de mouvement (opt-in via classe) ── */
.u-fade-up { animation: fadeUp var(--dur-slow) var(--ease-out) both; }
.u-fade-in { animation: fadeUp var(--dur) ease both; }
.u-slide-in { animation: slideIn var(--dur) var(--ease-out) both; }
/* Révélation décalée des enfants (listes, grilles de cartes). */
.u-stagger > * { animation: fadeUp var(--dur-slow) var(--ease-out) both; }
.u-stagger > *:nth-child(1) { animation-delay: 0.02s; }
.u-stagger > *:nth-child(2) { animation-delay: 0.06s; }
.u-stagger > *:nth-child(3) { animation-delay: 0.10s; }
.u-stagger > *:nth-child(4) { animation-delay: 0.14s; }
.u-stagger > *:nth-child(5) { animation-delay: 0.18s; }
.u-stagger > *:nth-child(6) { animation-delay: 0.22s; }
.u-stagger > *:nth-child(7) { animation-delay: 0.26s; }
.u-stagger > *:nth-child(8) { animation-delay: 0.30s; }

/* Survol « premium » : légère élévation (cartes interactives). */
.u-elevate { transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.u-elevate:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Apparition au scroll (à activer en ajoutant .is-visible via IntersectionObserver). */
.u-reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.u-reveal.is-visible { opacity: 1; transform: none; }

/* ── Tableau entreprise (triable via shared.js enhanceSortableTables) ── */
.ds-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ds-table thead th { text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 9px 10px; border-bottom: 2px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 1; white-space: nowrap; }
.ds-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.ds-table tbody tr { transition: background var(--dur-fast); }
.ds-table tbody tr:hover { background: var(--surface); }
.ds-table th[data-sort]:not([data-sort="off"]) { cursor: pointer; user-select: none; }
.ds-table th[data-sort]:not([data-sort="off"])::after { content: "⇅"; opacity: 0.3; margin-left: 5px; font-size: 0.85em; }
.ds-table th.sort-asc::after { content: "↑"; opacity: 1; }
.ds-table th.sort-desc::after { content: "↓"; opacity: 1; }
.ds-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ── Tooltip (pur CSS, accessible au focus) ── */
[data-tooltip] { position: relative; }
[data-tooltip]:hover::after, [data-tooltip]:focus-visible::after {
  content: attr(data-tooltip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: 11px; line-height: 1.3; font-weight: 600; letter-spacing: 0; text-transform: none;
  padding: 5px 8px; border-radius: 5px; white-space: nowrap; max-width: 280px; z-index: 300; pointer-events: none;
  box-shadow: var(--shadow-md); animation: fadeUp 0.14s ease both;
}

/* ── Drawer (panneau latéral coulissant) ── */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.32); opacity: 0; visibility: hidden; transition: opacity var(--dur) ease, visibility var(--dur); z-index: 199; }
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; height: 100vh; width: min(460px, 94vw); background: var(--paper); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform var(--dur) var(--ease-out); z-index: 200; overflow: auto; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); }
.drawer-body { padding: 16px 18px; }

/* ── État vide standardisé (empty state) ── */
.empty-state { text-align: center; padding: 2.6rem 1.2rem; color: var(--muted); }
.empty-state-icon { font-size: 2rem; line-height: 1; opacity: 0.5; }
.empty-state h3 { margin: 0.6rem 0 0.2rem; color: var(--ink); font-size: 1.05rem; }
.empty-state p { margin: 0 auto; max-width: 420px; font-size: 0.9rem; }
.empty-state .btn { margin-top: 0.9rem; }
