/* ==========================================================================
   WoNETT — Design System — v4
   Feuille unique : tokens + composants. HTML/CSS pur, aucun build.
   Destinée à être découpée en partials Twig + CSS maison.

   CONVENTION DE NOMMAGE  (BEM restreint, préfixe « wo- »)
     .wo-bloc                bloc                      .wo-btn  .wo-table
     .wo-bloc__element       élément d'un bloc         .wo-field__label
     .wo-bloc--variante      variante du bloc          .wo-btn--secondaire
     .is-xxx                 état piloté par le JS     .is-actif  .is-ouvert
     [disabled] / [aria-*]   états natifs (jamais de classe pour ça)
   Règles : un seul niveau d'élément, pas de sélecteur descendant au-delà de
   deux niveaux, aucune classe utilitaire de mise en page hors .wo-stack /
   .wo-row / .wo-spacer.
   ========================================================================== */

/* --------------------------------------------------------------------------
   JOURNAL v3 → v4
   Alignement sur la maquette retravaillée (« WoNETT Modernise v2 »). Trois
   évolutions, toutes issues du standalone — aucune préférence ajoutée.

   1. NAVIGATION SOMBRE  — changement visuel majeur.
      Bandeau #22303F et menu #1C2836, contrôles #2E3F51 (survol #3A4E63),
      entrées au survol #26374A. Le menu latéral était clair en v3 : les
      classes ne changent pas de nom, mais .wo-menu et .wo-bandeau rendent
      désormais sur ardoise. Une seule règle de fond est à vérifier côté
      projet : .wo-menu perd sa bordure droite et son fond blanc.
      L'entrée courante passe de l'accent à l'ardoise claire — sinon les
      quatre palettes deviennent illisibles sur le sombre.

   2. THÈME PARAMÉTRABLE (§21)
      .wo-theme--bleu | --vert | --lavande | --terracotta  (4 palettes)
      .wo-rayons--doux | --standard | --carre              (3 échelles)
      À poser sur <html>, <body> ou .wo-portail. Une palette ne déclare que
      4 valeurs ; --wo-accent-bordure, --enfonce, --eteint, --clair en
      dérivent. --wo-focus suit maintenant --wo-accent.
      Accent par défaut : #2F74AD → #3D7AB5 (Bleu pastel de la maquette).
      --wo-rayon-bloc : 10px → 12px (échelle Standard).
      --wo-accent-vignette est un jeton NOUVEAU : l'aplat clair du logo, de
      l'avatar et de la puce de favori.

   3. FAVORIS
      .wo-favori--nav      étoile d'épinglage sur l'ardoise du menu
      .wo-favori--cellule  étoile dans une colonne de tableau
      .wo-menu__favori     + __puce __libelle __retirer
      .wo-menu__vide       état vide d'une section de menu
      .wo-menu__puce       puce de couleur d'un module
      .wo-menu__sous-libelle  pour laisser la place à l'étoile

   AUSSI  .wo-choix (§22) pour les deux sélecteurs illustrés de la modale de
   style ; .wo-bandeau__logo __dossier __recherche __compteur.

   JETONS RETIRÉS  --wo-bandeau-texte, --wo-bandeau-survol, --wo-filet-sous
   (remplacés par les --wo-nav-*). --wo-accent-enfonce et --wo-accent-eteint
   existent toujours mais sont désormais dérivés, non déclarés.
   -------------------------------------------------------------------------- */


/* --------------------------------------------------------------------------
   JOURNAL v2 → v3
   Retour d'intégration : 2 écrans réels, 14 onglets, 11 tableaux.
   Aucun nom de classe existant n'a été renommé ni supprimé.

   CORRECTIONS (13)
    1  .wo-legende__pastille  couleur par défaut + 7 variantes d'état
    2  .wo-select             width:100% retiré → auto ; .wo-select--pleine
                              ajouté. SEUL changement de comportement sur une
                              classe existante : en .wo-field le rendu est
                              identique (étirement flex), hors champ le select
                              se dimensionne désormais sur son contenu.
    3  [hidden]               règle globale display:none !important
    4  .wo-table-bloc         élément __defilement pour le débord horizontal
                              (le bloc garde overflow:hidden pour ses angles)
    5  .wo-apps__item         passé en grid ; __nom et __desc empilés
    6  .wo-boutons            NOUVEAU — la rangée de boutons ordinaire.
                              .wo-btn-groupe reste le groupe segmenté et
                              n'accepte que des __item.
    7  .wo-dl__label          11px → 12,5px (--wo-texte-sm), taille de la valeur
    8  .wo-dl                 --l96 --l110 --l120 --l130 --l150 --l180
    9  .wo-notice--alerte     nommé (identique au style de base, inchangé)
   10  .wo-menu__item         état [disabled] / [aria-disabled]
   11  .wo-favori             NOUVEAU — emploie enfin --wo-favori
   12  .wo-table-bloc__titre  + --service
   13  .wo-modal__corps       espace ses enfants (flex column, gap 12px)

   COMPOSANTS AJOUTÉS  §16 .wo-grille · §17 .wo-lignes · §18 .wo-barres /
   .wo-jauges / .wo-part--0…100 · §19 .wo-avatar / .wo-favori · §20 .wo-portail
   plus .wo-encart (§13) et .wo-boutons (§3).

   JETONS AJOUTÉS (valeurs en dur supprimées)
     --wo-bandeau-texte #DCEBF7 · --wo-bandeau-survol #4B8ABD
     --wo-bandeau-point #C7DFF2 · --wo-filet-sous #DCE7F0
     --wo-rayon-nav 7px · --wo-accent-enfonce #1F5077
     --wo-accent-eteint #A9BFD2 · --wo-controle-eteint #C4CDD5
     --wo-favori-eteint #C9C5BE · --wo-dl-largeur
   Il ne reste aucune valeur hexadécimale hors du bloc :root.
   -------------------------------------------------------------------------- */


