/* Polices de Yosh Delicious (Fredoka pour les titres, Nunito pour le texte ; licence OFL dans licences/ à la racine du dépôt). */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400; font-display: swap; src: url(polices/nunito-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 500 600; font-display: swap; src: url(polices/nunito-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url(polices/nunito-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url(polices/nunito-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(polices/fredoka-latin-600-normal.woff2) format('woff2'); }
:root {
  /* Palette « Récolte » de Yosh Delicious (les noms viennent du portail d'Eliya's Corner : « prune » = la couleur principale, ici la terracotta). */
  --prune: #A64B25; --prune-fonce: #6E2E14; --prune-clair: #F6E3D6; --rose: #EBCDB9; --bord: #E6D8C6;
  --fond: #F7EFE3; --carte: #FFFFFF; --texte: #3B2A17; --doux: #5E4C38;
  --vert: #4F5D27; --vert-clair: #ECEEDC; --or: #7A5A12; --or-clair: #F6EFD9; --rouge: #A33A2B; --rouge-clair: #F8E7E4;
  --vert-fonce: #3D4A1C; --fond-doux: #FBF5EC; --champ: #FFFCF7; --survol: #F8EDE2;
  --rayon: 14px;
  /* Mouvement (Emil Kowalski) : sorties franches, entrées douces, jamais linéaire */
  --sortie: cubic-bezier(.23, 1, .32, 1); --entree: cubic-bezier(.16, 1, .3, 1);
}
::selection { background: var(--rose); color: var(--texte); }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Nunito', system-ui, sans-serif; color: var(--texte); background: var(--fond); font-size: 16px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
a { color: var(--prune); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2 { font-family: 'Fredoka', 'Nunito', system-ui, sans-serif; font-weight: 600; margin: 0; }
h1 { font-size: 28px; line-height: 1.15; }
h2 { font-size: 20px; }
[hidden] { display: none !important; }

/* Structure */
.app { min-height: 100vh; display: flex; }
.menu { width: 248px; flex: none; background: linear-gradient(180deg, #B85A2E 0%, var(--prune) 45%, var(--prune-fonce) 100%); color: #fff;
  padding: 22px 16px 18px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.marque { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-bottom: 18px; margin-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.14); }
.marque-logo { display: flex; justify-content: center; width: 100%; background: #F7F7F7; border-radius: 16px; padding: 12px 10px 8px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.marque-logo img { width: 150px; max-width: 100%; height: auto; display: block; }
.marque-titre { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); }
.menu-rubrique { margin: 8px 12px 2px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.liens { display: flex; flex-direction: column; gap: 4px; }
.liens a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: #fff; text-decoration: none; font-size: 15px; }
.liens a svg { width: 20px; height: 20px; flex: none; opacity: .9; }
.liens a .libelle { flex: 1; }
@media (hover: hover) { .liens a:hover { background: rgba(255,255,255,.1); } }
.liens a[aria-current="page"] { background: #fff; color: var(--prune); font-weight: 600; }
.pastille { font-size: 12px; font-weight: 700; min-width: 22px; text-align: center; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.22); }
.liens a[aria-current="page"] .pastille { background: var(--prune-clair); }
.moi { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 10px; border-radius: 14px; background: rgba(255,255,255,.08); font-size: 12.5px; color: var(--rose); }
.avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #F7F7F7; color: var(--prune); font-weight: 700; font-size: 12.5px; letter-spacing: .04em; }
.moi-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.moi-texte strong { color: #fff; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Nom et rôle sur toute la largeur ; en dessous, une ligne : langue · mot de passe · déconnexion */
.moi-actions { flex: 1 0 100%; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.moi-actions .choix-langue { margin-right: auto; }
.moi .sortir { flex: none; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: none;
  border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 10px; cursor: pointer; padding: 0; }
@media (hover: hover) { .moi .sortir:hover { background: rgba(255,255,255,.12); } }
.moi .sortir svg { width: 18px; height: 18px; }
main { flex: 1; min-width: 0; padding: 30px 36px 60px; display: flex; flex-direction: column; gap: 20px; }
.entete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.entete p { margin: 4px 0 0; color: var(--doux); }

/* Barre du bas sur téléphone */
.barre { display: none; }
@media (max-width: 760px) {
  .menu { display: none; }
  main { padding: 12px 16px calc(88px + env(safe-area-inset-bottom)); }
  h1 { font-size: 24px; }
  .barre { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--prune); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  /* 5 cases d'une ligne chacune (iPhone : 390 px) ; le reste du menu est derrière « Plus » */
  .barre a, .barre .barre-plus { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--rose); text-decoration: none;
    font: inherit; font-size: 11px; line-height: 1.2; padding: 6px 2px; border-radius: 10px; position: relative; background: none; border: 0; cursor: pointer; }
  .barre .libelle { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .barre a svg, .barre .barre-plus svg { width: 22px; height: 22px; }
  .barre a[aria-current="page"], .barre .barre-plus[aria-current="page"] { color: #fff; background: rgba(255,255,255,.14); font-weight: 600; }
  .barre .pastille { position: absolute; top: 0; right: 16%; font-size: 10px; padding: 0 5px; min-width: 16px; background: #fff; color: var(--prune); }
  .mobile-entete { display: flex !important; }
}
.mobile-entete { display: none; justify-content: space-between; align-items: center; }
.mobile-entete img { height: 38px; width: auto; border-radius: 8px; }
.mobile-entete .mobile-moi { background: none; border: 0; padding: 2px; cursor: pointer; border-radius: 50%; }
.mobile-entete .mobile-moi .avatar { background: var(--prune); color: #fff; width: 40px; height: 40px; }
/* Menu du téléphone (« Plus ») : une feuille qui monte du bas, toutes les pages selon le rôle */
.feuille-menu { margin: auto 0 0; width: 100%; max-width: 100%; max-height: 88vh; overflow-y: auto; border: 0; border-radius: 20px 20px 0 0;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--carte); box-shadow: 0 -12px 40px rgba(30,10,20,.3); }
.feuille-menu::backdrop { background: rgba(42,31,45,.45); }
.feuille-menu[open] { animation: feuille-entree .24s var(--entree, ease-out); }
@keyframes feuille-entree { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .feuille-menu[open] { animation: none; } }
.feuille-poignee { width: 40px; height: 4px; border-radius: 4px; background: var(--bord); margin: 2px auto 10px; }
.feuille-moi { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--bord); }
.feuille-moi .avatar { background: var(--prune); color: #fff; }
.feuille-moi .moi-texte span { color: var(--doux); font-size: 13px; }
.feuille-moi .moi-texte strong { color: var(--texte); font-size: 15px; }
.feuille-fermer { margin-left: auto; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--bord); background: #fff; cursor: pointer; font-size: 16px; color: var(--doux); }
.feuille-rubrique { margin: 14px 4px 4px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--doux); }
.feuille-liens { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.feuille-liens a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 12px; border-radius: 12px; background: var(--prune-clair);
  color: var(--prune); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.feuille-liens a svg { width: 20px; height: 20px; flex: none; }
.feuille-liens a .libelle { flex: 1; min-width: 0; }
.feuille-liens a[aria-current="page"] { background: var(--prune); color: #fff; }
.feuille-liens .pastille { background: #fff; color: var(--prune); }
.feuille-bas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--bord); }
.feuille-bas .choix-langue { margin-right: auto; }

/* Éléments */
.carte { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 18px; }
.outils { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.champ-recherche { flex: 1 1 220px; min-width: 0; padding: 11px 14px; border: 1px solid var(--bord); border-radius: 10px; background: #fff; }
select { padding: 10px 12px; border: 1px solid var(--bord); border-radius: 10px; background: #fff; max-width: 100%; }
.puces { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.puce { flex: none; display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--bord); background: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: 14px; white-space: nowrap; }
.puce b { font-weight: 700; color: var(--doux); }
.puce[aria-pressed="true"] { background: var(--prune); border-color: var(--prune); color: #fff; }
.puce[aria-pressed="true"] b { color: var(--rose); }
.liste { display: flex; flex-direction: column; gap: 10px; }
.ligne { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 14px 16px; text-decoration: none; color: inherit; }
@media (hover: hover) { .ligne:hover { border-color: var(--rose); box-shadow: 0 2px 10px rgba(109,46,70,.06); } }
.ligne .corps { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ligne .titre { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne .sous { font-size: 14px; color: var(--doux); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne .fin { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; font-size: 13px; color: var(--doux); text-align: right; }
.etiquette { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--prune-clair); color: var(--prune); white-space: nowrap; }
.etiquette.vert { background: var(--vert-clair); color: var(--vert); }
.etiquette.or { background: var(--or-clair); color: var(--or); }
.etiquette.rouge { background: var(--rouge-clair); color: var(--rouge); }
.vide { text-align: center; color: var(--doux); padding: 36px 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 12px 18px; background: var(--prune); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none; }
@media (hover: hover) { .btn:hover { background: var(--prune-fonce); } }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }
.btn.clair { background: var(--prune-clair); color: var(--prune); }
@media (hover: hover) { .btn.clair:hover { background: var(--rose); } }
.retour { color: var(--doux); text-decoration: none; font-size: 14px; }
.chargement { color: var(--doux); padding: 30px 0; text-align: center; }
.erreur { background: var(--rouge-clair); color: var(--rouge); border-radius: 10px; padding: 12px 14px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 50; background: var(--texte); color: #fff; border-radius: 12px; padding: 12px 18px; max-width: calc(100% - 32px); box-shadow: 0 6px 24px rgba(0,0,0,.18); font-size: 15px; }
@media (max-width: 760px) { .toast { bottom: 84px; } }

/* Fiche */
.fiche { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 980px) { .fiche { grid-template-columns: 1fr; } }
.infos { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.infos div { display: flex; gap: 12px; font-size: 15px; }
.infos dt { flex: none; width: 92px; color: var(--doux); }
.infos dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.boutons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.boutons button { border: 1px solid var(--bord); background: #fff; border-radius: 10px; padding: 12px 10px; cursor: pointer; font-weight: 500; text-align: center; }
.boutons button[aria-pressed="true"] { background: var(--prune); border-color: var(--prune); color: #fff; }
.boutons button.gagne { border-color: #CBD3B4; color: var(--vert); }
.boutons button.gagne[aria-pressed="true"] { background: var(--vert); color: #fff; }
.boutons button.perdu { color: var(--rouge); border-color: #EBC9C3; }
.boutons button.perdu[aria-pressed="true"] { background: var(--rouge); color: #fff; }
.formulaire { display: flex; flex-direction: column; gap: 12px; }
.formulaire label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--doux); }
.formulaire input, .formulaire textarea, .formulaire select { padding: 11px 13px; border: 1px solid var(--bord); border-radius: 10px; background: #fff; color: var(--texte); font-size: 16px; }
.formulaire textarea { min-height: 84px; resize: vertical; }
.formulaire input, .formulaire textarea, .formulaire select { width: 100%; min-width: 0; }
.formulaire label { min-width: 0; }
.infos .etiquette { white-space: normal; }
@media (max-width: 600px) {
  .ligne { flex-wrap: wrap; gap: 8px; }
  .ligne .corps { flex-basis: 100%; }
  .ligne .fin { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; text-align: left; }
  .ligne .fin:empty { display: none; }
}
.historique { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.historique li { display: flex; gap: 12px; }
.historique .point { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--rose); margin-top: 7px; }
.historique .quand { font-size: 13px; color: var(--doux); }
.historique .quoi { white-space: pre-wrap; overflow-wrap: anywhere; }
.actions-rapides { display: flex; flex-wrap: wrap; gap: 8px; }

/* Connexion */
/* Fond de connexion : papier kraft imprimé de nos sachets en quinconce, ton sur ton (Josuan, 13 novembre 2026). */
.connexion { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: #D9C3A0 url(motif-sachets.webp) repeat; background-size: 320px 320px; }
.connexion-boite { width: 100%; max-width: 880px; display: grid; grid-template-columns: 1.1fr 1fr; background: #fff;
  border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(30, 10, 20, .4); }
.connexion-image { margin: 0; background: var(--fond); padding: 28px 24px 22px; display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 12px; }
.connexion-image img { width: 100%; max-width: 420px; height: auto; }
.connexion-image figcaption { font-size: 14px; color: var(--doux); text-align: center; max-width: 320px; }
.connexion-formulaire { padding: 36px 32px; justify-content: center; gap: 18px; }
.connexion h1 { color: var(--prune); }
@media (max-width: 760px) {
  .connexion-boite { grid-template-columns: 1fr; max-width: 420px; }
  .connexion-image { padding: 20px 20px 8px; }
  .connexion-image img { max-width: 300px; }
  .connexion-formulaire { padding: 22px 22px 26px; }
}

.sans-js { padding: 24px; }

/* Classes utilisées à la place des styles en ligne */
.sous-titre { margin: 6px 0 0; color: var(--doux); }
.discret { color: var(--doux); }
.petit { font-size: 13px; }
.sans-marge { margin: 0; }
.titre-section { margin-bottom: 14px; }
.colonne { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.boutons .large { grid-column: 1 / -1; }
details.a-completer { padding: 0; }
details.a-completer summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
details.a-completer summary::-webkit-details-marker { display: none; }
details.a-completer .resume { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
details.a-completer .nom { font-weight: 600; overflow-wrap: anywhere; }
details.a-completer .lieu { font-size: 14px; color: var(--doux); }
details.a-completer .manque { white-space: normal; text-align: right; }
details.a-completer form { padding: 0 16px 16px; }
.grille-cp { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
.grille-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }

/* ─── Bascule tableau / liste ─── */
.bascule { display: inline-flex; flex-wrap: wrap; max-width: 100%; background: var(--prune-clair); border-radius: 10px; padding: 3px; }
.bascule button { border: 0; background: none; padding: 8px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--prune); }
.bascule button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 4px rgba(109,46,70,.15); }

/* ─── Kanban ─── */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(215px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; scroll-snap-type: x proximity; }
.colonne-kanban { background: #F6EFE6; border: 2px solid transparent; border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 230px); min-height: 160px; scroll-snap-align: start; transition: border-color .12s, background .12s; }
.colonne-kanban.gagnee { background: var(--vert-clair); }
.colonne-kanban.survol { border-color: var(--prune); background: #EFE3D6; }
.colonne-kanban.refus { border-color: var(--rouge); }
.colonne-titre { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; font-weight: 600; font-size: 14.5px; }
.colonne-titre b { font-size: 12.5px; background: #fff; color: var(--doux); border-radius: 999px; padding: 2px 9px; }
.colonne-cartes { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding: 2px; }
.colonne-vide { margin: 8px 0; text-align: center; color: var(--doux); font-size: 13px; }
.carte-kanban { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--bord); border-radius: 12px; padding: 11px 12px; text-decoration: none; color: inherit; cursor: grab; box-shadow: 0 1px 2px rgba(42,31,45,.05); }
@media (hover: hover) { .carte-kanban:hover { border-color: var(--rose); box-shadow: 0 3px 10px rgba(109,46,70,.1); } }
.carte-kanban.en-main { opacity: .45; }
.carte-kanban .titre { font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.carte-kanban .sous { font-size: 13px; color: var(--doux); }
.carte-kanban .badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.carte-kanban .etiquette { font-size: 11.5px; white-space: normal; }
@media (max-width: 760px) { .kanban { grid-auto-columns: 82vw; } .colonne-kanban { max-height: none; } }

/* ─── Fenêtre de confirmation ─── */
.fenetre { border: 0; border-radius: 18px; padding: 22px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(30,10,20,.35); }
.fenetre::backdrop { background: rgba(42,31,45,.45); }
.fenetre-boutons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
@media (max-width: 520px) { #corriger-email { flex: 1 1 100%; } }

/* ─── Tableau de bord ─── */
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tuile { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.tuile-label { font-size: 13.5px; color: var(--doux); }
.tuile-valeur { font-size: 34px; font-weight: 600; line-height: 1.1; }
.tuile.heros .tuile-valeur { font-size: 52px; color: var(--prune); }
.tuile-delta { font-size: 12.5px; color: var(--doux); }
.jauge { height: 8px; border-radius: 999px; background: var(--prune-clair); overflow: hidden; }
.jauge span { display: block; height: 100%; border-radius: 999px; background: var(--prune); }
.anneaux { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.anneau { margin: 0; background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 18px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.anneau-corps { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.anneau svg { width: 160px; height: 160px; flex: none; }
.anneau .segment[data-filtre] { cursor: pointer; }
.anneau .segment:not([data-filtre]) { cursor: default; }   /* « Région inconnue », « Autres régions » : rien à ouvrir */
.anneau .segment { transition: stroke-width .12s; }
.anneau .segment.actif, .anneau .segment:hover { stroke-width: 26; }
.anneau-total { font-size: 30px; font-weight: 600; fill: var(--texte); }
.anneau-unite { font-size: 12px; fill: var(--doux); }
.legende { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.legende li { display: grid; grid-template-columns: 12px 1fr auto 44px; gap: 8px; align-items: center; }
.legende b { font-variant-numeric: tabular-nums; }
.legende li > span:last-child { text-align: right; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pastille-couleur { width: 12px; height: 12px; border-radius: 3px; background: var(--doux); }
.bulle { position: absolute; top: 14px; right: 14px; margin: 0; background: var(--texte); color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 8px; }
.deux-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; align-items: start; }
.historique .point.point-vert { background: var(--vert); }
.historique .point.point-or { background: #B08A2E; }
.lien-discret { color: inherit; text-decoration: none; }
@media (hover: hover) { .lien-discret:hover { text-decoration: underline; } }
.classement { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.classement li { display: grid; grid-template-columns: 38px 1fr 34px; gap: 10px; align-items: center; }
.petit-avatar { width: 34px; height: 34px; font-size: 11.5px; background: var(--prune-clair); }
.barre-fond { height: 10px; border-radius: 999px; background: var(--prune-clair); overflow: hidden; }
.barre-plein { display: block; height: 100%; border-radius: 999px; background: var(--prune); }
.classement b { text-align: right; font-variant-numeric: tabular-nums; }

/* ─── Carte « Société » modifiable ─── */
.carte-entete { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.carte-entete h2 { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .carte.prospect .carte-entete { flex-wrap: wrap; justify-content: flex-start; } .carte.prospect .carte-entete h2 { flex-basis: 100%; } }
.petit-btn { padding: 8px 14px; font-size: 14px; }
.aide { font-size: 12.5px; color: var(--doux); }
.formulaire select { appearance: auto; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--prune); outline-offset: 2px; }
::selection { background: var(--rose); color: var(--texte); }

/* ─── Tableau de bord, version 2 : moins de cadres, un chiffre vedette ─── */
.panneau { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 22px 24px; }
.encouragement { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; padding: 0; background: none; color: var(--prune); font-weight: 500; }
.encouragement svg { width: 16px; height: 16px; flex: none; color: #B08A2E; }
.ventes { display: grid; grid-template-columns: minmax(230px, 300px) 1fr; gap: 32px; align-items: stretch; }
.ventes h2 { margin-bottom: 14px; }
.ventes-chiffres { display: flex; flex-direction: column; gap: 6px; }
.vedette { margin: 0; display: flex; flex-direction: column; gap: 0; }
.vedette-valeur { font-size: 46px; font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; color: var(--prune); }
.vedette-label { font-size: 14px; color: var(--doux); }
.delta { font-size: 13px; color: var(--doux); }
.delta.hausse { color: var(--vert); font-weight: 600; }
.delta.baisse { color: var(--rouge); font-weight: 600; }
.liste-chiffres { margin: 16px 0 0; display: flex; flex-direction: column; }
.liste-chiffres div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--bord); }
.liste-chiffres dt { color: var(--doux); font-size: 14px; }
.liste-chiffres dd { margin: 0; font-weight: 600; font-size: 17px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.liste-chiffres small { font-weight: 400; font-size: 12px; color: var(--doux); }
.source { margin: auto 0 0; padding-top: 10px; font-size: 12px; color: var(--doux); }
.ventes-graphique { min-width: 0; display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--bord); padding-left: 28px; }
.ventes-graphique h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--doux); }
.histo { position: relative; width: 100%; }
.histo svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.histo .grille { stroke: var(--bord); stroke-width: 1; }
.histo .axe { font-size: 12px; fill: var(--doux); font-variant-numeric: tabular-nums; }
.histo .axe-courant { fill: var(--prune); font-weight: 600; }
.histo .valeur { font-size: 13px; font-weight: 600; fill: var(--prune); }
.histo .zone { fill: transparent; }
.histo .histo-barre { fill: #E2D0BE; transition: fill .12s; }
.histo .barre-mois.courant .histo-barre { fill: var(--prune); }
.histo .barre-mois.actif .histo-barre, .histo .barre-mois:hover .histo-barre { fill: #8A5A3A; }
.histo .bulle { top: -6px; right: 0; }
.bande { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; }
.bande-item { padding: 18px 22px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bande-item + .bande-item { border-left: 1px solid var(--bord); }
.bande-valeur { font-size: 30px; font-weight: 600; line-height: 1.1; }
.bande-valeur small { font-size: 15px; font-weight: 500; color: var(--doux); margin-left: 4px; }
.bande-label { font-size: 14px; color: var(--texte); }
.bande .jauge { margin-top: 6px; }
@media (max-width: 980px) {
  .ventes { grid-template-columns: 1fr; gap: 20px; }
  .ventes-graphique { border-left: 0; padding-left: 0; border-top: 1px solid var(--bord); padding-top: 16px; }
  .bande { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bande-item:nth-child(3) { border-left: 0; }
  .bande-item:nth-child(n+3) { border-top: 1px solid var(--bord); }
}
@media (max-width: 480px) {
  .panneau { padding: 18px; }
  .bande-item { padding: 14px 16px; }
  .vedette-valeur { font-size: 40px; }
}

/* ─── Ma journée : plan d'attaque (maquette docs/maquettes/journee.png) ─── */
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grille-haut { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .grille-haut { grid-template-columns: 1fr; } }
.compteur-jour { display: flex; align-items: center; gap: 20px; }
.anneau-jour { width: 96px; height: 96px; flex: none; }
.gros-chiffre { font-family: 'Fredoka', 'Nunito', system-ui, sans-serif; font-size: 28px; line-height: 1.1; margin-bottom: 4px; }
.compteur-jour .puces { margin-top: 10px; flex-wrap: wrap; }
.coup { background: linear-gradient(135deg, #fff 0%, var(--survol) 100%); border: 1.5px solid var(--prune); border-radius: var(--rayon); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.coup-marqueur { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--prune); font-weight: 700; }
.coup-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.coup-nom { font-size: 19px; font-weight: 700; color: var(--texte); text-decoration: none; }
@media (hover: hover) { .coup-nom:hover { text-decoration: underline; } }
.coup-raison { font-size: 14px; }
.coup-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.note { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 12.5px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.note b { font-size: 14px; }
.note.n1 { background: #F6E3EA; color: var(--prune-fonce); }
.note.n2 { background: var(--or-clair); color: var(--or); }
.note.n3 { background: #EEEAEC; color: var(--doux); }
.parcours { display: flex; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.parcours i { width: 9px; height: 9px; border-radius: 50%; background: #E6DACB; display: block; flex: none; }
.parcours i.ok { background: var(--vert); }
.parcours i.ici { background: #fff; border: 2.5px solid var(--prune); width: 11px; height: 11px; }
.parcours u { display: block; width: 14px; height: 2px; background: #E6DACB; text-decoration: none; flex: none; }
.parcours u.ok { background: var(--vert); }
.parcours em { font-style: normal; font-size: 12.5px; color: var(--prune); font-weight: 600; margin-left: 9px; }
.mission { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; }
.mission-tete { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--bord); background: var(--champ); }
.mission-tete h2 { font-size: 18px; flex: 1; }
.mission-num { min-width: 26px; height: 26px; border-radius: 8px; background: var(--prune); color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.mission-compte { font-size: 13px; color: var(--doux); }
/* Sections pliables : pliée, seule la barre (numéro, titre, compteur, commentaire) reste visible */
.mission-plier { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 26px; cursor: pointer; font: inherit; color: inherit; }
.mission-plier::after { content: ""; flex: none; width: 7px; height: 7px; margin: -4px 4px 0 auto; border-right: 2px solid var(--doux); border-bottom: 2px solid var(--doux); transform: rotate(45deg); transition: transform .18s ease, margin .18s ease; }
.mission.plie .mission-plier::after { transform: rotate(-45deg); margin-top: 0; }
.mission-plier:focus-visible { outline: 2px solid var(--prune); outline-offset: 3px; border-radius: 4px; }
.mission.plie > :not(.mission-tete) { display: none; }
.mission.plie .mission-tete { border-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .mission-plier::after { transition: none; } }
.rang { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--bord); }
.rang:last-child { border-bottom: 0; }
.case { width: 24px; height: 24px; border: 2px solid #D8CBD1; border-radius: 7px; background: #fff; cursor: pointer; padding: 0; }
.case:hover, .case:focus-visible { border-color: var(--vert); background: var(--vert-clair); }
.case:disabled { background: var(--vert); border-color: var(--vert); cursor: default; }
.rang-corps { min-width: 0; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 2px; }
.rang-titre { font-weight: 600; }
.rang-titre .lieu { font-weight: 400; color: var(--doux); }
.rang-titre .lieu:not(:empty) { margin-left: .45em; }
@media (hover: hover) { .rang-corps:hover .rang-titre { text-decoration: underline; } }
.rang-sous { font-size: 13.5px; color: var(--doux); }
.rang-fin { display: flex; align-items: center; gap: 8px; }
.rang-suite { padding: 12px 18px; }
.rang-suite a { font-weight: 600; text-decoration: none; }
.heure { display: inline-block; font-weight: 700; font-size: 12.5px; padding: 3px 8px; border-radius: 8px; background: var(--prune-clair); color: var(--prune); margin-right: 8px; }
.heure.retard { background: var(--rouge-clair); color: var(--rouge); }
.canaux { display: inline-flex; gap: 4px; }
.canal { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--bord); display: inline-flex; align-items: center; justify-content: center; color: var(--prune); }
.canal.absent { color: #CFC5CA; border-style: dashed; }
a.canal, button.canal { background: #fff; padding: 0; cursor: pointer; text-decoration: none; font: inherit; }
@media (hover: hover) { a.canal:hover, button.canal:hover { background: var(--prune-clair); } }
a.canal:focus-visible, button.canal:focus-visible { outline: 2px solid var(--prune); outline-offset: 2px; }
.canal svg { width: 15px; height: 15px; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.mini { padding: 8px 13px; font-size: 14px; border-radius: 9px; }
.btn.vert { background: var(--vert); }
@media (hover: hover) { .btn.vert:hover { background: var(--vert-fonce); } }
.btn.blanc { background: #fff; color: var(--prune-fonce); }
.btn.clair2 { background: rgba(255,255,255,.16); color: #fff; }
/* Occasions manquées : pas de numéro devant, le texte prend toute la largeur, les boutons à droite */
.rang.occasion { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.rang.occasion .rang-titre { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.rang.occasion .rang-sous { line-height: 1.45; }
.rang.occasion .rang-fin { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) {
  .rang { grid-template-columns: 26px minmax(0, 1fr); }
  .rang-fin { grid-column: 2; }
  .rang.occasion { grid-template-columns: minmax(0, 1fr); }
  .rang.occasion .rang-fin { grid-column: 1; justify-content: flex-start; }
  .canaux { display: none; }
}
/* Alerte 10 minutes avant un rappel */
.alerte-rappel { display: flex; align-items: center; gap: 14px; background: var(--prune); color: #fff; border-radius: var(--rayon); padding: 12px 16px; box-shadow: 0 8px 22px rgba(109,46,70,.25); flex-wrap: wrap; }
.alerte-cloche { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; flex: none; }
.alerte-cloche svg { width: 22px; height: 22px; }
.alerte-texte { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.alerte-texte span { color: var(--rose); font-size: 14px; }
/* Fenêtre date + heure */
.raccourcis { display: flex; flex-wrap: wrap; gap: 6px; }
.raccourcis button, .creneaux button { font-size: 14px; padding: 7px 11px; border-radius: 10px; border: 1px solid var(--bord); background: #fff; cursor: pointer; }
.raccourcis button[aria-pressed="true"], .creneaux button[aria-pressed="true"] { background: var(--prune); color: #fff; border-color: var(--prune); }
.creneaux { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.creneaux button { padding: 6px 0; background: #F4EEF1; border-color: transparent; }
.creneaux button.pris { background: #fff; color: #B9ADB3; border: 1px dashed var(--bord); text-decoration: line-through; cursor: not-allowed; }
.deux-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .deux-champs { grid-template-columns: 1fr; } .creneaux { grid-template-columns: repeat(3, 1fr); } }
/* Fiche : parcours de vente */
.pourquoi { margin-bottom: 10px; }
.etapes-parcours { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.etapes-parcours li { display: flex; align-items: center; gap: 10px; color: var(--doux); }
.etapes-parcours .puce-etape { width: 24px; height: 24px; border-radius: 50%; background: #F1EAEE; color: var(--doux); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.etapes-parcours .puce-etape svg { width: 13px; height: 13px; }
.etapes-parcours li.fait { color: var(--texte); }
.etapes-parcours li.fait .puce-etape { background: var(--vert); color: #fff; }
.etapes-parcours li.ici { color: var(--prune); font-weight: 600; }
.rond-etape { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 2px 6px 2px 0; margin: 0; font: inherit; color: inherit; cursor: pointer; border-radius: 999px; }
@media (hover: hover) { .rond-etape:hover { text-decoration: underline; } }
.etapes-parcours li.ici .puce-etape { background: #fff; border: 2px solid var(--prune); color: var(--prune); }
@media (hover: hover) { .etapes-parcours .rond-etape:hover .puce-etape { background: var(--prune-clair); } }
/* Communication */
.filtres { display: flex; gap: 8px; flex-wrap: wrap; }
.filtre { font-size: 14px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--bord); background: #fff; cursor: pointer; }
.filtre[aria-pressed="true"] { background: var(--prune); color: #fff; border-color: var(--prune); }
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.doc { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column; }
.doc-vignette { height: 110px; display: flex; align-items: flex-end; justify-content: space-between; padding: 10px 12px; color: #fff; position: relative; background: linear-gradient(140deg, var(--prune-fonce) 0%, var(--prune) 100%); }
.doc-vignette[data-cat="Plaquette"] { background: linear-gradient(140deg, var(--prune) 0%, #A2567A 100%); }
.doc-vignette[data-cat="Catalogue"] { background: linear-gradient(140deg, var(--vert) 0%, #5FA399 100%); }
.doc-vignette[data-cat="Prix pro"] { background: linear-gradient(140deg, var(--or) 0%, #C9952B 100%); }
.doc-page { position: absolute; top: 12px; left: 14px; width: 44px; height: 56px; background: rgba(255,255,255,.92); border-radius: 4px; box-shadow: 6px 6px 0 rgba(255,255,255,.35); }
.doc-type { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; background: rgba(255,255,255,.18); padding: 3px 8px; border-radius: 6px; }
.doc-format { font-size: 12px; font-weight: 700; }
.doc-corps { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.doc-corps .etiquette { width: fit-content; }
.doc-stat { font-size: 13px; color: var(--doux); }
.doc-stat b { color: var(--texte); }
/* Voir et Envoyer côte à côte, à parts égales ; Supprimer en lien discret dessous (jamais coupé, jamais à côté de l'action principale) */
.doc-actions { padding: 0 14px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.doc-actions .btn { min-width: 0; padding-inline: 10px; white-space: nowrap; }
.doc-retirer { grid-column: 1 / -1; justify-self: center; background: none; border: 0; padding: 4px 8px; border-radius: 6px;
  color: var(--doux); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.doc-retirer:hover, .doc-retirer:focus-visible { color: var(--rouge); background: var(--rouge-clair); }
.envoi { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) auto; gap: 14px; padding: 11px 18px; border-bottom: 1px solid var(--bord); text-decoration: none; color: inherit; font-size: 14.5px; }
.envoi:last-child { border-bottom: 0; }
@media (hover: hover) { .envoi:hover strong { text-decoration: underline; } }
.choix-pistes { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; }
.choix-piste { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--bord); border-radius: 10px; background: #fff; cursor: pointer; }
.choix-piste:hover, .choix-piste:focus-visible { border-color: var(--prune); background: var(--survol); }
.choix-piste span { font-size: 13px; color: var(--doux); }
@media (max-width: 760px) {
  .mission-tete { flex-wrap: wrap; row-gap: 4px; }
  .mission-tete h2 { flex: 1 1 70%; }
  .mission-compte { flex-basis: 100%; padding-left: 38px; }
  .mission-tete:not(:has(.mission-num)) .mission-compte { padding-left: 0; }
  .anneau-jour { width: 76px; height: 76px; }
  .gros-chiffre { font-size: 22px; }
}
/* Clients */
.segments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 980px) { .segments { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.segment { --teinte: var(--vert); display: flex; flex-direction: column; gap: 4px; text-align: left; background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 14px 16px; cursor: pointer; }
/* La couleur du groupe : une pastille devant son nom (plus de barre épaisse sur le côté). */
.segment > .discret:first-child { display: inline-flex; align-items: center; gap: 7px; }
.segment > .discret:first-child::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--teinte); flex: none; }
.segment.prune { --teinte: var(--prune); }
.segment.or { --teinte: #C9952B; }
.segment.rouge { --teinte: var(--rouge); }
.segment[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--prune) inset; }
.promo-corps { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.champ-groupe { display: flex; flex-direction: column; gap: 6px; }
.ligne-client { display: grid; grid-template-columns: 30px minmax(0, 1.6fr) minmax(0, 1fr) 90px minmax(0, 1fr) 100px 120px; gap: 12px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--bord); font-size: 14.5px; }
.ligne-client:last-child { border-bottom: 0; }
.ligne-client.top { grid-template-columns: 30px minmax(0, 1.6fr) 90px 110px minmax(0, 1.4fr) 150px; }
.lc-nom { min-width: 0; }
.lc-nom strong { overflow: hidden; text-overflow: ellipsis; }
.lc-conseil { display: block; font-size: 13px; color: #5A430E; background: var(--or-clair); border-radius: 8px; padding: 4px 8px; margin-top: 4px; width: fit-content; }
.rang-num { width: 28px; height: 28px; border-radius: 50%; background: var(--prune-clair); color: var(--prune); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.rang-num.or { background: #F3DFA6; color: #6B4E08; }
.choisir { width: 20px; height: 20px; accent-color: var(--prune); }
@media (max-width: 900px) {
  .ligne-client, .ligne-client.top { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .ligne-client > :nth-child(n+4) { grid-column: 2 / -1; }
}

/* ─── Binôme (maquettes docs/maquettes/journee.png et binome.png) ─── */
.carte-binome, .binome-colonne { background: #fff; border: 1.5px solid var(--prune); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 8px 22px rgba(109,46,70,.10); }
.carte-binome { min-height: 220px; max-height: 340px; }
.bn-tete { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: linear-gradient(135deg, var(--prune) 0%, #8E4262 100%); color: #fff; }
.bn-avatar { width: 34px; height: 34px; border-radius: 11px; background: #fff; color: var(--prune); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; position: relative; flex: none; }
.bn-avatar::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: #5BD19B; border: 2px solid var(--prune); }
.bn-titre { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bn-titre small { color: var(--rose); font-size: 11.5px; }
.bn-rond { width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,.14); color: #fff; border: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 15px; }
@media (hover: hover) { .bn-rond:hover { background: rgba(255,255,255,.24); } }
.bn-rond svg { width: 16px; height: 16px; }
.bn-reglages { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid var(--bord); }
.bn-reglage { font-size: 12px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--bord); background: #fff; color: var(--doux); cursor: pointer; }
.bn-reglage[aria-pressed="true"] { background: var(--vert-clair); color: var(--vert); border-color: transparent; font-weight: 600; }
.bn-fil { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--fond); }
.bn-msg { font-size: 13.5px; line-height: 1.45; padding: 9px 11px; border-radius: 12px; max-width: 100%; }
.bn-msg.ia { background: #fff; border: 1px solid var(--bord); border-top-left-radius: 4px; }
.bn-msg.ia.erreur { color: var(--rouge); }
.bn-msg.moi { background: var(--prune); color: #fff; align-self: flex-end; max-width: 85%; border-top-right-radius: 4px; }
.bn-qui { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--prune); margin-bottom: 3px; }
.bn-avis { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: middle; }
.bn-avis button { border: 1px solid var(--bord); background: #fff; border-radius: 8px; padding: 4px 9px; min-width: 32px; min-height: 30px; cursor: pointer; font-size: 14px; }
@media (hover: hover) { .bn-avis button:hover { background: var(--prune-clair); } }
.bn-regle { margin-top: 6px; white-space: normal; text-align: left; }
.bn-reflechit { color: var(--doux); }
.bn-vide { margin: 0; font-size: 13.5px; color: var(--doux); }
.bn-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; border-top: 1px solid var(--bord); }
.bn-suggestions button { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; background: var(--prune-clair); color: var(--prune); border: 0; cursor: pointer; }
.bn-saisie { display: flex; gap: 8px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--bord); }
.bn-saisie input { flex: 1; min-width: 0; border: 1px solid var(--bord); border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.bn-micro { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--prune); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; cursor: pointer; box-shadow: 0 0 0 4px var(--prune-clair); }
.bn-micro svg { width: 18px; height: 18px; }
.bn-micro.actif { background: var(--rouge); box-shadow: 0 0 0 5px var(--rouge-clair); }
.bn-liste-regles { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.binome-colonne { position: fixed; top: 16px; right: 16px; bottom: 16px; width: 380px; z-index: 30; }
.binome-bulle { position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 18px; border: 0; background: var(--prune); color: #fff; font-weight: 700; cursor: pointer; z-index: 30; box-shadow: 0 10px 26px rgba(110,46,20,.35); }
body.binome-ouvert main { margin-right: 396px; }
@media (max-width: 1100px) { body.binome-ouvert main { margin-right: 0; } .binome-colonne { left: 16px; width: auto; } }
@media (max-width: 760px) { .binome-bulle { bottom: 84px; } .binome-colonne { top: 8px; right: 8px; left: 8px; bottom: 76px; } }
.bn-avis button.choisi { background: var(--prune-clair); border-color: var(--prune); } .bn-avis button:disabled { cursor: default; opacity: .7; }
/* Équipe */
.membres { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.membre { display: flex; flex-direction: column; gap: 12px; }
.membre-tete { display: flex; align-items: center; gap: 12px; }
.membre-tete .avatar { background: var(--prune-clair); }
.membre-chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 13.5px; color: var(--doux); }
.membre-chiffres b { color: var(--texte); font-size: 16px; }
.filtres-equipe { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 12px 18px; border-bottom: 1px solid var(--bord); }
.filtres-equipe label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--doux); }
.filtres-equipe select { border: 1px solid var(--bord); border-radius: 9px; padding: 7px 9px; background: #fff; }
.filtres-equipe .case-ligne { flex-direction: row; align-items: center; gap: 6px; padding-bottom: 7px; }
.ligne-equipe { display: grid; grid-template-columns: 22px minmax(0, 1.6fr) 170px minmax(0, 1fr) minmax(0, .8fr) 84px; gap: 12px; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--bord); font-size: 14.5px; }
.ligne-choix { display: contents; cursor: pointer; }   /* la case et le texte cochent ; le bouton « Confier » reste à part */
.ligne-equipe.tete { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--doux); background: var(--champ); cursor: default; }
.ligne-equipe input { width: 18px; height: 18px; accent-color: var(--prune); }
.choix-piste.ligne { flex-direction: row; align-items: center; gap: 10px; cursor: pointer; }
@media (max-width: 760px) { .ligne-equipe { grid-template-columns: 22px minmax(0, 1fr) auto auto; } .ligne-equipe > :nth-child(n+4):not(:last-child), .ligne-choix > :nth-child(n+4) { display: none; } }
main { padding-bottom: 96px; }   /* la bulle du binôme ne cache jamais le bas de la page */
.avis-equipe { background: var(--or-clair); color: var(--or); border: 1px solid #E9DDB8; border-radius: var(--rayon); padding: 12px 16px; margin-bottom: 16px; font-size: 14.5px; }
.avis-equipe strong { color: var(--texte); }
/* Rapports */
.actions-entete { display: flex; gap: 8px; flex-wrap: wrap; }
.filtres-periode { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filtres-periode .filtre { font: inherit; font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--bord); background: var(--carte); color: var(--texte); cursor: pointer; }
.filtres-periode .filtre.on { background: var(--prune); color: #fff; border-color: var(--prune); }
.rp-defile { overflow-x: auto; }
.rp-cmp { display: grid; grid-template-columns: minmax(200px, 2.2fr) repeat(6, minmax(70px, 1fr)) 130px; gap: 10px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--bord); font-size: 14.5px; min-width: 820px; }
.rp-cmp.rp-tete { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--doux); background: var(--champ); }
.rp-cmp.rp-choisi { background: var(--survol); }
.rp-qui { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rp-bon { color: var(--vert); font-weight: 700; } .rp-moyen { color: var(--or); font-weight: 700; } .rp-faible { color: var(--rouge); font-weight: 700; }
.lien-bouton { background: none; border: 0; padding: 0; font: inherit; color: var(--prune); font-weight: 600; cursor: pointer; text-align: left; }
.rp-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 12px; padding: 16px 18px; }
.rp-chiffre { border: 1px solid var(--bord); border-radius: 12px; padding: 12px 14px; }
.rp-chiffre b { display: block; font-size: 24px; font-family: 'Fredoka', 'Nunito', system-ui, sans-serif; font-weight: 400; }
.rp-chiffre span { font-size: 12.5px; color: var(--doux); }
.rp-deux { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; padding: 0 18px 16px; align-items: start; }
.rp-bloc { padding: 0; }
.rp-bloc h2 { font-size: 17px; }
.rp-entonnoir { display: flex; flex-direction: column; gap: 9px; padding: 16px 18px; }
.rp-marche { display: grid; grid-template-columns: 130px 1fr 40px; gap: 12px; align-items: center; font-size: 14px; }
.rp-barre { height: 20px; border-radius: 6px; background: var(--prune-clair); overflow: hidden; }
.rp-barre i { display: block; height: 100%; background: var(--prune); border-radius: 6px; }
.rp-qualite { padding: 6px 18px 14px; }
.rp-ql { display: grid; grid-template-columns: 1fr 70px 90px; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--bord); font-size: 14.5px; align-items: center; }
.rp-ql:last-child { border-bottom: 0; }
.rp-ql small { color: var(--doux); font-size: 12.5px; }
.rp-ia { display: flex; gap: 12px; padding: 16px 18px; background: var(--fond-doux); border-top: 1px solid var(--bord); border-radius: 0 0 var(--rayon) var(--rayon); }
.rp-ia .avatar { background: var(--prune); color: #fff; flex: none; }
.rp-ia p { margin: 0 0 8px; font-size: 14.5px; }
.rp-avis { white-space: pre-line; }
@media (max-width: 640px) { .rp-marche { grid-template-columns: 100px 1fr 32px; } .rp-ql { grid-template-columns: 1fr 56px; } .rp-ql > small:last-child { display: none; } }
/* Utilisateurs, mot de passe, catégories */
.titre-section { font-size: 18px; margin: 4px 0 12px; }
.categories-membre { display: flex; flex-wrap: wrap; gap: 6px; }
.etiquette.or { background: var(--or-clair); color: var(--or); }
.etiquette.vert { background: var(--vert-clair); color: var(--vert); }
.ligne-compte { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(140px, 1fr) minmax(160px, 1.4fr) 170px 150px; gap: 12px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--bord); font-size: 14.5px; min-width: 860px; }
.ligne-compte.rp-tete { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--doux); background: var(--champ); }
.actions-compte { display: flex; gap: 14px; justify-content: flex-end; }
.lien-bouton.danger, .lien-bouton.danger:hover { color: var(--rouge); }
.lien-bouton:disabled { opacity: .45; cursor: default; }
.btn.danger { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.deux-champs-form { display: grid; grid-template-columns: 1fr 120px; gap: 12px; }
.cases-categories { border: 1px solid var(--bord); border-radius: 12px; padding: 10px 14px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.cases-categories legend { font-size: 13.5px; color: var(--doux); padding: 0 6px; }
.mdp-provisoire { background: var(--fond); border: 1px solid var(--bord); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; }
.mdp-provisoire code { font-size: 20px; letter-spacing: .04em; color: var(--prune-fonce); user-select: all; overflow-wrap: anywhere; }
.mdp-boite { grid-template-columns: 1fr; max-width: 460px; }
.mdp-formulaire { padding: 28px; }
.mdp-panneau { max-width: 520px; }
.hors-categorie { opacity: .55; }
a.sortir { color: inherit; }
.formulaire label.case-ligne { flex-direction: row; align-items: center; gap: 8px; color: var(--texte); }
.formulaire label.case-ligne input { width: auto; margin: 0; }
.moi { gap: 6px; }
.moi-texte > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moi .sortir { width: 30px; height: 30px; }
.mission-vide { margin: 0; padding: 14px 18px; font-size: 14.5px; }
.case-vide { border-style: dashed; }

/* Lot 2 : dernier échange, décomptes, relances, question du binôme, préparation d'appel */
.etiquette.bleu { background: #E6EEF8; color: #285A8E; }
.dernier { display: block; font-size: 13px; color: var(--doux); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dernier.vieux { color: var(--rouge); }
.carte-kanban .dernier { font-size: 12px; margin-top: 4px; }
.question-bn { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: var(--fond-doux); border: 1px dashed var(--rose); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; }
.bn-preparation { display: flex; gap: 12px; align-items: flex-start; background: var(--fond-doux); border-radius: 12px; padding: 12px 14px; margin-top: 12px; }
.bn-preparation .bn-avatar { background: var(--prune); color: #fff; }
.bn-preparation p { margin: 0 0 6px; font-size: 14.5px; }

/* Livraison complète : complétion, fiche client, devis, prospects, lot d'emails, société */
.complete { position: relative; display: block; }
.suggestions { list-style: none; margin: 6px 0 0; padding: 4px; border: 1px solid var(--bord); border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgba(110,46,20,.12); max-height: 300px; overflow: auto; }
.suggestions button { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; background: none; border: 0; border-radius: 8px; padding: 8px 10px; font: inherit; cursor: pointer; }
.suggestions button:hover, .suggestions button:focus-visible { background: var(--prune-clair); }
.suggestions small { color: var(--doux); font-size: 12.5px; }
.puces-choisies { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.puce-choisie { display: inline-flex; align-items: center; gap: 6px; background: var(--prune); color: #fff; border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 13.5px; }
.puce-choisie button { background: rgba(255,255,255,.2); color: #fff; border: 0; border-radius: 50%; width: 20px; height: 20px; line-height: 1; cursor: pointer; padding: 0; }
.familles { margin-top: 8px; }
.familles summary { cursor: pointer; color: var(--prune); font-weight: 600; font-size: 14px; }
.famille { margin: 10px 0 0; }
.famille > b { display: block; font-size: 13px; color: var(--doux); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.fenetre.large { max-width: 760px; width: calc(100% - 32px); }
.fenetre.moyenne { width: min(600px, calc(100vw - 32px)); }
.lignes-devis { border: 1px solid var(--bord); border-radius: 10px; padding: 6px 12px; }
.ligne-devis { display: grid; grid-template-columns: minmax(0, 1fr) 70px 90px auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--bord); }
.ligne-devis input { width: 70px; }
.total-devis { text-align: right; margin: 8px 0 2px; }
.lien-client { color: inherit; text-decoration: none; }
@media (hover: hover) { .lien-client:hover strong { text-decoration: underline; color: var(--prune); } }
.table-simple { display: flex; flex-direction: column; }
.ligne-tableau { display: grid; grid-template-columns: minmax(0, 1.4fr) auto 110px minmax(0, .8fr); gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--bord); font-size: 14px; }
.segments.cinq { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ligne-devis-liste { display: grid; grid-template-columns: minmax(0, 1fr) 120px auto; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--bord); }
.actions-devis { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.reponse-client { margin: 6px 0 0; font-size: 13.5px; background: var(--fond-doux); border-radius: 8px; padding: 6px 10px; }
.reponse-client.oui { background: var(--vert-clair); color: var(--vert); }
.carte.prospect { margin-bottom: 14px; }
.rapport-prospect p { margin: 6px 0; }
.puces-texte { margin: 4px 0 8px; padding-left: 18px; }
.avis-prospect { background: var(--fond-doux); border-radius: 10px; padding: 10px 12px; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.ligne-prospect { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--bord); }
.lot-form { padding: 12px 18px 16px; }
.destinataires { display: flex; flex-direction: column; gap: 4px; max-height: 420px; overflow: auto; border: 1px solid var(--bord); border-radius: 10px; padding: 8px 12px; }
.lot-choix { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.lot-choix label { display: flex; flex-direction: column; gap: 4px; font-size: .9em; flex: 1 1 200px; min-width: 0; }
.lot-choix select { width: 100%; }
.sa-societe { border: 1px dashed var(--rose); border-radius: 10px; padding: 10px 12px; margin: 4px 0; display: flex; flex-direction: column; gap: 8px; }
.sa-societe legend { font-weight: 600; color: var(--prune); padding: 0 4px; }
.choix-societe { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--bord); }
.rp-ventes { margin: 0 18px 16px; padding: 0; }
.rp-mois { display: flex; gap: 8px; align-items: flex-end; padding: 8px 18px 16px; height: 150px; }
.rp-mois-barre { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; height: 100%; justify-content: flex-end; font-size: 11.5px; }
.rp-barre.verticale { width: 70%; flex: 1; display: flex; align-items: flex-end; background: var(--prune-clair); border-radius: 6px; overflow: hidden; }
.rp-barre.verticale i { display: block; width: 100%; background: var(--prune); border-radius: 6px; }
@media (max-width: 760px) {
  .segments.cinq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ligne-devis-liste, .ligne-prospect, .ligne-tableau { grid-template-columns: minmax(0, 1fr); }
  .actions-devis { justify-content: flex-start; }
  .ligne-devis { grid-template-columns: minmax(0, 1fr) 70px; }
}

/* Revue du 5 novembre : type de client, pièce jointe et correction, devis enrichi, barre « Confier » */
.genre { border: 1px solid var(--bord); border-radius: 10px; padding: 8px 12px; margin: 4px 0; display: flex; flex-direction: column; gap: 6px; }
.genre legend { font-weight: 600; color: var(--prune); padding: 0 4px; }
.correction { background: var(--fond-doux); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.correction pre { margin: 0; white-space: pre-wrap; font: inherit; font-size: 14px; }
.ligne-devis-riche { border: 1px solid var(--bord); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 8px; }
.ld-tete { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.ld-tete .lien-bouton { margin-left: auto; }
.ld-champs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ld-champs.deux { grid-template-columns: 1fr 2fr; }
.ld-champs label { font-size: 13px; }
@media (max-width: 720px) { .ld-champs, .ld-champs.deux { grid-template-columns: 1fr 1fr; } }

.barre-confier { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between;
  background: var(--fond-doux); border-bottom: 1px solid var(--bord); padding: 8px 18px; }
.barre-confier .fenetre-boutons { margin: 0; }

.client-choisi { margin: 4px 0 8px; padding: 8px 12px; border-radius: 10px; background: var(--vert-clair); }

/* Ma journée : barre de recherche et « Retrouvés » */
.recherche-journee { margin: 0 0 16px; }
.recherche-journee .champ-recherche { width: 100%; }
.recherche-journee .suggestions { position: absolute; left: 0; right: 0; z-index: 15; }
.recherche-journee .suggestions li.discret { padding: 8px 10px; }
.retrouves { border-color: var(--prune); }
.retrouve { border-bottom: 1px solid var(--bord); }
.retrouve:last-child { border-bottom: 0; }
.retrouve .rang { border-bottom: 0; }
.retrouve-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 18px 12px 58px; }
@media (max-width: 600px) { .retrouve-actions { padding-left: 18px; } }
.recherche-liste { padding: 12px 18px; border-bottom: 1px solid var(--bord); }
.recherche-liste .champ-recherche { width: 100%; }
.filtres-equipe .filtre-texte { flex: 1 1 220px; }
.filtres-equipe .filtre-texte input { border: 1px solid var(--bord); border-radius: 9px; padding: 7px 9px; background: #fff; font: inherit; color: var(--texte); }
@media (max-width: 600px) { .retrouves .mission-compte { display: none; } .retrouves .mission-tete { justify-content: space-between; } }

.representant { border: 1px dashed var(--bord); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.representant legend { font-weight: 600; color: var(--prune); padding: 0 6px; }

.maj { margin-top: 2px; font-size: 12.5px; }

/* Tableau de prospection (Prospects) */
.ligne-prospect .suivi-categorie { grid-column: 1 / -1; color: var(--doux); margin-top: -6px; }
.suivi-categorie .lien-bouton { margin-left: 8px; }
.ratios { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding: 0 18px 16px; }
.ratios p { margin: 0; display: flex; flex-direction: column; background: var(--prune-clair); border-radius: 10px; padding: 10px 12px; }
.ratios b { font-size: 22px; color: var(--prune); }
.ratios span { font-size: 13px; color: var(--doux); }
.courbe-prospection { margin: 0; padding: 12px 18px 16px; color: var(--prune); }
.courbe-prospection svg { width: 100%; height: 140px; display: block; background: var(--prune-clair); border-radius: 10px; }
.courbe-prospection figcaption { display: flex; justify-content: space-between; margin-top: 6px; }
.bascule.petite button { padding: 5px 10px; font-size: 13px; }
.filtre-actif { padding: 0 18px; }
.grille-prospection { padding: 0 18px 16px; overflow-x: auto; }
.gp-ligne { display: grid; grid-template-columns: minmax(150px, 2fr) repeat(7, minmax(84px, 1fr)); gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--bord); font-size: 14px; min-width: 794px; }
.gp-ligne span:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.gp-tete { font-weight: 600; color: var(--doux); font-size: 12.5px; }
.gp-tete span { overflow-wrap: anywhere; }
.mission > .filtre-texte { padding: 12px 18px 8px; }
.mission > .filtre-texte input { width: 100%; border: 1px solid var(--bord); border-radius: 9px; padding: 9px 11px; background: #fff; font: inherit; color: var(--texte); }
.liste-simple { list-style: none; margin: 0; padding: 12px 18px 14px; display: flex; flex-direction: column; gap: 6px; }

/* Langue du portail */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.connexion-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.choix-langue select { font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid var(--bord); border-radius: 8px; background: #fff; color: var(--texte, var(--texte)); max-width: 140px; }
.moi-actions .choix-langue select { height: 34px; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; padding: 0 6px; background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); border-radius: 10px; cursor: pointer; }
.moi-actions .choix-langue option { color: var(--texte); }
.choix-langue.court select { max-width: 72px; }
.mobile-entete .choix-langue { margin-left: auto; margin-right: 8px; }

/* Plan d'attaque du binôme (Préparer l'appel) */
.plan-binome { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.plan-binome p, .plan-binome ul { margin: 0; }
.plan-binome ul { padding-left: 18px; }
.alerte-plan { background: var(--or-clair); color: var(--or); border-radius: 10px; padding: 8px 12px; }
.texte-propose { background: var(--prune-clair); border-radius: 10px; padding: 8px 12px; white-space: pre-wrap; }

/* Éditeur d'emails (lot, modèles, signatures) : une barre d'outils sobre, la zone de texte, l'aperçu de l'email tel qu'il part */
.editeur { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.editeur-libelle { font-size: 14px; color: var(--doux); }
.editeur-cadre { border: 1px solid var(--bord); border-radius: 10px; background: #fff; overflow: hidden; }
.editeur-cadre:focus-within { border-color: var(--prune); box-shadow: 0 0 0 3px var(--prune-clair); }
.editeur-outils { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-bottom: 1px solid var(--bord); background: var(--champ); }
.outil { border: 1px solid transparent; background: transparent; border-radius: 7px; padding: 5px 9px; font-size: 13.5px; color: var(--texte); cursor: pointer; }
@media (hover: hover) { .outil:hover { background: var(--prune-clair); color: var(--prune); } }
.outil:disabled { opacity: .5; cursor: progress; }
.outil[data-outil="bold"] { font-weight: 700; }
.outil[data-outil="italic"] { font-style: italic; }
.outil[data-outil="underline"] { text-decoration: underline; text-underline-offset: 3px; }
.editeur-zone { min-height: 150px; max-height: 420px; overflow-y: auto; padding: 12px 14px; font-size: 15px; line-height: 1.55; caret-color: var(--prune); outline: none; }
#sig-moi, #sig-lot { min-height: 90px; }
.email-contenu > :first-child { margin-top: 0; }
.email-contenu p, .email-contenu ul, .email-contenu ol, .email-contenu blockquote { margin: 0 0 12px; }
.email-contenu ul, .email-contenu ol { padding-left: 22px; }
.email-contenu h2, .email-contenu h3 { font-family: Georgia, 'DM Serif Display', serif; color: var(--prune); font-size: 19px; margin: 0 0 10px; }
.email-contenu h3 { font-size: 16px; }
.email-contenu blockquote { padding-left: 12px; border-left: 1px solid var(--rose); }
.email-contenu a { color: var(--prune); font-weight: 600; text-underline-offset: 2px; }
.email-contenu img { max-width: 100%; height: auto; vertical-align: middle; }
.apercu { display: flex; flex-direction: column; gap: 8px; }
.apercu-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pastilles { display: inline-flex; flex-wrap: wrap; max-width: 100%; border: 1px solid var(--bord); border-radius: 999px; padding: 2px; background: #fff; }
.pastilles button { border: 0; background: transparent; border-radius: 999px; padding: 5px 12px; font-size: 13.5px; cursor: pointer; color: var(--doux); }
.pastilles button[aria-pressed="true"] { background: var(--prune); color: #fff; }
.apercu-email { background: var(--prune-clair); border-radius: 12px; padding: 16px; transition: padding .25s cubic-bezier(.16, 1, .3, 1); }
/* Version 18 : l'email ressemble à un email écrit à la main (comme celui de Laetitia) : une feuille blanche, sans bandeau. */
.apercu-lettre { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid #ECE4E8; border-radius: 10px; padding: 22px 24px 16px;
  font-family: Arial, Helvetica, sans-serif; transition: max-width .25s cubic-bezier(.16, 1, .3, 1); }
.apercu-email[data-format="telephone"] .apercu-lettre { max-width: 360px; padding: 16px 14px 12px; }
.apercu-corps { color: #222; font-size: 15px; line-height: 1.55; }
.apercu-plaquette { color: #1155CC; text-decoration: underline; text-underline-offset: 2px; margin: 0 0 10px; }
.apercu-encadre { border-left: 3px solid #8E3FA6; padding: 2px 0 2px 14px; font-size: 14px; line-height: 1.6; color: #333; margin: 18px 0 20px; }
.apercu-encadre p { margin: 0; }
.apercu-pied { color: #8A8A8A; font-size: 11px; line-height: 1.5; margin-top: 28px; }
.lot-boutons { align-items: center; }
/* Version 18 : texte par type de salon, propositions du régisseur, modèles par type */
.lot-texte-pour { max-width: 420px; }
.propositions-lot { display: flex; flex-direction: column; gap: 10px; }
.proposition { border: 1px solid var(--rose); border-radius: 10px; padding: 12px 14px; background: var(--prune-clair);
  display: flex; flex-direction: column; gap: 6px; }
.proposition-boutons { display: flex; flex-wrap: wrap; gap: 6px; }
.modele-choix { align-items: end; }
.voir-texte { margin: 4px 0 8px; }
.reglages-emails { display: flex; flex-direction: column; gap: 22px; padding: 16px 18px 18px; }
.reglages-emails h3 { font-size: 16px; margin: 0 0 8px; color: var(--texte); }
.ligne-modele { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bord); }
.ligne-modele small { display: block; margin-top: 2px; }
.ligne-modele-actions { display: flex; gap: 6px; flex: none; }
@media (max-width: 600px) {
  .apercu-email { padding: 8px; }
  .ligne-modele { flex-wrap: wrap; }
  .lot-boutons .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .apercu-email, .apercu-email > div { transition: none; } }

/* Réglages mail : l'écrou, sa fenêtre */
.btn-icone { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--bord);
  background: #fff; color: var(--doux); cursor: pointer; }
@media (hover: hover) { .btn-icone:hover { color: var(--prune); border-color: var(--rose); background: var(--prune-clair); } }
.btn-icone svg { width: 19px; height: 19px; }
.btn svg { width: 18px; height: 18px; vertical-align: -4px; }
.reglages-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reglages-tete h2 { display: flex; align-items: center; gap: 8px; }
.reglages-tete h2 svg { width: 22px; height: 22px; color: var(--prune); }
.reglages-mail { display: flex; flex-direction: column; gap: 0; }
.reglage { padding: 18px 0; border-top: 1px solid var(--bord); display: flex; flex-direction: column; gap: 10px; }
.reglage:first-child { border-top: 0; padding-top: 6px; }
.reglage h3 { margin: 0; font-size: 16px; color: var(--texte); }
.liste-adresses { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.liste-adresses li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--bord); }
.ligne-formulaire { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.ligne-formulaire label { flex: 1 1 240px; }
.ligne-formulaire input[type="number"] { max-width: 120px; }

/* Réponses à lire (réponses au lot qui ne sont ni EN SAVOIR PLUS, ni une date, ni STOP) */
.reponses-lot { list-style: none; margin: 0; padding: 0; }
.reponse-lot { padding: 14px 18px; border-bottom: 1px solid var(--bord); display: flex; flex-direction: column; gap: 6px; }
.reponse-lot:last-child { border-bottom: 0; }
.reponse-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.reponse-texte { white-space: pre-line; background: var(--fond-doux); border-radius: 10px; padding: 10px 12px; font-size: 15px; max-width: 75ch; }
.reponse-actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* À relancer : le mot du binôme sous chaque salon */
.relance { border-bottom: 1px solid var(--bord); }
.relance > .rang { border-bottom: 0; }
.mot-binome { margin: 0 18px 14px 58px; padding: 10px 14px; background: var(--fond-doux); border-radius: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; max-width: 80ch; }
p.mot-binome { background: none; padding: 0 14px; }
.mot-binome-tete { display: flex; align-items: center; gap: 8px; color: var(--prune); }
.mot-binome-tete .bn-avatar { width: 22px; height: 22px; font-size: 10px; }
.mot-binome-fin { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.avis { display: inline-flex; gap: 4px; }
.btn-icone.mini { width: 30px; height: 30px; font-size: 14px; }
.btn-icone[aria-pressed="true"] { background: var(--prune-clair); border-color: var(--prune); }
.a-laisser { margin: 4px 18px 14px; font-size: 14px; }
.a-laisser summary { cursor: pointer; color: var(--doux); padding: 6px 0; }
.a-laisser ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.a-laisser small { display: block; }
@media (max-width: 600px) { .mot-binome { margin-left: 18px; } }

/* Pays de prospection */
.pays-liste { display: flex; flex-direction: column; }
.pays-ligne { display: grid; grid-template-columns: minmax(120px, 1fr) auto minmax(180px, 1.4fr) minmax(110px, .8fr) minmax(180px, 1.6fr) auto; gap: 12px; align-items: center;
  padding: 12px 18px; border-bottom: 1px solid var(--bord); }
.pays-ligne:last-child { border-bottom: 0; }
.pays-ligne label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--doux); min-width: 0; }
.pays-ligne label.case-ligne { flex-direction: row; align-items: center; gap: 6px; color: var(--texte); }
.pays-ligne select { padding: 7px 9px; border: 1px solid var(--bord); border-radius: 9px; background: #fff; width: 100%; }
.pays-categories { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; }
.pays-categories legend { color: var(--doux); padding: 0; margin-bottom: 2px; }
#f-part input { max-width: 110px; padding: 8px 10px; border: 1px solid var(--bord); border-radius: 9px; }
@media (max-width: 900px) {
  /* Téléphone et tablette : le pays et « Actif » sur une ligne, puis Lot et Langue côte à côte, puis les catégories. */
  .pays-ligne { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pays-ligne label.case-ligne { justify-self: end; }
  .pays-categories { grid-column: 1 / -1; }
  .pays-ligne > .btn { justify-self: start; }
}
/* Les onglets de Prospects : deux par ligne sur téléphone (quatre ne tiennent pas en largeur). */
@media (max-width: 600px) { .onglets-prospects { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } }
.pays-vue { margin: 4px 0 14px; }

/* Visites et rendez-vous */
.visites { list-style: none; margin: 0; padding: 0 18px 8px; }
.visite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--bord); }
.visite:last-child { border-bottom: 0; }
.visite small { display: block; }
.boite-ligne { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 8px 0; border-bottom: 1px solid var(--bord); }
.boite-ligne > strong { flex: 1 1 140px; }
.boite-ligne > label { flex: 1 1 200px; }
.boite-ligne label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--doux); min-width: 0; }
.boite-ligne input { padding: 8px 10px; border: 1px solid var(--bord); border-radius: 9px; background: #fff; width: 100%; }
.boite-ligne strong { align-self: center; }
.boite-ligne.eteinte strong, .boite-ligne.eteinte label { opacity: .55; }
.boite-ligne strong small { display: block; font-weight: 400; }
.etapes-n8n { background: var(--or-clair); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.etapes-n8n summary { cursor: pointer; color: var(--or); }
.etapes-n8n ol { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }

/* Réseaux sociaux : liens vers la page du salon (ouverts à la main) */
.liens-reseaux { display: flex; flex-wrap: wrap; gap: .75rem; }
.lien-reseau { font-weight: 600; display: inline-flex; align-items: center; min-height: 28px; }
.reseau-paire { display: inline-flex; align-items: center; gap: .4rem; }

/* Résultats par canal (tableau de bord) */
.resultats-canaux { margin-top: 18px; }
.table-defile { overflow-x: auto; }
.table-chiffres { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 420px; }
.table-chiffres th, .table-chiffres td { padding: 8px 10px; border-bottom: 1px solid var(--bord); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-chiffres th:first-child { text-align: left; }
.table-chiffres thead th { color: var(--doux); font-weight: 600; font-size: 12.5px; }
.table-chiffres tbody th { font-weight: 600; }
.petit-titre { font-size: 15px; margin: 16px 0 6px; }
/* Le tableau des canaux tient dans un téléphone : le détail du lot passe sous le chiffre. */
.table-canal { min-width: 0; }
.detail-canal { display: block; font-size: 12px; }
@media (max-width: 480px) { .table-chiffres th, .table-chiffres td { padding: 8px 6px; } .pastilles { border-radius: 14px; } }
.lot-aide { margin: 0 0 8px; }
/* Version 19 : pistes sans fiche (À compléter) */
.sans-fiche summary .lieu { white-space: normal; }
.liste-sans-fiche { display: grid; gap: 8px; padding: 4px 14px 14px; }
.ligne-sans-fiche { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 8px 0; border-top: 1px solid var(--bord); }
.ligne-sans-fiche > div:first-child { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.boutons-ligne { display: flex; flex-wrap: wrap; gap: 6px; }
/* Version 19 : pause de l'envoi et rappel de 11 h */
.pause-lot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 12px 18px 4px; padding: 10px 14px; border-radius: 10px;
  background: var(--or-clair); color: var(--texte); }
.pause-lot > svg, .rappel-lot > svg { flex: none; width: 20px; height: 20px; color: var(--or); }
.rappel-lot > svg { color: var(--prune); }
.pause-lot.discret-fond { background: transparent; border: 1px dashed var(--bord); padding: 6px 12px; }
.pause-lot p { flex: 1 1 260px; min-width: 0; }
.rappel-lot { display: flex; align-items: center; gap: 10px; margin: 12px 18px 4px; padding: 10px 14px; border-radius: 10px; background: var(--prune-clair); font-size: 14.5px; }

/* À compléter : « Ce soir » (recherche automatique de la nuit) et « À la main ». */
.onglets-completer { margin: 0 0 14px; }
.nuit-resume { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.chiffres-nuit { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--doux); }
.chiffres-nuit b { color: var(--texte); font-size: 17px; margin-right: 3px; }
.nuit-trouvailles { padding: 14px 0 0; }
.nuit-trouvailles h2 { padding: 0 18px; }
details.a-completer .nuit-aide { margin: 0; padding: 0 16px 10px; }
@media (max-width: 600px) { .onglets-completer { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } }
/* Sur téléphone, l'étiquette « Manque / Cherche » passe sous le nom (le nom garde toute la largeur). */
@media (max-width: 600px) {
  details.a-completer summary { flex-wrap: wrap; }
  details.a-completer .resume { flex-basis: 100%; }
  details.a-completer .manque { text-align: left; }
}
/* Fenêtres : agrandir en plein écran, ou tirer le coin en bas à droite */
.fenetre { resize: both; overflow: auto; max-width: 100vw; max-height: 100vh; min-width: min(320px, 100vw); }
.btn-agrandir { position: sticky; top: 0; float: right; z-index: 2; margin: -12px -10px 4px 8px; width: 36px; height: 36px; display: inline-flex;
  align-items: center; justify-content: center; border: 1px solid var(--bord); border-radius: 10px; background: #fff; color: var(--prune); cursor: pointer; }
.btn-agrandir:hover, .btn-agrandir[aria-pressed="true"] { background: var(--prune-clair); }
.btn-agrandir svg { width: 18px; height: 18px; }
.fenetre.plein-ecran { width: 100vw !important; height: 100vh !important; max-width: 100vw; max-height: 100vh; margin: 0; border-radius: 0; resize: none; }
.fenetre.plein-ecran .editeur-zone { max-height: none; min-height: 40vh; }
/* Éditeur : le code HTML */
.editeur-html { display: block; width: 100%; min-height: 220px; border: 0; padding: 12px 14px; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace;
  color: var(--texte); background: var(--champ); resize: vertical; outline: none; }
.outil[aria-pressed="true"] { background: var(--prune); color: #fff; }
.email-contenu table { border-collapse: collapse; }

/* Double vérification (8 novembre 2026) : étape du code, QR code à scanner, codes de secours. */
.connexion-boite.connexion-seule { max-width: 520px; grid-template-columns: 1fr; }
.connexion-seule form { display: flex; flex-direction: column; gap: 14px; }
.connexion-seule h2 { margin: 0; font-size: 20px; }
.connexion-seule p { margin: 0; }
.etapes-qr { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
canvas.qr { display: block; width: 216px; height: 216px; margin: 4px auto; image-rendering: pixelated; border-radius: 8px; border: 1px solid var(--bord); }
.qr-manuel summary { cursor: pointer; color: var(--prune); font-size: 14px; }
.cle-secrete { display: block; margin-top: 6px; padding: 10px 12px; background: var(--fond); border-radius: 8px; font-size: 15px; letter-spacing: .06em; word-break: break-all; }
.codes-secours { list-style: none; margin: 0; padding: 12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; background: var(--fond); border-radius: 10px; }
.codes-secours code { font-size: 16px; letter-spacing: .08em; }
.fenetre-boutons.gauche { justify-content: flex-start; }
@media (max-width: 600px) { .connexion-formulaire { padding: 28px 20px; } .codes-secours { grid-template-columns: 1fr 1fr; } }
@media print {
  body * { visibility: hidden; }
  .etape-secours, .etape-secours * { visibility: visible; }
  .etape-secours { position: absolute; inset: 0; padding: 24px; }
  .etape-secours button, .etape-secours label { display: none; }
}

/* Double vérification : QR code fermé (l’admin doit l’ouvrir) */
.texte-or { color: var(--or); }

/* Lot test (Réglages mail, admin) : trois adresses côte à côte, puis les actions */
.test-adresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.test-adresses small { display: block; margin-top: 4px; }
.test-actions { align-items: center; flex-wrap: wrap; gap: 8px; }
/* Onglet « Test prospect » (Prospects, admin) : le bloc du lot test dans une carte */
.test-prospect { padding: 18px 20px; }
.test-prospect .reglage { border-top: 0; padding: 0; }
/* Lot du jour : une accroche par salon, sous son nom */
.destinataire { display: flex; flex-direction: column; gap: 4px; padding: 6px 0; border-bottom: 1px solid var(--bord); }
.destinataire:last-child { border-bottom: 0; }
.destinataire .accroche { font-size: 13px; padding: 6px 10px; margin-left: 26px; width: calc(100% - 26px); }
/* Dictée : c'est la personne qui arrête le micro (✕ annuler, ✓ valider) */
.dictee { position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px; z-index: 45; width: min(560px, calc(100% - 32px));
  display: flex; align-items: center; gap: 12px; background: var(--carte); border: 1px solid var(--prune); border-radius: var(--rayon);
  padding: 12px 12px 12px 16px; box-shadow: 0 12px 32px rgba(110,46,20,.22); }
.dictee.dans-champ { position: static; transform: none; width: auto; margin: 6px 0 4px; box-shadow: none; }
.dictee-point { width: 12px; height: 12px; border-radius: 50%; background: var(--rouge); flex: none; box-shadow: 0 0 0 0 var(--rouge-clair); animation: dictee-pouls 1.6s ease-out infinite; }
@keyframes dictee-pouls { 0% { box-shadow: 0 0 0 0 rgba(163,58,43,.35); } 70% { box-shadow: 0 0 0 9px rgba(163,58,43,0); } 100% { box-shadow: 0 0 0 0 rgba(163,58,43,0); } }
.dictee-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.dictee-texte b { color: var(--prune); font-size: 13px; }
.dictee-aide { color: var(--doux); font-size: 13px; }
.dictee-lu { max-height: 6.5em; overflow-y: auto; color: var(--texte); line-height: 1.45; overflow-wrap: anywhere; }
.dictee-lu:empty { display: none; }
.dictee-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; flex: none; font-size: 19px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.dictee-btn.annuler { background: var(--rouge-clair); color: var(--rouge); }
.dictee-btn.valider { background: var(--vert); color: #fff; }
.dictee-btn.annuler:hover { background: #F1D3CE; } .dictee-btn.valider:hover { background: var(--vert-fonce); }
.dictee-btn:focus-visible { outline: 3px solid var(--prune); outline-offset: 2px; }
@media (max-width: 760px) { .dictee { bottom: 84px; } }
@media (prefers-reduced-motion: reduce) { .dictee-point { animation: none; } }
.note-outils { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -2px 0 2px; }
.note-micro { display: inline-flex; align-items: center; gap: 6px; }
.note-micro svg { width: 16px; height: 16px; }
.note-proposition { border: 1px solid var(--bord); background: var(--prune-clair); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.note-propre { margin: 6px 0 8px; white-space: pre-wrap; }
/* Enregistrements en arrière-plan : un petit bandeau discret, rouge s'il y a un refus */
.file-envois { position: fixed; left: 16px; bottom: 16px; z-index: 40; border: 1px solid var(--bord); background: var(--carte); color: var(--doux);
  border-radius: 999px; padding: 8px 14px; font-size: 13.5px; box-shadow: 0 6px 18px rgba(110,46,20,.12); cursor: pointer; }
.file-envois[data-etat="fini"] { color: var(--vert); border-color: var(--vert-clair); cursor: default; }
.file-envois[data-etat="refus"] { color: var(--rouge); background: var(--rouge-clair); border-color: var(--rouge); font-weight: 600; }
@media (max-width: 760px) { .file-envois { bottom: 84px; left: 8px; } }
.file-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.file-liste li { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--bord); border-radius: 10px; padding: 10px 12px; }
/* Plus d'écran blanc : petit « Mise à jour… » pendant qu'un écran affiché se relit ; lignes grises pour un écran jamais vu */
.maj-en-cours { position: sticky; top: 8px; z-index: 5; float: right; margin: 0 0 -32px; padding: 5px 12px; border-radius: 999px; background: var(--prune-clair); color: var(--prune); font-size: 13px; }
.chargement { display: flex; flex-direction: column; gap: 12px; padding: 24px 0; text-align: left; }
.squelette { display: block; height: 18px; border-radius: 8px; background: linear-gradient(90deg, var(--rose) 0%, var(--prune-clair) 50%, var(--rose) 100%); background-size: 200% 100%; animation: squelette 1.4s ease-in-out infinite; }
.squelette.court { width: 60%; }
@keyframes squelette { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .squelette { animation: none; } }
/* « Relire Odoo » : la direction seulement ; les écrans se mettent à jour tout seuls */
body:not(.direction) #rafraichir { display: none; }

/* Passe design (10 novembre 2026, Impeccable + Emil Kowalski) */
.btn, a.canal, button.canal, .btn-icone, .outil, .bascule button { transition: transform .14s var(--sortie), background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn:active:not(:disabled), button.canal:active, a.canal:active, .btn-icone:active, .bascule button:active { transform: scale(.97); }
@keyframes fenetre-entree { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fond-entree { from { opacity: 0; } to { opacity: 1; } }
@keyframes toast-entree { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.fenetre[open] { animation: fenetre-entree .22s var(--entree); }
.fenetre[open]::backdrop { animation: fond-entree .22s ease-out; }
.toast { animation: toast-entree .22s var(--entree); }
details[open] > .lot-corps, details[open] > .aide-lot-texte { animation: fond-entree .18s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .fenetre[open], .fenetre[open]::backdrop, .toast, details[open] > .lot-corps, details[open] > .aide-lot-texte { animation: none; }
  .btn:active:not(:disabled), button.canal:active, a.canal:active, .btn-icone:active, .bascule button:active { transform: none; }
}
/* 1. La bulle du binôme ne couvre plus les boutons : plus petite, dans la marge, et la page lui garde sa place */
.binome-bulle { width: 48px; height: 48px; right: 14px; bottom: 14px; border-radius: 16px; }
@media (min-width: 761px) { main { padding-right: 76px; } body.binome-ouvert main { padding-right: 36px; } }
/* 6. Sur téléphone, des cibles de 40 px au moins */
@media (max-width: 760px) {
  .canal { width: 40px; height: 40px; border-radius: 10px; } .canal svg { width: 18px; height: 18px; }
  .btn.mini { min-height: 40px; } .btn-icone { width: 40px; height: 40px; }
  .binome-bulle { bottom: 84px; }
}
/* 13. Le compteur du jour ne se coupe plus au milieu */
.gros-chiffre { text-wrap: balance; }
/* 2. Le lot d'emails replié en une ligne dans Ma journée */
.lot-depli { margin: 12px 18px 14px; border: 1px solid var(--bord); border-radius: 12px; background: var(--carte); }
.lot-depli > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 14px; }
.lot-depli > summary::-webkit-details-marker { display: none; }
.lot-depli > summary .lot-resume { flex: 1 1 260px; min-width: 0; }
.lot-depli > summary .lot-resume b { color: var(--texte); }
.lot-depli > summary .lot-ouvrir { flex: none; }
.lot-depli[open] > summary { border-bottom: 1px solid var(--bord); }
.lot-depli[open] > summary .lot-ouvrir { background: var(--prune-clair); color: var(--prune); }
.lot-corps { padding: 4px 16px 0; }
.lot-depli[open] > summary .lot-ouvrir .ouvrir { display: none; }
.lot-depli:not([open]) > summary .lot-ouvrir .fermer { display: none; }
.lot-depli > summary:focus-visible { outline: 2px solid var(--prune); outline-offset: 2px; border-radius: 12px; }
.lot-corps { padding: 4px 0 0; }
.lot-corps > .lot-form { padding-top: 0; }
/* 5. L'aide du lot, rangée derrière « En savoir plus » */
.aide-lot { margin: 4px 0 0; font-size: 13.5px; color: var(--doux); }
.aide-lot > summary { cursor: pointer; color: var(--prune); font-weight: 600; width: max-content; }
.aide-lot-texte { display: grid; gap: 6px; margin-top: 6px; }
.aide-lot-texte p { margin: 0; }

/* Téléphone (11 novembre 2026) : l'alerte de rappel tient en peu de place ; la bulle du binôme reste au-dessus de la barre du bas */
@media (max-width: 760px) {
  .alerte-rappel { gap: 10px; padding: 10px 12px; }
  .alerte-cloche { width: 30px; height: 30px; border-radius: 10px; } .alerte-cloche svg { width: 18px; height: 18px; }
  .alerte-texte { min-width: 0; flex: 1 1 calc(100% - 44px); font-size: 15px; } .alerte-texte span { font-size: 13px; }
  .alerte-rappel .btn { flex: 1 1 auto; min-height: 40px; padding: 8px 12px; font-size: 14px; white-space: nowrap; }
  .binome-bulle { width: 44px; height: 44px; right: 12px; bottom: calc(78px + env(safe-area-inset-bottom)); border-radius: 14px; }
}

/* Tri par colonne : le titre est un vrai bouton ; ▲ croissant, ▼ décroissant, ↕ discret quand la colonne n'est pas triée */
.titre-tri { all: unset; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit;
  border-radius: 6px; padding: 2px 4px; margin: -2px -4px; }
.titre-tri:focus-visible { outline: 2px solid var(--prune); outline-offset: 1px; }
@media (hover: hover) { .titre-tri:hover { color: var(--prune); background: var(--survol); } }
.titre-tri .fleche-tri { font-size: 10px; opacity: .35; }
.titre-tri.actif { color: var(--prune); font-weight: 600; }
.titre-tri.actif .fleche-tri { opacity: 1; }

/* Email parti : la fenêtre le dit clairement avant de se fermer (12 novembre 2026) */
.envoi-fait { text-align: center; padding: 8px 4px 0; }
.envoi-fait-icone { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--vert-fonce, #2f6b4f); color: #fff; font-size: 28px; font-weight: 700; }
.envoi-fait h2 { margin: 12px 0 6px; }
.envoi-fait .fenetre-boutons { justify-content: center; margin-top: 16px; }
@media (prefers-reduced-motion: no-preference) { .envoi-fait-icone { animation: toast-entree .25s var(--entree, ease-out); } }
