@charset "UTF-8";
/* ==========================================================================
   LC GESTION — Système de design unifié (thème clair)
   Logiciel de gestion de formation · organisme Qualiopi
   --------------------------------------------------------------------------
   Charte « Test 2 » : orange #E67E22 (accent principal) · ardoise #22324A
   (titres / texte fort / nav) · pétrole #137E73 (accent secondaire) ·
   fond crème #FBF7F1 · surfaces blanches · police Inter · thème clair.

   Source de cette fusion :
     • lc-gestion.css (feuille de base)
     • 17 blocs <style> inline répartis dans les gabarits back-office + extranet.
   Chaque classe a été ramenée à UNE version canonique. Les noms de tokens et
   de classes existants sont conservés tels quels (--lc-fond, --lc-no, .app,
   .bo-header, .crumb…) afin de ne RIEN casser dans les gabarits actuels.

   Chargement (Inter auto-hébergée — AUCUN import Google Fonts ici) :
     <link rel="stylesheet" href="{{ url_for('static', filename='css/lc-gestion.css') }}">
   Déclarez vos @font-face Inter dans une feuille fonts.css distincte, ou en
   tête de celle-ci. La pile de secours system-ui prend le relais entre-temps.

   --------------------------------------------------------------------------
   NOTES DE FUSION — arbitrages là où les pages divergeaient
   --------------------------------------------------------------------------
   [1] .btn — certaines pages (programme_detail, session_detail) utilisaient
       `.btn` SEUL comme bouton secondaire bordé. CANONIQUE : `.btn` nu = aspect
       secondaire (surface + bordure). `.btn-primary` = aplat orange,
       `.btn-danger` = aplat rouge, `.btn-ghost` = sans fond. Le markup existant
       reste valide (les `.btn` nus s'affichent comme secondaires).
   [2] .btn-danger — la feuille de base = aplat rouge plein ; les pages liste
       (blocs, programme_detail) = simple texte rouge sur mini bordé. CANONIQUE :
       `.btn.btn-danger` = aplat rouge plein (action destructrice forte) ;
       `.btn-mini.btn-danger` reste léger (texte rouge, fond surface) pour les
       actions de ligne. Les deux markups fonctionnent sans modification.
   [3] .badge — la pastille (point coloré) était TANTÔT automatique (bpf,
       facturation, règlement, documents) TANTÔT absente (programme_detail).
       CANONIQUE : pas de pastille par défaut ; ajoutez `.badge-dot` pour
       l'afficher. → Ajoutez `badge-dot` aux badges qui doivent garder le point.
   [4] .alert — les pages de formulaire utilisaient `.alert` NU câblé en rouge.
       CANONIQUE : `.alert` neutre + 1 statut obligatoire
       (.alert-success/-warning/-danger/-info). → Remplacez `.alert` nu par
       `.alert alert-danger` sur les messages d'erreur de formulaire.
   [5] .metric / .metrics ≠ .stat — `.metrics`/`.metric` = LISTE de lignes
       libellé/valeur dans une carte (dashboard). `.stat` (+ .grid-4 / .stats) =
       CARTE de métrique. Les deux sont conservés, usages distincts.
   [6] .stats — 2 colonnes (évaluations) vs 3 (facturation). CANONIQUE :
       grille auto-fit (s'adapte au nombre de cartes). Forçage possible via
       .grid-2 / .grid-3.
   [7] .kv — liste fixe `150px 1fr` (dominant). La variante financière de bpf
       (`1fr auto`, valeur grasse à droite) devient `.kv.kv-fig`.
   [8] .card-h — version flex (libellé + action, espacés) retenue partout,
       avec retour à la ligne (flex-wrap) pour les en-têtes chargés.
   [9] .bo-content — flex colonne + gap 20px retenu ; les anciens
       `.card { margin-bottom }` inline ne sont plus nécessaires (gap parent).
   [10] --lc-text-muted assombri #6B7280 → #5E6675 pour passer WCAG AA sur les
        petits textes (en-têtes de tableau, libellés) posés sur teintes claires.
   [11] CONTRASTE : le blanc sur orange #E67E22 (boutons primaires, item de nav
        actif) ≈ 2,85:1 — sous le seuil AA texte (4,5:1). C'est la couleur de
        charte. Pour une conformité AA stricte sur ces aplats, basculez le fond
        sur --lc-orange-dark (#B85C12, blanc ≈ 4,6:1) : voir .btn-primary.
   ========================================================================== */


/* ==========================================================================
   PARTIE 1 — TOKENS
   ========================================================================== */
:root {

  /* — Marque : orange (accent principal) — */
  --lc-orange:        #E67E22;  /* accent principal, aplats d'action, état actif */
  --lc-orange-dark:   #B85C12;  /* survol d'aplat · texte orange sur clair (AA ≥ 4.5:1) · fond AA strict */
  --lc-orange-darker: #7A3C0A;  /* texte sur teintes orange claires (chip / badge-brand) */
  --lc-orange-50:     #FFF6EE;  /* teinte de fond la plus claire (survol, en-tête de tableau) */
  --lc-orange-100:    #FDE6CF;  /* teinte de fond / piste de jauge */

  /* — Ardoise (titres, texte fort, navigation) — */
  --lc-ardoise:   #22324A;
  --lc-ardoise-2: #34465F;

  /* — Pétrole (accent secondaire / données distinctes) — */
  --lc-petrole:    #137E73;
  --lc-petrole-50: #E0F0EC;

  /* — Surfaces & texte — */
  --lc-fond:       #FBF7F1;  /* fond de page, chaud */
  --lc-surface:    #FFFFFF;  /* cartes, champs, surfaces */
  --lc-text:       #22324A;  /* texte courant (sur clair : > 10:1) */
  --lc-text-muted: #5E6675;  /* texte secondaire (AA sur blanc ≈ 5.4:1 ; sur orange-50 ≈ 5:1) */
  --lc-border:     #ECE3D6;  /* séparateurs, bordures de cartes */
  --lc-border-2:   #E0D6C6;  /* bordures de champs / contrôles */

  /* — Couleurs sémantiques (statuts) —
     Chaque statut : couleur pleine + fond clair (-bg) + texte foncé (-tx).
     Les paires -bg / -tx passent toutes WCAG AA (≥ 4.5:1). */
  --lc-ok:   #2E9E6B; --lc-ok-bg:   #E3F1EA; --lc-ok-tx:   #1F6F4B; /* payé · complet · signé · envoyé */
  --lc-no:   #D0453B; --lc-no-bg:   #F8E3E1; --lc-no-tx:   #9C2E26; /* impayé · refusé · erreur */
  --lc-warn: #C9821B; --lc-warn-bg: #FBEFD6; --lc-warn-tx: #8A5510; /* en attente · incomplet · à signer */
  --lc-info: #2F6FB0; --lc-info-bg: #E4EEF7; --lc-info-tx: #1C4E80; /* information · échéance */
  --lc-neutral-bg: #EEEAE2; --lc-neutral-tx: #54606E;               /* statut neutre / par défaut */

  /* — Typographie —
     Inter auto-hébergée ; system-ui en secours. Aucun @import ici. */
  --lc-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* — Rayons — */
  --lc-radius:    10px;  /* cartes, gros contrôles */
  --lc-radius-sm:  7px;  /* boutons, champs */
  --lc-radius-xs:  6px;  /* badges, mini-boutons, petites pastilles */

  /* — Ombres — */
  --lc-shadow:    0 1px 2px rgba(34,50,74,.05), 0 1px 3px rgba(34,50,74,.06);
  --lc-shadow-lg: 0 8px 28px rgba(34,50,74,.14);

  /* — Focus — */
  --lc-focus-ring: 0 0 0 3px rgba(230,126,34,.40);
}