/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* -- Accent : les 4 SEULES valeurs que change une palette ---------------- */
  /* Palette par défaut « Bleu pastel ». Les 3 autres sont posées par une
     classe de thème (§21) : .wo-theme--vert, --lavande, --terracotta.      */
  --wo-accent:            #3D7AB5;  /* actions primaires, liens, sélection  */
  --wo-accent-actif:      #2E6291;  /* survol / enfoncé du primaire         */
  --wo-accent-surface:    #E7F0F8;  /* fond de sélection, puce active       */
  --wo-accent-vignette:   #9DC3E6;  /* aplat clair : logo, avatar, puce     */

  /* Dérivés de l'accent — une palette n'a pas à les redéclarer. */
  --wo-accent-bordure:    var(--wo-accent-vignette);
  --wo-accent-enfonce:    var(--wo-accent-actif);
  --wo-accent-eteint:     var(--wo-accent-vignette);
  --wo-accent-clair:      var(--wo-accent-actif);

  --wo-texte:             #1F1E1C;  /* niveau 1 — titres, données clés      */
  --wo-texte-2:           #4C4A45;  /* niveau 2 — corps                     */
  --wo-texte-3:           #6E6B66;  /* niveau 3 — libellés, méta            */
  --wo-texte-4:           #9C9891;  /* niveau 4 — DÉCORATIF / désactivé     */
  --wo-texte-inverse:     #FFFFFF;

  --wo-surface:           #FFFFFF;  /* cartes, tableaux, panneaux           */
  --wo-surface-app:       #F7F9FB;  /* fond d'application                   */
  --wo-surface-survol:    #F7FAFC;  /* ligne de tableau survolée            */
  --wo-surface-2:         #F0F5F9;  /* survol de menu, zone secondaire      */
  --wo-surface-3:         #ECF1F5;  /* séparateurs de zone, entête de bloc  */
  --wo-surface-4:         #EEF2F6;  /* filets internes de tableau           */

  --wo-bordure:           #E2E8ED;  /* bordure de conteneur                 */
  --wo-bordure-controle:  #D9E3EC;  /* bordure de champ / bouton discret    */
  --wo-bordure-accent:    #B9D4E8;

  --wo-succes:            #0F6E3F;  /* texte (AA à 12,5 px) — voir §ÉCARTS  */
  --wo-succes-vif:        #178A50;  /* pastilles, barres, icônes            */
  --wo-succes-surface:    #E4F4EB;
  --wo-danger:            #B42318;
  --wo-danger-surface:    #FBEAE8;
  --wo-alerte:            #8A6A00;  /* texte sur fond alerte                */
  --wo-alerte-bordure:    #F0DCA8;
  --wo-alerte-surface:    #FFF7E6;
  --wo-info:              #0E7A91;  /* prospect                             */
  --wo-info-surface:      #E2F3F7;
  --wo-neutre-vif:        #2653C9;  /* occasionnel                          */
  --wo-neutre-surface:    #E8EDFB;
  --wo-favori:            #E8A100;  /* étoile allumée — classe .wo-favori   */
  --wo-favori-eteint:     #C9C5BE;  /* étoile éteinte (décoratif)           */

  --wo-focus:             var(--wo-accent);  /* anneau de focus clavier     */

  /* -- Navigation sombre (v4) ---------------------------------------------
     Bandeau et menu sont des ardoises, INDÉPENDANTES de l'accent : changer
     de palette ne change pas la couleur de la coque. C'est ce qui permet
     aux 4 palettes de rester lisibles sur le même menu.                    */
  --wo-bandeau:           #22303F;  /* fond du bandeau supérieur            */
  --wo-menu-fond:         #1C2836;  /* fond du menu latéral (plus sombre)   */
  --wo-nav-controle:      #2E3F51;  /* pilule, champ de recherche, item actif */
  --wo-nav-controle-vif:  #3A4E63;  /* survol d'un contrôle du bandeau      */
  --wo-nav-survol:        #26374A;  /* survol d'une entrée de menu          */
  --wo-nav-texte:         #E4EDF5;  /* entrée de menu au repos              */
  --wo-nav-texte-2:       #D5E4F0;  /* favori, texte courant sur l'ardoise  */
  --wo-nav-texte-3:       #B9C9D8;  /* sous-entrée                          */
  --wo-nav-texte-4:       #8FA3B5;  /* administration, état vide, ✕         */
  --wo-nav-discret:       #7E93A6;  /* intertitre, chevron — décoratif      */
  --wo-nav-filet:         #2E3F51;  /* filet vertical d'un sous-menu        */
  --wo-bandeau-point:     #C7DFF2;  /* points de la gaufre au repos         */
  --wo-controle-eteint:   #C4CDD5;  /* piste d'interrupteur au repos        */

  /* -- Typographie -------------------------------------------------------- */
  --wo-police:      'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --wo-police-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  --wo-texte-3xs: 10px;   /* entêtes de colonne très denses, en capitales   */
  --wo-texte-2xs: 11px;   /* méta sous une donnée, entêtes de colonne       */
  --wo-texte-xs:  12px;   /* puces de filtre, légendes, pagination          */
  --wo-texte-sm:  12.5px; /* BASE de l'interface : cellules, champs, boutons */
  --wo-texte-md:  13px;   /* menu, onglets, cellule mise en avant           */
  --wo-texte-lg:  14px;   /* titre de carte, identité dans le bandeau       */
  --wo-texte-xl:  16px;   /* titre de modale                                */
  --wo-texte-2xl: 19px;   /* titre d'écran                                  */
  --wo-texte-3xl: 24px;   /* chiffre clé d'indicateur                       */

  --wo-graisse-normale: 400;
  --wo-graisse-moyenne: 500;  /* donnée à repérer dans une ligne            */
  --wo-graisse-forte:   600;  /* libellés, entêtes, boutons, titres         */
  --wo-graisse-titre:   700;  /* titres d'écran et chiffres clés uniquement  */

  --wo-interligne-serre: 1.25; /* données tabulaires                        */
  --wo-interligne:       1.45; /* phrases (compte-rendu, notification)      */
  --wo-capitales:        .04em; /* letter-spacing des entêtes en capitales  */
  --wo-capitales-large:  .08em; /* titres de section de menu                */

  /* -- Espacement (pas de 2 px) ------------------------------------------- */
  --wo-esp-1:  2px;
  --wo-esp-2:  4px;
  --wo-esp-3:  6px;
  --wo-esp-4:  8px;
  --wo-esp-5:  10px;
  --wo-esp-6:  12px;
  --wo-esp-7:  14px;
  --wo-esp-8:  16px;
  --wo-esp-9:  20px;
  --wo-esp-10: 24px;
  --wo-esp-11: 28px;

  /* Gabarits de contrôle : les seules valeurs impaires admises, isolées ici
     pour ne pas polluer l'échelle d'espacement. */
  --wo-pad-controle:      7px 12px;  /* bouton, champ                       */
  --wo-pad-controle-lg:   7px 14px;  /* bouton primaire de barre d'outils   */
  --wo-pad-cellule:       9px 12px;  /* cellule de tableau dense            */
  --wo-pad-entete:        8px 12px;  /* entête de colonne                   */
  --wo-pad-puce:          5px 12px;  /* puce de filtre, pilule              */
  --wo-pad-badge:         2px 9px;   /* badge de statut                     */
  --wo-pad-carte:         14px 16px;
  --wo-pad-ecran:         20px 28px;
  --wo-gouttiere-bord:    16px;      /* première/dernière cellule d'une ligne */

  /* -- Rayons — échelle « Standard » par défaut ---------------------------
     Les trois premiers changent ensemble avec la classe d'échelle (§21) :
     .wo-rayons--doux, --standard, --carre. --wo-rayon-pilule ne bouge
     jamais : un badge reste une pilule dans les trois échelles.            */
  --wo-rayon-controle: 6px;   /* champs, boutons, cases                     */
  --wo-rayon-nav:      7px;   /* contrôles de navigation : bandeau, menu    */
  --wo-rayon-bloc:     12px;  /* cartes, tableaux, panneaux, modales        */
  --wo-rayon-pilule:   99px;  /* badges, puces, compteurs, avatars         */

  /* -- Bordures ----------------------------------------------------------- */
  --wo-trait:        1px;  /* toute bordure de l'interface                  */
  --wo-trait-marque: 2px;  /* soulignement d'onglet actif, filet de sous-menu */

  /* -- Ombres ------------------------------------------------------------- */
  --wo-ombre-flottant: 0 8px 24px rgba(0, 0, 0, .25);      /* notification  */
  --wo-ombre-modale:   0 18px 50px rgba(10, 30, 50, .3);   /* modale        */
  --wo-voile:          rgba(16, 32, 48, .42);              /* fond de modale */
  /* Les cartes et tableaux n'ont AUCUNE ombre : ils se détachent par la
     bordure --wo-bordure sur --wo-surface-app. */

  /* -- Divers ------------------------------------------------------------- */
  --wo-transition: 120ms ease;
  --wo-largeur-menu: 250px;
  --wo-hauteur-bandeau: 52px;

  /* Largeurs de colonne de libellé pour .wo-dl — voir §8. */
  --wo-dl-largeur: max-content;
}

/* --------------------------------------------------------------------------
   ÉCARTS RELEVÉS DANS LA MAQUETTE (corrigés ici, à ne pas reproduire)
   --------------------------------------------------------------------------
   a) Contraste. --wo-texte-4 (#9C9891) sur blanc = 2,8:1 : sous le seuil AA.
      Il est conservé UNIQUEMENT pour du décoratif (chevrons, étoile éteinte)
      et l'état désactivé. Tout texte lisible passe à --wo-texte-3 (4,6:1),
      y compris les entêtes de colonne, qui l'utilisaient dans la maquette.
      #178A50 sur blanc = 4,2:1 : réservé aux pastilles et barres ; le texte
      « succès » utilise --wo-succes (#0F6E3F, 5,4:1).
   b) Rayons. La maquette emploie 6, 7, 8, 10 et 12 px sans règle.
      Consolidé en trois rôles : contrôle 6, bloc 10, pilule 99.
   c) Échelle typographique. 10,5 / 11,5 / 13,5 / 21 px sont des doublons de
      11 / 12 / 13 / 19 px : supprimés.
   d) Espacement. 5, 7, 9, 11, 18 px n'apparaissaient qu'en rembourrage de
      contrôle : regroupés dans les gabarits --wo-pad-* ci-dessus.
   e) Bleus du bandeau. #2A628F, #3E7CB0, #57A0D2, #4F86B4, #245680, #C7DFF2,
      #DCEBF7 cohabitaient. Retenus : --wo-bandeau, --wo-accent-clair,
      --wo-accent-bordure. Les autres sont supprimés.
   ========================================================================== */


/* --------------------------------------------------------------------------
   2. SOCLE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* [hidden] doit l'emporter sur tout display: de composant (.wo-voile, .wo-apps,
   .wo-boutons…). Sans cette règle, une modale marquée hidden s'affiche. */
[hidden] { display: none !important; }

.wo-app {
  margin: 0;
  font-family: var(--wo-police);
  font-size: var(--wo-texte-sm);
  line-height: var(--wo-interligne-serre);
  color: var(--wo-texte);
  background: var(--wo-surface-app);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--wo-accent); text-decoration: none; }
a:hover { color: var(--wo-accent-actif); text-decoration: underline; }

/* Focus clavier : un seul anneau, identique partout, jamais supprimé. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.wo-focusable:focus-visible {
  outline: 2px solid var(--wo-focus);
  outline-offset: 1px;
  border-radius: var(--wo-rayon-controle);
}

/* Aides de mise en page — les trois seules utilitaires autorisées. */
.wo-row    { display: flex; align-items: center; gap: var(--wo-esp-4); }
.wo-stack  { display: flex; flex-direction: column; gap: var(--wo-esp-4); }
.wo-spacer { flex: 1; }

.wo-mono { font-family: var(--wo-police-mono); font-size: var(--wo-texte-sm); }
.wo-num  { font-variant-numeric: tabular-nums; }


/* --------------------------------------------------------------------------
   3. BOUTONS
   .wo-btn                     secondaire (défaut : bordure sur blanc)
   .wo-btn--primaire           action principale — une seule par écran
   .wo-btn--discret            action tertiaire, sans cadre
   .wo-btn--danger             action destructive
   .wo-btn--icone              carré, pour une icône seule
   -------------------------------------------------------------------------- */
