/* Polices hebergees sur le site (revue de securite, lot 3, S14, 2026-10-05) : plus aucun appel a Google a chaque page,
   donc plus d'adresse IP des visiteurs transmise. Polices variables (licence SIL OFL), voir public/fonts/LISEZMOI.txt. */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/montserrat-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/montserrat-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('../fonts/caveat-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('../fonts/caveat-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Charte graphique « Spec visuelle — Webapp » (https://hissezhaut.com/chartewebapp/, adoptee le 2026-09-30) :
   tokens repris tels quels (section 10 de la charte), puis alias des anciens noms pour la transition.
   Decisions Hissez Haut : vouvoiement, couleurs DISC gardees dans les graphiques, logo « Hissez Haut ». */
:root {
  /* Marque */
  --nuit: #0F2F3A; --abysse: #03232E; --cyan: #33CDE6; --soleil: #FFD84D; --cyan-pro: #0E7C8F;
  /* Etats */
  --succes: #1F7A52; --alerte: #E8833A; --erreur: #D64545;
  /* Surfaces et textes (clair) */
  --bg: #F7F5EF; --card: #FFFFFF; --text: #0F2F3A; --muted: #5B6B71;
  --line: #E3E1D9; --inactive: #C3CBCD; --track: #EEF0EE; --bar-low: #C9D0D2;
  --piste: #24495A; --accent-txt: #0C7385; --brume: #D5E3E7;
  --nav: #0F2F3A; --nav-deep: #03232E; --strong: #0F2F3A;
  /* Complements Hissez Haut (derives de la charte) */
  --cyan-hover: #22B9D2; --cyan-line: rgba(51, 205, 230, 0.45);
  /* Anneau de focus (accessibilite, 2026-10-14) : le cyan seul ne ressort pas sur le fond clair (1,8:1 ; seuil 3:1).
     Clair : bleu nuit (12,9:1) ; sombre : cyan (9,3:1) ; sur une surface sombre (menu, barre mobile, carte phare) : cyan. */
  --focus-page: #0F2F3A; --focus: var(--focus-page);
  --placeholder: #687679; --zebra: #FBFAF6;
  --zone-mix: 100%;
  /* Contour des champs et etats « eteint » des interrupteurs : >= 3:1 (WCAG 1.4.11) ; les traits decoratifs gardent --line. */
  --field-line: #7F8F94;
  --succes-bg: rgba(31, 122, 82, 0.12); --succes-line: rgba(31, 122, 82, 0.3);
  /* Complements pour le mode sombre (phase 5) : meme role, valeur propre a chaque theme. */
  --guest-bg: #0F2F3A; --emphasis: #0F2F3A; --phare-bg: #0F2F3A; --phare-line: transparent; --bar-dominant: #0F2F3A;
  --succes-txt: #1A6E49; --erreur-txt: #B83737; --erreur-btn: #C03A3A; --code-number: #B45309; --code-bool: #B6304F;
  --soleil-bg: rgba(255, 216, 77, 0.28); --erreur-bg: rgba(214, 69, 69, 0.1);
  /* Typo */
  --f: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-main: 'Caveat', 'Comic Sans MS', cursive;
  /* Rayons */
  --r-l: 20px; --r-s: 16px; --r-b: 12px; --r-nav: 10px; --r-pill: 999px;
  /* Espacements de la charte */
  --s1: 8px; --s2: 12px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px;

  /* Anciens noms (avant la charte), gardes comme alias */
  --navy-dark: var(--nuit);
  --navy: var(--nuit);
  --rose: var(--soleil);
  --green: var(--cyan);
  --yellow: var(--alerte);
  --danger: var(--erreur);
  --text-muted: var(--muted);
  --border: var(--line);
  --radius: var(--r-l);       /* grandes cartes */
  --radius-sm: var(--r-b);    /* champs, alertes */
  --radius-pill: var(--r-pill);
  /* Espacements (echelle historique, compatible) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  /* Tailles de texte */
  --text-xs: 12px;        /* badges */
  --text-sm: 13px;        /* aide, libelles, boutons "action" */
  --text-md: 14px;        /* texte secondaire, tableaux */
  --text-base: 15px;      /* texte courant (charte : 15 px) */
}

/* Mode sombre (charte, phase 5 du 2026-09-30) : suit le reglage de l'appareil ; les couleurs de marque ne bougent pas.
   Seules les variables changent (aucun composant n'est style ici). data-theme="light" / "dark" force un theme. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #031B24; --card: #0F2F3A; --text: #F4F6F0; --muted: #A9C3CB;
    --line: #24495A; --inactive: #4A6570; --track: #0B2530; --bar-low: #4A6570;
    --accent-txt: #33CDE6; --nav: #03232E; --nav-deep: #0F2F3A; --strong: #0B2530;
    --zebra: #0C2833; --placeholder: #7F99A1; --brume: #D5E3E7;
    --guest-bg: #031B24; --emphasis: #24495A; --phare-bg: #0B2530; --phare-line: #24495A; --bar-dominant: #FFD84D;
    --succes-txt: #5FD39A; --erreur-txt: #FF8A8A; --erreur-btn: #C03A3A; --code-number: #F5A962; --code-bool: #FF8FA8;
    --succes-bg: rgba(95, 211, 154, 0.14); --succes-line: rgba(95, 211, 154, 0.35); --erreur-bg: rgba(255, 138, 138, 0.12);
    --focus-page: #33CDE6; --field-line: #6A8B99; --zone-mix: 55%;
  }
}
:root[data-theme="dark"] {
    --bg: #031B24; --card: #0F2F3A; --text: #F4F6F0; --muted: #A9C3CB;
    --line: #24495A; --inactive: #4A6570; --track: #0B2530; --bar-low: #4A6570;
    --accent-txt: #33CDE6; --nav: #03232E; --nav-deep: #0F2F3A; --strong: #0B2530;
    --zebra: #0C2833; --placeholder: #7F99A1; --brume: #D5E3E7;
    --guest-bg: #031B24; --emphasis: #24495A; --phare-bg: #0B2530; --phare-line: #24495A; --bar-dominant: #FFD84D;
    --succes-txt: #5FD39A; --erreur-txt: #FF8A8A; --erreur-btn: #C03A3A; --code-number: #F5A962; --code-bool: #FF8FA8;
    --succes-bg: rgba(95, 211, 154, 0.14); --succes-line: rgba(95, 211, 154, 0.35); --erreur-bg: rgba(255, 138, 138, 0.12);
    --focus-page: #33CDE6; --field-line: #6A8B99; --zone-mix: 55%;
}

* { box-sizing: border-box; }
:root { color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

body {
  margin: 0;
  font-family: var(--f);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

/* Liens : bleu nuit, soulignes cyan 2 px, decalage 5 px. */
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 5px; }

h1, h2, h3 { color: var(--text); margin-top: 0; text-wrap: balance; }
h1 { font-size: 44px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; }
h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
h3 { font-size: 16px; font-weight: 700; }
@media (max-width: 760px) { h1 { font-size: 28px; } body { font-size: 14px; } }

/* Focus clavier visible partout : contour 3 px, decale de 2 px, couleur --focus (contraste >= 3:1 sur chaque fond). */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Surfaces sombres : le contour reste cyan ; la carte blanche de la page de connexion reprend la couleur du theme. */
.guest-shell, .sidebar, .mobile-bar, .card-phare { --focus: var(--cyan); }
.guest-card { --focus: var(--focus-page); }

/* Annotation manuscrite (Caveat), avec parcimonie : une par zone au plus, masquee aux lecteurs d'ecran. */
.annotation { font-family: var(--f-main); font-weight: 500; font-size: 24px; color: var(--text); display: inline-block; transform: rotate(-4deg); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Écrans "invité" (login, register, invitations...) ---------- */

.guest-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  /* Charte : aplats francs, sans degrade. */
  background: var(--guest-bg);
}

.guest-card {
  background: var(--card);
  border-radius: var(--r-l);
  width: 100%;
  max-width: 420px;
  padding: 40px 36px;
}

.guest-card.wide { max-width: 640px; }

.install-qr {
  text-align: center;
  margin: 20px 0 28px;
}

.install-qr img {
  width: 220px;
  height: 220px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: var(--card);
}

.install-platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}

@media (max-width: 520px) {
  .install-platforms { grid-template-columns: 1fr; }
}

.install-platforms h3 {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text);
}

.install-platforms ol {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 28px;
}

/* Logo : « Hissez Haut » en Montserrat 800, suivi d'un point cyan de 8 px (charte, decision du 30/09). */
.brand-mark {
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
  color: var(--text);
}

.brand-mark span { color: inherit; }
a.brand-mark { text-decoration: none; }
.brand-mark::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 3px; border-radius: 50%; background: var(--cyan); vertical-align: baseline; }

.guest-card h1 {
  font-size: 22px;
  margin-bottom: 4px;
}

.subtitle {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 14px;
}

/* ---------- Formulaires ---------- */

.field { margin-bottom: 18px; }

label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
input[type="url"],
select {
  width: 100%;
  /* 50 px de haut, comme les boutons "form" : champ et bouton alignes dans un formulaire en ligne. */
  padding: 12.5px 16px;
  line-height: 22px;
  border: 1.5px solid var(--field-line);
  border-radius: var(--r-b);
  font-size: 15px;
  font-family: inherit;
  background: var(--card);
  color: var(--text);
}

/* Zones de texte : alignees sur les champs simples (police, bordure, angles,
   focus). Sans cette regle, le navigateur les rend en monospace, carrees, en
   largeur fixe. `field-sizing: content` = agrandissement automatique avec le
   texte (navigateurs recents, ignore ailleurs : le min-height/rows prend le relais). */
textarea {
  display: block;
  width: 100%;
  min-height: 110px;
  max-height: 480px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-b);
  font-size: 15px;
  font-family: inherit;
  line-height: 1.5;
  background: var(--card);
  color: var(--text);
  resize: vertical;
  field-sizing: content;
}

input::placeholder, textarea::placeholder { color: var(--placeholder); }

/* ---------- Bandeau de statut actif/inactif (admin) ----------
   Interrupteur en tete de formulaire : vert = actif, gris = inactif. */

.status-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.status-panel.is-on { background: var(--succes-bg); border-color: var(--succes-line); }
.status-panel.is-off { background: var(--track); border-color: var(--border); }

.status-title { margin: 0; font-size: 15px; font-weight: 800; color: var(--text); }
.status-panel.is-on .status-title { color: var(--succes-txt); }
.status-help { margin: 2px 0 0; font-size: 13px; color: var(--text-muted); }

.switch { position: relative; display: inline-block; flex: none; width: 46px; height: 26px; margin: 0; cursor: pointer; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch-track { position: absolute; inset: 0; background: var(--field-line); border-radius: 999px; transition: background 0.15s ease; }
.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--card);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(15, 47, 58, 0.3);
  transition: transform 0.15s ease;
}
.switch input:checked + .switch-track { background: var(--green); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { box-shadow: 0 0 0 2px var(--card), 0 0 0 5px var(--focus); }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] { width: auto; margin: 0; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--nuit);
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- Autocompletion (x-autocomplete-field) ---------- */

.autocomplete-wrap { position: relative; }

.autocomplete-list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: 100%;
  margin: 4px 0 0;
  padding: 6px 0;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-b);
  box-shadow: 0 8px 24px rgba(15, 47, 58, 0.12);
  max-height: 220px;
  overflow-y: auto;
}

.autocomplete-option {
  padding: 9px 13px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
}

.autocomplete-option:hover,
.autocomplete-option.is-active {
  background: var(--bg);
}

.error-text {
  color: var(--erreur-txt);
  font-size: 13px;
  margin-top: 6px;
}

.help-text {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 6px;
}

/* Boutons (charte) : pilules. Principal = cyan, texte bleu nuit, 13 px 700 capitales ; sombre = bleu nuit, texte
   blanc ; fantome = blanc borde de trait, 14 px 600 ; danger = erreur. Bordure sur tous les boutons (transparente par
   defaut) : un bouton a contour a exactement la meme hauteur que les autres (regle « meme taille, alignes »). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  /* Taille par defaut = taille "form" (50 px de haut, bouton principal de la charte). */
  min-height: 50px;
  padding: 0 24px;
  line-height: 1.25;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

/* Valider un formulaire = action n° 1 de l'ecran : bouton principal cyan de la charte (pleine largeur). */
.btn-primary {
  background: var(--cyan);
  color: var(--nuit);
  width: 100%;
}

.btn-primary:hover { background: var(--cyan-hover); }

