/* WatchJobs — feuille de style du site public (direction Premium, 2026-10-21,
   maquettes docs/design-premium). Valeurs documentees dans DESIGN.md.
   tokens.css reste l'ancien systeme, utilise seulement par design-preview.html
   (dashboard.html est migre sur cette feuille depuis 2026-11-02). */

:root {
  /* Nuit : bandeaux d'en-tete, hero, encarts sombres */
  --night: #0E0E0F;
  --night-field: #18181A;
  --night-line: #2A2A2D;
  --night-ink: #ECE8E1;
  --night-muted: #9A958D;
  --night-link: #8FA9B2;
  --night-teal: #8CC7BC;
  --neon: #6FB8AD;            /* accent rare : point, trait, halo (jamais en aplat large) */
  --muted-night-2: #6E6A64;   /* texte tres atténué sur nuit : UNIQUEMENT >= 24px */
  /* Papier : corps de page */
  --paper: #F2EFEA;
  --card: #FAF8F5;
  --ink: #141414;
  --muted: #5E5A54;
  --line: #D6D1C9;
  --link: #4A6670;
  --teal: #2A6F67;
  --sand: #C9BBA4;
  --error: #9B3B2E;
  --error-night: #E8A396;
  /* Statuts de candidature (pastilles) */
  --st-saved: var(--sand);
  --st-sent: var(--link);
  --st-interview: var(--teal);
  --st-offer: var(--teal);
  --st-refused: var(--muted);
  /* Degrades et ombres Premium */
  --grad-pearl: linear-gradient(180deg, #FFFFFF 0%, #FAF8F5 100%);
  --grad-night: radial-gradient(circle at 50% 0%, rgba(143, 169, 178, 0.16) 0%, rgba(143, 169, 178, 0.05) 35%, rgba(14, 14, 15, 0) 70%), #0E0E0F;
  --shadow-card: inset 0 1px 0 #FFFFFF, 0 0 0 1px rgba(214, 209, 201, 0.6), 0 40px 60px -36px rgba(20, 20, 20, 0.3);
  --shadow-card-hover: inset 0 1px 0 #FFFFFF, 0 0 0 1px rgba(214, 209, 201, 0.9), 0 44px 64px -34px rgba(20, 20, 20, 0.38);
  --shadow-glass: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --shadow-btn: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  --shadow-orb: inset -4px -6px 12px rgba(20, 20, 20, 0.08), inset 3px 4px 8px rgba(255, 255, 255, 0.9), 0 12px 20px -14px rgba(20, 20, 20, 0.35);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --sans: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --radius: 12px;
  --r-field: 14px;
  --r-pill: 999px;
  --r-card: 32px;
  --hero-radius: 48px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Coupe les halos decoratifs qui debordent a droite, sans rogner les listes des combobox
     (les bandeaux nuit ne sont plus en overflow hidden). */
  overflow-x: clip;
}
body > main, body > .page { flex: 1 0 auto; }
a { color: var(--link); }
a:hover { color: var(--ink); }
input, select, button, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: 0.5; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.night :focus-visible { outline-color: var(--night-ink); }
body { -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.mono { font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); }
.night .mono { color: var(--night-muted); }
/* Ligne metier de job.html : rapprochee du kicker (le conteneur flex a un gap de 24px). */
.muted { color: var(--muted); }

/* ---------- Nuit ---------- */
.night { background: var(--night); color: var(--night-ink); }
.night a { color: var(--night-link); }
.night a:hover { color: var(--night-ink); }
.night.rounded { border-bottom-left-radius: var(--hero-radius); border-bottom-right-radius: var(--hero-radius); }

/* ---------- En-tete ---------- */
.site-header {
  /* Pilule de verre (maquettes Premium). Le .wrap reste centre, mais en retrait des bords. */
  width: min(1200px, calc(100% - 32px)); margin-top: 20px;
  padding: 8px 8px 8px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.09); border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.05); box-shadow: var(--shadow-glass);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
/* Identique au logo de watchjobs.work (page « bientôt ») : 20px, 500. */
.night .logo, .logo {
  color: var(--night-ink); text-decoration: none;
  font-size: 19px; font-weight: 600; letter-spacing: -0.03em;
}
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 14px; }
.night .site-nav a { color: var(--night-muted); text-decoration: none; }
.night .site-nav a:hover, .night .site-nav a[aria-current="page"] { color: var(--night-ink); }
.night .site-nav a.btn-light, .night .site-nav a.btn-light:hover { color: var(--night); }
/* "Se connecter" (auth-nav.js) : pilule claire, Design 2026-10-04. */
.night .site-nav a.btn-pill {
  background: var(--paper); color: var(--night); border-radius: var(--r-pill); font-weight: 500;
  min-height: 44px; padding: 0 22px; display: inline-flex; align-items: center; box-shadow: var(--shadow-btn);
}
.night .site-nav a.btn-pill:hover { background: #FFFFFF; color: var(--night); }
#auth-nav-slot:empty { display: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 20px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 500; line-height: 1.2; text-decoration: none;
  background: none; color: inherit;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, translate 0.35s var(--ease);
}
.btn:hover { translate: 0 -1px; }
.btn-light, .night .btn-light { background: var(--night-ink); color: var(--night); box-shadow: var(--shadow-btn); }
.btn-light:hover, .night .btn-light:hover { background: #FFFFFF; color: var(--night); }
.btn-dark { background: var(--ink); color: var(--paper); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.btn-dark:hover { background: #2B2B2B; color: var(--paper); }
.btn-outline { border-color: var(--ink); color: var(--ink); font-weight: 400; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.night .btn-ghost { border-color: var(--night-line); color: var(--night-ink); font-weight: 400; }
.night .btn-ghost:hover { border-color: var(--night-muted); color: var(--night-ink); }
.btn-lg { min-height: 52px; padding: 14px 30px; font-size: 16px; }
.link-btn {
  background: none; border: 0; padding: 0; color: var(--link);
  text-decoration: underline; font-size: inherit; min-height: 0;
}
.link-btn:hover { color: var(--ink); }

/* ---------- Barre de recherche (nuit) ---------- */
/* Pas d'overflow: hidden : la liste des combobox (.cb-list) deborde de la barre.
   Les rayons sont donc reportes sur le premier et le dernier enfant. */
.searchbar {
  display: flex; flex-wrap: nowrap; gap: 1px;
  background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-pill); box-shadow: var(--shadow-glass);
}
.searchbar > :first-child { border-radius: var(--r-pill) 0 0 var(--r-pill); }
.searchbar > :last-child { border-radius: 0 var(--r-pill) var(--r-pill) 0; }
/* Champ email masque (alerte, utilisateur connecte) : le bouton reste seul visible. */
.searchbar > [hidden]:first-child + :last-child { border-radius: inherit; }
.searchbar .field {
  flex: 1 1 150px; display: flex; flex-direction: column; gap: 4px; position: relative;
  padding: 14px 24px; background: var(--night-field); min-width: 0;
}
.searchbar .field.wide { flex: 2 1 240px; }
.searchbar .field > label { cursor: text; }
.searchbar .field input, .searchbar .field select {
  background: transparent; border: 0; outline: none; color: var(--night-ink);
  font-size: 17px; padding: 0; min-height: 28px; width: 100%;
}
.searchbar .field select option { color: var(--ink); background: var(--card); }
.searchbar .field input::placeholder { color: var(--night-muted); }
.searchbar .field:focus-within { box-shadow: inset 0 -2px 0 var(--night-ink); }
.searchbar button {
  flex: 0 0 auto; border: 0; border-radius: 0;
  background: var(--night-ink); color: var(--night);
  font-size: 16px; font-weight: 500; padding: 14px 32px; min-height: 60px;
  transition: background-color 0.2s;
}
.searchbar button:hover { background: #FFFFFF; }
.searchbar button.sand { background: var(--sand); }
.searchbar button.paper { background: var(--paper); }
.searchbar button.paper:hover { background: #FFFFFF; }

/* ---------- Combobox (Lieu, Marque, Contrat) : carte nuit ---------- */
.cb input { cursor: text; text-overflow: ellipsis; padding-right: 18px; }
.cb input[readonly] { cursor: pointer; }
.cb-chevron {
  position: absolute; right: 24px; bottom: 25px; width: 7px; height: 7px; pointer-events: none;
  border-right: 1.5px solid var(--night-muted); border-bottom: 1.5px solid var(--night-muted); rotate: 45deg;
}
.cb-list {
  position: absolute; z-index: 40; top: calc(100% + 10px); left: 0; width: max(100%, 300px);
  max-height: min(50dvh, 360px); overflow-y: auto; overscroll-behavior: contain;
  margin: 0; padding: 6px; list-style: none;
  background: var(--night-field); color: var(--night-ink);
  border: 1px solid var(--night-line); border-radius: var(--r-field);
  box-shadow: var(--shadow-glass), 0 24px 48px -16px rgba(0, 0, 0, 0.7);
  animation: cb-in 0.15s var(--ease);
}
.cb-list[hidden] { display: none; }
.cb-end .cb-list { left: auto; right: 0; }
.cb-list ul { margin: 0; padding: 0; list-style: none; }
.cb-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 44px; padding: 10px 14px; border-radius: 10px;
  font-size: 15px; line-height: 1.3; cursor: pointer; color: var(--night-ink);
}
.cb-opt.is-active { background: rgba(255, 255, 255, 0.08); }
.cb-opt[aria-selected="true"] .cb-label { font-weight: 500; }
.cb-opt[aria-selected="true"] .cb-label::before {
  content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 10px;
  border-radius: 50%; background: var(--neon); vertical-align: middle;
}
.cb-label { min-width: 0; overflow-wrap: anywhere; }
.cb-count { flex: 0 0 auto; font-family: var(--mono); font-size: 12px; color: var(--night-muted); }
.cb-group-label {
  display: block; padding: 12px 14px 4px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--night-muted);
}
.cb-group + .cb-group, .cb-reset + .cb-group { border-top: 1px solid var(--night-line); margin-top: 6px; }
.cb-note { padding: 10px 14px; font-size: 14px; color: var(--night-muted); }
@keyframes cb-in { from { opacity: 0; translate: 0 -4px; } to { opacity: 1; translate: 0 0; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.night .chip {
  color: var(--night-ink); text-decoration: none; font-size: 14px;
  border: 1px solid var(--night-line); padding: 10px 18px; min-height: 44px; display: inline-flex; align-items: center; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.04); transition: border-color 0.2s, background-color 0.2s;
}
.night .chip:hover { border-color: var(--night-muted); color: var(--night-ink); background: rgba(255, 255, 255, 0.08); }
/* Chip papier (filtres) : l'etat coche se lit via :has(input:checked). */
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; font-size: 14px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card); color: var(--ink); cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.chip:hover { border-color: var(--muted); }
.chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input { accent-color: var(--link); margin: 0; }
.chip:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }
.night .chip:has(input:checked) { background: var(--night-ink); border-color: var(--night-ink); color: var(--night); }

/* Onglets en pilules (opt-in : classe .tabs.pills ; le .tabs nu de profil.html reste a son style local) */
.tabs.pills { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--r-pill);
  background: var(--card); box-shadow: inset 0 2px 5px rgba(20, 20, 20, 0.05), 0 0 0 1px rgba(214, 209, 201, 0.7); }
.tabs.pills > a, .tabs.pills > button { min-height: 44px; padding: 0 20px; display: inline-flex; align-items: center; border: 0;
  border-radius: var(--r-pill); background: none; color: var(--muted); font-size: 14px; text-decoration: none;
  transition: background-color 0.2s, color 0.2s; }
.tabs.pills > a:hover, .tabs.pills > button:hover { color: var(--ink); }
.tabs.pills > [aria-selected="true"], .tabs.pills > [aria-current="page"] { background: var(--ink); color: var(--paper); }

/* Faits cles (fiche offre) : paires etiquette mono / valeur */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px 24px; margin: 0; padding: 0; }
.facts > div { display: flex; flex-direction: column; gap: 4px; }
.facts dt { font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); }
.night .facts dt { color: var(--night-muted); }
.facts dd { margin: 0; font-size: 17px; }