.wo-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--wo-esp-3);
  padding: var(--wo-pad-controle);
  font: var(--wo-graisse-moyenne) var(--wo-texte-sm) var(--wo-police);
  line-height: 1.2;
  color: var(--wo-texte);
  background: var(--wo-surface);
  border: var(--wo-trait) solid var(--wo-bordure-controle);
  border-radius: var(--wo-rayon-controle);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--wo-transition), border-color var(--wo-transition);
}
.wo-btn:hover  { background: var(--wo-surface-2); border-color: var(--wo-accent-bordure); }
.wo-btn:active { background: var(--wo-surface-3); }
.wo-btn.is-actif,
.wo-btn[aria-pressed="true"] {
  color: var(--wo-accent);
  background: var(--wo-accent-surface);
  border-color: var(--wo-accent);
}
.wo-btn[disabled] {
  color: var(--wo-texte-4);
  background: var(--wo-surface-app);
  border-color: var(--wo-bordure);
  cursor: not-allowed;
}

.wo-btn--primaire {
  padding: var(--wo-pad-controle-lg);
  font-weight: var(--wo-graisse-forte);
  color: var(--wo-texte-inverse);
  background: var(--wo-accent);
  border-color: var(--wo-accent);
}
.wo-btn--primaire:hover  { background: var(--wo-accent-actif); border-color: var(--wo-accent-actif); }
.wo-btn--primaire:active { background: var(--wo-accent-enfonce); border-color: var(--wo-accent-enfonce); }
.wo-btn--primaire[disabled] {
  color: var(--wo-texte-inverse);
  background: var(--wo-accent-eteint);
  border-color: var(--wo-accent-eteint);
}

.wo-btn--discret {
  padding: var(--wo-pad-controle);
  color: var(--wo-accent);
  background: none;
  border-color: transparent;
  font-weight: var(--wo-graisse-moyenne);
}
.wo-btn--discret:hover { background: var(--wo-accent-surface); border-color: transparent; }
.wo-btn--discret[disabled] { color: var(--wo-texte-4); background: none; }

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

.wo-btn--icone {
  padding: 0;
  width: 26px;
  height: 26px;
  justify-content: center;
  color: var(--wo-texte-3);
  font-size: var(--wo-texte-md);
}
.wo-btn--icone:hover { color: var(--wo-accent); }

/* Rangée de boutons — le conteneur ordinaire. Aucun cadre, aucun filet :
   c'est LUI qu'il faut employer pour aligner des .wo-btn.
   Ce n'est PAS .wo-btn-groupe (segmenté, cf. ci-dessous). */
.wo-boutons {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--wo-esp-4);
}
.wo-boutons--fin    { justify-content: flex-end; }
.wo-boutons--espace { justify-content: space-between; width: 100%; }
.wo-boutons--serre  { gap: var(--wo-esp-2); }

/* Groupe SEGMENTÉ : un seul cadre, filets internes, un seul item actif.
   N'accepte QUE des .wo-btn-groupe__item — y placer des .wo-btn dessine un
   cadre vide autour d'eux. Pour une simple rangée de boutons : .wo-boutons. */
.wo-btn-groupe {
  display: inline-flex;
  border: var(--wo-trait) solid var(--wo-bordure-controle);
  border-radius: var(--wo-rayon-controle);
  overflow: hidden;
}
.wo-btn-groupe > .wo-btn-groupe__item {
  padding: 6px var(--wo-esp-6);
  font: var(--wo-graisse-moyenne) var(--wo-texte-xs) var(--wo-police);
  color: var(--wo-texte-3);
  background: var(--wo-surface);
  border: 0;
  border-left: var(--wo-trait) solid var(--wo-bordure-controle);
  cursor: pointer;
}
.wo-btn-groupe > .wo-btn-groupe__item:first-child { border-left: 0; }
.wo-btn-groupe > .wo-btn-groupe__item:hover { background: var(--wo-surface-2); }
.wo-btn-groupe > .wo-btn-groupe__item.is-actif {
  color: var(--wo-texte-inverse);
  background: var(--wo-accent);
}


/* --------------------------------------------------------------------------
   4. FORMULAIRES
   -------------------------------------------------------------------------- */
.wo-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wo-field__label {
  font-size: var(--wo-texte-2xs);
  font-weight: var(--wo-graisse-normale);
  color: var(--wo-texte-3);
}
.wo-field__label--requis::after { content: ' *'; color: var(--wo-danger); }
.wo-field__aide  { font-size: var(--wo-texte-2xs); color: var(--wo-texte-3); }
.wo-field__erreur {
  display: flex; gap: var(--wo-esp-3);
  font-size: var(--wo-texte-2xs); font-weight: var(--wo-graisse-moyenne);
  color: var(--wo-danger);
}

.wo-input, .wo-select, .wo-textarea {
  padding: var(--wo-pad-controle);
  font: var(--wo-graisse-normale) var(--wo-texte-sm) var(--wo-police);
  color: var(--wo-texte);
  background: var(--wo-surface);
  border: var(--wo-trait) solid var(--wo-bordure-controle);
  border-radius: var(--wo-rayon-controle);
}
.wo-input::placeholder, .wo-textarea::placeholder { color: var(--wo-texte-4); }
.wo-input:hover, .wo-select:hover, .wo-textarea:hover { border-color: var(--wo-accent-bordure); }
.wo-input:focus, .wo-select:focus, .wo-textarea:focus {
  border-color: var(--wo-accent);
  outline: 2px solid var(--wo-focus);
  outline-offset: 1px;
}
.wo-input[disabled], .wo-select[disabled], .wo-textarea[disabled] {
  color: var(--wo-texte-4);
  background: var(--wo-surface-app);
  cursor: not-allowed;
}
.wo-input[readonly] { background: var(--wo-surface-app); }
.wo-input[aria-invalid="true"], .wo-textarea[aria-invalid="true"] {
  border-color: var(--wo-danger);
  background: var(--wo-danger-surface);
}
.wo-input, .wo-textarea { width: 100%; }
/* .wo-select se dimensionne sur son contenu : dans une .wo-field (colonne
   flex) il s'étire seul, dans une barre de filtres il reste en ligne.
   --pleine force la pleine largeur hors contexte de champ. */
.wo-select { width: auto; max-width: 100%; }
.wo-select--pleine { width: 100%; }

.wo-input--mono { font-family: var(--wo-police-mono); }
.wo-input--montant { text-align: right; font-variant-numeric: tabular-nums; }
.wo-textarea { min-height: 68px; line-height: var(--wo-interligne); resize: vertical; }

.wo-select {
  appearance: none;
  padding-right: var(--wo-esp-9);
  background-image: linear-gradient(45deg, transparent 50%, var(--wo-texte-3) 50%),
                    linear-gradient(135deg, var(--wo-texte-3) 50%, transparent 50%);
  background-position: right 14px center, right 9px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* Champ de recherche : la loupe est un élément, pas un fond. */
.wo-search {
  display: flex; align-items: center; gap: var(--wo-esp-4);
  flex: 1; min-width: 220px;
  padding: 6px var(--wo-esp-6);
  border: var(--wo-trait) solid var(--wo-bordure-controle);
  border-radius: var(--wo-rayon-controle);
  background: var(--wo-surface);
  /* min-width: 0 aux deux niveaux : sans lui, la largeur min-content du
     placeholder plancherise le champ et le fait déborder d'une colonne
     étroite — le cas courant d'une barre de filtres. */
  min-width: 0;
}
.wo-search:focus-within { border-color: var(--wo-accent); outline: 2px solid var(--wo-focus); outline-offset: 1px; }
.wo-search__icone { color: var(--wo-texte-3); font-size: var(--wo-texte-md); }
.wo-search__input { flex: 1; min-width: 0; border: 0; outline: 0; font: var(--wo-texte-sm)/1.2 var(--wo-police); color: var(--wo-texte); background: none; }
.wo-search__input::placeholder { color: var(--wo-texte-3); }

/* Case à cocher / radio / interrupteur */
.wo-check {
  display: flex; align-items: center; gap: var(--wo-esp-5);
  font-size: var(--wo-texte-sm); color: var(--wo-texte-2); cursor: pointer;
}
.wo-check > input { width: 14px; height: 14px; accent-color: var(--wo-accent); margin: 0; cursor: pointer; }
.wo-check > input[disabled] { cursor: not-allowed; }
.wo-check:has(> input[disabled]) { color: var(--wo-texte-4); cursor: not-allowed; }

.wo-switch { display: inline-flex; align-items: center; gap: var(--wo-esp-5); font-size: var(--wo-texte-sm); cursor: pointer; }
.wo-switch > input { position: absolute; opacity: 0; width: 0; height: 0; }
.wo-switch__piste {
  position: relative; flex: none;
  width: 32px; height: 18px;
  background: var(--wo-controle-eteint);
  border-radius: var(--wo-rayon-pilule);
  transition: background var(--wo-transition);
}
.wo-switch__piste::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: var(--wo-surface);
  border-radius: var(--wo-rayon-pilule);
  transition: transform var(--wo-transition);
}
.wo-switch > input:checked + .wo-switch__piste { background: var(--wo-accent); }
.wo-switch > input:checked + .wo-switch__piste::after { transform: translateX(14px); }
.wo-switch > input:focus-visible + .wo-switch__piste { outline: 2px solid var(--wo-focus); outline-offset: 2px; }
.wo-switch > input[disabled] + .wo-switch__piste { background: var(--wo-bordure); }


/* --------------------------------------------------------------------------
   5. TABLEAU DE DONNÉES DENSE
   -------------------------------------------------------------------------- */