/* Bouton sombre (charte) : sur une carte soleil ou cyan, ou appel a l'action en fin de rapport. */
.btn-dark { background: var(--nuit); color: #fff; }
.btn-dark:hover { background: var(--abysse); }

.btn-accent {
  background: var(--cyan);
  color: var(--nuit);
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border-color: var(--line);
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.btn-danger {
  background: var(--erreur-btn);
  color: #fff;
  width: 100%;
}

.btn-danger:hover { background: #b93838; }

.btn-accent:hover { background: var(--cyan-hover); }
.btn-secondary:hover { border-color: var(--text); background: var(--card); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Deux tailles de bouton seulement : "action" (44 px, cible tactile minimale) dans les listes, lignes, cartes et
   barres d'outils ; "form" (50 px) en bas d'un formulaire. Largeur : du texte (btn-auto) ou pleine (btn-block). */
.btn-action { min-height: 44px; padding: 0 18px; }
.btn-form { min-height: 50px; padding: 0 24px; }
.btn-auto { width: auto; }
.btn-block { display: flex; width: 100%; }
.btn-form-wrap { display: inline-block; margin: 0; }
.btn-form-wrap.is-block { display: block; }

.danger-zone {
  border: 1px solid rgba(214, 69, 69, 0.35);
}

.danger-zone h2 { color: var(--erreur-txt); }

.form-footer {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 14px;
  color: var(--text);
}

/* ---------- Alertes ---------- */

.alert {
  padding: 12px 16px;
  border-radius: var(--r-b);
  font-size: 14px;
  margin-bottom: 20px;
}

.alert-success { background: var(--succes-bg); color: var(--succes-txt); }
.alert-error { background: var(--erreur-bg); color: var(--erreur-txt); }
.alert-warning { background: rgba(232, 131, 58, 0.18); color: var(--text); }
.alert-info { background: var(--track); color: var(--text); }

/* ---------- Pagination ---------- */

/* Pagination (2026-10-16) : barre blanche ; « premiere, precedente » et « suivante, derniere » en icones, numeros dans des
   carres, page courante en pastille pleine, « Aller a la page » a droite sur la meme ligne (dessous si la place manque), total dessous. Cibles de 44 px. Petit ecran :
   icones + page courante seulement, saut et total dessous. */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin: 16px 0 24px;
  padding: 12px 16px;
  background: var(--card);
  border-radius: var(--r-b);
  font-size: 14px;
}

/* Pied de la barre : total, « Lignes par page » et export vers Excel (a droite). */
.pagination-foot { flex: 0 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.pagination-total { margin: 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.pagination-size { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.pagination-size label { color: var(--text); font-size: 13px; }
.pagination-size select { width: auto; min-width: 84px; min-height: 44px; margin: 0; padding: 8px 14px; border-radius: var(--r-b); }
/* « Exporter vers Excel » a le même aspect qu'un bouton secondaire (pilule, bordure claire, 14 px) comme les autres boutons des listes (2026-10-22). */
.pagination-item.pagination-export { margin-left: auto; padding: 0 18px; border-radius: var(--r-pill); border: 1.5px solid var(--line); font-size: 14px; }

.pagination-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  box-sizing: border-box;
  border: 1px solid var(--field-line);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.pagination-item:hover { background: var(--track); }
.pagination-item:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Icones « premiere / precedente / suivante / derniere » : sans cadre, comme sur la maquette. */
.pagination-nav { border-color: transparent; padding: 0; }
.pagination-icon { display: block; }
/* Page courante : pastille pleine et en gras (forme + graisse, pas seulement la couleur), non cliquable. */
.pagination-item.is-current { background: var(--emphasis); border-color: var(--emphasis); border-radius: var(--r-pill); color: #fff; cursor: default; font-weight: 800; }
.pagination-item.is-disabled { color: var(--muted); opacity: 0.45; background: transparent; cursor: default; }
.pagination-item.is-disabled:hover { background: transparent; }
.pagination-gap { display: inline-block; min-width: 24px; text-align: center; color: var(--muted); font-weight: 700; letter-spacing: 1px; }

.pagination-goto { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.pagination-goto label { color: var(--text); font-size: 13px; }
.pagination-max { color: var(--muted); font-size: 13px; white-space: nowrap; }
.pagination-goto input[type="number"] { width: 84px; min-height: 44px; margin: 0; text-align: center; font-variant-numeric: tabular-nums; }
.pagination-go { background: var(--emphasis); border-color: var(--emphasis); color: #fff; padding: 0 16px; }
.pagination-go:hover { background: var(--emphasis); filter: brightness(1.2); }

@media (max-width: 760px) {
  .pagination { padding: 12px; justify-content: center; }
  .pagination-pages { justify-content: center; }
  .pagination-number:not(.is-here) { display: none; }
  .pagination-goto { justify-content: center; }
  .pagination-foot { justify-content: center; }
  .pagination-total { flex: 0 0 100%; text-align: center; }
  .pagination-export { margin-left: 0; }
}

/* ---------- Layout applicatif (connecté) : barre laterale (charte Webapp, phase 2 du 2026-09-30) ----------
   Plus de 1100 px : barre laterale complete (264 px, bleu nuit, collante). 760 a 1100 px : reduite a 84 px (icones
   seules, logo « H »). Moins de 760 px : barre laterale masquee (elle s'ouvre en plein ecran par « Menu »), barre
   flottante en bas avec les 4 premieres entrees. */

.app-shell { min-height: 100vh; display: flex; align-items: stretch; }

.sidebar {
  flex: none;
  width: 264px;
  height: calc(100vh - var(--banner-h, 0px));
  position: sticky;
  top: var(--banner-h, 0px);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding: 28px 16px 20px;
  background: var(--nav);
  color: #fff;
  overflow-y: auto;
}

.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }
.sidebar-brand { color: #fff; font-size: 26px; text-decoration: none; white-space: nowrap; }
.sidebar-brand .brand-short { display: none; }
.sidebar-close { display: none; }

.sidebar-main { display: flex; flex-direction: column; gap: 4px; flex: 1; }
/* Pas d'espace « vide » entre les entrees (accessibilite, 2026-10-14) : au survol d'un espace de 4 px, le lecteur d'ecran lisait toute la
   liste (le conteneur est l'objet sous la souris). L'ecart de 4 px est porte par chaque <li> (2 px en haut et en bas). */
.sidebar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.sidebar-list > li { padding-block: 2px; }

/* Entree : icone 20 px + libelle 14 px 600 blanc, 46 px de haut, rayon 10 px ; survol voile blanc 8 % ; active soleil. */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--r-nav);
  background: none;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.sidebar-link .icon { flex: none; }
.sidebar-label { flex: 1; min-width: 0; }
.sidebar-link:hover { background: rgba(255, 255, 255, 0.08); }
.sidebar-link.active { background: var(--soleil); color: var(--nuit); font-weight: 700; }
.sidebar-link .nav-badge { margin-left: auto; }

/* Section « Admin Resiliens » repliable (decision du 30/09). */
.sidebar-group { margin-top: var(--s2); padding-top: var(--s2); border-top: 1px solid var(--piste); }
.sidebar-caret { transition: transform 0.15s ease; }
.sidebar-group-toggle[aria-expanded="true"] .sidebar-caret { transform: rotate(180deg); }
.sidebar-sublist { margin-top: 0; padding-top: 4px; }
.sidebar-sublist .sidebar-link { min-height: 40px; font-size: 13px; }
.sidebar-sublabel { display: block; font-size: 11px; opacity: .7; font-weight: 400; line-height: 1.2; }
/* Rubriques de l'admin (revue UX du 2026-10-02, C4). Barre reduite : un simple trait. */
.sidebar-heading { margin: 0; padding: 10px 12px 2px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.sidebar-heading:first-child { padding-top: 2px; }
/* Entree de l'admin dans l'admin : la section active est marquee, le titre de groupe reste sobre. */
.sidebar-group-toggle.is-current { color: var(--soleil); }

.sidebar-foot { border-top: 1px solid var(--piste); padding-top: var(--s2); }
.sidebar-foot form { margin: 0; }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* En-tete de la zone de contenu : fil d'Ariane a gauche, organisation active et avatar a droite. */
.app-topbar {
  display: flex;
  align-items: center;
  gap: var(--s3);
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 48px 0;
}
.topbar-brand { display: none; }
.topbar-breadcrumb { flex: 1; min-width: 0; }
.topbar-right { display: flex; align-items: center; gap: var(--s2); margin-left: auto; }
.topbar-right form { margin: 0; }
.topbar-right select { width: auto; min-height: 44px; padding: 8px 14px; border-radius: var(--r-pill); font-size: 14px; }

/* Menu de la pastille « Mon compte » (local seulement, 2026-10-23) : fenetre « Aller a un autre compte » ; bandeau « Revenir a mon compte » quand on est connecte sous un autre compte. */
button.avatar { padding: 0; border: 0; font-family: inherit; cursor: pointer; }
.account-menu .context-menu-list a.context-menu-item { text-decoration: none; }
.account-picker { width: min(520px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 64px)); margin: 10vh auto auto; padding: 20px; border: 0; border-radius: var(--r-b); background: var(--card); color: var(--text); box-shadow: 0 0 0 1px var(--line), 0 24px 64px rgba(3, 35, 46, 0.35); }
.account-picker[open] { display: flex; flex-direction: column; gap: 10px; }
.account-picker::backdrop { background: rgba(3, 35, 46, 0.6); }
.account-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-picker-head h2 { margin: 0; font-size: 20px; }
.account-picker-close { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; }
.account-picker-close:hover { background: var(--track); }
.account-picker .help-text { margin: 0; }
.account-picker input[type="search"] { width: 100%; min-height: 44px; }
.account-picker-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; overflow-y: auto; }
.account-picker-list form { margin: 0; }
.account-picker-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-nav); background: var(--card); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
a.account-picker-item { box-sizing: border-box; text-decoration: none; }
.account-picker-item:hover:not(:disabled) { background: var(--track); border-color: var(--cyan); }
.account-picker-item:disabled { opacity: 0.6; cursor: not-allowed; }
.account-picker-id { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.account-picker-who { display: flex; flex-direction: column; min-width: 0; }
.account-picker-who strong, .account-picker-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-picker-who small { color: var(--muted); font-size: 13px; }
.account-picker-meta { max-width: 150px; font-size: 13px; color: var(--muted); text-align: right; }
@media (max-width: 760px) { .account-picker-item { grid-template-columns: auto minmax(0, 1fr); } .account-picker-meta { grid-column: 2; max-width: none; text-align: left; } }
.edition-banner.local-account-banner { background: var(--cyan); color: var(--nuit); }
.edition-banner.local-account-banner .edition-banner-quit { border-color: var(--nuit); color: var(--nuit); }
.edition-banner.local-account-banner > span { white-space: normal; text-align: center; }
@media (max-width: 760px) { .edition-banner.local-account-banner { padding-block: 8px; } }

/* Avatar : cercle cyan, initiales bleu nuit. */
.avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--nuit);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.avatar:hover { background: var(--cyan-hover); }

/* Indicateur de contexte (2026-10-07) : personnel (teinte chaude, avatar rond) ou professionnel (teinte cyan, avatar
   arrondi carre). Jamais la couleur seule : la pastille dit le mot, avec une icone. Teintes en transparence : elles
   suivent le theme clair ou sombre. */
body[data-contexte="professionnel"] { --ctx-wash: rgba(51, 205, 230, 0.09); --ctx-ring: var(--cyan-pro); }
body[data-contexte] .app-main { background-image: linear-gradient(var(--ctx-wash), var(--ctx-wash)); }
body[data-contexte] .avatar { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--ctx-ring); }
body[data-contexte="professionnel"] .avatar { border-radius: 14px; }
.context-pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border: 0; border-radius: var(--r-pill); background: var(--card); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--ctx-ring);
}
.context-pill:hover { box-shadow: inset 0 0 0 2px var(--cyan); }
.context-pill.is-static { cursor: default; }
.context-pill.is-static:hover { box-shadow: inset 0 0 0 2px var(--ctx-ring); }
/* Menu de contexte fusionne (2026-10-07) : la pastille ouvre la liste Personnel / organisations de travail. */
.context-menu { position: relative; }
.context-pill-org { font-weight: 500; color: var(--muted); }
.context-pill-label { display: inline-block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.context-menu-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 240px; max-width: 320px; margin: 0; padding: 8px; list-style: none;
  background: var(--card); border-radius: var(--r-b); box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(3, 35, 46, 0.18);
}
.context-menu-list form { margin: 0; }
.context-menu-heading { padding: 10px 10px 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.context-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: var(--r-nav);
  background: transparent; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer;
}
.context-menu-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.context-menu-item:hover { background: var(--track); }
.context-menu-item.is-current { background: var(--ctx-wash); box-shadow: inset 0 0 0 2px var(--ctx-ring); }
@media (max-width: 560px) { .context-pill-label { display: none; } .context-pill { padding: 0 12px; } .context-menu-list { min-width: 220px; } }

.app-content {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 48px 48px;
}

/* Barre flottante (mobile) : pilule bleu nuit de 68 px, a 16 px des bords, 5 cercles de 52 px, l'actif sur soleil. */
.mobile-bar { display: none; }

@media (max-width: 1100px) {
  .sidebar { width: 84px; padding: 24px 12px 16px; align-items: stretch; }
  .sidebar-head { justify-content: center; padding: 0; }
  .sidebar-brand .brand-full { display: none; }
  .sidebar-brand .brand-short { display: inline; }
  .sidebar-link { justify-content: center; padding: 8px; }
  .sidebar-label, .sidebar-caret { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sidebar-link .nav-badge { position: absolute; margin: -22px 0 0 22px; }
  .sidebar-link { position: relative; }
  .sidebar-heading { margin: 8px 18px 4px; height: 1px; background: currentColor; opacity: .25; }
  .app-topbar { padding: 20px 32px 0; }
  .app-content { padding: 24px 32px 40px; }
}

@media (max-width: 760px) {
  .sidebar { display: none; }
  /* « Menu » ouvre la barre laterale en plein ecran, complete. */
  .sidebar.is-open {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 60;
    width: auto;
    height: auto;
    padding: 20px;
  }
  .sidebar.is-open .sidebar-head { justify-content: space-between; }
  .sidebar.is-open .brand-full { display: inline; }
  .sidebar.is-open .brand-short { display: none; }
  .sidebar.is-open .sidebar-link { justify-content: flex-start; padding: 8px 12px; }
  .sidebar.is-open .sidebar-label, .sidebar.is-open .sidebar-caret { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .sidebar.is-open .sidebar-link .nav-badge { position: static; margin: 0 0 0 auto; }
  .sidebar.is-open .sidebar-heading { margin: 10px 12px 2px; height: auto; background: none; opacity: .6; }
  .sidebar.is-open .sidebar-close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer;
  }

  .app-topbar { padding: 16px 20px 0; flex-wrap: wrap; }
  .topbar-brand { display: inline-block; font-size: 22px; }
  .topbar-breadcrumb { order: 3; flex-basis: 100%; }
  .app-content { padding: 20px 20px 110px; }

  .mobile-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 50;
    height: 72px;
    padding: 0 8px;
    border-radius: var(--r-pill);
    background: var(--nav);
    box-shadow: 0 8px 24px rgba(3, 35, 46, 0.25);
  }
  .mobile-bar-link {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 58px;
    padding: 0 6px;
    border: 0;
    border-radius: 18px;
    background: none;
    color: #fff;
    cursor: pointer;
  }
  .mobile-bar-link.active { background: var(--soleil); color: var(--nuit); }
  .mobile-bar-link .nav-badge { position: absolute; top: 2px; right: 4px; margin: 0; }
  /* Libelle sous l'icone (revue UX du 2026-10-02, A2) : les icones seules n'etaient pas assez parlantes. */
  .mobile-bar-link, .mobile-bar-link:hover { text-decoration: none; }
  .mobile-bar-label { font-size: 10.5px; font-weight: 600; line-height: 1; letter-spacing: 0.01em; }
}

/* Cartes (charte) : feuilles blanches sans ombre ni degrade, rayon 20 px, padding 28-34 px (22 px en mobile). */
.card {
  background: var(--card);
  border-radius: var(--r-l);
  padding: 30px;
  margin-bottom: 24px;
}
@media (max-width: 760px) { .card { padding: 22px; } }

/* Carte repliable generique (x-collapsible-card) : header toujours visible,
   corps replie au clic - restitutions longues (ex. synthese Diagnostic 5B). */
.collapsible-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.collapsible-card-header-content {
  flex: 1;
  min-width: 0;
}
.collapsible-card-header-content h2 {
  margin-bottom: 0;
}
.collapsible-card-toggle {
  flex-shrink: 0;
  color: var(--accent-txt);
  font-weight: 700;
  font-size: 14px;
}
.collapsible-card-body {
  margin-top: 16px;
}

/* ---------- Page de resultat d'un test : bloc "Partager" isole de
   l'analyse de personnalite, dans une colonne laterale (retour
   utilisateur, croquis a l'appui) ---------- */

.result-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.result-sidebar {
  order: 2;
}

.result-sidebar .card {
  background: var(--bg);
}

/* Deux colonnes seulement sur grand ecran : avec la barre laterale de l'app, le tableau etait a l'etroit (revue UX du 2026-10-02). */
@media (min-width: 1180px) {
  .result-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .result-main {
    flex: 1;
  }

  .result-sidebar {
    order: -1;
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 24px;
  }
}

/* Navigation laterale de la section Historique (meme layout .result-layout,
   reutilise tel quel : purement structurel, pas specifique aux pages de
   resultat) - un lien = une carte cliquable, comme .insight-block. */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-nav-link {
  display: block;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-s);
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.sidebar-nav-link:hover {
  border-color: var(--nuit);
}
/* Actif : bleu nuit, comme un onglet actif (le soleil est reserve a un seul aplat par ecran). */
.sidebar-nav-link.active {
  border-color: var(--nuit);
  background: var(--nuit);
  color: #fff;
}

/* Badge (charte) : pilule cyan, texte bleu nuit, 11 px 700 capitales. */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--cyan);
  color: var(--nuit);
}

/* Diagnostic 5B : lecture par couleur des boucles (score/consensus/couverture). */
.badge-green { background: var(--succes-bg); color: var(--succes-txt); }
/* Jaune = le jaune du cycle (--soleil), pas l'orange d'alerte (.badge-warning) : revue UX du 2026-10-22, évolution 7. */
.badge-yellow { background: var(--soleil-bg); color: var(--text); }
.badge-red { background: rgba(214, 69, 69, 0.12); color: var(--erreur-txt); }
.badge-neutral { background: var(--track); color: var(--text); }

/* ---------- Tableaux de donnees (.table-wrap > table) ----------
   Composant commun des ecrans de liste : conteneur avec bordure et defilement
   horizontal, en-tete teinte, colonne d'identification en gras (<th scope="row">),
   survol de ligne, colonnes numeriques alignees a droite (.num), actions en
   boutons (td.actions). `display: table` + 100 % : le tableau occupe toute la
   largeur, contrairement a la regle generique plus bas (display:block). */

.table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 24px;
}

.table-wrap table {
  display: table;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.table-wrap thead th {
  background: var(--bg);
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.table-wrap tbody tr:last-child th,
.table-wrap tbody tr:last-child td { border-bottom: 0; }

.table-wrap tbody th {
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
}

.table-wrap tbody tr:nth-child(even) > * { background: var(--zebra); }
.table-wrap tbody tr:hover > * { background: var(--bg); }

/* Dans un tableau, un badge porte une donnee (organisation, role...) : etiquette neutre, sans capitales, pour rester
   lisible ; les variantes d'etat (succes, alerte...) gardent leurs couleurs. */
.table-wrap .badge { white-space: nowrap; margin: 2px 4px 2px 0; background: var(--bg); color: var(--text); border: 1px solid var(--line); text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; }
.table-wrap .badge-success, .table-wrap .badge-green { background: var(--succes-bg); color: var(--succes-txt); border-color: transparent; }   /* vert du cycle ; sans cette règle, .badge-green restait beige dans un tableau */
.table-wrap .badge-warning { background: rgba(232, 131, 58, 0.18); color: var(--text); border-color: transparent; }
.table-wrap .badge-yellow { background: var(--soleil-bg); color: var(--text); border-color: transparent; }
.table-wrap .badge-red, .table-wrap .badge-danger { background: rgba(214, 69, 69, 0.12); color: var(--erreur-txt); border-color: transparent; }
.table-wrap .badge-muted { background: var(--track); color: var(--muted); border-color: transparent; }

.table-wrap .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap .wrap { white-space: normal; }
.table-wrap .muted { color: var(--text-muted); }
/* Ligne secondaire sous le nom (l'adresse email) : une colonne de moins, donc un tableau qui tient dans la page. */
.table-wrap .cell-sub { display: block; font-size: 13px; font-weight: 400; color: var(--text-muted); overflow-wrap: anywhere; }

.table-wrap .actions { text-align: right; white-space: nowrap; width: 1%; }
.table-wrap .actions > * { display: inline-block; vertical-align: middle; margin-left: 8px; }
/* Colonne d'actions qui peut passer à la ligne (statut + plusieurs boutons) : le tableau tient alors sans défilement horizontal. */
.table-wrap .actions.actions-wrap { white-space: normal; width: 1%; min-width: 300px; }
.table-wrap .actions.actions-wrap > * { margin: 3px 0 3px 8px; }
.table-wrap .actions a {
  /* Meme rendu que les boutons fantomes "action" (pilule, 44 px de haut). */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.table-wrap .actions a:hover { border-color: var(--navy); background: var(--bg); }

.card .table-wrap, .insight-tile-detail .table-wrap { box-shadow: none; margin-bottom: 0; }

.table-count { margin: 0 0 8px; font-size: 13px; color: var(--text-muted); }

.badge-success { background: var(--succes-bg); color: var(--succes-txt); }
.badge-muted { background: var(--track); color: var(--text-muted); }
.badge-warning { background: rgba(232, 131, 58, 0.18); color: var(--text); }

tr.is-inactive > * { opacity: 0.55; }
tr.is-inactive > .actions, tr.is-inactive > .status-cell { opacity: 1; }

/* Interrupteur actif/inactif dans une cellule de liste (partiel toggle-active) */
.row-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 4px 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  color: var(--text-muted);
}
.row-switch-track {
  position: relative;
  flex: none;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--field-line);
  transition: background 0.15s ease;
}
.row-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(15, 47, 58, 0.3);
  transition: transform 0.15s ease;
}
.row-switch.is-on .row-switch-track { background: var(--green); }
.row-switch.is-on .row-switch-track::after { transform: translateX(18px); }
.row-switch.is-on .row-switch-label { color: var(--succes-txt); }
.row-switch-label { font-size: 13px; font-weight: 700; min-width: 52px; text-align: left; }
.row-switch:hover .row-switch-track { filter: brightness(0.95); }
.row-switch:focus-visible { outline: none; }
.row-switch:focus-visible .row-switch-track { box-shadow: 0 0 0 2px var(--card), 0 0 0 5px var(--focus); }

/* ---------- Editeur JSON (admin, contenu de restitution) ---------- */
textarea.code-editor {
  min-height: 460px;
  max-height: 75vh;
  field-sizing: fixed;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
  tab-size: 2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.json-details { margin-bottom: 24px; }
.json-details > summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 10px; }

.json-view {
  margin: 0;
  padding: 16px 18px;
  max-height: 520px;
  overflow: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}

.json-key { color: var(--text); font-weight: 700; }
.json-string { color: var(--succes-txt); }
.json-number { color: var(--code-number); }
.json-bool { color: var(--code-bool); font-weight: 700; }
.json-punct { color: var(--muted); }
/* ---------- Fil d'Ariane (en-tete de la zone de contenu ; charte : 12-13 px, 500, gris texte, page courante en 700) ---------- */

/* Ecrans admin : mise en page large (tableaux a 5-6 colonnes, sinon defilement
   horizontal) ; les cartes de formulaire gardent une largeur de lecture. */
/* Toutes les cartes de l'administration ont la meme largeur, celle de la zone de contenu (bords alignes, retour du
   2026-10-14) ; leur contenu (textes, champs, tableaux) en occupe toute la largeur (choix de Nicolas). */
.app-content-wide > .card { max-width: none; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: var(--placeholder); }
.breadcrumb a { color: var(--muted); font-weight: 500; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li[aria-current="page"] span { color: var(--text); font-weight: 700; }

/* display:block + overflow-x:auto : une table plus large que son
   conteneur (colonnes email/role/action sur un petit ecran) defile a
   l'interieur de sa propre carte plutot que de faire defiler toute la
   page horizontalement (bug remonte lors de la verification mobile). */
table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--text-muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }

.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { margin-bottom: 0; flex: 1; min-width: 160px; }

.empty-state {
  color: var(--text-muted);
  font-size: 14px;
  padding: 12px 0;
}

/* ---------- Partage de résultat ---------- */

.share-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px 84px;
  grid-template-areas: "team status action";
  align-items: center;
  column-gap: 8px;
  row-gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.share-row:last-child { border-bottom: none; }