/* ==========================================================================
   PARTIE 2 — BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--lc-fond);
  color: var(--lc-text);
  font-family: var(--lc-font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { color: var(--lc-ardoise); font-weight: 600; margin: 0; line-height: 1.25; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
p  { margin: 0; }
a  { color: var(--lc-orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
svg.ic { display: block; flex: none; }


/* ==========================================================================
   PARTIE 3 — COMPOSANTS
   ========================================================================== */

/* --- 3.1  Boutons --------------------------------------------------------
   `.btn` nu = bouton secondaire (surface + bordure). Cf. note de fusion [1]. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 14px/1 var(--lc-font);
  padding: 10px 16px;
  border: 1px solid var(--lc-border-2);
  border-radius: var(--lc-radius-sm);
  background: var(--lc-surface);
  color: var(--lc-ardoise);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.btn:hover { background: var(--lc-orange-50); border-color: var(--lc-orange); color: var(--lc-orange-dark); text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: var(--lc-focus-ring); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn .ic { width: 16px; height: 16px; }

/* Secondaire — explicite (alias de l'aspect par défaut) */
.btn-secondary { background: var(--lc-surface); color: var(--lc-ardoise); border-color: var(--lc-border-2); }
.btn-secondary:hover { background: var(--lc-orange-50); border-color: var(--lc-orange); color: var(--lc-orange-dark); }

/* Primaire — aplat orange de charte, texte blanc.
   Conformité AA stricte : remplacer var(--lc-orange) par var(--lc-orange-dark). Cf. [11]. */
