/* ==========================================================================================================
   Design système — refonte de l'interface, étape 1 sur 7 (12/10/2026, docs/ARRET_refonte_ui_etape1.md).
   Chargé APRÈS style.css par les 8 en-têtes (login, tableau de bord, Mes tâches, fiche client, catalogue, fiche produit,
   Mon profil, pages d'administration) : il gagne à spécificité égale. Changement de look UNIQUEMENT : aucune classe
   ajoutée au HTML, aucun texte, aucune logique ; tout s'applique sur les classes existantes. style.css n'est pas modifié.
   Mode clair seulement. Aucune police externe : pile du système.
   Règles de Jonathan : (1) tout texte dans une pastille, un bouton, une bulle ou une carte rangée ; (2) la couleur suit
   le sens — vert = valider, orange = reporter / note, rouge = annuler / urgent, bleu = information / copier ; (3) la note
   sur le client est une bulle de BD dont la queue pointe vers le nom du client ; (4) pastilles 28 px, 12,5 px gras,
   arrondi complet ; boutons 44 px, rayon 12 px, 14 px gras. Cibles de 44 px minimum sur TOUS les écrans.
   Contrastes calculés (WCAG AA, texte ≥ 4,5) : voir l'ARRÊT ; les couleurs « pleines » orange, rouge et bleu ne portent
   jamais de texte blanc (bordures, queues de bulle, points).
   ========================================================================================================== */

/* ---------- 1. Jetons ---------- */
:root {
    --ds-fond: #f1f3f7; --ds-carte: #ffffff; --ds-texte: #2b3042; --ds-discret: #626b86;
    --ds-trait: #e8ebf2; --ds-doux: #f6f7fb; --ds-gris: #eceef4;
    --ds-bleu-fond: #e8edff; --ds-bleu-texte: #3556d6; --ds-bleu-plein: #5b7bef;
    --ds-vert-fond: #e0f6ea; --ds-vert-texte: #17784b; --ds-vert-bouton: #1b7f51; --ds-vert-bouton-survol: #166b44;
    --ds-orange-fond: #fdf0d9; --ds-orange-texte: #935c00; --ds-orange-plein: #f5a623;
    --ds-rouge-fond: #fde5e5; --ds-rouge-texte: #c02f2f; --ds-rouge-plein: #ef5b5b;
    --ds-rayon: 16px; --ds-rayon-bouton: 12px; --ds-ombre: 0 2px 14px rgba(41, 52, 90, .07);
    --ds-pastille-h: 28px; --ds-bouton-h: 44px;
    --ds-police: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ds-focus: 0 0 0 3px rgba(53, 86, 214, .45);

    /* Anciennes variables de style.css réaffectées : tout l'existant suit sans être réécrit. */
    --bg: var(--ds-fond); --card: var(--ds-carte); --text: var(--ds-texte); --muted: var(--ds-discret); --line: var(--ds-trait);
    --primary: var(--ds-bleu-texte); --primary-dark: #2a46b3; --ok: var(--ds-vert-bouton); --err: var(--ds-rouge-texte);
    --orange: var(--ds-orange-plein); --rouge-urgent: var(--ds-rouge-texte); --gris-journalier: var(--ds-discret);
    --cat-urgent: var(--ds-rouge-texte); --cat-urgent-bg: var(--ds-rouge-fond);
    --cat-important: var(--ds-orange-texte); --cat-important-bg: var(--ds-orange-fond);
    --cat-journalier: var(--ds-bleu-texte); --cat-journalier-bg: var(--ds-bleu-fond);
    --cat-commission: var(--ds-vert-texte); --cat-commission-bg: var(--ds-vert-fond);
    --msgbox: var(--ds-bleu-texte); --msgbox-bg: var(--ds-bleu-fond);
    --type-baisse: var(--ds-orange-texte); --type-baisse-bg: var(--ds-orange-fond);
    /* Nouveautés : turquoise gardé (décision C9 : distinct d'Important), foncé pour le contraste (4,86 sur son fond). */
    --cat-nouveaute: #0a7568;
    --relance: var(--ds-discret); --relance-bg: var(--ds-gris); --produit: var(--ds-bleu-texte); --produit-bg: var(--ds-bleu-fond);
    --radius: var(--ds-rayon); --shadow: var(--ds-ombre); --shadow-sm: 0 1px 4px rgba(41, 52, 90, .06);
    --surface-alt: var(--ds-doux); --fond-piste: var(--ds-gris); --desactive-fond: var(--ds-gris);
    --anneau-focus: var(--ds-focus);
    --cible-min: 44px;   /* 44 px partout (décision du 12/10/2026), plus seulement au doigt */
    /* Page de connexion (13/10/2026) : jaune mesuré sur la maquette (bouton « Se connecter », hors texte), seule valeur brute de
       ce jaune (bouton, flèche du logo, traits, cadenas ; 8,8 de contraste avec --ds-texte) ; voile noir à 55 % du panneau. */
    --accent-connexion: #fece37; --voile-connexion: rgb(0 0 0 / 55%);
}

/* ---------- 2. Base ---------- */
body { font-family: var(--ds-police); background: var(--ds-fond); color: var(--ds-texte); }
.adm-refus { font-family: var(--ds-police); }
:where(a, button, summary, select, input, textarea, [tabindex], label:has(> input)):focus-visible {
    outline: 3px solid var(--ds-bleu-texte); outline-offset: 2px; }

/* ---------- 3. Cartes rangées ---------- */
.card, .panel { background: var(--ds-carte); border: 0; border-radius: var(--ds-rayon); box-shadow: var(--ds-ombre); }
.tbl-row, .tbl-row.card { background: transparent; box-shadow: none; border-radius: 0; }
.mission-bloc, .tuile-stat, .fiche-col, .panneau-details, .resultat-sous-taches, .rf-fait {
    border-radius: var(--ds-rayon); border-color: var(--ds-trait); }