.share-team { grid-area: team; font-weight: 600; overflow-wrap: anywhere; }
.share-scope { display: block; margin: 2px 0 0; font-weight: 400; font-size: var(--text-xs); }
.share-status { grid-area: status; justify-self: end; }
.share-action { grid-area: action; margin: 0; }
.share-action .btn-small { width: 100%; }
/* Partage avec les amis (sous les equipes) : choix personne / certains / tous, puis la liste des amis. */
/* Bloc « Partager » replie par defaut, champ et bouton sur une meme ligne (lot 4, 2026-10-16). */
.share-block > summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; list-style: none; }
.share-block > summary::-webkit-details-marker { display: none; }
.share-block > summary::before { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--field-line); font-weight: 700; }
.share-block[open] > summary::before { content: "\2212"; }
.share-block[open] > summary { margin-bottom: 12px; }
.share-block > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--r-b); }
.share-recipient { margin: 0 0 12px; }
.share-recipient-label { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.share-recipient-label label { margin: 0; }
.share-recipient-row { display: flex; align-items: flex-start; gap: 8px; }
.share-recipient-row .autocomplete-wrap { position: relative; flex: 1; min-width: 0; margin: 0; }
.share-recipient-row .btn { flex: none; }
.share-recipient .help-text { margin: 6px 0 0; }
.share-footnote { margin: 8px 0 0; }
.share-intro { margin: 0 0 8px; }
.comm-share { grid-column: 1 / -1; }
/* « Partagés avec moi » : recherche et filtres sur une ligne (lot 4, phase 1). */
.shares-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.shares-filters .field { margin: 0; flex: 1 1 200px; min-width: 0; }
.shares-filters-actions { display: flex; gap: 8px; }

/* Liste de reglages en lecture seule (fiche admin d'une organisation, 2026-10-16). */
.detail-list { display: grid; gap: 14px; margin: 0 0 12px; }
.detail-list > div { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 6px 16px; align-items: start; }
.detail-list dt { font-weight: 700; }
.detail-list dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 760px) { .detail-list > div { grid-template-columns: 1fr; } }
.share-friends { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.share-row + .share-friends { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.share-friends-title, .share-friends .help-text { margin: 0; }
.share-friends-modes { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.share-friends-modes label, .share-friends-list label { display: flex; align-items: center; gap: 6px; font-weight: normal; margin: 0; }
.share-friends-list { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow-y: auto; padding-left: 4px; }
.share-friends .btn-small { align-self: flex-start; }
.share-disabled { grid-column: status / action; justify-self: end; text-align: right; }
.duo-team { margin: var(--space-3) 0 var(--space-1); }
.duo-partners { margin: 0; padding-left: 20px; }
.duo-partners li { margin-bottom: 4px; }
.duo-partners + .btn-form-wrap, .duo-team + .help-text + .btn-form-wrap { margin-top: var(--space-2); display: inline-block; }
.duo-filter { margin-bottom: var(--space-2); }
/* Simuler une collaboration (lot F2) : liste de personnes a cocher, sans cadre de fieldset. */
.simulation-people { border: 0; margin: 0 0 var(--space-2); padding: 0; min-width: 0; display: grid; gap: var(--space-1); }
/* Page de lecture de duo. */
.duo-people { list-style: none; margin: 0 0 var(--space-3); padding: 0; }
.duo-people li { margin-bottom: 6px; }
.duo-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 2px solid var(--text); margin-right: 8px; vertical-align: -2px; box-sizing: border-box; }
.duo-dot.is-hollow { background: var(--card); border-width: 3px; }
.duo-relation { margin: var(--space-3) 0 var(--space-2); }
.duo-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-5); }
@media (max-width: 760px) { .duo-blocks { grid-template-columns: minmax(0, 1fr); } }
.duo-item + .duo-item { margin-top: var(--space-3); }
.duo-item h3 { margin: 0 0 var(--space-1); }
.duo-item p { margin: 0; }
.duo-advice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-5); }
.duo-advice .duo-item + .duo-item { margin-top: 0; }
@media (max-width: 760px) { .duo-advice { grid-template-columns: minmax(0, 1fr); } }

/* Colonne laterale etroite (PC) : nom sur sa propre ligne, statut et bouton alignes dessous.
   Sur mobile, le bloc prend toute la largeur : tout reste sur une ligne. */
@media (min-width: 701px) {
  .result-sidebar .share-row { grid-template-areas: "team team team" ". status action"; }
  .result-sidebar .share-disabled { grid-column: 1 / -1; justify-self: start; text-align: left; }
}

/* Ancien nom de la taille "action" (charte) : meme rendu que .btn-action. */
.btn-small {
  width: auto;
  min-height: 44px;
  padding: 0 18px;
}

/* ---------- Répartition des scores (page de résultat) ---------- */

.score-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.score-bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 36px;
  align-items: center;
  gap: 12px;
}

.score-bar-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.score-bar-track {
  background: var(--bg);
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
}

.score-bar-fill {
  background: var(--navy);
  height: 100%;
  border-radius: 999px;
}

.score-bar-value {
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
}

/* Variante a seuils (test Assertivite) : couleur par niveau + reperes de seuil */
.score-bar-row:has(.score-bar-tick) {
  grid-template-columns: 140px 1fr 56px;
}

.score-bar-track:has(.score-bar-tick) {
  position: relative;
}

.score-bar-high { background: var(--green); }
.score-bar-low { background: var(--yellow); }

.score-bar-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--navy-dark);
  opacity: 0.35;
}

/* ---------- Radar des drivers dominants (vue manager) ---------- */

.radar-chart-wrap {
  display: flex;
  justify-content: center;
  padding: 10px 16px;
}

.radar-chart {
  width: 100%;
  max-width: 640px;
  overflow: visible;
}

.radar-grid-ring {
  fill: none;
  stroke: var(--border);
  stroke-width: 1;
}

.radar-axis-line {
  stroke: var(--border);
  stroke-width: 1;
}

.radar-data-polygon {
  fill: var(--green);
  fill-opacity: 0.25;
  stroke: var(--green);
  stroke-width: 2;
}

.radar-data-point {
  fill: var(--text);
}

.radar-axis-label {
  font-size: 11px;
  fill: var(--text);
  font-weight: 600;
}

/* ---------- Cercle DISC a 4 quadrants (vue manager, alternative au radar) ---------- */

.disc-chart-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
}

.disc-chart {
  width: 100%;
  max-width: 280px;
}

.disc-chart-divider {
  stroke: #fff;
  stroke-width: 3;
}

.disc-chart-outline {
  fill: none;
  stroke: var(--border);
  stroke-width: 1;
}

.disc-chart-letter {
  font-size: 28px;
  font-weight: 800;
  fill: #fff;
}

.disc-chart-count {
  font-size: 15px;
  font-weight: 700;
  fill: #fff;
}

.disc-chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
}

.disc-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.disc-chart-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

/* ---------- Matrice fragilite x alignement (Diagnostic 5B) ---------- */

.dispersion-matrix-wrap {
  display: flex;
  justify-content: center;
  padding: 10px 20px;
}

.dispersion-matrix {
  width: 100%;
  max-width: 560px;
}

.dispersion-quadrant-good { fill: rgba(31, 122, 82, 0.18); }
.dispersion-quadrant-warning { fill: rgba(232, 131, 58, 0.22); }
.dispersion-quadrant-bad { fill: rgba(214, 69, 69, 0.18); }

.dispersion-divider {
  stroke: #fff;
  stroke-width: 2;
  stroke-dasharray: 4 4;
}

.dispersion-axis {
  stroke: var(--text-muted);
  stroke-width: 1.5;
}

.dispersion-arrowhead {
  fill: var(--text-muted);
}

.dispersion-axis-title {
  font-size: 13px;
  font-weight: 700;
  fill: var(--text);
}

.dispersion-point {
  stroke: #fff;
  stroke-width: 2;
}

/* Mêmes couleurs que « Le cycle en un coup d'œil » (.cycle-node-*) : vert, jaune, rouge. Les jetons --green et --yellow de la charte sont le cyan et l'orange. */
.dispersion-point-green { fill: var(--succes); }
.dispersion-point-yellow { fill: var(--soleil); }
.dispersion-point-red { fill: var(--erreur); }

.dispersion-point-label {
  font-size: 12px;
  font-weight: 700;
  fill: var(--text);
}

/* ---------- Tuiles depliables (restitutions individuelles + dynamiques
   de paire, vue manager) ---------- */

.insight-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.insight-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.insight-tile-header {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 20px;
  cursor: pointer;
  font-family: inherit;
}

.insight-tile-header:hover {
  background: var(--bg);
}

/* Tuile sans rien a deplier (pas de conseils pour ce profil) : un simple encart, pas un bouton. */
.insight-tile-header.insight-tile-static,
.insight-tile-header.insight-tile-static:hover {
  cursor: default;
  background: none;
}

.insight-tile-names {
  display: block;
  font-weight: 700;
  color: var(--text);
  font-size: 15px;
}

.insight-tile-x {
  color: var(--text-muted);
  font-weight: 400;
}

.insight-tile-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.insight-tile-teaser {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
}

.insight-tile-toggle {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-txt);
}

.insight-tile-detail {
  padding: 0 20px 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  max-width: 720px;
}

.insight-tile-detail .card {
  box-shadow: none;
  border: 1px solid var(--border);
}

/* Une tuile ouverte occupe toute la largeur de la grille plutot que sa
   seule colonne : la zone depliee etait jugee trop etroite pour lire
   confortablement une fiche entiere. */
.insight-tile-expanded {
  grid-column: 1 / -1;
}

/* ---------- Hub des dynamiques d'equipe : un bloc agregat+radar par test ---------- */

.insight-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 700px) {
  .insight-blocks { grid-template-columns: 1fr; }
}

.insight-block {
  display: block;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.insight-block:hover {
  border-color: var(--green);
}

.insight-block h2 {
  font-size: 19px;
  margin-bottom: 4px;
}
.insight-block .help-text {
  margin-bottom: 18px;
}

/* Barres et radar recompactes pour tenir confortablement dans une carte
   a demi-largeur (2 par ligne), plutot que les memes marges que sur la
   page de detail d'un seul test, en pleine largeur. */
.insight-block .score-bar-row {
  grid-template-columns: 104px 1fr 26px;
  gap: 8px;
}
.insight-block .score-bar-label {
  font-size: 12.5px;
}
.insight-block .radar-chart-wrap {
  padding: 4px 4px 0;
}
.insight-block .radar-axis-label {
  font-size: 12px;
}

/* Mobile : une fiche courte par test (nom, qui a partagé, « Voir le détail ») ; le graphique se lit dans le détail (revue UX du 2026-10-22, évolution 6). */
@media (max-width: 700px) {
  .insight-block-chart { display: none; }
  .insight-block .insight-block-counts { margin-bottom: 0; }
}

/* Photo d'equipe (2026-11-03) : la meme carte que sur la page Profilage, mais sans lien (le graphique reste visible sur mobile) ; les membres s'y deplient. */
.insight-block-static:hover {
  border-color: var(--border);
}
.insight-block-members {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.insight-block-toggle {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  color: var(--accent-txt);
  cursor: pointer;
}
.insight-tiles.insight-tiles-stacked {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 12px 0 0;
}

.insight-block-hint {
  display: block;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-txt);
}
@media (max-width: 700px) {
  .insight-block-hint { margin-top: 12px; padding-top: 12px; }
}

/* ---------- Tableau de bord : modules de tests ---------- */

.dashboard-header {
  margin-bottom: 24px;
}

.module-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Tableau de bord : texte a gauche, trois colonnes d'actions de largeur fixe a droite (statut / action
   principale / action secondaire, .module-slot) - les badges et les boutons s'alignent d'une ligne a
   l'autre, et tous les boutons ont la meme taille (taille "action", celle des listes de l'Historique). */
.module-card:has(> .module-action > .module-slot) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}
.module-action:has(> .module-slot) {
  display: grid;
  grid-template-columns: 200px 200px 200px;
  gap: 10px;
}
.module-slot { display: flex; justify-content: center; margin: 0; }
.module-slot-status { justify-content: flex-end; }
.module-action .module-slot .btn { width: 100%; padding: 0 14px; }
.module-slot form { width: 100%; margin: 0; }
/* Zone de contenu reduite par la barre laterale (760-1100 px) : les trois colonnes d'actions passent sous le texte,
   toujours alignees d'une ligne a l'autre. */
@media (min-width: 761px) and (max-width: 1100px) {
  .module-card:has(> .module-action > .module-slot) { grid-template-columns: minmax(0, 1fr); }
  .module-action:has(> .module-slot) { justify-self: end; }
}
@media (max-width: 760px) {
  .module-card:has(> .module-action > .module-slot) { grid-template-columns: minmax(0, 1fr); }
  /* Mobile (principe « épurer », 20/10) : statut, puis les boutons CÔTE À CÔTE quand ils tiennent (deux boutons courts sur une seule ligne),
     sinon l'un sous l'autre sur toute la largeur ; cible tactile de 44 px, texte sur une ligne. Carte un peu plus serrée. */
  .module-card { padding: 16px; }
  .module-action:has(> .module-slot) { display: flex; flex-wrap: wrap; gap: 8px; }
  .module-slot { flex: 1 1 auto; }
  .module-action .module-slot .btn { padding: 0 12px; white-space: nowrap; }
  .module-slot-status { flex-basis: 100%; justify-content: flex-start; }
  .module-slot:empty { display: none; }
}

.module-info h2 {
  margin: 0 0 4px 0;
  font-size: 18px;
}

.module-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.module-action {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.module-action form {
  margin: 0;
}

.module-action .btn {
  width: auto;
}

/* Ligne compacte pour un element de gestion de compte (invitations en
   attente...) a l'interieur d'une .card - plus dense qu'un .module-card
   (reserve aux tests/diagnostics a passer), pour rester visuellement
   distinct de ces derniers. */
.compact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.compact-row:last-child { border-bottom: none; padding-bottom: 0; }
.compact-row:first-child { padding-top: 0; }

.compact-row-info h3 {
  margin: 0 0 2px 0;
  font-size: 15px;
}

.compact-row-info p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.compact-row form { margin: 0; }
.compact-row .btn { width: auto; }

.status-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-todo {
  background: var(--track);
  color: var(--text-muted);
}

.status-progress {
  background: var(--soleil);
  color: var(--nuit);
}

.status-done {
  background: var(--succes-bg);
  color: var(--succes-txt);
}

.status-off {
  background: var(--track);
  color: var(--muted);
}

/* ---------- Passation de test : une question a la fois ---------- */

[x-cloak] { display: none !important; }

/* Progression (charte) : 12 px, rail clair, remplissage soleil. */
.progress-track {
  background: var(--track);
  border-radius: 999px;
  height: 12px;
  width: 100%;
  overflow: hidden;
  margin-top: 14px;
}

.progress-fill {
  background: var(--soleil);
  height: 100%;
  border-radius: 999px;
  transition: width 0.2s ease;
}

.progress-label {
  text-align: right;
  font-size: 13px;
  color: var(--text-muted);
  margin: 6px 0 24px;
}

/* Groupe d'options d'une question (fieldset + legend, accessibilite 2026-10-14) : aucun cadre, la legende garde le style de l'enonce. */
.question-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.question-group:focus-visible { outline-offset: 6px; }
legend.likert-text-big { display: block; width: 100%; padding: 0; }
.likert-text-big {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 20px 0;
}

/* Consigne d'un test a contexte (ex. DISC circulaire) : rappelee au-dessus de chaque question. */
.test-instruction {
  font-size: 14px;
  font-style: italic;
  color: var(--text-muted);
  margin: 0 0 16px;
}

/* Retour "ce resultat me ressemble" : 5 boutons de reponse alignes. */
.feedback-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.feedback-scale form { margin: 0; }
.feedback-scale .btn { width: auto; }
.feedback-scale .btn.is-selected { background: var(--navy); color: #fff; }

.likert-options-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.likert-option-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  padding: 12px 20px;
  min-height: 50px;
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
/* Reponse choisie au clavier : contour de focus de la charte sur toute la pilule. */
.likert-option-row:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }

.likert-option-row:hover { border-color: var(--text); }

/* Reponse choisie (charte : pilule, cyan pour ce qu'on active). */
.likert-option-row.selected {
  border-color: var(--cyan);
  background: rgba(51, 205, 230, 0.14);
}

.likert-option-row input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.likert-radio-dot {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  border: 2px solid var(--field-line);
  position: relative;
}

.likert-option-row.selected .likert-radio-dot {
  border-color: var(--text);
}

.likert-option-row.selected .likert-radio-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--text);
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
}

.wizard-nav .btn-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.wizard-nav .btn-accent:disabled,
.wizard-nav .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Autres attitudes du test Assertivite : depliables a la demande */
.other-attitudes {
  margin-top: 8px;
}

.other-attitudes > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  padding: 10px 0;
}

/* Tuile "resultat partage" sans contenu manager : lien direct vers le resultat detaille */
.insight-tile-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.insight-tile-link:hover .insight-tile-header {
  background: var(--bg);
}

.insight-tile-link .insight-tile-header {
  cursor: pointer;
}

/* ---------- Questions a choix : "le plus / le moins" ---------- */

.choice-prompt {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 14px;
}

.choice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px 84px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.choice-head-cell {
  background: var(--bg);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 6px;
}

.choice-head-cell:first-child { text-align: left; padding-left: 16px; }

.choice-word {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}

.choice-word strong { display: block; color: var(--text); font-size: 16px; }
.choice-word small { display: block; color: var(--text-muted); font-size: 13px; margin-top: 2px; }

.choice-pick {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
}

.choice-pick input { width: 22px; height: 22px; margin: 0; accent-color: var(--cyan-pro); cursor: pointer; }
.choice-pick.is-most.selected { background: var(--succes-bg); }
.choice-pick.is-least.selected { background: var(--erreur-bg); }

@media (max-width: 520px) {
  .choice-grid { grid-template-columns: minmax(0, 1fr) 64px 64px; }
  .choice-word { padding: 12px; }
}

/* ---------- Cercle DISC (page de resultat) ---------- */

.disc-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.disc-result-figure { min-width: 0; }

.disc-zone { font-size: 20px; margin: 0 0 8px; color: var(--text); }
.disc-zone .muted { font-size: 15px; }

.level-cell {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) 32px;
  align-items: center;
  gap: 10px;
}

.level-cell strong { text-align: right; }

@media (max-width: 720px) {
  .disc-result-grid { grid-template-columns: minmax(0, 1fr); }
}
/* Page de resultat avec colonne laterale (260 px) : entre 701 et 1060 px, la colonne principale est trop etroite
   pour le cercle et le texte cote a cote - le texte passait sur une colonne de quelques mots. */
@media (min-width: 701px) and (max-width: 1060px) {
  .result-main .disc-result-grid { grid-template-columns: minmax(0, 1fr); }
  .result-main .disc-result-figure { max-width: 420px; }
}