/* Competences / etiquettes en pilules */
.skills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.skills > li, .skills > .pill { padding: 6px 14px; border-radius: var(--r-pill); background: var(--card);
  box-shadow: 0 0 0 1px rgba(214, 209, 201, 0.7); font-size: 14px; }

/* ---------- Titres ---------- */
.display {
  margin: 0; font-weight: 500; letter-spacing: -0.05em; line-height: 0.94;
  font-size: clamp(48px, 8.2vw, 116px); max-width: 1100px;
}
.h1 { margin: 0; font-size: clamp(36px, 5.5vw, 72px); line-height: 0.98; font-weight: 500; letter-spacing: -0.04em; max-width: 900px; }
.display .dim, .h1 .dim { color: var(--muted-night-2); } /* >= 24px, sur nuit uniquement */
.h2 { margin: 0; font-size: 40px; line-height: 44px; font-weight: 500; letter-spacing: -0.03em; }
.h3 { margin: 0; font-size: 24px; line-height: 30px; font-weight: 400; }
.lede { margin: 0; font-size: 18px; line-height: 26px; font-weight: 300; max-width: 560px; }
.night .lede { color: var(--night-muted); }
/* Etiquette mono majuscule avec point neon (surtitre) */
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--night-link); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 12px var(--neon); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; }

/* ---------- Listes d'offres ---------- */
.rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px;
  padding: 24px 0; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
}
a.row:hover { background: var(--card); color: var(--ink); }
/* Variante cartes Premium : perle, halo fin, ombre longue, leger soulevement au survol. */
.rows.cards { border-top: 0; gap: 12px; }
.rows.cards .row {
  background: var(--grad-pearl); border: 0; border-radius: var(--r-card);
  padding: 24px 28px; box-shadow: var(--shadow-card);
  transition: translate 0.35s var(--ease), box-shadow 0.35s;
}
.rows.cards a.row:hover { background: var(--grad-pearl); box-shadow: var(--shadow-card-hover); translate: 0 -4px; }
.row .when { flex: 0 0 96px; }
.row .title { flex: 999 1 320px; font-size: 22px; line-height: 28px; min-width: 0; overflow-wrap: anywhere; }
.row .who { flex: 1 1 160px; font-size: 15px; color: var(--muted); }
.row .where { flex: 1 1 140px; font-size: 15px; color: var(--muted); }
.tag {
  flex: 0 0 auto; font-family: var(--mono); font-size: 12px; color: var(--link);
  border: 1px solid var(--line); padding: 4px 12px; border-radius: var(--r-pill); white-space: nowrap;
}

.result {
  display: flex; flex-direction: column; gap: 10px; padding: 28px 0;
  border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
a.result:hover { background: var(--card); color: var(--ink); }
/* Resultats en cartes : a poser sur un conteneur .cards (ex. <div id="results" class="cards">). */
.cards > .result {
  background: var(--grad-pearl); border: 0; border-radius: var(--r-card); box-shadow: var(--shadow-card);
  padding: 28px; margin-bottom: 12px; transition: translate 0.35s var(--ease), box-shadow 0.35s;
}
.cards > a.result:hover { background: var(--grad-pearl); box-shadow: var(--shadow-card-hover); translate: 0 -4px; }
.result .top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.result .title { font-size: 22px; line-height: 28px; overflow-wrap: anywhere; }
.result .meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--muted); }
.result .meta .ct { font-family: var(--mono); font-size: 12px; color: var(--link); }
.result p { margin: 0; font-size: 15px; line-height: 24px; color: var(--muted); max-width: 680px; }

/* ---------- Formulaires (papier) ---------- */
.form { display: flex; flex-direction: column; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field > span, .form-field > label { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.form-field input, .form-field select, .form-field textarea {
  border: 1px solid var(--line); border-radius: var(--r-field); background: var(--card);
  color: var(--ink); font-size: 16px; padding: 10px 14px; min-height: 44px; width: 100%;
  box-shadow: inset 0 2px 5px rgba(20, 20, 20, 0.05);
}
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--ink); }
.select-sm {
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card);
  color: var(--ink); font-size: 14px; padding: 8px 16px; min-height: 44px;
}
.check { display: flex; align-items: center; gap: 12px; font-size: 15px; min-height: 44px; }
.check input { width: 16px; height: 16px; accent-color: var(--link); margin: 0; }

.status-msg { margin: 0; font-size: 15px; line-height: 24px; color: var(--muted); }
.status-msg.error { color: var(--error); }
.night .status-msg { color: var(--night-muted); }
.night .status-msg.error { color: var(--error-night); }
.status-msg.success { color: var(--teal); }
/* Bandeau de confirmation (papier) : action demandee a l'utilisateur, jamais automatique. */
.intent {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  margin: 0 0 24px; padding: 20px 24px;
  background: var(--grad-pearl); border: 0; border-radius: var(--r-card); box-shadow: var(--shadow-card);
}
.intent p { margin: 0; flex: 1 1 240px; font-size: 18px; line-height: 26px; }
.intent .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.night .status-msg.success { color: var(--night-teal); }