.wo-table-bloc {
  background: var(--wo-surface);
  border: var(--wo-trait) solid var(--wo-bordure);
  border-radius: var(--wo-rayon-bloc);
  overflow: hidden;
}
.wo-table-bloc__entete,
.wo-table-bloc__pied {
  display: flex; align-items: center; gap: var(--wo-esp-5);
  padding: var(--wo-esp-5) var(--wo-gouttiere-bord);
  font-size: var(--wo-texte-xs);
  color: var(--wo-texte-3);
}
.wo-table-bloc__entete { border-bottom: var(--wo-trait) solid var(--wo-surface-3); }
.wo-table-bloc__pied   { border-top: var(--wo-trait) solid var(--wo-surface-3); }

/* Titre de l'entête. Par défaut appuyé : il désigne une donnée (« Contrats »).
   --service pour un titre de service (« Résultats », « 42 lignes »). */
.wo-table-bloc__titre {
  font-size: var(--wo-texte-md);
  font-weight: var(--wo-graisse-forte);
  color: var(--wo-texte);
}
.wo-table-bloc__titre--service {
  font-size: var(--wo-texte-xs);
  font-weight: var(--wo-graisse-normale);
  color: var(--wo-texte-3);
}

/* Le bloc garde overflow:hidden pour ses angles ; le défilement horizontal
   d'un large tableau se fait dans cet élément, entre l'entête et le pied. */
.wo-table-bloc__defilement { overflow-x: auto; }

.wo-table { width: 100%; border-collapse: collapse; }
.wo-table th {
  padding: var(--wo-pad-entete);
  text-align: left;
  font-size: var(--wo-texte-2xs);
  font-weight: var(--wo-graisse-forte);
  letter-spacing: var(--wo-capitales);
  text-transform: uppercase;
  color: var(--wo-texte-3);
  white-space: nowrap;
}
.wo-table td {
  padding: var(--wo-pad-cellule);
  border-top: var(--wo-trait) solid var(--wo-surface-4);
  font-size: var(--wo-texte-sm);
  color: var(--wo-texte-2);
  vertical-align: middle;
}
.wo-table th:first-child, .wo-table td:first-child { padding-left: var(--wo-gouttiere-bord); }
.wo-table th:last-child,  .wo-table td:last-child  { padding-right: var(--wo-gouttiere-bord); }

.wo-table tbody tr:hover { background: var(--wo-surface-survol); }
.wo-table tbody tr.is-selectionnee { background: var(--wo-accent-surface); }
.wo-table--cliquable tbody tr { cursor: pointer; }
.wo-table tbody tr:focus-visible { outline: 2px solid var(--wo-focus); outline-offset: -2px; }