/* Cercle d'equipe du DISC circulaire (teams/partials/team-circle) */
.team-circle { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 24px; align-items: start; }
.team-circle-compact { display: block; }
.team-circle-svg { width: 100%; height: auto; max-width: 560px; display: block; }
.team-circle-compact .team-circle-svg { max-width: 400px; margin: 0 auto; }
.team-circle-dot { cursor: pointer; transition: r 0.12s ease; }
.team-circle-info { min-height: 48px; margin-bottom: 12px; }
.team-circle-info p { margin: 0; }
.team-circle-zones { display: flex; flex-direction: column; gap: 8px; }
.team-circle-zone { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.team-circle-zone-name { min-width: 120px; font-weight: 600; }
.team-circle-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.team-circle-members { display: flex; gap: 6px; flex-wrap: wrap; }
.team-circle-chip { padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.9rem; text-decoration: none; color: inherit; }
.team-circle-chip:hover, .team-circle-chip:focus-visible, .team-circle-chip.is-active { background: var(--bg); border-color: var(--text); }
.team-circle-legend { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.team-circle-legend-item { display: flex; gap: 8px; align-items: center; }
.team-circle-legend-dot { flex-shrink: 0; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--nuit); box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3px var(--line); vertical-align: middle; }
.team-circle-legend-dot.is-hollow { background: var(--card); border: 2px solid var(--text); width: 8px; height: 8px; }
@media (max-width: 760px) {
  .team-circle { grid-template-columns: minmax(0, 1fr); }
  /* Mobile : zone du doigt agrandie autour de chaque point (la version agrandie du cercle la porte à environ 48 px) et prénoms de 44 px de haut. */
  .team-circle-hit { r: 24px; }
  .team-circle-chip { display: inline-flex; align-items: center; min-height: 44px; }
}
/* Page elargie (1200px) : les champs d'un formulaire vertical gardent une largeur de saisie confortable. */
.card form:not(.inline-form) > .field { max-width: 560px; }
/* Réglage à case ou à choix (notifications, affichage, consentement) : le texte qui l'accompagne prend toute la largeur de la carte (retour de Nicolas du 2026-10-22) ; seuls les champs de saisie gardent la limite ci-dessus. */
.card form:not(.inline-form) > .field.field-full { max-width: none; }

/* ---------- Page « Charte » (admin/charte) ---------- */
.charte-section { margin-bottom: var(--space-6); }
.charte-section > h2 { margin-bottom: var(--space-2); }
.charte-rules { margin: 0 0 var(--space-4); padding-left: 20px; color: var(--text); font-size: var(--text-md); }
.charte-rules li { margin-bottom: var(--space-1); }
.charte-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--space-3); }
.charte-swatch { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--card); }
.charte-swatch-color { height: 56px; }
.charte-swatch-body { padding: var(--space-2) var(--space-3); font-size: var(--text-sm); }
.charte-swatch-body strong { display: block; color: var(--text); }
.charte-swatch-body code { color: var(--text-muted); }
.charte-grid { display: grid; grid-template-columns: 180px repeat(2, max-content); gap: var(--space-3) var(--space-5); align-items: center; }
.charte-grid > .charte-grid-head { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.charte-inline { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.charte-spacing { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: flex-end; }
.charte-spacing span { display: block; background: var(--green); height: 16px; }
.charte-spacing small { display: block; margin-top: var(--space-1); color: var(--text-muted); font-size: var(--text-sm); }
@media (max-width: 700px) { .charte-grid { grid-template-columns: 1fr; } .charte-grid > .charte-grid-head { display: none; } }.charte-lead { margin: 0 0 var(--space-3); }
.charte-type h1, .charte-type h2, .charte-type h3, .charte-type p, .charte-type label { margin: 0 0 var(--space-2); }
.charte-swatch-body .help-text { margin: var(--space-1) 0 0; }
.charte-stack { margin-bottom: var(--space-3); }
.charte-section .alert:last-child { margin-bottom: 0; }

/* ---------- Filtres de liste (charte) : une ligne de filtres compacts sous l'en-tete du tableau,
   chaque filtre au-dessus de la colonne qu'il filtre (x-table-filter) ; « Filtrer » / « Effacer »
   dans la colonne des actions. Le tableau entier est dans un <form method="GET">. ---------- */
.table-wrap thead tr.table-filters th {
  background: var(--bg);
  padding: 8px 16px 10px;
  border-bottom: 2px solid var(--border);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.table-wrap thead tr:first-child:has(+ tr.table-filters) th { border-bottom: 1px solid var(--border); }
.table-wrap .table-filter {
  width: 100%;
  min-width: 110px;
  height: 32px;
  padding: 4px 10px;
  font-size: var(--text-sm);
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--text);
}
.table-wrap .table-filter:focus { border-color: var(--nuit); }
.table-wrap .table-filter:focus:not(:focus-visible) { outline: none; }
.table-wrap .table-filter-wrap .autocomplete-list { top: 34px; font-size: var(--text-sm); }
.table-wrap .table-filters .actions a { font-weight: 700; }
/* Le menu de suggestions d'un filtre doit pouvoir deborder du tableau pendant la saisie (ecran large ; sur mobile le
   tableau garde son defilement horizontal). Le reste du temps, un tableau plus large que la zone de contenu (reduite
   par la barre laterale depuis la phase 2 de la charte) defile dans son cadre au lieu de faire deborder la page. */
@media (min-width: 701px) { .table-wrap.has-filters:focus-within { overflow: visible; } }
/* Boutons d'action des tableaux : meme hauteur que la taille « action », texte un peu plus serre. */
.table-wrap .actions .btn, .table-wrap .actions a { padding: 0 14px; font-size: 13px; }
.app-content-wide { padding-left: 32px; padding-right: 32px; }
.table-empty-row td { text-align: center; color: var(--text-muted); padding: 20px 16px; }

/* Partage en haut de page (2026-10-20) : bouton « Partager » + bulle « ? » (x-share-toggle) et bloc replie sous l'en-tete (x-share-panel). */
.share-toggle { display: inline-flex; align-items: center; gap: 2px; }
/* La bulle « ? » du bouton s'ouvre vers la gauche (le bouton est a droite de la page) ; sur mobile, c'est le panneau du bas d'ecran qui s'applique. */
.share-toggle .help-bubble-panel { left: auto; right: 0; }
.page-header-actions { align-items: flex-start; }
.share-panel:focus { outline: none; }
.share-panel .alert { margin: 0 0 12px; }
.badge-new { margin-left: 6px; background: var(--soleil); color: var(--nuit); }
.share-panel { margin-bottom: 20px; }
.share-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.share-panel-head h2 { margin: 0; font-size: 18px; }
.share-panel-head .help-bubble { margin-left: 4px; }
/* Bulle « ? » a cote du titre de page (x-page-header, slot titleAddon) : ancree sur la ligne du titre, a gauche. */
.page-title-row { position: relative; font-size: 44px; line-height: 1.15; margin-bottom: 0.67em; }
.page-title-row h1 { display: inline; font-size: inherit; margin: 0; }
.page-title-row .help-bubble { position: static; vertical-align: middle; margin-left: 8px; font-size: 16px; }
.page-title-row .help-bubble-panel { left: 0; right: auto; font-size: 14px; }

/* En-tete de page (x-page-header) : titre a gauche, boutons de la page a droite. */
.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); flex-wrap: wrap; }
.page-header-text { min-width: 0; flex: 1 1 320px; }
.page-header-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; padding-top: var(--space-2); }

/* Precision sous le contenu principal d'une cellule (ex. admins d'une organisation). */
.table-wrap .cell-note { display: block; font-size: var(--text-xs); font-weight: 400; }

/* Charte : bouton icone (carre, meme hauteur que la taille « action »), zone d'actions sous un titre de
   section ou apres un tableau, et zone d'actions en bas de formulaire. */
.btn-icon { width: 36px; padding: 7px 0; font-size: var(--text-sm); line-height: 20px; }
.section-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin: 0 0 var(--space-5); }
.form-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-4); }
/* Ligne de liste : actions de reglage sous la description (x-list-row, slot extra). */
.list-row-extra { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }

/* ---------- Classes utilitaires de la charte (etape 4, lot 3) : remplacent les styles ecrits a la main. ---------- */
.help-lead { margin: 0 0 var(--space-3); }                 /* texte d'aide juste sous un titre */
.card-form { max-width: 640px; }                           /* carte contenant un formulaire */
.text-quote { font-style: italic; }                        /* phrase typique, accroche, citation */
.m-0 { margin: 0; }
.mt-2 { margin-top: var(--space-2); }
/* Revue UX du 2026-10-22, évolution 8 : plus de style écrit à la main pour une mise en forme fixe (les valeurs calculées - largeur d'une barre, couleur d'une zone - restent en ligne). */
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-5 { margin-bottom: var(--space-5); }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.plain-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.mail-preview { display: block; width: 100%; height: 520px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }   /* apercu d'un e-mail du journal (cadre isole) */
.mail-text { margin: 0; padding: 12px; overflow: auto; white-space: pre-wrap; word-break: break-word; background: var(--bg); border-radius: 8px; font-size: 13px; }
.mail-links { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.mail-links code { word-break: break-all; }
.chart-fluid { max-width: 100%; height: auto; }   /* dessin SVG qui rétrécit avec son conteneur */
.text-muted { color: var(--text-muted); }
.section-sep { border-top: 1px solid var(--border); padding-top: var(--space-4); margin-top: var(--space-4); }   /* filet qui sépare deux blocs d'une même carte */
.head-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }   /* titre à gauche, actions à droite */
.col-label { width: 200px; }                                                      /* première colonne d'un tableau « libellé / valeur » */
.label-plain { margin: 0; font-weight: 400; }
.option-detail { display: block; margin: 0; }
.copy-box { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }   /* champ-piège des formulaires publics : hors écran, jamais rempli par une personne */
.context-menu-item.is-indented { padding-left: 28px; }
/* Invitations en masse (organisation/invitations) : tableau de saisie et ligne d'application groupée. */
.table-wrap th.col-check { width: 28px; }
.table-wrap th.th-plain { font-weight: normal; }
.table-wrap th.th-tight { padding-bottom: 6px; }
.bulk-count { font-size: 12px; color: var(--text-muted); }
.bulk-apply { display: flex; gap: 4px; align-items: center; font-weight: normal; text-transform: none; }
.bulk-apply select.select-compact { font-size: 13px; padding: 5px 6px; }
.link-copy { display: flex; gap: 6px; align-items: center; }
.link-copy input[type="text"] { width: 160px; font-size: 12px; padding: 6px; }
.grow { flex: 1; min-width: 0; }
.field-row { display: flex; gap: var(--space-2); }         /* plusieurs champs sur une ligne (adresse...) */
/* Selecteurs renforces : la regle generale des champs (input[type="text"] { width: 100% }) est plus specifique qu'une classe seule. */
.field-row > .grow { flex: 1; min-width: 0; }
.field-row > .w-number { width: 80px; flex: none; }
.field-row > .w-postal { width: 140px; flex: none; }
/* Fiche utilisateur (admin) : statut + bouton sur une ligne ; menu de choix compact dans une cellule de
   tableau (meme hauteur que les boutons « action », 36 px) ; champ etroit dans un formulaire en ligne. */
.user-status-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.table-wrap select.cell-select { width: auto; min-width: 140px; padding: 7px 10px; line-height: 20px; font-size: var(--text-sm); }
.inline-form .field.field-narrow { flex: 0 1 200px; }
.inline-form > .btn-form-wrap, .inline-form > .btn { align-self: flex-end; }

/* Restitution du DISC circulaire : intensite, encadre de nuance, positions des tendances, deux colonnes. */
.zone-intensity { margin: 0 0 var(--space-3); color: var(--text-muted); }
.result-nuance { border-left: 4px solid var(--navy); border-radius: 0; background: var(--bg); padding: var(--space-3) var(--space-4); margin: var(--space-4) 0 0; font-size: 15px; }
.badge.position-marquee { background: var(--track); color: var(--text); }
.badge.position-moyenne { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.badge.position-retrait { background: var(--track); color: var(--muted); }
.tendencies-table .wrap { min-width: 240px; }
.two-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
/* Cartes qui n'ont pas le meme contenu (Ajouter un contact : l'adresse e-mail, le lien et son QR code) : chacune a la hauteur de son contenu, sans blanc (2026-10-22). */
.two-cols.two-cols-start { align-items: start; }
.two-cols ul { margin: 0; padding-left: 20px; }
.two-cols li { margin-bottom: 6px; }
.tile-spaced { margin-bottom: var(--space-4); }
@media (max-width: 760px) { .two-cols { grid-template-columns: minmax(0, 1fr); } }

/* Signatures du DISC circulaire (phase 2). */
.signature-list { display: flex; flex-direction: column; gap: var(--space-4); }
.signature { border-left: 4px solid var(--navy); padding: 0 0 0 var(--space-4); border-radius: 0; }
.signature h3 { margin: 0 0 var(--space-1); }
.signature p { margin: 0; }
.signature-moins { border-left-color: var(--placeholder); }
.signature-deux_poles, .signature-peu_differencie { border-left-color: var(--yellow); }

/* Retour « ce passage vous ressemble-t-il ? » sous une signature. */
.signature-feedback { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }
.signature-feedback .help-text { margin-right: var(--space-2); }
.signature-feedback .btn.is-selected { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Amis : lien personnel a copier, QR code, pastille du menu. */
.friend-link { display: flex; gap: var(--space-2); align-items: center; margin-bottom: var(--space-3); }
.friend-link input { flex: 1; min-width: 0; font-size: var(--text-sm); }
/* Lien personnel : le QR code à gauche, le lien et ses boutons à droite (la carte garde la hauteur de la carte voisine, 2026-10-22). */
.friend-link-layout { display: flex; align-items: flex-start; gap: var(--space-4); }
.friend-link-controls { flex: 1; min-width: 0; }
.friend-qr { display: block; flex: none; width: 128px; height: 128px; margin: 0; border-radius: 8px; }
@media (max-width: 520px) { .friend-link-layout { flex-direction: column; } }
.nav-badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--cyan); color: var(--nuit); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; vertical-align: 1px; }

/* Modes de restitution d'une organisation (admin) : une case par mode, sa description dessous. */
.modes-list { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-4); }
.modes-item { align-items: flex-start; gap: 10px; }
.modes-item input[type="checkbox"] { margin-top: 3px; }
.modes-item .badge { margin-left: 6px; }
.modes-description { display: block; margin: 2px 0 0; }
.modes-item.is-child { margin-left: 24px; }

/* Variante « danger » de x-badge (annoncee par la charte, sans style jusque-la) : meme rendu que .badge-red. */
.badge-danger { background: rgba(214, 69, 69, 0.12); color: var(--erreur-txt); }

/* Etalonnage du pilote (admin, DISC circulaire phase 3). */
.calib-guide ol, .calib-guide ul { margin: var(--space-2) 0 var(--space-3); padding-left: 22px; }
.calib-guide li { margin-bottom: 6px; }
.calib-defs { font-size: var(--text-sm); }
/* Reglages : ligne modifiee par la simulation, champ de saisie compact. */
.table-wrap .calib-settings input.calib-input { width: 96px; text-align: right; }
.calib-settings tr.is-changed th, .calib-settings tr.is-changed td { background: rgba(232, 131, 58, 0.12); }
.calib-settings td.wrap { min-width: 260px; }
.calib-setting-label { display: block; font-weight: 700; margin-bottom: 4px; }
.calib-setting-effect { display: block; margin: 0; }
.calib-items td.wrap { min-width: 240px; }
.calib-apply { margin-top: var(--space-3); }
.calib-apply.is-active { border: 2px solid var(--yellow); }
.calib-apply .btn:disabled { opacity: 0.45; cursor: not-allowed; }
/* Cercles cote a cote (en service / simule). */
.calib-circles { display: grid; grid-template-columns: minmax(0, 460px); gap: var(--space-5); margin-bottom: var(--space-4); }
.calib-circles.is-double { grid-template-columns: repeat(2, minmax(0, 460px)); }
.calib-circles figcaption { text-align: center; margin-bottom: var(--space-2); }
.calib-circles .team-circle-compact .team-circle-svg { max-width: 460px; }
@media (max-width: 760px) { .calib-circles.is-double { grid-template-columns: minmax(0, 1fr); } }
/* Histogramme de la distance au centre, colore par intensite. */
.calib-hist { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; height: 180px; align-items: end; max-width: 720px; }
.calib-hist-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; text-align: center; }
.calib-hist-count { font-size: var(--text-xs); font-weight: 700; min-height: 16px; }
.calib-hist-bar { display: block; border-radius: 4px 4px 0 0; min-height: 2px; }
.calib-hist-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.band-0 { background: rgba(15, 47, 58, 0.3); }
.band-1 { background: rgba(15, 47, 58, 0.6); }
.band-2 { background: var(--navy); }
.calib-legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin-top: var(--space-3); }
.calib-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.calib-details { margin: var(--space-3) 0 var(--space-4); }
.calib-details > summary { cursor: pointer; font-weight: 700; color: var(--text); margin-bottom: var(--space-2); }
/* Valeurs qui declenchent un signalement : rouge (phrase faible), orange (a verifier). */
.calib-alert { background: rgba(214, 69, 69, 0.16); color: var(--erreur-txt); font-weight: 700; }
.calib-warn { background: rgba(232, 131, 58, 0.22); color: var(--text); font-weight: 700; }
.calib-defs .calib-alert, .calib-defs .calib-warn { padding: 0 4px; border-radius: 3px; }
/* Repartition par zone, matrice des correlations. */
.table-wrap .calib-bar-cell { width: 50%; }
.calib-bar { display: block; height: 10px; border-radius: 5px; min-width: 2px; }
.calib-matrix td.num { min-width: 52px; }

/* Mon portrait (2026-09-29) : choix du contexte, tests pris en compte, themes en deux colonnes. */
.portrait-themes { margin-bottom: var(--space-5); }
.portrait-theme, .portrait-section { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.portrait-theme p, .portrait-section p { margin: 0; }
.portrait-theme-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.portrait-lecture { padding-left: 12px; border-left: 3px solid var(--border); color: var(--text-muted, var(--muted)); }
.portrait-theme.is-non_informatif { opacity: 0.8; }
.portrait-sections { display: flex; flex-direction: column; gap: var(--space-5); margin-bottom: var(--space-5); }
.portrait-section.is-empty { background: var(--bg); } /* sans opacite : elle ramenait le texte discret a 3,6:1 (accessibilite, 2026-10-14) */
/* Parcours : rubrique pas encore debloquee, a sa place habituelle. */
.portrait-theme.is-locked, .portrait-section.is-locked { opacity: 0.7; background: var(--bg); border-style: dashed; }
@media (max-width: 760px) { .portrait-themes.two-cols { grid-template-columns: minmax(0, 1fr); } }
.portrait-example { font-style: italic; color: var(--text-muted); }
.portrait-sources-line { font-size: 12px; color: var(--text-muted); margin-top: auto !important; }

/* Parcours de connaissance de soi (2026-09-29) : niveaux (univers de la voile), barre d'avancement avec reperes. */
.journey-levels-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4, 16px); margin-bottom: var(--space-5); }
.journey-level-preview { display: flex; gap: 12px; align-items: flex-start; }
.journey-level-icon { flex: none; }
.journey-status { display: flex; flex-direction: column; gap: 12px; margin-bottom: var(--space-5); }
.journey-status-head, .journey-level-up { display: flex; align-items: center; gap: 16px; }
.journey-level-up { margin-bottom: var(--space-5); border: 2px solid var(--cyan); }
.journey-eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.journey-track { position: relative; height: 12px; border-radius: 6px; background: var(--line); margin: 8px 0; }
.journey-track-fill { height: 100%; border-radius: 6px; background: var(--cyan); }
.journey-track-mark { position: absolute; top: -4px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: #FFFFFF; border: 3px solid var(--inactive); }
.journey-track-mark.is-reached { border-color: var(--nuit); background: var(--cyan); }
.journey-circle { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: var(--space-5); align-items: center; margin-bottom: var(--space-5); }
@media (max-width: 760px) {
  .journey-levels-preview, .journey-circle { grid-template-columns: minmax(0, 1fr); }
}
.journey-circle-svg svg { width: 100%; height: auto; }

/* Route du parcours : une ligne de navigation, une bouee (visuel du niveau) par palier, le bateau et son sillage. */
.journey-route { position: relative; height: 56px; margin: 22px 18px 4px; }
.journey-route-sea { position: absolute; left: 0; right: 0; top: 27px; border-top: 3px dashed var(--cyan-line); }
.journey-route-wake { position: absolute; left: 0; top: 26px; height: 5px; border-radius: 3px; background: var(--cyan); }
.journey-route-buoy { position: absolute; top: 11px; margin-left: -17px; line-height: 0; }
.journey-route-buoy.is-reached .journey-level-icon { filter: drop-shadow(0 0 0 var(--cyan)); }
.journey-route-boat { position: absolute; top: -18px; margin-left: -15px; line-height: 0; transition: left 0.6s ease; }
@media (prefers-reduced-motion: reduce) { .journey-route-boat { transition: none; } }

/* Palier franchi : guirlande de pavillons au-dessus des felicitations. */
.journey-level-up { flex-direction: column; align-items: stretch; gap: 8px; }
.journey-bunting { width: 100%; height: 34px; }
.journey-level-up-body { display: flex; align-items: center; gap: 20px; }
.journey-level-up h2 { font-size: 1.5rem; }

/* Syntheses collaborateur (vue manager, 2026-09-30) : fiches courtes dans la vue d'equipe, bloc « Pour travailler avec ». */
.synthesis-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-4, 16px); margin-bottom: var(--space-5); }
.synthesis-card { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; margin: 0; }
.synthesis-card:hover, .synthesis-card:focus-visible { border-color: var(--cyan); }
.synthesis-work-block + .synthesis-work-block { margin-top: 32px; }

/* Detail du DISC sous la zone (portrait, parcours, synthese) : tendances marquees / en retrait, cas particuliers. */
.disc-summary { display: flex; flex-direction: column; gap: 8px; }
.disc-summary-list { display: grid; gap: 4px; margin: 0; }
.disc-summary-list > div { display: flex; flex-wrap: wrap; gap: 6px; }
.disc-summary-list dt { font-weight: 700; }
.disc-summary-list dt::after { content: " :"; }
.disc-summary-list dd { margin: 0; }
.disc-summary-note { margin: 0; padding: 8px 12px; border-radius: 8px; background: var(--soleil-bg); border-left: 3px solid var(--soleil); }

