/* ============================================================================
   om-ui.css — fondations visuelles communes OmegaCampus (étape 2 de l'audit, 06/10/2026)
   Chargé APRÈS styles.css / visio.css / type-bac.css, AVANT fiche-eleve.css.
   Décision : couleur unique TEAL partout (D1). Ce fichier :
     1. définit les tokens de marque (--brand-*, --ink-*) — SOURCE UNIQUE des couleurs ;
     2. redirige les anciens tokens d'accent (--primary-*, --blue, dégradés) vers le teal ;
     3. unifie boutons, menu latéral, en-têtes de module, focus ;
     4. ramène au teal les utilitaires Tailwind d'accent (indigo / violet / purple / blue / sky).
   Les couleurs sémantiques (succès vert, erreur rouge, alerte ambre) ne changent pas.
   ============================================================================ */

:root {
  /* --- Marque : teal (encres ≥ 4,5:1 sur blanc à partir de 600) --- */
  --brand-50:  #f0fdfa;
  --brand-100: #ccfbf1;
  --brand-200: #99f6e4;
  --brand-300: #5eead4;
  --brand-400: #2dd4bf;
  --brand-500: #14b8a6;
  --brand-600: #0d9488;
  --brand-700: #0f766e;   /* couleur principale (boutons, liens, onglets actifs) */
  --brand-800: #115e59;
  --brand-900: #134e4a;
  --brand-950: #042f2e;

  /* --- Encres et surfaces (langage de la fiche élève) --- */
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --line:    #e5e7eb;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --radius-card: 14px;
  --focus-ring: 0 0 0 3px rgba(13, 148, 136, .25);

  /* --- Anciens accents redirigés vers la marque --- */
  --primary-50:  var(--brand-50);
  --primary-100: var(--brand-100);
  --primary-200: var(--brand-200);
  --primary-300: var(--brand-300);
  --primary-400: var(--brand-400);
  --primary-500: var(--brand-700);   /* 500 servait de fond de bouton : version contrastée */
  --primary-600: var(--brand-700);
  --primary-700: var(--brand-800);
  --primary-800: var(--brand-900);
  --primary-900: var(--brand-950);
  --primary-950: var(--brand-950);
  --blue: var(--brand-700);
  --gradient-primary: linear-gradient(135deg, var(--brand-800) 0%, var(--brand-600) 100%);
  --gradient-header:  linear-gradient(135deg, var(--brand-800) 0%, var(--brand-700) 55%, var(--brand-600) 100%);
  --bg-page: var(--surface-alt);
}

body { background-color: var(--surface-alt); }

/* ---------------------------------------------------------------- Boutons --- */
.btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-700);
  font-weight: 600;
  border-radius: 10px;
}
.btn:hover:not(:disabled) { background: var(--brand-50); border-color: var(--brand-200); box-shadow: none; transform: none; }
.btn.primary, .btn-primary {
  background: var(--brand-700);
  border: 1px solid var(--brand-700);
  color: #fff;
}
.btn.primary:hover:not(:disabled), .btn-primary:hover { background: var(--brand-800); border-color: var(--brand-800); }
.btn:focus-visible, .btn-primary:focus-visible, button:focus-visible, a:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ------------------------------------------------------------ Menu latéral --- */
.brand { color: var(--brand-800); }
.nav button { color: var(--ink-700); font-weight: 500; }
.nav button:hover { background: var(--surface-alt); color: var(--ink-900); }
.nav button.active {
  background: var(--brand-50);
  color: var(--brand-800);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--brand-700);
}

/* --------------------------------------------------------- Titre de page --- */
.header .h1 { color: var(--ink-900); }

/* ------------------------------------------------- En-têtes de module (une teinte) --- */
.dash-header, .planning-header, .factures-header, .eleves-header, .pedagogie-header,
.parent-modal-header,
.om-page-header, .om-page-header[class*="om-ph-"] {
  background: var(--gradient-header);
}

/* ----------------------------------- Utilitaires Tailwind d'accent → teal --------- */
/* Fonds clairs */
.bg-indigo-50, .bg-violet-50, .bg-purple-50, .bg-blue-50, .bg-sky-50   { background-color: var(--brand-50); }
.bg-indigo-100, .bg-violet-100, .bg-purple-100, .bg-blue-100, .bg-sky-100 { background-color: var(--brand-100); }
.bg-indigo-200, .bg-violet-200, .bg-purple-200, .bg-blue-200 { background-color: var(--brand-200); }
/* Fonds pleins (boutons) */
.bg-indigo-500, .bg-violet-500, .bg-purple-500, .bg-blue-500, .bg-sky-500,
.bg-indigo-600, .bg-violet-600, .bg-purple-600, .bg-blue-600, .bg-sky-600 { background-color: var(--brand-700); }
.bg-indigo-700, .bg-violet-700, .bg-purple-700, .bg-blue-700, .bg-sky-700,
.hover\:bg-indigo-700:hover, .hover\:bg-violet-700:hover, .hover\:bg-purple-700:hover, .hover\:bg-blue-700:hover,
.hover\:bg-indigo-600:hover, .hover\:bg-blue-600:hover, .hover\:bg-purple-600:hover { background-color: var(--brand-800); }
.hover\:bg-indigo-50:hover, .hover\:bg-blue-50:hover, .hover\:bg-purple-50:hover, .hover\:bg-violet-50:hover { background-color: var(--brand-50); }
.hover\:bg-indigo-100:hover, .hover\:bg-blue-100:hover, .hover\:bg-purple-100:hover { background-color: var(--brand-100); }
/* Textes */
.text-indigo-500, .text-violet-500, .text-purple-500, .text-blue-500, .text-sky-500,
.text-indigo-600, .text-violet-600, .text-purple-600, .text-blue-600, .text-sky-600 { color: var(--brand-700); }
.text-indigo-700, .text-violet-700, .text-purple-700, .text-blue-700, .text-sky-700,
.text-indigo-800, .text-violet-800, .text-purple-800, .text-blue-800,
.text-indigo-900, .text-purple-900, .text-blue-900,
.hover\:text-indigo-700:hover, .hover\:text-blue-700:hover, .hover\:text-blue-800:hover { color: var(--brand-800); }
/* Bordures */
.border-indigo-100, .border-blue-100, .border-purple-100, .border-violet-100,
.border-indigo-200, .border-blue-200, .border-purple-200, .border-violet-200, .border-sky-200 { border-color: var(--brand-200); }
.border-indigo-300, .border-blue-300, .border-purple-300,
.border-indigo-500, .border-blue-500, .border-purple-500,
.border-indigo-600, .border-blue-600, .border-purple-600 { border-color: var(--brand-600); }
.focus\:ring-indigo-500:focus, .focus\:ring-blue-500:focus, .focus\:ring-purple-500:focus { --tw-ring-color: rgba(13, 148, 136, .45); }
.focus\:border-indigo-500:focus, .focus\:border-blue-500:focus { border-color: var(--brand-600); }
/* Dégradés Tailwind */
.from-indigo-500, .from-indigo-600, .from-blue-500, .from-blue-600, .from-purple-500, .from-purple-600, .from-violet-500, .from-violet-600 {
  --tw-gradient-from: var(--brand-800); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(15,118,110,0));
}
.to-indigo-500, .to-indigo-600, .to-blue-500, .to-blue-600, .to-purple-500, .to-purple-600, .to-violet-500, .to-violet-600, .to-pink-500 {
  --tw-gradient-to: var(--brand-600);
}

/* ---------------------------------------------- Icônes au trait (om-icons.js) --- */
.om-ic { flex-shrink: 0; vertical-align: -3px; display: inline-block; } /* Tailwind (preflight) met les svg en block : une icône dans une ligne de texte passait seule à la ligne */
.nav button.om-ic-btn { display: flex; align-items: center; gap: 10px; }
.nav button.om-ic-btn[style*="display: none"], .nav button.om-ic-btn[style*="display:none"] { display: none; }
.nav button .om-ic { color: var(--ink-500); }
.nav button:hover .om-ic { color: var(--ink-700); }
.nav button.active .om-ic { color: var(--brand-700); }
aside .btn.om-ic-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
aside .btn.om-ic-btn .om-ic { width: 16px; height: 16px; }

/* ── Toasts (notify) — une seule implémentation : ui-components.js ───────── */
.om-toasts { position: fixed; top: 16px; right: 16px; z-index: 2000000; display: flex;
  flex-direction: column; gap: 8px; width: max-content; max-width: min(380px, calc(100vw - 32px));
  pointer-events: none; }
.om-toast { --t: var(--brand-700); pointer-events: auto; display: flex; gap: 10px; align-items: flex-start;
  background: #fff; color: var(--ink-900); border: 1px solid #e2e8f0; border-left: 4px solid var(--t);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(15, 23, 42, .12); padding: 10px 14px;
  font-size: 14px; line-height: 1.45; cursor: pointer; opacity: 0; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease; }