/* Rôles de colonne — à poser sur th ET td. */
.wo-table__cle      { font-size: var(--wo-texte-md); font-weight: var(--wo-graisse-forte); color: var(--wo-texte); }
.wo-table__ref      { font-family: var(--wo-police-mono); color: var(--wo-texte-3); white-space: nowrap; }
.wo-table__montant  { text-align: right; font-weight: var(--wo-graisse-moyenne); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wo-table__nombre   { text-align: right; font-variant-numeric: tabular-nums; }
.wo-table__date     { white-space: nowrap; font-variant-numeric: tabular-nums; }
.wo-table__meta     { color: var(--wo-texte-3); }
.wo-table__actions  { text-align: right; white-space: nowrap; }
.wo-table th.wo-table__montant, .wo-table th.wo-table__nombre { text-align: right; }

/* Densité alternative : --compact pour les journaux et grilles de saisie. */
.wo-table--compact td { padding: 6px var(--wo-esp-5); }
.wo-table--compact th { padding: 6px var(--wo-esp-5); }

.wo-table__vide {
  padding: var(--wo-esp-11) var(--wo-gouttiere-bord);
  text-align: center;
  color: var(--wo-texte-3);
  font-size: var(--wo-texte-sm);
}

.wo-legende {
  display: flex; align-items: center; gap: var(--wo-esp-7);
  font-size: var(--wo-texte-xs); color: var(--wo-texte-3);
}
.wo-legende__item { display: flex; align-items: center; gap: var(--wo-esp-2); }
.wo-legende__pastille {
  flex: none;
  width: 8px; height: 8px;
  border-radius: var(--wo-rayon-pilule);
  background: var(--wo-texte-4);
}
.wo-legende__pastille--succes  { background: var(--wo-succes-vif); }
.wo-legende__pastille--danger  { background: var(--wo-danger); }
.wo-legende__pastille--alerte  { background: var(--wo-favori); }
.wo-legende__pastille--info    { background: var(--wo-info); }
.wo-legende__pastille--accent  { background: var(--wo-accent); }
.wo-legende__pastille--neutre  { background: var(--wo-texte-4); }
.wo-legende__pastille--vide    { background: var(--wo-surface); border: var(--wo-trait) solid var(--wo-bordure-controle); }


/* --------------------------------------------------------------------------
   6. BADGES DE STATUT
   -------------------------------------------------------------------------- */
.wo-badge {
  display: inline-flex; align-items: center; gap: var(--wo-esp-3);
  padding: var(--wo-pad-badge);
  font-size: var(--wo-texte-2xs);
  font-weight: var(--wo-graisse-forte);
  border-radius: var(--wo-rayon-pilule);
  white-space: nowrap;
}
.wo-badge--succes      { color: var(--wo-succes);     background: var(--wo-succes-surface); }
.wo-badge--info        { color: var(--wo-info);       background: var(--wo-info-surface); }
.wo-badge--neutre-vif  { color: var(--wo-neutre-vif); background: var(--wo-neutre-surface); }
.wo-badge--danger      { color: var(--wo-danger);     background: var(--wo-danger-surface); }
.wo-badge--alerte      { color: var(--wo-alerte);     background: var(--wo-alerte-surface); }
.wo-badge--neutre      { color: var(--wo-texte-3);    background: var(--wo-surface-3); }
.wo-badge--compteur    { color: var(--wo-texte-inverse); background: var(--wo-danger); padding: 1px 7px; }

.wo-puce-nombre {
  font-size: var(--wo-texte-xs); color: var(--wo-texte-3);
  background: var(--wo-surface-3);
  border-radius: var(--wo-rayon-pilule);
  padding: 3px var(--wo-esp-5);
}


/* --------------------------------------------------------------------------
   7. ONGLETS
   -------------------------------------------------------------------------- */
.wo-tabs {
  display: flex; gap: var(--wo-esp-1);
  border-bottom: var(--wo-trait) solid var(--wo-bordure);
  overflow-x: auto;
}
.wo-tabs__item {
  padding: var(--wo-esp-4) var(--wo-esp-7);
  font: var(--wo-graisse-normale) var(--wo-texte-md) var(--wo-police);
  color: var(--wo-texte-3);
  background: none;
  border: 0;
  border-bottom: var(--wo-trait-marque) solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.wo-tabs__item:hover { color: var(--wo-texte); background: var(--wo-surface-2); }
.wo-tabs__item.is-actif,
.wo-tabs__item[aria-selected="true"] {
  color: var(--wo-texte);
  font-weight: var(--wo-graisse-forte);
  border-bottom-color: var(--wo-accent);
}
.wo-tabs__item[disabled] { color: var(--wo-texte-4); cursor: not-allowed; }
.wo-tabs__item:focus-visible { outline: 2px solid var(--wo-focus); outline-offset: -2px; border-radius: 0; }


/* --------------------------------------------------------------------------
   8. CARTES
   -------------------------------------------------------------------------- */
.wo-card {
  background: var(--wo-surface);
  border: var(--wo-trait) solid var(--wo-bordure);
  border-radius: var(--wo-rayon-bloc);
  padding: var(--wo-esp-8);
}
.wo-card--kpi { padding: var(--wo-pad-carte); }
.wo-card__titre {
  font-size: var(--wo-texte-md);
  font-weight: var(--wo-graisse-forte);
  margin-bottom: var(--wo-esp-5);
}
.wo-card__entete {
  display: flex; align-items: center; gap: var(--wo-esp-5);
  padding: var(--wo-esp-6) var(--wo-esp-8);
  margin: calc(-1 * var(--wo-esp-8)) calc(-1 * var(--wo-esp-8)) var(--wo-esp-6);
  border-bottom: var(--wo-trait) solid var(--wo-surface-3);
}
.wo-kpi__label  { font-size: var(--wo-texte-2xs); color: var(--wo-texte-3); }
.wo-kpi__valeur { font-size: var(--wo-texte-3xl); font-weight: var(--wo-graisse-titre); font-variant-numeric: tabular-nums; }
.wo-kpi__valeur--danger { color: var(--wo-danger); }
.wo-kpi__note   { font-size: var(--wo-texte-2xs); color: var(--wo-texte-3); }
.wo-kpi__note--succes { color: var(--wo-succes); }

/* Paire libellé / valeur — base des fiches.
   La colonne des libellés est fixée par carte (--l96 … --l180) : en
   max-content, la valeur colle au libellé le plus long de la liste.
   --repartie pousse la valeur à droite (bloc Suivi, conditions de facturation). */
.wo-dl { display: grid; grid-template-columns: var(--wo-dl-largeur) 1fr; gap: var(--wo-esp-3) var(--wo-esp-7); }
.wo-dl--l96  { --wo-dl-largeur: 96px; }
.wo-dl--l110 { --wo-dl-largeur: 110px; }
.wo-dl--l120 { --wo-dl-largeur: 120px; }
.wo-dl--l130 { --wo-dl-largeur: 130px; }
.wo-dl--l150 { --wo-dl-largeur: 150px; }
.wo-dl--l180 { --wo-dl-largeur: 180px; }
.wo-dl--repartie { grid-template-columns: var(--wo-dl-largeur) 1fr; }
.wo-dl--repartie > .wo-dl__valeur { text-align: right; }
.wo-dl__label  { font-size: var(--wo-texte-sm); color: var(--wo-texte-3); }
.wo-dl__valeur { font-size: var(--wo-texte-sm); color: var(--wo-texte); }
.wo-dl__valeur--forte { font-weight: var(--wo-graisse-moyenne); }
.wo-dl__valeur--vide  { color: var(--wo-texte-4); }


/* --------------------------------------------------------------------------
   9. FIL D'ARIANE
   -------------------------------------------------------------------------- */
.wo-crumbs { display: flex; align-items: center; gap: var(--wo-esp-3); font-size: var(--wo-texte-xs); }
.wo-crumbs__item { color: var(--wo-texte-3); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.wo-crumbs__item:hover { color: var(--wo-accent); text-decoration: underline; }
.wo-crumbs__item[aria-current="page"] { color: var(--wo-texte); font-weight: var(--wo-graisse-forte); cursor: default; text-decoration: none; }
.wo-crumbs__sep { color: var(--wo-texte-4); }


/* --------------------------------------------------------------------------
   10. PAGINATION
   -------------------------------------------------------------------------- */
.wo-pagination { display: flex; align-items: center; gap: var(--wo-esp-4); font-size: var(--wo-texte-xs); color: var(--wo-texte-3); }
.wo-pagination__pages { display: flex; gap: var(--wo-esp-1); }
.wo-pagination__page {
  min-width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 var(--wo-esp-3);
  font: var(--wo-graisse-moyenne) var(--wo-texte-xs) var(--wo-police);
  color: var(--wo-texte-2);
  background: var(--wo-surface);
  border: var(--wo-trait) solid var(--wo-bordure-controle);
  border-radius: var(--wo-rayon-controle);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.wo-pagination__page:hover { background: var(--wo-surface-2); }
.wo-pagination__page[aria-current="page"] {
  color: var(--wo-texte-inverse);
  background: var(--wo-accent);
  border-color: var(--wo-accent);
  cursor: default;
}
.wo-pagination__page[disabled] { color: var(--wo-texte-4); background: var(--wo-surface-app); cursor: not-allowed; }
.wo-pagination__ellipse { padding: 0 var(--wo-esp-2); color: var(--wo-texte-4); }


/* --------------------------------------------------------------------------
   11. BARRE D'OUTILS DE LISTE
   -------------------------------------------------------------------------- */
.wo-toolbar { display: flex; align-items: center; gap: var(--wo-esp-5); }
.wo-toolbar__titre { font-size: var(--wo-texte-2xl); font-weight: var(--wo-graisse-titre); }
.wo-toolbar__actions { display: flex; gap: var(--wo-esp-4); }

.wo-filtres {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-esp-5);
  background: var(--wo-surface);
  border: var(--wo-trait) solid var(--wo-bordure);
  border-radius: var(--wo-rayon-bloc);
  padding: var(--wo-esp-6) var(--wo-esp-7);
}
.wo-chip {
  display: inline-flex; align-items: center; gap: var(--wo-esp-3);
  padding: var(--wo-pad-puce);
  font: var(--wo-graisse-normale) var(--wo-texte-xs) var(--wo-police);
  color: var(--wo-texte-2);
  background: var(--wo-surface);
  border: var(--wo-trait) solid var(--wo-bordure-controle);
  border-radius: var(--wo-rayon-pilule);
  cursor: pointer;
}
.wo-chip:hover { background: var(--wo-surface-2); }
.wo-chip.is-actif {
  color: var(--wo-accent);
  font-weight: var(--wo-graisse-moyenne);
  background: var(--wo-accent-surface);
  border-color: var(--wo-accent);
}
.wo-chip__retirer { color: inherit; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }


/* --------------------------------------------------------------------------
   12. MODALE
   -------------------------------------------------------------------------- */
.wo-voile {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  background: var(--wo-voile);
  z-index: 60;
}
.wo-modal {
  width: min(680px, 92vw);
  max-height: 86vh;
  display: flex; flex-direction: column;
  background: var(--wo-surface);
  border-radius: var(--wo-rayon-bloc);
  box-shadow: var(--wo-ombre-modale);
  overflow: hidden;
}
.wo-modal__entete {
  display: flex; align-items: center; gap: var(--wo-esp-5);
  padding: var(--wo-esp-7) var(--wo-esp-9);
  border-bottom: var(--wo-trait) solid var(--wo-bordure);
}
.wo-modal__titre { font-size: var(--wo-texte-xl); font-weight: var(--wo-graisse-forte); }
.wo-modal__corps {
  display: flex; flex-direction: column; gap: var(--wo-esp-6);
  padding: var(--wo-esp-9);
  overflow-y: auto;
}
.wo-modal__pied {
  display: flex; align-items: center; gap: var(--wo-esp-4);
  padding: var(--wo-esp-6) var(--wo-esp-9);
  border-top: var(--wo-trait) solid var(--wo-bordure);
  background: var(--wo-surface-app);
}
.wo-modal--confirmation { width: min(440px, 92vw); }


/* --------------------------------------------------------------------------
   13. NOTIFICATIONS
   .wo-toast    éphémère, bas de l'écran, confirmation d'action
   .wo-notice   persistante, dans le flux, porte une consigne
   -------------------------------------------------------------------------- */
.wo-toast {
  position: fixed; left: 50%; bottom: var(--wo-esp-9);
  transform: translateX(-50%);
  padding: 9px var(--wo-esp-9);
  font-size: var(--wo-texte-sm);
  color: var(--wo-texte-inverse);
  background: var(--wo-texte);
  border-radius: var(--wo-rayon-controle);
  box-shadow: var(--wo-ombre-flottant);
  z-index: 70;
}

.wo-notice {
  /* wrap : une notice qui porte des actions doit pouvoir passer ses boutons
     à la ligne. Sans lui, les .wo-btn en nowrap ne se compriment pas et
     tout le manque de place est reporté sur le texte, qui s'étale en
     colonne dans une carte étroite. */
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--wo-esp-6);
  padding: var(--wo-esp-4) var(--wo-esp-7);
  font-size: var(--wo-texte-sm);
  line-height: var(--wo-interligne);
  border: var(--wo-trait) solid var(--wo-alerte-bordure);
  border-radius: var(--wo-rayon-controle);
  background: var(--wo-alerte-surface);
  color: var(--wo-texte);
}
.wo-notice__titre { flex: none; font-weight: var(--wo-graisse-forte); }
/* Corps OBLIGATOIRE dès que le texte contient du markup inline. .wo-notice
   est un flex : sans ce conteneur, chaque <span>, <a> ou <strong> du corps
   devient un item flex et la phrase se répartit en colonnes. Un corps de
   texte nu (un seul nœud texte) peut s'en passer, mais l'écrire toujours
   coûte moins cher que de s'en souvenir. */
/* Base de 24ch, pas 0 : avec flex:1 le corps se comprime jusqu'au mot le
   plus long et les boutons restent sur la même ligne. Une base réelle le
   fait compter dans le calcul de ligne, donc les actions passent dessous
   dès que la place manque. */
.wo-notice__corps { flex: 1 1 24ch; min-width: 0; }
/* --alerte est le style de base, nommé explicitement (mise en garde URSSAF). */
.wo-notice--alerte { border-color: var(--wo-alerte-bordure); background: var(--wo-alerte-surface); }
.wo-notice--danger { border-color: var(--wo-danger); background: var(--wo-danger-surface); }
.wo-notice--succes { border-color: var(--wo-succes-vif); background: var(--wo-succes-surface); }
.wo-notice--info   { border-color: var(--wo-accent-bordure); background: var(--wo-accent-surface); }

/* Panneau de texte libre, sans statut : consignes, commentaire, rappel.
   Ce n'est PAS .wo-notice, qui porte une couleur de statut. */
.wo-encart {
  padding: var(--wo-esp-6) var(--wo-esp-7);
  font-size: var(--wo-texte-sm);
  line-height: var(--wo-interligne);
  color: var(--wo-texte-2);
  background: var(--wo-surface-app);
  border: var(--wo-trait) solid var(--wo-bordure);
  border-radius: var(--wo-rayon-controle);
  white-space: pre-line;
}
.wo-encart__titre {
  display: block;
  margin-bottom: var(--wo-esp-3);
  font-size: var(--wo-texte-2xs);
  font-weight: var(--wo-graisse-forte);
  letter-spacing: var(--wo-capitales);
  text-transform: uppercase;
  color: var(--wo-texte-3);
}
.wo-encart--vide { color: var(--wo-texte-4); font-style: italic; }


/* --------------------------------------------------------------------------
   14. BANDEAU SUPÉRIEUR + SÉLECTEUR D'APPLICATION
   -------------------------------------------------------------------------- */
.wo-bandeau {
  display: flex; align-items: center; gap: var(--wo-esp-8);
  height: var(--wo-hauteur-bandeau);
  padding: 0 var(--wo-esp-8);
  background: var(--wo-bandeau);
  color: var(--wo-texte-inverse);
}
.wo-bandeau__pilule {
  display: flex; align-items: center; gap: var(--wo-esp-4);
  padding: var(--wo-pad-puce);
  font: var(--wo-graisse-normale) var(--wo-texte-sm) var(--wo-police);
  color: var(--wo-nav-texte-3);
  background: var(--wo-nav-controle);
  border: 0;
  border-radius: var(--wo-rayon-nav);
  cursor: pointer;
}
.wo-bandeau__pilule:hover { background: var(--wo-nav-controle-vif); }
.wo-bandeau__pilule strong { color: var(--wo-texte-inverse); font-weight: var(--wo-graisse-moyenne); }
.wo-bandeau__module {
  font-size: var(--wo-texte-lg);
  font-weight: var(--wo-graisse-forte);
  padding: var(--wo-esp-3) var(--wo-esp-5);
  border-radius: var(--wo-rayon-controle);
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 -2px 0 var(--wo-accent-vignette);
}
.wo-bandeau :focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }

/* Logo : seule pièce du bandeau teintée par la palette — l'aplat clair
   porte l'initiale de la raison sociale en couleur du bandeau. */
.wo-bandeau__logo {
  flex: none;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  font-size: var(--wo-texte-xs);
  font-weight: var(--wo-graisse-forte);
  color: var(--wo-bandeau);
  background: var(--wo-accent-vignette);
  border-radius: var(--wo-rayon-controle);
}
.wo-bandeau__dossier {
  font-size: var(--wo-texte-sm);
  font-weight: var(--wo-graisse-moyenne);
  color: var(--wo-texte-inverse);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Champ de recherche du bandeau : même ardoise que les pilules. */
.wo-bandeau__recherche {
  flex: 1; min-width: 0; max-width: 420px;
  display: flex; align-items: center; gap: var(--wo-esp-4);
  padding: 6px var(--wo-esp-6);
  font-size: var(--wo-texte-sm);
  color: var(--wo-nav-texte-4);
  background: var(--wo-nav-controle);
  border: 0;
  border-radius: var(--wo-rayon-nav);
}
.wo-bandeau__recherche > input {
  flex: 1; min-width: 0;
  font: var(--wo-texte-sm) var(--wo-police);
  color: var(--wo-texte-inverse);
  background: none; border: 0; outline: 0;
}
.wo-bandeau__recherche > input::placeholder { color: var(--wo-nav-texte-4); }
.wo-bandeau__compteur {
  padding: 1px var(--wo-esp-4);
  font-size: var(--wo-texte-2xs);
  font-weight: var(--wo-graisse-forte);
  color: var(--wo-texte-inverse);
  background: var(--wo-danger);
  border-radius: var(--wo-rayon-pilule);
}
.wo-bandeau .wo-spacer { flex: 1; }

/* Bouton gaufre */
.wo-gaufre {
  flex: none;
  width: 32px; height: 32px;
  display: grid; place-content: center; gap: 3px;
  grid-template-columns: repeat(3, 3px);
  grid-template-rows: repeat(3, 3px);
  background: none; border: 0; border-radius: var(--wo-rayon-controle);
  cursor: pointer;
}
.wo-gaufre:hover, .wo-gaufre[aria-expanded="true"] { background: var(--wo-nav-controle); }
.wo-gaufre__point { width: 3px; height: 3px; border-radius: 1px; background: var(--wo-bandeau-point); }
.wo-gaufre:hover .wo-gaufre__point, .wo-gaufre[aria-expanded="true"] .wo-gaufre__point { background: #FFFFFF; }

/* Panneau des modules */
.wo-apps {
  position: absolute; top: calc(var(--wo-hauteur-bandeau) - 4px); left: var(--wo-esp-6);
  width: 320px;
  padding: var(--wo-esp-5);
  background: var(--wo-surface);
  border: var(--wo-trait) solid var(--wo-bordure);
  border-radius: var(--wo-rayon-bloc);
  box-shadow: var(--wo-ombre-modale);
  color: var(--wo-texte);
  z-index: 80;
}
.wo-apps__titre {
  font-size: var(--wo-texte-3xs);
  font-weight: var(--wo-graisse-forte);
  letter-spacing: var(--wo-capitales-large);
  text-transform: uppercase;
  color: var(--wo-texte-3);
  padding: var(--wo-esp-3) var(--wo-esp-5) var(--wo-esp-4);
}
.wo-apps__liste { display: flex; flex-direction: column; gap: var(--wo-esp-1); }
.wo-apps__item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: var(--wo-esp-5);
  width: 100%;
  padding: var(--wo-esp-4) var(--wo-esp-5);
  font: var(--wo-texte-md) var(--wo-police);
  color: var(--wo-texte);
  text-align: left;
  background: none; border: 0;
  border-radius: var(--wo-rayon-controle);
  cursor: pointer;
}
.wo-apps__item:hover { background: var(--wo-surface-2); }
.wo-apps__item[aria-current="true"] { background: var(--wo-accent-surface); color: var(--wo-accent); }
.wo-apps__vignette {
  flex: none; width: 26px; height: 26px;
  grid-row: span 2;
  display: grid; place-items: center;
  font-size: var(--wo-texte-2xs); font-weight: var(--wo-graisse-forte);
  color: var(--wo-texte-inverse);
  background: var(--wo-accent);
  border-radius: var(--wo-rayon-controle);
}
/* Nom et description sont deux lignes empilées, pas deux éléments en ligne. */
.wo-apps__nom  { display: block; grid-column: 2; font-weight: var(--wo-graisse-moyenne); }
.wo-apps__desc { display: block; grid-column: 2; font-size: var(--wo-texte-2xs); color: var(--wo-texte-3); }
.wo-apps__vide { padding: var(--wo-esp-7) var(--wo-esp-5); font-size: var(--wo-texte-sm); color: var(--wo-texte-3); line-height: var(--wo-interligne); }


/* --------------------------------------------------------------------------
   15. MENU LATÉRAL
   -------------------------------------------------------------------------- */
.wo-menu {
  width: var(--wo-largeur-menu);
  background: var(--wo-menu-fond);
  padding: var(--wo-esp-5) var(--wo-esp-4);
  display: flex; flex-direction: column; gap: 1px;
  overflow-y: auto;
}
.wo-menu__section {
  color: var(--wo-nav-discret);
  font-size: var(--wo-texte-3xs);
  font-weight: var(--wo-graisse-forte);
  letter-spacing: var(--wo-capitales-large);
  text-transform: uppercase;
  padding: var(--wo-esp-6) var(--wo-esp-5) var(--wo-esp-2);
}
.wo-menu__section:first-child { padding-top: var(--wo-esp-2); }
.wo-menu__item {
  display: flex; align-items: center; justify-content: space-between; gap: var(--wo-esp-4);
  width: 100%;
  padding: 7px var(--wo-esp-5);
  font: var(--wo-graisse-moyenne) var(--wo-texte-md) var(--wo-police);
  color: var(--wo-nav-texte);
  text-align: left;
  background: none; border: 0;
  border-radius: var(--wo-rayon-nav);
  cursor: pointer;
}
.wo-menu__item:hover { background: var(--wo-nav-survol); color: var(--wo-texte-inverse); }
/* Entrée courante : l'ardoise claire, PAS l'accent — le menu ne suit pas la
   palette, sans quoi les 4 palettes deviennent illisibles sur le sombre. */
.wo-menu__item.is-actif {
  color: var(--wo-texte-inverse);
  background: var(--wo-nav-controle);
  font-weight: var(--wo-graisse-forte);
}
/* Entrée « à venir » : présente, inerte, visiblement inactive. */
.wo-menu__item[disabled],
.wo-menu__item[aria-disabled="true"] {
  color: var(--wo-nav-discret);
  background: none;
  cursor: not-allowed;
}
.wo-menu__item[disabled]:hover,
.wo-menu__item[aria-disabled="true"]:hover { background: none; }
.wo-menu__item[disabled] .wo-menu__chevron,
.wo-menu__item[aria-disabled="true"] .wo-menu__chevron { color: var(--wo-nav-discret); }
.wo-menu__chevron { color: var(--wo-nav-discret); font-size: var(--wo-texte-3xs); }
/* Puce de module : la seule couleur libre du menu, une par module. */
.wo-menu__puce { flex: none; width: 8px; height: 8px; border-radius: 3px; background: var(--wo-accent-vignette); }
.wo-menu__sous {
  display: flex; flex-direction: column;
  padding: var(--wo-esp-1) 0 var(--wo-esp-3);
  margin-left: var(--wo-esp-7);
  border-left: var(--wo-trait-marque) solid var(--wo-nav-filet);
}
.wo-menu__sous-item {
  padding: var(--wo-esp-2) var(--wo-esp-5);
  font: var(--wo-texte-sm) var(--wo-police);
  color: var(--wo-nav-texte-3);
  text-align: left;
  background: none; border: 0;
  border-radius: 0 var(--wo-rayon-nav) var(--wo-rayon-nav) 0;
  display: flex; align-items: center; gap: var(--wo-esp-3);
  cursor: pointer;
}
.wo-menu__sous-item:hover { background: var(--wo-nav-survol); color: var(--wo-texte-inverse); }
.wo-menu__sous-item[disabled],
.wo-menu__sous-item[aria-disabled="true"] { color: var(--wo-nav-discret); cursor: not-allowed; }
.wo-menu__sous-item[disabled]:hover,
.wo-menu__sous-item[aria-disabled="true"]:hover { background: none; color: var(--wo-nav-discret); }

/* Sous-entrée épinglable : le libellé prend la place, l'étoile reste à droite
   et ne navigue pas. Poser l'étoile en .wo-favori--nav. */
.wo-menu__sous-libelle { flex: 1; min-width: 0; text-align: left; }

/* Section « Mes favoris » — même forme qu'une entrée de menu, une puce à la
   place du chevron et un retrait à droite. Ce n'est PAS un raccourci système :
   la liste est celle que l'utilisateur a épinglée lui-même. */
.wo-menu__favori {
  display: flex; align-items: center; gap: var(--wo-esp-4);
  width: 100%;
  padding: var(--wo-esp-3) var(--wo-esp-5);
  font: var(--wo-texte-sm) var(--wo-police);
  color: var(--wo-nav-texte-2);
  text-align: left;
  background: none; border: 0;
  border-radius: var(--wo-rayon-nav);
  cursor: pointer;
}
.wo-menu__favori:hover { background: var(--wo-nav-survol); }
.wo-menu__favori__puce { flex: none; font-size: var(--wo-texte-3xs); color: var(--wo-accent-vignette); }
.wo-menu__favori__libelle { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wo-menu__favori__retirer {
  flex: none;
  padding: 0 var(--wo-esp-2);
  font-size: var(--wo-texte-2xs);
  color: var(--wo-nav-texte-4);
  background: none; border: 0;
  cursor: pointer;
}
.wo-menu__favori__retirer:hover { color: var(--wo-texte-inverse); }
/* État vide d'une section de menu : une phrase, pas une entrée cliquable. */
.wo-menu__vide {
  padding: var(--wo-esp-2) var(--wo-esp-5) var(--wo-esp-4);
  font-size: var(--wo-texte-xs);
  color: var(--wo-nav-texte-4);
  line-height: var(--wo-interligne);
}

/* --------------------------------------------------------------------------
   16. GRILLE DE COLONNES
   Le seul dispositif de mise en page du design system. Il ne porte aucun
   fond ni bordure : ce sont ses enfants (.wo-card, .wo-table-bloc) qui les
   portent. Ce n'est PAS .wo-row / .wo-stack, réservés aux suites courtes.
   -------------------------------------------------------------------------- */
.wo-grille {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wo-esp-8);
  align-items: start;
}
.wo-grille--deux             { grid-template-columns: 1fr 1fr; }
.wo-grille--trois            { grid-template-columns: 1fr 1fr 1fr; }
.wo-grille--large-etroit     { grid-template-columns: 1.2fr .8fr; }
.wo-grille--etroit-large     { grid-template-columns: .8fr 1.2fr; }
.wo-grille--principal-lateral{ grid-template-columns: 1fr 1.2fr .8fr; }
.wo-grille--serree           { gap: var(--wo-esp-6); }
/* Colonne interne : empile ses blocs à la même gouttière que la grille. */
.wo-grille__colonne { display: flex; flex-direction: column; gap: var(--wo-esp-8); min-width: 0; }
.wo-grille__colonne--pleine { grid-column: 1 / -1; }

@media (max-width: 1100px) {
  .wo-grille--trois,
  .wo-grille--principal-lateral { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .wo-grille--deux, .wo-grille--trois,
  .wo-grille--large-etroit, .wo-grille--etroit-large,
  .wo-grille--principal-lateral { grid-template-columns: 1fr; }
}


/* --------------------------------------------------------------------------
   17. LISTE DE LIGNES (hors tableau)
   Suite de lignes homogènes à deux ou trois zones : GED, matériel affecté,
   consommables. Ce n'est PAS .wo-table : ni colonnes alignées, ni tri, ni
   entêtes. Dès qu'il faut comparer une colonne d'une ligne à l'autre,
   c'est un tableau.
   -------------------------------------------------------------------------- */
.wo-lignes { display: flex; flex-direction: column; }
.wo-lignes__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--wo-esp-6);
  padding: var(--wo-esp-5) var(--wo-gouttiere-bord);
  border-top: var(--wo-trait) solid var(--wo-surface-4);
  min-width: 0;
}
.wo-lignes__item:first-child { border-top: 0; }
.wo-lignes__item:hover { background: var(--wo-surface-survol); }
.wo-lignes__item.is-selectionnee { background: var(--wo-accent-surface); }
.wo-lignes__vignette {
  flex: none; width: 26px; height: 26px;
  display: grid; place-items: center;
  font-size: var(--wo-texte-2xs); font-weight: var(--wo-graisse-forte);
  color: var(--wo-texte-3);
  background: var(--wo-surface-3);
  border-radius: var(--wo-rayon-controle);
}
.wo-lignes__vignette--accent { color: var(--wo-accent); background: var(--wo-accent-surface); }
.wo-lignes__principal {
  min-width: 0;
  font-size: var(--wo-texte-sm);
  font-weight: var(--wo-graisse-moyenne);
  color: var(--wo-texte);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wo-lignes__annexe {
  font-size: var(--wo-texte-2xs);
  color: var(--wo-texte-3);
  white-space: nowrap;
}
/* Une annexe placée sous le principal (2e ligne) plutôt qu'à droite. */
.wo-lignes__annexe--dessous { grid-column: 2; white-space: normal; }
.wo-lignes__actions { display: flex; gap: var(--wo-esp-2); }
.wo-lignes__vide { padding: var(--wo-esp-10) var(--wo-gouttiere-bord); text-align: center; color: var(--wo-texte-3); }


/* --------------------------------------------------------------------------
   18. HISTOGRAMME ET JAUGES
   Deux représentations d'une seule série de valeurs, sans axes ni légende
   automatique. Ce ne sont PAS des graphiques : pas d'échelle, pas de
   comparaison de séries. Au-delà, passer par une image ou une bibliothèque.

   La proportion se pose par CLASSE (aucun attribut style en template) :
   .wo-part--0 à .wo-part--100, par pas de 5. Elle alimente --wo-part, lue
   en hauteur par la barre et en largeur par la jauge.
   -------------------------------------------------------------------------- */
.wo-part--0 { --wo-part: 0%; }
.wo-part--5 { --wo-part: 5%; }
.wo-part--10 { --wo-part: 10%; }
.wo-part--15 { --wo-part: 15%; }
.wo-part--20 { --wo-part: 20%; }
.wo-part--25 { --wo-part: 25%; }
.wo-part--30 { --wo-part: 30%; }
.wo-part--35 { --wo-part: 35%; }
.wo-part--40 { --wo-part: 40%; }
.wo-part--45 { --wo-part: 45%; }
.wo-part--50 { --wo-part: 50%; }
.wo-part--55 { --wo-part: 55%; }
.wo-part--60 { --wo-part: 60%; }
.wo-part--65 { --wo-part: 65%; }
.wo-part--70 { --wo-part: 70%; }
.wo-part--75 { --wo-part: 75%; }
.wo-part--80 { --wo-part: 80%; }
.wo-part--85 { --wo-part: 85%; }
.wo-part--90 { --wo-part: 90%; }
.wo-part--95 { --wo-part: 95%; }
.wo-part--100 { --wo-part: 100%; }

.wo-barres {
  display: flex; align-items: flex-end; gap: var(--wo-esp-5);
  height: 160px;
  padding-top: var(--wo-esp-8);
}
.wo-barres--basse { height: 110px; }
/* Grille à trois rangées : la valeur et le libellé prennent leur hauteur,
   la barre se résout sur la SEULE rangée 1fr. En empilement flex, un
   pourcentage se calcule sur toute la colonne et les grandes barres se font
   raboter — 85 % et 100 % deviennent indiscernables. */
.wo-barres__colonne {
  flex: 1; min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  justify-items: center;
  row-gap: var(--wo-esp-3);
  height: 100%;
}
.wo-barres__valeur {
  font-size: var(--wo-texte-2xs);
  font-weight: var(--wo-graisse-moyenne);
  color: var(--wo-texte-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.wo-barres__barre {
  display: block;
  align-self: end;
  width: 100%;
  max-width: 46px;
  height: var(--wo-part, 0%);
  min-height: 2px;
  background: var(--wo-accent);
  border-radius: var(--wo-rayon-controle) var(--wo-rayon-controle) 0 0;
}
.wo-barres__barre--secondaire { background: var(--wo-accent-bordure); }
.wo-barres__barre--succes     { background: var(--wo-succes-vif); }
.wo-barres__barre--danger     { background: var(--wo-danger); }
.wo-barres__libelle {
  font-size: var(--wo-texte-2xs);
  color: var(--wo-texte-3);
  white-space: nowrap;
}

/* La grille est portée par le CONTENEUR, les items sont transparents : sans
   cela chaque ligne est une grille indépendante, les pistes n'ont pas la même
   largeur et les parts ne sont plus comparables — l'objet même d'une jauge.
   Largeur de libellé propre au composant : --wo-dl-largeur est déclaré sur
   :root pour .wo-dl et masquerait tout repli. */
.wo-jauges {
  display: grid;
  grid-template-columns: var(--wo-jauges-libelle) 1fr max-content;
  align-items: center;
  gap: var(--wo-esp-6);
  --wo-jauges-libelle: 110px;
}
.wo-jauges--l96  { --wo-jauges-libelle: 96px; }
.wo-jauges--l130 { --wo-jauges-libelle: 130px; }
.wo-jauges--l150 { --wo-jauges-libelle: 150px; }
.wo-jauges--l180 { --wo-jauges-libelle: 180px; }
.wo-jauges__item { display: contents; }
.wo-jauges__libelle { font-size: var(--wo-texte-sm); color: var(--wo-texte-3); }
.wo-jauges__piste {
  display: block;
  height: 8px;
  background: var(--wo-surface-3);
  border-radius: var(--wo-rayon-pilule);
  overflow: hidden;
}
.wo-jauges__part {
  display: block;
  height: 100%;
  width: var(--wo-part, 0%);
  background: var(--wo-accent);
  border-radius: var(--wo-rayon-pilule);
}
.wo-jauges__part--succes { background: var(--wo-succes-vif); }
.wo-jauges__part--alerte { background: var(--wo-favori); }
.wo-jauges__part--danger { background: var(--wo-danger); }
.wo-jauges__valeur {
  font-size: var(--wo-texte-sm);
  font-weight: var(--wo-graisse-moyenne);
  color: var(--wo-texte);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}


/* --------------------------------------------------------------------------
   19. PASTILLE D'INITIALES ET ÉTOILE DE FAVORI
   -------------------------------------------------------------------------- */
.wo-avatar {
  flex: none;
  width: 28px; height: 28px;
  display: inline-grid; place-items: center;
  font-size: var(--wo-texte-2xs);
  font-weight: var(--wo-graisse-forte);
  letter-spacing: var(--wo-capitales);
  color: var(--wo-texte-inverse);
  background: var(--wo-accent);
  border-radius: var(--wo-rayon-pilule);
  text-transform: uppercase;
  user-select: none;
}
/* --discret : sur fond clair, dans une ligne de liste ou un entête de fiche. */
.wo-avatar--discret { color: var(--wo-accent); background: var(--wo-accent-surface); }
.wo-avatar--bandeau { color: var(--wo-texte-inverse); background: var(--wo-accent-clair); }
.wo-avatar--lg { width: 40px; height: 40px; font-size: var(--wo-texte-md); }
.wo-avatar--sm { width: 22px; height: 22px; font-size: var(--wo-texte-3xs); }

/* Étoile de favori : bouton à deux états, jamais un simple caractère coloré. */
.wo-favori {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  padding: 0;
  font-size: var(--wo-texte-md);
  line-height: 1;
  color: var(--wo-favori-eteint);
  background: none; border: 0;
  border-radius: var(--wo-rayon-controle);
  cursor: pointer;
}
.wo-favori:hover { color: var(--wo-favori); background: var(--wo-surface-2); }
.wo-favori.is-actif,
.wo-favori[aria-pressed="true"] { color: var(--wo-favori); }
.wo-favori[disabled] { color: var(--wo-texte-4); cursor: not-allowed; background: none; }
/* --nav : la même étoile sur l'ardoise du menu, pour épingler une
   sous-entrée. Éteinte elle reste lisible sur le sombre. */
.wo-favori--nav { width: 18px; height: 18px; font-size: var(--wo-texte-sm); color: var(--wo-nav-discret); }
.wo-favori--nav:hover { color: var(--wo-favori); background: none; }
.wo-favori--nav.is-actif,
.wo-favori--nav[aria-pressed="true"] { color: var(--wo-favori); }
/* --cellule : dans une colonne de tableau, sans fond au survol de la ligne. */
.wo-favori--cellule:hover { background: none; }


/* --------------------------------------------------------------------------
   20. GABARIT DE COQUE
   Bandeau + menu + contenu. Il ne pose que la charpente : hauteurs,
   défilement, gouttières. Ce n'est PAS un composant à varier ; un écran
   n'en contient qu'un.
   -------------------------------------------------------------------------- */
.wo-portail {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100vh;
  background: var(--wo-surface-app);
  overflow: hidden;
}
.wo-portail__corps {
  display: grid;
  grid-template-columns: var(--wo-largeur-menu) 1fr;
  min-height: 0;
}
.wo-portail--sans-menu .wo-portail__corps { grid-template-columns: 1fr; }
.wo-portail__contenu {
  min-width: 0;
  overflow-y: auto;
  padding: var(--wo-pad-ecran);
  display: flex; flex-direction: column;
  gap: var(--wo-esp-8);
}
/* Bandeau d'écran : fil d'ariane + titre + actions, collé en haut du contenu. */
.wo-portail__entete {
  display: flex; align-items: flex-start; gap: var(--wo-esp-6);
  flex-wrap: wrap;
}
.wo-portail__entete .wo-spacer { flex: 1; }


/* --------------------------------------------------------------------------
   21. THÈME : PALETTE D'ACCENT ET ÉCHELLE DE RAYON
   Deux réglages, exposés à l'utilisateur dans « Paramètres de style ».
   Chacun se pose par une CLASSE — sur <html>, sur <body> ou sur .wo-portail
   — jamais par un attribut style : le projet l'interdit en template.

   Ce ne sont PAS des thèmes clair/sombre. La coque est sombre dans les
   quatre palettes et le contenu clair dans les quatre : la palette ne
   déplace que l'accent. C'est ce qui garantit qu'un écran reste lisible
   quel que soit le choix de la société.
   -------------------------------------------------------------------------- */
.wo-theme--bleu {          /* défaut, identique à :root */
  --wo-accent: #3D7AB5; --wo-accent-actif: #2E6291;
  --wo-accent-surface: #E7F0F8; --wo-accent-vignette: #9DC3E6;
}
.wo-theme--vert {
  --wo-accent: #4E8A66; --wo-accent-actif: #3E7052;
  --wo-accent-surface: #E8F3EC; --wo-accent-vignette: #A9D3BD;
}
.wo-theme--lavande {
  --wo-accent: #6A63B8; --wo-accent-actif: #554F9B;
  --wo-accent-surface: #EEEDF9; --wo-accent-vignette: #B7B1E3;
}
.wo-theme--terracotta {
  --wo-accent: #B0664A; --wo-accent-actif: #94533B;
  --wo-accent-surface: #F8EDE8; --wo-accent-vignette: #E5B39B;
}

/* Échelle de rayon. --wo-rayon-pilule est volontairement absent : un badge
   reste une pilule, même en échelle « Carré ». */
.wo-rayons--doux     { --wo-rayon-controle: 9px; --wo-rayon-nav: 10px; --wo-rayon-bloc: 16px; }
.wo-rayons--standard { --wo-rayon-controle: 6px; --wo-rayon-nav:  7px; --wo-rayon-bloc: 12px; }
.wo-rayons--carre    { --wo-rayon-controle: 2px; --wo-rayon-nav:  2px; --wo-rayon-bloc:  3px; }


/* --------------------------------------------------------------------------
   22. CHOIX ILLUSTRÉ
   Rangée d'options qu'on compare à l'œil avant de choisir : une palette,
   une échelle de rayon, un gabarit. Chaque option montre un aperçu et son
   nom, et l'option retenue porte .is-actif.

   Ce n'est PAS .wo-btn-groupe (segmenté, labels courts, pas d'aperçu) et ce
   n'est pas une liste de cases à cocher : le choix est unique et visuel.
   -------------------------------------------------------------------------- */
.wo-choix { display: flex; gap: var(--wo-esp-6); }
.wo-choix__item {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: var(--wo-esp-4);
  padding: var(--wo-esp-4) var(--wo-esp-3);
  font: var(--wo-texte-xs) var(--wo-police);
  color: var(--wo-texte-2);
  background: var(--wo-surface);
  border: var(--wo-trait-marque) solid var(--wo-bordure-controle);
  border-radius: var(--wo-rayon-controle);
  cursor: pointer;
  text-align: center;
}
.wo-choix__item:hover { border-color: var(--wo-accent-bordure); }
.wo-choix__item.is-actif,
.wo-choix__item[aria-pressed="true"] { border-color: var(--wo-accent); color: var(--wo-texte); }
.wo-choix__item[disabled] { color: var(--wo-texte-4); cursor: not-allowed; }
/* Aperçu d'une palette : l'aplat clair cerclé de l'accent. */
.wo-choix__pastille {
  width: 26px; height: 26px;
  border-radius: var(--wo-rayon-pilule);
  background: var(--wo-choix-aplat, var(--wo-accent-vignette));
  border: var(--wo-trait-marque) solid var(--wo-choix-accent, var(--wo-accent));
}
/* Aperçu d'une échelle de rayon : un carré au rayon de l'échelle. */
.wo-choix__apercu {
  width: 26px; height: 26px;
  background: var(--wo-surface-3);
  border-radius: var(--wo-rayon-controle);
}
.wo-choix__nom { font-size: var(--wo-texte-2xs); line-height: 1.3; }

/* Les 4 palettes en aperçu, à poser sur .wo-choix__item — elles ne
   changent que la pastille, pas le thème de la page. */
.wo-choix__item--bleu       { --wo-choix-aplat: #9DC3E6; --wo-choix-accent: #3D7AB5; }
.wo-choix__item--vert       { --wo-choix-aplat: #A9D3BD; --wo-choix-accent: #4E8A66; }
.wo-choix__item--lavande    { --wo-choix-aplat: #B7B1E3; --wo-choix-accent: #6A63B8; }
.wo-choix__item--terracotta { --wo-choix-aplat: #E5B39B; --wo-choix-accent: #B0664A; }
/* Les 3 échelles en aperçu. */
.wo-choix__item--doux     .wo-choix__apercu { border-radius: 9px; }
.wo-choix__item--standard .wo-choix__apercu { border-radius: 6px; }
.wo-choix__item--carre    .wo-choix__apercu { border-radius: 2px; }