.cs-choix, .pref-carte { border-radius: var(--ds-rayon); }   /* bordure gauche colorée gardée */
.mission-bloc { background: var(--ds-carte); }
.empty, .tbl-cat-vide { background: var(--ds-doux); border: 1px solid var(--ds-trait); border-radius: var(--ds-rayon); color: var(--ds-discret); }
.tbl-cat-vide { margin: 10px 0; border-bottom: 1px solid var(--ds-trait); }
.tbl-row.ouvert > .tbl-detail { border-radius: var(--ds-rayon); }
/* « Pourquoi maintenant ? » = information : bleu (règle 2), plus l'orange d'Important. */
.mission-pourquoi { background: var(--ds-bleu-fond); border-color: #cfd9fb; }
.mission-pourquoi .mission-bloc-titre { color: var(--ds-bleu-texte); }
.mission-action span, .mission-objectif span { color: var(--ds-discret); }
.mission-bloc-titre { color: var(--ds-discret); }

/* ---------- 4. Pastilles (règle 4) : arrondi complet, 28 px, 12,5 px gras ---------- */
.badge, .meta .badge-boutique, .td-priorite .badge-attente, .td-priorite .badge-non-enregistre {
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
    height: auto; min-height: var(--ds-pastille-h); padding: 0 12px; border-radius: 999px;
    font-size: 12.5px; font-weight: 700; line-height: 1; white-space: nowrap; vertical-align: middle; }
.meta .badge-boutique { margin-left: 4px; }
.badge-cat-urgent { color: var(--ds-rouge-texte); background: var(--ds-rouge-fond); }
.badge-cat-important { color: var(--ds-orange-texte); background: var(--ds-orange-fond); }
.badge-cat-journalier { color: var(--ds-bleu-texte); background: var(--ds-bleu-fond); }
.badge-attente { color: var(--ds-bleu-texte); background: var(--ds-bleu-fond); }
.badge-attente.depassee { color: var(--ds-discret); background: var(--ds-gris); }
.badge-non-enregistre, .badge-skip { color: var(--ds-orange-texte); background: var(--ds-orange-fond); }
.badge-commissionne { color: var(--ds-orange-texte); background: var(--ds-orange-fond); }
.badge-rupture { color: var(--ds-rouge-texte); background: var(--ds-rouge-fond); }
.badge-nouveaute { color: var(--ds-bleu-texte); background: var(--ds-bleu-fond); }
.badge-boutique { color: var(--ds-texte); background: var(--ds-gris); }
.td-priorite { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.td-priorite .badge-attente, .td-priorite .badge-non-enregistre { margin-top: 0; }
.pastille-urgent { background: var(--ds-rouge-plein); }
.pastille-important { background: var(--ds-orange-plein); }
.pastille-journalier { background: var(--ds-bleu-plein); }

/* ---------- 5. Boutons (règle 4) : 44 px, rayon 12 px, 14 px gras ---------- */
.btn, .btn-small, .btn-appeler, .btn-appeler-large, .btn-vert-large, .btn-annuler-appel, .btn-annuler-ligne, .btn-skip-ligne,
.btn-message-seul, .btn-suivi, .btn-pref, .btn-retour, .btn-annuler {
    box-sizing: border-box; min-height: var(--ds-bouton-h); border-radius: var(--ds-rayon-bouton);
    padding: 8px 16px; font-size: 14px; font-weight: 700; line-height: 1.2; }
.btn-vert-large { padding: 8px 18px; }
.btn-lien { min-height: var(--ds-bouton-h); }
/* Boutons d'icône : carrés de 44 px. */
.btn-chevron, .btn-icone, .btn-copier-mini, .btn-kebab, .btn-fermer, .btn-appel, .bandeau-global-fermer {
    min-width: var(--ds-bouton-h); min-height: var(--ds-bouton-h); width: auto; height: auto; border-radius: var(--ds-rayon-bouton); }
.btn-appel { border-radius: 50%; width: var(--ds-bouton-h); height: var(--ds-bouton-h); }
.btn-nav { min-height: var(--ds-bouton-h); padding: 0 12px; border-radius: var(--ds-rayon-bouton); font-weight: 700; }
.btn-fermer { padding: 0; }
/* Autres boutons existants : jamais sous 44 px (onglets, segments, choix, menus). */
.tab-pill, .chip, .fiche-onglet, .seg button, .souscarte-tabs button, .kebab-menu button, .kebab-menu a, .btn-choix,
.btn-raccourci, .nv-categorie, .resultat-grille .btn-choix, .head-avatar, .head-bell, .js-nc-modifier {
    min-height: var(--ds-bouton-h); }
:where(button, [role="button"], input[type="submit"], input[type="button"]) { min-height: var(--ds-bouton-h); min-width: var(--ds-bouton-h); }

/* Secondaire neutre (blanc, bordé) ; survol doux. */
.btn { background: var(--ds-carte); border: 1px solid #d5dae6; color: var(--ds-texte); }
.btn:hover { background: var(--ds-doux); border-color: #c4cbdb; }
.btn:not(.btn-primary):disabled:hover { background: var(--ds-carte); }

/* VERT = valider : bouton principal plein (texte blanc sur #1b7f51 : 5,0). */
.btn-primary, .btn-vert-large, .btn-appeler { background: var(--ds-vert-bouton); border: 1px solid var(--ds-vert-bouton); color: #fff; }
.btn-primary:hover, .btn-vert-large:hover, .btn-appeler:hover { background: var(--ds-vert-bouton-survol); border-color: var(--ds-vert-bouton-survol); }
.btn-primary:disabled:hover { background: var(--ds-vert-bouton); border-color: var(--ds-vert-bouton); }
.btn-appeler.desactive, .btn-message-seul { background: var(--ds-gris); border-color: var(--ds-gris); color: var(--ds-discret); }
.btn-positif { background: var(--ds-vert-fond); border-color: #b5e3cb; color: var(--ds-vert-texte); }
.btn-positif:hover { background: #cdeedc; border-color: var(--ds-vert-texte); }
/* Étape 1 du panneau : « Je commence mon appel » est LE bouton principal → « Appeler » passe en contour vert. */
.appel-contact:has(.js-appel-commencer:not([hidden])) .btn-appeler {
    background: var(--ds-carte); color: var(--ds-vert-texte); border: 2px solid var(--ds-vert-bouton); }
.appel-contact:has(.js-appel-commencer:not([hidden])) .btn-appeler:hover { background: var(--ds-vert-fond); }

/* ORANGE = reporter / note : Reporter (0190), demande d'annulation (skip), Client bien suivi (repousse le contact), boutons de la note. */
.btn-report, .btn-skip-ligne, .btn-skip, .btn-suivi, .note-client .js-nc-modifier {
    background: var(--ds-orange-fond); border: 1px solid #f2d39c; color: var(--ds-orange-texte); box-shadow: none; }
.btn-report:hover, .btn-skip-ligne:hover, .btn-skip:hover, .btn-suivi:hover, .note-client .js-nc-modifier:hover {
    background: #fbe5bd; border-color: var(--ds-orange-plein); color: var(--ds-orange-texte); }
.btn-suivi:focus-visible { outline-color: var(--ds-bleu-texte); }

/* ROUGE = annuler / urgent : Annuler cet appel, Annuler (bandeau, formulaires), confirmation d'annulation. */
.btn-annuler-appel, .btn-annuler-ligne, .btn-annuler, .js-nc-annuler, .js-cs-annuler {
    background: var(--ds-carte); border: 1px solid #f0b8b8; color: var(--ds-rouge-texte); }
.btn-annuler-appel:hover, .btn-annuler-ligne:hover, .btn-annuler:hover, .js-nc-annuler:hover, .js-cs-annuler:hover {
    background: var(--ds-rouge-fond); border-color: var(--ds-rouge-plein); }
.btn-annuler-ligne { padding: 8px 12px; }
.btn-danger { background: var(--ds-rouge-fond); border: 2px solid var(--ds-rouge-plein); color: var(--ds-rouge-texte); }
.btn-danger:hover { background: #fbd3d3; }

/* BLEU = information / copier : Préférences du client, Copier, Copier l'email, contacts. */
.btn-pref, .js-copier-texte, .js-ed-copier, .js-copier-email, .btn-copier-mini {
    background: var(--ds-bleu-fond); border: 1px solid #cfd9fb; color: var(--ds-bleu-texte); box-shadow: none; }
.btn-pref:hover, .js-copier-texte:hover, .js-ed-copier:hover, .js-copier-email:hover, .btn-copier-mini:hover {
    background: #dbe3ff; border-color: var(--ds-bleu-plein); color: var(--ds-bleu-texte); }
.pill-contact { background: var(--ds-bleu-fond); color: var(--ds-bleu-texte); border-radius: var(--ds-rayon-bouton); min-height: var(--ds-bouton-h); padding: 6px 12px; }
.tab-pill.active { background: var(--ds-bleu-fond); color: var(--ds-bleu-texte); border-color: #cfd9fb; }
.seg button.on { background: var(--ds-bleu-texte); color: #fff; }

/* ---------- 6. Mes tâches : colonne des actions (défaut du chevauchement) ---------- */
/* La colonne fixe de 124 px recevait Appeler + Skip cette tâche + chevron (≈ 240 px) : ils débordaient sur « Action
   recommandée ». Colonne de 156 px ; Appeler et le chevron sur la première rangée, « Skip cette tâche » dessous. */
.tbl-taches .tbl-head, .tbl-taches .tbl-ligne {
    grid-template-columns: 96px minmax(160px, 1.1fr) minmax(200px, 1.5fr) minmax(160px, 1.2fr) 156px; }
.tbl-dashboard .tbl-head, .tbl-dashboard .tbl-ligne {
    grid-template-columns: 96px minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 1.2fr) 156px; }
.td-actions { flex-wrap: wrap; justify-content: flex-end; gap: 6px; min-width: 0; }
.td-actions .btn-appeler, .td-actions .btn-message-seul { flex: 1 1 auto; justify-content: center; }
.td-actions .btn-chevron { order: 2; flex: none; }
.td-actions .btn-skip-ligne { order: 3; flex: 1 1 100%; justify-content: center; }
.tbl-taches .btn-appeler { padding: 8px 12px; }
.tbl-row.selectionne > .tbl-ligne { background: var(--ds-bleu-fond); box-shadow: inset 0 0 0 2px var(--ds-bleu-texte); border-radius: 12px; }
@media (max-width: 1023px) {
    .tbl-taches .tbl-ligne .td-actions, .tbl-dashboard .tbl-ligne .td-actions { justify-content: flex-start; }
    .td-actions .btn-skip-ligne { flex: 0 1 auto; }
}

/* ---------- 7. Note sur le client : bulle de BD (règle 3) ---------- */
/* Bordure épaisse orange, coins très arrondis sauf celui du haut à gauche, d'où part la queue vers le NOM du client
   (au-dessus de la note dans le panneau comme dans la fiche). Deux pseudo-éléments : triangle de bordure + triangle de fond. */
.note-client { position: relative; margin-top: 22px; background: var(--ds-orange-fond); border: 3px solid var(--ds-orange-plein);
    border-radius: 4px 24px 24px 24px; padding: 14px 16px; }
.note-client::before, .note-client::after { content: ""; position: absolute; width: 0; height: 0; border-style: solid; pointer-events: none; }
.note-client::before { left: 14px; top: -19px; border-width: 0 10px 16px 10px; border-color: transparent transparent var(--ds-orange-plein) transparent; }
.note-client::after { left: 18px; top: -12px; border-width: 0 6px 10px 6px; border-color: transparent transparent var(--ds-orange-fond) transparent; }
.note-client .mission-bloc-titre { color: var(--ds-orange-texte); }
.note-client .note-client-texte { color: var(--ds-texte); font-size: 15px; }
.note-client .meta, .note-client .note-client-historique summary { color: var(--ds-orange-texte); }
.note-client textarea { background: var(--ds-carte); border-color: #f2d39c; border-radius: 12px; }

/* Vert employé comme TEXTE (statut « enregistré », numéro d'étape passée) : teinte texte, pas celle du bouton (4,41 sur
   le fond vert) — 4,85 sur le fond vert, 4,87 sur le fond orange de la bulle. */
.status.ok, .etape-appel.passee .etape-appel-num, .rf-extraction-etat.ok { color: var(--ds-vert-texte); }

/* ---------- 8. Formulaires ---------- */
/* Case « Envoyer un message au client » (étape 3) : l'étiquette entière fait 44 px. */
.ap-msg-choix { min-height: var(--ds-bouton-h); }
/* Choix de la boîte « Skip cette tâche » : l'étiquette entière (bouton radio compris) est la cible de 44 px. */
.skip-raison { min-height: var(--ds-bouton-h); align-items: center; padding: 4px 0; }
.skip-raison input { margin-top: 0; }
/* Tuiles du tableau de bord (fond teinté de la catégorie) : sous-texte en couleur de texte, lisible sur chaque teinte. */
.tuile-sous { color: var(--ds-texte); }
input[type=email], input[type=password], input[type=search], input[type=text], textarea, select { border-color: var(--ds-trait); }
.tbl-recherche { border-radius: var(--ds-rayon-bouton); min-height: var(--ds-bouton-h); }

/* ==========================================================================================================
   ÉTAPE 2 — Coquille commune : barre latérale, en-tête, cloche, menu du compte, barre basse du téléphone.
   La liste des entrées vit à un seul endroit (nav_entrees(), web/_sidebar.php).
   ========================================================================================================== */
:root { --sidebar-bg: var(--ds-texte); --sidebar-text: var(--ds-fond); --sidebar-active-bg: color-mix(in srgb, var(--ds-carte) 12%, transparent); }
.sidebar-nav a, .sidebar-nav .navitem { min-height: var(--ds-bouton-h); border-radius: var(--ds-rayon-bouton); }
.sidebar-nav a.actif { background: var(--sidebar-active-bg); color: var(--ds-carte); box-shadow: inset 3px 0 0 var(--accent-connexion); }
.sidebar-badge { background: var(--ds-rouge-texte); color: #fff; min-width: 22px; height: 22px; padding: 0 7px; display: inline-flex;
    align-items: center; justify-content: center; font-size: 12px; border-radius: 999px; }
.sidebar-boutique select, .boutique-fixe { min-height: var(--ds-bouton-h); border-radius: var(--ds-rayon-bouton); }
.sidebar-deconnexion { border-radius: var(--ds-rayon-bouton); }

/* En-tête : date, cloche et compte en cartes blanches de 44 px. */
.head-date, .head-bell, .head-avatar { min-height: var(--ds-bouton-h); background: var(--ds-carte); border: 1px solid var(--ds-trait);
    border-radius: var(--ds-rayon-bouton); box-shadow: var(--ds-ombre); }
.head-bell { min-width: var(--ds-bouton-h); }
.head-bell .pastille { background: var(--ds-rouge-texte); color: #fff; }
.head-avatar .initiales { background: var(--ds-bleu-texte); border-radius: 10px; }
.head-date svg { color: var(--ds-bleu-texte); }
.page-head h1 { color: var(--ds-texte); font-weight: 800; }
/* « Données au… » : information → pastille bleue. */
.bandeau-fin { background: var(--ds-bleu-fond); color: var(--ds-bleu-texte); border: 1px solid #cfd9fb; border-radius: 999px; min-height: 28px; height: auto; }
.kebab-menu, .cloche-panneau { border-radius: var(--ds-rayon); border-color: var(--ds-trait); box-shadow: 0 12px 32px rgba(41, 52, 90, .16); overflow: hidden; }
.kebab-menu a, .kebab-menu button { display: flex; align-items: center; }
.cloche-element a { min-height: var(--ds-bouton-h); }
.cloche-urgent .cloche-icone { background: var(--ds-rouge-fond); color: var(--ds-rouge-texte); }
.cloche-rappel .cloche-icone { background: var(--ds-bleu-fond); color: var(--ds-bleu-texte); }
.cloche-commande .cloche-icone { background: var(--ds-vert-fond); color: var(--ds-vert-texte); }
.cloche-demande .cloche-icone { background: var(--ds-orange-fond); color: var(--ds-orange-texte); }

@media (max-width: 880px) {
    /* En-tête compact : titre et sous-titre plus petits, moins d'air ; barre de 44 px (menu, cloche, compte) inchangée. */
    .page-head h1 { font-size: 19px; }
    .page-head .sous-titre { font-size: 13px; margin-top: 2px; }
    .page-head { margin-bottom: var(--esp-3); }
    .bandeau-fin { margin-bottom: var(--esp-2); }
    .sidebar-toggle { background: var(--ds-carte); border: 1px solid var(--ds-trait); border-radius: var(--ds-rayon-bouton); box-shadow: var(--ds-ombre); }
    /* Barre basse complète (Tâches, Clients, Tableau de bord, Profil, Admin) : entrée active en bleu (information). */
    .nav-mobile { background: var(--ds-carte); border-top: 1px solid var(--ds-trait); box-shadow: 0 -2px 14px rgba(41, 52, 90, .07); }
    .nav-mobile a { color: var(--ds-discret); border-radius: var(--ds-rayon-bouton); }
    .nav-mobile a.actif { color: var(--ds-bleu-texte); background: var(--ds-bleu-fond); }
}

/* ==========================================================================================================
   ÉTAPE 3 — Panneau de mission : étapes 1-2-3, après l'appel, éditeur de message, préférences, mode série.
   ========================================================================================================== */
/* Étape 1 : le téléphone et LE bouton principal (« Je commence mon appel ») en haut, avant « Pourquoi maintenant ? ».
   :not([hidden]) : une page masquée doit le rester (l'attribut hidden ne gagne pas contre un display explicite). */
.page-appel:not([hidden]) { display: flex; flex-direction: column; }
.page-appel[data-page="1"] > .entrant-en-cours, .page-appel[data-page="1"] > .appel-contact,
.page-appel[data-page="1"] > .jour-appel-pref { order: -1; }
.page-appel[data-page="1"] > .appel-contact { margin-top: 12px; }
/* Étape 2 : chronomètre puis « Terminer l'appel » et « Annuler cet appel » en haut, la note ensuite. */
.page-appel[data-page="2"] > .appel-chrono, .page-appel[data-page="2"] > .appel-autre-ouvert { order: -3; }
.page-appel[data-page="2"] > .js-appel-terminer { order: -2; margin-top: 12px; }
.page-appel[data-page="2"] > .js-appel-annuler { order: -1; align-self: flex-start; margin: 8px 0 12px; }
.appel-chrono { border-radius: var(--ds-rayon); }

/* Barre des trois étapes : pastilles numérotées ; l'étape en cours en vert, les étapes passées en vert clair. */
.etape-appel { min-height: var(--ds-bouton-h); border-radius: var(--ds-rayon-bouton); }
.etape-appel.active { border-color: var(--ds-vert-bouton); }
.etape-appel.active .etape-appel-num { background: var(--ds-vert-bouton); color: #fff; }
.etape-appel.passee .etape-appel-num { background: var(--ds-vert-fond); }
.etape-appel:disabled .etape-appel-titre { color: var(--ds-discret); }
/* Titres des blocs en pastille de casse normale (plus de majuscules espacées). */
.mission-bloc-titre { text-transform: none; letter-spacing: 0; font-size: 13.5px; }

/* UN seul bouton plein par écran : les « Enregistrer » des cartes Préférences et « Analyser la note » passent en contour
   vert ; le bouton final (« J'ai envoyé le message / l'e-mail » ou « Terminer ») reste le seul plein de l'étape 3. */
.page-preferences .btn-primary, .pref-fiche .btn-primary, .js-rf-enregistrer-note.btn-primary, .cs-actions .btn-primary {
    background: var(--ds-carte); color: var(--ds-vert-texte); border: 2px solid var(--ds-vert-bouton); }
.page-preferences .btn-primary:hover, .pref-fiche .btn-primary:hover, .js-rf-enregistrer-note.btn-primary:hover, .cs-actions .btn-primary:hover {
    background: var(--ds-vert-fond); border-color: var(--ds-vert-bouton); }
.page-preferences .btn-primary:disabled:hover, .pref-fiche .btn-primary:disabled:hover, .js-rf-enregistrer-note.btn-primary:disabled:hover { background: var(--ds-carte); }
.resultat-actions .js-rf-valider:disabled { background: var(--ds-vert-bouton); border-color: var(--ds-vert-bouton); }

/* « Client non viable » : Particulier, Hors sujet, Société fermée sur une ligne, « Ne plus contacter » seul dessous
   (même bouton radio, rouge une fois choisi). */
.nv-categories { display: flex; flex-wrap: wrap; gap: 8px; }
.nv-categorie { min-height: var(--ds-bouton-h); }
.nv-categorie:has(input[value="ne_plus_contacter"]) { order: 2; flex-basis: 100%; justify-content: flex-start; max-width: max-content; margin-top: 4px; }
.nv-categories > :not(.nv-categorie) { order: 3; }
.nv-categorie:has(.js-nv-categorie:checked) { background: var(--ds-rouge-texte); border-color: var(--ds-rouge-texte); color: #fff; }

/* Après l'appel : choix du résultat en cartes ; « Rappeler » = reporter (orange). */
.btn-choix { border-radius: var(--ds-rayon-bouton); border-color: var(--ds-trait); }
.btn-choix.selectionne { border-color: var(--ds-bleu-texte); background: var(--ds-bleu-fond); color: var(--ds-bleu-texte); box-shadow: 0 0 0 1px var(--ds-bleu-texte) inset; }
.btn-raccourci { min-height: var(--ds-bouton-h); border-radius: var(--ds-rayon-bouton); border-color: var(--ds-trait); }
.btn-raccourci.selectionne { border-color: var(--ds-bleu-texte); background: var(--ds-bleu-fond); color: var(--ds-bleu-texte); }
.etape-num { background: var(--ds-bleu-texte); }
.rf-fait { border-radius: var(--ds-rayon-bouton); }
.rf-fait-type { color: var(--ds-bleu-texte); background: var(--ds-bleu-fond); }
.rf-fait-ne_plus_contacter { border-color: #f0b8b8; background: #fff8f8; }
.rf-fait-ne_plus_contacter .rf-fait-type { color: var(--ds-rouge-texte); background: var(--ds-rouge-fond); }
.resultat-conseq { background: var(--ds-bleu-fond); color: var(--ds-bleu-texte); border-color: #cfd9fb; border-radius: var(--ds-rayon-bouton); }
.ap-final-manque { color: var(--ds-orange-texte); background: var(--ds-orange-fond); border-radius: var(--ds-rayon-bouton); padding: 8px 12px; }
.ap-msg-choix { background: var(--ds-doux); border-radius: var(--ds-rayon-bouton); padding: 0 12px; }

/* Éditeur de message : « Copier » en bleu, « Message envoyé » (valider) en vert plein, partout — mode série compris. */
.editeur-envoi .btn-primary { background: var(--ds-vert-bouton); border-color: var(--ds-vert-bouton); color: #fff; }
.editeur-envoi .btn-primary:hover { background: var(--ds-vert-bouton-survol); }
.editeur-envoi .js-ed-copier, .editeur-ia .js-ed-copier { background: var(--ds-bleu-fond); border-color: #cfd9fb; color: var(--ds-bleu-texte); }
.serie-corps .js-ed-transformer[data-mode="corriger"] { border-color: var(--violet-ia); color: var(--violet-ia); }

/* Mode série des messages Nouveauté : barre du haut et pied en cartes, progression en pastille, cibles de 44 px. */
.serie-barre { background: var(--ds-carte); border-bottom: 1px solid var(--ds-trait); box-shadow: var(--ds-ombre); }
.serie-progression { background: var(--ds-bleu-fond); color: var(--ds-bleu-texte); border-radius: 999px; min-height: 28px; padding: 0 12px;
    display: inline-flex; align-items: center; }
.serie-corps .carte-nouveaute .tbl-detail { border: 0; border-radius: var(--ds-rayon); box-shadow: var(--ds-ombre); }
.serie-contexte { border-radius: var(--ds-rayon); border-style: solid; border-color: var(--ds-trait); background: var(--ds-doux); }
.serie-contexte .btn { min-height: var(--ds-bouton-h); }
.serie-pied { background: var(--ds-carte); border-top: 1px solid var(--ds-trait); box-shadow: 0 -2px 14px rgba(41, 52, 90, .07); }
.serie-termine h2 { color: var(--ds-vert-texte); }
/* Contacts : une adresse e-mail longue ne se coupe plus au milieu d'un mot quand la place existe. */
.panneau-tete-contacts { max-width: 300px; }
.pill-contact { overflow-wrap: anywhere; word-break: normal; }

/* ==========================================================================================================
   ÉTAPE 4 — Mes tâches : filtres compacts, regroupement par catégorie, lignes en cartes à pastilles.
   ========================================================================================================== */
/* Filtres compacts : pastilles arrondies, compteur en petite pastille ; bleu = filtre choisi (information). */
.tbl-barre { gap: 10px; margin: 12px 0 8px; }
.tbl-barre .tab-pill { border-radius: 999px; padding: 0 14px; font-size: 13.5px; font-weight: 700; color: var(--ds-texte);
    background: var(--ds-doux); border: 1px solid var(--ds-trait); display: inline-flex; align-items: center; gap: 6px; }
.tbl-barre .tab-pill:hover { background: var(--ds-gris); }
.tbl-barre .tab-pill.active { background: var(--ds-bleu-fond); color: var(--ds-bleu-texte); border-color: #cfd9fb; }
.tab-pill .count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px;
    border-radius: 999px; background: var(--ds-carte); color: inherit; font-size: 12px; font-weight: 700; }
.tab-pill-nouveautes .count { background: var(--cat-nouveaute-bg); color: var(--cat-nouveaute); }
.tbl-recherche { background: var(--ds-doux); border-color: var(--ds-trait); }
/* Onglets de boutique (12/10/2026) : commercial sur plusieurs boutiques seulement ; mêmes pastilles que les filtres ;
   téléphone d'abord : une rangée régulière de pastilles sous le titre « Boutique ». Lignes d'une autre boutique masquées. */
.tbl-boutiques { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.tbl-boutiques-titre { font-size: 13px; font-weight: 700; color: var(--ds-discret); margin-right: 2px; }
.tbl-boutiques .tab-pill { border-radius: 999px; padding: 0 14px; font-size: 13.5px; font-weight: 700; color: var(--ds-texte);
    background: var(--ds-doux); border: 1px solid var(--ds-trait); display: inline-flex; align-items: center; gap: 6px; }
.tbl-boutiques .tab-pill:hover { background: var(--ds-gris); }
.tbl-boutiques .tab-pill.active { background: var(--ds-bleu-fond); color: var(--ds-bleu-texte); border-color: #cfd9fb; }
.boutique-masque { display: none !important; }
@media (max-width: 640px) {
    /* Téléphone : six filtres en deux rangées régulières de trois, sans défilement caché. */
    .tbl-barre .tbl-onglets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; flex: 1 1 100%; }
    .tbl-barre .tab-pill { padding: 0 6px; font-size: 12.5px; justify-content: center; white-space: nowrap; min-width: 0; }
    .tbl-barre .tab-pill .count { min-width: 20px; height: 20px; padding: 0 5px; font-size: 11.5px; }
    .tbl-recherche { flex: 1 1 100%; }
    .tbl-boutiques { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .tbl-boutiques-titre { grid-column: 1 / -1; }
    .tbl-boutiques .tab-pill { padding: 0 6px; font-size: 12.5px; justify-content: center; white-space: nowrap; min-width: 0; }
}

/* Regroupement : chaque catégorie ouvre par une bande arrondie, nom en couleur de la catégorie, chiffres en pastille. */
.tbl .section-cat-head { margin: 14px 0 6px; padding: 6px 12px; min-height: 40px; background: var(--ds-doux); border: 0; border-radius: var(--ds-rayon-bouton); }
.tbl .section-cat-titre { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 800; }
.tbl .section-cat-head[data-categorie="urgent"] .section-cat-titre { color: var(--ds-rouge-texte); }
.tbl .section-cat-head[data-categorie="important"] .section-cat-titre { color: var(--ds-orange-texte); }
.tbl .section-cat-head[data-categorie="journalier"] .section-cat-titre { color: var(--ds-bleu-texte); }
.section-cat-nb { min-width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; background: var(--ds-carte); color: var(--ds-texte); }
.tbl .section-cat-count { color: var(--ds-discret); }
.section-attente-head { background: var(--ds-doux); border-radius: var(--ds-rayon-bouton); padding: 8px 12px; }
.tbl-head { background: transparent; border-bottom: 0; }

/* Lignes en cartes : carte blanche bordée, raison en pastille bleue (information), boutique en pastille. */
.tbl-taches .tbl-row > .tbl-ligne, .tbl-dashboard .tbl-row > .tbl-ligne, .tbl-dashboard > .tbl-ligne {
    background: var(--ds-carte); border: 1px solid var(--ds-trait); border-radius: var(--ds-rayon); margin: 0 0 8px; padding: 10px 12px; }
.tbl-taches .tbl-row > .tbl-ligne:hover { border-color: #cfd9fb; box-shadow: var(--ds-ombre); }
.tbl-row.selectionne > .tbl-ligne { border-radius: var(--ds-rayon); }
.raison-titre { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 12px; border-radius: 999px;
    background: var(--ds-bleu-fond); color: var(--ds-bleu-texte); font-size: 12.5px; font-weight: 700; line-height: 1.25; }
.td-action { font-weight: 600; }
.tbl-row.carte-attente > .tbl-ligne { background: var(--ds-doux); }
@media (max-width: 1023px) {
    .tbl-taches .tbl-row > .tbl-ligne { padding: 12px; }
    .tbl-taches .tbl-ligne .td-raison .raison-titre { flex: 0 1 auto; }
}

/* ==========================================================================================================
   ÉTAPE 5 — Tableau de bord : bandeaux repliables, indicateurs expliqués, cartes blanches douces, cercles de KPI.
   ========================================================================================================== */
/* Bandeaux repliables (bouton ajouté par le script de dashboard.php) : seul l'en-tête reste visible une fois replié. */
.dash-replier { margin-left: auto; flex: none; color: var(--ds-discret); }
.panel-tete-icone .lien + .dash-replier { margin-left: 4px; }
.dash-replier svg { transition: transform .15s; }
.dash-replier[aria-expanded="true"] svg { transform: rotate(180deg); }
.panel.replie > :not(.panel-tete-icone) { display: none !important; }
.panel.replie > .panel-tete-icone { margin-bottom: 0; }

/* Cercles d'icône colorés (fond teinté, icône de la couleur du sens) : en-têtes, tuiles, indicateurs. */
.tete-icone, .tuile-icone, .kpi-icone { border-radius: 50%; }
.tete-icone.bleu, .tete-icone.bleu-clair { background: var(--ds-bleu-fond); color: var(--ds-bleu-texte); }
.tete-icone.vert { background: var(--ds-vert-fond); color: var(--ds-vert-texte); }
.kpi-icone.vert { background: var(--ds-vert-fond); color: var(--ds-vert-texte); }
.kpi-icone.bleu { background: var(--ds-bleu-fond); color: var(--ds-bleu-texte); }
.kpi-icone.orange { background: var(--ds-orange-fond); color: var(--ds-orange-texte); }
.kpi-icone.violet { background: #f1ebfe; color: var(--violet-ia); }
.kpi-icone.rouge { background: var(--ds-rouge-fond); color: var(--ds-rouge-texte); }

/* Programme du jour : trois tuiles BLANCHES douces (nom de la catégorie en couleur, cercle teinté), chiffre puis libellé
   clair dessous, toujours visible ; « Ma progression du jour » sur sa propre ligne en carte douce. */
.programme-corps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tuile { background: var(--ds-carte); border: 1px solid var(--ds-trait); border-radius: var(--ds-rayon); padding: 14px; align-items: flex-start; }
.tuile:hover { box-shadow: var(--ds-ombre); border-color: #cfd9fb; }
.tuile-urgent, .tuile-important, .tuile-journalier { background: var(--ds-carte); }
.tuile-urgent .tuile-icone { background: var(--ds-rouge-fond); color: var(--ds-rouge-texte); }
.tuile-important .tuile-icone { background: var(--ds-orange-fond); color: var(--ds-orange-texte); }
.tuile-journalier .tuile-icone { background: var(--ds-bleu-fond); color: var(--ds-bleu-texte); }
.tuile-urgent .tuile-label { color: var(--ds-rouge-texte); }
.tuile-important .tuile-label { color: var(--ds-orange-texte); }
.tuile-journalier .tuile-label { color: var(--ds-bleu-texte); }
.tuile-nombre { color: var(--ds-texte); }
.tuile-sous { display: block; color: var(--ds-discret); font-size: 12.5px; line-height: 1.3; }
.tuile > svg:last-child { display: block; align-self: center; }
.progression { grid-column: 1 / -1; border-left: 0; background: var(--ds-doux); border-radius: var(--ds-rayon); padding: 12px 14px; }
.progression-barre .progress { background: var(--ds-gris); }
.progression-barre .progress-bar { background: var(--ds-vert-bouton); }
.compteur-effectuees-jour { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--ds-discret); }
.compteur-effectuees-jour svg { color: var(--ds-vert-bouton); flex-shrink: 0; }
.nv-ligne-dash { border-radius: var(--ds-rayon-bouton); min-height: var(--ds-bouton-h); background: var(--ds-doux); }
@media (max-width: 700px) { .programme-corps { grid-template-columns: 1fr; } }

/* Indicateurs du mois : cartes blanches douces, chiffre en grand PUIS libellé clair dessous (ordre visuel seulement). */
.kpi { background: var(--ds-carte); border: 1px solid var(--ds-trait); border-radius: var(--ds-rayon); box-shadow: var(--ds-ombre); }
.kpi-corps { display: flex; flex-direction: column; }
.kpi-value { order: 1; margin-top: 0; color: var(--ds-texte); }
.kpi-label { order: 2; margin-top: 2px; color: var(--ds-discret); font-size: 13px; }
.kpi-variation { order: 3; color: var(--ds-vert-texte); }
.kpi-variation.baisse { color: var(--ds-rouge-texte); }
.kpis-bas { margin-top: 18px; }

/* Prochain client : carte douce, filet de la couleur de la priorité. */
.prochain, .prochain-urgent, .prochain-important, .prochain-journalier { background: var(--ds-doux); border-radius: var(--ds-rayon); border-left: 4px solid var(--ds-trait); }
.prochain-urgent { border-left-color: var(--ds-rouge-plein); }
.prochain-important { border-left-color: var(--ds-orange-plein); }
.prochain-journalier { border-left-color: var(--ds-bleu-plein); }
.prochain-actions .btn-icone { width: var(--ds-bouton-h); height: var(--ds-bouton-h); background: var(--ds-carte); border: 1px solid var(--ds-trait); }

/* Bandeaux du haut : profil à compléter (information, bleu) et célébration (vente détectée, vert). */
.bandeau-profil { background: var(--ds-bleu-fond); border: 1px solid #cfd9fb; border-radius: var(--ds-rayon); }
.celebration { background: var(--ds-vert-fond); border-radius: var(--ds-rayon); }
.celebration-texte { color: var(--ds-vert-texte); }

/* Ligne de tâche du tableau de bord : Appeler et chevron sur la même rangée (Appeler prend la place restante). */
.td-actions .btn-appeler, .td-actions .btn-message-seul { flex: 1 1 0; min-width: 0; }
.panel-tete-icone:has(.dash-replier) > h2, .panel-tete-icone:has(.dash-replier) > div { flex: 1 1 auto; min-width: 0; }
/* Le bouton Replier se place toujours en haut à droite du bandeau, quelle que soit la mise en page de l'en-tête. */
.dash-grid .panel:has(> .panel-tete-icone > .dash-replier) { position: relative; }
.dash-grid .panel > .panel-tete-icone:has(> .dash-replier) { padding-right: 52px; }
.dash-replier { position: absolute; top: 12px; right: 12px; margin: 0; }

/* ==========================================================================================================
   ÉTAPE 6 — Fiche client et catalogue (images des produits), notes en bulles de BD.
   ========================================================================================================== */
/* Catalogue : vignettes plus grandes sur fond doux, image entière (jamais rognée) ; pastilles à la taille commune. */
.produit-vignette { background: var(--ds-doux); border: 1px solid var(--ds-trait); border-radius: 12px; color: var(--ds-discret);
    display: flex; align-items: center; justify-content: center; overflow: hidden; }
.produit-vignette img { object-fit: contain; background: var(--ds-carte); }
.produit-vignette-grande { width: 56px; height: 56px; border-radius: var(--ds-rayon-bouton); }
.fiche-produit-image, .produit-image { background: var(--ds-doux); border: 1px solid var(--ds-trait); border-radius: var(--ds-rayon); color: var(--ds-discret); }
.fiche-produit-image img, .produit-image img { background: var(--ds-carte); }
.produit-badges-mini .badge { font-size: 12.5px; padding: 0 12px; }
.badge-stock { color: var(--ds-vert-texte); background: var(--ds-vert-fond); }
.badge-inactif { color: var(--ds-discret); background: var(--ds-gris); }
.tbl-catalogue .tbl-ligne, .tbl-catalogue > .tbl-row > .tbl-ligne { border-color: var(--ds-trait); }
@media (max-width: 1023px) { .tbl-catalogue .td-image { flex: 0 0 64px; } }

/* Fiche client : colonnes et tuiles en cartes douces ; onglets en pastilles. */
.fiche-col { background: var(--ds-carte); border-color: var(--ds-trait); border-radius: var(--ds-rayon); }
.fiche-onglets { background: var(--ds-doux); border-radius: var(--ds-rayon-bouton); }
.fiche-onglet.active { color: var(--ds-bleu-texte); }
.tuile-stat { border-radius: var(--ds-rayon); }
.tuile-stat-icone { border-radius: 50%; }
.tuile-stat-icone.bleu { background: var(--ds-bleu-fond); color: var(--ds-bleu-texte); }
.tuile-stat-icone.vert { background: var(--ds-vert-fond); color: var(--ds-vert-texte); }
.tuile-stat-icone.gris { background: var(--ds-gris); color: var(--ds-discret); }
.fiche-inter-icone { border-radius: 50%; background: var(--ds-bleu-fond); color: var(--ds-bleu-texte); }

/* Notes en bulles de BD (règle 3) : ce que le CLIENT a dit — « Notes confirmées » de la fiche, « Ce que le client a déjà
   dit » du panneau, note de l'appel de l'historique — bulle orange, coin serré en haut à gauche d'où part la queue vers le
   nom du client ; le message ENVOYÉ au client (historique) répond en bulle bleue, queue à droite. */
.fiche-notes, .mission-notes-liste { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 16px; }
.fiche-notes .fiche-note, .mission-notes-liste li, .fiche-inter-note:not(.fiche-inter-message) {
    position: relative; display: block; margin-top: 10px; padding: 8px 12px; background: var(--ds-orange-fond); color: var(--ds-texte);
    border: 2px solid var(--ds-orange-plein); border-radius: 4px 16px 16px 16px; }
.fiche-notes .fiche-note::before, .mission-notes-liste li::before, .fiche-inter-note:not(.fiche-inter-message)::before,
.fiche-notes .fiche-note::after, .mission-notes-liste li::after, .fiche-inter-note:not(.fiche-inter-message)::after {
    content: ""; position: absolute; width: 0; height: 0; border-style: solid; pointer-events: none; }
.fiche-notes .fiche-note::before, .mission-notes-liste li::before, .fiche-inter-note:not(.fiche-inter-message)::before {
    left: 10px; top: -12px; border-width: 0 7px 11px 7px; border-color: transparent transparent var(--ds-orange-plein) transparent; }
.fiche-notes .fiche-note::after, .mission-notes-liste li::after, .fiche-inter-note:not(.fiche-inter-message)::after {
    left: 13px; top: -7px; border-width: 0 4px 7px 4px; border-color: transparent transparent var(--ds-orange-fond) transparent; }
.fiche-inter-note .meta { color: var(--ds-orange-texte); }
.fiche-inter-message { position: relative; margin-top: 10px; padding: 8px 12px; background: var(--ds-bleu-fond); color: var(--ds-texte);
    border: 2px solid var(--ds-bleu-plein); border-left-width: 2px; border-radius: 16px 4px 16px 16px; }
.fiche-inter-message::before, .fiche-inter-message::after { content: ""; position: absolute; width: 0; height: 0; border-style: solid; }
.fiche-inter-message::before { right: 10px; top: -12px; border-width: 0 7px 11px 7px; border-color: transparent transparent var(--ds-bleu-plein) transparent; }
.fiche-inter-message::after { right: 13px; top: -7px; border-width: 0 4px 7px 4px; border-color: transparent transparent var(--ds-bleu-fond) transparent; }
.fiche-notes .fiche-note:last-child { border-bottom: 2px solid var(--ds-orange-plein); }
.note-client-historique li > div { background: var(--ds-carte); border-radius: 12px; padding: 6px 10px; margin-top: 4px; }
.produit-vignette-grande img, .fiche-produit-image img { padding: 4px; box-sizing: border-box; }

/* ==========================================================================================================
   ÉTAPE 7 — Pages d'administration : recherche de produit, Valider / Retirer, campagnes, Vérification, tableaux.
   ========================================================================================================== */
/* Champs de saisie : cibles de 44 px partout (les cases et boutons radio gardent leur taille, leur étiquette compte). */
input[type=text], input[type=number], input[type=search], input[type=email], input[type=password], input[type=date],
input[type=datetime-local], input[type=time], select { min-height: var(--ds-bouton-h); border-radius: var(--ds-rayon-bouton); }
.tbl-recherche input[type=search] { min-height: 0; }

/* Filtres en pastilles (liste des campagnes, pilotage…) : la pastille choisie en bleu (information), comme Mes tâches. */
.chip { border-color: var(--ds-trait); background: var(--ds-doux); color: var(--ds-texte); font-weight: 700; }
.chip:hover { background: var(--ds-gris); }
.chip.active { background: var(--ds-bleu-fond); color: var(--ds-bleu-texte); border-color: #cfd9fb; }

/* Assistant de campagne : étapes en pastilles ; l'étape en cours en bleu texte (6,08), son numéro en blanc plein. */
.adm-etape { border-color: var(--ds-trait); background: var(--ds-carte); font-weight: 700; }
.adm-etape.actif { background: var(--ds-bleu-texte); border-color: var(--ds-bleu-texte); color: #fff; }
.adm-etape.actif .adm-etape-num { background: #fff; color: var(--ds-bleu-texte); }
.adm-etape.passee .adm-etape-num { background: var(--ds-vert-fond); color: var(--ds-vert-texte); }

/* Tableaux : en-tête doux arrondi, lignes aérées, survol léger. */
.adm-table th { background: var(--ds-doux); color: var(--ds-discret); border-bottom: 1px solid var(--ds-trait); }
.adm-table td { border-bottom: 1px solid var(--ds-trait); }
.adm-table tbody tr:hover td { background: #fafbfd; }
.adm-table tr:last-child td { border-bottom: 0; }

/* Recherche de produit (page 1) : cartes produit ; « Inactif dans PrestaShop » masqué par défaut, montré par la case
   « Afficher les produits « Inactif dans PrestaShop » (N) » ; le produit déjà choisi reste toujours visible. */
.adm-grille-item { background: var(--ds-carte); border-color: var(--ds-trait); border-radius: var(--ds-rayon); }
.adm-grille-item.adm-choisi { border-color: var(--ds-vert-bouton); box-shadow: 0 0 0 1px var(--ds-vert-bouton) inset; background: #f6fcf9; }
.adm-form:not(:has(.js-voir-inactifs:checked)) .adm-grille-item:has(.adm-etat-inactif):not(.adm-choisi) { display: none; }
.adm-voir-inactifs { display: inline-flex; align-items: center; gap: 8px; min-height: var(--ds-bouton-h); margin: 10px 0 6px; padding: 0 14px;
    background: var(--ds-doux); border: 1px solid var(--ds-trait); border-radius: 999px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.adm-etat { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; align-self: flex-start; }
.adm-etat-actif { color: var(--ds-vert-texte); background: var(--ds-vert-fond); }
.adm-etat-inactif, .adm-etat-absent { color: var(--ds-rouge-texte); background: var(--ds-rouge-fond); }
.adm-produit-img { border-radius: 12px; background: var(--ds-doux); }
.adm-choix { min-height: var(--ds-bouton-h); }

/* Valider (vert) / Retirer (rouge : retirer = annuler) — boutons de la page 2 (produits précédents) et de la page 3
   (clients), et lien « Retirer » des réseaux. */
button[value^="retirer"] { background: var(--ds-carte); border: 1px solid #f0b8b8; color: var(--ds-rouge-texte); }
button[value^="retirer"]:hover { background: var(--ds-rouge-fond); border-color: var(--ds-rouge-plein); }
button[value^="valider"].btn-positif { border-color: var(--ds-vert-bouton); }
.adm-table a.lien[href*="retirer="] { display: inline-flex; align-items: center; min-height: var(--ds-bouton-h); padding: 0 14px;
    border: 1px solid #f0b8b8; border-radius: var(--ds-rayon-bouton); color: var(--ds-rouge-texte); font-weight: 700; text-decoration: none; }

/* Page « Vérification » : récapitulatif en lignes douces (libellé discret, valeur forte), blocage en carte rouge. */
.adm-recap { gap: 0; }
.adm-recap dt, .adm-recap dd { padding: 10px 0; border-bottom: 1px solid var(--ds-trait); }
.adm-recap dt:last-of-type, .adm-recap dd:last-of-type { border-bottom: 0; }
.adm-recap dd { font-weight: 600; }
.alert { border-radius: var(--ds-rayon); }
.alert-error { background: var(--ds-rouge-fond); color: var(--ds-rouge-texte); border-color: #f0b8b8; }
.alert-info { background: var(--ds-bleu-fond); color: var(--ds-bleu-texte); border-color: #cfd9fb; }
.alert a { color: inherit; font-weight: 700; }
@media (max-width: 700px) { .adm-recap dt { border-bottom: 0; padding-bottom: 0; } }
.adm-filtres .chip.active, .adm-pagination button.chip.active, .pilotage-barre-reservee .adm-filtres .chip.active {
    background: var(--ds-bleu-fond); color: var(--ds-bleu-texte); border-color: #cfd9fb; }
.adm-refus a { color: var(--ds-bleu-texte); font-weight: 700; }

/* ==========================================================================================================
   RETOUCHES AVANT DÉPÔT (12/10/2026, docs/ARRET_integration_vague_4.md §8) — mise en page, balisage et textes seulement.
   Numéros = points de la demande de Jonathan.
   ========================================================================================================== */

/* A1. Contrôles de formulaire : police du site (le navigateur leur donne sinon Arial / la police système).
   Vérifié par tests/http/test_design_systeme.py (« police des contrôles »). */
button, input, select, textarea, optgroup { font-family: inherit; }

/* A2. Aucun texte sous 12 px. */
.sidebar-brand-texte span, .sidebar-boutique label, .sidebar-badge, .sidebar-soon, .head-bell .pastille, .msg-ia-preview .msg-ia-label,
.stats-mois .lbl, .fiche-info-bloc .label, .tbl-taches .tbl-ligne .td[data-label]::before, .tbl-dashboard .tbl-ligne .td[data-label]::before,
.tuile-stat small, .btn-raccourci small, .note-compteur, .catalogue-form .count, .prix-libelle, .tuile-mini small, .editeur-reglage-titre,
.tab-pill .count, .tbl-barre .tab-pill .count, .panneau-reperes small, .mission-reperes small, .reperes small,
.activite-compte, .nav-mobile a { font-size: 12px; }
.head-bell .pastille { min-width: 20px; height: 20px; line-height: 20px; }
.produit-badges-mini .badge, .td-priorite .badge-non-enregistre, .td-priorite .badge-attente, .meta .badge-boutique,
.reseau-badge-pivot { font-size: 12.5px; }
.sidebar-boutique label { letter-spacing: .02em; }

/* A3. Cibles de 44 px : champs de recherche (le cadre faisait 44 px, le champ lui-même 38). */
.tbl-recherche:has(input) { padding-top: 0; padding-bottom: 0; }
.tbl-recherche input[type=search], .tbl-recherche input { min-height: var(--ds-bouton-h); }
input.tbl-recherche, .catalogue-tarifs-champ input[type=search], .js-tarifs-recherche { min-height: var(--ds-bouton-h); }

/* A4. « Données au … » : le texte entier, sur deux lignes au besoin, jamais coupé par « … ». */
.bandeau-fin { height: auto; min-height: 28px; padding: 5px 14px; border-radius: 14px; align-items: flex-start; }
.bandeau-fin span { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.35; }
.bandeau-fin svg { margin-top: 2px; }

/* A5. Placeholders : jamais coupés (champ pleine largeur sur téléphone, texte court). */
.tbl-recherche input::placeholder, input::placeholder { text-overflow: clip; }

/* A6. Barre basse : un libellé d'une ligne par entrée (« Accueil » pour le tableau de bord), 5 entrées commerciaux,
   6 pour l'administrateur, sans retour à la ligne. */
@media (max-width: 880px) {
    .nav-mobile a { font-size: 12px; min-height: 56px; padding: 4px 1px; }
    .nav-mobile a > span:not(.sidebar-badge) { white-space: nowrap; overflow-wrap: normal; overflow: hidden; text-overflow: clip; max-width: 100%; }
}

/* A7. Boutons : une hiérarchie. Principal vert plein, secondaire contour, danger rouge ; 44 px, rayon 12 px partout.
   « Enregistrer » toujours vert (Préférences, fiche, Mon profil) : la règle « contour vert » de l'étape 3 ne vaut plus que
   pour « Analyser la note » et « Confirmer » de « Client bien suivi ». */
.page-preferences .btn-primary, .pref-fiche .btn-primary { background: var(--ds-vert-bouton); color: #fff; border: 1px solid var(--ds-vert-bouton); }
.page-preferences .btn-primary:hover, .pref-fiche .btn-primary:hover { background: var(--ds-vert-bouton-survol); border-color: var(--ds-vert-bouton-survol); }
.page-preferences .btn-primary:disabled:hover, .pref-fiche .btn-primary:disabled:hover { background: var(--ds-vert-bouton); }
.btn, .btn-small, .btn-appeler, .btn-appeler-large, .btn-skip-ligne, .btn-annuler, .btn-danger, .btn-danger-discret, .btn-positif,
a.btn, summary.btn { min-height: var(--ds-bouton-h); border-radius: var(--ds-rayon-bouton); display: inline-flex; align-items: center;
    justify-content: center; gap: 6px; box-sizing: border-box; }
.btn-danger-discret { background: var(--ds-carte); border: 1px solid #f0b8b8; color: var(--ds-rouge-texte); }

/* A8. Grands vides sous le titre de page : plus de hauteur réservée à deux lignes ; le sous-titre passe sous le titre,
   sur toute la largeur (le bloc date / cloche / compte reste à droite du titre). */
.page-head { align-items: center; margin-bottom: 14px; row-gap: 4px; }
.page-head-info { display: contents; }
.page-head h1 { order: 0; flex: 1 1 auto; min-width: 0; min-height: 0; height: auto; -webkit-line-clamp: 3; }
.page-head .head-right { order: 1; }
.accueil-salutation { display: flex; flex: 1 1 auto; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.page-head .accueil-salutation h1 { flex: 0 1 auto; }
.accueil-whatsapp.wa-connecte { color: var(--ds-vert-texte); background: var(--ds-vert-fond); }
.page-head .sous-titre { order: 2; flex: 1 1 100%; min-height: 0; margin-top: 0; -webkit-line-clamp: 3; max-width: 90ch; }
.lien-retour { margin-bottom: 8px; }
.pilotage-onglets { margin-bottom: 4px; }
.pilotage-barre-reservee { min-height: 0; }
.pilotage-barre-reservee:not(:has(nav)) { display: none; }
.adm-filtres { margin: 4px 0 10px; }
@media (max-width: 880px) {
    .page-head { margin-bottom: 10px; }
    .page-head h1 { flex-basis: 100%; }
}

/* B9. Tableau de bord : « Mes tâches du jour » réduit à son nombre et à un lien aligné à gauche. */
.panel-taches-lien { padding-top: 16px; padding-bottom: 16px; }
.taches-lien-tete { display: flex; align-items: center; gap: 12px; }
.taches-lien-texte { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.taches-lien-texte h2 { margin: 0; }
.lien-toutes-taches { display: inline-flex; align-items: center; min-height: var(--ds-bouton-h); font-weight: 700; text-align: left; }

/* B10. Mes tâches : en-tête compact ; filtres sur une ligne qui défile ; pas de flèche au milieu des cartes (la carte
   entière s'ouvre au clic ; le bouton reste joignable au clavier). */
.taches-tete { gap: 10px 14px; }
.taches-tete-icone { display: none; }
.taches-tete-texte .sous-titre { margin-top: 0; }
.td-actions .js-ligne-toggle:not(:focus-visible) { position: absolute; width: 0; height: 0; min-width: 0; min-height: 0; padding: 0;
    margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.tbl-taches .tbl-ligne .td-actions { position: relative; }
.td-actions .btn-appeler, .td-actions .btn-skip-ligne { flex: 1 1 0; white-space: nowrap; }
@media (max-width: 640px) {
    .tbl-barre .tbl-onglets { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 4px; scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .tbl-barre .tbl-onglets::-webkit-scrollbar { display: none; }
    .tbl-barre .tab-pill { flex: 0 0 auto; padding: 0 14px; font-size: 13px; scroll-snap-align: start; }
    .taches-tete { flex-wrap: nowrap; align-items: center; }
    .taches-tete .btn { flex: none; }
    .taches-tete-texte h2 { font-size: 17px; }
}

/* B11. Fiche client : un seul titre (en-tête de page) ; actions sur une ligne, même taille, texte sur une ligne ;
   préférences repliées en fin de fiche, libellés au-dessus des choix, choix sélectionné en bleu plein avec une coche. */
.fiche-tete { grid-template-columns: minmax(0, 1fr) auto; margin-bottom: 4px; }
.fiche-tete .panneau-tete-contacts { grid-column: 2; padding-top: 0; flex-direction: row; flex-wrap: wrap; max-width: none; }
.fiche-tete .panneau-tete-gauche:not(:has(*)) { display: none; }
.fiche-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin: 10px 0 4px; }
.fiche-actions .appel-entrant, .fiche-actions .appel-sortant-ht { display: contents; }
.fiche-actions > .btn-appeler, .fiche-actions > .btn, .fiche-actions .appel-entrant > .btn, .fiche-actions .appel-sortant-ht > .btn { width: 100%; white-space: nowrap; }
.fiche-actions .btn-appeler { order: 1; } .fiche-actions .js-copier-email { order: 2; }
.fiche-actions .js-ae-repondu { order: 3; } .fiche-actions .js-ae-commencer[data-canal="appel"] { order: 4; }
.fiche-actions .js-sh-commencer { order: 4; }   /* 20261026090000 : à côté de « Appel entrant » */
.fiche-actions .appel-entrant-canaux, .fiche-actions .js-ae-statut, .fiche-actions .js-sh-statut { order: 5; grid-column: 1 / -1; }
.fiche-actions .js-ae-statut:empty, .fiche-actions .js-sh-statut:empty { display: none; }
@media (max-width: 700px) {
    .fiche-tete { grid-template-columns: 1fr; }
    .fiche-tete .panneau-tete-contacts { grid-column: 1; }
    .fiche-actions { grid-template-columns: 1fr 1fr; }
}
.pref-fiche-replie { margin-top: 18px; border: 1px solid var(--ds-trait); border-radius: var(--ds-rayon); background: var(--ds-carte); }
.pref-fiche-resume { display: flex; align-items: center; gap: 8px; min-height: var(--ds-bouton-h); padding: 6px 16px; cursor: pointer;
    font-size: 16px; font-weight: 800; color: var(--ds-texte); list-style: none; }
.pref-fiche-resume::-webkit-details-marker { display: none; }
.pref-fiche-resume::after { content: "▸"; margin-left: auto; color: var(--ds-discret); transition: transform .15s; }
.pref-fiche-replie[open] > .pref-fiche-resume::after { transform: rotate(90deg); }
.pref-fiche-replie > .pref-fiche { padding: 0 12px 12px; }
.pref-fiche .pref-ligne, .page-preferences .pref-ligne, .js-profil .pref-ligne { flex-direction: column; align-items: flex-start; gap: 6px; margin: 10px 0; }
.pref-fiche .pref-libelle, .page-preferences .pref-libelle, .js-profil .pref-libelle { min-width: 0; font-size: 13px; font-weight: 700; color: var(--ds-texte); }
.js-profil .pref-ligne input[type=text] { width: 100%; }
.js-profil .seg { margin: 0; flex-wrap: wrap; }
.seg button.on { background: var(--ds-bleu-texte); color: #fff; }
.seg button.on::before { content: "✓"; margin-right: 5px; font-weight: 900; }

/* B12. Catalogue : champ de recherche de 44 px pleine largeur sur téléphone ; vignette à gauche du nom (plus de vide au
   dessus) ; « Tarifs pour » compact. */
.catalogue-tarifs { padding: 8px 12px; gap: 6px 8px; }
.catalogue-tarifs-champ input[type=search] { border-radius: var(--ds-rayon-bouton); }
@media (max-width: 1023px) {
    .tbl-catalogue .tbl-ligne { flex-wrap: wrap; }
    .tbl-catalogue .td-image { flex: 0 0 56px; }
    .tbl-catalogue .td-produit { flex: 1 1 0; min-width: 0; }
    .tbl-catalogue .td-prix, .tbl-catalogue .td-stock, .tbl-catalogue .td-statut { padding-left: 66px; }
}
@media (max-width: 640px) {
    .catalogue-form .tbl-recherche { flex: 1 1 100%; }
    .catalogue-tarifs-champ, .catalogue-tarifs-champ input[type=search] { flex: 1 1 100%; width: 100%; }
}

/* B13. Activité clients : pastilles Paniers / Visites et Aujourd'hui / 7 jours de même taille ; message vide centré. */
.activite-onglets .tab-pill, .activite-filtre { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px;
    min-width: 120px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 700; box-sizing: border-box; }
.activite-onglets, .activite-filtres { margin-bottom: 10px; }
.activite-vide { text-align: center; padding: 12px 0 4px; margin: 0; }
/* Compteur « Commandes du jour » (tableau de bord, migration 20261026130000, 26/10/2026) : deux chiffres côte à côte, détail
   par commercial en lignes (jamais un tableau : rien ne défile en largeur sur un téléphone). */
.cmdj-zone { min-width: 0; }
.cmdj-vide { margin: 4px 0; }
.cmdj-titre { margin: 10px 0 6px; font-size: 13px; font-weight: 600; color: var(--ds-discret); }
.cmdj-titre:first-child { margin-top: 0; }
.cmdj-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.cmdj-chiffre { display: flex; flex-direction: column; min-width: 0; padding: 10px 12px; border-radius: var(--ds-rayon-bouton);
    background: var(--ds-doux); }
.cmdj-hub { background: var(--ds-vert-fond); }
.cmdj-valeur { font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--ds-texte); }
.cmdj-label { font-size: 13px; color: var(--ds-texte); }
.cmdj-sous { margin-top: 2px; font-size: 12px; color: var(--ds-discret); overflow-wrap: anywhere; }
.cmdj-hub .cmdj-valeur, .cmdj-hub .cmdj-label { color: var(--ds-vert-texte); }
.cmdj-detail { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cmdj-detail li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; padding: 6px 0;
    border-top: 1px solid var(--ds-trait); font-size: 13px; }
.cmdj-nom { font-weight: 600; color: var(--ds-texte); min-width: 0; overflow-wrap: anywhere; }
.cmdj-ligne { color: var(--ds-discret); overflow-wrap: anywhere; }
.cmdj-pied { margin: 8px 0 0; font-size: 12px; }

.activite-pied { text-align: center; }

/* B14. Mon profil : introduction pleine largeur (A8), champs moins hauts, « Enregistrer » visible sans défiler. */
.mon-profil-form { gap: 12px; padding: 16px 20px; }
.mon-profil-champ textarea { min-height: 0; }
/* Mon WhatsApp (20261114182758) : statut en pastille, champ du numéro comme les zones de texte, QR à scanner. */
.mon-profil-wa-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mon-profil-champ input[type="tel"] { width: 100%; max-width: 320px; box-sizing: border-box; margin-top: 4px; padding: 10px 12px;
    min-height: var(--cible-min); border: 1px solid var(--line); border-radius: var(--ds-rayon-bouton); font: inherit; font-size: 16px; }
.mon-profil-champ input[type="tel"]:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.wa-statut { display: inline-flex; align-items: center; min-height: var(--ds-pastille-h); padding: 0 12px; border-radius: 999px;
    font-size: 13px; font-weight: 700; background: var(--ds-gris); color: var(--ds-discret); }
.wa-statut-connecte { background: var(--ds-vert-fond); color: var(--ds-vert-texte); }
.wa-statut-attente_scan { background: var(--ds-bleu-fond); color: var(--ds-bleu-texte); }
.wa-statut-a_reconnecter { background: var(--ds-orange-fond); color: var(--ds-orange-texte); }
.mon-profil-wa-qr { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; padding: 12px; border-radius: var(--ds-rayon);
    background: var(--ds-doux); }
.mon-profil-wa-qr img { width: 240px; height: 240px; background: #fff; border-radius: 8px; image-rendering: pixelated; }
.mon-profil-wa-qr ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.mon-profil-wa-ok { margin: 0; font-weight: 700; color: var(--ds-vert-texte); }
.mon-profil-wa .mon-profil-bas { gap: 10px; flex-wrap: wrap; }
/* Numéro dédié à une boutique (20261116095202) : « Pas encore ajouté » (gris par défaut), « Mauvais téléphone » (rouge),
   phrase d'attente avant l'ajout du numéro. */
.wa-statut-mauvais_telephone { background: var(--ds-rouge-fond); color: var(--ds-rouge-texte); }
.mon-profil-wa-info { margin: 0; padding: 10px 14px; border-radius: var(--ds-rayon-bouton); font-size: 13px; line-height: 1.45;
    background: var(--ds-doux); color: var(--ds-discret); }

/* C15. Tableaux Campagnes et Demandes : une carte empilée par ligne sur téléphone ; tableau conservé sur ordinateur. */
@media (max-width: 700px) {
    .adm-table-cartes, .adm-table-cartes tbody, .adm-table-cartes tr, .adm-table-cartes td { display: block; width: 100%; box-sizing: border-box; }
    .adm-table-cartes thead { display: none; }
    .adm-table-cartes tr { border: 1px solid var(--ds-trait); border-radius: var(--ds-rayon); padding: 8px 12px; margin: 0 0 10px; background: var(--ds-carte); }
    .adm-table-cartes td { border: 0; padding: 6px 0; white-space: normal; }
    .adm-table-cartes td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: var(--ds-discret); margin-bottom: 2px; }
    .adm-table-cartes tbody tr:hover td { background: transparent; }
    .adm-table-defile:has(.adm-table-cartes) { overflow: visible; }
    .adm-table-cartes .adm-actions { display: grid; grid-template-columns: 1fr; gap: 8px; padding-top: 10px; }
}

/* C16. Demandes : boutons d'action de même largeur, en colonne régulière ; « Traité » dans la même grille. */
.adm-table-cartes td.adm-actions:has(.adm-reponses), .adm-table-cartes td.adm-actions:has(form) { min-width: 200px; white-space: normal; }
.adm-table-cartes .adm-actions { vertical-align: middle; }
.adm-table-cartes .adm-actions .adm-reponses { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0 0 8px; }
.adm-table-cartes .adm-actions form, .adm-table-cartes .adm-actions details { margin: 0; }
.adm-table-cartes .adm-actions .btn, .adm-table-cartes .adm-actions summary.btn { width: 100%; margin: 0; justify-content: center; white-space: nowrap; }

/* C17. Campagnes : « Suivi » et « Reprendre » de même largeur, alignés à droite. */
.adm-table-cartes td.adm-actions:has(a.btn) { text-align: right; }
.adm-table-cartes .adm-actions a.btn { min-width: 120px; }
@media (min-width: 701px) {
    .adm-table-cartes td.adm-actions:has(a.btn) { white-space: nowrap; }
    .adm-table-cartes td.adm-actions:has(a.btn) a.btn { margin: 2px 0 2px 6px; }
}

/* C18. Pilotage : onglets sans vide dessous ; sur téléphone, en-têtes lisibles et périodes sur une ligne qui défile. */
@media (max-width: 700px) {
    .adm-barre .adm-filtres, .pilotage-onglets { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
    .adm-barre .adm-filtres::-webkit-scrollbar, .pilotage-onglets::-webkit-scrollbar { display: none; }
    .adm-barre .adm-filtres .chip, .pilotage-onglets .chip { flex: 0 0 auto; white-space: nowrap; }
    .pilotage-activite th { white-space: nowrap; min-width: 0; font-size: 12px; padding-left: 8px; padding-right: 8px; }
}

/* C20. Notes clients : aide sous la recherche. */
.adm-recherche-aide { margin: 6px 0 0; }

/* Retouches, deuxième passe (contrôle visuel du 12/10/2026). */
@media (max-width: 700px) {
    .pilotage-barre-reservee .adm-filtres { display: flex; flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
    .pilotage-barre-reservee .adm-filtres .chip { flex: 0 0 auto; white-space: nowrap; }
}
.lien-toutes-taches { color: var(--ds-bleu-texte); text-decoration: none; font-size: 14px; }
.lien-toutes-taches:hover { text-decoration: underline; }
.taches-lien-texte h2 { font-size: 18px; }
.taches-tete .btn, .taches-tete .btn-primary { white-space: nowrap; }
@media (max-width: 640px) {
    .taches-tete { flex-wrap: wrap; }
    .taches-tete-texte { flex: 1 1 100%; }
    .taches-tete > :not(.taches-tete-texte):not(.taches-tete-icone) { flex: 1 1 100%; }
    .taches-tete .btn, .taches-tete .btn-primary { width: 100%; }
}
.fiche-tete { grid-template-columns: 1fr; }
.fiche-tete .panneau-tete-contacts { grid-column: 1; justify-content: flex-start; }
.fiche-tete:not(:has(.panneau-tete-gauche *)):not(:has(.pill-contact)) { display: none; }
/* Points 16-17, deuxième passe : « Traité » dans la même colonne que les réponses ; Campagnes : boutons de largeur fixe
   côte à côte, alignés à droite (sur téléphone : empilés, pleine largeur). */
.adm-table-cartes td.adm-actions > form { display: block; width: 100%; }
@media (min-width: 701px) {
    .adm-table-cartes td.adm-actions:has(> a.btn) { text-align: right; white-space: nowrap; width: 1%; }
    .adm-table-cartes td.adm-actions > a.btn { width: 124px; min-width: 124px; display: inline-flex; margin: 2px 0 2px 6px; }
    /* Demandes 2 et 3 (14/10/2026) : « Annuler ce brouillon » / « Annuler la campagne » sont plus longs que 124 px
       (texte imposé par Jonathan, jamais raccourci) ; largeur propre pour ce seul lien, texte non coupé. */
    .adm-table-cartes td.adm-actions > a.btn.adm-btn-danger { width: auto; min-width: 124px; padding-left: 14px; padding-right: 14px; }
}
.activite-onglets .tab-pill { border: 1px solid var(--ds-trait); background: var(--ds-carte); color: var(--ds-discret); }
.activite-onglets .tab-pill.active { background: var(--ds-bleu-fond); color: var(--ds-bleu-texte); border-color: #cfd9fb; }

/* Intégration du quota par boutique (12/10/2026) : bandeau « Boutique » aligné sur les retouches — « Toutes boutiques »,
   pastilles de la même taille que les filtres de catégorie, une seule ligne qui défile sur téléphone (comme les filtres). */
@media (max-width: 640px) {
    .tbl-boutiques { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 4px; scroll-snap-type: none;   /* sans aimantation : le titre « Boutique » reste visible au départ */
        -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .tbl-boutiques::-webkit-scrollbar { display: none; }
    .tbl-boutiques-titre { flex: none; align-self: center; }
    .tbl-boutiques .tab-pill { flex: 0 0 auto; padding: 0 14px; font-size: 13px; justify-content: center; white-space: nowrap; min-width: 0;
        scroll-snap-align: none; }
}

/* ==========================================================================================================
   Chevauchements et textes coupés (12/10/2026, défaut vu par Jonathan : « Appeler » et « Passer cette tâche » se
   chevauchaient, le second coupé hors de la carte). Contrôlés par test_design_systeme.py (chevauchement, texte coupé,
   contrôle hors de sa carte) à 390, 768, 1024, 1280 et 1920 px.
   ========================================================================================================== */
/* Mes tâches, écran large (lignes en grille) : colonnes de texte qui rétrécissent (plus de dépassement à 1024 px), colonne
   des actions à la largeur de son plus long bouton (« Passer cette tâche ») ; Appeler puis « Passer cette tâche » l'un
   sous l'autre, chacun sur une ligne, de même largeur. Largeur fixe pour toutes les lignes : chaque ligne est sa propre
   grille, une largeur variable désalignerait les colonnes d'une carte à l'autre. */
@media (min-width: 1024px) {
    .tbl-taches .tbl-head, .tbl-taches .tbl-ligne {
        grid-template-columns: 136px minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 1.2fr) 176px; }
    /* colonne Priorité à 136 px : la pastille « Appel non enregistré » (125 px avec ses marges) débordait des 96 px */
    .tbl-dashboard .tbl-head, .tbl-dashboard .tbl-ligne {
        grid-template-columns: 136px minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 1.2fr) 156px; }
    .tbl-taches .tbl-ligne .td-actions { flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: center; }
    .tbl-taches .tbl-ligne .td-actions > .btn-appeler, .tbl-taches .tbl-ligne .td-actions > .btn-message-seul,
    .tbl-taches .tbl-ligne .td-actions > .btn-skip-ligne { flex: none; width: 100%; white-space: nowrap; order: 0; }
    /* 0190 : « Demander l'annulation à la direction » (ex-« Passer cette tâche ») passe sur deux lignes, centré, dans la
       colonne des actions (176 px) au lieu d'en déborder. */
    .tbl-taches .tbl-ligne .td-actions > .btn-skip-ligne { white-space: normal; justify-content: center; text-align: center; line-height: 1.25; }
}
/* Écran étroit (lignes en cartes) : les boutons se placent côte à côte s'il y a la place, sinon passent à la ligne ; leur
   texte n'est jamais coupé. */
@media (max-width: 1023px) {
    .tbl-taches .tbl-ligne .td-actions, .tbl-dashboard .tbl-ligne .td-actions { flex-wrap: wrap; }
    .td-actions .btn-appeler, .td-actions .btn-message-seul, .td-actions .btn-skip-ligne { flex: 1 1 auto; min-width: max-content; white-space: nowrap; }
}
/* Étapes de l'assistant de campagne (téléphone) : chaque étape garde sa largeur, la rangée défile (elles rétrécissaient
   jusqu'à couper leur libellé). */
.adm-etapes .adm-etape { flex: none; }
/* Pied du panneau (Annuler cet appel, bouton final) : collant au lieu d'absolu. Absolu, il recouvrait la fin du contenu
   (marge basse figée à 96 / 132 px, pied de 187 à 224 px à l'étape 3) : la mention « La tâche ne compte comme faite… »
   restait cachée même en fin de défilement. Collant, il reste en bas de l'écran et cède la place en fin de défilement. */
.tbl-row.ouvert .resultat-actions { position: sticky; left: auto; right: auto; bottom: -20px; margin: 12px -18px 0; }
.tbl-detail.mode-formulaire .panneau-corps, .tbl-detail.mode-formulaire.manque-visible .panneau-corps { padding-bottom: 20px; }
@media (max-width: 700px) {
    .tbl-row.ouvert .resultat-actions { bottom: -12px; margin: 12px -12px 0; padding-left: 12px; padding-right: 12px; }
    .tbl-detail.mode-formulaire .panneau-corps, .tbl-detail.mode-formulaire.manque-visible .panneau-corps { padding-bottom: 12px; }
}
/* Ligne « n° client · boutique » d'une tâche : passe à la ligne au lieu de points de suspension (à 1024 px, la pastille
   de la boutique était entièrement masquée : « n° 5006 … »). */
.td-client .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; white-space: normal; overflow: visible; text-overflow: clip; }
/* En-têtes de colonnes de Mes tâches et du tableau de bord : passent à la ligne (« Action recomm… » à 1024 px). */
.tbl-taches .tbl-head .td, .tbl-dashboard .tbl-head .td { white-space: normal; text-overflow: clip; overflow-wrap: break-word; }
/* Onglets de boutique, suite (13/10/2026) : même bandeau sur le tableau de bord ; pastille « Boutique inconnue » (carte visible
   dans chaque onglet) en gris discret bordé de pointillés ; mention « toutes boutiques » sous les chiffres du mois. */
.dash-boutiques { margin: 4px 0 14px; }
.badge-boutique-inconnue { color: var(--ds-discret); background: var(--ds-carte); border: 1px dashed #aeb5c4; }
.kpis-mention { margin: 8px 2px 0; font-size: 12.5px; }

/* 0180 (14/10/2026) — motif du refus d'un skip : réponse de la page « Demandes » (acceptation inchangée ; refus repliable avec
   champ obligatoire et motifs types à un clic, qui passent à la ligne sur téléphone), historique, bandeau et badge du
   commercial sur la mission renvoyée. */
.skip-refus { margin: 0; }
.skip-refus > summary { list-style: none; cursor: pointer; justify-content: flex-start; white-space: normal; text-align: left; box-sizing: border-box; width: 100%; }
.skip-refus > summary::-webkit-details-marker { display: none; }
.skip-refus[open] > summary { margin-bottom: 8px; }
.adm-table .adm-actions form.adm-skip-decision + .skip-refus { margin-top: 6px; }
.skip-refus-form { display: flex; flex-direction: column; gap: 6px; }
.skip-motif-label { font-weight: 700; font-size: 13px; }
.skip-motifs-titre { margin: 0; }
.skip-motifs-types { display: flex; flex-direction: column; gap: 6px; }
.chip.skip-motif-type { white-space: normal; text-align: left; justify-content: flex-start; height: auto; line-height: 1.35;
    padding: 8px 10px; font-size: 13px; font-weight: 600; border-radius: var(--ds-rayon-bouton); max-width: 100%; }
.skip-motif { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; border: 1px solid var(--ds-trait); border-radius: 10px; padding: 8px 10px; resize: vertical; }
.skip-motif-aide { margin: 0; }
.skip-motif-aide.err { color: var(--err); font-weight: 700; }
.skip-motif-decide { margin-top: 6px; overflow-wrap: anywhere; white-space: pre-line; }
.badge-skip-refus { color: var(--ds-orange-texte); background: var(--ds-orange-fond); }
.bandeau-skip-refus { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 10px 14px; border-radius: var(--ds-rayon);
    background: var(--ds-orange-fond); color: var(--ds-orange-texte); border: 1px solid #f3d9a6; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.bandeau-skip-refus svg { flex: none; margin-top: 2px; }
.bandeau-skip-refus .skip-motif-texte { white-space: pre-line; }
.bandeau-skip-refus .meta { display: block; margin-top: 2px; }
/* La table porte les deux classes : « .adm-table.adm-skips » (le sélecteur « .adm-table .adm-skips » de style.css, antérieur, ne
   vise rien). Le formulaire de refus se lit de gauche à droite, comme les boutons de réponse. */
.adm-table.adm-skips td.adm-actions .skip-refus-form, .adm-table.adm-skips td.adm-actions .skip-refus > summary { text-align: left; }

/* ---------- 9. Connexion : fond de la semaine et panneau « Global 17 SALES HUB » (13/10/2026) ---------- */
/* Fond : image de web/img/connexion/ choisie par login.php (_fonds_connexion.php). Deux banques : en largeur
   (.login-fond-paysage, --login-fond) pour l'ordinateur et la tablette ; en hauteur (.login-fond-tel, --login-fond-tel)
   pour le téléphone seulement, qui prend sinon l'image en largeur. Ordinateur et tablette sans image en largeur : fond masqué,
   gris clair du fond de page (--ds-fond) ; sans aucune image : pas de .login-fond. Une seule image est téléchargée par
   appareil (seule la règle appliquée cite son url). Couvre l'écran, centré. Zoom
   très lent (60 s pour grossir, 60 s pour revenir), coupé quand le système demande moins d'animations ; le conteneur fixe
   rogne l'agrandissement (aucun défilement ajouté).
   Panneau (maquette du 13/10/2026) : voile noir à 55 % (--voile-connexion) et flou léger, collé à droite, 30 % de la
   largeur (380 à 560 px), contenu centré verticalement, texte blanc (--ds-carte) ; sur téléphone, carte centrée sur toute
   la largeur. Jaune = --accent-connexion. Aucune couleur en dur ici : seulement des variables (mélangées par color-mix). */
.login-fond { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--ds-fond); pointer-events: none; }
.login-fond::before { content: ""; position: absolute; inset: 0; background: var(--login-fond) center / cover no-repeat;
    transform-origin: center; animation: login-fond-zoom 60s ease-in-out infinite alternate; }
@keyframes login-fond-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .login-fond::before { animation: none; } }
@media (min-width: 641px) { .login-fond:not(.login-fond-paysage) { display: none; } }   /* image en hauteur : jamais ici */

.page-login { justify-content: flex-end; align-items: stretch; padding: 0; }
.page-login .login-box { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
    width: 30%; min-width: 380px; max-width: 560px; min-height: 100vh; margin: 0; padding: 36px clamp(24px, 3vw, 48px);
    border-radius: 0; box-shadow: none; color: var(--ds-carte); background: var(--voile-connexion);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.login-centre { width: 100%; max-width: 400px; margin: 0 auto; }
/* Phrases d'état d'esprit (demande de Jonathan du 13/10/2026 : « comme l'image Same people… ») : écriture au feutre,
   majuscules, légèrement penchées, fin de phrase en jaune, trait jaune épais. Seule exception à la police de l'outil, et
   SANS police téléchargée : polices manuscrites déjà présentes sur l'appareil (Mac / iPhone : Noteworthy — Marker Felt
   écartée le 13/10/2026, ses accents majuscules « É » étaient presque invisibles ; Windows : Segoe Print, Ink Free), sinon
   l'écriture cursive du système. 19 px gras = « grand texte » (contraste 3 : 1 au moins). */
.login-devise { align-self: flex-end; max-width: 15em; margin: 0; text-align: right; font-family: "Noteworthy", "Segoe Print", "Ink Free",
    "Bradley Hand", cursive; font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: .02em; text-transform: uppercase;
    color: var(--ds-carte); transform: rotate(-3deg) skewX(-8deg); transform-origin: right center; }
.login-devise-accent { color: var(--accent-connexion); overflow-wrap: normal; word-break: normal; }   /* jamais coupée en milieu de mot (23/10/2026) ; peut passer à la ligne entre deux mots si elle ne tient pas */
.login-devise::after { content: ""; display: block; width: 72px; height: 4px; margin: 10px 0 0 auto; border-radius: 4px 1px 4px 1px;
    background: var(--accent-connexion); transform: skewX(-25deg); }
.login-devise-bas { align-self: center; max-width: 17em; text-align: left; transform-origin: left center; }
.login-devise-bas::after { margin-left: 0; }
.login-logo { display: flex; flex-direction: column; align-items: center; margin-bottom: 36px; }
.login-logo-haut { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ds-carte); }
.login-logo-nom { display: flex; align-items: flex-end; gap: 4px; font-size: 32px; font-weight: 900; line-height: .95; color: var(--ds-carte); }
.login-logo-nom > span:first-child { display: flex; flex-direction: column; }
.login-logo-fleche { display: inline-flex; align-self: center; color: var(--accent-connexion); }
.page-login .login-box h1 { margin: 0 0 8px; font-size: 26px; color: var(--ds-carte); }
.login-sous-titre { margin: 0 0 22px; font-size: 15px; color: var(--ds-carte); }
/* Libellés lus par les lecteurs d'écran, cachés à l'écran : le texte d'aide de chaque champ les montre (maquette). */
.page-login .login-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.login-champ + .login-label + .login-champ { margin-top: 14px; }
.login-champ { position: relative; }
.login-champ-icone { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: flex; pointer-events: none; color: var(--ds-carte); }
.login-champ-icone.login-icone-accent { color: var(--accent-connexion); }
.page-login .login-champ input { width: 100%; min-height: 48px; margin: 0; padding: 12px 50px 12px 46px; font-size: 15px;
    border-radius: 8px; border: 1px solid color-mix(in srgb, var(--ds-carte) 35%, transparent);
    background: var(--voile-connexion); color: var(--ds-carte); }
.page-login .login-champ input::placeholder { color: color-mix(in srgb, var(--ds-carte) 75%, transparent); opacity: 1; }
.page-login .login-champ input:focus { outline: 2px solid var(--accent-connexion); outline-offset: 1px; border-color: transparent; }
.login-oeil { position: absolute; right: 2px; top: 2px; bottom: 2px; width: var(--ds-bouton-h); min-height: var(--ds-bouton-h); display: flex;
    align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--ds-carte); cursor: pointer; }
.login-oeil span { display: flex; }
.login-oeil .login-oeil-cacher, .login-oeil[aria-pressed="true"] .login-oeil-voir { display: none; }
.login-oeil[aria-pressed="true"] .login-oeil-cacher { display: flex; }
.page-login .login-bouton { gap: 10px; min-height: 48px; margin-top: 26px; border-radius: 8px; font-weight: 700;
    background: var(--accent-connexion); border-color: var(--accent-connexion); color: var(--ds-texte); }
.page-login .login-bouton:hover { background: color-mix(in srgb, var(--accent-connexion) 88%, var(--ds-texte));
    border-color: color-mix(in srgb, var(--accent-connexion) 88%, var(--ds-texte)); }
.login-aide { margin: 12px 0 0; text-align: center; font-size: 14px; }
.login-aide a { display: inline-flex; align-items: center; min-height: var(--ds-bouton-h); color: var(--ds-carte);
    text-decoration: underline; text-decoration-color: var(--accent-connexion); text-underline-offset: 4px; }
.page-login .login-box :focus-visible { outline-color: var(--accent-connexion); }
@media (max-width: 640px) {
    .page-login { justify-content: center; align-items: center; padding: 16px; }
    .page-login .login-box { width: 100%; min-width: 0; max-width: 480px; min-height: 0; padding: 26px 20px; gap: 22px;
        border-radius: var(--ds-rayon); }
    .login-logo { margin-bottom: 24px; }
    .login-devise:not(.login-devise-bas) { margin-bottom: 12px; }   /* trait jaune décollé du logo */
    /* Décision de Jonathan (13/10/2026, après essai du panneau transparent : image coupée, slogan de l'image sous nos
       textes) : sur téléphone, avec une image, l'image s'affiche ENTIÈRE en haut, à son format (--login-fond-format, lu
       sur le fichier par login.php ; 16 / 9 à défaut), sans zoom (il rognerait les bords) ; le formulaire est dessous,
       sur fond sombre opaque (même noir que le menu). Sans image (pas de .login-fond) : carte centrée sur le gris clair. */
    .page-login:has(> .login-fond) { flex-direction: column; justify-content: flex-start; align-items: stretch; padding: 0;
        background: var(--sidebar-bg); }
    .login-fond { position: relative; inset: auto; flex: none; width: 100%; aspect-ratio: var(--login-fond-format, 16 / 9); }
    .login-fond::before { animation: none; }
    .login-fond-tel::before { background: var(--login-fond-tel) center / cover no-repeat; }
    .login-fond + .login-box { flex: 1 0 auto; width: 100%; max-width: none; border-radius: 0; padding: 24px 20px 28px;
        background: linear-gradient(var(--voile-connexion), var(--voile-connexion)), var(--sidebar-bg);
        -webkit-backdrop-filter: none; backdrop-filter: none; }
    /* Tout tient sans défiler dans la partie visible d'un iPhone dans Safari (≈ 390 × 664, barres comprises ; retour de
       Jonathan du 13/10/2026 : « trop grande pour un vrai écran mobile ») : logo sur une ligne, phrases et marges réduites.
       Cibles tactiles gardées à 44 px au moins. */
    .login-fond + .login-box { padding: 8px 20px 10px; gap: 8px; }
    .login-fond + .login-box .login-devise { max-width: none; font-size: 15.5px; line-height: 1.25; }
    .login-fond + .login-box .login-devise::after { width: 56px; height: 3px; margin-top: 5px; }
    .login-fond + .login-box .login-devise:not(.login-devise-bas) { margin-bottom: 0; }
    .login-fond + .login-box .login-logo { margin-bottom: 10px; }
    .login-fond + .login-box .login-logo-nom { font-size: 26px; }
    .login-fond + .login-box .login-logo-nom > span:first-child { flex-direction: row; gap: .25em; }
    .login-fond + .login-box .login-logo-fleche svg { width: 30px; height: 30px; }
    .page-login .login-fond + .login-box h1 { margin-bottom: 2px; font-size: 22px; }
    .login-fond + .login-box .login-sous-titre { margin-bottom: 10px; font-size: 14px; }
    .login-fond + .login-box .login-champ + .login-label + .login-champ { margin-top: 10px; }
    .page-login .login-fond + .login-box .login-champ input, .page-login .login-fond + .login-box .login-bouton { min-height: 46px; }
    .page-login .login-fond + .login-box .login-bouton { margin-top: 12px; }
    .login-fond + .login-box .login-aide { margin-top: 0; }
    /* Banque en hauteur (décision de Jonathan du 13/10/2026) : l'image couvre tout l'écran, fixe, recadrée et centrée (elle
       ne fait jamais défiler la page) ; le formulaire est posé en bas de la partie VISIBLE (100svh : barres du navigateur
       déduites), sur le voile translucide et flou du panneau d'ordinateur, entièrement visible dès l'ouverture. */
    .login-fond-tel { position: fixed; inset: 0; width: auto; aspect-ratio: auto; }
    .page-login:has(> .login-fond-tel) { justify-content: flex-end; min-height: 100svh; }
    .login-fond-tel + .login-box { flex: none; background: var(--voile-connexion);
        -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
    /* Sur ce voile translucide, phrases gardées en « grand texte » (19 px gras, comme sur ordinateur) : leur fin en jaune
       reste lisible (contraste 3 : 1 au moins, pire cas d'une image blanche) sans couleur ajoutée. */
    .login-fond-tel + .login-box .login-devise { font-size: 19px; }
}

/* ---------- 10. Menu latéral « Global 17 SALES HUB » (13/10/2026) ---------- */
/* Même style que le panneau de connexion, apparence seulement (entrées, liens, droits et « Ma boutique » inchangés,
   _sidebar.php : seul le logo change). Derrière la barre fixe il n'y a que le fond gris clair de la page (le contenu ne
   passe pas dessous) : le voile noir de la connexion (--voile-connexion) est donc posé sur --sidebar-bg (--ds-texte), ce
   qui donne le même noir que le panneau sur une image sombre ; flou léger gardé pour le tiroir du téléphone. Texte des
   entrées blanc cassé (--sidebar-text = --ds-fond), entrée active : fond un peu plus clair, barre et icône jaunes
   (--accent-connexion) ; survol : fond très léger. Police inchangée. Aucune couleur en dur. Téléphone et tablette :
   même comportement (tiroir « Ma boutique » / « Catalogue » / « Déconnexion », barre basse inchangée). */
.sidebar { background: linear-gradient(var(--voile-connexion), var(--voile-connexion)), var(--sidebar-bg); color: var(--ds-carte);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sidebar-brand { padding: 6px 8px 24px; color: var(--ds-carte); }
.sidebar-brand-texte { display: flex; flex-direction: column; }
.sidebar .sidebar-brand-texte .sidebar-brand-haut { margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--ds-carte); }
.sidebar-brand .sidebar-brand-nom { display: flex; align-items: center; gap: 6px; font-size: 24px; font-weight: 900; line-height: .95;
    letter-spacing: .01em; color: var(--ds-carte); }
.sidebar-brand-nom > span:first-child { display: flex; flex-direction: column; }
.sidebar .sidebar-brand-nom span { margin: 0; font-size: inherit; color: inherit; }
.sidebar .sidebar-brand-nom .sidebar-brand-fleche { display: inline-flex; color: var(--accent-connexion); }
.sidebar-nav a { color: var(--sidebar-text); }
.sidebar-nav a:hover { background: color-mix(in srgb, var(--ds-carte) 6%, transparent); color: var(--ds-carte); }
.sidebar-nav a.actif, .sidebar-nav a.actif:hover { background: var(--sidebar-active-bg); color: var(--ds-carte); }
.sidebar-nav a.actif svg { color: var(--accent-connexion); }
.sidebar-nav a:focus-visible, .sidebar-boutique :focus-visible, .sidebar-brand:focus-visible { outline-color: var(--accent-connexion); }
.sidebar-boutique { border-top: 1px solid color-mix(in srgb, var(--ds-carte) 18%, transparent); }
.sidebar-boutique label { color: var(--ds-carte); }
.sidebar-boutique select, .sidebar-boutique .boutique-fixe { background: var(--voile-connexion);
    border: 1px solid color-mix(in srgb, var(--ds-carte) 30%, transparent); color: var(--ds-carte); }
.sidebar-boutique select option { background: var(--ds-carte); color: var(--ds-texte); }
.sidebar-deconnexion, .sidebar-catalogue.actif { color: var(--sidebar-text); }
.sidebar-catalogue.actif { color: var(--ds-carte); }

/* Campagnes Nouveautés, liste (18/10/2026) : le tableau tient dans sa carte dès ~740 px de contenu (fenêtre de 1054 px
   avec le menu latéral) ; en dessous, il défile et commence toujours par « N° » et « Nouveau produit ». Classes propres à
   admin_campagnes.php (adm-camp-*) : les règles C16 / C17 partagées avec Demandes ne sont pas modifiées, seulement
   surchargées ici. En-têtes à la ligne si la place manque (« Missions publiées ») ; actions côte à côte sur une ligne,
   largeur naturelle (jamais étirées) ; « Annuler ce brouillon » = corbeille neutre comme les autres boutons-icônes (blanc
   bordé, 44 px), rouge au survol et au focus clavier. Badges NEW dans la colonne Statut. */
.adm-camp-table th { white-space: normal; }
.adm-table-cartes td.adm-actions.adm-camp-cellule { min-width: 0; width: auto; white-space: nowrap; text-align: right; }
.adm-camp-actions { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 6px; }
.adm-table-cartes td.adm-actions.adm-camp-cellule .adm-camp-actions .btn { width: auto; min-width: 0; margin: 0; white-space: nowrap; }
.adm-table-cartes td.adm-actions.adm-camp-cellule .adm-camp-actions > form { display: inline-flex; width: auto; margin: 0; }
.adm-camp-corbeille.btn-icone { width: var(--ds-bouton-h); height: var(--ds-bouton-h); padding: 0;
    background: var(--ds-carte); border: 1px solid var(--ds-trait); color: var(--ds-discret); }
.adm-camp-corbeille.btn-icone:hover, .adm-camp-corbeille.btn-icone:focus-visible {
    background: var(--ds-rouge-fond); border-color: var(--ds-rouge-plein); color: var(--ds-rouge-texte); }
.adm-camp-corbeille.btn-icone:focus-visible { outline-color: var(--ds-rouge-texte); }
@media (max-width: 700px) {
    .adm-table-cartes td.adm-actions.adm-camp-cellule { white-space: normal; text-align: left; }
    .adm-camp-actions { flex-wrap: wrap; justify-content: flex-start; }
}

/* ===== Mise en page, lot 2 (audit du 18/10/2026) : classes propres « mep-* » (et « adm-camp-* » pour la liste des
   campagnes, suite du lot 1). Bloc autonome, ajouté à la fin du fichier : il ne modifie aucune règle existante. ===== */
/* Constat 6 — Campagnes : de 701 à 995 px (menu latéral visible, tableau plus large que sa carte sur une ligne), cellules
   moins espacées et boutons d'action autorisés à passer à la ligne (colonne fine) : le tableau tient dans sa carte à
   900 px. Au-dessus, rien ne change (une ligne de boutons) ; en dessous de 701 px, les cartes empilées du lot 1. */
@media (min-width: 701px) and (max-width: 995px) {
    .adm-camp-table th, .adm-camp-table td { padding-left: 8px; padding-right: 8px; }
    .adm-table-cartes td.adm-actions.adm-camp-cellule { white-space: normal; }
    .adm-camp-actions { flex-wrap: wrap; }
}
/* Constat 1 — Assistant de campagne : barre des six étapes un peu plus compacte et autorisée à passer à la ligne
   au-dessus de 700 px (une ligne à 1054 px, deux à 900 px : l'étape 6 n'est plus jamais coupée). Sur téléphone, la
   rangée qui défile (choix antérieur) ne change pas. */
@media (min-width: 701px) {
    .mep-etapes { flex-wrap: wrap; gap: 4px; overflow-x: visible; }
    .mep-etapes .adm-etape { padding-left: 10px; padding-right: 10px; }
}
/* Constat 3 — Demandes, vue Skips : colonnes Client et Raison du skip assez larges pour se lire, mots coupés seulement
   s'ils ne tiennent pas sur une ligne (la raison était coupée en plein mot par « overflow-wrap: anywhere », règle
   partagée de .skip-texte, non modifiée) ; sous 760 px, ces deux cellules reviennent à la ligne au lieu d'étirer le
   tableau sur une seule ligne (comme la note d'un signalement). */
.adm-table.adm-skips td.mep-skips-client { min-width: 14rem; overflow-wrap: break-word; }
.adm-table.adm-skips td.mep-skips-raison { min-width: 11rem; overflow-wrap: break-word; }
.adm-table.adm-skips td.mep-skips-raison .skip-texte { overflow-wrap: break-word; }
@media (max-width: 760px) {
    .adm-table.adm-skips td.mep-skips-client, .adm-table.adm-skips td.mep-skips-raison { white-space: normal; }
}
/* Constat 4 — Catalogue : le libellé des prix (« Prix catalogue HT (hors remise) ») est dit une fois. En-tête de la
   colonne sur deux lignes au lieu d'être coupé ; sous chaque prix, le même libellé n'est plus affiché (gardé pour les
   lecteurs d'écran) ; sur téléphone (en-tête masqué sous 760 px), une légende au-dessus de la liste, même libellé.
   Un libellé différent (prix non disponible, non proposé, tarif général, hors déclinaison) reste affiché. */
.tbl-catalogue .tbl-head .mep-catal-prix-tete { white-space: normal; overflow: visible; text-overflow: clip; }
.mep-catal-libelle-commun { position: relative; }
.mep-catal-libelle-commun .prix-libelle { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.mep-catal-legende { display: none; }
@media (max-width: 760px) {
    .mep-catal-legende { display: block; margin: 0 0 8px; }
}

/* 0145 « Tableau du jour » : « Journée terminée » (tableau Important + Journalier vide), bouton facultatif « Ajouter 5 missions » */
.journee-terminee { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
    margin: 12px 0; padding: 16px 20px; background: var(--ds-vert-fond); border: 1px solid var(--ds-trait);
    border-radius: var(--ds-rayon); color: var(--ds-vert-texte); }
.journee-terminee[hidden] { display: none; }
.journee-terminee-texte { flex: 1 1 260px; min-width: 0; }
.journee-terminee-texte h3 { margin: 0 0 4px; font-size: 18px; color: var(--ds-vert-texte); }
.journee-terminee-texte p { margin: 0; }
.journee-terminee-texte .meta, .journee-terminee-actions .meta { color: var(--ds-discret); font-size: 13px; margin-top: 4px; }
.journee-terminee-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; flex: 0 1 auto; max-width: 100%; }
.journee-terminee-actions .btn { min-height: var(--ds-bouton-h); }

/* Bandeau « Mise à jour en cours, réessayez dans quelques minutes. » (allègement du 23/10/2026, _entete.php) : même forme que
   .bandeau-fin, couleurs d'alerte douce des jetons, jamais une valeur en dur. */
.bandeau-fin.bandeau-maintenance { background: var(--ds-orange-fond); color: var(--ds-orange-texte); border-color: var(--ds-orange-plein); font-weight: 600; }

/* Propositions du connecteur (migration 20261026110003) : page propositions_connecteur.php et bandeau de « Mes tâches ».
   Texte rédigé par Claude dans un encadré, ligne ajoutée à la note mise en évidence, boutons Valider / Refuser à 44 px. */
.propositions-connecteur .proposition { display: flex; flex-direction: column; gap: 8px; }
.propositions-connecteur .proposition-titre { margin: 0; font-size: 16px; }
.propositions-connecteur .proposition-texte { padding: 8px 12px; border: 1px solid var(--ds-trait); border-radius: var(--ds-rayon);
    background: var(--ds-fond); white-space: normal; overflow-wrap: anywhere; }
.propositions-connecteur .proposition-ajout { background: var(--ds-bleu-fond); color: var(--ds-bleu-texte); }
.propositions-connecteur .proposition-boutons { display: flex; flex-wrap: wrap; gap: 8px; }
.propositions-connecteur .proposition-boutons .btn { min-height: var(--ds-bouton-h); }
.propositions-bandeau { background: var(--ds-bleu-fond); color: var(--ds-bleu-texte); }
/* Lot L7 du collecteur (26/10/2026) : bloc « Sur la boutique » de la fiche client et du panneau de mission (_collecte_pages.php) */
.activite-boutique .activite-boutique-ligne { margin: 6px 0 0; }
.activite-boutique .activite-panier { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--ds-trait); }
.activite-boutique .activite-panier-lignes { margin: 4px 0 0; padding-left: 18px; overflow-wrap: anywhere; }
.activite-boutique .activite-boutique-alerte { margin: 8px 0 0; padding: 8px 10px; border-radius: var(--ds-rayon-bouton);
    background: var(--ds-orange-fond); color: var(--ds-orange-texte); }
.activite-boutique .activite-boutique-pied { margin: 8px 0 0; }
.pastille-activite.pa-commande { background: var(--ds-vert-fond); color: var(--ds-vert-texte); }
/* Commission (estimation) en direct (commissions_directes, 26/10/2026 ; règles du bot depuis le 25/11/2026) : « Aujourd'hui » et la fraîcheur sous le montant ;
   « en cours de chargement » en texte plus petit, jamais un 0 € ; détail par commercial pour l'administrateur. */
.kpi-note { order: 4; display: block; margin-top: 2px; color: var(--ds-discret); font-size: 12.5px; line-height: 1.35; }
.kpi-value.kpi-attente { font-size: 15px; font-weight: 700; color: var(--ds-discret); }
.commission-detail { margin-top: 14px; }
.commission-detail-liste { list-style: none; margin: 0; padding: 0; }
.commission-detail-liste li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 10px 2px;
    border-bottom: 1px solid var(--ds-trait); }
.commission-detail-liste li:last-child { border-bottom: 0; }
.commission-detail-nom { flex: 1 1 180px; font-weight: 600; color: var(--ds-texte); }
.commission-detail-mois { font-weight: 700; color: var(--ds-texte); }
.commission-detail-jour { font-size: 12.5px; }
/* 25/11/2026 : tableau des 4 commerciaux (règles du bot Telegram), défile seul sur téléphone. */
.commission-tableau-defile { overflow-x: auto; }
.commission-tableau { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.commission-tableau th, .commission-tableau td { text-align: right; padding: 8px 6px; border-top: 1px solid var(--ds-trait); white-space: nowrap; }
.commission-tableau th { color: var(--ds-discret); font-weight: 600; border-top: 0; }
.commission-tableau th:first-child, .commission-tableau td:first-child { text-align: left; }
.commission-tableau-total td { font-weight: 700; color: var(--ds-texte); }

/* ---------- Prospection : bandeau « Traitement automatique » (page Recherches, 26/10/2026) ---------- */
/* ---------- Pense-bêtes (20261105122858) : post-it jaunes ; page, fiche client, bande du tableau de bord, épinglés ---------- */
:root { --pb-fond: #fff1a6; --pb-fond-fonce: #f7df6b; --pb-texte: #3d3410; --pb-ombre: 0 3px 8px rgba(60, 50, 0, .18);
        --pb-main: "Segoe Print", "Bradley Hand", "Marker Felt", "Comic Sans MS", cursive; }
.pb-page-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 4px 0 18px; }
.pb-rubrique { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: 17px; margin: 22px 0 12px; }
.pb-compte { display: inline-flex; min-width: 24px; height: 24px; padding: 0 8px; align-items: center; justify-content: center;
             border-radius: 999px; background: var(--ds-gris); font-size: 12.5px; font-weight: 700; }
.pb-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px 18px; padding: 6px 2px 10px; }
/* 10 couleurs de post-it (une par pense-bête, choisie à la création ; jamais deux fois la même parmi ceux en cours). */
.pb-c0 { --pb-fond: #fff1a6; --pb-fond-fonce: #f7df6b; --pb-texte: #3d3410; }
.pb-c1 { --pb-fond: #ffd3a8; --pb-fond-fonce: #f8b571; --pb-texte: #45280c; }
.pb-c2 { --pb-fond: #ffc6cf; --pb-fond-fonce: #f5a0ae; --pb-texte: #4a1820; }
.pb-c3 { --pb-fond: #f3c4ec; --pb-fond-fonce: #e39bd8; --pb-texte: #3f1439; }
.pb-c4 { --pb-fond: #d9cbff; --pb-fond-fonce: #b9a5f5; --pb-texte: #26184d; }
.pb-c5 { --pb-fond: #c5dcff; --pb-fond-fonce: #9cc0f7; --pb-texte: #142a4a; }
.pb-c6 { --pb-fond: #bdeef0; --pb-fond-fonce: #8fdde1; --pb-texte: #0e3a3c; }
.pb-c7 { --pb-fond: #c8f0c0; --pb-fond-fonce: #9fe093; --pb-texte: #173d12; }
.pb-c8 { --pb-fond: #e6f3a4; --pb-fond-fonce: #d0e670; --pb-texte: #33380c; }
.pb-c9 { --pb-fond: #e9dccb; --pb-fond-fonce: #d4c0a6; --pb-texte: #3b2d1c; }
.pb-postit { position: relative; min-height: 170px; padding: 26px 16px 14px; background: var(--pb-fond); color: var(--pb-texte);
             box-shadow: var(--pb-ombre); border-radius: 2px 2px 14px 2px; display: flex; flex-direction: column; gap: 8px;
             transform: rotate(-1.2deg); transition: transform .15s ease; }
.pb-grille .pb-postit:nth-child(2n) { transform: rotate(1deg); }
.pb-grille .pb-postit:nth-child(3n) { transform: rotate(-.4deg); }
.pb-postit:hover { transform: rotate(0) scale(1.02); }
.pb-postit::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 16px; background: var(--pb-fond-fonce); opacity: .55; }
.pb-texte { margin: 0; font-family: var(--pb-main); font-size: 16px; line-height: 1.35; white-space: normal; word-wrap: break-word; flex: 1; }
.pb-date { position: absolute; top: 22px; right: 10px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .7);
           border-radius: 999px; padding: 2px 8px; }
.pb-postit .pb-date + .pb-texte { margin-top: 18px; }
.pb-client { font-size: 13px; font-weight: 700; color: var(--ds-bleu-texte); text-decoration: none; }
.pb-client:hover { text-decoration: underline; }
.pb-punaise { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); border: 0; background: none; cursor: pointer;
              font-size: 22px; line-height: 1; filter: grayscale(1) opacity(.35); padding: 4px; min-width: 44px; min-height: 36px; }
.pb-punaise:hover, .pb-punaise.pb-epinglee { filter: none; }
.pb-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pb-fait { border: 0; border-radius: 999px; background: var(--ds-vert-bouton); color: #fff; font-weight: 700; font-size: 13px;
           padding: 8px 14px; min-height: 36px; cursor: pointer; }
.pb-fait:hover { background: var(--ds-vert-bouton-survol); }
.pb-prolonger { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--ds-orange-texte); cursor: pointer; }
.pb-prolonger input { font-size: 12px; border: 1px solid rgba(0, 0, 0, .15); border-radius: 8px; padding: 4px; background: rgba(255, 255, 255, .7); max-width: 128px; }
.pb-jour { box-shadow: var(--pb-ombre), 0 0 0 3px var(--ds-orange-plein); }
.pb-avenir { filter: grayscale(.7); opacity: .7; }
.pb-termine { background: #ffe0a6; }
.pb-archive { opacity: .6; transform: none !important; min-height: 120px; }
.pb-fait-le { font-size: 12px; font-weight: 700; }
.pb-archives { margin-top: 26px; }
.pb-archives summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
.pb-lien { border: 0; background: none; color: var(--ds-bleu-texte); font-weight: 700; cursor: pointer; padding: 6px 4px; font-size: 13px; }
/* Fiche client */
.pb-fiche { margin: 14px 0; }
.pb-fiche-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pb-grille-fiche { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-top: 12px; }
/* Bande du tableau de bord : une ligne */
.pb-bande { display: flex; align-items: center; gap: 12px; background: var(--ds-carte); border-radius: var(--ds-rayon); box-shadow: var(--ds-ombre);
            padding: 8px 12px; margin: 0 0 16px; min-height: 56px; }
.pb-bande-titre { font-weight: 700; color: var(--ds-texte); text-decoration: none; white-space: nowrap; }
.pb-bande-liste { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; overflow: hidden; }
.pb-bande-vide { color: var(--ds-discret); font-size: 14px; }
.pb-mini { display: flex; align-items: center; gap: 6px; background: var(--pb-fond); color: var(--pb-texte); border-radius: 2px 2px 8px 2px;
           box-shadow: 0 2px 4px rgba(60, 50, 0, .15); padding: 4px 10px 4px 4px; min-width: 0; max-width: 300px; transform: rotate(-.6deg); }
.pb-mini:nth-child(2n) { transform: rotate(.6deg); }
.pb-mini.pb-jour { box-shadow: 0 0 0 2px var(--ds-orange-plein); }
.pb-mini-case { flex: none; width: 36px; height: 36px; border: 0; background: none; cursor: pointer; position: relative; }
.pb-mini-case::after { content: ""; position: absolute; inset: 9px; border: 2px solid var(--pb-texte); border-radius: 4px; background: rgba(255, 255, 255, .6); }
.pb-mini-case:hover::after { background: var(--ds-vert-fond); }
.pb-mini-texte { font-family: var(--pb-main); font-size: 14px; color: inherit; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-mini-jour { font-family: var(--ds-police); font-size: 11px; font-weight: 700; color: var(--ds-orange-texte); }
.pb-bande-plus { font-weight: 700; color: var(--ds-bleu-texte); text-decoration: none; white-space: nowrap; }
.pb-ajout { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px dashed var(--ds-discret); background: var(--ds-doux);
            font-size: 22px; font-weight: 700; color: var(--ds-texte); cursor: pointer; }
.pb-ajout:hover { background: var(--pb-fond); }
/* Fenêtre « Nouveau pense-bête » */
.pb-modal { border: 0; border-radius: var(--ds-rayon); padding: 0; width: min(440px, calc(100vw - 32px)); box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.pb-modal::backdrop { background: rgba(30, 35, 50, .4); }
.pb-form { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--pb-fond); }
.pb-form h2 { margin: 0; font-size: 18px; }
.pb-form textarea { font-family: var(--pb-main); font-size: 16px; border: 0; border-radius: 6px; padding: 10px; background: rgba(255, 255, 255, .75); resize: vertical; }
.pb-champ { display: flex; flex-direction: column; gap: 6px; position: relative; }
.pb-libelle { font-size: 13px; font-weight: 700; }
.pb-libelle em { font-weight: 400; color: var(--ds-discret); }
.pb-champ input[type=search], .pb-dates input[type=date] { border: 1px solid rgba(0, 0, 0, .15); border-radius: 8px; padding: 9px; font-size: 14px; background: #fff; min-height: 40px; }
.pb-suggestions { list-style: none; margin: 0; padding: 4px; background: #fff; border-radius: 8px; box-shadow: var(--ds-ombre); max-height: 220px; overflow: auto; }
.pb-suggestions button { width: 100%; text-align: left; border: 0; background: none; padding: 10px 8px; font-size: 14px; cursor: pointer; border-radius: 6px; }
.pb-suggestions button:hover { background: var(--ds-bleu-fond); }
.pb-client-choix { font-weight: 700; }
.pb-dates { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pb-choix { border: 1px solid rgba(0, 0, 0, .15); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13px; min-height: 40px; cursor: pointer; }
.pb-choix[aria-pressed="true"] { background: var(--ds-texte); color: #fff; border-color: var(--ds-texte); }
.pb-erreur { margin: 0; color: var(--ds-rouge-texte); font-weight: 700; font-size: 13px; }
.pb-form-bas { display: flex; justify-content: flex-end; gap: 10px; }
/* Épinglés : en bas à droite de toutes les pages */
.pb-epingles { position: fixed; right: 18px; bottom: 18px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.pb-epingles-liste { display: flex; flex-direction: column; gap: 10px; }
.pb-epingles.pb-plie .pb-epingles-liste { display: none; }
.pb-epingle-carte { position: relative; width: 220px; background: var(--pb-fond); color: var(--pb-texte); box-shadow: 0 6px 18px rgba(60, 50, 0, .28);
                    border-radius: 2px 2px 12px 2px; padding: 18px 12px 10px; display: flex; flex-direction: column; gap: 6px; transform: rotate(-1deg); }
.pb-epingle-carte .pb-texte { font-size: 14px; }
.pb-epingle-punaise { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: 20px; }
.pb-pastille { border: 0; border-radius: 999px; background: var(--ds-texte); color: #fff; font-weight: 700; font-size: 15px; padding: 10px 14px;
               min-height: 44px; box-shadow: var(--ds-ombre); cursor: pointer; }
@media (max-width: 760px) {
    .pb-bande { flex-wrap: wrap; }
    .pb-ajout { margin-left: auto; }
    .pb-bande-liste { order: 3; flex-basis: 100%; overflow-x: auto; }
    .pb-mini { flex: none; max-width: 220px; }
    .pb-epingles { right: 12px; bottom: 84px; }   /* au-dessus de la barre basse du téléphone */
    .pb-epingle-carte { width: min(260px, calc(100vw - 24px)); }
    .pb-grille { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 12px; }
}


/* Un liseré de couleur par état (en cours, en attente, arrêté, arrêté sans prévenir), jetons du système seulement ;
   placé AVANT le bloc « Sources et plafonds », qui doit rester le dernier (tests/php/test_prospection_menu.php). */
.adm-prosp-service { border-left: 4px solid var(--ds-discret); }
.adm-prosp-service-marche { border-left-color: var(--ds-vert-texte); }
.adm-prosp-service-pause { border-left-color: var(--ds-bleu-texte); }
.adm-prosp-service-alerte { border-left-color: var(--ds-rouge-texte); }
.adm-prosp-service-alerte .adm-prosp-service-etat { color: var(--ds-rouge-texte); }
.adm-prosp-service details ul { margin: 4px 0 0; padding-left: 18px; }

/* 08/11/2026 : logo Global 17 à la place du texte (menu et connexion) — logo détouré, mot « GLOBAL » en blanc pour les fonds sombres. */
.sidebar .sidebar-brand-texte .sidebar-brand-logo { display: block; margin: 0 0 8px; }
.sidebar-brand-logo img { display: block; width: 176px; height: auto; }
.login-logo-image { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; letter-spacing: normal; text-transform: none; }
.login-logo-image img { display: block; width: 260px; height: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.login-logo-dev { font-size: 11px; font-weight: 800; color: var(--ds-orange-texte); background: var(--ds-orange-fond); border-radius: 6px; padding: 2px 6px; }
@media (max-width: 640px) {
    .login-logo-image img { width: 200px; }
    .login-fond + .login-box .login-logo-image { margin-bottom: 6px; }
}

/* Accueil : « N réponses de clients à lire » (20261116113208, maquette docs/maquette_reponses_robot.html), seulement s'il y en a. */
.rep-signal { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 16px; min-height: 56px;
    border-radius: var(--ds-rayon); background: var(--ds-vert-fond); color: var(--ds-vert-texte); box-shadow: inset 4px 0 var(--ds-vert-bouton), var(--ds-ombre);
    text-decoration: none; }
.rep-signal:hover { filter: brightness(.98); }
.rep-signal-bulle { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ds-carte); font-size: 18px; }
.rep-signal-texte { display: grid; gap: 2px; min-width: 0; }
.rep-signal-sous { font-size: 13px; color: var(--ds-texte); }
.rep-signal-fleche { margin-left: auto; font-size: 20px; }

/* ---------- Prospection : tableau « Sources et plafonds » (page Entreprises, 18/10/2026) ---------- */
/* Bloc ajouté (rien d'existant modifié). Les en-têtes en une seule ligne (style.css) élargissaient le tableau au-delà de sa
   carte et coupaient « Enregistrer » à 900 px : ils passent ici à la ligne, cellules un peu moins larges. Colonne « Réglage »
   (td.adm-prosp-reglage) compacte : champs côte à côte avec leur libellé visible au-dessus (Coût, Devise, Plafond/jour),
   case « Source active » et bouton à 44 px de haut, au plus deux lignes ; une seule ligne quand la place le permet. */
.adm-prosp-sources .adm-table th { white-space: normal; vertical-align: bottom; }
.adm-prosp-sources .adm-table th, .adm-prosp-sources .adm-table td { padding-left: 6px; padding-right: 6px; }
.adm-prosp-sources .adm-table td.adm-prosp-reglage { min-width: 17.5rem; }
@media (min-width: 1280px) { .adm-prosp-sources .adm-table td.adm-prosp-reglage { min-width: 30rem; } }
.adm-prosp-sources .adm-prosp-reglage .adm-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; max-width: none; }
.adm-prosp-sources .adm-prosp-champ { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; }
.adm-prosp-sources .adm-prosp-champ > label { margin: 0; font-size: 12px; font-weight: 700; color: var(--ds-discret); white-space: nowrap; }
.adm-prosp-sources .adm-prosp-champ input[type=text] { width: 4rem; box-sizing: border-box; }
.adm-prosp-sources .adm-prosp-champ > label.adm-prosp-case { display: inline-flex; align-items: center; gap: 8px; min-height: var(--ds-bouton-h);
    font-size: 13px; color: var(--ds-texte); cursor: pointer; }
.adm-prosp-sources .adm-prosp-case input[type=checkbox] { width: 20px; height: 20px; margin: 0; }
.adm-prosp-sources .adm-prosp-reglage .adm-form > .btn { min-height: var(--ds-bouton-h); white-space: nowrap; }

/* Fiche client : dernière conversation WhatsApp (20261114192431), lecture seule, bulles façon WhatsApp. */
.wa-fil { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px; background: #efeae2; max-height: 520px; overflow-y: auto; }
.wa-jour { align-self: center; font-size: 12px; font-weight: 700; color: var(--ds-discret); background: rgba(255, 255, 255, .85);
    padding: 2px 10px; border-radius: 8px; margin: 4px 0; }
.wa-bulle { max-width: 78%; padding: 7px 10px 5px; border-radius: 10px; font-size: 14px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0, 0, 0, .06);
    overflow-wrap: anywhere; display: flex; flex-direction: column; }
.wa-bulle-client { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.wa-bulle-moi { align-self: flex-end; background: #dcf8c6; border-top-right-radius: 2px; }
.wa-bulle-echec { background: var(--ds-rouge-fond); }
.wa-origine { font-size: 11px; font-weight: 700; color: var(--ds-vert-texte); margin-bottom: 2px; }
.wa-pied { align-self: flex-end; font-size: 11px; color: var(--ds-discret); margin-top: 2px; }
.wa-etat-lu { color: #1f8fcf; font-weight: 700; }
.wa-etat-echec { color: var(--ds-rouge-texte); font-weight: 700; }

/* « Envoyer par WhatsApp » (20261114192431) : bouton vert, aperçu du message dans la boîte de confirmation. */
.btn-whatsapp, .editeur-envoi .btn-whatsapp { background: var(--ds-vert-bouton); border-color: var(--ds-vert-bouton); color: #fff; }   /* l'éditeur force ses boutons en blanc : vert gardé (15/11) */
.btn-whatsapp:hover:not(:disabled), .editeur-envoi .btn-whatsapp:hover:not(:disabled) { background: var(--ds-vert-bouton-survol); border-color: var(--ds-vert-bouton-survol); color: #fff; }
.wa-fil-apercu { max-height: 240px; margin: 4px 0 8px; }
.wa-bulle-apercu { white-space: pre-wrap; max-width: 100%; }

/* Fiche admin : recherche, réglages de commande et action manuelle. */
.wa-admin { display:grid; gap:16px; }
.wa-admin .card { margin:0; padding:20px; }
.wa-admin .wa-recherche form, .wa-admin .wa-fiche form { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.wa-admin .wa-recherche input { flex:1 1 200px; min-width:0; }
.wa-admin .wa-fiche form { padding:12px 0; justify-content:space-between; border-bottom:1px solid var(--ds-trait); }
.wa-admin .wa-commandes, .wa-admin .wa-avis { border-radius:12px; padding:12px 16px; }
.wa-admin .wa-commandes { background:var(--ds-bleu-fond); margin:20px 0 0; }
.wa-admin .wa-avis { background:var(--ds-orange-fond); margin:18px 0; }
.wa-admin .wa-avis h3, .wa-admin .wa-avis p { margin:4px 0 8px; }
.wa-admin .reseau-resultats li { display:flex; flex-wrap:wrap; gap:10px; align-items:center; padding:12px 0; border-bottom:1px solid var(--ds-trait); }
.wa-admin .reseau-resultats li>a { flex:1 1 180px; }

.wa-annuaire { margin:12px 0; }
.wa-client,.wa-colonnes { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1.2fr) 1em; align-items:center; gap:10px; padding:12px; }
.wa-colonnes { background:#eef2fb; border-radius:8px; font-size:.85em; font-weight:600; }
.wa-client { color:inherit; text-decoration:none; border-bottom:1px solid var(--ds-trait); overflow-wrap:anywhere; }
.wa-client small { display:block; opacity:.72; }
.wa-client:hover,.wa-client:focus-visible { background:#f1f5ff; }
@media(max-width:600px){
.wa-colonnes { display:none; }
.wa-client { grid-template-columns:minmax(0,1fr) auto 1em; }
.wa-responsable { grid-column:1/3; grid-row:2; font-size:.85em; }
.wa-client>span:last-child { grid-column:3; grid-row:1/3; }
}