.om-toast.is-in { opacity: 1; transform: none; }
.om-toast.success { --t: #059669; }
.om-toast.error   { --t: #dc2626; }
.om-toast.warning { --t: #d97706; }
.om-toast-ic { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--t); }
.om-toast-msg { flex: 1; white-space: pre-line; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .om-toast { transition: none; transform: none; } }

/* ── Mise en page générale ───────────────────────────────────────────────────
   Le menu latéral reste visible pendant le défilement (avant : il partait avec la
   page) et le contenu ne déborde plus horizontalement (barre de défilement parasite). */
main { min-width: 0; overflow-x: clip; }
@media (min-width: 901px) {
  aside { position: sticky; top: 0; align-self: flex-start; }
}

/* ── Dialogues communs (06/10/2026) ───────────────────────────────────────────
   showConfirmModal / showAlertModal / showPromptModal / askRecurrenceAction
   (ui-components.js) et UIHelpers.showConfirmModal (ui-helpers.js) : un seul
   visuel. Structure : .om-dialog > .om-dlg-body (.om-dlg-ic + texte) [+ choix]
   + .om-dlg-foot. Le comportement (Échap, clic extérieur, z-index) ne change pas. */
.modal.om-dialog, .om-dialog {
  position: relative; width: 100%; max-width: 440px; padding: 0; background: var(--surface);
  border: 0; border-radius: 14px; box-shadow: 0 24px 48px rgba(15, 23, 42, .22); overflow: hidden;
}
.om-dlg-body { display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px 6px; }
.om-dlg-ic { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand-700); }
.om-dlg-ic.danger  { background: #fef2f2; color: #b91c1c; }
.om-dlg-ic.warning { background: #fffbeb; color: #b45309; }
.om-dlg-ic.success { background: #ecfdf5; color: #047857; }
.om-dlg-txt { flex: 1; min-width: 0; padding-right: 18px; }
.om-dlg-title { margin: 0 0 4px; font-size: 17px; font-weight: 800; color: var(--ink-900); line-height: 1.3; }
.om-dlg-msg { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-600); }
.om-dlg-input { width: 100%; height: 40px; margin-top: 12px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; }
.om-dlg-input:focus { outline: none; border-color: var(--brand-600); box-shadow: var(--focus-ring); }
.om-dlg-close {
  position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 8px; border: 0; background: none;
  color: var(--ink-500); font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.om-dlg-close:hover { background: var(--surface-alt); color: var(--ink-900); }
.om-dlg-choices { display: flex; flex-direction: column; gap: 8px; padding: 10px 24px 2px; }
.om-dlg-choice {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--ink-900); cursor: pointer;
}
.om-dlg-choice:hover, .om-dlg-choice:focus-visible { border-color: var(--brand-300); background: var(--brand-50); outline: none; }
.om-dlg-choice .om-ic { color: var(--ink-500); flex-shrink: 0; }
.om-dlg-choice.danger { color: #b91c1c; }
.om-dlg-choice.danger:hover { border-color: #fecaca; background: #fef2f2; }
.om-dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px 20px; }
.om-dlg-choices { max-height: min(52vh, 420px); overflow-y: auto; }
.om-dlg-choice.primary { border-color: var(--brand-300, #5eead4); background: var(--brand-50); color: var(--brand-800, #115e59); }
.om-dlg-choice.primary:hover { background: var(--brand-100, #ccfbf1); }
.om-dlg-choice-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.om-dlg-choice-t small { font-size: 12.5px; font-weight: 400; color: var(--ink-500); line-height: 1.4; }
.om-dlg-other { padding: 14px 24px 0; }
.om-dlg-other label { display: block; margin-bottom: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-500); }
.om-dlg-other-row { display: flex; gap: 8px; }
.om-dlg-other-row .om-dlg-input { margin-top: 0; flex: 1; min-width: 0; }
.om-dlg-other-row .btn { height: 40px; padding: 0 16px; }
.om-dlg-note { margin: 0; padding: 12px 24px 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-500); }
.om-dlg-foot .om-dlg-skip { margin-right: auto; }
.om-dlg-foot .btn { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.om-btn-danger { background: #b91c1c; border: 1px solid #b91c1c; color: #fff; }
.btn.om-btn-danger:hover:not(:disabled) { background: #991b1b; border-color: #991b1b; }
.btn.om-btn-warning { background: #b45309; border: 1px solid #b45309; color: #fff; }
.btn.om-btn-success { background: #047857; border: 1px solid #047857; color: #fff; }
@media (max-width: 520px) {
  .om-dlg-body { padding: 20px 18px 6px; }
  .om-dlg-choices { padding: 10px 18px 2px; }
  .om-dlg-foot { padding: 14px 18px 18px; }
  .om-dlg-foot .btn { flex: 1; justify-content: center; }
}

/* ── En-tête des modales de saisie (06/10/2026) ──────────────────────────────
   Modale cours/événement (openItemModal), stages (chooser + fiche) : pastille
   d'icône + titre + sous-titre, même famille visuelle que les dialogues. */
.modal-h.om-sheet-h, .om-sheet-h {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px 16px 24px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.om-sheet-ic { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand-700); }
.om-sheet-ic.evt { background: #f5f3ff; color: #6d28d9; }
.om-sheet-titles { flex: 1; min-width: 0; }
.om-sheet-title { margin: 0; font-size: 17px; font-weight: 800; color: var(--ink-900); line-height: 1.25; }
.om-sheet-sub { margin-top: 2px; font-size: 12.5px; color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.om-sheet-close {
  width: 32px; height: 32px; border-radius: 8px; border: 0; background: none; color: var(--ink-500);
  font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.om-sheet-close:hover { background: var(--surface-alt); color: var(--ink-900); }

/* ── Formulaires des modales de saisie (.om-form, 06/10/2026) ────────────────
   Corps des modales cours/événement et stage : espacement régulier, libellés,
   champs, encadrés et pied de modale uniformes. Neutralise au passage la règle
   mobile de styles.css (.grid { padding: 0 16px }) qui décalait les colonnes. */
.om-sheet { display: flex !important; flex-direction: column; max-height: 92vh; max-height: 92dvh; overflow: hidden; }
.om-sheet > .modal-b { flex: 1; min-height: 0; overflow-y: auto; }
.om-form { display: flex; flex-direction: column; gap: 18px; padding: 22px 24px !important; }
.om-form > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.om-form .grid { padding: 0 !important; }
.om-form-group { display: flex; flex-direction: column; gap: 18px; }
.om-form-group > * { margin: 0 !important; }
.om-form .field { margin: 0; }
.om-form label.block, .om-form .om-lbl {
  display: block; margin: 0 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-500);
}
.om-form label.block > span { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink-500); }
.om-form .input, .om-form select.input, .om-form textarea.input {
  width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px;
  background-color: var(--surface); font-size: 14px; color: var(--ink-900); box-shadow: none;
}
.om-form textarea.input { min-height: 68px; line-height: 1.45; resize: vertical; }
.om-form .input:focus { outline: none; border-color: var(--brand-600); box-shadow: var(--focus-ring); }
.om-form .input:disabled { background-color: var(--surface-alt); color: var(--ink-500); cursor: not-allowed; }
.om-form .om-hint { margin: 6px 0 0 !important; font-size: 12px; line-height: 1.45; color: var(--ink-500); }
.om-form > .om-hint { margin-top: -10px !important; }
.om-input-ic { position: relative; }
.om-input-ic > .om-ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-500); pointer-events: none; }
.om-form .om-input-ic > .input { padding-left: 34px; }
/* Onglets segmentés (Cours / Événement) */
.om-seg { display: flex; padding: 3px; border-radius: 10px; background: var(--surface-alt); border: 1px solid var(--line); }
.om-seg > button { flex: 1; height: 34px; border: 0; border-radius: 8px; background: none; font-size: 13.5px; font-weight: 600; color: var(--ink-500); cursor: pointer; }
.om-seg > button.bg-white { background: var(--surface); color: var(--brand-800, #115e59); box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }
/* Encadrés : information, attention, section */
.om-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-alt); font-size: 13.5px; line-height: 1.5; color: var(--ink-700); }
.om-note.warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.om-note.info { background: var(--brand-50); border-color: var(--brand-200, #99f6e4); color: var(--brand-800, #115e59); }
.om-note .btn { height: 34px; padding: 0 12px; font-size: 13px; background: var(--surface); }
.om-section { display: flex; flex-direction: column; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-alt); }
.om-section-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.om-section-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 800; color: var(--ink-900); }
.om-section-title .om-ic { color: var(--brand-700); }
.om-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink-700); cursor: pointer; }
.om-check input { width: 16px; height: 16px; accent-color: var(--brand-700); }
/* Jours (pastilles à cocher) */
.om-days { display: flex; flex-wrap: wrap; gap: 6px; }
.om-days label { position: relative; cursor: pointer; }
.om-days input { position: absolute; opacity: 0; pointer-events: none; }
.om-days span { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-size: 13px; font-weight: 700; color: var(--ink-600); }
.om-days input:checked + span { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.om-days input:focus-visible + span { box-shadow: var(--focus-ring); }
.om-days input:disabled + span { cursor: not-allowed; opacity: .7; }
/* Blocs statut / notification de la modale cours */
.om-form #it-brouillon-zone, .om-form #it-notif-zone { border-width: 1px !important; border-radius: 10px; padding: 12px 14px; }
.om-form #it-valider-btn, .om-form #it-brouillon-btn, .om-form #it-notif-btn { height: 36px; border-radius: 9px; }
/* Pied de modale */
.modal-f.om-sheet-f { display: flex; align-items: center; justify-content: space-between !important; gap: 8px; padding: 14px 24px !important; border-top: 1px solid var(--line); background: var(--surface) !important; border-radius: 0; }
.om-sheet-f .btn { height: 38px; padding: 0 16px; font-size: 14px; }
.om-sheet-f .om-sheet-f-r { display: flex; gap: 8px; margin-left: auto; }
.btn.om-btn-ghost-danger { background: none; border: 1px solid transparent; color: #b91c1c; }
.btn.om-btn-ghost-danger:hover { background: #fef2f2; border-color: #fecaca; }
@media (max-width: 640px) {
  .om-form { padding: 18px 16px !important; gap: 16px; }
  .om-form .grid.grid-cols-2:not(.om-keep2), .om-form .grid.grid-cols-3, .om-form .grid.grid-cols-4 { grid-template-columns: 1fr !important; }
  .om-form .grid .col-span-2, .om-form .grid .col-span-1 { grid-column: auto !important; }
  .modal-f.om-sheet-f { padding: 12px 16px !important; }
}

/* Règles tactiles globales de styles.css (≤ 768px, !important) : on les recadre
   dans les modales de saisie (icône dans le champ, onglets segmentés). */
@media (max-width: 768px) {
  .om-form .om-input-ic > .input { padding-left: 36px !important; }
  .om-form .grid.om-keep2 { display: grid !important; grid-template-columns: 1fr 1fr !important; }
  .om-seg > button { min-height: 38px !important; padding: 0 8px !important; font-size: 14px !important; white-space: nowrap; }
}

/* ── Compléments modales de saisie (06/10/2026) ───────────────────────────── */
/* .hidden (Tailwind) perd face à display:flex de .field / .om-note / .om-form-group
   chargés après : spécificité renforcée, SANS !important (sinon .show() de jQuery,
   utilisé par les listes de suggestions, ne pourrait plus rien afficher). */
.om-form .field.hidden, .om-form .om-note.hidden, .om-form .om-form-group.hidden, .om-form .om-hint.hidden,
.om-form .om-addlink.hidden, .om-form .grid.hidden { display: none; }
.om-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.om-seg > button.on { background: var(--surface); color: var(--ink-900); box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }
.om-addlink { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; text-align: left; padding: 4px 2px; border: 0; background: none;
  font-size: 13.5px; font-weight: 600; color: var(--brand-700); cursor: pointer; }
.om-addlink:hover { color: var(--brand-800, #115e59); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 768px) {
  .om-addlink { min-height: 0 !important; padding: 6px 2px !important; font-size: 14px !important; }
}
@media (max-width: 420px) {
  .om-seg > button { font-size: 13px !important; padding: 0 6px !important; overflow: hidden; text-overflow: ellipsis; }
}

/* ── Sections numérotées des fiches longues (fiche stage, 06/10/2026) ──────── */
.om-step { display: flex; flex-direction: column; gap: 16px; margin: 0 !important; }
.om-step + .om-step { padding-top: 6px; }
.om-step-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-700); }
.om-step-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-700); color: #fff; font-size: 12px; letter-spacing: 0; }
.om-step-aside { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--ink-500); }
.om-step-h .om-check.om-step-aside { color: var(--ink-700); }
/* Pastilles à cocher de largeur libre (filières, spécialités) */
.om-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.om-picks label { position: relative; cursor: pointer; }
.om-picks input { position: absolute; opacity: 0; pointer-events: none; }
.om-picks span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-600); }
.om-picks input:checked + span { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.om-picks input:focus-visible + span { box-shadow: var(--focus-ring); }
.om-toast-act { flex: none; align-self: center; margin-left: 4px; height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px;
  background: var(--surface); font-size: 12.5px; font-weight: 700; color: var(--brand-700); cursor: pointer; }
.om-toast-act:hover { background: var(--brand-50); border-color: var(--brand-300, #5eead4); }
@media (max-width: 768px) { .om-toast-act { min-height: 0 !important; padding: 0 10px !important; font-size: 13px !important; } }

/* ── Menu contextuel commun (showContextMenu, 06/10/2026) ─────────────────── */
.om-ctx { position: fixed; z-index: calc(var(--z-overlay, 1000) + 20); min-width: 230px; padding: 5px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(15, 23, 42, .18); }
.om-ctx-i { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none;
  font-size: 13.5px; font-weight: 500; color: var(--ink-900); text-align: left; cursor: pointer; }
.om-ctx-i:hover:not(:disabled), .om-ctx-i:focus-visible { background: var(--brand-50); outline: none; }
.om-ctx-i:disabled { color: var(--ink-500); opacity: .55; cursor: not-allowed; }
.om-ctx-i.danger { color: #b91c1c; }
.om-ctx-i.danger:hover:not(:disabled) { background: #fef2f2; }
.om-ctx-ic { width: 16px; height: 16px; display: inline-flex; color: var(--ink-500); flex-shrink: 0; }
.om-ctx-i.danger .om-ctx-ic { color: #b91c1c; }
.om-ctx-l { flex: 1; }
.om-ctx-k { font-size: 11.5px; color: var(--ink-500); font-variant-numeric: tabular-nums; }
.om-ctx-sep { height: 1px; margin: 4px 6px; background: var(--line); }
.om-ctx-t { padding: 6px 10px 2px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-500); }
@media (max-width: 768px) { .om-ctx-i { min-height: 40px !important; padding: 8px 10px !important; font-size: 14px !important; } }

/* ── Correctifs de la revue (06/10/2026) ──────────────────────────────────── */
/* Survol des boutons colorés : .btn:hover (fond clair) rendait le texte blanc illisible */
.btn.om-btn-warning:hover:not(:disabled) { background: #92400e; border-color: #92400e; color: #fff; }
.btn.om-btn-success:hover:not(:disabled) { background: #065f46; border-color: #065f46; color: #fff; }
.btn.success:hover:not(:disabled) { background: #047857; border-color: #047857; color: #fff; }
.btn.om-btn-danger:hover:not(:disabled) { color: #fff; }
/* Règle tactile globale (styles.css ≤ 768px, !important) : tailles recadrées */
@media (max-width: 768px) {
  .om-dlg-close, .om-sheet-close { min-height: 0 !important; min-width: 0 !important; padding: 0 !important; width: 34px; height: 34px; }
  .dash-iconbtn { min-height: 0 !important; min-width: 0 !important; padding: 0 !important; width: 36px; height: 36px; }
}

/* ── En-tête : actions (cloche, Bilan, Recherche) harmonisées (06/10/2026) ──
   Avant : cloche emoji, « Bilan » orange en dégradé, « Rechercher » cyan.
   Les trois partagent désormais la même hauteur et le même langage. */
#header-actions { align-items: center; gap: 8px; }
#header-actions .notif-bell,
#header-actions .om-bilan-btn,
#header-actions #gs-trigger-btn {
  height: 38px; display: inline-flex; align-items: center; gap: 7px;
  border-radius: 10px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
#header-actions .notif-bell {
  width: 38px; justify-content: center; padding: 0;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-600);
}
#header-actions .notif-bell svg, #header-actions .om-bilan-btn svg, #header-actions #gs-trigger-btn svg { flex-shrink: 0; }
#header-actions .notif-bell:hover { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-800); }
#header-actions .notif-badge { top: -5px; right: -5px; border: 2px solid var(--surface-alt); animation: none; }
.om-bilan-indicator { position: relative; display: inline-flex; align-items: center; }
#header-actions .om-bilan-btn, .om-bilan-btn {
  padding: 0 8px 0 12px;
  background: var(--brand-50); border: 1px solid var(--brand-200); color: var(--brand-800);
}
#header-actions .om-bilan-btn:hover, .om-bilan-btn:hover { background: var(--brand-100); border-color: var(--brand-300, #5eead4); }
.om-bilan-count {
  display: inline-block; min-width: 22px; height: 22px; line-height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--brand-700); color: #fff;
  font-size: 12px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums;
  transition: transform .2s;
}
#header-actions #gs-trigger-btn {
  padding: 0 8px 0 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-700);
}
#header-actions #gs-trigger-btn:hover { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-800); }
#header-actions #gs-trigger-btn .gs-tk {
  font-size: 11px; color: var(--ink-500); background: var(--surface-alt);
  border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px;
}
#header-actions .notif-bell:focus-visible,
#header-actions .om-bilan-btn:focus-visible,
#header-actions #gs-trigger-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
@media (max-width: 768px) {
  /* La règle tactile globale (44 px, !important) s'applique : on aligne les trois.
     Son padding (!important) écrasait l'icône de la cloche à 10 px de large. */
  #header-actions .notif-bell { width: 44px; padding: 0 !important; }
  #header-actions .om-bilan-btn, #header-actions #gs-trigger-btn { padding: 0 10px !important; }
}

/* ── Liste des élèves (06/10/2026) : bouton « Nouvel élève » teal (était violet) ── */
.eleves-action-btn.primary-action { color: var(--brand-800); }
.eleves-action-btn.primary-action:hover { background: var(--brand-50); }
.eleves-action-btn .om-ic { display: block; }
.eleve-card-v2:hover { box-shadow: 0 4px 20px rgba(15,118,110,.10); }

/* ══ Messagerie & Notifications (06/10/2026, étape 4) ══════════════════════
   En-tête teal, onglets, indicateurs cliquables, filtres compacts, historique
   des e-mails en cartes sur téléphone, notifications groupées par jour. */
.msg-page, .nv-page { max-width: 1400px; margin: 0 auto; padding: 20px; }
.nv-page { max-width: 900px; }
.msg-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line, #e5e7eb); overflow-x: auto; scrollbar-width: none; }
.msg-tabs::-webkit-scrollbar { display: none; }
.msg-tab { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 11px 16px; font-size: 14px; font-weight: 500;
  color: var(--ink-500, #64748b); background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.msg-tab:hover { color: var(--ink-900, #0f172a); }
.msg-tab--on { color: var(--brand-800, #115e59); font-weight: 650; border-bottom-color: var(--brand-700, #0f766e); }
.msg-tab:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px 6px 0 0; }
.msg-tab { flex-shrink: 0; }
.msg-tab svg { flex-shrink: 0; }
.msg-page .om-page-header .btn-header, .nv-page .om-page-header .btn-header { white-space: nowrap; }
.eh-act-lib { display: none; }
.msg-contenu { background: #fff; border-radius: 0 0 14px 14px; min-height: 24rem; }

/* Historique des e-mails */
.eh-page { padding: 20px 4px; }
.eh-kpis { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-bottom: 16px; }
button.om-stat-card.eh-kpi { font: inherit; width: 100%; }
.eh-kpi.active { border-color: var(--brand-600, #0d9488); box-shadow: 0 0 0 3px rgba(13,148,136,.18); }
.eh-kpi:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.eh-kpi .om-stat-card-label { display: inline-flex; align-items: center; gap: 5px; }
.eh-kpi-pastille { position: absolute; top: 8px; right: 8px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--brand-700, #0f766e); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.eh-filtres { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.eh-recherche { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 40px; background: #fff;
  border: 1px solid #d1d5db; border-radius: 10px; color: var(--ink-500, #64748b); }
.eh-recherche:focus-within { border-color: var(--brand-600, #0d9488); box-shadow: var(--focus-ring); }
.eh-recherche input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--ink-900, #0f172a); }
.eh-select { height: 40px; padding: 0 10px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; font-size: 14px; color: var(--ink-700, #334155); max-width: 100%; }
.eh-select:focus { outline: none; border-color: var(--brand-600, #0d9488); box-shadow: var(--focus-ring); }
.eh-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  background: var(--brand-50, #f0fdfa); color: var(--brand-800, #115e59); border: 1px solid var(--brand-200, #99f6e4); cursor: pointer; }
.eh-btn--discret { background: #fff; color: var(--ink-500, #64748b); border-color: #e5e7eb; }
.eh-btn:hover { filter: brightness(.97); }
.eh-table th[data-sort] { cursor: pointer; user-select: none; }
.eh-table th.eh-tri-actif { color: var(--brand-800, #115e59); }
.eh-table th.eh-tri-actif::after { content: ' ↓'; }
.eh-table th.eh-tri-actif[aria-sort="ascending"]::after { content: ' ↑'; }
.eh-row { cursor: pointer; border-bottom: 1px solid #f1f5f9; }
.eh-row:hover { background: #f8fafc; }
.eh-row:focus-visible { outline: 2px solid var(--brand-600, #0d9488); outline-offset: -2px; }
.eh-row--recu { background: #f8fbff; }
.eh-row--nonlu { background: var(--brand-50, #f0fdfa); }
.eh-row--nonlu .eh-c-sujet, .eh-row--nonlu .eh-c-contact { font-weight: 700; color: var(--ink-900, #0f172a); }
.eh-row td { padding: 10px 12px; font-size: 13.5px; vertical-align: middle; }
.eh-c-date { white-space: nowrap; color: var(--ink-500, #64748b); }
.eh-c-sujet { color: var(--ink-900, #0f172a); font-weight: 500; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eh-c-contact { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-700, #334155); }
.eh-c-statut { text-align: center; white-space: nowrap; }
.eh-point { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-700, #0f766e); margin-right: 6px; vertical-align: middle; }
.eh-type { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: #f1f5f9; color: var(--ink-700, #334155); font-size: 12.5px; white-space: nowrap; }
.eh-type svg { color: var(--brand-700, #0f766e); flex-shrink: 0; }
.eh-de { color: var(--brand-700, #0f766e); font-weight: 600; }
.eh-prevu { display: block; font-size: 11.5px; color: var(--ink-500, #64748b); margin-top: 2px; }
.eh-repondu { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 11.5px; font-weight: 600; }
.eh-actions { display: flex; justify-content: flex-end; gap: 4px; }
.eh-act { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 9px; border-radius: 8px; border: 1px solid transparent;
  background: none; color: var(--ink-700, #334155); font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.eh-act:hover { background: var(--brand-50, #f0fdfa); color: var(--brand-800, #115e59); }
.eh-act--fait { color: #047857; }
.eh-act--danger:hover { background: #fef2f2; color: #b91c1c; }
.eh-act--icone { padding: 0 8px; color: #94a3b8; }
.eh-act:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.eh-vide td { padding: 40px; text-align: center; color: #94a3b8; font-style: italic; }

@media (max-width: 768px) {
  .msg-page, .nv-page { padding: 12px 0; }
  .eh-page { padding: 12px 0; }
  .eh-select { flex: 1 1 100%; }
  .eh-btn--discret span { display: none; }
  /* Le tableau devient une pile de cartes : plus de colonnes coupées */
  .eh-table-wrap { border: 0; background: none; box-shadow: none; overflow: visible; }
  .eh-table, .eh-table tbody { display: block; width: 100%; }
  .eh-table thead { display: none; }
  .eh-table tr.eh-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "sujet sujet" "contact statut" "date type" "actions actions";
    gap: 4px 10px; padding: 12px 14px; margin-bottom: 8px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; }
  .eh-table tr.eh-row--nonlu { background: var(--brand-50, #f0fdfa); border-color: var(--brand-200, #99f6e4); }
  .eh-table tr.eh-row td { display: block; padding: 0; max-width: none; border: 0; }
  .eh-c-sujet { grid-area: sujet; white-space: normal; font-size: 14.5px; }
  .eh-c-contact { grid-area: contact; font-size: 13px; }
  .eh-c-statut { grid-area: statut; text-align: right; }
  .eh-c-date { grid-area: date; font-size: 12.5px; }
  .eh-c-type { grid-area: type; text-align: right; }
  .eh-c-actions { grid-area: actions; margin-top: 6px; padding-top: 8px !important; border-top: 1px solid #f1f5f9 !important; }
  .eh-actions { justify-content: flex-start; flex-wrap: wrap; }
  .eh-act { min-height: 40px !important; height: auto; padding: 0 10px !important; }
  .eh-act-lib { display: inline; }
  .eh-vide { display: block; }
  /* styles.css impose 12px 16px et une grande police à tous les boutons sur téléphone */
  .msg-tab { padding: 10px 12px !important; font-size: 14px !important; }
  .msg-page .om-page-header-actions, .nv-page .om-page-header-actions { flex-wrap: wrap; justify-content: flex-start; }
  .msg-page .om-page-header .btn-header, .nv-page .om-page-header .btn-header { padding: 0 14px !important; font-size: 14px !important; }
  .eh-c-actions { margin-top: 2px; padding-top: 4px !important; }
  .eh-act, .eh-btn { font-size: 13px !important; }
  .eh-btn { padding: 0 12px !important; }
  button.om-stat-card.eh-kpi { padding: 12px 10px !important; font-size: inherit !important; }
}

/* Notifications */
.nv-filtres { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.nv-chips { display: inline-flex; padding: 3px; background: #f1f5f9; border-radius: 10px; }
.nv-chip { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink-500, #64748b); cursor: pointer; }
.nv-chip--on { background: #fff; color: var(--brand-800, #115e59); box-shadow: 0 1px 2px rgba(15,23,42,.08); }
.nv-chip:focus-visible, .nv-reset:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.nv-select { flex: 1 1 170px; height: 38px; padding: 0 10px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; font-size: 14px; color: var(--ink-700, #334155); }
.nv-select:focus { outline: none; border-color: var(--brand-600, #0d9488); box-shadow: var(--focus-ring); }
.nv-reset { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; color: var(--brand-700, #0f766e); font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px 8px; }
.nv-groupe { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-500, #64748b); margin: 18px 4px 8px; }
.nv-bloc { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.nv-row { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #f1f5f9; cursor: pointer; transition: background .15s; }
.nv-row:last-child { border-bottom: 0; }
.nv-row:hover { background: #f8fafc; }
.nv-row:focus-visible { outline: 2px solid var(--brand-600, #0d9488); outline-offset: -2px; }
.nv-row--nonlu { background: var(--brand-50, #f0fdfa); }
.nv-row--nonlu:hover { background: #e6fbf6; }
.nv-ic { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--brand-50, #f0fdfa); color: var(--brand-700, #0f766e); border: 1px solid var(--brand-100, #ccfbf1); }
.nv-ic--alerte { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.nv-txt { flex: 1; min-width: 0; }
.nv-ligne1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.nv-point { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-700, #0f766e); flex-shrink: 0; }
.nv-titre { font-size: 14px; font-weight: 600; color: var(--ink-900, #0f172a); }
.nv-row--nonlu .nv-titre { font-weight: 700; }
.nv-type { font-size: 11px; font-weight: 600; color: var(--ink-500, #64748b); background: #f1f5f9; padding: 2px 8px; border-radius: 999px; }
.nv-corps { font-size: 13px; color: var(--ink-700, #334155); margin-bottom: 2px; overflow-wrap: anywhere; }
.nv-quand { font-size: 12px; color: #64748b; }
.nv-vide { padding: 56px 20px; text-align: center; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; color: var(--ink-500, #64748b); }
.nv-vide-ic { display: inline-flex; width: 56px; height: 56px; border-radius: 16px; align-items: center; justify-content: center; margin-bottom: 10px;
  background: var(--brand-50, #f0fdfa); color: var(--brand-700, #0f766e); }
@media (max-width: 768px) {
  .nv-chip { min-height: 40px !important; padding: 0 12px !important; font-size: 13.5px !important; }
  .nv-reset { padding: 0 8px !important; font-size: 13.5px !important; }
  .nv-filtres .nv-chips { flex: 1 1 100%; }
  .nv-chips .nv-chip { flex: 1; }
  .nv-row { padding: 12px; }
}

/* ── Fiche élève : annuaire officiel dans la liste des établissements (06/10/2026) ── */
.om-suggest > .fe-annu-zone { cursor: default; padding: 8px 0 0; margin-top: 6px; border-top: 1px solid #e5e7eb !important; border-radius: 0; background: none !important; box-shadow: none !important; transform: none !important; }
.om-suggest > .fe-annu-zone:first-child { margin-top: 0; padding-top: 2px; border-top: 0 !important; }
.fe-annu-titre { padding: 2px 12px 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-800, #115e59); }
.fe-annu-attente { font-weight: 500; text-transform: none; letter-spacing: 0; color: #94a3b8; }
.fe-annu-item { padding: 8px 12px; border-radius: 9px; cursor: pointer; }
.fe-annu-item:hover { background: var(--brand-50, #f0fdfa); box-shadow: inset 3px 0 0 var(--brand-600, #0d9488); }
.fe-annu-item--encours { opacity: .55; pointer-events: none; }
.fe-annu-nom { font-weight: 600; font-size: 14px; color: var(--ink-900, #0f172a); }
.fe-annu-nom::before { content: '+ '; color: var(--brand-700, #0f766e); font-weight: 700; }
.fe-annu-lieu { font-size: 12px; color: #64748b; margin-top: 1px; }
.fe-annu-vide { padding: 4px 12px 8px; font-size: 12.5px; color: #94a3b8; }
.eh-portee { margin: 10px 4px 0; font-size: 12.5px; color: #64748b; text-align: center; }

/* ── Envoyer le planning (un élève / une famille) — 06/10/2026 ──
   Reprend planning-envoi.css (préfixe bp-) ; ici, seulement ce qui diffère. */
.bp.pi { max-width: 640px; height: auto; max-height: min(92vh, 860px); }
.pi-corps { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; background: #f8fafc; }
.pi-chip, .pi-int { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.pi-chip input, .pi-int input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pi-chip small { font-weight: 500; opacity: .8; }
.pi-chip:has(input:checked), .pi-chip:has(input:checked):hover { background: #0f766e; border-color: #0f766e; color: #fff; }
.pi-int:has(input:checked) { background: #fff; color: #0f766e; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.pi-int { justify-content: center; }
.pi-chip:has(input:focus-visible), .pi-int:has(input:focus-visible) { box-shadow: var(--focus-ring); }
#dates-personnalisees.hidden { display: none; }
.pi-cours { font-size: 14px; }
.pi-cours-tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; margin-bottom: 6px; }
.pi-cours-tete span { color: #0f766e; font-weight: 600; font-size: 13px; }
.pi-cours-l { list-style: none; margin: 0; padding: 0; }
.pi-cours-l li { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 6px 0; border-bottom: 1px solid #f1f5f9; }
.pi-cours-l li:last-child { border-bottom: 0; }
.pi-j { min-width: 92px; color: #475569; }
.pi-h { font-weight: 700; color: #0f172a; }
.pi-t { color: #64748b; }
.pi-e { margin-left: auto; color: #115e59; font-size: 12.5px; }
.pi-plus { margin-top: 6px; font-size: 12.5px; color: #64748b; }
.pi-vide { padding: 14px 0; text-align: center; color: #64748b; }
.pi-vide small { display: block; margin-top: 2px; font-size: 12px; color: #94a3b8; }
.pi-cc { display: flex; align-items: flex-start; gap: 10px; padding: 8px 2px; cursor: pointer; font-size: 14px; }
.pi-cc input { margin-top: 3px; accent-color: #0f766e; }
.pi-cc small { display: block; color: #64748b; font-size: 12.5px; }
.pi-cc-liste { display: flex; flex-direction: column; }
.pi-pied { flex-shrink: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid #e5e7eb; background: #fff; }
.pi-pj { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #64748b; }
.pi-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
@media (max-width: 768px) {
  .bp.pi { max-height: 100dvh; border-radius: 14px; }
  .pi-actions { width: 100%; }
  .pi-actions .bp-btn { flex: 1 1 auto; }
  .pi-chip, .bp-chip.pi-chip { min-height: 38px !important; padding: 6px 12px !important; font-size: 13px !important; }
}

/* Fenêtre d'envoi d'e-mail (unified-email-modal.js) — icônes de la charte, 06/10/2026 */
#unified-email-modal .om-modal-title .uem-titre-ic, .uem-titre-ic { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: var(--brand-50, #f0fdfa); color: var(--brand-700, #0f766e); }
#uem-send-icon { display: inline-flex; }
.uem-format-btn svg { display: block; }

/* Configuration › Facturation : numérotation des factures (06/10/2026) */
.cfg-num-fact { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 14px; }
.cfg-num-bloc { border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 14px; background: #fff; }
.cfg-num-titre { font-size: 13px; font-weight: 700; color: #134e4a; margin-bottom: 8px; }
.cfg-num-champs { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.cfg-num-champs label span { display: block; font-size: 11.5px; font-weight: 600; color: #64748b; margin-bottom: 3px; }
.cfg-num-champs input { width: 100%; box-sizing: border-box; font-weight: 700; letter-spacing: .02em; }
.cfg-num-champs input[readonly] { background: #f8fafc; color: #475569; cursor: not-allowed; }
.cfg-num-etat { margin-top: 8px; font-size: 12.5px; color: #64748b; line-height: 1.45; }
.cfg-num-etat--ok { color: #047857; }
.cfg-num-etat--ko { color: #b91c1c; }
.cfg-num-etat--verrou { color: #475569; }
.cfg-num-aide { margin: 10px 2px 0; font-size: 12.5px; color: #64748b; line-height: 1.5; }

/* Configuration : textes d'e-mails modifiables — « texte d'origine / personnalisé » (07/10/2026) */
.cfg-txt-tete { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 4px; }
.cfg-txt-tete label { margin: 0; }
.cfg-txt-etat { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: #f1f5f9; color: #64748b; }
.cfg-txt--perso .cfg-txt-etat { background: var(--brand-50, #f0fdfa); color: var(--brand-700, #0f766e); }
.cfg-txt-reset { display: none; margin-left: auto; background: none !important; border: 0 !important; padding: 0 !important; min-height: 0 !important; font-size: 12px !important; font-weight: 600; color: var(--brand-700, #0f766e); text-decoration: underline; cursor: pointer; }
.cfg-txt--perso .cfg-txt-reset { display: inline; }
.cfg-txt-reset:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
/* Onglet E-mails : un bloc repliable par cas */
.cfg-cas-groupe { margin: 22px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-800, #115e59); }
.cfg-cas { border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; margin-bottom: 8px; }
.cfg-cas[open] { border-color: var(--brand-200, #99f6e4); }
.cfg-cas summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; font-weight: 600; color: #1f2937; }
.cfg-cas summary::-webkit-details-marker { display: none; }
.cfg-cas summary::before { content: ''; width: 7px; height: 7px; border-right: 2px solid #64748b; border-bottom: 2px solid #64748b; transform: rotate(-45deg); transition: transform .15s; flex: none; }
.cfg-cas[open] summary::before { transform: rotate(45deg); }
.cfg-cas summary:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 12px; }
.cfg-cas-titre { flex: 1; }
.cfg-cas-etat { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: #f1f5f9; color: #64748b; white-space: nowrap; }
.cfg-cas--perso .cfg-cas-etat { background: var(--brand-50, #f0fdfa); color: var(--brand-700, #0f766e); }
.cfg-cas-corps { padding: 0 14px 14px; display: grid; gap: 12px; }
.cfg-cas-aide { font-size: 12.5px; color: #64748b; line-height: 1.5; margin: 0 0 8px; }
.cfg-cas-corps .cfg-cas-aide { margin: 0; }
.cfg-cas-aide code, .cfg-cas-vars code { font-size: 11.5px; background: #f1f5f9; padding: 0 4px; border-radius: 4px; }
.cfg-cas-vars { font-size: 12px; color: #94a3b8; margin: 0; line-height: 1.9; }
.cfg-cas-aide a, .cfg-renvoi a { color: var(--brand-700, #0f766e); text-decoration: underline; font-weight: 600; }
.cfg-renvoi { font-size: 13px; color: #64748b; margin: 12px 0 0; }
.cfg-sig-apercu { padding: 12px; background: #f8fafc; border-radius: 10px; font-size: 13px; color: #475569; white-space: pre-line; }

/* Configuration : pastille « à faire » sur les onglets (07/10/2026) */
.cfg-tab-pastille { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; margin-left: 6px; vertical-align: middle; box-shadow: 0 0 0 2px #fff; }

/* ═══ Configuration : visuel unifié (07/10/2026) — même langage que Messagerie / Notifications ═══ */
.cfg-page { max-width: 1200px; margin: 0 auto; padding-bottom: 50px; }
.cfg-tabs { margin: 6px 0 20px; }
.cfg-tabs .msg-tab { background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; }
.cfg-page .card { border: 1px solid #e5e7eb; border-radius: 14px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); background: #fff; }
.cfg-card-titre { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--ink-900, #0f172a); }
.cfg-card-titre .cfg-ic { flex: none; width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-50, #f0fdfa); color: var(--brand-700, #0f766e); border: 1px solid var(--brand-100, #ccfbf1); }
.cfg-card-titre + p { padding-left: 42px; }
.cfg-page .field > label, .cfg-page .field > div > label, .cfg-page .cfg-txt-tete label, .cfg-num-champs label span {
  text-transform: none !important; letter-spacing: 0; font-size: 12.5px; font-weight: 600; color: #475569; }
.cfg-page h4.uppercase { color: var(--brand-800, #115e59); letter-spacing: .04em; }
.cfg-page .input:focus, .cfg-page textarea:focus, .cfg-page select:focus { outline: none; border-color: var(--brand-600, #0d9488); box-shadow: var(--focus-ring); }
.cfg-page input[type="checkbox"], .cfg-page input[type="radio"] { accent-color: var(--brand-700, #0f766e); }
.cfg-info { background: var(--brand-50, #f0fdfa); border: 1px solid var(--brand-200, #99f6e4); border-radius: 10px; padding: 12px 14px; color: #134e4a; font-size: 13px; line-height: 1.5; }
.cfg-info a { color: var(--brand-700, #0f766e); font-weight: 600; }
@media (max-width: 640px) {
  .cfg-card-titre + p { padding-left: 0; }
  .cfg-page .card { padding: 16px !important; }
}
.cfg-ident { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.cfg-ident > .flex-grow { width: 100%; }
@media (min-width: 768px) { .cfg-ident { flex-direction: row; } .cfg-ident > .flex-grow { flex: 1; width: auto; } }
.cfg-tabs .msg-tab { padding: 11px 13px; }
/* Mon compte : appareils et 2FA au visuel des Notifications (07/10/2026) */
.dv-row { cursor: default; align-items: center; }
.dv-row:hover { background: #fff; }
.dv-row.nv-row--nonlu:hover { background: var(--brand-50, #f0fdfa); }
.dv-badge-actuel { background: var(--brand-100, #ccfbf1); color: var(--brand-800, #115e59); }
.dv-actions { display: flex; gap: 6px; flex-shrink: 0; }
.dv-actions .btn { padding: 5px 12px !important; min-height: 0 !important; font-size: 13px !important; }
.dv-plus { margin-top: 8px; }
.dv-plus summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--brand-700, #0f766e); padding: 6px 2px; }
.dv-plus summary:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }
.dv-plus .nv-bloc { margin-top: 6px; }
.mfa-etat { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.mfa-etat--on { background: #ecfdf5; color: #047857; }
.mfa-etat--off { background: #fffbeb; color: #b45309; }
.cfg-page .om-page-header .btn-header { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 640px) { .dv-row { flex-wrap: wrap; } .dv-actions { width: 100%; justify-content: flex-end; } }

/* ═══ Listes de diffusion (07/10/2026) — même langage que Notifications / Configuration ═══ */
.dl-page { padding: 18px 20px 24px; }
.dl-sec { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 700; color: var(--ink-900, #0f172a); }
.dl-sec svg { color: var(--brand-700, #0f766e); }
.dl-sec span { font-size: 12px; font-weight: 500; color: #94a3b8; }
.dl-sec-aide { display: block; font-size: 13px; color: #64748b; margin: 3px 0 0; }
.dl-separe { margin-top: 22px; padding-top: 18px; border-top: 1px solid #f1f5f9; }
.dl-grille { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); margin-top: 12px; }
.dl-listes { display: grid; gap: 10px; }
.dl-carte { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.dl-carte:hover { border-color: var(--brand-200, #99f6e4); box-shadow: 0 1px 3px rgba(15, 23, 42, .06); }
.dl-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-50, #f0fdfa); color: var(--brand-700, #0f766e); border: 1px solid var(--brand-100, #ccfbf1); }
.dl-txt { flex: 1; min-width: 0; }
.dl-nom { font-size: 14px; font-weight: 600; color: var(--ink-900, #0f172a); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-desc { font-size: 12.5px; color: #64748b; margin-top: 1px; }
.dl-nb { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px; font-size: 12px; color: #64748b; }
.dl-nb span { display: inline-flex; align-items: center; gap: 4px; }
.dl-nb svg { color: #94a3b8; }
.dl-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.dl-btn { display: inline-flex !important; align-items: center; gap: 6px; padding: 6px 12px !important; min-height: 0 !important; font-size: 13px !important; white-space: nowrap; }
.dl-btn:disabled { opacity: .5; cursor: not-allowed; }
.dl-ic-btn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 8px; background: none; color: #64748b; cursor: pointer; padding: 0 !important; min-height: 0 !important; }
.dl-ic-btn:hover { background: #f1f5f9; color: var(--ink-900, #0f172a); }
.dl-ic-btn--danger:hover { background: #fef2f2; color: #b91c1c; }
.dl-ic-btn:focus-visible, .dl-lien:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.dl-sous-titre { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-900, #0f172a); }
.dl-sous-titre svg { color: var(--brand-700, #0f766e); }
.dl-sous-titre span { font-weight: 400; color: #94a3b8; }
.dl-lien { border: 0; background: none; padding: 3px 8px !important; min-height: 0 !important; font-size: 12.5px !important; font-weight: 600; color: var(--brand-700, #0f766e); border-radius: 6px; cursor: pointer; }
.dl-lien:hover { background: var(--brand-50, #f0fdfa); }
.dl-lien--gris { color: #64748b; }
.dl-lien--gris:hover { background: #f1f5f9; }
.dl-voir { font-size: 12.5px; font-weight: 600; color: var(--brand-700, #0f766e); cursor: pointer; user-select: none; }
.dl-coche-on { background: var(--brand-50, #f0fdfa); border-color: var(--brand-200, #99f6e4); }
@media (max-width: 640px) {
  .dl-page { padding: 14px 12px 20px; }
  .dl-carte--liste { flex-wrap: wrap; }
  .dl-carte--liste .dl-actions { width: 100%; justify-content: flex-end; }
  .dl-grille { grid-template-columns: 1fr; }
}

/* ═══ Messagerie : messages des élèves / parents et conversations (07/10/2026) ═══ */
.mx-liste { padding: 16px; }
.mx-apercu { white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: #475569; }
.mx-nouveau { background: var(--brand-100, #ccfbf1); color: var(--brand-800, #115e59); }
.mx-alerte { background: #fffbeb; color: #b45309; }
.mx-fond { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: flex; align-items: center; justify-content: center; z-index: calc(var(--z-overlay) + 10); padding: 16px; }
.mx-boite { width: 100%; max-width: 680px; max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; }
.mx-corps { padding: 16px 20px; overflow-y: auto; flex: 1; min-height: 0; }
.mx-bulle { border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; margin-top: 10px; background: #f8fafc; margin-right: 32px; }
.mx-bulle--prof { background: var(--brand-50, #f0fdfa); border-color: var(--brand-200, #99f6e4); margin-right: 0; margin-left: 32px; }
.mx-bulle-qui { font-size: 12px; font-weight: 600; color: #64748b; margin-bottom: 4px; }
.mx-bulle--prof .mx-bulle-qui { color: var(--brand-800, #115e59); }
.mx-bulle-txt { font-size: 14px; color: var(--ink-900, #0f172a); white-space: pre-wrap; overflow-wrap: anywhere; }
.mx-pj { display: inline-flex; align-items: center; gap: 5px; background: var(--brand-50, #f0fdfa); color: var(--brand-700, #0f766e); border: 1px solid var(--brand-200, #99f6e4); border-radius: 8px; padding: 3px 10px; font-size: 12px; font-weight: 600; cursor: pointer; margin: 4px 6px 0 0; }
.mx-pj:hover { background: var(--brand-100, #ccfbf1); }
.mx-pj:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.mx-repondre { margin-top: 16px; border-top: 1px solid #eef2f7; padding-top: 12px; }
.mx-repondre-titre { display: block; font-size: 13px; font-weight: 600; color: var(--brand-800, #115e59); margin-bottom: 6px; }
.mx-repondre-pied { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 640px) { .mx-bulle { margin-right: 12px; } .mx-bulle--prof { margin-left: 12px; } .mx-liste { padding: 10px; } }

/* ── Bulletins du trimestre (bulletins-trimestre.js, 07/10/2026) ─────────── */
.bt-bandeau { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: linear-gradient(135deg, var(--brand-800, #115e59), var(--brand-600, #0d9488)); color: #fff; border-radius: 14px; padding: 14px 18px; margin-bottom: 14px; }
.bt-ic { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.15); flex: none; }
.bt-txt { flex: 1; min-width: 200px; }
.bt-titre { font-weight: 700; font-size: 15px; }
.bt-sous { font-size: 12.5px; opacity: .88; margin-top: 2px; line-height: 1.45; }
.bt-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bt-btn { background: #fff; color: var(--brand-800, #115e59); border: none; border-radius: 10px; padding: 9px 16px; font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.bt-btn:hover { background: var(--brand-50, #f0fdfa); }
.bt-btn:focus-visible, .bt-plus-tard:focus-visible { outline: none; box-shadow: var(--focus-ring, 0 0 0 3px rgba(13,148,136,.35)); }
.bt-plus-tard { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 10px; padding: 8px 14px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.bt-plus-tard:hover { background: rgba(255,255,255,.12); }
.bt-liste-corps { overflow-y: auto; max-height: 60vh; }
.bt-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 20px; border-bottom: 1px solid #f1f5f9; }
.bt-ligne:last-child { border-bottom: 0; }
.bt-nom { font-weight: 600; color: var(--gray-800, #1f2937); font-size: 14px; }
@media (max-width: 600px) { .bt-actions { width: 100%; } .bt-actions .bt-btn { flex: 1; } }
.bt-compte { font-size: 11.5px; color: var(--gray-500, #6b7280); margin-top: 1px; }
.bt-liste-sous { font-size: 12.5px; color: var(--gray-500, #6b7280); margin-top: 2px; font-weight: 400; }

/* ── Factures (étape 5, 07/10/2026) ──────────────────────────────────────── */
.fx-header { margin-bottom: 18px; }
.fx-header-top { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; position: relative; z-index: 2; }
.fx-titre-zone { min-width: 0; }
.fx-prochains { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; font-size: 12.5px; color: rgba(255,255,255,.85); }
.fx-prochains span { display: inline-flex; align-items: center; gap: 5px; }
.fx-prochains code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); border-radius: 6px; padding: 1px 7px; color: #fff; }
.fx-mois { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fx-nav { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.fx-nav:hover { background: rgba(255,255,255,.22); }
.fx-nav:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.45); }
.fx-mois-select { display: inline-flex; align-items: center; gap: 4px; font-size: 1.05rem; }
.fx-etat { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); color: #fff; white-space: nowrap; }
.fx-etat--clos { background: rgba(254,226,226,.2); border-color: rgba(254,202,202,.5); }
.fx-header .factures-action-btn .om-ic { opacity: .9; }
.factures-actions-item .om-ic { color: var(--gray-500, #6b7280); flex-shrink: 0; }
.factures-actions-item.danger .om-ic { color: #b91c1c; }

.fx-page .om-stat-blue { --om-stat-accent: var(--brand-700, #0f766e); }
.fx-page .om-stat-blue .om-stat-card-value { color: var(--brand-800, #115e59); }
.fx-page .om-stat-card-value { white-space: nowrap; }

.fx-outils { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 4px 0 10px; }
.fx-recherche { flex: 1 1 280px; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--gray-200, #e5e7eb); border-radius: 10px; padding: 0 10px 0 12px; height: 42px; color: var(--gray-400, #9ca3af); cursor: text; }
.fx-recherche:focus-within { border-color: var(--brand-400, #2dd4bf); box-shadow: var(--focus-ring, 0 0 0 3px rgba(13,148,136,.2)); }
.fx-recherche input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--gray-800, #1f2937); height: 100%; }
.fx-recherche-x { border: 0; background: none; color: var(--gray-400, #9ca3af); font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 4px; }
.fx-recherche-x:hover { color: var(--gray-700, #374151); }
.fx-outils .btn { height: 42px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.fx-compte { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand-600, #0d9488); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 18px; text-align: center; }
.fx-filtres { margin-bottom: 12px; }
.fx-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--brand-800, #115e59); background: var(--brand-50, #f0fdfa); border: 1px solid var(--brand-200, #99f6e4); border-radius: 10px; padding: 9px 12px; margin-bottom: 12px; }
.fx-note .om-ic { flex-shrink: 0; margin-top: 1px; }

.fx-table-wrap { overflow-x: auto; }
.fx-table { min-width: 760px; }
.fx-table td, .fx-table th { vertical-align: middle; }
.fx-table td.p-4 { padding: 10px 8px; }
.fx-table th { padding-left: 8px; padding-right: 8px; }
.fx-table tr > :first-child { padding-left: 10px; padding-right: 2px; width: 34px; }
.fx-date { font-size: 13px; }
.fx-table th.sort-header { white-space: nowrap; cursor: pointer; }
.fx-numero { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 650; color: var(--gray-700, #374151); font-size: 12px; white-space: nowrap; margin-bottom: 3px; }
.fx-date { white-space: nowrap; color: var(--gray-600, #4b5563); }
.fx-client { min-width: 140px; max-width: 190px; }
.fx-client-nom { font-weight: 600; color: var(--gray-900, #111827); display: flex; align-items: center; gap: 5px; }
.fx-client-mail { font-size: 12px; color: var(--gray-500, #6b7280); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 175px; }
.fx-urssaf-actif { display: inline-flex; color: var(--brand-700, #0f766e); }
.fx-type { display: inline-block; font-size: 11px; font-weight: 600; color: var(--gray-500, #6b7280); background: var(--gray-50, #f9fafb); border: 1px solid var(--gray-200, #e5e7eb); border-radius: 5px; padding: 0 6px; white-space: nowrap; }
.fx-montant { text-align: right; font-weight: 700; white-space: nowrap; }
.fx-statut { max-width: 118px; }
.fx-statut > span { margin: 2px 2px 2px 0; white-space: nowrap; }
.fx-actions { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: nowrap; }
.fx-act { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; cursor: pointer; transition: background .15s; }
.fx-act:hover { background: var(--gray-100, #f3f4f6); }
.fx-act:focus-visible { outline: none; box-shadow: var(--focus-ring, 0 0 0 3px rgba(13,148,136,.25)); }
.fx-vide { padding: 40px 16px; text-align: center; color: var(--gray-400, #9ca3af); font-style: italic; }
.fx-sel-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 13.5px; color: #fff; background: none; border: 0; cursor: pointer; padding: 4px 2px; }
.fx-sel-btn:hover { color: var(--brand-200, #99f6e4); }
.fx-sel-btn--danger { color: #fca5a5; }
.fx-sel-btn--danger:hover { color: #fecaca; }
@media (max-width: 760px) {
  .fx-header-top { align-items: flex-start; }
  .fx-mois { width: 100%; }
  .fx-outils .btn { flex: 1 1 auto; justify-content: center; }
}
.fx-modal-tete { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fx-modal-ic { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: var(--brand-50, #f0fdfa); color: var(--brand-700, #0f766e); flex-shrink: 0; }
.om-modal-footer .btn { min-width: 96px; justify-content: center; }
.fx-ligne-on { background: var(--brand-50, #f0fdfa); }
.fx-spin { width: 18px; height: 18px; border: 2.5px solid var(--brand-100, #ccfbf1); border-top-color: var(--brand-600, #0d9488); border-radius: 50%; animation: fx-tourne .8s linear infinite; flex-shrink: 0; }
@keyframes fx-tourne { to { transform: rotate(360deg); } }

/* ── Confirmations des familles (confirmations-familles.js, 07/10/2026) ───── */
.cf-pas { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 650; padding: 1px 8px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.cf-pas--ok { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.cf-pas--attente { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.cf-pas--ko { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.cf-pas--aucun { background: #f8fafc; color: #64748b; border-color: #e2e8f0; }
.cf-ligne { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; flex-wrap: wrap; }
.cf-ligne-nom { font-weight: 600; color: var(--gray-800, #1f2937); }
.cf-ligne-droite { display: inline-flex; align-items: center; gap: 6px; }
.cf-btn { border: 1px solid var(--brand-200, #99f6e4); background: #fff; color: var(--brand-800, #115e59); border-radius: 8px; padding: 2px 9px; font-size: 12px; font-weight: 650; cursor: pointer; }
.cf-btn:hover { background: var(--brand-50, #f0fdfa); }
.cf-btn--lien { border: 0; background: none; color: var(--gray-500, #6b7280); text-decoration: underline; padding: 2px 4px; }
.it-chip .cf-pas { margin-left: 2px; }
.stg-cf { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; flex-wrap: wrap; }
/* Fenêtre « Paiements » d'une facture (invoices.js, 07/10/2026) */
.fx-pay-resume { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 12px 14px; border: 1px solid var(--brand-100, #ccfbf1); background: var(--brand-50, #f0fdfa); border-radius: 12px; }
.fx-pay-k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #64748b; }
.fx-pay-v { font-weight: 600; color: #0f172a; overflow-wrap: anywhere; }
.fx-pay-ok { color: #15803d; } .fx-pay-du { color: #b91c1c; }
.fx-pay-sec { margin: 16px 0 8px; font-weight: 700; color: #334155; font-size: 14px; }
.fx-pay-liste { display: flex; flex-direction: column; gap: 6px; }
.fx-pay-ligne { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
.fx-pay-ligne-txt { flex: 1; min-width: 0; }
.fx-pay-ligne-titre { font-weight: 600; color: #1e293b; font-size: 14px; }
.fx-pay-ligne-sous { font-size: 12px; color: #64748b; overflow-wrap: anywhere; }
.fx-pay-montant { font-weight: 700; color: #15803d; background: #f0fdf4; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.fx-pay-montant--neg { color: #b45309; background: #fffbeb; }
.fx-pay-vide { padding: 14px; text-align: center; color: #94a3b8; font-style: italic; background: #f8fafc; border-radius: 10px; }
.fx-pay-info { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: #f8fafc; color: #475569; font-size: 13px; }
.fx-pay-form { margin-top: 16px; padding: 14px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; display: flex; flex-direction: column; gap: 10px; }
.fx-pay-form-titre { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand-700, #0f766e); }
.fx-pay-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .fx-pay-resume { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fx-pay-grille { grid-template-columns: 1fr; } }
/* Sélecteur de période des Factures (07/10/2026) */
.fx-portee { position: relative; display: inline-flex; }
.fx-portee-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; width: min(440px, calc(100vw - 32px)); background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 12px 32px rgba(15, 23, 42, .14); padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.fx-portee-pop[hidden] { display: none; }
.fx-portee-titre { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #64748b; margin: 2px 4px 4px; }
.fx-portee-opt { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 10px; cursor: pointer; font-size: 14px; color: #1e293b; }
.fx-portee-opt input[type="radio"] { accent-color: var(--brand-600, #0d9488); }
.fx-portee-opt .input { width: auto; min-width: 0; padding: 5px 8px; font-size: 13px; }
.fx-portee-opt--on { border-color: var(--brand-300, #5eead4); background: var(--brand-50, #f0fdfa); }
.fx-portee-pied { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
/* ── Page Règlements (reglements.js, refonte 07/10/2026) ───────────────── */
.rg-header-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rg-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rg-header-actions .btn-header { display: inline-flex; align-items: center; gap: 6px; }
.rg-periode { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.rg-periode-lib { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.92); }
.rg-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); }
.rg-seg .stats-seg-btn { border: 0; background: transparent; color: #fff; font-weight: 600; font-size: 13px; padding: 5px 12px; border-radius: 8px; cursor: pointer; }
.rg-seg .stats-seg-btn.active { background: #fff; color: var(--brand-700, #0f766e); font-weight: 700; }
.rg-periode-champ { border: 0; background: #fff; color: #1e293b; font-weight: 600; font-size: 13px; padding: 6px 10px; border-radius: 10px; }
.rg-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.rg-stats .om-stat-card-label { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.rg-stat-affecter .om-stat-card-value { color: #b45309; }
.rg-affecter { margin: 14px 0; padding: 12px 16px; border: 1px solid #fde68a; border-left: 4px solid #f59e0b; border-radius: 12px; background: #fffbeb; color: #78350f; }
.rg-affecter-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.rg-affecter-tete strong { display: inline-flex; align-items: center; gap: 6px; color: #92400e; }
.rg-affecter-tete .btn { display: inline-flex; align-items: center; gap: 6px; }
.rg-affecter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.rg-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 12px; border: 1px solid #fcd34d; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: 13px; cursor: pointer; }
.rg-chip:hover { background: #fde68a; }
.rg-chip-n { opacity: .7; }
.rg-recherche { max-width: 360px; }
.rg-table td { vertical-align: middle; }
.rg-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: #eff6ff; color: #1d4ed8; white-space: nowrap; }
.rg-badge--sap { background: #f0fdf4; color: #15803d; }
.rg-badge--affecter { background: #fef3c7; color: #92400e; }
.rg-vide { color: #94a3b8; font-size: 13px; }
.rg-lien { color: var(--brand-700, #0f766e); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.rg-lien:hover { text-decoration: underline; }
.rg-sous { font-size: 12px; color: #64748b; }
.rg-montant { text-align: right; font-weight: 700; color: #15803d; white-space: nowrap; }
.rg-montant--neg { color: #b45309; }
.rg-mode { display: inline-flex; align-items: center; gap: 6px; color: #334155; }
.rg-actions { display: flex; align-items: center; justify-content: center; gap: 4px; }
.rg-btn-affecter { padding: 4px 10px; font-size: 13px; }
.rg-ligne-affecter { background: #fffbeb; box-shadow: inset 3px 0 0 #f59e0b; }
.rg-client { position: relative; }
.rg-client-choisi { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--brand-100, #ccfbf1); background: var(--brand-50, #f0fdfa); border-radius: 10px; }
.rg-client-choisi strong { flex: 1; color: #134e4a; }
.rg-client-ic { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; background: #fff; color: var(--brand-700, #0f766e); }
.rg-sugg { padding: 10px 12px; cursor: pointer; border-bottom: 1px solid #f1f5f9; }
.rg-sugg:hover { background: var(--brand-50, #f0fdfa); }
.rg-form { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
/* Modale « Nouveau règlement » (23/10/2026) : dans .field (flex en colonne), le
   flex-basis 280px de .fx-recherche devenait une HAUTEUR → champ géant ; et .hidden
   (Tailwind, chargé avant) perdait face aux display:flex ci-dessus → bandeau client
   vide, formulaire et bouton visibles avant tout choix. Bascule par classe en JS. */
.rg-client .fx-recherche { flex: none; }
.rg-client .om-suggest { position: static; margin-top: 6px; } /* dans le flux : la modale grandit au lieu de rogner la liste */
.rg-client .fx-recherche.hidden, .rg-client-choisi.hidden, .rg-form.hidden, .rg-modal .btn.hidden { display: none; }
.rg-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.om-modal-body > .rg-grille + .field, .om-modal-body > .field + .rg-grille { margin-top: 12px; }
.rg-montant-champ { font-weight: 700; color: var(--brand-700, #0f766e); }
.rg-anticipe { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid #fde68a; background: #fffbeb; border-radius: 10px; color: #78350f; font-size: 14px; }
.rg-anticipe--actif { cursor: pointer; }
.rg-anticipe input { margin-top: 3px; accent-color: var(--brand-600, #0d9488); }
.rg-anticipe .rg-sous { display: block; color: #92400e; }
.rg-ventil { margin-top: 10px; padding: 12px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; display: flex; flex-direction: column; gap: 8px; }
.rg-ventil--defile { max-height: 380px; overflow-y: auto; }
.rg-ventil-titre { font-weight: 700; color: #334155; }
.rg-ventil-ligne { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; }
.rg-ventil-num { font-weight: 600; color: #1e293b; font-size: 14px; }
.rg-ventil-champ { width: 130px; flex-shrink: 0; }
.rg-recap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: #f1f5f9; }
.rg-recap--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rg-txt-affecter { color: #b45309; }
@media (max-width: 560px) { .rg-grille, .rg-recap--3 { grid-template-columns: 1fr; } .rg-ventil-ligne { flex-wrap: wrap; } .rg-ventil-champ { width: 100%; } }

.rg-stats .om-stat-card { --om-stat-accent: var(--brand-300, #5eead4); }
.rg-stats .om-stat-card-value { white-space: nowrap; font-size: 24px; color: #0f172a; }
.rg-stats .om-stat-green { --om-stat-accent: #16a34a; }
.rg-stats .om-stat-green .om-stat-card-value { color: #15803d; }
.rg-stats .rg-stat-affecter { --om-stat-accent: #f59e0b; }
.rg-stats .rg-stat-affecter .om-stat-card-value { color: #b45309; }
.rg-page .om-filter-bar .rg-recherche { flex: 1 1 240px; }
.rg-details { max-width: 120px; }
.rg-tronque { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #475569; }
.rg-table .rg-sous .rg-badge { margin-right: 4px; font-size: 11px; padding: 1px 6px; }
.rg-table td:first-child { white-space: nowrap; }
.rg-table th, .rg-table td { padding-left: 10px; padding-right: 10px; }
.rg-table td:nth-child(2) { min-width: 125px; }
.rg-actions .fx-act { padding: 5px; }
.rg-table td:first-child strong { font-weight: 600; }
.rg-plus { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 14px 0 28px; }
.rg-periode-dates { display: inline-flex; align-items: center; gap: 8px; }
.rg-cloture { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid #fde68a; border-left: 4px solid #f59e0b; border-radius: 10px; background: #fffbeb; color: #78350f; font-size: 14px; }
.rg-cloture > svg { flex-shrink: 0; margin-top: 2px; }
.rg-cloture-att { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: #92400e; }
.rg-tuile { font: inherit; text-align: center; cursor: pointer; width: 100%; }
.rg-tuile:hover { transform: translateY(-1px); }
.rg-tuile--on { outline: 2px solid var(--brand-500, #14b8a6); outline-offset: -2px; }
.rg-col-case { width: 34px; text-align: center; }
.rg-col-case input { width: 16px; height: 16px; accent-color: var(--brand-600, #0d9488); cursor: pointer; }
.rg-ligne-sel { background: var(--brand-50, #f0fdfa); }
.rg-selbar { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 18px; padding: 10px 20px; border-radius: 999px; background: #1f2937; color: #fff; box-shadow: 0 12px 32px rgba(15, 23, 42, .3); font-size: 14px; }
.rg-selbar[hidden] { display: none; }
.rg-selbar-n { padding-right: 16px; border-right: 1px solid #4b5563; }

/* ── Page Devis (devis-view.js, refonte 07/10/2026) ───────────────────── */
.dv-stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.dv-tuile--on { outline: 2px solid var(--brand-500, #14b8a6); outline-offset: -2px; background: var(--brand-50, #f0fdfa); }
.dv-tuile--attente { --om-stat-accent: #0ea5e9; }
.dv-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding: 4px 0 28px; }
.dv-vide { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 16px; color: #64748b; text-align: center; }
.dv-carte { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 1px 2px rgba(15,23,42,.04); min-width: 0; }
.dv-carte:hover { box-shadow: 0 6px 18px rgba(15,23,42,.08); }
.dv-carte--brouillon { border-left: 4px solid #cbd5e1; }
.dv-carte--valide, .dv-carte--envoye { border-left: 4px solid var(--brand-400, #2dd4bf); }
.dv-carte--signe { border-left: 4px solid #16a34a; }
.dv-carte--refuse { border-left: 4px solid #ef4444; }
.dv-carte--expire { border-left: 4px solid #f59e0b; }
.dv-carte-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.dv-carte-titre { min-width: 0; }
.dv-num { font-weight: 700; font-size: 16px; color: #0f172a; overflow-wrap: anywhere; }
.dv-carte--brouillon .dv-num { color: #64748b; }
.dv-badge { flex-shrink: 0; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.dv-badge--brouillon { background: #f1f5f9; color: #475569; }
.dv-badge--valide { background: var(--brand-50, #f0fdfa); color: var(--brand-700, #0f766e); }
.dv-badge--envoye { background: #e0f2fe; color: #0369a1; }
.dv-badge--signe { background: #dcfce7; color: #15803d; }
.dv-badge--refuse { background: #fee2e2; color: #b91c1c; }
.dv-badge--expire { background: #fef3c7; color: #92400e; }
.dv-client { display: flex; align-items: center; gap: 6px; color: #334155; font-weight: 600; min-width: 0; }
.dv-client span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-client svg { color: var(--brand-600, #0d9488); flex-shrink: 0; }
.dv-montant { font-size: 20px; font-weight: 700; color: var(--brand-700, #0f766e); }
.dv-montant small { font-size: 12px; font-weight: 600; color: #64748b; }
.dv-suivi { list-style: none; margin: 0; padding: 8px 0 0; border-top: 1px solid #f1f5f9; display: flex; flex-direction: column; gap: 4px; }
.dv-suivi li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #475569; }
.dv-suivi li svg { flex-shrink: 0; color: #94a3b8; }
.dv-suivi--ok, .dv-suivi--ok svg { color: #15803d !important; }
.dv-suivi--ko, .dv-suivi--ko svg { color: #b91c1c !important; }
.dv-suivi--att, .dv-suivi--att svg { color: #b45309 !important; }
.dv-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; border-top: 1px solid #f1f5f9; }
.dv-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 13px; }
.dv-icones { display: flex; gap: 2px; flex-wrap: wrap; margin-left: auto; color: #475569; }
.dv-icones .fx-act:hover { color: var(--brand-700, #0f766e); }
.dv-act-danger:hover { color: #b91c1c !important; background: #fef2f2 !important; }
.dv-verrou { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: #15803d; }
/* Formulaire */
/* Formulaire de devis (refonte 20/10/2026) : 4 sections numérotées + récapitulatif collant. */
.dv-form-grille { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; align-items: start; }
.dv-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dv-form .field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.dv-aide { font-size: 12px; font-weight: 400; color: #64748b; text-transform: none; letter-spacing: 0; }
.dv-form .field-label { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 0; }
.dv-form .field-label svg { color: var(--brand-600, #0d9488); }
.dv-sec { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; }
.dv-sec-titre { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; font-weight: 700; color: #0f172a; }
.dv-sec-num { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-600, #0d9488); color: #fff; font-size: 12.5px; font-weight: 700; }
.dv-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dv-type { display: flex; align-items: flex-start; gap: 8px; padding: 10px; border: 1px solid #e2e8f0; border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.dv-type:hover { border-color: var(--brand-200, #99f6e4); }
.dv-type:has(input:checked) { border-color: var(--brand-400, #2dd4bf); background: var(--brand-50, #f0fdfa); }
.dv-type input { margin-top: 3px; accent-color: var(--brand-600, #0d9488); }
.dv-type b { display: block; font-size: 13.5px; color: #0f172a; }
.dv-type small { display: block; font-size: 12px; color: #64748b; }
/* Interrupteurs de présentation (cases à cocher conservées : #dv-tarifaire, #dv-options) */
.dv-switchs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dv-switch { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.dv-switch:hover { border-color: var(--brand-200, #99f6e4); }
.dv-switch:has(input:checked) { border-color: var(--brand-400, #2dd4bf); background: var(--brand-50, #f0fdfa); }
.dv-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dv-switch-piste { position: relative; flex-shrink: 0; width: 34px; height: 20px; margin-top: 1px; border-radius: 999px; background: #cbd5e1; transition: background .15s; }
.dv-switch-piste::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.25); transition: transform .15s; }
.dv-switch input:checked + .dv-switch-piste { background: var(--brand-600, #0d9488); }
.dv-switch input:checked + .dv-switch-piste::after { transform: translateX(14px); }
.dv-switch input:focus-visible + .dv-switch-piste { box-shadow: var(--focus-ring); }
.dv-switch b { display: block; font-size: 13.5px; color: #0f172a; }
.dv-switch small { display: block; font-size: 12px; color: #64748b; line-height: 1.35; }
/* Lignes en tableau */
.dv-lignes { display: flex; flex-direction: column; gap: 6px; }
.dv-lignes-tete, .dv-ligne { display: grid; grid-template-columns: minmax(0, 1fr) 76px 132px 96px 34px; align-items: center; gap: 10px; }
.dv-lignes--tarif .dv-lignes-tete, .dv-lignes--tarif .dv-ligne { grid-template-columns: minmax(0, 1fr) 160px 34px; }
.dv-lignes-tete { padding: 0 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #94a3b8; }
.dv-c-m { text-align: center; }
.dv-c-d { text-align: right; }
.dv-ligne { padding: 8px 8px 8px 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px; }
.dv-ligne:hover { border-color: #cbd5e1; }
.dv-ligne--option { border-style: dashed; }
.dv-ligne-nom { min-width: 0; color: #1e293b; overflow-wrap: anywhere; }
.dv-ligne-pu { color: #475569; white-space: nowrap; font-size: 13.5px; text-align: right; }
.dv-ligne-pu small { color: #94a3b8; font-size: 12px; }
/* Unité + précision de la ligne (22/10/2026) : sous-ligne pleine largeur. */
.dv-ligne-plus { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; min-width: 0; }
.dv-ligne-plus .dv-ligne-unite { flex: 0 0 140px; height: 34px; font-size: 13px; padding: 4px 8px !important; }
.dv-ligne-plus .dv-ligne-prec { flex: 1 1 auto; min-width: 0; height: 34px; font-size: 13px; padding: 4px 10px !important; }
.dv-ligne-tot { text-align: right; white-space: nowrap; color: #0f172a; }
.dv-ligne .dv-qte { width: 76px; }
.dv-lignes-vide { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 10px; background: #f8fafc; color: #94a3b8; }
.dv-lignes-vide b { display: block; font-size: 14px; color: #475569; }
.dv-lignes-vide small { display: block; font-size: 12.5px; color: #64748b; }
.dv-opt { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 6px; background: var(--brand-50, #f0fdfa); color: var(--brand-700, #0f766e); font-size: 12px; font-weight: 700; }
.dv-pill { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 11px; font-weight: 700; white-space: nowrap; vertical-align: 1px; }
.dv-pill--sap { background: #dcfce7; color: #15803d; }
.dv-ajout { display: flex; gap: 8px; padding: 10px; border: 1px dashed #cbd5e1; border-radius: 12px; background: #f8fafc; }
.dv-ajout select { flex: 1; min-width: 0; }
.dv-ajout .btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.dv-qte { width: 76px; flex-shrink: 0; text-align: center; }
.dv-case { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: #1e293b; cursor: pointer; }
.dv-case input { margin-top: 3px; accent-color: var(--brand-600, #0d9488); }
.dv-case small { display: block; font-size: 12px; color: #64748b; }
.dv-note { font-size: 12.5px; color: #64748b; line-height: 1.45; }
.dv-note--att { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; }
.dv-note--ko { margin: -2px 0 4px 26px; padding: 6px 8px; border-radius: 8px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
/* Section 4 repliable */
.dv-blocs.dv-sec { padding: 0; gap: 0; }
.dv-blocs summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; font-size: 15px; font-weight: 700; color: #0f172a; list-style: none; }
.dv-blocs summary::-webkit-details-marker { display: none; }
.dv-blocs summary::after { content: '▸'; margin-left: auto; color: #94a3b8; transition: transform .15s; }
.dv-blocs[open] summary::after { transform: rotate(90deg); }
.dv-blocs summary small { font-size: 13px; font-weight: 400; color: #64748b; }
.dv-blocs summary:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 14px; }
.dv-blocs-corps { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 16px; }
/* Récapitulatif (colonne de droite, collant au défilement) */
.dv-recap { position: sticky; top: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 16px; border: 1px solid var(--brand-100, #ccfbf1); border-radius: 14px; background: linear-gradient(180deg, var(--brand-50, #f0fdfa), #fff 70%); }
.dv-recap-tete { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-700, #0f766e); }
.dv-recap-liste { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.dv-recap-liste dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #94a3b8; }
.dv-recap-liste dd { margin: 2px 0 0; font-size: 13.5px; color: #0f172a; line-height: 1.4; overflow-wrap: anywhere; }
.dv-recap-vide { color: #94a3b8; font-style: italic; }
.dv-recap-att { color: #b45309; font-weight: 600; }
.dv-recap-total { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid #e2e8f0; }
.dv-recap-total span { font-size: 12.5px; color: #64748b; }
.dv-recap-total b { font-size: 26px; line-height: 1.15; color: var(--brand-700, #0f766e); }
.dv-recap-total b.dv-recap-sans { font-size: 18px; color: #334155; }
.dv-recap-total small { font-size: 12px; color: #64748b; }
.dv-recap-etat { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; line-height: 1.4; }
.dv-recap-etat svg { flex-shrink: 0; margin-top: 1px; }
.dv-recap-etat--att { color: #b45309; }
.dv-recap-etat--ok { color: #15803d; }
@media (max-width: 900px) {
  .dv-form-grille { grid-template-columns: 1fr; }
  .dv-recap { position: static; }
}
@media (max-width: 600px) {
  .dv-types, .dv-switchs { grid-template-columns: 1fr; }
  .dv-ajout { flex-wrap: wrap; }
  .dv-ajout select { flex-basis: 100%; }
  .dv-lignes-tete { display: none; }
  .dv-ligne { grid-template-columns: 64px minmax(0, 1fr) auto 34px; }
  .dv-ligne-nom { grid-column: 1 / -1; }
  .dv-ligne .dv-qte { width: 64px; height: 44px; padding: 6px !important; }
  #dv-modal-form .om-modal-footer { flex-wrap: wrap; gap: 8px; }
  #dv-modal-form .om-modal-footer .btn { flex: 1 1 auto; min-width: 0; padding: 12px 10px !important; }
  .dv-lignes--tarif .dv-ligne { grid-template-columns: minmax(0, 1fr) 34px; }
  .dv-lignes--tarif .dv-ligne-pu { text-align: left; }
  .dv-grille { grid-template-columns: 1fr; }
  .dv-ligne-plus { flex-wrap: wrap; }
  .dv-ligne-plus .dv-ligne-unite, .dv-ligne-plus .dv-ligne-prec { flex: 1 1 100%; height: 44px; }
}

/* ── Page Attestations fiscales (attestations-fiscales-view.js, refonte 07/10/2026) ── */
.af-annee { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.92); }
.af-annee select { border: 0; background: #fff; color: #1e293b; font-weight: 700; font-size: 13px; padding: 6px 10px; border-radius: 10px; }
.af-vide { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 16px; color: #64748b; text-align: center; }
.af-bandeau { margin: 14px 0 0; }
.af-stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-top: 14px; }
.af-stat-fixe { grid-column: span 2; }
.af-stat-fixe .om-stat-card-value { color: var(--brand-700, #0f766e); }
.af-tuile--att { --om-stat-accent: #f59e0b; }
.af-total-h { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 13px; color: #475569; }
.af-table td { vertical-align: middle; }
.af-nom { display: flex; align-items: center; gap: 6px; font-weight: 600; color: #0f172a; }
.af-alerte { display: inline-flex; color: #b45309; cursor: help; }
.af-ko { color: #b91c1c; }
.af-ok { color: #15803d; }
.af-mois-liste { display: flex; flex-wrap: wrap; gap: 4px; max-width: 360px; }
.af-mois { display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 12px; background: #f1f5f9; color: #475569; cursor: help; white-space: nowrap; }
.af-mois--apres { background: #fef3c7; color: #92400e; font-weight: 600; }
.af-av { font-weight: 700; color: #0369a1; }
.af-cesu { font-weight: 700; color: #7c3aed; }
.af-suivi { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.af-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #f1f5f9; color: #475569; white-space: nowrap; }
.af-badge--ok { background: #dcfce7; color: #15803d; }
.af-badge--att { background: #fef3c7; color: #92400e; }
.af-badge--env { background: #e0f2fe; color: #0369a1; }
.af-ligne--ok { background: #f7fdf9; }
.af-act-on { color: #15803d; background: #dcfce7; }
.af-note { display: flex; align-items: flex-start; gap: 6px; margin: 12px 2px 28px; font-size: 12.5px; color: #64748b; }
/* Envoi groupé */
.af-groupe { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; }
.af-groupe-titre { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; color: #334155; margin-bottom: 8px; }
.af-groupe-titre small { font-weight: 500; color: #64748b; }
.af-groupe-mail { max-height: 420px; overflow: auto; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; padding: 8px; font-size: 13px; }
.af-groupe-dests { max-height: 420px; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.af-dest { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 10px; cursor: pointer; }
.af-dest:hover { background: var(--brand-50, #f0fdfa); }
.af-dest input { accent-color: var(--brand-600, #0d9488); }
.af-dest--off { opacity: .55; cursor: default; }
.af-dest-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.af-dest-txt b { font-size: 13.5px; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.af-dest-txt small { font-size: 12px; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.af-dest-etat { font-size: 12px; color: #475569; white-space: nowrap; }
.af-compte { flex: 1; font-size: 13px; color: #475569; }
.af-prog-tete { display: flex; justify-content: space-between; margin-bottom: 8px; color: #0f172a; }
.af-prog-barre { height: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden; margin-bottom: 12px; }
.af-prog-barre i { display: block; height: 100%; background: var(--brand-500, #14b8a6); transition: width .4s ease; }
.af-prog-liste { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.af-prog-liste li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border: 1px solid #f1f5f9; border-radius: 8px; font-size: 13px; }
.af-prog-etat { color: #94a3b8; }
@media (max-width: 760px) { .af-groupe { grid-template-columns: 1fr; } .af-stat-fixe { grid-column: auto; } }

/* ===== Nova (nv-*) ===== */
.nv-page { max-width: 1200px; margin: 0 auto; padding-bottom: 40px; color: #1e293b; }
.nv-header .rg-periode { margin-top: 12px; }
.nv-stats { margin-top: 14px; }
.nv-etat { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-size: 12.5px; color: rgba(255,255,255,.92); }
.nv-etat--ko { color: #fff; background: rgba(185,28,28,.85); padding: 3px 8px; border-radius: 8px; }
.nv-carte { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px 20px; margin: 16px 0 0; }
.nv-carte--douce { background: #f8fafc; }
.nv-titre { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 15px; font-weight: 800; color: #0f172a; }
.nv-titre .om-ic { color: var(--brand-700, #0f766e); flex-shrink: 0; }
.nv-sous { margin: 0 0 12px; font-size: 13px; color: #64748b; line-height: 1.5; }
.nv-lib { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #64748b; }
.nv-accent { color: var(--brand-700, #0f766e); }
.nv-etab { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 10px; }
.nv-etab b { display: block; margin-top: 3px; font-size: 14px; font-weight: 600; }
.nv-etab-large { grid-column: 1 / -1; }
.nv-alerte { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 0; padding: 10px 14px; border: 1px solid #fde68a; border-left: 4px solid #f59e0b; border-radius: 12px; background: #fffbeb; color: #78350f; font-size: 13.5px; line-height: 1.5; }
.nv-alerte .om-ic { flex-shrink: 0; margin-top: 1px; color: #b45309; }
.nv-alerte--ko { border-color: #fecaca; border-left-color: #dc2626; background: #fef2f2; color: #991b1b; }
.nv-alerte--ko .om-ic { color: #b91c1c; }
.nv-aide { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--brand-50, #f0fdfa); border: 1px solid var(--brand-100, #ccfbf1); color: #134e4a; font-size: 13.5px; line-height: 1.55; }
.nv-aide .om-ic { flex-shrink: 0; margin-top: 2px; color: var(--brand-700, #0f766e); }
.nv-aide a { color: var(--brand-700, #0f766e); font-weight: 700; }
.nv-table td, .nv-table th { vertical-align: middle; }
.nv-table .nv-c { text-align: center; white-space: nowrap; }
.nv-mois { font-weight: 700; color: var(--brand-700, #0f766e); white-space: nowrap; }
.nv-val { font-weight: 700; color: #0f172a; margin-right: 2px; }
.nv-gras { font-weight: 700; }
.nv-groupe th { background: #f8fafc; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #475569; text-align: left; }
.nv-total td { font-weight: 800; background: #f1f5f9; }
.nv-champ { width: 76px; padding: 6px 8px; border: 1px solid #fcd34d; border-radius: 8px; background: #fffbeb; font-size: 14px; font-weight: 600; text-align: center; color: #1e293b; }
.nv-champ:focus { outline: none; border-color: var(--brand-500, #14b8a6); box-shadow: var(--focus-ring, 0 0 0 3px rgba(13,148,136,.25)); }
.nv-champ--large { width: 104px; }
.nv-champ--calc { width: 104px; border-color: #99f6e4; background: var(--brand-50, #f0fdfa); color: var(--brand-700, #0f766e); font-weight: 700; text-align: right; }
.nv-select { width: auto; text-align: left; }
.nv-case { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.nv-suffixe { font-weight: 700; color: var(--brand-700, #0f766e); }
.nv-recalc { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid #fde68a; border-radius: 999px; background: #fffbeb; color: #92400e; font-size: 12px; cursor: pointer; }
.nv-recalc:hover { background: #fef3c7; }
.nv-dispense--ok { border-left: 4px solid var(--brand-600, #0d9488); }
.nv-dispense--att { border-left: 4px solid #d97706; }
.nv-dispense--ko { border-left: 4px solid #dc2626; }
.nv-jauge-tete { display: flex; align-items: baseline; gap: 10px; }
.nv-jauge-tete .nv-sous { margin: 0; }
.nv-pct { font-size: 30px; font-weight: 800; line-height: 1.1; }
.nv-jauge { height: 9px; margin-top: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.nv-jauge i { display: block; height: 100%; border-radius: 999px; transition: width .3s; }
.nv-jauge-pied { display: flex; justify-content: space-between; margin-top: 3px; font-size: 11px; color: #94a3b8; }
.nv-dispense--ok .nv-pct, .nv-dispense--ok .nv-niv, .nv-dispense--ok .nv-jauge-pied b { color: var(--brand-700, #0f766e); }
.nv-dispense--ok .nv-jauge i { background: var(--brand-600, #0d9488); }
.nv-dispense--att .nv-pct, .nv-dispense--att .nv-niv, .nv-dispense--att .nv-jauge-pied b { color: #b45309; }
.nv-dispense--att .nv-jauge i { background: #d97706; }
.nv-dispense--ko .nv-pct, .nv-dispense--ko .nv-niv, .nv-dispense--ko .nv-jauge-pied b { color: #b91c1c; }
.nv-dispense--ko .nv-jauge i { background: #dc2626; }
.nv-kpis { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #e2e8f0; }
.nv-kpi { flex: 1 1 150px; min-width: 0; }
.nv-kpi b { display: block; margin-top: 2px; font-size: 18px; font-weight: 800; color: #0f172a; }
.nv-legal { margin: 10px 0 0; font-size: 11.5px; color: #94a3b8; line-height: 1.5; }
@media (max-width: 640px) {
  .nv-carte { padding: 14px; }
  .nv-etat { margin-left: 0; }
}
@media print {
  aside, header, .nv-header .rg-header-actions, .nv-header .rg-periode, .nova-copy, .nv-recalc, .nv-aide { display: none !important; }
  .nv-header.om-page-header { color: #0f172a !important; background: #f1f5f9 !important; box-shadow: none !important; }
  .nv-header.om-page-header::before, .nv-header.om-page-header::after { display: none !important; }
  .nv-header .om-stat-card { background: #fff !important; border: 1px solid #e2e8f0 !important; }
  .nv-champ { border: none !important; background: transparent !important; padding: 0 !important; }
  .nv-carte { break-inside: avoid; box-shadow: none !important; }
}

/* ===== Infobulles communes (om-infobulles.js) ===== */
.om-tip { position: fixed; z-index: 100000; display: none; max-width: 280px; padding: 6px 10px; border-radius: 8px; background: #0f172a; color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.4; text-align: center; white-space: pre-line; pointer-events: none; box-shadow: 0 6px 18px rgba(15,23,42,.22); opacity: 0; transform: translateY(2px); transition: opacity .12s ease, transform .12s ease; }
.om-tip--on { opacity: 1; transform: none; }
.om-tip::after { content: ''; position: absolute; left: var(--om-tip-fleche, 50%); top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: #0f172a; }
.om-tip--dessous::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #0f172a; }
@media print { .om-tip { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .om-tip { transition: none; } }

/* Attestations : sélection et actions en lot */
.af-th-sel, .af-td-sel { width: 36px; text-align: center; }
.af-case { width: 16px; height: 16px; accent-color: var(--brand-600, #0d9488); cursor: pointer; }
.af-ligne--sel { background: var(--brand-50, #f0fdfa) !important; }
.af-selbar { position: sticky; bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; width: max-content; max-width: 100%; margin: 12px auto 0; padding: 10px 18px; border-radius: 999px; background: #1e293b; color: #fff; box-shadow: 0 10px 30px rgba(15,23,42,.3); }
.af-selbar[hidden] { display: none; }
.af-selbar-n { font-size: 13.5px; padding-right: 14px; border-right: 1px solid #475569; }
.af-selbar-n b { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 6px; background: #fff; color: #0f172a; text-align: center; }
.af-selbar-x { color: #cbd5e1; font-size: 20px; width: 28px; height: 28px; }
.af-selbar-x:hover { background: rgba(255,255,255,.12); color: #fff; }
@media (max-width: 640px) { .af-selbar { border-radius: 16px; gap: 10px; } }
.nv-kpi small { display: block; margin-top: 1px; font-size: 11.5px; color: #64748b; }
.nv-rappel { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--brand-100, #ccfbf1); background: var(--brand-50, #f0fdfa); color: #134e4a; font-size: 13.5px; line-height: 1.5; }
.nv-rappel > span { flex: 1 1 280px; }
.nv-rappel .om-ic { flex-shrink: 0; margin-top: 2px; color: var(--brand-700, #0f766e); }
.nv-rappel a { color: var(--brand-700, #0f766e); font-weight: 700; }
.nv-rappel--ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.nv-rappel-case { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.nv-rappel-case input { accent-color: var(--brand-600, #0d9488); width: 16px; height: 16px; }

/* Cartes de cours (09/10/2026) : la pastille de type (« 📐 FORMULE », « DÉFINITION »…)
   se coupait sur deux lignes quand le titre de la carte était long. */
#content span[style*="border-radius:999px"][style*="letter-spacing:0.04em"] { white-space: nowrap; flex-shrink: 0; }

/* Élèves : répartition par niveau (puces filtrantes, 10/10/2026) */
.eleves-niveaux-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.eleves-niveaux-bar:empty { display: none; }
.eleves-niveau-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 8px 6px 14px; border-radius: 999px;
  border: 1px solid #cbd5e1; background: #fff; color: #334155;
  font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.eleves-niveau-chip:hover { border-color: #0d9488; color: #0f766e; }
.eleves-niveau-chip:focus-visible { outline: 2px solid #0d9488; outline-offset: 2px; }
.eleves-niveau-chip-n {
  min-width: 24px; padding: 2px 8px; border-radius: 999px; text-align: center;
  background: #f0fdfa; color: #115e59; font-size: 12px; font-weight: 700;
}
.eleves-niveau-chip.is-active { background: #0d9488; border-color: #0d9488; color: #fff; }
.eleves-niveau-chip.is-active .eleves-niveau-chip-n { background: rgba(255,255,255,.22); color: #fff; }

/* Harmonisation teal (10/10/2026) : l'ancienne teinte violette de l'interface
   (variables --purple-*, utilisées par les fiches parents, onglets, méthodes…)
   bascule sur l'échelle teal. Les contenus pédagogiques n'utilisent pas ces variables. */
:root {
  --purple-50: #f0fdfa; --purple-100: #ccfbf1; --purple-200: #99f6e4; --purple-300: #5eead4;
  --purple-400: #2dd4bf; --purple-500: #14b8a6; --purple-600: #0d9488; --purple-700: #0f766e;
  --purple-800: #115e59; --purple-900: #134e4a; --purple-950: #042f2e;
}
.parent-card-v2:hover { border-color: var(--brand-300, #5eead4); }
.parent-card-detail-icon { background: var(--brand-50, #f0fdfa); }
.parent-card-enfant-badge { background: var(--brand-50, #f0fdfa); color: var(--brand-800, #115e59); }
.hover\:border-purple-300:hover, .hover\:border-indigo-300:hover { border-color: var(--brand-300, #5eead4); }
.ring-purple-500, .ring-indigo-500 { --tw-ring-color: rgba(13, 148, 136, .55); }
/* Titre de barre supérieure masqué quand la page a déjà son en-tête teal (évite « Parents » en double) */
body:has(#content .om-page-header) #title,
body:has(#content .factures-header) #title,
body:has(#content .eleves-header) #title { visibility: hidden; }
/* Boutons texte (« Annuler », « Fermer ») qui portent aussi la classe .btn-close :
   ne pas leur appliquer le gabarit rond 36×36 du bouton X (texte rogné). */
.btn-close.btn-cancel-modal, .btn-close.btn, .btn-close[class*="px-"] {
  width: auto; height: auto; border-radius: 10px; font-size: .875rem; font-weight: 600;
}
.btn-close.btn-cancel-modal { padding: 8px 16px; }
.btn-close.btn-cancel-modal:hover, .btn-close[class*="px-"]:hover { color: var(--slate-700, #334155); }
/* Grilles Tailwind (grid-cols-*) dans les modales : pas de marge interne héritée de
   la grille de cartes `.grid { padding: 0 24px }` (champs décalés dans la fiche parent). */
[class*="modal"] .grid[class*="grid-cols-"] { padding-left: 0; padding-right: 0; }
.parent-urssaf-badge { background: var(--brand-50, #f0fdfa); color: var(--brand-800, #115e59); }
/* Téléphone : titre de page sur une ligne (« Support Pédagogique » passait sur deux lignes) */
@media (max-width: 640px) {
  #title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 auto; }
}
/* Téléphone : le bouton du menu (fixe, en haut à gauche) ne recouvre plus le nom de l'espace */
@media (max-width: 768px) {
  aside .brand { padding-left: 64px; min-height: 44px; display: flex; align-items: center; }
}

/* Dégradés Tailwind (from/via/to) indigo, bleu, violet, rose → teal (10/10/2026) :
   les classes bg-* étaient déjà remappées, pas les arrêts de dégradé. */
.from-indigo-50,.from-blue-50,.from-purple-50,.from-violet-50,.from-pink-50,.from-sky-50,.from-fuchsia-50{--tw-gradient-from:#f0fdfa;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to,rgba(240,253,250,0))}
.via-indigo-50,.via-blue-50,.via-purple-50,.via-violet-50,.via-pink-50,.via-sky-50,.via-fuchsia-50{--tw-gradient-stops:var(--tw-gradient-from),#f0fdfa,var(--tw-gradient-to,rgba(240,253,250,0))}
.to-indigo-50,.to-blue-50,.to-purple-50,.to-violet-50,.to-pink-50,.to-sky-50,.to-fuchsia-50{--tw-gradient-to:#f0fdfa}
.from-indigo-100,.from-blue-100,.from-purple-100,.from-violet-100,.from-pink-100,.from-sky-100,.from-fuchsia-100{--tw-gradient-from:#ccfbf1;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to,rgba(204,251,241,0))}
.via-indigo-100,.via-blue-100,.via-purple-100,.via-violet-100,.via-pink-100,.via-sky-100,.via-fuchsia-100{--tw-gradient-stops:var(--tw-gradient-from),#ccfbf1,var(--tw-gradient-to,rgba(204,251,241,0))}
.to-indigo-100,.to-blue-100,.to-purple-100,.to-violet-100,.to-pink-100,.to-sky-100,.to-fuchsia-100{--tw-gradient-to:#ccfbf1}
.from-indigo-200,.from-blue-200,.from-purple-200,.from-violet-200,.from-pink-200,.from-sky-200,.from-fuchsia-200{--tw-gradient-from:#99f6e4;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to,rgba(153,246,228,0))}
.via-indigo-200,.via-blue-200,.via-purple-200,.via-violet-200,.via-pink-200,.via-sky-200,.via-fuchsia-200{--tw-gradient-stops:var(--tw-gradient-from),#99f6e4,var(--tw-gradient-to,rgba(153,246,228,0))}
.to-indigo-200,.to-blue-200,.to-purple-200,.to-violet-200,.to-pink-200,.to-sky-200,.to-fuchsia-200{--tw-gradient-to:#99f6e4}
.from-indigo-400,.from-blue-400,.from-purple-400,.from-violet-400,.from-pink-400,.from-sky-400,.from-fuchsia-400{--tw-gradient-from:#2dd4bf;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to,rgba(45,212,191,0))}
.via-indigo-400,.via-blue-400,.via-purple-400,.via-violet-400,.via-pink-400,.via-sky-400,.via-fuchsia-400{--tw-gradient-stops:var(--tw-gradient-from),#2dd4bf,var(--tw-gradient-to,rgba(45,212,191,0))}
.to-indigo-400,.to-blue-400,.to-purple-400,.to-violet-400,.to-pink-400,.to-sky-400,.to-fuchsia-400{--tw-gradient-to:#2dd4bf}
.from-indigo-500,.from-blue-500,.from-purple-500,.from-violet-500,.from-pink-500,.from-sky-500,.from-fuchsia-500{--tw-gradient-from:#14b8a6;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to,rgba(20,184,166,0))}
.via-indigo-500,.via-blue-500,.via-purple-500,.via-violet-500,.via-pink-500,.via-sky-500,.via-fuchsia-500{--tw-gradient-stops:var(--tw-gradient-from),#14b8a6,var(--tw-gradient-to,rgba(20,184,166,0))}
.to-indigo-500,.to-blue-500,.to-purple-500,.to-violet-500,.to-pink-500,.to-sky-500,.to-fuchsia-500{--tw-gradient-to:#14b8a6}
.from-indigo-600,.from-blue-600,.from-purple-600,.from-violet-600,.from-pink-600,.from-sky-600,.from-fuchsia-600{--tw-gradient-from:#0d9488;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to,rgba(13,148,136,0))}
.via-indigo-600,.via-blue-600,.via-purple-600,.via-violet-600,.via-pink-600,.via-sky-600,.via-fuchsia-600{--tw-gradient-stops:var(--tw-gradient-from),#0d9488,var(--tw-gradient-to,rgba(13,148,136,0))}
.to-indigo-600,.to-blue-600,.to-purple-600,.to-violet-600,.to-pink-600,.to-sky-600,.to-fuchsia-600{--tw-gradient-to:#0d9488}
.from-indigo-700,.from-blue-700,.from-purple-700,.from-violet-700,.from-pink-700,.from-sky-700,.from-fuchsia-700{--tw-gradient-from:#0f766e;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to,rgba(15,118,110,0))}
.via-indigo-700,.via-blue-700,.via-purple-700,.via-violet-700,.via-pink-700,.via-sky-700,.via-fuchsia-700{--tw-gradient-stops:var(--tw-gradient-from),#0f766e,var(--tw-gradient-to,rgba(15,118,110,0))}
.to-indigo-700,.to-blue-700,.to-purple-700,.to-violet-700,.to-pink-700,.to-sky-700,.to-fuchsia-700{--tw-gradient-to:#0f766e}
.from-indigo-800,.from-blue-800,.from-purple-800,.from-violet-800,.from-pink-800,.from-sky-800,.from-fuchsia-800{--tw-gradient-from:#115e59;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to,rgba(17,94,89,0))}
.via-indigo-800,.via-blue-800,.via-purple-800,.via-violet-800,.via-pink-800,.via-sky-800,.via-fuchsia-800{--tw-gradient-stops:var(--tw-gradient-from),#115e59,var(--tw-gradient-to,rgba(17,94,89,0))}
.to-indigo-800,.to-blue-800,.to-purple-800,.to-violet-800,.to-pink-800,.to-sky-800,.to-fuchsia-800{--tw-gradient-to:#115e59}
.from-indigo-900,.from-blue-900,.from-purple-900,.from-violet-900,.from-pink-900,.from-sky-900,.from-fuchsia-900{--tw-gradient-from:#134e4a;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to,rgba(19,78,74,0))}
.via-indigo-900,.via-blue-900,.via-purple-900,.via-violet-900,.via-pink-900,.via-sky-900,.via-fuchsia-900{--tw-gradient-stops:var(--tw-gradient-from),#134e4a,var(--tw-gradient-to,rgba(19,78,74,0))}
.to-indigo-900,.to-blue-900,.to-purple-900,.to-violet-900,.to-pink-900,.to-sky-900,.to-fuchsia-900{--tw-gradient-to:#134e4a}
/* Bouton « Imprimer » des cours (style en ligne bleu dans les banques) → teal */
button[onclick*="printCoursV2"] { background: var(--brand-700, #0f766e) !important; color: #fff !important; display: inline-flex; align-items: center; gap: 6px; }
button[onclick*="printCoursV2"]:hover { background: var(--brand-800, #115e59) !important; }

/* ===================== Espace parent — .pp-* (refonte du 11/10/2026, étape 6) =====================
   Rangées lisibles sur téléphone, blocs blancs, étiquettes de section, sélecteur d'enfant (segmenté),
   onglets, bulles de conversation. Teal uniquement (D1), icônes OmIcons (D2). */
.pp-page { max-width: 900px; margin: 0 auto; padding-bottom: 32px; color: var(--ink-700, #334155); }
.pp-page .om-page-header.pp-hd .btn-header { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pp-lab { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-500, #64748b); margin: 22px 4px 8px; }
.pp-sep-passes { font-size: 15px; font-weight: 700; color: var(--ink-900, #0f172a); margin: 26px 4px 0; padding-top: 14px; border-top: 1px solid #e5e7eb; }
.pp-bloc { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; }
.pp-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 0; border-top: 1px solid #f1f5f9; width: 100%; box-sizing: border-box; background: none; text-align: left; font: inherit; color: inherit; min-height: 56px; }
.pp-bloc > .pp-row:first-child, .pp-bloc > div:first-child > .pp-row:first-child { border-top: 0; }
.pp-row--haut { align-items: flex-start; }
button.pp-row, a.pp-row { cursor: pointer; text-decoration: none; transition: background .12s; }
button.pp-row:hover, a.pp-row:hover { background: #f8fafc; }
.pp-row--nl, button.pp-row--nl:hover { background: var(--brand-50, #f0fdfa); }
.pp-row--plus { justify-content: center; color: var(--brand-700, #0f766e); font-weight: 600; font-size: 13.5px; min-height: 48px; }
.pp-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--brand-50, #f0fdfa); color: var(--brand-700, #0f766e); }
.pp-ic--o { background: #fff7ed; color: #c2410c; }
.pp-ic--v { background: #f0fdf4; color: #15803d; }
.pp-ic--blanc { background: #fff; border: 1px solid #e5e7eb; }
.pp-t { flex: 1; min-width: 0; }
.pp-t-b { display: block; font-size: 14px; font-weight: 650; color: var(--ink-900, #0f172a); overflow-wrap: anywhere; line-height: 1.35; }
.pp-t-b--flex { display: flex; align-items: center; gap: 7px; }
.pp-t-s { display: block; font-size: 12.5px; color: var(--ink-500, #64748b); margin-top: 2px; overflow-wrap: anywhere; line-height: 1.4; }
.pp-t-c { display: block; font-size: 13px; color: #475569; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pp-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #f1f5f9; color: #334155; white-space: nowrap; flex-shrink: 0; }
.pp-chip--t { background: var(--brand-100, #ccfbf1); color: var(--brand-800, #115e59); }
.pp-chip--v { background: #dcfce7; color: #166534; }
.pp-chip--o { background: #fef3c7; color: #92400e; }
.pp-chip--r { background: #fee2e2; color: #991b1b; }
.pp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-700, #0f766e); flex-shrink: 0; }
.pp-fl { color: #94a3b8; flex-shrink: 0; display: inline-flex; }
.pp-mt { font-size: 14px; font-weight: 700; color: var(--ink-900, #0f172a); white-space: nowrap; }
.pp-btn { font: inherit; font-size: 13.5px; font-weight: 600; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; color: #334155; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; white-space: nowrap; cursor: pointer; box-sizing: border-box; flex-shrink: 0; transition: background .12s, border-color .12s; }
.pp-btn:hover { background: var(--brand-50, #f0fdfa); color: #334155; }
.pp-btn--p, a.pp-btn--p { background: var(--brand-700, #0f766e); border-color: var(--brand-700, #0f766e); color: #fff; }
.pp-btn--p:hover, a.pp-btn--p:hover { background: var(--brand-800, #115e59); border-color: var(--brand-800, #115e59); color: #fff; }
.pp-btn:disabled { opacity: .5; cursor: not-allowed; }
.pp-btn:focus-visible, .pp-icbtn:focus-visible, .pp-row:focus-visible, .pp-seg-b:focus-visible, .pp-tab:focus-visible, .pp-res:focus-visible, .pp-bil-h:focus-visible, .pp-kpi--btn:focus-visible { outline: none; box-shadow: var(--focus-ring, 0 0 0 3px rgba(13,148,136,.35)); }
.pp-icbtn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; color: var(--brand-700, #0f766e); display: grid; place-items: center; flex-shrink: 0; cursor: pointer; padding: 0; }
.pp-icbtn:hover { background: var(--brand-50, #f0fdfa); }
.pp-seg { display: flex; gap: 2px; padding: 3px; margin-top: 14px; background: #e2e8f0; border-radius: 12px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.pp-seg-b { flex: 1 0 auto; font: inherit; font-size: 14px; font-weight: 600; border: 0; background: none; color: #475569; border-radius: 9px; min-height: 40px; padding: 0 14px; cursor: pointer; white-space: nowrap; }
.pp-seg-b--on { background: #fff; color: var(--brand-700, #0f766e); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.pp-tabs { display: flex; gap: 2px; margin-top: 14px; border-bottom: 1px solid #e5e7eb; }
.pp-tab { flex: 1; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink-500, #64748b); background: none; border: 0; border-bottom: 2px solid transparent; min-height: 44px; cursor: pointer; margin-bottom: -1px; }
.pp-tab--on { color: var(--brand-800, #115e59); font-weight: 700; border-bottom-color: var(--brand-700, #0f766e); }
.pp-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; align-items: start; }
.pp-enf-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; }
.pp-av { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-100, #ccfbf1); color: var(--brand-800, #115e59); font-weight: 800; font-size: 16px; flex-shrink: 0; }
.pp-enf-n { font-size: 17px; font-weight: 800; color: var(--ink-900, #0f172a); overflow-wrap: anywhere; }
.pp-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 6px 16px 14px; }
.pp-kpis--nu { padding: 0; }
.pp-kpi { background: #f8fafc; border: 1px solid #eef2f7; border-radius: 12px; padding: 10px 12px; min-width: 0; text-align: left; font: inherit; color: inherit; }
.pp-kpi--blanc { background: #fff; border-color: #e5e7eb; }
.pp-kpi--btn { cursor: pointer; transition: border-color .12s, background .12s; }
.pp-kpi--btn:hover { border-color: var(--brand-200, #99f6e4); background: var(--brand-50, #f0fdfa); }
.pp-kpi-v { font-size: 16px; font-weight: 800; color: var(--ink-900, #0f172a); }
.pp-kpi-l { font-size: 12px; color: var(--ink-500, #64748b); margin-top: 2px; }
.pp-date { width: 46px; flex-shrink: 0; text-align: center; border-radius: 10px; background: var(--brand-50, #f0fdfa); color: var(--brand-800, #115e59); padding: 6px 0; }
.pp-date-j { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.pp-date-n { font-size: 18px; font-weight: 800; line-height: 1.1; }
.pp-plus { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-top: 14px; width: 100%; border-radius: 12px; border: 1px dashed #cbd5e1; color: #475569; font: inherit; font-size: 13.5px; font-weight: 600; background: #fff; cursor: pointer; }
.pp-plus:hover { border-color: var(--brand-600, #0d9488); color: var(--brand-800, #115e59); }
/* « Ajouter à mon agenda » en haut du planning (11/10/2026) */
.pp-plus.pp-agenda { margin-top: 12px; border: 1px solid var(--brand-200, #99f6e4); background: var(--brand-50, #f0fdfa); color: var(--brand-800, #115e59); }
.pp-plus.pp-agenda:hover { border-color: var(--brand-600, #0d9488); background: #ccfbf1; }
.pp-du { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 14px 16px; margin-top: 14px; }
.pp-du-v { font-size: 22px; font-weight: 800; color: var(--ink-900, #0f172a); }
.pp-note { font-size: 12.5px; color: var(--ink-500, #64748b); margin: 10px 4px 0; line-height: 1.5; }
.pp-vide { padding: 32px 16px; text-align: center; color: var(--ink-500, #64748b); font-size: 14px; }
.pp-vide-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-50, #f0fdfa); color: var(--brand-700, #0f766e); margin-bottom: 8px; }
.pp-bil { padding: 14px 16px; }
.pp-bil-h { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; color: inherit; min-height: 60px; }
.pp-bil-h:hover { background: #f8fafc; }
.pp-chev { transition: transform .15s; color: #94a3b8; display: inline-flex; flex-shrink: 0; }
.pp-bil-h[aria-expanded="true"] .pp-chev { transform: rotate(180deg); }
.pp-bil-c { padding: 0 16px 16px; border-top: 1px solid #f1f5f9; }
.pp-sl { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-500, #64748b); margin: 14px 0 5px; }
.pp-p { font-size: 14px; line-height: 1.55; color: #334155; margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.pp-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pp-res { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--brand-800, #115e59); background: var(--brand-50, #f0fdfa); border: 1px solid var(--brand-200, #99f6e4); border-radius: 9px; padding: 0 10px; min-height: 36px; text-decoration: none; cursor: pointer; font-family: inherit; max-width: 100%; box-sizing: border-box; }
.pp-res > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-res:hover { border-color: var(--brand-600, #0d9488); color: var(--brand-800, #115e59); }
.pp-res--n, .pp-res--n:hover { color: #334155; background: #f1f5f9; border-color: #e2e8f0; cursor: default; }
.pp-notes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pp-n { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; background: #f1f5f9; border-radius: 8px; padding: 5px 10px; font-size: 13px; color: #334155; max-width: 100%; }
.pp-conv { display: flex; flex-direction: column; gap: 8px; }
.pp-bul { max-width: 85%; padding: 9px 12px; font-size: 14px; line-height: 1.45; color: #1f2937; overflow-wrap: anywhere; }
.pp-bul-t { white-space: pre-wrap; }
.pp-bul--prof { align-self: flex-start; background: #f1f5f9; border-radius: 12px 12px 12px 4px; }
.pp-bul--moi { align-self: flex-end; background: var(--brand-100, #ccfbf1); border-radius: 12px 12px 4px 12px; }
.pp-bul-q { font-size: 11.5px; color: var(--ink-500, #64748b); margin-bottom: 3px; white-space: normal; }
.pp-modal { max-width: 680px; width: 94%; display: flex; flex-direction: column; max-height: 88vh; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 20px 50px rgba(15, 23, 42, .25); }
.pp-modal-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 14px 12px 18px; border-bottom: 1px solid #eef2f7; }
.pp-modal-t { font-weight: 700; color: var(--ink-900, #0f172a); font-size: 16px; overflow-wrap: anywhere; }
.pp-modal-s { font-size: 12.5px; color: var(--ink-500, #64748b); margin-top: 2px; overflow-wrap: anywhere; }
.pp-modal-b { padding: 14px 18px 18px; overflow-y: auto; }
.pp-modal-f { padding: 12px 18px; border-top: 1px solid #eef2f7; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pp-x { width: 40px; height: 40px; border: 0; background: none; color: #64748b; border-radius: 10px; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.pp-x:hover { background: #f1f5f9; }
.pp-champ { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 10px; font: inherit; font-size: 15px; box-sizing: border-box; color: #334155; background: #fff; }
textarea.pp-champ { resize: vertical; min-height: 96px; }
.pp-champ:focus { outline: none; border-color: var(--brand-600, #0d9488); box-shadow: var(--focus-ring, 0 0 0 3px rgba(13,148,136,.25)); }
.pp-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-500, #64748b); margin-bottom: 4px; }
.pp-deux { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
.pp-rep { margin-top: 14px; }
.pp-rep-bas { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.pp-rep-msg { font-size: 13px; flex: 1 1 auto; min-width: 0; }
.pp-rep-pj-l { max-width: 60%; }
.pp-rep-pj-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .pp-page { padding-bottom: 24px; }
  .pp-row { padding: 12px 14px; }
  .pp-grille { grid-template-columns: minmax(0, 1fr); }
  .pp-deux { grid-template-columns: minmax(0, 1fr); }
  .pp-modal { width: 100%; max-height: 92vh; border-radius: 14px 14px 0 0; align-self: flex-end; }
  .modal-overlay:has(> .pp-modal) { padding: 0; }
  .pp-page .om-page-header.pp-hd .om-page-header-top { flex-wrap: wrap; gap: 10px; }
}

/* ===================== Espace élève — .el-* (refonte du 11/10/2026, étape 6) =====================
   Complète les .pp-* (mêmes blocs que l'espace parent) : en-tête avec progression, cloche,
   cases « fait », badges, bulletins par période. */
.el-hd .om-page-header-top { align-items: flex-start; gap: 12px; }
.pp-page .om-page-header.pp-hd.el-hd .om-page-header-top { flex-direction: row; flex-wrap: nowrap; }
.el-prog { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.el-hd-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 3px 9px; white-space: nowrap; color: #fff; }
.el-barre { flex: 1 1 120px; min-width: 100px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.25); overflow: hidden; }
.el-barre > div { height: 8px; border-radius: 4px; background: #fff; }
.el-hd .eleve-notif-bell.el-cloche { position: relative; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.el-hd .eleve-notif-bell.el-cloche:hover { background: rgba(255,255,255,.24); }
.el-hd .eleve-notif-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: #fff; color: var(--brand-800, #115e59); font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; box-sizing: border-box; }
.el-hd #eleve-notif-dropdown { color: var(--ink-700, #334155); }
.el-tache { cursor: pointer; transition: background .12s; }
.el-tache:hover { background: #f8fafc; }
.el-tache:focus-visible { outline: none; box-shadow: inset var(--focus-ring, 0 0 0 3px rgba(13,148,136,.35)); }
.el-fait { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid #cbd5e1; background: #fff; color: #94a3b8; display: grid; place-items: center; flex-shrink: 0; cursor: pointer; padding: 0; transition: border-color .12s, color .12s, background .12s; }
.el-fait:hover { border-color: var(--brand-600, #0d9488); color: var(--brand-700, #0f766e); background: var(--brand-50, #f0fdfa); }
.el-fait:focus-visible, .el-coche:focus-visible { outline: none; box-shadow: var(--focus-ring, 0 0 0 3px rgba(13,148,136,.35)); }
.el-afaire { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.el-coche-l { display: flex; align-items: center; gap: 10px; }
.el-coche { width: 32px; height: 32px; border-radius: 8px; border: 1.5px solid #cbd5e1; background: #fff; color: transparent; display: grid; place-items: center; flex-shrink: 0; cursor: pointer; padding: 0; }
.el-coche--ok { background: var(--brand-700, #0f766e); border-color: var(--brand-700, #0f766e); color: #fff; }
.el-badges { display: flex; gap: 8px; padding: 14px 16px 10px; overflow-x: auto; scrollbar-width: none; }
.el-badge { flex: 0 0 auto; width: 86px; text-align: center; font-size: 11.5px; color: #475569; line-height: 1.3; }
.el-badge-ic { width: 48px; height: 48px; border-radius: 14px; margin: 0 auto 6px; display: grid; place-items: center; background: var(--brand-50, #f0fdfa); color: var(--brand-700, #0f766e); border: 1px solid var(--brand-200, #99f6e4); }
.el-annee { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.el-annee .pp-icbtn:disabled { opacity: .35; cursor: default; }
.el-annee-t { font-size: 14px; font-weight: 700; color: var(--ink-900, #0f172a); }
.el-periodes { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; margin-top: 12px; }
.el-periode { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 56px; justify-content: center; border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; font: inherit; cursor: pointer; padding: 6px; }
.el-periode:hover { border-color: var(--brand-200, #99f6e4); background: var(--brand-50, #f0fdfa); }
.el-periode--vide { background: #f8fafc; cursor: default; color: #94a3b8; }
.el-periode-n { font-size: 12px; font-weight: 700; color: #475569; }
.el-periode-v { font-size: 15px; font-weight: 800; color: var(--ink-900, #0f172a); }
.el-periode--vide .el-periode-v { color: #cbd5e1; }
.el-lien { border: 0; background: none; padding: 0; font: inherit; font-size: inherit; color: var(--brand-700, #0f766e); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.el-conv { max-height: 320px; overflow-y: auto; padding: 2px; }
@media (max-width: 768px) { .pp-note button.el-lien { min-height: 0 !important; min-width: 0; padding: 4px 0 !important; font-size: inherit !important; vertical-align: baseline; } }