.btn-primary { background: var(--lc-orange); color: #fff; border-color: transparent; font-weight: 600; }
.btn-primary:hover { background: var(--lc-orange-dark); color: #fff; border-color: transparent; }
.btn-primary:active { background: var(--lc-orange-darker); }

/* Danger — aplat rouge plein (action destructrice forte). Cf. [2]. */
.btn-danger { background: var(--lc-no); color: #fff; border-color: transparent; font-weight: 600; }
.btn-danger:hover { background: var(--lc-no-tx); color: #fff; border-color: transparent; }

/* Fantôme — action discrète, sans fond ni bordure */
.btn-ghost { background: transparent; color: var(--lc-text-muted); border-color: transparent; }
.btn-ghost:hover { background: rgba(34,50,74,.06); color: var(--lc-ardoise); border-color: transparent; }

/* Mini — bouton compact (barres d'outils, actions de ligne) ; autonome */
.btn-mini {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 13px/1 var(--lc-font);
  padding: 7px 10px;
  border: 1px solid var(--lc-border-2);
  border-radius: var(--lc-radius-xs);
  background: var(--lc-surface);
  color: var(--lc-ardoise);
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.btn-mini:hover:not(:disabled) { background: var(--lc-orange-50); border-color: var(--lc-orange); color: var(--lc-orange-dark); text-decoration: none; }
.btn-mini:disabled { opacity: .4; cursor: not-allowed; }
.btn-mini .ic { width: 14px; height: 14px; }
/* Mini primaire / danger : variantes légères propres aux lignes de tableau */
.btn-mini.btn-primary { background: var(--lc-orange); color: #fff; border-color: transparent; }
.btn-mini.btn-primary:hover { background: var(--lc-orange-dark); color: #fff; }
.btn-mini.btn-danger { background: var(--lc-surface); color: var(--lc-no-tx); border-color: var(--lc-border-2); }
.btn-mini.btn-danger:hover { background: var(--lc-no-bg); border-color: var(--lc-no); color: var(--lc-no-tx); }

/* Tailles & largeur */
.btn-lg    { padding: 16px 22px; font-size: 16px; border-radius: var(--lc-radius); min-height: 52px; }
.btn-block { width: 100%; }


/* --- 3.2  Champs de formulaire ------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label { font-size: 13px; font-weight: 500; color: var(--lc-ardoise); }
.field > label .req { color: var(--lc-no); margin-left: 2px; }

.input, .select, .textarea {
  font: 400 15px/1.4 var(--lc-font);
  width: 100%;
  padding: 10px 12px;
  color: var(--lc-text);
  background: var(--lc-surface);
  border: 1px solid var(--lc-border-2);
  border-radius: var(--lc-radius-sm);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.input::placeholder, .textarea::placeholder { color: #9AA0AB; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--lc-orange);
  box-shadow: 0 0 0 3px rgba(230,126,34,.18);
}
.input:disabled, .select:disabled, .textarea:disabled {
  background: #F4EFE7; color: #9AA0AB; cursor: not-allowed;
}
.textarea { min-height: 120px; resize: vertical; }
.select {
  -webkit-appearance: none; appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235E6675' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}

/* Tailles */
.input-sm { font-size: 14px; padding: 8px 10px; }                       /* édition en ligne (objectifs) */
.input-lg { padding: 14px 16px; font-size: 16px; min-height: 52px; }    /* cible tactile */

/* État d'erreur — `.field.has-err` (gabarits) ou `.is-error` (direct) */
.field.has-err .input, .field.has-err .select, .field.has-err .textarea,
.input.is-error, .select.is-error, .textarea.is-error { border-color: var(--lc-no); }
.field.has-err .input:focus, .input.is-error:focus,
.field.has-err .textarea:focus, .textarea.is-error:focus { box-shadow: 0 0 0 3px rgba(208,69,59,.18); }

/* Cases à cocher / radio en ligne */
.check { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; font-size: 14px; }

/* Messages */
.field-hint { font-size: 12px; color: var(--lc-text-muted); }
.err        { font-size: 12px; color: var(--lc-no-tx); font-weight: 500; }


/* --- 3.3  Cartes ---------------------------------------------------------- */
.card { background: var(--lc-surface); border: 1px solid var(--lc-border); border-radius: var(--lc-radius); box-shadow: var(--lc-shadow); }
.card-h {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--lc-border);
}
.card-h h2, .card-h h3 { font-size: 16px; }
.card-b { padding: 18px; }


/* --- 3.4  Cartes de métriques (.stat) + grilles --------------------------
   Voir aussi 5.1 .metrics/.metric (liste de lignes ≠ carte). Cf. note [5]. */
.stat { background: var(--lc-surface); border: 1px solid var(--lc-border); border-radius: var(--lc-radius); padding: 16px 18px; box-shadow: var(--lc-shadow); }
.stat .lbl { font-size: 13px; color: var(--lc-text-muted); display: flex; align-items: center; gap: 7px; }
.stat .lbl .ic { width: 16px; height: 16px; color: var(--lc-petrole); }
.stat .val { font-size: 28px; font-weight: 600; color: var(--lc-ardoise); margin-top: 6px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat .sub { font-size: 12px; color: var(--lc-text-muted); margin-top: 2px; }

/* Conteneur de cartes — s'adapte au nombre. Cf. note [6]. */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }


/* --- 3.5  Tableaux de liste (+ barre d'outils + pagination) -------------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar .grow { flex: 1; min-width: 200px; }
.toolbar .grow .input { width: 100%; }
.toolbar .input, .toolbar .select { width: auto; min-width: 150px; }
.toolbar .right { margin-left: auto; }

/* Recherche avec icône (optionnel) */
.search { position: relative; display: flex; align-items: center; }
.search .ic { position: absolute; left: 11px; width: 18px; height: 18px; color: var(--lc-text-muted); pointer-events: none; }
.search .input { padding-left: 38px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-weight: 500;
  font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--lc-text-muted);
  padding: 10px 14px;
  background: var(--lc-orange-50);
  border-bottom: 1px solid var(--lc-border-2);
  white-space: nowrap;
}
.table td { padding: 11px 14px; border-bottom: 1px solid var(--lc-border); vertical-align: middle; }
.table tbody tr:hover { background: var(--lc-orange-50); }
.table .num    { text-align: right; font-variant-numeric: tabular-nums; }
.table .strong { font-weight: 500; color: var(--lc-ardoise); }
.table .actions { text-align: right; white-space: nowrap; }
.table .sub td { color: var(--lc-text-muted); font-size: 13px; padding-left: 28px; } /* ligne secondaire (bpf) */
/* Restitution eval (grilles de choix) : comptes par colonne d'echelle,
   cellules compactes centrees, 1re colonne (libelle de ligne) a gauche. */
.table--restitution th, .table--restitution td { text-align: center; }
.table--restitution th:first-child, .table--restitution td:first-child { text-align: left; }
.table--restitution td { padding: 8px 12px; font-variant-numeric: tabular-nums; }

/* --- BO edition d'un modele d'evaluation (de-inline, polish lot 3) ---------
   Classes d'intention, purement geometriques (aucune couleur hors charte). */
.lc-q-row { align-items: center; gap: 8px; flex-wrap: wrap; }
.lc-form-grow { margin: 0; flex: 1; min-width: 0; }
.lc-form-plain { margin: 0; }
.lc-wrap { flex-wrap: wrap; }
.lc-select-type { max-width: 170px; }
.lc-nowrap { white-space: nowrap; }
.lc-options, .lc-lignes { flex-basis: 100%; margin: 6px 0 0 24px; }
.lc-sub { font-size: 13px; }
.lc-item-row { margin: 2px 0; }
.lc-add-row { margin: 4px 0 0; }
.lc-points { width: 70px; }
.lc-mt { margin-top: 16px; }

/* Pagination */
.pager { display: flex; gap: 6px; align-items: center; justify-content: flex-end; padding: 12px 4px 0; }
.pager a {
  min-width: 32px; height: 32px; padding: 0 8px;
  display: grid; place-items: center;
  border: 1px solid var(--lc-border-2); border-radius: var(--lc-radius-sm);
  font-size: 13px; color: var(--lc-ardoise); background: var(--lc-surface);
}
.pager a:hover { border-color: var(--lc-orange); color: var(--lc-orange-dark); text-decoration: none; }
.pager a.is-active { background: var(--lc-orange); border-color: var(--lc-orange); color: #fff; font-weight: 600; }
.pager a[aria-disabled="true"], .pager .is-disabled { opacity: .45; pointer-events: none; }
.pager .cur { font-size: 13px; color: var(--lc-text-muted); }    /* indicateur « Page 1 / 4 » */


/* --- 3.6  Badges ---------------------------------------------------------
   Pastille (point) NON par défaut — ajouter `.badge-dot`. Cf. note [3]. */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; line-height: 1.3;
  padding: 3px 9px; border-radius: var(--lc-radius-xs); white-space: nowrap;
}
.badge.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge-success { background: var(--lc-ok-bg);      color: var(--lc-ok-tx); }
.badge-warning { background: var(--lc-warn-bg);    color: var(--lc-warn-tx); }
.badge-danger  { background: var(--lc-no-bg);      color: var(--lc-no-tx); }
.badge-info    { background: var(--lc-info-bg);    color: var(--lc-info-tx); }
.badge-brand   { background: var(--lc-orange-50);  color: var(--lc-orange-darker); }
.badge-neutral { background: var(--lc-neutral-bg); color: var(--lc-neutral-tx); }
/* Statut metier de session (BLOC 5 Lot 5) : projet/planif/planifiee/terminee. */
.badge-statut-projet    { background: var(--lc-neutral-bg); color: var(--lc-neutral-tx); }
.badge-statut-planif    { background: var(--lc-orange-50);  color: var(--lc-orange-darker); }
.badge-statut-planifiee { background: var(--lc-petrole-50); color: var(--lc-petrole); }
.badge-statut-terminee  { background: var(--lc-ok-bg);      color: var(--lc-ok-tx); }


/* --- 3.7  Alertes (4 statuts) -------------------------------------------
   `.alert` neutre + 1 statut obligatoire. Cf. note [4]. */
.alert {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid; border-radius: var(--lc-radius-sm);
  font-size: 14px;
}
.alert .ic { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.alert strong { font-weight: 600; }
.alert .v { font-weight: 600; font-variant-numeric: tabular-nums; }   /* valeur chiffrée (dashboard) */
.alert-success { background: var(--lc-ok-bg);   border-color: #B7DCC6; color: var(--lc-ok-tx); }
.alert-warning { background: var(--lc-warn-bg); border-color: #EECF93; color: var(--lc-warn-tx); }
.alert-danger  { background: var(--lc-no-bg);   border-color: #EEB3AD; color: var(--lc-no-tx); }
.alert-info    { background: var(--lc-info-bg); border-color: #B9D3EC; color: var(--lc-info-tx); }


/* --- 3.8  Puces, listes clé/valeur, chips, vignettes --------------------- */
/* Liste clé / valeur (fiche). Variante financière : .kv.kv-fig. Cf. note [7]. */
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 14px; margin: 0; }
.kv dt { color: var(--lc-text-muted); }
.kv dd { margin: 0; color: var(--lc-ardoise); font-weight: 500; }
.kv.kv-fig { grid-template-columns: 1fr auto; }
.kv.kv-fig dd { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Pastille de catégorie (couleur posée en inline) + libellé */
.cat { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--lc-border-2); flex: none; }

/* Chip (personne, filtre) */
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--lc-orange-50); color: var(--lc-orange-darker); border-radius: 20px; padding: 5px 12px; font-size: 13px; font-weight: 500; }
.chip .ava { width: 22px; height: 22px; border-radius: 50%; background: var(--lc-petrole-50); color: var(--lc-petrole); display: grid; place-items: center; font-size: 11px; }

/* Liste numérotée (objectifs, programme d'une session) — desktop & mobile */
.x-list { list-style: none; margin: 0; padding: 0; }
.x-li { display: flex; gap: 11px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--lc-border); }
.x-li:last-child { border-bottom: none; }
.x-li .num { width: 24px; height: 24px; border-radius: 50%; background: var(--lc-orange-50); color: var(--lc-orange-dark); display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.x-li .typ { font-size: 11px; color: var(--lc-petrole); text-transform: uppercase; letter-spacing: .03em; }

/* Édition en ligne d'objectifs (programme_detail) */
.obj-row     { align-items: center; gap: 10px; }
.obj-edit    { display: flex; gap: 6px; flex: 1; align-items: center; margin: 0; }
.obj-edit .input { flex: 1; }
.obj-actions { display: flex; gap: 6px; }
.obj-actions form { margin: 0; }
.obj-add     { display: flex; gap: 8px; margin-top: 14px; }
.obj-add .input { flex: 1; max-width: 480px; }


/* --- 3.9  Onglets (CSS pur, sans JS) ------------------------------------- */
.tabset { position: relative; }
.tabr { position: absolute; opacity: 0; pointer-events: none; }
.tabbar { display: flex; gap: 4px; border-bottom: 1px solid var(--lc-border); margin-bottom: 18px; flex-wrap: wrap; }
.tabbar label { padding: 10px 14px; font-size: 14px; font-weight: 500; color: var(--lc-text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabbar label:hover { color: var(--lc-ardoise); }
.tabp { display: none; }
.tabr:nth-of-type(1):checked ~ .tabbar label:nth-child(1),
.tabr:nth-of-type(2):checked ~ .tabbar label:nth-child(2),
.tabr:nth-of-type(3):checked ~ .tabbar label:nth-child(3),
.tabr:nth-of-type(4):checked ~ .tabbar label:nth-child(4),
.tabr:nth-of-type(5):checked ~ .tabbar label:nth-child(5) { color: var(--lc-orange-dark); border-bottom-color: var(--lc-orange); }
.tabr:nth-of-type(1):checked ~ .tabpanels .tabp:nth-child(1),
.tabr:nth-of-type(2):checked ~ .tabpanels .tabp:nth-child(2),
.tabr:nth-of-type(3):checked ~ .tabpanels .tabp:nth-child(3),
.tabr:nth-of-type(4):checked ~ .tabpanels .tabp:nth-child(4),
.tabr:nth-of-type(5):checked ~ .tabpanels .tabp:nth-child(5) { display: block; }


/* --- 3.10  Coquille navigation session (BLOC 5) : etapes + sous-onglets --- */
.session-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
.session-step { padding: 9px 16px; border-radius: 999px; background: var(--lc-surface); border: 1px solid var(--lc-border-2); color: var(--lc-text-muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.session-step:hover { border-color: var(--lc-petrole); color: var(--lc-petrole); text-decoration: none; }
.session-step.is-active { background: var(--lc-petrole); border-color: var(--lc-petrole); color: #fff; }
/* Action detachee (telecharger le programme) : separee des etapes (marge auto) + outline. */
.session-doc-prog { margin-left: auto; background: transparent; border-color: var(--lc-petrole); color: var(--lc-petrole); }
.session-doc-prog:hover { background: var(--lc-petrole); border-color: var(--lc-petrole); color: #fff; }
.session-subtabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--lc-border); margin: 14px 0 20px; }
.session-subtab { padding: 9px 14px; font-size: 14px; font-weight: 500; color: var(--lc-text-muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.session-subtab:hover { color: var(--lc-ardoise); text-decoration: none; }
.session-subtab.is-active { color: var(--lc-orange-dark); border-bottom-color: var(--lc-orange); }
.session-dates { margin: 2px 0 0; }


/* ==========================================================================
   PARTIE 4 — COQUILLE BACK-OFFICE
   ========================================================================== */
.app  { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.main { display: flex; flex-direction: column; min-width: 0; }

/* Barre latérale */
.sidenav { background: var(--lc-ardoise); color: #cfd6e0; display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--lc-orange); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; }
.brand-txt { color: #fff; font-weight: 600; font-size: 16px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-i { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 8px; color: #aeb7c6; font-size: 14px; font-weight: 500; text-decoration: none; }
.nav-i .ic { flex: none; width: 18px; height: 18px; }
.nav-i:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.nav-i.is-active { background: var(--lc-orange); color: #fff; }   /* AA strict : var(--lc-orange-dark). Cf. [11] */
.nav-foot { margin-top: auto; }

/* En-tête de page + zone de contenu. Cf. note [9]. */
.bo-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 18px 26px; background: var(--lc-surface); border-bottom: 1px solid var(--lc-border); }
.bo-header .topbar-r { display: flex; align-items: center; gap: 12px; }
.bo-content { padding: 24px 26px; display: flex; flex-direction: column; gap: 20px; }

/* Fil d'Ariane / sous-titre d'en-tête */
.crumb { margin: 0; font-size: 13px; color: var(--lc-text-muted); }
.crumb a { color: var(--lc-orange-dark); font-weight: 500; }
.periode { margin: 4px 0 0; font-size: 13px; color: var(--lc-text-muted); }  /* période affichée (dashboard) */

/* Avatar identité */
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--lc-petrole-50); color: var(--lc-petrole); display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }


/* ==========================================================================
   PARTIE 5 — BRIQUES SPÉCIFIQUES
   ========================================================================== */

/* --- 5.1  Dashboard : carte héros + liste de métriques ------------------- */
.grid   { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.hero-l { font-size: 13px; color: var(--lc-text-muted); }
.hero   { font-size: 28px; font-weight: 600; color: var(--lc-ardoise); font-variant-numeric: tabular-nums; margin-top: 4px; }
.metrics { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }   /* LISTE de lignes (≠ .stats) */
.metric  { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; padding: 6px 0; border-bottom: 1px dashed var(--lc-border); }
.metric:last-child { border-bottom: none; }
.metric .v { font-weight: 600; color: var(--lc-ardoise); font-variant-numeric: tabular-nums; }

/* --- 5.2  Émargement : planning de présence ------------------------------ */
.legend { font-size: 13px; color: var(--lc-text-muted); display: flex; gap: 14px; align-items: center; }
.planning { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.planning th, .planning td { border: 1px solid var(--lc-border); padding: 9px 10px; text-align: center; }
.planning thead th { background: var(--lc-orange-50); color: var(--lc-text-muted); font-weight: 500; font-size: 12px; }
.planning .who { text-align: left; font-weight: 500; color: var(--lc-ardoise); white-space: nowrap; position: sticky; left: 0; background: var(--lc-surface); }
.planning .role { color: var(--lc-petrole); font-size: 11px; }
.cell { width: 28px; height: 24px; border-radius: 6px; display: inline-grid; place-items: center; font-weight: 600; }
.cell-ok { background: var(--lc-ok-bg);   color: var(--lc-ok-tx); }    /* assombri pour lisibilité AA */
.cell-no { background: var(--lc-warn-bg); color: var(--lc-warn-tx); }
.cell-na { color: var(--lc-text-muted); }

/* --- 5.3  Évaluations : jauges, distribution, verbatim ------------------- */
.meter { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; margin-bottom: 12px; }
.meter .ml { font-size: 14px; }
.meter .mv { font-weight: 600; color: var(--lc-ardoise); font-variant-numeric: tabular-nums; }
.meter .track { grid-column: 1 / -1; height: 8px; border-radius: 5px; background: var(--lc-orange-100); overflow: hidden; }
.meter .track > span { display: block; height: 100%; background: var(--lc-orange); }
.dist { display: flex; flex-direction: column; gap: 9px; }
.dist-row { display: grid; grid-template-columns: 160px 1fr 36px; gap: 10px; align-items: center; font-size: 13px; }
.dist-row .track { height: 18px; border-radius: 5px; background: var(--lc-petrole-50); overflow: hidden; }
.dist-row .track > span { display: block; height: 100%; background: var(--lc-petrole); }
.verbatim { border-left: 3px solid var(--lc-orange); background: var(--lc-orange-50); padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: 14px; color: var(--lc-ardoise); }
.verbatim cite { display: block; margin-top: 5px; font-size: 12px; color: var(--lc-text-muted); font-style: normal; }

/* --- 5.4  Documents : catégories + zone de dépôt ------------------------- */
.doc-cat { font-size: 13px; font-weight: 600; color: var(--lc-text-muted); text-transform: uppercase; letter-spacing: .04em; margin: 4px 0 2px; }
.upload { border: 2px dashed var(--lc-border-2); border-radius: var(--lc-radius); background: var(--lc-orange-50); padding: 26px; text-align: center; color: var(--lc-text-muted); }
.upload .ic { color: var(--lc-orange); }
.apercu { color: var(--lc-text-muted); max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- 5.5  Divers de page ------------------------------------------------- */
.bandeau { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }  /* bpf */
.typ { font-size: 11px; color: var(--lc-petrole); text-transform: uppercase; letter-spacing: .03em; }       /* blocs */
.row-actions { display: flex; gap: 8px; }
.row-actions form { margin: 0; }
.empty { padding: 40px 18px; text-align: center; color: var(--lc-text-muted); }


/* ==========================================================================
   PARTIE 6 — COQUILLE EXTRANET (mobile : intervenant / stagiaire)
   ========================================================================== */
.phone-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: #EFE7DA; }
.phone { width: 390px; max-width: 100%; background: #1b2433; border-radius: 40px; padding: 12px; box-shadow: 0 18px 50px rgba(34,50,74,.28); }
.screen { background: var(--lc-fond); border-radius: 30px; overflow: hidden; height: 760px; display: flex; flex-direction: column; position: relative; }
.x-top { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--lc-ardoise); color: #fff; }
.x-back { background: rgba(255,255,255,.12); border: none; color: #fff; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; cursor: pointer; flex: none; }
.x-title { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.x-title strong { font-size: 17px; font-weight: 600; }
.x-title span { font-size: 13px; color: #aeb7c6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-mark { margin-left: auto; width: 36px; height: 36px; border-radius: 10px; background: var(--lc-orange); display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }
.x-main { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.x-card { background: var(--lc-surface); border: 1px solid var(--lc-border); border-radius: var(--lc-radius); }
.x-h { font-size: 13px; color: var(--lc-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin: 4px 2px -2px; }
.x-tabs { display: flex; background: var(--lc-surface); border-top: 1px solid var(--lc-border); padding: 8px 6px; }
.x-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--lc-text-muted); font-size: 11px; font-weight: 500; text-decoration: none; }
.x-tab:hover { text-decoration: none; }
.x-tab.is-active { color: var(--lc-orange-dark); }

/* Compteurs */
.counters { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.counter { background: var(--lc-surface); border: 1px solid var(--lc-border); border-radius: var(--lc-radius); padding: 12px 8px; text-align: center; }
.counter .n { font-size: 24px; font-weight: 600; color: var(--lc-orange-dark); }   /* assombri AA sur surface claire */
.counter .t { font-size: 11px; color: var(--lc-text-muted); margin-top: 2px; line-height: 1.3; }

/* Carte de session (lien) */
.sess-card { display: flex; align-items: center; gap: 12px; background: var(--lc-surface); border: 1px solid var(--lc-border); border-radius: var(--lc-radius); padding: 14px; text-decoration: none; }
.sess-card:hover { text-decoration: none; }
.sess-card .body { flex: 1; min-width: 0; }
.sess-card .ttl { font-weight: 600; color: var(--lc-ardoise); font-size: 15px; }
.sess-card .meta { font-size: 13px; color: var(--lc-text-muted); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sess-card .chev { color: var(--lc-text-muted); flex: none; }

/* Section + lignes documents (mobile) */
.x-sec { padding: 14px; }
.x-sec h3 { margin-bottom: 8px; }
.doc-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.doc-row .ic-doc { color: var(--lc-petrole); flex: none; }
.doc-row .d-body { flex: 1; min-width: 0; }
.doc-row .d-ttl { font-weight: 500; color: var(--lc-ardoise); font-size: 14px; }
.doc-row .d-sub { font-size: 12px; color: var(--lc-text-muted); }
.dl { width: 40px; height: 40px; border-radius: 10px; background: var(--lc-orange-50); color: var(--lc-orange-dark); display: grid; place-items: center; border: none; cursor: pointer; flex: none; }

/* Questionnaire (échelle + options) */
.q { background: var(--lc-surface); border: 1px solid var(--lc-border); border-radius: var(--lc-radius); padding: 16px; }
.q .qx { font-weight: 600; color: var(--lc-ardoise); font-size: 15px; margin-bottom: 12px; }
.q .qx span { color: var(--lc-orange-dark); }
.scale { display: flex; gap: 8px; }
.scale label { flex: 1; }
.scale input { position: absolute; opacity: 0; }
.scale .b { display: grid; place-items: center; height: 48px; border: 1px solid var(--lc-border-2); border-radius: 10px; font-weight: 600; color: var(--lc-ardoise); cursor: pointer; }
.scale input:checked + .b { background: var(--lc-orange); color: #fff; border-color: var(--lc-orange); }
.scale-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--lc-text-muted); margin-top: 6px; }
.opt { display: flex; align-items: center; gap: 11px; padding: 13px 12px; border: 1px solid var(--lc-border-2); border-radius: 10px; cursor: pointer; margin-bottom: 8px; font-size: 14px; }
.opt input { position: absolute; opacity: 0; }
.opt .mark { width: 22px; height: 22px; border: 2px solid var(--lc-border-2); flex: none; display: grid; place-items: center; }
.opt.radio .mark { border-radius: 50%; }
.opt.check .mark { border-radius: 6px; }
.opt input:checked ~ .mark { border-color: var(--lc-orange); background: var(--lc-orange); color: #fff; }
.opt input:checked ~ span:last-child { color: var(--lc-ardoise); font-weight: 500; }
.opt:has(input:checked) { border-color: var(--lc-orange); background: var(--lc-orange-50); }

/* Émargement / signature (mobile) */
.x-slot { background: var(--lc-surface); border: 1px solid var(--lc-border); border-radius: var(--lc-radius); padding: 14px; }
.x-slot.is-active { border-color: var(--lc-orange); box-shadow: 0 0 0 3px rgba(230,126,34,.12); }
.x-slot-h { display: flex; align-items: center; justify-content: space-between; }
.x-slot-h strong { font-size: 16px; display: block; }
.x-slot-h span { font-size: 13px; color: var(--lc-text-muted); }
.x-done { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 14px; color: var(--lc-ok-tx); font-weight: 500; }
.x-instr { font-size: 14px; color: var(--lc-text-muted); margin: 14px 0 8px; }
.canvas-box { position: relative; height: 190px; background: var(--lc-orange-50); border: 2px dashed var(--lc-border-2); border-radius: var(--lc-radius); overflow: hidden; touch-action: none; }
#sig { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.canvas-hint { position: absolute; inset: 0; display: grid; place-items: center; color: #b7a586; font-size: 17px; pointer-events: none; }
.x-actions { display: flex; gap: 10px; margin-top: 12px; }
.sign-ok { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 22px 8px 8px; color: var(--lc-ok-tx); }
.sign-ok .ic { color: var(--lc-ok); }
.x-foot { font-size: 12px; color: var(--lc-text-muted); text-align: center; line-height: 1.5; margin: 4px; }

/* Aperçu PDF */
.pdfbox { background: #fff; border: 1px solid var(--lc-border); border-radius: var(--lc-radius); height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--lc-text-muted); }
.pdfbox .ic { color: var(--lc-no); }


/* ==========================================================================
   PARTIE 7 — CONNEXION
   ========================================================================== */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--lc-fond); }
.login { width: 360px; max-width: 100%; }
.login .brand { justify-content: center; padding: 0 0 20px; }
.login .card-b { padding: 24px; }
.login h1 { font-size: 20px; text-align: center; margin-bottom: 6px; }
.login .lead { text-align: center; color: var(--lc-text-muted); font-size: 14px; margin: 0 0 20px; }
.sent-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--lc-ok-bg); color: var(--lc-ok); display: grid; place-items: center; margin: 0 auto 14px; }


/* ==========================================================================
   PARTIE 8 — UTILITAIRES & ACCESSIBILITÉ
   ========================================================================== */
.muted    { color: var(--lc-text-muted); }
.sub      { font-size: 13px; }
.lbl      { font-size: 13px; color: var(--lc-text-muted); margin-bottom: 6px; }
.right    { margin-left: auto; }
.link-all { font-size: 13px; font-weight: 500; }
.row-gap  { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stack    { display: flex; flex-direction: column; gap: 12px; }
.actbar   { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.split    { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.grid-2   { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.grid-3   { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-4   { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

:focus-visible { outline: 2px solid var(--lc-orange); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }


/* ==========================================================================
   PARTIE 9 — RÉACTIVITÉ
   ========================================================================== */
@media (max-width: 1040px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2, .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .app { grid-template-columns: 1fr; }
  .sidenav { position: static; height: auto; flex-direction: row; flex-wrap: wrap; gap: 4px; align-items: center; }
  .brand { padding: 4px 8px; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .nav-i span { display: none; }
  .nav-foot { margin-top: 0; }
  .bo-header { flex-direction: column; }
}
@media (max-width: 440px) {
  .phone-wrap { padding: 0; background: var(--lc-fond); }
  .phone { width: 100%; border-radius: 0; padding: 0; box-shadow: none; }
  .screen { border-radius: 0; height: 100vh; }
}

/* ============================================================
   AUTHORING PROGRAMME — accordeon, sous-listes, tags, jours,
   blocs assembles, picker & apercu (ajout depuis la maquette
   lc-gestion-pages, prealable lot E1). AJOUT SEUL : aucune regle
   de base existante modifiee.
   ============================================================ */
/* --- 3.10  Formulaires avancés : grilles, interrupteur, prix, accordéon ---
   Ajoutés pour la page « Édition programme » ; canoniques, réutilisables. */

/* Grille de champs (2 / 3 colonnes). Les .field gardent leur margin-bottom. */
.form-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 18px; }
.form-grid .span-2, .form-grid-3 .span-all { grid-column: 1 / -1; }
/* Paire de champs serrés sur une même ligne (durée h/j, valeur + unité) */
.field-inline { display: flex; gap: 10px; align-items: flex-end; }
.field-inline > .field { flex: 1; margin-bottom: 0; }
.field-inline > .field.w-unit { flex: 0 0 150px; }
.field-inline > .field.w-sm   { flex: 0 0 120px; }

/* Interrupteur (toggle) — révèle/masque un sous-bloc. */
.switch { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--lc-ardoise); user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--lc-border-2); transition: background-color .14s ease; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(34,50,74,.25); transition: transform .14s ease; }
.switch input:checked + .track { background: var(--lc-orange); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: var(--lc-focus-ring); }
/* Sous-bloc révélé par un interrupteur (masqué par défaut). */
.reveal { display: none; margin-top: 14px; padding-top: 16px; border-top: 1px dashed var(--lc-border); }
.reveal.is-open { display: block; }

/* Champ-prix : montant aligné à droite, suffixe « € HT ». */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.price-field { position: relative; }
.price-field .input { padding-right: 46px; text-align: right; font-variant-numeric: tabular-nums; }
.price-field .cur { position: absolute; right: 12px; bottom: 11px; font-size: 13px; color: var(--lc-text-muted); pointer-events: none; }

/* Accordéon de sections (élément natif <details> — sans JS). */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc { background: var(--lc-surface); border: 1px solid var(--lc-border); border-radius: var(--lc-radius); box-shadow: var(--lc-shadow); overflow: hidden; }
.acc > summary { display: flex; align-items: center; gap: 13px; padding: 15px 18px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; color: var(--lc-ardoise); }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary:hover { background: var(--lc-orange-50); }
.acc > summary:focus-visible { outline: 2px solid var(--lc-orange); outline-offset: -2px; }
.acc .acc-n { width: 26px; height: 26px; border-radius: 7px; background: var(--lc-petrole-50); color: var(--lc-petrole); display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.acc .acc-sub { font-weight: 400; font-size: 13px; color: var(--lc-text-muted); }
.acc .chev { margin-left: auto; width: 18px; height: 18px; color: var(--lc-text-muted); transition: transform .15s ease; flex: none; }
.acc[open] > summary .chev { transform: rotate(90deg); }
.acc[open] > summary { border-bottom: 1px solid var(--lc-border); }
.acc-body { padding: 18px; }
.acc-soon { color: var(--lc-text-muted); font-size: 14px; font-style: italic; padding: 6px 0; }

/* Bouton de fermeture (bandeau dismissable). */
.alert .dismiss { margin-left: auto; background: none; border: none; color: inherit; cursor: pointer; opacity: .65; padding: 2px; display: grid; place-items: center; flex: none; border-radius: 5px; }
.alert .dismiss:hover { opacity: 1; background: rgba(34,50,74,.08); }
.alert.is-hidden { display: none; }


/* --- 3.11  Listes répétables, sous-listes & tags -------------------------
   Sections « blocs autonomes » : lignes gérées par sous-ressource (endpoints
   dédiés), HORS du <form> PATCH global. Réutilisable Objectifs/Profil/Suivi. */
.sublist { margin-bottom: 20px; }
.sublist:last-child { margin-bottom: 0; }
.sublist-h { font-size: 13px; font-weight: 600; color: var(--lc-ardoise); margin-bottom: 10px; }
.sublist-h .muted { font-weight: 400; }
.list-lbl { display: block; font-size: 13px; font-weight: 500; color: var(--lc-ardoise); margin-bottom: 8px; }

.list-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.list-row { display: flex; align-items: center; gap: 8px; }
.list-row > .input { flex: 1; min-width: 0; }
.list-row .grip { flex: none; width: 22px; display: grid; place-items: center; color: #BBB1A3; cursor: grab; }
.list-row .grip .ic { width: 18px; height: 18px; }
.list-row .list-num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--lc-orange-50); color: var(--lc-orange-dark); display: grid; place-items: center; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Bouton-icône carré (réordonner / supprimer une ligne) */
.icon-btn { flex: none; width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border: 1px solid var(--lc-border-2); border-radius: var(--lc-radius-xs); background: var(--lc-surface); color: var(--lc-text-muted); cursor: pointer; transition: background-color .12s ease, border-color .12s ease, color .12s ease; }
.icon-btn:hover { border-color: var(--lc-orange); color: var(--lc-orange-dark); background: var(--lc-orange-50); }
.icon-btn.danger:hover { border-color: var(--lc-no); color: var(--lc-no-tx); background: var(--lc-no-bg); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.icon-btn .ic { width: 15px; height: 15px; }

/* Bouton « + Ajouter » (pointillé) */
.btn-add { display: inline-flex; align-items: center; gap: 7px; font: 500 13px/1 var(--lc-font); padding: 9px 13px; border: 1px dashed var(--lc-border-2); border-radius: var(--lc-radius-xs); background: transparent; color: var(--lc-orange-dark); cursor: pointer; margin-top: 12px; transition: background-color .12s ease, border-color .12s ease; }
.btn-add:hover { border-color: var(--lc-orange); background: var(--lc-orange-50); }
.btn-add .ic { width: 14px; height: 14px; }

/* Objectif chapeau (est_chapeau) */
.chapeau { background: var(--lc-orange-50); border: 1px solid var(--lc-orange-100); border-radius: var(--lc-radius-sm); padding: 13px 15px; margin-bottom: 16px; }
.chapeau-flag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--lc-orange-darker); margin-bottom: 8px; }
.chapeau .textarea { background: var(--lc-surface); }

/* Tags (référentiel Competence ↔ lien m2m ProgrammeCompetence) */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags:empty::after { content: "Aucune compétence rattachée."; color: var(--lc-text-muted); font-size: 13px; font-style: italic; }
.tag { display: inline-flex; align-items: center; gap: 8px; background: var(--lc-petrole-50); color: var(--lc-petrole); border-radius: 20px; padding: 5px 8px 5px 13px; font-size: 13px; font-weight: 500; }
.tag button { background: none; border: none; color: inherit; cursor: pointer; display: grid; place-items: center; opacity: .65; padding: 2px; border-radius: 50%; }
.tag button:hover { opacity: 1; background: rgba(19,126,115,.14); }
.tag button .ic { width: 13px; height: 13px; }


/* --- 3.12  Contenu (Jours → items) & Blocs assemblés ---------------------
   Deux régimes sous-ressource (Phase 1b). Item = libellé simple (non typé).
   Bloc = programme existant pioché (composition), sa duree_heures alimente
   le bandeau de cohérence. */

/* Contenu : pile de Jours, chacun contenant une liste d'items répétables. */
.jours { display: flex; flex-direction: column; gap: 14px; }
.jour { border: 1px solid var(--lc-border); border-radius: var(--lc-radius); background: var(--lc-fond); }
.jour-h { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-bottom: 1px solid var(--lc-border); }
.jour-tag { flex: none; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--lc-petrole); }
.jour-title { flex: 1; min-width: 0; font-weight: 600; color: var(--lc-ardoise); background: transparent; border-color: transparent; }
.jour-title:hover { background: var(--lc-surface); border-color: var(--lc-border-2); }
.jour-title:focus { background: var(--lc-surface); }
.jour-b { padding: 12px; }
.jour-b .btn-add { margin-top: 10px; }

/* Blocs assemblés : résumé de cumul + lignes de blocs piochés. */
.bloc-cumul { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--lc-text-muted); margin-bottom: 14px; padding: 10px 13px; background: var(--lc-fond); border: 1px solid var(--lc-border); border-radius: var(--lc-radius-sm); }
.bloc-cumul strong { color: var(--lc-ardoise); font-variant-numeric: tabular-nums; }
.blocs { display: flex; flex-direction: column; gap: 10px; }
.bloc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--lc-border); border-radius: var(--lc-radius); background: var(--lc-surface); }
.bloc .grip { flex: none; width: 22px; display: grid; place-items: center; color: #BBB1A3; cursor: grab; }
.bloc .grip .ic { width: 18px; height: 18px; }
.bloc-body { flex: 1; min-width: 0; }
.bloc-nom { font-weight: 600; color: var(--lc-ardoise); font-size: 14px; }
.bloc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; color: var(--lc-text-muted); margin-top: 3px; }
.bloc-meta .h { color: var(--lc-petrole); font-weight: 600; font-variant-numeric: tabular-nums; }
.bloc-meta .ref { font-variant-numeric: tabular-nums; }
.bloc-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.bloc-open { font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; }
.bloc-open .ic { width: 14px; height: 14px; }


/* --- 3.13  Compat coquille & helpers liste/picker/aperçu -----------------
   Alias : les gabarits existants utilisent .topbar/.content ; on les garde
   en plus des canoniques .bo-header/.bo-content pour ne rien casser. */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 26px; background: var(--lc-surface); border-bottom: 1px solid var(--lc-border); position: sticky; top: 0; z-index: 5; }
.content { padding: 24px 26px; display: flex; flex-direction: column; gap: 20px; }

/* Sélecteur (picker) : colonne de cases à cocher, lignes sélectionnées/grisées */
.table .check-col { width: 44px; text-align: center; }
.table input[type="checkbox"] { width: 17px; height: 17px; cursor: pointer; accent-color: var(--lc-orange); }
.table tbody tr.is-selected { background: var(--lc-orange-100); }
.table tbody tr.is-disabled { opacity: .5; }
.table tbody tr.is-disabled input { cursor: not-allowed; }

/* Aperçu (lecture seule) : colonne de document + provenance source_bloc_id */
.doc-page { max-width: 880px; margin: 0 auto; width: 100%; }
.prov { display: inline-block; font-size: 11px; font-weight: 600; color: var(--lc-petrole); background: var(--lc-petrole-50); border-radius: 5px; padding: 1px 6px; margin-right: 8px; font-variant-numeric: tabular-nums; }
.ro-list { list-style: none; margin: 0; padding: 0; }
.ro-li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--lc-border); font-size: 14px; color: var(--lc-text); }
.ro-li:last-child { border-bottom: none; }
.ro-li .b { width: 6px; height: 6px; border-radius: 50%; background: var(--lc-orange); margin-top: 8px; flex: none; }
.ro-head { font-size: 13px; font-weight: 600; color: var(--lc-petrole); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }


  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr 1fr; }