/* Page de l'application vue sans connexion : pas de barre laterale, le logo reste dans l'en-tete. */
.app-shell.is-guest .topbar-brand { display: inline-block; }

/* Partage impossible (contexte du resultat incompatible avec l'equipe, 30/09) : explication sur toute la largeur de la
   ligne, sous le nom ; le bouton « Retirer » d'un ancien partage reste dans sa colonne. */

/* ---------- Gabarit « rapport » (charte Webapp, phase 3 du 2026-09-30) ----------
   Onglets de sommaire collants (pilules de 44 px, numero cyan profond ; actif bleu nuit, numero soleil), puis une
   feuille blanche unique en sections numerotees, terminee par un encart d'appel a l'action. */
.report-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  margin: 0 -8px 16px;
  padding: 10px 8px;
  overflow-x: auto;
  background: var(--bg);
  scrollbar-width: none;
}
.report-tabs::-webkit-scrollbar { display: none; }
.report-tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.report-tab:hover { border-color: var(--nuit); }
.report-tab-num { color: var(--accent-txt); font-size: 12px; font-weight: 800; }
.report-tab.active { background: var(--emphasis); border-color: var(--emphasis); color: #fff; }
.report-tab.active .report-tab-num { color: var(--soleil); }

.report-sheet { background: var(--card); border-radius: var(--r-l); padding: 8px 40px; margin-bottom: 28px; }
.report-section { padding: 32px 0; scroll-margin-top: 80px; }
.report-section + .report-section { border-top: 1px solid var(--line); }
.report-title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.report-num { color: var(--accent-txt); font-size: 14px; font-weight: 800; letter-spacing: 0.02em; }

/* Les cartes incluses dans une feuille de rapport sont mises a plat (pas de carte dans la carte). */
.report-sheet .card { background: none; border-radius: 0; padding: 0; margin: 0; }
.report-sheet .card + .card { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.report-section .card h2 { font-size: 18px; }
/* Listes du rapport : puces cyan. */
.report-sheet ul:not([class]) { list-style: none; padding-left: 0; }
/* Section repliable aussi sur ordinateur (x-report.section foldable, 2026-11-12) : le bouton couvre l'en-tete, la fleche dit l'etat ; replie, la section tient
   en une ligne. Sans JavaScript (html sans .alpine-ready), tout reste ouvert. */
.report-section.is-foldable { padding: 20px 0; }
.report-section.is-foldable .report-section-head { position: relative; }
.report-section.is-foldable .report-title { margin-bottom: 0; padding: 6px 40px 6px 0; min-height: 44px; align-items: center; }
.report-section.is-foldable .report-toggle { display: flex; align-items: center; justify-content: flex-end; position: absolute; inset: 0; width: 100%; padding: 0 4px; border: 0; background: none; cursor: pointer; }
.report-section.is-foldable .report-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: var(--r-b); }
.report-section.is-foldable .report-toggle::after { content: ""; width: 10px; height: 10px; margin-right: 8px; border-right: 2.5px solid var(--text-muted); border-bottom: 2.5px solid var(--text-muted); transform: translateY(-3px) rotate(45deg); transition: transform .15s ease; }
.report-section.is-foldable .report-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
html.alpine-ready .report-section.is-foldable .report-section-body:not(.is-open) { display: none; }
.report-section.is-foldable .report-section-body.is-open, html:not(.alpine-ready) .report-section.is-foldable .report-section-body { padding-top: 20px; }
/* Cartes de synthese des resultats (2026-11-12) : « Mes resultats detailles » du portrait et resultats partages de la synthese. Une carte = le haut de la page
   « Synthese » d'un test, avec la meme anatomie partout : nom, titre / sous-titre / phrase (2 lignes), zone visuelle de hauteur fixe, pied. Deux colonnes (un seul
   tableau 2 x 2 pour quatre tests), une colonne sur mobile. Avec un lien (la personne, son coach), toute la carte se clique par le lien etire du nom. */
.result-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.result-card { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--card); }
.result-card.is-link:hover, .result-card.is-link:focus-within { border-color: var(--cyan); }
.result-card-name { margin: 0; font-size: 18px; line-height: 1.3; }
.result-card-link { color: inherit; text-decoration: none; }
.result-card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-s); }
.result-card-link:focus-visible { outline: none; }
.result-card.is-link:has(.result-card-link:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.result-card-main { display: flex; flex-direction: column; gap: 4px; }
.result-card .key-result { margin: 2px 0 0; font-size: 20px; letter-spacing: -0.2px; }
.result-card-text { margin: 4px 0 0; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.result-card-visual { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 150px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.result-card-chart-title { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.result-card-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: auto; }
.result-card-visual + .result-card-foot { margin-top: 0; }
.result-card-more { font-weight: 700; color: var(--accent-txt); }
.hbars, .gauges { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hbar { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(40px, 1fr) auto; align-items: center; gap: 10px; font-size: 14px; }
.hbar-label { font-weight: 600; line-height: 1.25; }
.hbar-track { height: 12px; border-radius: var(--r-pill); background: var(--track); overflow: hidden; }
.hbar-fill { display: block; height: 100%; border-radius: var(--r-pill); background: var(--bar-low); }
.hbar.is-dominant .hbar-fill { background: var(--bar-dominant); }
.hbar.is-second .hbar-fill { background: var(--cyan-pro); }
.hbar-value { min-width: 2.2rem; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.gauge-row { display: grid; grid-template-columns: minmax(0, 7.5rem) minmax(40px, 1fr) minmax(0, 5.5rem); align-items: center; gap: 10px; font-size: 14px; }
.gauge-label { font-weight: 600; line-height: 1.25; }
.gauge-track { position: relative; height: 10px; border-radius: var(--r-pill); background: var(--track); }
.gauge-mid { position: absolute; top: 0; bottom: 0; background: var(--brume); }
.gauge-marker { position: absolute; top: -4px; width: 10px; height: 18px; margin-left: -5px; border-radius: 4px; background: var(--bar-low); box-shadow: 0 0 0 2px var(--card); }
.gauge-row.is-marked .gauge-marker { background: var(--emphasis); }
.gauge-level { font-size: 12px; color: var(--muted); text-align: right; line-height: 1.25; }
.gauge-row.is-marked .gauge-level { color: var(--text); font-weight: 600; }
/* Tests pas encore passes : une ligne fine chacun, sous les cartes. */
.result-todo { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.result-todo li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border: 1px dashed var(--line); border-radius: var(--r-s); background: var(--bg); }
.result-todo-name { font-weight: 700; }
.result-todo li .btn-form-wrap { margin-left: auto; }
@media (max-width: 760px) { .result-cards { grid-template-columns: minmax(0, 1fr); } }
/* « Pour travailler avec… » (synthese de la personne, 2026-11-12) : trois sous-blocs (au quotidien, sous pression, accompagnement), des respirations nettes
   entre eux, un retrait regulier ; chaque driver d'accompagnement est une fiche bordee, ses trois listes en colonnes. */
.synthesis-subtitle { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-txt); }
.synthesis-work-list { display: grid; margin: 0; }
.synthesis-work-list > div { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 4px 24px; padding: 12px 0; border-top: 1px solid var(--line); }
.synthesis-work-list > div:first-child { padding-top: 0; border-top: 0; }
.synthesis-work-list dt { font-weight: 700; }
.synthesis-work-list dd { margin: 0; line-height: 1.55; }
.synthesis-work-block ul { margin: 0; }
.synthesis-work-block ul > li { line-height: 1.55; margin-bottom: 8px; }
.synthesis-advice { display: flex; flex-direction: column; gap: 18px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-s); }
.synthesis-advice + .synthesis-advice { margin-top: 16px; }
.synthesis-advice h4 { margin: 0; font-size: 18px; line-height: 1.3; }
.synthesis-advice-source { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.synthesis-advice-hook { margin: 6px 0 0; color: var(--muted); line-height: 1.55; }
.synthesis-advice-note { margin: 0; padding: 12px 16px; border-radius: var(--r-b); background: var(--bg); line-height: 1.55; }
.synthesis-advice-note strong { display: block; margin-bottom: 2px; }
.synthesis-advice-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px; }
.synthesis-advice-label { margin: 0 0 8px; font-weight: 700; line-height: 1.4; }
@media (max-width: 900px) {
  .synthesis-advice-cols { grid-template-columns: minmax(0, 1fr); }
  .synthesis-work-list > div { grid-template-columns: minmax(0, 1fr); }
  .synthesis-advice { padding: 16px; }
}
@media (max-width: 760px) {
  .report-section.is-foldable { padding: 6px 0; }
  .report-section.is-foldable .report-section-body.is-open { padding-top: 8px; }
}
.report-sheet ul:not([class]) > li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.report-sheet ul:not([class]) > li::before { content: ""; position: absolute; left: 3px; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }

/* Intitule (kicker) : puce cyan de 8 px, capitales 12 px 700. */
.kicker { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.kicker::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }

/* Resultat cle : 42 px 800 (30 px en mobile), surligne soleil de 62 % a 92 % de la hauteur de ligne. */
.key-result { margin: 10px 0 14px; font-size: 42px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; color: var(--text); }
.highlight { background: linear-gradient(transparent 62%, var(--soleil) 62%, var(--soleil) 92%, transparent 92%); padding: 0 4px; }

/* Synthese : texte 1,25 fr + graphique 1 fr, ecart 40 px. Forces / vigilance : 2 colonnes, ecart 48 px. */
.report-synth { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.report-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; }

/* Histogramme de scores. */
.histogram { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin: 0; padding: 0; list-style: none; }
.histogram-bar { flex: 1 1 0; min-width: 0; max-width: 96px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.histogram-value { font-size: 18px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.histogram-track { display: flex; align-items: flex-end; width: 100%; max-width: 40px; height: 150px; border-radius: var(--r-nav); background: var(--track); overflow: hidden; }
.histogram-fill { display: block; width: 100%; border-radius: var(--r-nav); background: var(--bar-low); }
.histogram-bar.is-dominant .histogram-fill { background: var(--bar-dominant); }
.histogram-bar.is-second .histogram-fill { background: var(--cyan-pro); }
.histogram-label { font-size: 11px; font-weight: 600; text-align: center; color: var(--text); line-height: 1.3; }

/* Encart d'appel a l'action : fond sable, rayon 16 px, phrase en 600 + bouton sombre. */
.report-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 8px 0 32px; padding: 22px 24px; border-radius: var(--r-s); background: var(--bg); }
.report-cta p { margin: 0; font-weight: 600; }
.report-cta-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Ligne de meta sous le titre (charte : 12-13 px, 500, gris texte). */
.report-meta { margin: 6px 0 0; color: var(--muted); font-size: 13px; font-weight: 500; }
.report-meta a { font-weight: 600; }

@media (max-width: 1100px) { .report-synth { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .report-sheet { padding: 4px 20px; }
  .report-cols { grid-template-columns: minmax(0, 1fr); }
  .key-result { font-size: 30px; }
  .histogram-track { height: 120px; }
  .histogram { gap: 8px; }
}
/* Bouton qui a l'allure d'un lien (charte : bleu nuit souligne cyan), dans une phrase. */
.inline-link-form { display: inline; margin: 0; }
.link-button { padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.report-subtitle { margin: 10px 0 8px; font-size: 18px; }
.histogram-label { overflow-wrap: anywhere; }
/* Texte lu par les lecteurs d'ecran seulement. */
/* Lien d'evitement (2026-10-14) : invisible, apparait au premier Tab ; la cible (main) recoit le focus sans anneau. */
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 1000; padding: 12px 20px; border-radius: var(--r-b); background: var(--nuit); color: #fff; font-weight: 700; text-decoration: none; }
.skip-link:focus, .skip-link:focus-visible { top: 12px; outline: 3px solid var(--cyan); outline-offset: 2px; }
main:focus { outline: none; }
.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; }
.histogram-bar { position: relative; }
/* Rubriques du portrait dans une feuille de rapport : tuiles bordees (pas de carte coloree), meme hauteur par rangee. */
.report-sheet .portrait-themes > .card,
.report-sheet .portrait-sections > .card { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-s); }
.report-sheet .portrait-themes > .card.is-locked,
.report-sheet .portrait-sections > .card.is-locked { border-style: dashed; background: var(--bg); }
.report-sheet .journey-circle { margin-bottom: 0; }
/* Interaction dans une feuille de rapport : les blocs compares deviennent des tuiles bordees. */
.report-sheet .duo-blocks { gap: var(--space-4) var(--space-5); }
.report-sheet .duo-blocks > .card { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-s); }

/* ---------- Tableau de bord (charte Webapp, phase 4 du 2026-09-30) ---------- */
.dash-head { position: relative; margin-bottom: 24px; }
.dash-title { margin: 8px 0 0; }
.dash-annotation { margin: 2px 0 0 24px; }
.dash-org { margin: 12px 0 0; }
.dash-section-title { margin: 36px 0 16px; }

/* Rangees en 2/3 - 1/3, ecart 24 px ; une seule carte : pleine largeur. */
.dash-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; margin-bottom: 24px; align-items: stretch; }
.dash-row.is-single { grid-template-columns: minmax(0, 1fr); }
.dash-row > .card { margin: 0; }

/* Carte phare : bleu nuit, texte blanc, un petit cercle cyan de 90 px qui deborde (seule forme decorative). */
.card-phare { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: var(--r-l); background: var(--phare-bg); border: 1px solid var(--phare-line); color: #fff; }
.card-phare h2 { margin: 0; color: #fff; font-size: 30px; letter-spacing: -0.5px; }
.card-phare p { margin: 0; color: var(--brume); }
.phare-tags { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.phare-tags .badge { background: var(--cyan); color: var(--nuit); }
.phare-progress { display: flex; flex-direction: column; gap: 8px; }
.phare-progress-head { display: flex; justify-content: space-between; gap: 12px; color: #fff; font-size: 13px; font-weight: 600; }
.card-phare .progress-track { margin: 0; background: var(--piste); }
.phare-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.phare-actions .btn { min-width: 200px; }
.phare-dot { position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--cyan); opacity: 0.9; pointer-events: none; }

/* Carte « À faire » et acces rapides de l'accueil (simplification du 2026-10-19). */
.card-todo { margin-bottom: 20px; }
.card-todo .phare-actions .btn { min-width: 160px; }
.card-todo .link-button { color: #fff; font-size: 13px; }
.todo-doors { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin: 0; }
.todo-door { margin: 0; }
.todo-more { border-top: 1px solid rgba(255, 255, 255, 0.22); padding-top: 4px; color: #fff; }
.todo-more summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-size: 13px; font-weight: 700; }
.todo-more ul { display: grid; gap: 14px; margin: 4px 0 0; padding: 0; list-style: none; }
.todo-more li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.todo-more-title { display: inline-flex; align-items: center; gap: 4px; }
.todo-more-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.todo-more-actions .btn { min-width: 132px; }
/* Bulle « ? » sur la carte sombre (13/11) : pastille claire ; dans le titre, texte courant ; dans la liste, la bulle s'ouvre vers le haut (la carte coupe ce qui depasse). */
.card-phare .help-bubble-toggle { color: #fff; }
.card-phare h2 .help-bubble { margin-left: 8px; font-size: 16px; font-weight: 400; letter-spacing: 0; vertical-align: middle; }
.card-phare .help-bubble-panel { font-size: 14px; font-weight: 400; letter-spacing: 0; line-height: 1.45; text-align: left; }
.todo-more .help-bubble-panel { top: auto; bottom: calc(100% + 6px); }
/* Date limite, « Masquer » et « Tout reafficher » de la carte « A faire » (13/11). */
.todo-due { font-size: 13px; color: var(--brume); }
.todo-due.is-late { color: #FFB4A8; font-weight: 700; }
.todo-more-title .todo-due { margin-left: 6px; }
.todo-dismiss { display: inline-flex; align-items: center; margin: 0; }
.todo-hidden { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: -8px 0 20px; }
/* Tests de l'equipe repliables (13/11) : les fiches des tests restent des cartes, sans double cadre. */
.insight-wrap { background: transparent; border: 0; box-shadow: none; padding: 0; }
/* Noms de ceux qui n'ont pas repondu (rubrique « Diagnostics d'equipe », responsables seulement). */
.diag-missing summary { display: flex; align-items: center; min-height: 36px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent-txt); }
.diag-missing p { margin: 0 0 6px; }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.quick-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--field-line); border-radius: var(--r-pill); background: var(--card); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.quick-link:hover { background: var(--track); }
.quick-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Bouton « contour clair » (charte) : action secondaire sur bleu nuit. */
.btn-light { background: transparent; border-color: #fff; color: #fff; font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.btn-light:hover { background: rgba(255, 255, 255, 0.08); }

/* Carte echeance : l'aplat soleil de l'ecran ; texte et puce bleu nuit, bouton sombre. */
.card-echeance { display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: var(--r-l); background: var(--soleil); color: var(--nuit); }
.card-echeance h2 { margin: 0; font-size: 30px; letter-spacing: -0.5px; }
.card-echeance p { margin: 0; }
.card-echeance .kicker::before { background: var(--nuit); }
.card-echeance .btn { margin-top: auto; width: 100%; }

/* Etapes (stepper) : pastilles de 40 px reliees par un trait de 3 px, plein jusqu'a l'etape en cours, pointille ensuite. */
.stepper { list-style: none; margin: 0; padding: 0; }
.stepper-step { position: relative; display: flex; align-items: center; gap: 14px; padding-bottom: 18px; }
.stepper-step:last-child { padding-bottom: 0; }
.stepper-step:not(:last-child)::after { content: ""; position: absolute; left: 18.5px; top: 40px; bottom: 0; border-left: 3px solid var(--nuit); }
.stepper-step.is-current:not(:last-child)::after, .stepper-step.is-todo:not(:last-child)::after { border-left-style: dashed; border-left-color: var(--inactive); }
.stepper-dot { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--inactive); background: var(--card); color: var(--muted); font-weight: 800; }
.stepper-step.is-done .stepper-dot { background: var(--emphasis); border-color: var(--emphasis); color: #fff; }
.stepper-step.is-current .stepper-dot { background: var(--cyan); border-color: var(--cyan); color: var(--nuit); }
.stepper-label { display: flex; flex-direction: column; }
.stepper-label .help-text { margin: 0; }
.stepper-step.is-todo .stepper-label strong { color: var(--muted); }
.stepper-note { font-size: 22px; margin-left: 8px; }

.dash-teams { list-style: none; margin: 0; padding: 0; }
.dash-teams li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dash-teams li:last-child { border-bottom: 0; }
/* Liste de fonctionnalites (Mon organisation) : libelle et phrase d'aide a gauche, pastille toujours alignee a droite. */
.feature-list li { flex-wrap: nowrap; align-items: flex-start; }
.feature-list .feature-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.feature-list .feature-text .help-text { margin: 0; }
.feature-list .badge { flex: none; white-space: nowrap; }
.feature-list li.is-child { padding-left: 24px; }
/* Plusieurs boutons au bout d'une ligne (Mes groupes, tableau de bord : Gérer / Voir). */
.button-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Vignettes des tests : 3 colonnes (six tests = deux rangees pleines) au-dela de 1100 px, 2 en dessous, 1 en mobile ; remontent de 2 px au survol (revue UX du 2026-10-22 : 4 colonnes rendaient les cartes trop etroites). */
.vignettes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.vignette { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r-s); background: var(--card); transition: transform 0.15s ease; }
.vignette:hover { transform: translateY(-2px); }
.vignette-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--bg); color: var(--text); }
/* Tuile de test (2026-10-19) : icone, nom et etat ; une seule phrase courte (la description complete est dans la bulle du titre, 2026-10-22). */
.vignette-head { display: flex; align-items: center; gap: 14px; }
.vignette-id { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
/* Mon portrait : grande case sous le titre « Vos tests » (2026-10-22) : icone, ce que c'est, bouton. */
.dash-history-link { margin-top: 16px; }
.portrait-banner { display: flex; align-items: center; gap: 20px; margin: 0 0 24px; padding: 20px 24px; border-radius: var(--r-s); background: var(--card); box-shadow: inset 4px 0 0 var(--cyan); }
.portrait-banner-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--cyan); color: var(--nuit); }
.portrait-banner-text { flex: 1; min-width: 0; }
.portrait-banner-title { margin: 0 0 2px; font-size: 18px; }
.portrait-banner-text p { margin: 0; color: var(--muted); font-size: 14px; }
.vignette-category { margin: 0; }
/* La pastille de date (« Termine le 30/09/2026 ») ne depasse plus de la tuile : elle passe a la ligne si la place manque ; les boutons restent sur une ligne. */
.vignette-category .status-badge { max-width: 100%; white-space: normal; }
.vignette-actions .btn { white-space: nowrap; }
.vignette-title { margin: 0; font-size: 17px; }
.vignette-title .help-bubble { margin-left: 4px; }
.vignette-desc { flex: 1; margin: 0; color: var(--muted); font-size: 13px; }
.vignette-actions { display: flex; flex-direction: column; gap: 8px; }
.vignette-actions .btn-form-wrap { display: block; }

@media (max-width: 1100px) { .vignettes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .dash-row { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  /* Accueil plus sobre sur mobile : pas de « on avance ? » ni d'annotation manuscrite ; tuiles compactes. */
  .dash-title-more, .dash-annotation { display: none; }
  .dash-section-title { margin: 28px 0 12px; }
  .vignette { padding: 16px; gap: 8px; }
  .portrait-banner { flex-wrap: wrap; padding: 16px; gap: 12px 14px; }
  .portrait-banner-icon { width: 44px; height: 44px; }
  .portrait-banner-text { flex: 1 1 200px; }
  .portrait-banner > .btn { flex: 1 1 100%; }
  .vignette-actions { flex-direction: row; flex-wrap: wrap; }
  .vignette-actions > * { flex: 1 1 140px; }
  .vignette-actions > :first-child:not(:only-child) { flex: 3 1 150px; }
  .vignette-actions > :nth-child(2) { flex: 2 1 110px; }
  .vignettes { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .card-phare, .card-echeance { padding: 22px; }
  .card-phare h2, .card-echeance h2 { font-size: 24px; }
  .phare-actions .btn { width: 100%; }
}
.card-echeance .kicker, .card-echeance h2 { color: var(--nuit); }

/* Graphiques SVG (cercles DISC) a l'ecran : separateurs, halos des libelles et contour suivent le fond (mode sombre).
   Les attributs de l'image gardent les couleurs claires, pour le PDF et l'image PNG. */
.svg-sep, .svg-halo { stroke: var(--card); }
.svg-outline { stroke: var(--line); }
.svg-muted { fill: var(--muted); } .svg-muted-line { stroke: var(--muted); }
/* Points, noms et traits « encre » des cercles DISC : suivent le texte (sombre en clair, clair en sombre) ; sinon un point ou
   un prenom bleu nuit disparait sur le fond sombre (retour de Nicolas du 18/10 sur la lecture d'interaction, sur mobile). */
.svg-ink { fill: var(--text); }
.svg-ink-line { stroke: var(--text); }
.svg-dot-solid { fill: var(--text); stroke: var(--text); }
.svg-dot-solid.is-ringed { stroke: var(--card); }
.svg-dot-hollow { fill: var(--card); stroke: var(--text); }
.svg-point-name { fill: var(--text); }
/* Noms de zone et lettres D, I, S, C : couleur de la zone, eclaircie en mode sombre (--zone-mix) pour rester lisible. */
.svg-zone { fill: color-mix(in srgb, var(--zc) var(--zone-mix), #fff); }
.diag-form { flex-wrap: wrap; justify-content: flex-end; gap: 8px; } .diag-form select { width: auto; min-height: 44px; padding: 8px 14px; border-radius: var(--r-pill); font-size: 13px; }
.diag-form select { max-width: 220px; }
.diag-table td.actions { width: 1%; min-width: 180px; white-space: normal; }
.delete-summary { margin: 0 0 var(--space-4); padding-left: 1.2em; display: grid; gap: 6px; }
/* Mon coach IA (2026-10-01) : texte a copier, etapes. */
.coach-text { width: 100%; font-family: inherit; font-size: 14px; line-height: 1.5; white-space: pre-wrap; margin: var(--space-3) 0 0; }
.coach-steps { margin: 0 0 var(--space-3); padding-left: 1.3em; display: grid; gap: 6px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 var(--space-3); min-width: 0; }
fieldset.field > legend { display: block; padding: 0; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
/* Bandeau « Partagé avec… » en haut d'un résultat (revue UX du 2026-10-02, A6). */
/* Aide repliable (revue UX du 2026-10-02, A8 : « Inviter beaucoup de monde ? »). */
.help-box { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 16px; padding: 12px 16px; border-radius: var(--r-b); background: var(--bg); }
.help-box .help-text { margin: 0; }

/* Onglets d'une section (revue UX du 2026-10-02, C4 : Diagnostic 5B). */
.section-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.section-tab { padding: 8px 16px; border-radius: var(--r-pill); background: var(--card); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.section-tab:hover { text-decoration: none; box-shadow: inset 0 0 0 2px var(--cyan); }
.espace-tabs { margin-bottom: 16px; flex-wrap: nowrap; }
.espace-tabs .section-tab { flex: 1; text-align: center; }
.espace-tabs .section-tab:not(.is-active) { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.espace-tabs .section-tab:not(.is-active):hover { box-shadow: inset 0 0 0 2px var(--cyan); }
.section-tab.is-active { background: var(--text); color: var(--card); }

/* Choix « usage individuel / usage collectif » de l'inscription (2026-10-15) : deux boutons radio presentes comme un interrupteur. */

/* Contexte de reponse du tableau de bord et tests replies (revue UX du 2026-10-02, etape 5). */
.dash-more > summary { cursor: pointer; font-weight: 600; margin: 0 0 16px; text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* « Mes partages » (revue UX du 2026-10-02, etape 6) : un tableau tests x equipes et groupes, par contexte. */
.shares-table th .share-scope, .shares-table td .share-scope { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; }
.shares-table td { white-space: nowrap; }
.share-cell { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-all-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.share-all-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.share-auto-state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }

/* Resultats en deux niveaux (revue UX du 2026-10-02, etape 7) : « Approfondir » replie sous l'essentiel. */
.report-deepen { margin: 0 0 24px; }
.report-deepen > summary { cursor: pointer; padding: 14px 20px; border-radius: var(--r-b); background: var(--card); font-weight: 700; text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.report-deepen[open] > summary { margin-bottom: 16px; }

/* Carte « Comment bien communiquer avec moi » (revue UX du 2026-10-02, etape 7). */
.comm-layout { display: grid; gap: 24px; }
@media (min-width: 1100px) { .comm-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.comm-choices .checkbox-label { align-items: flex-start; }
.comm-card { padding: 28px 32px; border: 2px solid var(--cyan); border-radius: var(--r-l); background: var(--card); }
.comm-card h2 { margin-top: 0; }
.comm-card ul { margin: 0 0 12px; }
.comm-card-foot { color: var(--muted); font-size: 13px; margin: 16px 0 0; }
@media print {
    body * { visibility: hidden; }
    .comm-card, .comm-card * { visibility: visible; }
    .comm-card { position: absolute; inset: 0 auto auto 0; width: 100%; border-color: #33CDE6; }
}

/* Pages vides qui expliquent (accueil guide, etape 2, 2026-10-05). */
.empty-block { display: flex; gap: 20px; align-items: flex-start; padding: 28px; border: 1px dashed var(--line); border-radius: var(--r-l); background: var(--card); }
.empty-block-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: var(--r-pill); background: var(--brume); color: var(--accent-txt); }
.empty-block-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.empty-block-body h3 { margin: 0; }
.empty-block-body p { margin: 0; color: var(--muted); max-width: 62ch; }
.empty-block-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.message-template { width: 100%; min-height: 150px; font: inherit; font-size: 15px; padding: 14px 16px; border-radius: var(--r-b); border: 1px solid var(--line); background: var(--bg); color: var(--text); }

/* Accueil des nouveaux venus (etape 1) : trois portes d'entree. */
.welcome-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 20px; }
.welcome-choice { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; text-align: left; border: 2px solid var(--line); border-radius: var(--r-l); background: var(--card); color: var(--text); font: inherit; cursor: pointer; }
.welcome-choice:hover, .welcome-choice:focus-visible { border-color: var(--cyan-hover); }
.welcome-choice strong { font-size: 19px; }
.welcome-choice span { color: var(--muted); font-size: 15px; }
.welcome-choice .icon { color: var(--accent-txt); }

/* Centre d'aide, bulles « ? » et mots du glossaire (accueil guide, etape 4). */
.help-search { max-width: 520px; }
.help-section, .help-item, .help-glossary div { scroll-margin-top: 24px; }
.help-item { padding: 16px 0; border-top: 1px solid var(--line); }
.help-item:first-of-type { border-top: 0; }
.help-item h3 { margin: 0 0 6px; font-size: 18px; }
.help-item p { margin: 0; color: var(--muted); }
.help-glossary { margin: 0; display: grid; gap: 14px; }
.help-glossary dt { font-weight: 700; }
.help-glossary dd { margin: 2px 0 0; color: var(--muted); }
.help-bubble, .term { position: relative; display: inline-block; }
.help-bubble-toggle { display: inline-flex; vertical-align: middle; padding: 2px; border: 0; background: none; color: var(--accent-txt); cursor: pointer; border-radius: var(--r-pill); }
.term-toggle { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: help; text-decoration: underline dotted; text-decoration-color: var(--accent-txt); text-underline-offset: 4px; }
.help-bubble-panel { position: absolute; z-index: 30; left: 0; top: calc(100% + 6px); width: min(320px, 80vw); padding: 12px 14px; border-radius: var(--r-b); background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(15, 47, 58, 0.16); font-size: 14px; font-weight: 400; line-height: 1.5; text-transform: none; letter-spacing: 0; text-align: left; white-space: normal; }
.help-bubble-panel a { display: inline-block; margin-top: 6px; font-weight: 600; }

/* Listes de demarrage (accueil guide, etape 5) : admin et manager, cochees d'apres ce qui est fait. */
.start-checklist .progress-track { margin: 12px 0 4px; }
.start-checklist-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.start-checklist-head h2 { margin: 0; }
.start-checklist-count { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.start-checklist-steps { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 10px; }
.start-checklist-steps li { display: flex; align-items: center; gap: 12px; }
.start-checklist-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); }
.start-checklist-steps li.is-done .start-checklist-mark { border-color: var(--succes-line); background: var(--succes-bg); color: var(--succes-txt); }
.start-checklist-steps li.is-done > span:last-child { color: var(--muted); }

/* Double authentification des super admins (securite, lot 3). */
.two-factor-card { max-width: 640px; }
.two-factor-steps { margin: 0; padding-left: 20px; display: grid; gap: 20px; }
.two-factor-steps li > .help-text, .two-factor-steps li > .two-factor-qr { display: block; margin-top: 10px; }
.two-factor-qr { border-radius: var(--r-b); background: #fff; }
.two-factor-secret { font-size: 15px; letter-spacing: 0.05em; word-break: break-all; }
.two-factor-form { margin-top: 12px; max-width: 320px; }
.two-factor-form input[name="code"] { font-variant-numeric: tabular-nums; letter-spacing: 0.15em; }
.two-factor-codes { list-style: none; padding: 0; margin: 16px 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.two-factor-codes code { font-size: 16px; }

/* Pages legales (2026-10-05). */
.legal-text { max-width: 820px; }
.legal-text h2 { margin-top: 28px; }
.legal-text h2:first-child { margin-top: 0; }
.legal-text p, .legal-text li { max-width: 72ch; }
.legal-text table { margin: 12px 0 20px; }
.legal-todo { background: var(--soleil-bg); color: var(--text); padding: 0 4px; border-radius: 4px; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.legal-links a { color: var(--muted); }
.guest-shell .legal-links { border-top: 0; margin-top: 20px; }
.guest-shell .legal-links a { color: rgba(255, 255, 255, 0.78); text-decoration-color: rgba(255, 255, 255, 0.35); }
.guest-shell { flex-direction: column; }
.legal-text th, .legal-text td { white-space: normal; }
.legal-text table { width: 100%; }

/* Etapes numerotees d'une marche a suivre (taches planifiees, 2026-10-05). */
.help-steps { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 8px; max-width: 75ch; }

/* Demande du consentement « reponses anonymes » (2026-10-06). */
/* Carte de consentement a la recherche, compacte (2026-10-20) : titre, question et boutons ; le detail se deplie (<details>). */
.research-ask { padding: 18px 24px; margin-bottom: 16px; }
.research-ask h2 { font-size: 18px; margin: 0 0 6px; }
.research-ask > p { margin: 0 0 12px; }
.research-ask h3 { font-size: 15px; margin: 0 0 6px; }
.research-ask-more > summary { cursor: pointer; font-weight: 600; font-size: 14px; min-height: 32px; display: flex; align-items: center; color: var(--accent-txt); }
.research-ask-more[open] > summary { margin-bottom: 8px; }
.research-ask-more > p { margin: 0 0 8px; }
.research-ask-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 32px; margin: 12px 0 16px; }
.research-ask-grid ul { margin: 0; padding-left: 18px; }
.research-ask-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 6px; }
.research-ask-actions form { margin: 0; }

/* Big Five (OCEAN), 2026-10-06 : cinq traits sur un continuum, sans dominant. */
.bigfive-bars { display: grid; gap: 18px; margin: 16px 0; max-width: 720px; }
.bigfive-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.bigfive-track { position: relative; height: 12px; border-radius: var(--r-pill); background: var(--track); }
.bigfive-middle { position: absolute; top: 0; bottom: 0; background: var(--brume); }
.bigfive-middle.is-fixed { left: 35%; width: 30%; }   /* bande « moyen » à 35-65 % (portrait) ; la page de résultat calcule la sienne */
.bigfive-marker { position: absolute; top: -5px; width: 14px; height: 22px; margin-left: -7px; border-radius: 4px; background: var(--emphasis); box-shadow: 0 0 0 2px var(--card); }
.bigfive-poles { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.bigfive-poles span:last-child { text-align: right; }
.bigfive-trait { padding: 16px 0; border-top: 1px solid var(--line); }
.bigfive-trait:first-child { border-top: 0; padding-top: 0; }
.bigfive-trait h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.bigfive-team { display: grid; gap: 10px; }
.bigfive-team-row { display: grid; grid-template-columns: minmax(110px, 160px) 1fr; gap: 12px; align-items: center; }
.bigfive-team-label { font-size: 14px; font-weight: 600; }
.bigfive-team-bar { display: flex; gap: 2px; min-width: 0; height: 24px; border-radius: 6px; overflow: hidden; }
.bigfive-team-seg { display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--text); }
.bigfive-team-bas { background: var(--brume); }
.bigfive-team-moyen { background: var(--track); }
.bigfive-team-haut { background: var(--soleil-bg); }
.bigfive-legend { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; }

/* Portrait : personnalite de fond (Big Five, phase 3). */
.portrait-personality { }
.portrait-traits { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 16px; }
.portrait-traits li { display: grid; gap: 6px; }
.portrait-trait-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.portrait-trait-text { color: var(--muted); font-size: 15px; }

/* Adresses email (2026-10-07) : volet « Definir comme principale » sous forme de bouton. */
.inline-details > summary { list-style: none; cursor: pointer; display: inline-flex; }
.inline-details > summary::-webkit-details-marker { display: none; }
.inline-details[open] { flex-basis: 100%; }
.inline-details form { margin-top: 8px; }

/* Diagnostic 5B : par ou commencer, autres pistes, leviers numerotes (2026-10-07). */
.badge-start { display: inline-block; margin-right: 8px; background: var(--soleil); color: var(--nuit); font-weight: 700; }
.insight-tile[data-suggested="true"] { box-shadow: 0 0 0 2px var(--soleil); }
.start-reason { margin-top: 0; }
.other-leads { margin: 24px 0 4px; font-size: 18px; }
/* Leviers en accordéon (revue UX du 2026-10-22, évolution 7) : le premier est ouvert, les autres se déplient d'un clic ; ses ateliers sont dans son corps. */
.lever-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lever-item { border: 1px solid var(--border); border-radius: 8px; background: var(--card); }
.lever-item > summary { cursor: pointer; padding: 10px 14px; display: flex; align-items: baseline; gap: 10px; list-style: none; }
.lever-item > summary::-webkit-details-marker { display: none; }
.lever-item > summary::after { content: "▾"; margin-left: auto; flex: none; color: var(--muted); }
.lever-item[open] > summary::after { content: "▴"; }
.lever-item > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: 8px; }
.lever-item:not([open]) .lever-head .help-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* replié : une seule ligne d'accroche, la suite à l'ouverture */
.lever-num { flex: none; font-weight: 700; color: var(--accent-txt); }
.lever-head { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lever-body { padding: 0 14px 12px 38px; }
@media (max-width: 760px) { .lever-body { padding-left: 14px; } }   /* mobile : le corps reprend toute la largeur */
.lever-workshops-title { margin: 14px 0 0; font-size: 14px; font-weight: 700; }
.lever-line { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.lever-line em { font-style: normal; font-weight: 700; color: var(--text); }

/* Ateliers possibles (2026-10-07) : une ligne par atelier, fiche depliable. */
.workshop-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.workshop-item { border: 1px solid var(--border); border-radius: 8px; background: var(--card); }
.workshop-item summary { cursor: pointer; padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.workshop-item[open] summary { border-bottom: 1px solid var(--border); }
.workshop-objective { flex-basis: 100%; font-size: 14px; color: var(--muted); }
.workshop-body { padding: 4px 14px 12px; font-size: 14px; }
.workshop-body p { margin: 8px 0 0; }
.workshop-body ol { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }

/* Diagnostic 5B (2026-10-07) : detail d'une hypothese sur deux colonnes qui remplissent la tuile ; cycle en cercle ; groupe « Resultats ». */
.insight-tile-detail-wide { max-width: none; }
.insight-tile-detail-wide p, .insight-tile-detail-wide li { max-width: none; }
.tile-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 8px 40px; align-items: start; }
.tile-col h3:first-child { margin-top: 8px; }
/* Ordinateur : la colonne des leviers est la plus longue (leviers et ateliers) ; elle est plus large, pour que les deux colonnes finissent à peu près ensemble. */
@media (min-width: 1200px) { .tile-columns { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

.cycle-wrap { display: grid; grid-template-columns: minmax(280px, 560px) minmax(220px, 1fr); gap: 24px 40px; align-items: center; }
.cycle-svg { width: 100%; height: auto; max-height: 460px; }
.cycle-arc { fill: none; stroke: var(--inactive); stroke-width: 3; }
.cycle-arrow-head { fill: var(--inactive); }
.cycle-node { stroke: var(--card); stroke-width: 3; }
.cycle-node-green { fill: var(--succes); background: var(--succes); }
.cycle-node-yellow { fill: var(--soleil); background: var(--soleil); }
.cycle-node-red { fill: var(--erreur); background: var(--erreur); }
.cycle-node-none { fill: var(--inactive); background: var(--inactive); }
.cycle-code { font-size: 14px; font-weight: 700; fill: #fff; letter-spacing: 0.04em; }
.cycle-score { font-size: 20px; font-weight: 800; fill: #fff; }
.cycle-node-yellow ~ .cycle-code, .cycle-node-yellow ~ .cycle-score { fill: var(--nuit); }
.cycle-label { font-size: 16px; font-weight: 700; fill: var(--text); }
.cycle-ring-start { fill: none; stroke: var(--soleil); stroke-width: 6; }
.cycle-ring-other { fill: none; stroke: var(--muted); stroke-width: 3; stroke-dasharray: 3 7; stroke-linecap: round; }
.cycle-svg a { cursor: pointer; }
.cycle-svg a:hover .cycle-node, .cycle-svg a:focus .cycle-node { stroke: var(--text); }
.cycle-legend-title { margin: 0 0 8px; font-weight: 700; }
.cycle-legend ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.cycle-key { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; margin-right: 4px; }
.cycle-key-ring { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; margin-right: 6px; box-sizing: border-box; }
.cycle-key-ring-start { border: 3px solid var(--soleil); }
.cycle-key-ring-other { border: 2px dotted var(--muted); }
@media (max-width: 760px) { .cycle-wrap { grid-template-columns: 1fr; } }

.results-group { margin: 24px 0; }
.results-group-header { display: flex; align-items: baseline; gap: 12px 16px; flex-wrap: wrap; width: 100%; padding: 12px 4px; border: 0; border-bottom: 2px solid var(--line); background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.results-group-header h2 { margin: 0; }
.results-group-hint { flex: 1; font-size: 14px; color: var(--muted); }
.results-group-body { padding-top: 16px; }

/* Cercle du 5B : anneaux cliquables, surbrillance de la tuile visee (2026-10-07). */
.cycle-ring-btn { cursor: pointer; }
.cycle-ring-btn:focus:not(:focus-visible) { outline: none; }
.cycle-ring-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.cycle-ring-hit { fill: none; stroke: transparent; stroke-width: 22; pointer-events: stroke; }
.cycle-ring-btn:hover .cycle-ring-start, .cycle-ring-btn:focus .cycle-ring-start { stroke-width: 10; filter: drop-shadow(0 0 7px var(--soleil)); }
.cycle-ring-btn:hover .cycle-ring-other, .cycle-ring-btn:focus .cycle-ring-other { stroke: var(--text); stroke-width: 4; }
.cycle-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 3px; cursor: pointer; }
.cycle-link:hover, .cycle-link:focus { color: var(--accent-txt); }
.insight-tile-lit { box-shadow: 0 0 0 3px var(--soleil), 0 0 22px rgba(255, 216, 77, 0.55); transition: box-shadow 0.15s; }

/* « Resultats » : meme fond blanc que les autres blocs (2026-10-07). */
.results-group-header { padding: 22px 30px; border: 0; border-radius: var(--r-l); background: var(--card); }
.results-group-header:hover { box-shadow: inset 0 0 0 2px var(--cyan); }
.results-group-body { padding-top: 24px; }

/* Test « Rythme », phase 2 (2026-10-09) : lecture d'equipe, repartition et part de l'equipe en forme heure par heure. */
.rythme-h3 { margin: 18px 0 8px; font-size: 15px; }
.rythme-split { display: flex; gap: 2px; min-width: 0; height: 28px; max-width: 720px; border-radius: 6px; overflow: hidden; }
.rythme-seg { display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.rythme-soir_net { background: var(--piste); color: #F4F6F0; }
.rythme-soir { background: var(--brume); color: var(--nuit); }
.rythme-intermediaire { background: var(--track); color: var(--nuit); }
.rythme-matin { background: var(--soleil-bg); color: var(--nuit); }
.rythme-matin_net { background: var(--soleil); color: var(--nuit); }
.rythme-legend { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; }
.rythme-hours { display: grid; gap: 6px; max-width: 720px; }
.rythme-hour { display: grid; grid-template-columns: 104px 1fr 110px; gap: 12px; align-items: center; font-size: 14px; }
.rythme-hour-label { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.rythme-hour-track { display: block; height: 14px; border-radius: var(--r-pill); background: var(--track); overflow: hidden; }
.rythme-hour-fill { display: block; height: 100%; background: var(--bar-low); }
.rythme-hour-fill.is-favorable { background: var(--cyan-pro); }
.rythme-hour-count { font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .rythme-hour { grid-template-columns: 92px 1fr 84px; gap: 8px; } }

/* Oeil du mot de passe (2026-10-12) : bouton Afficher / Masquer a droite du champ. */
.password-field { position: relative; display: block; }
.password-field input { width: 100%; padding-right: 48px; }
.password-eye { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.password-eye:hover { color: var(--text); }
.password-eye:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Bandeau de simulation d'edition (2026-10-12) : visible seulement pendant une simulation. */
.edition-banner { position: sticky; top: 0; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding: 8px 16px; background: var(--soleil); color: var(--nuit); font-size: 14px; }
.edition-banner form { margin: 0; }
/* Bouton Google (connexion, inscription) : pleine largeur, puis un « ou » avec filets avant le formulaire. */
.google-login { margin-bottom: var(--s4, 16px); }
.google-login-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.google-login-or::before, .google-login-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* Page d'inscription (2026-10-22) : trois blocs séparés - choix général, Google, inscription par adresse. */
.register-sep { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.edition-banner-switch { display: flex; align-items: center; gap: 10px; }
.edition-banner-switch label { margin: 0; font-weight: 600; white-space: nowrap; }
.edition-banner-switch select { width: auto; min-width: 160px; flex: none; height: 32px; padding: 0 30px 0 12px; border: 1px solid var(--nuit); border-radius: var(--r-pill); background-color: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
/* Hauteur fixe (>= 761 px) : la barre laterale se cale sous le bandeau pour que son pied (« Se deconnecter ») reste visible. */
body:has(.edition-banner) { --banner-h: 46px; }
.edition-banner { box-sizing: border-box; min-height: var(--banner-h, 46px); }
@media (min-width: 761px) { .edition-banner { height: var(--banner-h, 46px); flex-wrap: nowrap; padding-block: 0; } }
@media (max-width: 760px) { body:has(.edition-banner) { --banner-h: 0px; } }
.edition-banner.is-idle { background: var(--track); color: var(--text); }
/* Bandeau au repos : bordures et texte suivent le theme (en sombre, le bleu nuit sur fond sombre etait illisible : 1,1:1). */
.edition-banner.is-idle .edition-banner-switch select, .edition-banner.is-idle .edition-banner-quit { border-color: currentColor; }
.edition-banner.is-idle select option { color: var(--nuit); background: #fff; }
.edition-banner > span, .edition-banner-quit { white-space: nowrap; }
.edition-banner-quit { padding: 4px 12px; border: 1px solid var(--nuit); border-radius: var(--r-pill); background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }

/* Accroche du site sous le nom, sur la carte de connexion (editions phase 3). */
.brand-tagline { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Bouton « Enregistrer » des longs formulaires (public/js/sticky-save.js, 2026-10-13) ----------
   Une barre d'actions a la maniere des cartes (meme fond, memes arrondis, meme espacement) : en fin de formulaire elle
   se lit comme un dernier bloc ; tant que la fin est hors de l'ecran, elle flotte en bas de la fenetre, a 16 px du bord. */
.sticky-save { position: sticky; bottom: 16px; z-index: 30; margin: 0 0 24px; padding: 14px 30px; background: var(--card); border-radius: var(--r-l); box-shadow: 0 10px 28px -8px rgba(15, 47, 58, 0.28), 0 0 0 1px var(--line); }
.sticky-save .btn { margin-top: 0; }
@media (max-width: 760px) { .sticky-save { bottom: 100px; padding: 12px 22px; } }

/* ---------- Accessibilite, priorite B (2026-10-14) ---------- */
/* Cibles d'au moins 24 x 24 px (WCAG 2.5.8) : liens du pied de page, boutons-liens, termes, cases a cocher. */
.legal-links a { display: inline-block; min-height: 24px; line-height: 24px; }
.link-button, .term-toggle, .cycle-link { min-height: 24px; }
input[type="checkbox"] { min-width: 24px; min-height: 24px; }
/* Aide « ? » et boutons d'icone : zone cliquable minimale. */
.help-bubble-toggle, .password-eye { min-width: 24px; min-height: 24px; }
.table-wrap thead input, .table-wrap thead select { min-height: 28px; }

/* Un element qui recoit le focus ne doit pas finir cache derriere une barre collante (WCAG 2.4.11) : sommaire des rapports
   en haut, bouton « Enregistrer » flottant et barre mobile en bas. */
html { scroll-padding-top: 76px; scroll-padding-bottom: 100px; }
@media (max-width: 760px) { html { scroll-padding-bottom: 130px; } }

/* En-tête d'une carte repliable avec une pastille d'état (Mon compte, 2026-10-22) : titre et pastille sur une ligne. */
.head-inline { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.head-inline h2 { margin: 0; }

/* « Profil de l'equipe » (DISC circulaire, beta ; 2026-11-02) : comptes de personnes par tendance et fiches d'hypotheses. */
.team-profile-counts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 var(--space-4, 16px); padding: 0; }
.team-profile-counts li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid var(--line, #E3E1D9); border-radius: 999px; background: var(--card, #fff); }
.team-profile-counts li.is-zero { color: var(--muted, #5B6B71); }
.team-profile-rubrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3, 12px); }
@media (max-width: 760px) { .team-profile-rubrics { grid-template-columns: minmax(0, 1fr); } }
.team-profile-rubric { display: flex; flex-direction: column; gap: 6px; margin: 0; border: 1px solid var(--line, #E3E1D9); box-shadow: none; }
.team-profile-rubric ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
/* Sondage de confirmation (2026-11-02) : une section a part, une ligne par hypothese (mot-cle, reponses en petites pastilles, compteur), lisible sur ordinateur. */
.team-profile-rubric li .badge { margin-right: 4px; vertical-align: baseline; }
/* Historique (2026-11-03) : « Ce qui a changé depuis... », une carte repliée sous le profil d'une photo ; une ligne par changement. */
.team-profile-history { margin: 0 0 var(--space-3, 12px); padding-left: 18px; display: grid; gap: 6px; }
.team-profile-history-hypotheses { margin: 6px 0 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.team-profile-history-hypotheses .badge { margin-right: 4px; vertical-align: baseline; }
.team-profile-5b { display: block; margin-top: 2px; font-size: 13px; color: var(--muted, #5B6B71); }
.team-5b-clue { margin: 0 0 var(--space-3, 12px); font-size: 14px; }
.team-profile-poll { display: flex; flex-direction: column; gap: 8px; margin-top: var(--space-4, 16px); padding-top: var(--space-3, 12px); border-top: 1px solid var(--line, #E3E1D9); }
.team-profile-poll h3 { display: flex; align-items: center; gap: 6px; }
.team-profile-poll-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.team-profile-poll-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.team-profile-poll-key { min-width: 7.5rem; justify-content: center; }
.team-profile-poll-choices { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; }
.team-profile-poll-count, .team-profile-poll-result { font-size: 13px; color: var(--muted, #5B6B71); }
.team-profile-poll-result { flex-basis: 100%; padding-left: calc(7.5rem + 10px); }
.team-profile-choice { min-height: 30px; padding: 2px 12px; border: 1px solid var(--field-line, #7F8F94); border-radius: 999px; background: var(--card, #fff); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; line-height: 1.3; cursor: pointer; }
.team-profile-choice:hover { border-color: var(--text); }
.team-profile-choice.is-selected { background: var(--text); color: var(--card, #fff); border-color: var(--text); }
.team-profile-poll .link-button { font-size: 12px; font-weight: 500; }
.team-profile-choice:focus-visible, .team-profile-poll .link-button:focus-visible { outline: 3px solid var(--focus, #0F2F3A); outline-offset: 2px; }

/* Rapport des 5 drivers du coach d'equipe (2026-11-05) : carte (paliers plutot qu'un degrade : un ecart de 3 points ne doit pas se voir) et dispersion. */
.driver-map { border-collapse: separate; border-spacing: 4px; width: 100%; min-width: 620px; font-variant-numeric: tabular-nums; }
.driver-map thead th { font-size: 12px; font-weight: 700; text-align: center; padding: 6px 4px; }
.driver-map thead th:first-child, .driver-map tbody th { text-align: left; white-space: nowrap; }
.driver-map tr.is-separated > * { border-top: 2px solid var(--strong); padding-top: 8px; }
.driver-cell { text-align: center; border-radius: 10px; height: 42px; font-size: 14px; }
.driver-cell .is-strong { font-weight: 700; }
/* Specificite au moins egale a celle du zebrage des tableaux (.table-wrap tbody tr:nth-child(even) > *) : la teinte du palier l'emporte sur une ligne paire. */
.palier-faible, .table-wrap .driver-map tbody tr > .palier-faible { background: color-mix(in srgb, var(--cyan-pro) 6%, transparent); }
.palier-modere, .table-wrap .driver-map tbody tr > .palier-modere { background: color-mix(in srgb, var(--cyan-pro) 20%, transparent); }
.palier-marque, .table-wrap .driver-map tbody tr > .palier-marque { background: color-mix(in srgb, var(--cyan-pro) 50%, transparent); }
.palier-tres-marque, .table-wrap .driver-map tbody tr > .palier-tres-marque { background: color-mix(in srgb, var(--cyan-pro) 85%, transparent); color: #fff; }
.table-wrap .driver-map tbody tr:nth-child(even) > th { background: transparent; }
.driver-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.driver-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; border: 1px solid var(--line); }
.driver-chart { display: block; width: 100%; height: auto; max-width: 720px; }
.driver-chart text { font-family: var(--f); fill: var(--text); }
.driver-chart .chart-head, .driver-chart .chart-tick { font-size: 11px; fill: var(--muted); }
.driver-chart .chart-label { font-size: 13px; font-weight: 700; }
.driver-chart .chart-value { font-size: 13px; font-variant-numeric: tabular-nums; }
.driver-chart .chart-value.is-alert { fill: var(--alerte); font-weight: 800; }
.driver-chart .chart-grid { stroke: var(--line); stroke-width: 1; }
.driver-chart .chart-range { stroke: var(--bar-low); stroke-width: 3; }
.driver-chart .chart-dot { fill: var(--muted); fill-opacity: .75; }
.driver-chart .chart-mean { stroke: var(--cyan-pro); stroke-width: 4; }
.driver-phrases { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; font-weight: 600; }
.place-band { fill: var(--track); }
.place-dot { fill: var(--cyan-pro); }
.place-mean { stroke: var(--muted); stroke-width: 3; }

/* Matrice des binomes du coach (2026-11-05) : triangle inferieur, rouge / vert / gris, aucun chiffre dans une case. */
.pair-state-select { width: auto; }
.pair-matrix { border-collapse: separate; border-spacing: 4px; }
.pair-matrix th { font-size: 12px; font-weight: 700; padding: 4px 8px; white-space: nowrap; }
.pair-matrix thead th { text-align: center; }
.pair-matrix tbody th { text-align: left; }
.pair-cell { width: 56px; height: 40px; border-radius: 8px; padding: 0; }
.pair-cell a { display: block; width: 100%; height: 100%; }
.pair-attention, .table-wrap .pair-matrix tbody tr > .pair-attention { background: color-mix(in srgb, var(--erreur) 70%, transparent); }
.pair-appui, .table-wrap .pair-matrix tbody tr > .pair-appui { background: color-mix(in srgb, var(--succes) 70%, transparent); }
.pair-neutre, .table-wrap .pair-matrix tbody tr > .pair-neutre { background: var(--track); }
.pair-empty, .table-wrap .pair-matrix tbody tr > .pair-empty, .table-wrap .pair-matrix tbody tr:nth-child(even) > th { background: transparent; }

/* Sous-onglets du rapport des 5 drivers du coach (2026-11-04) : vue d'ensemble / binomes, sous les onglets de l'equipe. */
.section-tabs-sub { margin: -12px 0 20px; }
.section-tabs-sub .section-tab { font-size: .9em; }

.pair-self { text-align: center; color: var(--muted); font-size: 12px; }
.state-legend { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }

.pair-reason-input { min-width: 12rem; }
/* Tableau de qualification : les cellules passent a la ligne (les drivers dominants un par ligne), pour tenir dans la page sans defilement horizontal. */
.table-wrap .pair-edit-table th, .table-wrap .pair-edit-table td { white-space: normal; }
.pair-edit-table .badge { white-space: nowrap; }

/* Comparateur de profils du coach (2026-11-05) : une couleur, un trait et un repere par membre (lisible sans les couleurs), moyenne de l'equipe en pointilles. */
.compare-form fieldset { border: 0; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.compare-chart { display: block; width: 100%; height: auto; max-width: 760px; margin-top: 12px; }
.compare-chart text { font-family: var(--f); fill: var(--text); }
.compare-chart .cmp-tick { font-size: 13px; fill: var(--muted); }
.compare-chart .cmp-axis { font-size: 15px; font-weight: 700; }
.compare-chart .cmp-grid { stroke: var(--line); stroke-width: 1; }
.cmp-mean { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 3 5; stroke-linecap: round; }
.cmp-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cmp-line.cmp-1 { stroke: var(--text); }
.cmp-line.cmp-2 { stroke: var(--cyan-pro); stroke-dasharray: 10 6; }
.cmp-line.cmp-3 { stroke: var(--alerte); stroke-dasharray: 2 6; }
.cmp-line.cmp-4 { stroke: var(--succes); stroke-dasharray: 12 5 2 5; }
.cmp-mark { stroke: var(--card); stroke-width: 2; }
.cmp-mark.cmp-1 { fill: var(--text); }
.cmp-mark.cmp-2 { fill: var(--cyan-pro); }
.cmp-mark.cmp-3 { fill: var(--alerte); }
.cmp-mark.cmp-4 { fill: var(--succes); }
.compare-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--text-sm); margin: 8px 0 12px; }
.compare-legend span { display: inline-flex; align-items: center; gap: 6px; }
/* Guide de l'administration (2026-11-05) : rubriques repliables comme l'Aide, un « ou » et des gestes numerotes. */
.guide-part-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 28px 0 6px; }
.guide-lead { max-width: 760px; margin: 0 0 16px; color: var(--muted); }
.guide-toc { display: grid; gap: 4px 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 8px 0 0; padding: 0; list-style: none; }
.guide-toc a { display: block; padding: 4px 0; }
.guide-where { margin: 0 0 10px; font-size: var(--text-sm); font-weight: 700; color: var(--accent-txt); }
.guide-steps { margin: 8px 0 14px; padding-left: 22px; display: grid; gap: 8px; }
.guide-notes-title { margin: 14px 0 6px; font-size: var(--text-md); }
.guide-notes { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.guide-faq dt { font-weight: 700; margin-top: 10px; }
.guide-faq dd { margin: 2px 0 0; color: var(--muted); }
.guide-see { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 12px 0 0; font-size: var(--text-sm); }
/* Guide replie (cle « fold », guide du coach) : les rubriques se replient aussi sur ordinateur, une seule ouverte a la fois ; sans JavaScript tout reste ouvert. */
.guide-folded .help-item-head { position: relative; }
.guide-folded .help-toggle { display: flex; align-items: center; justify-content: flex-end; position: absolute; inset: 0; width: 100%; padding: 0 4px; border: 0; background: none; cursor: pointer; }
.guide-folded .help-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: var(--r-b); }
.guide-folded .help-toggle::after { content: ""; width: 10px; height: 10px; margin-right: 8px; border-right: 2.5px solid var(--text-muted); border-bottom: 2.5px solid var(--text-muted); transform: translateY(-3px) rotate(45deg); transition: transform .15s ease; }
.guide-folded .help-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
.guide-folded .help-item-head h3 { margin: 0; padding: 10px 36px 10px 0; min-height: 44px; display: flex; align-items: center; }
html.alpine-ready .guide-folded .help-section:not(.is-open) .help-section-body { display: none; }
@media (prefers-reduced-motion: reduce) { .guide-folded .help-toggle::after { transition: none; } }
/* Simulation des seuils (2026-11-05) : case de la carte d'equipe dont le palier change. */
.driver-map td.driver-cell.is-changed { outline: 3px solid var(--alerte); outline-offset: -3px; }

/* Ecran des seuils de calcul (2026-11-05, retour de Nicolas) : etapes courtes, zone de SIMULATION nettement identifiee (fond teinte, bord en tirets, pastille
   « rien n'est enregistre »), recalcul a part. Aucune information ne repose sur la seule couleur : la pastille et les titres la disent en toutes lettres. */
.thr-steps { display: flex; flex-wrap: wrap; gap: 4px 28px; list-style: none; margin: 0 0 var(--space-4); padding: 0; font-weight: 700; }
.thr-steps a { display: inline-block; padding: 8px 0; }
.thr-status { margin-left: 14px; font-weight: 600; }
.thr-label-row { display: flex; align-items: center; gap: 6px; }
.table-wrap .thr-settings td.wrap { min-width: 0; }
/* Intertitre d'un groupe de seuils : fond propre, petites capitales, couleur d'accent ; il ne se confond plus avec une ligne de valeurs (retour du 05/11). */
.table-wrap .thr-settings tbody tr.thr-group > th { background: var(--track); color: var(--accent-txt); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-align: left; padding: 12px 24px 8px; border-top: 2px solid var(--line); }
.thr-actions { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.thr-actions li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.thr-action-note { font-size: var(--text-sm); color: var(--muted); }
.sim-zone { margin: var(--space-6) 0; padding: var(--space-4); background: var(--soleil-bg); border: 2px dashed var(--alerte); border-radius: var(--r-l); }
.sim-zone-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: var(--space-2); }
.sim-zone-head h2 { margin: 0; }
.sim-zone > h3 { margin-top: var(--space-5); }
.sim-summary { margin: 0 0 var(--space-3); font-weight: 600; }
.sim-zone .card, .sim-zone .collapsible-card { background: var(--card); }
.sim-apply h3 { margin-top: 0; }
.thr-recalc { margin-top: var(--space-6); }
/* Page d'un test en administration (2026-11-05) : les questions desactivees, et le bloc d'une dimension qui n'en a que de desactivees, sont masques tant que la case
   « Afficher les questions desactivees » n'est pas cochee. */
.admin-test-page:not(.show-inactive) tr.is-inactive, .admin-test-page:not(.show-inactive) .inactive-only { display: none; }

/* Culture de la collaboration et de la formalisation (2026-11-06) : grille de 9 zones, moyenne du groupe et points sans nom. Aucune couleur d'alerte : un style, pas une note. */
.culture-chart { display: block; width: 100%; max-width: 440px; height: auto; margin: 12px 0 4px; }
.culture-chart text { font-family: var(--f); fill: var(--text); }
.culture-cell { fill: var(--card); stroke: var(--line); stroke-width: 1.5; }
.culture-cell-count { font-size: 12px; fill: var(--muted); }
.culture-axis { font-size: 14px; font-weight: 700; }
.culture-tick { font-size: 12px; fill: var(--muted); }
.culture-cell-here { fill: var(--cyan-pro); fill-opacity: .12; }
.culture-mean { fill: var(--text); stroke: var(--card); stroke-width: 2.5; }
.culture-cell-name { font-size: 12px; fill: var(--muted); }
.culture-cell-name.is-here { fill: var(--text); font-weight: 700; }
.culture-fiche { border-top: 1px solid var(--line); padding: 2px 0; }
.culture-fiche summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.culture-fiche ul { margin: 2px 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.culture-legend { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; }
.culture-legend-mean { background: var(--text); }
/* Sous-rubriques de la liste des systemes (Diagnostic 5B, culture, sans session). */
.list-group { margin-top: 28px; }
.list-group-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 4px; font-size: 18px; }
.list-group-count { font-size: 13px; font-weight: 600; color: var(--muted); }
.list-group > .help-text { margin: 0 0 12px; }
/* Filtre « Derniere connexion » de la liste des membres d'une organisation. */
/* Filtre par date avec operateur (x-date-filter) et en-tete de colonne triable (x-sort-th). */
.date-filter { display: grid; gap: 6px; }
.date-filter input[type="date"] { min-width: 0; }
/* Tableau compact : les cellules (sauf les boutons) passent a la ligne, la date et l'heure restent ensemble ; un tableau qui deborde cacherait les boutons d'action. */
.table-compact td:not(.actions), .table-compact tbody th .cell-sub { white-space: normal; }
.table-compact time { white-space: nowrap; }
.sort-link { color: inherit; text-decoration: none; white-space: normal; }
.sort-link::after { content: " \2195"; opacity: .45; }
.sort-link.is-asc::after { content: " \2191"; opacity: 1; }
.sort-link.is-desc::after { content: " \2193"; opacity: 1; }
.members-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
.members-filter-label { font-weight: 700; }
.members-filter .date-filter { grid-auto-flow: column; gap: 8px; align-items: center; }
.members-filter select { width: auto; min-width: 200px; }

/* ============================================================================
   MOBILE (≤ 760 px) — lots M1 « gestes et lisibilité », M2 « listes en fiches » et M5 « concentration pendant un test » (2026-10-19, docs/analyse-mobile.md §5 ;
   docs/architecture.md §4.12, qui liste toutes les spécificités mobiles de l'application)
   Un seul bloc, à la fin du fichier, pour que les règles propres au mobile se retrouvent d'un coup d'œil. Rien de ce bloc ne
   s'applique au-dessus de 760 px : l'ordinateur et la tablette gardent l'affichage d'avant. Le seuil est celui des autres
   règles mobiles du fichier (barre du bas, menu plein écran, cartes). Deux techniques :
   - taille réelle (min-height 44 px) pour les contrôles « de page » : onglets, résumés repliables, liens du pied de page, cases ;
   - zone invisible étendue (pseudo-élément ::after de 44 px) pour les contrôles placés dans une phrase ou une ligne serrée
     (« Compris », « tendance », « ? », liens des bandeaux) : le texte ne bouge pas, seule la zone qui reçoit le toucher grandit.
   À conserver si on ajoute un contrôle : 44 px de zone tactile, 12 px de texte au minimum (charte, WCAG 2.5.8).
   ============================================================================ */
/* Lot M5 : lien « Quitter le test » de la passation, visible seulement sur mobile (voir le bloc ci-dessous). */
.quit-test { display: none; }
/* Lot M3 : boutons de repli des sections de rapport et des réponses d'aide, masqués sur ordinateur (voir le bloc ci-dessous). */
.report-toggle, .help-toggle { display: none; }
/* Croix de fermeture d'une bulle « ? » ou d'un mot du glossaire : seulement sur mobile (sur ordinateur, un clic ailleurs ou Échap ferme). */
.help-bubble-close { display: none; }
/* Lot M4 : sur ordinateur, l'enveloppe d'un cercle disparaît (display: contents) et son bouton « Agrandir » est masqué. */
.chart-zoom { display: contents; }
.chart-zoom-btn { display: none; }

@media (max-width: 760px) {
  /* Texte : jamais sous 12 px (pastilles, badges, libellés de la barre du bas). */
  .badge, .nav-badge, .mobile-bar-label { font-size: 12px; }
  /* Les libellés de la barre du bas passent à 12 px : leurs zones se resserrent pour que cinq entrées tiennent encore sur 360 px. */
  .mobile-bar-link { min-width: 48px; padding: 0 4px; }
  @media (max-width: 340px) { .mobile-bar { left: 8px; right: 8px; padding: 0 4px; } }

  /* Zones réelles de 44 px. */
  .topbar-brand { display: inline-flex; align-items: center; min-height: 44px; }
  .section-tab { display: inline-flex; align-items: center; min-height: 44px; }
  .legal-links { gap: 0 16px; }
  .legal-links a { display: inline-flex; align-items: center; min-height: 44px; line-height: 1.2; }
  details > summary { min-height: 44px; box-sizing: border-box; align-content: center; }
  .share-block > summary, .research-ask-more > summary { min-height: 44px; }
  .collapsible-card-header { min-height: 44px; }
  .password-eye { width: 44px; height: 44px; right: 2px; }
  .password-field input { padding-right: 52px; }
  /* Cases à cocher et boutons radio : c'est l'étiquette entière (44 px) qui reçoit le toucher ; les rangées se séparent d'elles-mêmes. */
  .checkbox-label { min-height: 44px; }
  .comm-choices .checkbox-label { padding-block: 10px; }
  .checkbox-row { min-height: 44px; }
  .checkbox-row label { flex: 1; align-self: stretch; display: flex; align-items: center; }

  /* Zone étendue, texte inchangé : boutons-liens, termes expliqués, aide « ? », liens de bandeau et de liste. */
  .link-button, .term-toggle, .cycle-link, .help-bubble-toggle { position: relative; }
  /* Lot M5, mode concentration : pendant un test, pas de barre du bas (elle distrait d'une tâche qui demande de la concentration) ;
     la marge basse qui lui était réservée disparaît, et « Quitter le test » apparaît sous le logo. */
  .is-focus .mobile-bar { display: none; }
  .is-focus .app-content { padding-bottom: 32px; }
  .quit-test { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin: 0; font-size: 14px; }
  .quit-test a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
  .quit-test span { color: var(--muted); font-size: 13px; }
  /* La phrase « Vous pouvez vous arrêter à tout moment… » du bas d'une série de parcours fait double emploi avec le lien du haut. */
  .quit-bottom { display: none; }

  /* Cartes repliables (x-collapsible-card :mobile-open="false"), principe « épurer » du 20/10 : sur téléphone, une page longue montre son premier bloc ;
     les autres cartes s'ouvrent d'un toucher. « Neuve » (is-pristine) = pas encore touchée ; Alpine prêt (html.alpine-ready), sinon tout reste ouvert. */
  html.alpine-ready .collapsible-card.is-mobile-closed.is-pristine .collapsible-card-body { display: none !important; }

  .link-button::after, .term-toggle::after, .cycle-link::after, .help-bubble-toggle::after {
    content: ""; position: absolute; left: -6px; right: -6px; top: 50%; height: 44px; transform: translateY(-50%);
  }
  /* Bulle « ? » : zone tactile de 44 × 44 px (24 px de large + 10 px de chaque côté) ; elle était de 36 × 44 (revue UX du 2026-10-22, plus de bulles sur le tableau de bord). */
  .help-bubble-toggle::after { left: -10px; right: -10px; }

  /* Bulles « ? » et mots du glossaire (retour de Nicolas du 20/10 : « le texte d'aide se voit-il bien sur mobile ? » — non : une bulle placée à droite
     de l'écran ouvrait un texte coupé par le bord et élargissait la page). Sur téléphone, le texte s'affiche en bas de l'écran, au-dessus de la barre
     du bas, sur toute la largeur, quel que soit l'endroit de la bulle ; un toucher ailleurs le ferme (@click.outside, déjà en place). */
  .help-bubble .help-bubble-panel, .term .help-bubble-panel, .page-title-row .help-bubble-panel {
    position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(100px + env(safe-area-inset-bottom)); width: auto; max-height: 45vh; overflow-y: auto; z-index: 70;
    padding: 14px 52px 14px 16px; font-size: 15px; box-shadow: 0 -6px 28px rgba(15, 47, 58, 0.22), 0 0 0 1px var(--line);
  }
  /* Petite croix en haut à droite du texte : on le ferme sans avoir à retoucher le « ? » (retour de Nicolas du 20/10). */
  .help-bubble-close { display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text-muted); cursor: pointer; }
  .help-bubble-close:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }

  /* Tableau de bord, un test terminé = une carte courte (retour de Nicolas du 20/10 : 1 150 px pour six tests) : plus de « En savoir plus » (la personne
     connaît ce test), « Voir mon résultat » et « Refaire le test » (lien discret) sur une même ligne. Les tests à faire ou en cours gardent leur carte. */
  .vignette.is-completed { padding: 12px 16px; gap: 8px; }
  .vignette.is-completed .vignette-icon { width: 40px; height: 40px; }
  .vignette.is-completed .vignette-desc { display: none; }
  .vignette.is-completed .vignette-actions { flex-wrap: nowrap; align-items: center; }
  .vignette.is-completed .vignette-actions > :first-child { flex: 1 1 auto; }
  .vignette.is-completed .vignette-actions > :nth-child(2) { flex: 0 0 auto; width: auto; }
  .vignette.is-completed .vignette-actions .btn-secondary { width: auto; border-color: transparent; background: none; box-shadow: none; padding: 0 10px; font-size: 13px; text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 4px; }

  /* Rôle d'un membre d'équipe : la liste déroulante des profils (pastille cliquable) a une zone tactile de 44 px. */
  .table-wrap select.cell-select { min-height: 44px; }
  /* Mes partages : les liens du tableau (nom du test, « Modifier ») ont une zone tactile de 44 px (ils en avaient 18 ; revue UX du 2026-10-22). */
  .shares-table th a, .shares-table td a { display: inline-flex; align-items: center; min-height: 44px; }

  /* Lot M3, pages longues repliables (x-report.section, aide) : un bouton couvre l'en-tête de la section ou de la question ; le corps ne se replie
     qu'une fois Alpine prêt (html.alpine-ready) : sans JavaScript, tout reste ouvert. Sur ordinateur, rien de tout cela n'existe. */
  .report-section-head, .help-item-head { position: relative; }
  .report-toggle, .help-toggle { display: flex; align-items: center; justify-content: flex-end; position: absolute; inset: 0; width: 100%; padding: 0 4px; border: 0; background: none; cursor: pointer; }
  .report-toggle:focus-visible, .help-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: var(--r-b); }
  .report-toggle::after, .help-toggle::after { content: ""; width: 10px; height: 10px; margin-right: 8px; border-right: 2.5px solid var(--text-muted); border-bottom: 2.5px solid var(--text-muted); transform: translateY(-3px) rotate(45deg); transition: transform .15s ease; }
  .report-toggle[aria-expanded="true"]::after, .help-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
  /* Une section repliée tient en une ligne de 44 px (retour de Nicolas du 20/10 : « moins hautes quand elles sont repliées »). */
  .report-section { padding: 6px 0; }
  .report-section-head .report-title { margin-bottom: 0; padding: 6px 36px 6px 0; min-height: 44px; font-size: 18px; }
  .report-section-body { padding: 8px 0 14px; }
  .page-title-row { font-size: 28px; }
  html.alpine-ready .report-section-body:not(.is-open), html.alpine-ready .help-item:not(.is-open) .help-answer, html.alpine-ready .help-section:not(.is-open) .help-section-body { display: none; }
  /* Section repliable ouverte sur ordinateur (x-report.section foldable) : sur mobile, fermee tant qu'on n'y a pas touche, sauf la premiere. */
  html.alpine-ready .report-fold.is-mobile-closed.is-pristine .report-section-body { display: none !important; }
  .help-section-head h2 { margin: 0; padding: 8px 36px 8px 0; min-height: 44px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
  .help-item-head h3 { margin: 0; padding: 10px 36px 10px 0; min-height: 44px; display: flex; align-items: center; }
  .help-item { padding: 0; }
  .help-item .help-answer { margin: 0; padding: 0 0 14px; }

  /* Lot M4, cercles agrandissables (<x-chart-zoom>, public/js/chart-zoom.js) : un bouton « Agrandir » couvre le dessin (toucher le cercle l'agrandit) ;
     quand les points sont cliquables (cercle d'équipe), il reste dans un coin. La copie s'ouvre en plein écran, plus large que l'écran, à faire glisser :
     les noms de zone y passent de 7 px à plus de 14 px. La légende reste dans la page. */
  .chart-zoom { display: block; position: relative; }
  .chart-zoom-btn { display: flex; align-items: flex-end; justify-content: flex-end; position: absolute; right: 0; bottom: 0; padding: 4px; border: 0; background: none; font: inherit; cursor: pointer; }
  .chart-zoom-btn.is-tap { inset: 0; width: 100%; padding: 8px; }
  .chart-zoom-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
  .chart-zoom-pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); background: var(--card); box-shadow: 0 0 0 1.5px var(--border); color: var(--text); font-size: 13px; font-weight: 700; }
  .chart-zoom-dialog { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; padding: 0; border: 0; background: var(--card); color: var(--text); }
  .chart-zoom-dialog[open] { display: flex; flex-direction: column; }
  .chart-zoom-dialog::backdrop { background: rgba(3, 35, 46, 0.6); }
  .chart-zoom-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--border); }
  .chart-zoom-hint { margin: 0; font-size: 13px; color: var(--text-muted); }
  .chart-zoom-close { min-height: 44px; padding: 0 18px; border: 1.5px solid var(--border); border-radius: var(--r-pill); background: var(--card); color: var(--text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
  .chart-zoom-body { flex: 1; overflow: auto; padding: 16px; touch-action: pan-x pan-y pinch-zoom; }
  .chart-zoomed { display: block; width: 560px; max-width: none; height: auto; margin: 0 auto; }

  /* Lot M6, inscription : pas de confirmation du mot de passe sur téléphone (l'œil d'affichage la remplace ; public/js/password-confirm.js recopie le mot de passe). */
  .field-password-confirm { display: none; }

  /* Lot M2, listes en fiches : un tableau marqué .table-wrap.table-cards (HTML inchangé) devient une fiche par ligne ; public/js/table-cards.js
     écrit les data-label (titre de colonne devant chaque valeur) et les rôles ARIA. Les tableaux croisés et l'administration n'ont pas
     cette classe : ils restent des tableaux qui défilent. L'en-tête reste dans la page (masqué à l'œil, lu par les lecteurs d'écran). */
  .table-cards { background: none; border: 0; border-radius: 0; overflow: visible; margin-bottom: 12px; }
  .table-cards table, .table-cards tbody, .table-cards tr, .table-cards th, .table-cards td { display: block; }
  .table-cards table { width: auto; overflow: visible; }
  .table-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table-cards tbody tr { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; padding: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
  .card .table-cards tbody tr { background: var(--bg); }
  .table-cards tbody tr:nth-child(even) > *, .table-cards tbody tr:hover > * { background: none; }
  .table-cards tbody tr:last-child { margin-bottom: 0; }
  .table-cards tbody th, .table-cards tbody td { padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; font-size: 14px; }
  /* Le titre de la fiche : la colonne d'identification, toujours en premier (la date d'« Accès à mon compte » passe après). */
  .table-cards tbody th[scope="row"] { order: -1; font-size: 16px; }
  /* Une personne ne s'écrit qu'une fois par groupe dans le tableau (« Partagés avec moi ») : en fiche, chaque fiche porte son nom. */
  .table-cards tbody th .sr-only { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }
  .table-cards td[data-label]::before { content: attr(data-label) " : "; font-weight: 600; color: var(--text-muted); }
  .table-cards td.actions, .table-cards td[data-cell="actions"] { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: auto; margin-top: 6px; text-align: left; white-space: normal; }
  .table-cards td.actions > * { margin-left: 0; }
  .table-cards td.actions:not(:has(*)), .table-cards td[data-cell="actions"]:not(:has(*)) { display: none; }
  /* Qualifier les binomes (2026-11-05) : la fiche d'un binome garde son etat et son motif a portee de doigt, sur toute la largeur. */
  .table-cards .pair-state-select, .table-cards .pair-reason-input { width: 100%; min-width: 0; }
  .table-cards .pair-edit-table td { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
}