/* ---------- Pied de page ---------- */
.site-footer {
  padding-top: 32px; padding-bottom: 48px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.site-footer .status-msg { flex-basis: 100%; margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* ---------- Pagination ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; }
.pager .pages { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pager .pages button {
  min-width: 44px; min-height: 44px; border: 1px solid transparent; border-radius: var(--r-pill);
  background: none; color: var(--ink); font-family: var(--mono); font-size: 13px;
}
.pager .pages button:hover { border-color: var(--line); }
.pager .pages button[aria-current="page"] { background: var(--ink); color: var(--paper); }
.pager .pages .gap { font-family: var(--mono); color: var(--muted); padding: 0 4px; }

@media (max-width: 640px) {
  .h2 { font-size: 32px; line-height: 36px; }
  .row .when { flex-basis: 100%; }
}

/* Barre de recherche en colonne : champs et bouton pleine largeur, liste pleine largeur. */
@media (max-width: 860px) {
  .searchbar { flex-direction: column; border-radius: 28px; }
  .searchbar > :first-child { border-radius: 27px 27px 0 0; }
  .searchbar > :last-child { border-radius: 0 0 27px 27px; }
  .searchbar .field, .searchbar .field.wide, .searchbar button { flex: 0 0 auto; }
  .cb-list, .cb-end .cb-list { left: 0; right: 0; width: auto; }
}

/* ---------- Utilitaires Premium ---------- */
/* Soulevement au survol (cartes, pastilles, bulles). */
.lift { transition: translate 0.35s var(--ease), box-shadow 0.35s; }
.lift:hover { translate: 0 -6px; }

/* Pastille maison (.orb) : perle ronde avec le NOM de la maison en texte.
   Taille via --orb (defaut 56px). Pour un logo plus tard : mettre un <img> dans .orb
   (il remplace le texte : .orb > img { object-fit: contain }) sans changer le CSS.
   Variantes : .orb.night (sur nuit), .orb.sm (40px), .orb.lg (88px). */
.orb {
  --orb: 56px;
  flex: 0 0 auto; width: var(--orb); height: var(--orb); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  padding: 6px; overflow: hidden; background: var(--grad-pearl); color: var(--ink);
  box-shadow: var(--shadow-orb);
  font-family: var(--sans); font-weight: 600; font-size: calc(var(--orb) * 0.19);
  line-height: 1.05; letter-spacing: -0.02em; overflow-wrap: anywhere; hyphens: auto;
}
.orb > img { width: 100%; height: 100%; object-fit: contain; display: block; }
.orb.sm { --orb: 40px; }
.orb.lg { --orb: 88px; }
.orb.night {
  background: radial-gradient(circle at 32% 26%, #3A3A3F 0%, #1C1C1F 60%, #0E0E0F 100%); color: var(--night-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 14px 24px -12px rgba(0, 0, 0, 0.8);
}
a.orb { text-decoration: none; }
a.orb:hover { color: var(--ink); }
a.orb.night:hover { color: #FFFFFF; }

/* Pastille de statut de candidature : .dot + classe d'etat. */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--st-saved); flex: 0 0 auto; }
.dot.sent { background: var(--st-sent); }
.dot.interview, .dot.offer { background: var(--st-interview); }
.dot.refused { background: var(--st-refused); }

/* Mouvement reduit : plus de transition ni d'animation, pas de soulevement. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .lift:hover, .btn:hover, .rows.cards a.row:hover, .cards > a.result:hover { translate: none; }
  .cb-list { animation: none; }
}

/* Allegement mobile : moins de flou, pas de soulevement, rayons reduits. */
@media (max-width: 760px) {
  :root { --hero-radius: 32px; --r-card: 24px; }
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 28px; padding: 12px 16px; }
  .lift:hover, .rows.cards a.row:hover, .cards > a.result:hover { translate: none; }
  .rows.cards .row { padding: 20px; }
  .cards > .result { padding: 20px; }
}

/* ---------- Connexion / inscription / 404 (pleine page nuit) ---------- */
.auth-page { background: var(--night); color: var(--night-ink); }
.auth-page .site-footer { border-top-color: var(--night-line); color: var(--night-muted); }
.auth-main {
  flex: 1 0 auto; width: 100%; max-width: 440px; margin: 0 auto;
  padding: 64px 16px 96px; display: flex; flex-direction: column; gap: 32px;
}
.auth-main h1 { margin: 0; font-size: clamp(36px, 6vw, 56px); line-height: 1; font-weight: 300; letter-spacing: -0.03em; }
.auth-page .form-field > span, .auth-page .form-field > label { color: var(--night-muted); }
.auth-page .form-field input {
  background: var(--night-field); border-color: var(--night-line); color: var(--night-ink);
}
.auth-page .form-field input:focus { border-color: var(--night-ink); }
.auth-page .hint { margin: 0; font-size: 13px; color: var(--night-muted); }
.auth-page .switch { margin: 0; font-size: 15px; color: var(--night-muted); }

/* === Page : accueil === */
.home-hero { position: relative; padding-bottom: 96px; background: var(--grad-night); }
.home-hero .hero-body {
  position: relative; padding-top: 104px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px;
}
.home-hero .display { font-size: clamp(44px, 8.2vw, 116px); }
.home-hero .lede { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; max-width: 600px; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.home-hero .searchbar { width: 100%; max-width: 1080px; margin-top: 8px; }
.home-hero .searchbar button { min-height: 64px; }

/* Cadran decoratif (aria-hidden) : tout en CSS, aiguilles animees (desactivees en reduced-motion). */
.dial {
  position: relative; width: min(400px, 74vw); aspect-ratio: 1 / 1; margin: 24px 0 8px; border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #4A4A4F 0%, #232326 32%, #121214 62%, #070708 100%);
  box-shadow: inset -24px -36px 70px rgba(0, 0, 0, 0.75), inset 18px 22px 40px rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(255, 255, 255, 0.08), 0 70px 120px -30px rgba(0, 0, 0, 0.9), 0 0 120px rgba(143, 169, 178, 0.12);
}
.dial > * { position: absolute; display: block; }
.dial .crown { right: -12px; top: 50%; width: 20px; height: 48px; margin-top: -24px; border-radius: 8px;
  background: linear-gradient(90deg, #2A2A2D, #4A4A4F 50%, #1A1A1C); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6); }
.dial .minutes { inset: 7%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  background: repeating-conic-gradient(from -0.4deg, rgba(236, 232, 225, 0.55) 0deg 0.8deg, rgba(0, 0, 0, 0) 0.8deg 6deg); }
.dial .face { inset: 10%; border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #26262A 0%, #141416 55%, #0B0B0C 100%);
  box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 -1px 0 rgba(255, 255, 255, 0.05); }
.dial .tick { left: 50%; top: 12%; width: 6px; height: 38%; margin-left: -3px; transform-origin: 50% 100%;
  background: linear-gradient(180deg, var(--night-ink) 0 21%, transparent 21%); border-radius: 3px; }
.dial .t3 { transform: rotate(90deg); } .dial .t6 { transform: rotate(180deg); } .dial .t9 { transform: rotate(270deg); }
.dial .brand, .dial .sub, .dial .place { left: 0; right: 0; text-align: center; }
.dial .brand { top: 30%; font-size: 14px; font-weight: 600; letter-spacing: -0.02em; color: var(--night-ink); }
.dial .sub { top: 35%; font-family: var(--mono); font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; color: #8A7D68; }
.dial .place { bottom: 27%; font-family: var(--mono); font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--night-muted); }
.dial .hand { left: 50%; bottom: 50%; transform-origin: 50% 100%; border-radius: 4px; }
.dial .hour { width: 10px; height: 25%; margin-left: -5px; transform: rotate(-58deg);
  background: linear-gradient(90deg, #C9BBA4, #F2EFEA 50%, #A99C86); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6); }
.dial .min { width: 6px; height: 36%; margin-left: -3px; animation: home-spin 3600s linear infinite;
  background: linear-gradient(90deg, #C9BBA4, #F2EFEA 50%, #A99C86); box-shadow: 0 8px 14px rgba(0, 0, 0, 0.6); }
.dial .sec { width: 2px; height: 46%; margin-left: -1px; bottom: 42%; animation: home-spin 60s steps(60) infinite;
  background: var(--neon); box-shadow: 0 0 10px rgba(111, 184, 173, 0.6); }
.dial .sec { transform-origin: 50% 83%; }
.dial .pivot { left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #F2EFEA, #8A7D68); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); }
.dial .glass { inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse 60% 40% at 34% 18%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 70%); }
@keyframes home-spin { to { transform: rotate(360deg); } }

.display-2 { margin: 0; font-size: clamp(36px, 4.6vw, 64px); line-height: 1; font-weight: 500; letter-spacing: -0.045em; }
.display-2.center { text-align: center; }
.night .display-2 .dim { color: var(--muted-night-2); }
.dim-paper { color: #8A857D; }

.metiers { padding-top: 112px; padding-bottom: 48px; display: flex; flex-direction: column; align-items: center; gap: 48px; }
.metiers .display-2 { text-align: center; }
.metiers .bubbles { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; max-width: 1000px; }
.metiers .bubble {
  min-width: 200px; height: 92px; padding: 0 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill); color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 500; letter-spacing: -0.01em;
  background: radial-gradient(ellipse 80% 120% at 30% 18%, #FFFFFF 0%, #F7F4EF 45%, #DCD6CC 100%);
  box-shadow: inset -10px -14px 26px rgba(20, 20, 20, 0.07), inset 8px 10px 18px rgba(255, 255, 255, 0.9), 0 26px 40px -20px rgba(20, 20, 20, 0.38);
}
.metiers .bubble:hover { color: var(--ink); }
.metiers .bubble.teal { color: #FFFFFF; background: radial-gradient(ellipse 80% 120% at 30% 18%, #5A7681 0%, #4A6670 45%, #2F464D 100%);
  box-shadow: inset -10px -14px 26px rgba(0, 0, 0, 0.25), inset 8px 10px 18px rgba(255, 255, 255, 0.3), 0 26px 40px -20px rgba(42, 64, 72, 0.6); }
.metiers .bubble.dark { color: var(--night-ink); background: radial-gradient(ellipse 80% 120% at 30% 18%, #3A3A3E 0%, #1C1C1F 50%, #0B0B0C 100%);
  box-shadow: inset -10px -14px 26px rgba(0, 0, 0, 0.5), inset 8px 10px 18px rgba(255, 255, 255, 0.08), 0 26px 40px -20px rgba(0, 0, 0, 0.6); }
.metiers .bubble.teal:hover, .metiers .bubble.dark:hover { color: #FFFFFF; }

.home-latest { padding-top: 64px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 40px; }
.home-latest .section-head { align-items: flex-end; }
.home-latest .head-copy { display: flex; flex-direction: column; gap: 12px; }
.home-latest .eyebrow { color: var(--link); }
#latest.rows.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 20px; }
#latest .row { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 240px; padding: 32px; }
#latest .row .when, #latest .row .title, #latest .row .who, #latest .row .where { flex: none; }
#latest .row .title { font-size: 26px; line-height: 1.12; font-weight: 500; letter-spacing: -0.025em; margin-top: auto; }
#latest .row .tag { background: var(--paper); border-color: transparent; order: -1; align-self: flex-end; }
#latest .row .when { order: -2; position: absolute; }
#latest .row { position: relative; }
#latest .row .when { top: 36px; left: 32px; }

.maisons-wrap { padding: 0 clamp(16px, 2vw, 24px); }
.maisons-panel {
  position: relative; max-width: 1392px; margin: 0 auto; overflow: hidden; border-radius: var(--hero-radius);
  padding: clamp(48px, 7vw, 104px) clamp(20px, 5vw, 72px);
  display: flex; flex-direction: column; align-items: center; gap: 64px;
  background: radial-gradient(ellipse 50% 40% at 50% 62%, rgba(201, 187, 164, 0.13) 0%, rgba(14, 14, 15, 0) 100%), var(--night);
  box-shadow: 0 60px 100px -50px rgba(14, 14, 15, 0.6);
}
.maisons-copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.maisons-copy .eyebrow { color: var(--sand); }
.maisons-copy .eyebrow::before { display: none; }
.maisons-copy .display-2 { font-size: clamp(40px, 6vw, 88px); line-height: 0.96; letter-spacing: -0.05em; }
.maisons-copy .lede { font-size: 18px; line-height: 1.5; color: #C8C3BB; }
.orbs { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 2.4vw, 28px); }
.orbs .orb { --orb: 140px; padding: 14px; font-size: 22px; overflow-wrap: break-word; box-shadow: inset -10px -14px 28px rgba(20, 20, 20, 0.1), inset 8px 10px 20px rgba(255, 255, 255, 0.9), 0 30px 50px -24px rgba(0, 0, 0, 0.8); }
.night a.orb, .night a.orb:hover { color: var(--ink); }

.steps-wrap { padding-top: 128px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 56px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.home-step { display: flex; flex-direction: column; gap: 20px; padding: 40px 32px; border-radius: var(--r-card); background: var(--grad-pearl); box-shadow: var(--shadow-card); }
.home-step h3 { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; }
.home-step p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.step-orb { --orb: 72px; font-family: var(--mono); font-weight: 400; font-size: 15px; color: #FFFFFF; }
.step-orb.s1 { background: radial-gradient(circle at 32% 26%, #5A7681 0%, #4A6670 45%, #2F464D 100%); }
.step-orb.s2 { color: var(--ink); background: radial-gradient(circle at 32% 26%, #F2EBDD 0%, #C9BBA4 50%, #8A7D68 100%); }
.step-orb.s3 { color: var(--night-ink); background: radial-gradient(circle at 32% 26%, #3A3A3E 0%, #1C1C1F 50%, #0B0B0C 100%); }

.alert-wrap { padding: 0 clamp(16px, 2vw, 24px); }
.alert-band {
  position: relative; max-width: 1200px; margin: 0 auto; overflow: hidden; border-radius: var(--hero-radius);
  padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 80px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 48px;
  background: radial-gradient(circle at 100% 0%, rgba(143, 169, 178, 0.3) 0%, rgba(74, 102, 112, 0.12) 30%, rgba(14, 14, 15, 0) 55%), var(--night);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.alert-band .copy { position: relative; flex: 1 1 420px; display: flex; flex-direction: column; gap: 16px; }
.alert-band .display-2 { font-size: clamp(34px, 4.4vw, 60px); }
.alert-band .action { position: relative; flex: 1 1 400px; display: flex; flex-direction: column; gap: 12px; }
.alert-band .searchbar button { min-height: 60px; }

.recruteurs { padding-top: 96px; padding-bottom: 48px; }
.recruteurs-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 28px 28px 40px; border-radius: var(--r-pill); background: var(--grad-pearl); box-shadow: var(--shadow-card);
}
.recruteurs-card h2 { margin: 0; flex: 1 1 420px; font-size: 22px; line-height: 1.3; font-weight: 400; letter-spacing: -0.01em; }

@media (max-width: 760px) {
  .home-hero { padding-bottom: 56px; }
  .home-hero .hero-body { padding-top: 56px; }
  .metiers { padding-top: 72px; }
  .metiers .bubble { min-width: 0; height: 64px; padding: 0 28px; font-size: 17px; }
  .metiers .bubbles { gap: 12px; }
  .home-latest { padding-bottom: 72px; }
  .steps-wrap { padding-top: 72px; padding-bottom: 72px; }
  .recruteurs-card { border-radius: var(--r-card); padding: 28px; }
  .orbs .orb { --orb: 112px; font-size: 18px; }
  .dial .min, .dial .sec { animation: none; }
}
/* fin accueil */

/* === Page : resultats === */
/* fin resultats */

/* === Page : offre === */
.job-head { padding-top: 40px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 24px; }
.job-head .back {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--mono); font-size: 12px; color: var(--night-muted); text-decoration: none;
}
.job-head .back:hover { color: var(--night-ink); }
.job-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; padding-top: 16px; }
.job-orb { --orb: 132px; font-size: 18px; overflow-wrap: break-word; padding: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 40px 70px -24px rgba(0, 0, 0, 0.9), 0 0 80px rgba(201, 187, 164, 0.18); }
.job-title { font-size: clamp(40px, 6.4vw, 88px); max-width: 1000px; overflow-wrap: anywhere; }
.job-hero .actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.job-hero .btn-lg { min-height: 56px; padding: 0 30px; }
.job-hero .btn-light { background: radial-gradient(circle at 30% 20%, #FFFFFF 0%, #ECE8E1 55%, #D6D1C9 100%); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12), 0 12px 30px -10px rgba(236, 232, 225, 0.35); }
.tracked { font-size: 15px; color: var(--night-muted); }
.expired-banner { border: 1px solid var(--night-line); border-radius: var(--r-card); padding: 16px 24px; display: flex; flex-direction: column; gap: 4px; max-width: 720px; background: rgba(255, 255, 255, 0.04); }
.expired-banner p { margin: 0; }
.expired-banner .t { font-size: 18px; color: var(--night-ink); }
.expired-banner .d { font-size: 15px; line-height: 24px; color: var(--night-muted); }
.fact-bubbles { margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 1040px; }
.fact-bubble {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-width: 150px; min-height: 84px; padding: 0 26px; border-radius: var(--r-pill);
  background: radial-gradient(ellipse 80% 120% at 30% 18%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 24px 40px -20px rgba(0, 0, 0, 0.8);
}
.fact-bubble.accent { background: radial-gradient(ellipse 80% 120% at 30% 18%, rgba(143, 169, 178, 0.38) 0%, rgba(74, 102, 112, 0.18) 50%, rgba(74, 102, 112, 0.06) 100%); border-color: rgba(143, 169, 178, 0.28); }
.fact-bubble dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--night-muted); }
.fact-bubble.accent dt { color: #B9CBD1; }
.fact-bubble dd { margin: 0; font-size: 17px; font-weight: 500; text-align: center; overflow-wrap: anywhere; }
.job-layout { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; }
.job-layout article { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.job-layout aside { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }
.card-pearl { background: var(--grad-pearl); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.job-layout article .card-pearl { display: flex; flex-direction: column; gap: 20px; padding: 44px 40px; }
.card-eyebrow { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--link); }
.job-layout .mission { margin: 0; font-size: 22px; line-height: 1.4; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.job-layout .note { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.source-band {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 24px 28px;
  border-radius: var(--r-pill); background: #E9E5DE; box-shadow: inset 0 2px 6px rgba(20, 20, 20, 0.06);
}
.source-band .card-eyebrow { color: var(--muted); }
.source-band .note { flex: 1 1 320px; }
.origin-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: var(--r-pill);
  background: #FFFFFF; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500;
  box-shadow: 0 0 0 1px rgba(214, 209, 201, 0.8);
}
.origin-link::after { content: '\00a0\2197'; }
.origin-link:hover { color: var(--ink); background: var(--card); }
.job-layout .facts.card-pearl { margin: 0; padding: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.job-layout .facts dd { font-size: 16px; overflow-wrap: anywhere; }
.job-promo { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px 28px; border-radius: var(--r-card); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 60px -36px rgba(14, 14, 15, 0.6); }
.job-promo::before { content: ''; position: absolute; right: -70px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(201, 187, 164, 0.5) 0%, rgba(138, 125, 104, 0.18) 45%, rgba(14, 14, 15, 0) 72%); pointer-events: none; }
.job-promo > * { position: relative; }
.job-promo p { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; }
.similar { display: flex; flex-direction: column; gap: 12px; }
.similar > .card-eyebrow { padding: 8px 4px 0; color: var(--muted); }
#similar { display: flex; flex-direction: column; gap: 12px; }
.similar a {
  display: flex; align-items: center; gap: 16px; padding: 16px 24px 16px 16px; border-radius: var(--r-pill);
  color: var(--ink); text-decoration: none; background: var(--grad-pearl); box-shadow: var(--shadow-card);
}
.similar a:hover { color: var(--ink); box-shadow: var(--shadow-card-hover); }
.similar .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.similar .t { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.similar .s { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .job-layout article .card-pearl { padding: 32px 24px; }
  .source-band { border-radius: var(--r-card); }
  .job-orb { --orb: 104px; font-size: 19px; }
}
/* fin offre */

/* === Page : espace === */
.space-hero { position: relative; overflow: hidden; padding-bottom: 80px; background: var(--grad-night); }
.space-head { padding-top: 72px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.space-head .display { font-size: clamp(44px, 7.4vw, 104px); overflow-wrap: anywhere; }
.space-head .avatar {
  --orb: 112px; font-size: 36px; font-weight: 500; letter-spacing: -0.03em;
  background: radial-gradient(circle at 32% 26%, #FFFFFF 0%, #ECE8E1 45%, var(--sand) 100%); color: var(--night);
  box-shadow: inset -10px -14px 28px rgba(60, 50, 30, 0.18), inset 8px 10px 20px rgba(255, 255, 255, 0.9), 0 40px 70px -24px rgba(0, 0, 0, 0.9), 0 0 80px rgba(201, 187, 164, 0.18);
}

.space-bubbles { max-width: 900px; margin: 56px auto 0; padding: 0 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.count-bubble {
  width: 132px; height: 132px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.05) 45%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset -10px -14px 30px rgba(0, 0, 0, 0.4), 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}
.count-bubble .n { font-size: 40px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.count-bubble .mono { font-size: 12px; }
.count-bubble.sent { background: radial-gradient(circle at 30% 26%, rgba(143, 169, 178, 0.40) 0%, rgba(74, 102, 112, 0.20) 45%, rgba(74, 102, 112, 0.06) 100%); border-color: rgba(143, 169, 178, 0.28); }
.count-bubble.sent .mono { color: #B9CBD1; }
.count-bubble.interview { background: radial-gradient(circle at 30% 26%, rgba(111, 184, 173, 0.42) 0%, rgba(42, 111, 103, 0.22) 45%, rgba(42, 111, 103, 0.06) 100%); border-color: rgba(111, 184, 173, 0.30); }
.count-bubble.interview .mono { color: #A9D6CF; }
.count-bubble.refused { border-color: rgba(255, 255, 255, 0.08); }
.count-bubble.refused .n { color: var(--night-muted); }

/* Onglets segmentes sur nuit (les <a> portent .active via le JS de la page) */
.space-tabs {
  margin: 56px auto 0; width: fit-content; max-width: calc(100% - 32px); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 6px;
  border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow-glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.night .space-tabs a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: var(--r-pill);
  color: var(--night-muted); text-decoration: none; font-size: 14px; transition: background-color 0.2s, color 0.2s;
}
.night .space-tabs a:hover { color: var(--night-ink); }
.night .space-tabs a.active { background: var(--night-ink); color: var(--night); font-weight: 500; box-shadow: var(--shadow-btn); }

.space-block { padding-top: 64px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 28px; scroll-margin-top: 16px; }
#candidatures { padding-top: 96px; }
.space-block-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.space-intro { margin: 0; font-size: 17px; line-height: 26px; color: var(--muted); max-width: 640px; }

/* Candidatures : lignes en pilules */
.app-list { display: flex; flex-direction: column; gap: 14px; }
.app-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 20px 24px 20px 20px;
  border-radius: 44px; background: var(--grad-pearl); box-shadow: var(--shadow-card);
}
.app-row.rejected { background: #EAE6DF; box-shadow: inset 0 2px 6px rgba(20, 20, 20, 0.05); }
.app-row.rejected .main a { color: var(--muted); }
.app-row .orb { --orb: 64px; }
.app-row .main { flex: 999 1 300px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.app-row .main a { font-size: 19px; line-height: 1.25; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.app-row .main a:hover { text-decoration: underline; }
.app-row .sub { font-size: 14px; color: var(--muted); }
.app-row .when { flex: 0 0 auto; }
.app-row .controls { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 6px 0 16px; border-radius: var(--r-pill);
  background: #EFEBE4; box-shadow: inset 0 0 0 1px rgba(94, 90, 84, 0.2); color: #4A4640;
}
.status-pill.sent { background: #E6ECEE; box-shadow: inset 0 0 0 1px rgba(74, 102, 112, 0.25); color: #36505A; }
.status-pill.interview, .status-pill.offer { background: #E3F0EE; box-shadow: inset 0 0 0 1px rgba(42, 111, 103, 0.25); color: #1F524C; }
.status-pill.refused { background: #DEDAD3; }
.status-pill.saved { background: #F1EBE0; box-shadow: inset 0 0 0 1px rgba(201, 187, 164, 0.6); }
.status-pill .dot { width: 9px; height: 9px; }
.status-pill.interview .dot, .status-pill.offer .dot { box-shadow: 0 0 8px rgba(42, 111, 103, 0.6); }
.status-pill select { border: 0; outline: none; background: transparent; color: inherit; font-size: 14px; font-weight: 500; padding: 0 10px 0 0; min-height: 44px; cursor: pointer; }
.status-pill:has(select:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }
.space-icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 50%; background: none; color: var(--muted);
}
.space-icon-btn:hover { border-color: var(--line); color: var(--ink); }

/* Profil et CV */
.profile-split { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 20px; padding-top: 64px; }
.space-card { background: var(--grad-pearl); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.profile-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; padding: 40px; }
.profile-main .facts { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.profile-main .facts > div { padding: 16px 20px; border-radius: 22px; background: var(--paper); box-shadow: inset 0 2px 5px rgba(20, 20, 20, 0.05); min-width: 0; }
.profile-main .facts dd { overflow-wrap: anywhere; }
.profile-main .facts dd.empty { color: var(--muted); }
.skills-block { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.eyebrow-dark { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.profile-main .skill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 20px; border-radius: var(--r-pill); font-size: 14px;
  background: radial-gradient(ellipse 80% 120% at 30% 18%, #FFFFFF 0%, #F7F4EF 45%, #E2DCD2 100%);
  box-shadow: inset -4px -6px 12px rgba(20, 20, 20, 0.06), 0 0 0 1px rgba(214, 209, 201, 0.7), 0 12px 20px -14px rgba(20, 20, 20, 0.35);
}
.profile-main .skill button { background: none; border: 0; padding: 0; color: var(--muted); font-size: 16px; line-height: 1; min-height: 44px; min-width: 44px; margin: 0 -14px 0 -4px; }
.profile-main .skill button:hover { color: var(--ink); }
.profile-form .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
.profile-form .checks { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.contracts-set { border: 0; padding: 0; margin: 0; }
.contracts-set legend { padding: 0 0 8px; }
.skill-add-row { display: flex; gap: 8px; flex-wrap: wrap; }
.skill-add-row input { flex: 1 1 200px; border: 1px solid var(--line); border-radius: var(--r-field); background: var(--card); padding: 10px 14px; min-height: 44px; font-size: 16px; }
.space-form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.cv-col { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; }
.cv-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 24px; padding: 32px 28px; border-radius: var(--r-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 60px -36px rgba(14, 14, 15, 0.6);
}
.cv-card::after {
  content: ''; position: absolute; right: -80px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 32% 28%, rgba(143, 169, 178, 0.45) 0%, rgba(74, 102, 112, 0.16) 45%, rgba(14, 14, 15, 0) 72%);
}
.cv-card > * { position: relative; z-index: 1; }
.cv-card .eyebrow { align-self: flex-start; }
.cv-file { display: flex; align-items: center; gap: 16px; }
.cv-icon {
  flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.cv-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cv-file .name { font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.cv-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.cv-buttons > * { flex: 1 1 auto; }
.cv-note { margin: 0; padding: 0 8px; font-size: 14px; line-height: 22px; color: var(--muted); }

/* Alertes : cartes avec interrupteur */
.alert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.alert-row {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; padding: 24px 28px;
  border-radius: var(--r-card); background: var(--grad-pearl); box-shadow: var(--shadow-card);
}
.alert-row .desc { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 200px; }
.alert-row .what { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.alert-row .controls { display: flex; align-items: center; gap: 12px; }
.toggle-wrap { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--muted); }
.toggle {
  appearance: none; -webkit-appearance: none; position: relative; flex: 0 0 auto; width: 52px; height: 30px; margin: 7px 0; border-radius: var(--r-pill);
  background: var(--line); box-shadow: inset 0 2px 4px rgba(20, 20, 20, 0.15); cursor: pointer; transition: background-color 0.25s;
}
.toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #FFFFFF, #E4DFD7); box-shadow: 0 3px 8px rgba(20, 20, 20, 0.3);
  transition: transform 0.25s var(--ease);
}
.toggle:checked { background: var(--teal); }
.toggle:checked::after { transform: translateX(22px); }
.toggle:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

#consultees { padding-top: 16px; padding-bottom: 96px; }
#logout { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.history .row .title { font-size: 18px; line-height: 24px; }

@media (max-width: 640px) {
  .profile-form .grid { grid-template-columns: 1fr; }
  .profile-main { padding: 28px 20px; }
  .count-bubble { width: 112px; height: 112px; }
  .count-bubble .n { font-size: 34px; }
  .app-row { border-radius: var(--r-card); }
  #candidatures { padding-top: 64px; }
}
/* fin espace */

/* === Page : revisons === */
.rv-content { display: contents; }
.rv-hero { background: var(--grad-night); padding-bottom: 72px; }
.rv-hero-body { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 72px; }
.rv-hero-body.center { align-items: center; text-align: center; }
.rv-hero-body .display { font-size: clamp(48px, 8vw, 112px); }
.rv-hero-body .h1 { font-size: clamp(36px, 5.5vw, 72px); }
.rv-hero-body .lede { max-width: 620px; }
.rv-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 0; padding: 0; list-style: none; }
.rv-meta > li { padding: 6px 14px; border-radius: var(--r-pill); font-size: 14px; color: var(--night-muted);
  border: 1px solid var(--night-line); background: rgba(255, 255, 255, 0.04); }
.rv-main { padding-top: 64px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 56px; }
.rv-section { display: flex; flex-direction: column; gap: 24px; }
.rv-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--link); }
.rv-back { font-size: 14px; color: var(--muted); text-decoration: none; }
.rv-back:hover { color: var(--ink); }
.night .rv-back { color: var(--night-muted); }
.night .rv-back:hover { color: var(--night-ink); }

/* Cartes (formats, maisons) */
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.rv-grid.wide { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.rv-card, .rv-house {
  display: flex; flex-direction: column; gap: 12px; padding: 28px; min-width: 0;
  background: var(--grad-pearl); border-radius: var(--r-card); box-shadow: var(--shadow-card);
  color: var(--ink); text-decoration: none;
}
a.rv-card:hover, a.rv-house:hover { color: var(--ink); box-shadow: var(--shadow-card-hover); }
.rv-card h3, .rv-house .name { margin: 0; font-size: 24px; line-height: 30px; font-weight: 500; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.rv-card p { margin: 0; font-size: 15px; line-height: 24px; color: var(--muted); }
.rv-card .go { margin-top: auto; font-weight: 500; font-size: 15px; }
.rv-card.is-soon, .rv-house.is-soon { box-shadow: 0 0 0 1px rgba(214, 209, 201, 0.7); background: var(--card); }
.rv-house.is-soon .orb { opacity: 0.55; }
.rv-house.is-soon .name { color: var(--muted); }
.rv-house { align-items: flex-start; }
.rv-house .tag { margin-top: auto; }
.rv-soon { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rv-steps { counter-reset: rv; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.rv-steps > li { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--r-card); background: var(--card);
  box-shadow: 0 0 0 1px rgba(214, 209, 201, 0.7); }
.rv-steps .num { font-family: var(--mono); font-size: 12px; color: var(--link); }
.rv-steps strong { font-size: 19px; font-weight: 500; }
.rv-steps span:not(.num) { font-size: 15px; line-height: 24px; color: var(--muted); }

/* Fiche */
.rv-article { display: flex; flex-direction: column; gap: 40px; max-width: 760px; width: 100%; margin: 0 auto; }
.rv-frise { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rv-frise > li { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; border-radius: var(--r-field); min-width: 0;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--night-line); font-size: 14px; color: var(--night-ink); }
.rv-frise > li b { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--night-muted); }
.rv-frise > li.accent { border-color: var(--neon); }
.rv-frise > li.accent b { color: var(--night-teal); }
.rv-sec { display: flex; flex-direction: column; gap: 16px; }
.rv-sec h2 { margin: 0; display: flex; align-items: center; gap: 14px; font-size: 28px; line-height: 34px; font-weight: 500; letter-spacing: -0.03em; }
.rv-sec .n { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 14px; letter-spacing: 0; }
.rv-sec .chapo { margin: 0; font-size: 18px; line-height: 28px; font-weight: 300; }
.rv-def { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; border-radius: var(--r-card);
  background: var(--grad-pearl); box-shadow: var(--shadow-card); border-left: 4px solid var(--neon); }
.rv-def p { margin: 0; font-size: 16px; line-height: 26px; }
.rv-points { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rv-points > li { font-size: 16px; line-height: 26px; padding-left: 20px; position: relative; overflow-wrap: anywhere; }
.rv-points > li::before { content: ''; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.rv-date { display: inline-block; margin-right: 10px; padding: 0 10px; border-radius: var(--r-pill); background: var(--card);
  box-shadow: 0 0 0 1px rgba(214, 209, 201, 0.9); font-family: var(--mono); font-size: 12px; line-height: 22px; color: var(--link); }
.rv-mark { background: linear-gradient(180deg, transparent 58%, rgba(111, 184, 173, 0.4) 58%); font-weight: 500; }
.rv-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; max-width: 760px; width: 100%; margin: 0 auto; }
.rv-pager .btn { font-size: 14px; }
.rv-dots { display: flex; gap: 6px; }
.rv-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.rv-dots span.on { background: var(--ink); }

/* Quiz (QCM, vrai/faux) */
.rv-quiz { display: flex; flex-direction: column; gap: 28px; max-width: 760px; width: 100%; margin: 0 auto; padding: 32px;
  background: var(--grad-pearl); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.rv-quiz-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.rv-bar { height: 4px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.rv-bar > i { display: block; height: 100%; background: var(--teal); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform 0.35s var(--ease); }
.rv-q { margin: 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.25; font-weight: 500; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.rv-q:focus { outline: none; }
.rv-opts { display: grid; grid-template-columns: 1fr; gap: 10px; }
.rv-opts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rv-opt {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 20px; text-align: left;
  border: 0; border-radius: var(--r-pill); background: #FFFFFF; color: var(--ink); font-size: 16px;
  box-shadow: 0 0 0 1px rgba(214, 209, 201, 0.9); transition: box-shadow 0.2s, background-color 0.2s, translate 0.35s var(--ease);
}
.rv-opts.two .rv-opt { justify-content: center; font-weight: 600; }
.rv-opt:hover:not([aria-disabled="true"]) { box-shadow: 0 0 0 1px var(--ink); }
.rv-opt[aria-disabled="true"] { cursor: default; }
.rv-opt .key { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper); font-family: var(--mono); font-size: 12px; }
.rv-opt .tx { min-width: 0; overflow-wrap: anywhere; }
.rv-opt .note { margin-left: auto; font-family: var(--mono); font-size: 12px; font-weight: 400; }
.rv-opt.correct { background: #E3F0EE; color: #1F524C; box-shadow: 0 0 0 1px var(--teal); }
.rv-opt.correct .key { background: #FFFFFF; box-shadow: 0 0 8px rgba(111, 184, 173, 0.7); }
.rv-opt.wrong { background: #F6E3DF; color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.rv-opt.wrong .key { background: #FFFFFF; }
.rv-opt.muted { color: var(--muted); background: var(--card); }
.rv-verdict { display: flex; flex-direction: column; gap: 10px; padding: 20px 24px; border-radius: var(--r-field); font-size: 15px; line-height: 24px; }
.rv-verdict:empty { display: none; }
.rv-verdict strong { font-size: 17px; font-weight: 500; }
.rv-verdict p { margin: 0; }
.rv-verdict.correct { background: rgba(111, 184, 173, 0.16); color: var(--ink); }
.rv-verdict.wrong { background: #F6E3DF; color: var(--ink); }
.rv-verdict.wrong strong { color: var(--error); }
.rv-verdict .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-quiz-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.rv-end { text-align: center; align-items: center; }
.rv-end .score { font-size: clamp(48px, 8vw, 80px); line-height: 1; font-weight: 500; letter-spacing: -0.04em; }

@media (max-width: 640px) {
  .rv-hero-body { padding-top: 48px; }
  .rv-main { padding-top: 40px; gap: 40px; }
  .rv-quiz { padding: 20px; }
  .rv-opts.two { grid-template-columns: 1fr; }
}
/* fin revisons */

/* === Page : admin === */
/* Bandeau nuit compact (reprend .space-hero / .space-head de l'espace). */
.adm-hero { padding-bottom: 24px; }
.adm-hero .space-head { padding-top: 24px; gap: 8px; }
.adm-hero .space-head .display { font-size: 40px; line-height: 44px; font-weight: 500; letter-spacing: -0.03em; }
.adm-updated { margin: 0; min-height: 16px; }
.adm-tabs { margin-top: 20px; }
.night .adm-tabs [role="tab"] {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border: 0; border-radius: var(--r-pill);
  background: none; color: var(--night-muted); font-size: 14px; transition: background-color 0.2s, color 0.2s;
}
.night .adm-tabs [role="tab"]:hover { color: var(--night-ink); }
.night .adm-tabs [role="tab"][aria-selected="true"] { background: var(--night-ink); color: var(--night); font-weight: 500; box-shadow: var(--shadow-btn); }

.adm-main { padding-top: 40px; padding-bottom: 64px; }
.adm-panel { display: flex; flex-direction: column; gap: 28px; scroll-margin-top: 16px; }
.adm-panel:focus-visible { outline-offset: 8px; }
.adm-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
.adm-head h2 { margin: 0; font-size: 32px; line-height: 36px; font-weight: 500; letter-spacing: -0.03em; }
.adm-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.adm-intro { margin: 0; font-size: 17px; line-height: 26px; color: var(--muted); max-width: 640px; }
.adm-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.adm-status:empty, .adm-status[hidden] { display: none; }
.adm-retry { min-height: 44px; }

/* Vue d'ensemble : bulles sur carte nuit */
.adm-kpi { padding: 48px 16px; border-radius: var(--r-card); background: var(--grad-night); box-shadow: 0 40px 60px -36px rgba(14, 14, 15, 0.6); }
/* Grille : 2 colonnes (mobile), 3 x 2 (>= 760px), 6 sur une ligne (>= 1100px). */
.adm-kpi .space-bubbles { margin-top: 0; max-width: none; display: grid; grid-template-columns: repeat(2, 132px); justify-content: center; gap: 16px; }
.adm-kpi .count-bubble { width: 148px; height: 148px; padding: 0 16px; text-align: center; }
/* Alerte (a voir > 0, sources incompletes) : ton erreur sur nuit, pas le teal du succes. */
.adm-kpi .count-bubble.adm-alert { background: radial-gradient(circle at 30% 26%, rgba(232, 163, 150, 0.34) 0%, rgba(155, 59, 46, 0.2) 45%, rgba(155, 59, 46, 0.06) 100%); border-color: rgba(232, 163, 150, 0.32); }
.adm-kpi .count-bubble.adm-alert .n { color: var(--error-night); }
.adm-kpi .count-bubble.adm-alert .mono { color: var(--error-night); }
.adm-kpi .count-bubble .n { font-size: 32px; }
.adm-kpi .count-bubble .mono { line-height: 15px; }
.adm-watch { padding: 32px 36px; display: flex; flex-direction: column; gap: 16px; }
.adm-watch h3 { margin: 0; font-size: 24px; line-height: 30px; font-weight: 500; letter-spacing: -0.02em; }
.adm-watch ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.adm-watch li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 44px; border-top: 1px solid var(--line); }
.adm-watch li:first-child { border-top: 0; }
.adm-watch a { font-weight: 500; }
.adm-watch .mono { margin-left: auto; }
.adm-ok { margin: 0; font-size: 17px; line-height: 26px; color: var(--teal); }

/* Etat : pastille + libelle (le libelle porte le sens, la couleur seulement l'appui) */
.adm-state { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.adm-state .dot { box-shadow: 0 0 0 1px rgba(20, 20, 20, 0.12); }
.adm-state.ok .dot { background: var(--teal); }
.adm-state.error .dot { background: var(--error); }
.adm-state.warn .dot { background: var(--sand); }
.adm-state.off .dot { background: var(--muted); }

/* Sources : tableau */
.adm-table-card { padding: 12px 8px; overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.adm-table th, .adm-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm-table tbody tr:last-child td { border-bottom: 0; }
.adm-table th { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.adm-table td.adm-num, .adm-table th.adm-num { text-align: right; font-variant-numeric: tabular-nums; }
.adm-table .adm-src { font-weight: 500; }
.adm-table .mono { color: var(--muted); }
.adm-table tbody tr { transition: background-color 0.2s; }
.adm-table tbody tr:hover { background: var(--card); }
.adm-pending { display: block; margin-top: 6px; }
.adm-pending .mono { display: block; }
.adm-pending .adm-warn { color: var(--ink); font-weight: 500; }
.adm-scrape-one { min-height: 44px; padding: 8px 18px; font-size: 14px; }

/* Audience : filtres */
.adm-filters { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: flex-end; }
.adm-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.adm-field > label, .adm-field > .adm-label { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.adm-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-chip, .adm-field input[type="date"], .adm-ms > summary {
  min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--card); color: var(--ink); font-size: 14px; transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.adm-field input[type="date"] { border-radius: var(--r-field); font-family: var(--sans); }
.adm-chip:hover, .adm-ms > summary:hover { border-color: var(--muted); }
.adm-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.adm-ms { position: relative; }
.adm-ms > summary { display: flex; align-items: center; cursor: pointer; list-style: none; white-space: nowrap; }
.adm-ms > summary::-webkit-details-marker { display: none; }
.adm-ms[open] > summary { border-color: var(--ink); }
.adm-ms-list {
  position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; width: 280px; max-width: calc(100vw - 48px); max-height: 320px; overflow-y: auto;
  padding: 6px; background: var(--night-field); color: var(--night-ink); border: 1px solid var(--night-line);
  border-radius: var(--r-field); box-shadow: var(--shadow-glass), 0 24px 40px -20px rgba(14, 14, 15, 0.5);
}
.adm-ms-list label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 10px; font-size: 15px; cursor: pointer; }
.adm-ms-list label:hover { background: rgba(255, 255, 255, 0.06); }
.adm-ms-list input { width: 18px; height: 18px; accent-color: var(--neon); flex: none; }
.adm-ms-reset {
  width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-bottom: 1px solid var(--night-line); background: none;
  color: var(--night-link); font-size: 15px; text-align: left;
}
.adm-ms-reset:hover { color: var(--night-ink); }
.adm-ms-list :focus-visible { outline-color: var(--night-ink); }

/* Audience : graphiques */
.adm-charts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.adm-chart-card { padding: 28px 28px 24px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.adm-chart-card h3 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 500; letter-spacing: -0.02em; }
.adm-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.adm-legend i { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--link); vertical-align: middle; margin-right: 6px; }
.adm-legend i.sub { border-top: 2px dashed var(--muted); }
.adm-chart { width: 100%; min-height: 140px; }
.adm-chart svg { display: block; max-width: 100%; height: auto; }
.adm-chart .chart-grid { stroke: var(--line); stroke-width: 1; }
.adm-chart .chart-axis { fill: var(--muted); font-family: var(--mono); font-size: 12px; }
.adm-chart .chart-line { stroke: var(--link); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.adm-chart .chart-line.s-sub { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 3; }
.adm-chart .chart-dot { fill: var(--link); }
.adm-chart .chart-dot.s-sub { fill: var(--muted); }
.adm-note { margin: 0; font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); }

/* Audience : serie « Robots probables » du graphique des visiteurs */
.adm-legend i.bot { border-top: 2px dotted var(--muted); }
.adm-chart .chart-line.s-bot { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 1 4; }
.adm-chart .chart-dot.s-bot { fill: var(--muted); }

/* Audience : visiteurs par ville (globe, admin-globe.js) et detail des visites (IP) */
.adm-geo, .adm-ip { padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.adm-geo h3 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 500; letter-spacing: -0.02em; }
.adm-check { display: inline-flex; align-items: center; align-self: flex-start; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.adm-check input { width: 18px; height: 18px; accent-color: var(--link); flex: none; }
.adm-details > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 500; }
.adm-details > summary::-webkit-details-marker { display: none; }
.adm-details > summary::before { content: "▸"; display: inline-block; width: 1.2em; color: var(--link); }
.adm-details[open] > summary::before { content: "▾"; }
.adm-details .adm-note { margin: 2px 0 10px; }
.adm-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-field); }
.adm-mini { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-mini th, .adm-mini td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.adm-mini tbody tr:last-child td { border-bottom: 0; }
.adm-mini th { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); }
.adm-mini td.mono { color: var(--muted); }
.adm-mini td.ua { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }

/* Le globe est un encart nuit dans la carte papier. Palette lue par readPalette()
   (admin-geo.js) sur le conteneur : on fournit ici les variables `--map-*` et on
   redirige `--accent-gold` / `--ink` (noms hérités de tokens.css, qui n'est plus charge)
   vers la sarcelle et l'encre de la palette nuit. Pas de doré. */
.adm-globe .gl-wrap {
  --map-space: var(--night);
  --map-land: var(--night-line);
  --map-water: var(--night-field);
  --map-border: rgba(236, 232, 225, 0.18);
  --accent-gold: var(--night-teal);
  --ink: var(--night-ink);
  position: relative; height: 480px; margin: 4px 0 6px; overflow: hidden;
  background: var(--grad-night); border-radius: var(--r-field); box-shadow: var(--shadow-glass);
}
.gl-wrap > .gl-map { position: absolute; inset: 0; }
/* Pastilles du top 5 : liste verticale dans le coin haut-gauche du cadre */
.gl-pills { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.gl-pill {
  display: flex; align-items: center; gap: 10px; min-height: 44px; max-width: 220px; padding: 0 14px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--night-line); border-radius: var(--r-pill);
  color: var(--night-ink); font-family: var(--sans); font-size: 14px; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: var(--shadow-glass);
  transition: border-color 0.2s;
}
.gl-pill:hover { border-color: var(--night-muted); }
.gl-pill-rank { font-family: var(--mono); font-size: 12px; color: var(--night-muted); }
.gl-pill-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-pill-count { font-family: var(--mono); font-size: 12px; color: var(--night-teal); }
.gl-zoom { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.gl-btn {
  width: 44px; height: 44px; padding: 0; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--night-line);
  border-radius: var(--r-pill); color: var(--night-ink); font-size: 20px; line-height: 1;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color 0.2s;
}
.gl-btn:hover { border-color: var(--night-muted); }
.gl-wrap :focus-visible { outline-color: var(--night-ink); }
.gl-tip {
  position: absolute; top: 0; left: 0; z-index: 3; pointer-events: none; display: flex; flex-direction: column; gap: 2px;
  padding: 8px 12px; background: var(--night-field); color: var(--night-ink); border: 1px solid var(--night-line);
  border-radius: var(--r-field); box-shadow: var(--shadow-glass); font-size: 14px; white-space: nowrap;
}
.gl-tip-detail { font-family: var(--mono); font-size: 12px; color: var(--night-muted); }
.gl-tip[hidden] { display: none; }
.gl-wrap .maplibregl-ctrl.maplibregl-ctrl-attrib { background: rgba(14, 14, 15, 0.78); color: var(--night-muted); font-size: 11px; }
.gl-wrap .maplibregl-ctrl.maplibregl-ctrl-attrib a { color: var(--night-muted); }
.gl-wrap .maplibregl-ctrl-attrib.maplibregl-compact-show { background: var(--night); }
.gl-wrap .maplibregl-ctrl-attrib-button { filter: invert(1); }

@media (min-width: 761px) {
  .adm-kpi .space-bubbles { grid-template-columns: repeat(3, 148px); }
}
@media (min-width: 1100px) {
  .adm-kpi .space-bubbles { grid-template-columns: repeat(6, 148px); }
}

@media (min-width: 960px) {
  .adm-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .adm-hero .space-head { padding-top: 20px; }
  .adm-hero .space-head .display { font-size: 32px; line-height: 36px; }
  .adm-tabs { width: calc(100% - 32px); border-radius: 28px; }
  .night .adm-tabs [role="tab"] { flex: 1 1 auto; justify-content: center; padding: 0 14px; }
  .adm-kpi { padding: 32px 8px; border-radius: 24px; }
  .adm-kpi .count-bubble { width: 132px; height: 132px; padding: 0 12px; }
  .adm-watch { padding: 24px 20px; }
  .adm-chart-card { padding: 20px 16px; }
  .adm-geo, .adm-ip { padding: 20px 16px; }
  .adm-globe .gl-wrap { height: 320px; }
  .gl-pills { display: none; }
}
@media (max-width: 359px) {
  .adm-kpi .space-bubbles { grid-template-columns: repeat(2, 120px); gap: 12px; }
  .adm-kpi .count-bubble { width: 120px; height: 120px; padding: 0 10px; }
  .adm-table-card { padding: 8px; overflow-x: visible; }
  .adm-table, .adm-table tbody, .adm-table tr, .adm-table td { display: block; width: 100%; }
  .adm-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .adm-table tbody tr { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .adm-table tbody tr:last-child { border-bottom: 0; }
  .adm-table td { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 6px 8px; border-bottom: 0; text-align: right; }
  .adm-table td::before { content: attr(data-label); flex: none; font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: left; }
  .adm-table td.adm-num { text-align: right; }
  .adm-table td.adm-src { font-size: 17px; }
  .adm-pending { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  .night .adm-tabs [role="tab"], .adm-chip, .adm-ms > summary, .adm-field input[type="date"], .adm-table tbody tr, .gl-pill, .gl-btn { transition: none; }
}
/* fin admin */
