/* ============================================================================================
   REFONTE 2026-11 : la grammaire de OUIDAYS (disposition, composants, états) dans les couleurs de
   VITOREX. Chargée après style.css, cette feuille a le dernier mot ; la retirer de index.html
   ramène l'interface du 03/11. Règles tenues : aucune bordure, aucun dégradé, aucune couleur
   translucide, aucune ombre portée (les surfaces se séparent par le fond et l'espace).
   ============================================================================================ */

:root {
  --rayon: 16px; --rayon-petit: 12px; --rayon-grand: 22px; --rayon-pilule: 999px;
  --t-m: 14.5px;
  /* Icônes des états : des masques, colorés par la couleur du texte. */
  --ico-check: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
  --ico-horloge: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5v5l3 2'/%3E%3C/svg%3E");
  --ico-croix: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11'/%3E%3C/svg%3E");
  --ico-info: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 11v5.5M12 7.8v.2'/%3E%3C/svg%3E");
  --ico-etoile: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 3l2.6 5.6 6.1.6-4.6 4.1 1.3 6-5.4-3.2-5.4 3.2 1.3-6L3.3 9.2l6.1-.6z'/%3E%3C/svg%3E");
  --ico-bac: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13h5l1.5 3h5L16 13h5M5 5h14l2 8v6H3v-6z'/%3E%3C/svg%3E");
  --ico-chevron: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --ico-alerte: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4l9 16H3zM12 10v4M12 17v.2'/%3E%3C/svg%3E");
}

/* --- Base ---------------------------------------------------------------------------------------- */
body { font-size: var(--t-m); line-height: 1.55; }
/* Liens dans le contenu : la couleur de marque lisible, soulignement discret ; le bleu reste aux pages publiques. */
#vue a:not(.bouton):not(.badge):not(.carte-lien):not(.kpi):not(.poste):not(.carte-mini):not(.carte-personne):not(.studio-carte):not(.fil-item):not(.liste > a):not([role="tab"]):not(.st-detail) { color: var(--or-encre); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--surface-3); }
#vue a:not(.bouton):not(.badge):hover { text-decoration-color: currentColor; }
.md a, .ag-doc a { color: var(--or-encre); }
h1, h2, h3, h4 { letter-spacing: -0.015em; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 20px; }
::-webkit-scrollbar-track { background: transparent; }

/* --- Barre latérale : bloc de marque, groupes, entrée active en surface pleine ------------------- */
@media (min-width: 901px) {
  .coque { grid-template-columns: 252px minmax(0, 1fr); }
  .nav { padding: var(--s4) var(--s3) var(--s5); gap: 1px; }
}
.marque { gap: var(--s3); padding: var(--s2) var(--s2) var(--s5); }
.marque img { width: 42px; height: 42px; border-radius: 12px; }
.marque strong { font-size: 15.5px; letter-spacing: 2.5px; font-weight: 800; }
.marque small { font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 600; margin-top: 2px; }
.nav-groupe { margin: var(--s5) 0 var(--s2); padding: 0 var(--s3); font-size: 10.5px; letter-spacing: 1.6px; }
.nav a, .nav button.lien { padding: 9px var(--s3); border-radius: 10px; font-size: 13.5px; font-weight: 600; min-height: 40px; gap: 11px; }
.nav a:hover, .nav button.lien:hover { background: var(--nav-actif); color: #FFFFFF; }
.nav a.actif { background: var(--surface); color: var(--encre); font-weight: 700; }
.nav a.actif svg { color: var(--or-encre); }
.nav .compteur { background: var(--or); color: var(--nav); font-weight: 800; font-size: 11.5px; min-width: 22px; height: 22px; }
.nav .theme { margin: var(--s3) var(--s2) var(--s2); }
.nav .theme button { font-size: 11.5px; font-weight: 700; padding: 6px 0; }

/* --- En-tête de page : titre et actions sur une ligne, sous-titre discret ------------------------ */
.principal { padding: var(--s7) var(--s9) var(--s16); max-width: 1280px; }
.titre-page { align-items: flex-start; margin-bottom: var(--s6); gap: var(--s4) var(--s8); }
.titre-page h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.titre-page p { margin-top: var(--s2); font-size: 14px; color: var(--encre-2); line-height: 1.55; }
.titre-page .aide { font-size: 13px; }
.titre-page .actions { align-self: center; }
.ariane { font-size: 12.5px; margin-bottom: var(--s4); }
.section-titre { margin: var(--s2) 0 var(--s3); }
.section-titre h2 { font-size: 17px; font-weight: 800; }
.section-titre a { color: var(--encre-2); font-weight: 700; font-size: 13px; }
.section-titre a:hover { color: var(--encre); text-decoration: underline; text-underline-offset: 3px; }

/* --- Boutons : des pilules, un seul appel principal, les autres sur une surface douce ------------ */
.bouton { border-radius: var(--rayon-pilule); padding: 10px 20px; min-height: 44px; font-family: var(--titres); font-weight: 600; font-size: 14.5px; gap: var(--s2); }
.bouton:hover { background: var(--encre-2); }
.bouton.second { background: var(--surface-2); color: var(--encre); }
.bouton.second:hover { background: var(--surface-3); }
.bouton.danger { background: var(--erreur-doux); color: var(--erreur); }
.bouton.danger:hover { background: var(--erreur); color: #FFFFFF; }
.bouton.petit { min-height: 36px; padding: 6px 14px; font-size: 13px; }
.bouton:disabled, .bouton:disabled:hover { background: var(--surface-3); color: var(--encre-3); }
.bouton svg { width: 17px; height: 17px; }
.bouton-rond { width: 40px; height: 40px; }
.outil-icone { border-radius: 12px; }
.lien-discret { font-weight: 600; border-radius: var(--rayon-pilule); }
.lien-discret:hover { background: var(--erreur-doux); }
.actions { gap: var(--s2) var(--s3); }

/* --- Champs : libellé au-dessus, surface en creux, 12 px, anneau plein au focus ----------------- */
.champ { gap: 6px; }
.champ label, .champ > span, .studio-champ, .deploi-form .champ span { font-family: var(--titres); font-weight: 600; font-size: 12.5px; color: var(--encre-2); letter-spacing: 0; text-transform: none; }
/* Calendrier (app.js, calendrierWidget) : grille du mois, détail du jour. Fonds et espace, aucune bordure. */
.cal-tete { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s3); }
.cal-tete h3 { margin: 0; font-size: 18px; flex: 1 1 auto; }
.cal-nav { display: inline-flex; gap: var(--s2); }
.cal-compte { width: 100%; }
.cal-jours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 4px; }
.cal-jours span { font-size: 11.5px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--encre-3); text-align: center; }
.cal-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-case { display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-height: 92px; padding: 6px; border: 0; border-radius: 10px; background: var(--surface-2); color: inherit; font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.cal-case.creux { background: transparent; cursor: default; }
.cal-case.plein { background: var(--surface-2); }
.cal-case:hover { background: var(--surface-3); }
.cal-case.aujourdhui .cal-num { background: var(--encre); color: var(--surface); }
.cal-case.choisi { background: var(--or-doux); }
.cal-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12.5px; font-weight: 700; }
.cal-puce { display: block; padding: 2px 6px; border-radius: 6px; background: var(--surface); color: var(--encre-2); font-size: 11px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-puce[data-fond] { color: #fff; }
.cal-puce.tache.echec { background: #D23B2E; color: #fff; }
.cal-puce.tache.en_cours { background: var(--or); color: #fff; }
.cal-puce.automatisation { background: var(--surface-3); }
.cal-puce.prevu { opacity: .75; }
.cal-plus { font-size: 11px; color: var(--encre-3); padding-left: 4px; }
.cal-jour { margin-top: var(--s4); padding-top: var(--s4); background: transparent; }
.cal-jour h3 { margin: 0 0 var(--s3); font-size: 16px; }
.cal-liste { display: flex; flex-direction: column; gap: 6px; }
.cal-ev { display: flex; align-items: center; gap: var(--s3); padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: inherit; text-decoration: none; min-width: 0; }
.cal-ev:hover { background: var(--surface-3); }
.cal-ev .grandit { display: flex; flex-direction: column; min-width: 0; }
.cal-ev strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.cal-h { flex: 0 0 52px; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--encre-3); }
.cal-pastille { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.cal-pastille.tache { background: var(--encre-3); }
.cal-pastille.automatisation { background: var(--or); }
.cal.compact .cal-case { min-height: 64px; }
.cal.compact .cal-puce { display: none; }
.cal.compact .cal-case.plein::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--encre-3); margin-top: auto; }
@media (max-width: 640px) {
  .cal-case { min-height: 56px; padding: 4px; }
  .cal-puce { display: none; }
  .cal-case.plein::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--encre-3); margin-top: auto; }
  .cal-plus { display: none; }
  .cal-h { flex-basis: 44px; }
}
/* Instruction écrite depuis une page (agent, marque, agence, automatisations, pages) : pleine largeur, sur surface. */
.composeur.instruction { max-width: none; width: 100%; margin: 0 0 var(--s4); }
.composeur.instruction .composeur-bas .discret { font-size: 12.5px; }
.logo-fiche { display: block; max-height: 72px; max-width: 220px; margin: 0 0 var(--s2); border-radius: 8px; background: var(--surface-2); padding: 6px; }
/* Semaine à venir (accueil) et dépôt d'un agent. */
.semaine-jour { margin-top: var(--s3); }
.semaine-jour h3 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: var(--encre-3); }
.depot-zone { display: flex; flex-direction: column; align-items: center; gap: var(--s2); padding: var(--s6); border-radius: 14px; background: var(--surface-2); text-align: center; }
.depot-zone input[type=file] { display: none; }
.depot-liste { display: flex; flex-direction: column; gap: 6px; margin-top: var(--s3); }
.depot-liste > div { display: flex; align-items: center; gap: var(--s3); padding: 8px 12px; border-radius: 10px; background: var(--surface-2); }
.perf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin-bottom: var(--s4); }
.perf > div { padding: var(--s3) var(--s4); border-radius: 12px; background: var(--surface-2); }
.perf b { display: block; font-size: 24px; font-weight: 750; }
.perf span { font-size: 12.5px; color: var(--encre-3); }
@media (max-width: 640px) { .perf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Sélecteurs filtrables (app.js, selectsFiltrables) : un bouton, puis un panneau avec recherche et liste.
   Séparation par les fonds, sans bordure ni ombre, comme le reste de la charte. */
.sf { position: relative; min-width: 0; }
.sf-natif { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; margin: 0; }
.sf-bouton { display: block; width: 100%; min-height: 42px; padding: 10px 40px 10px 14px; border: 0; border-radius: 12px; background: var(--surface-2) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B6F78' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 14px center; color: var(--encre); font: inherit; font-size: 15px; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-bouton:disabled { opacity: .55; cursor: default; }
.sf.ouvert .sf-bouton { background-color: var(--surface-3); }
.sf-panneau { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); min-width: 240px; padding: 8px; border-radius: 14px; background: var(--surface); color: var(--encre); outline: 4px solid var(--surface-2); }
.sf-recherche { display: block; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--encre); font: inherit; font-size: 15px; }
.sf-liste { list-style: none; margin: 8px 0 0; padding: 0; max-height: 240px; overflow: auto; overscroll-behavior: contain; }
.sf-liste li { padding: 9px 12px; border-radius: 9px; cursor: pointer; font-size: 15px; line-height: 1.3; }
.sf-liste li:hover, .sf-liste li:focus { background: var(--surface-2); outline: none; }
.sf-liste li.actif { background: var(--or-doux); color: var(--or-encre); font-weight: 600; }
.sf-liste li.inactif { color: var(--encre-3); cursor: default; }
.sf-liste li.sf-vide { color: var(--encre-3); cursor: default; }
select.choix + .sf-bouton, .sf-bouton.choix { min-height: 32px; }
.actions .sf, .filtres .sf { display: inline-block; min-width: 200px; max-width: 100%; }
@media (max-width: 640px) { .actions .sf, .filtres .sf { display: block; width: 100%; min-width: 0; } .titre-page .actions { flex-direction: column; align-items: stretch; } }
.studio-champ .sf { min-width: 165px; }
/* Sur l'écran d'appel (fond sombre), le bouton est une pilule claire et le panneau garde ses couleurs lisibles. */
.appel-choix .sf { width: 100%; max-width: 320px; }
.appel-choix .sf-bouton { border-radius: 999px; background-color: var(--nav-actif); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>"); color: #fff; text-align: center; font-weight: 600; padding-left: 40px; }
.appel-choix .sf-panneau { background: #FFFFFF; color: #17191F; outline-color: #343841; text-align: left; }
.appel-choix .sf-recherche { background: #E9E9E2; color: #17191F; }
.appel-choix .sf-liste li:hover, .appel-choix .sf-liste li:focus { background: #E9E9E2; }
.appel-choix .sf-liste li.actif { background: #F6ECD8; color: #7A5A12; }
@media (max-width: 640px) { .sf-panneau { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; max-height: 70vh; } .sf-liste { max-height: calc(70vh - 80px); } }

input[type=text], input[type=password], input[type=time], input[type=url], input[type=number], input[type=date], input[type=datetime-local], input[type=tel], input[type=search], input[type=email], select, textarea {
  background: var(--surface-2); border: 0; border-radius: var(--rayon-petit); padding: 11px 14px; min-height: 44px; font-size: 14.5px; color: var(--encre);
  transition: background-color .15s ease;
}
input::placeholder, textarea::placeholder { color: var(--encre-3); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; background: var(--fond); box-shadow: inset 0 0 0 2px var(--surface-3), 0 0 0 4px var(--or-doux); }
select:not([multiple]):not(.choix) { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: var(--ico-chevron); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.case { font-weight: 500; gap: 10px; min-height: 28px; }
.case input { width: 18px; height: 18px; accent-color: var(--encre); }
input[type=search] { max-width: 420px; }

/* --- Cartes : 16 px, titre 15, libellés de section en petites capitales ------------------------- */
.carte { border-radius: var(--rayon); padding: var(--s6); }
.carte h2 { font-size: 15.5px; font-weight: 800; margin-bottom: var(--s4); }
.carte h3 { font-family: var(--titres); font-size: 11px; letter-spacing: .12em; font-weight: 700; color: var(--encre-3); margin-bottom: var(--s2); }
.titre-carte { margin-bottom: var(--s4); }
.titre-carte h2 { margin-bottom: 0; }
.discret { font-size: 13px; }
.sous-titre { font-family: var(--titres); font-size: 13.5px; font-weight: 700; }

/* --- Tuiles de chiffres : le nombre en grand, le libellé discret, la légende dessous ------------- */
.kpi { border-radius: var(--rayon); padding: var(--s5) var(--s5) var(--s4); gap: 6px; }
.kpi-tete { margin-bottom: var(--s1); }
.kpi-label { font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--encre-3); }
.kpi .ic { width: 36px; height: 36px; border-radius: 11px; }
.kpi-valeur { font-family: var(--titres); font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.kpi-valeur small { font-size: 14px; font-weight: 700; }
.kpi-pied { font-size: 13px; color: var(--encre-2); }
.kpi .jauge, .jauge { height: 8px; }
a.kpi:hover { background: var(--surface-2); }
/* Sur l'accueil, la première tuile est posée sur l'encre : le chiffre qui décide de la journée. */
.accueil-cockpit .kpis .kpi:first-child { background: var(--nav); color: #FFFFFF; }
.accueil-cockpit .kpis .kpi:first-child .kpi-label, .accueil-cockpit .kpis .kpi:first-child .kpi-pied { color: var(--nav-encre); }
.accueil-cockpit .kpis .kpi:first-child .ic { background: var(--nav-actif); color: var(--or); }
.accueil-cockpit .kpis .kpi:first-child .jauge { background: var(--nav-actif); }
.accueil-cockpit .kpis .kpi:first-child .jauge span { background: var(--or); }
.chiffre { font-family: var(--titres); font-weight: 800; letter-spacing: -0.03em; }

/* --- Étiquettes d'état : fond doux, texte coloré, une icône et un mot, jamais la couleur seule --- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; line-height: 1.25; background: var(--surface-2); color: var(--encre-2); vertical-align: middle; }
.badge.ok, .badge.alerte, .badge.erreur, .badge.info, .badge.or { padding-left: 9px; }
.badge.ok::before, .badge.alerte::before, .badge.erreur::before, .badge.info::before, .badge.or::before { content: ""; width: 13px; height: 13px; flex: none; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.badge.ok { --ico: var(--ico-check); }
.badge.alerte { --ico: var(--ico-horloge); }
.badge.erreur { --ico: var(--ico-croix); }
.badge.info { --ico: var(--ico-info); }
.badge.or { --ico: var(--ico-etoile); }
.badge a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.puce { background: var(--surface-2); font-weight: 600; padding: 5px var(--s3); }
.temoin { padding: 6px var(--s3); }
.puce-etat { font-size: 13px; padding: 7px 12px; }

/* --- Onglets et filtres : des pilules, l'actif sur l'encre --------------------------------------- */
.onglets { background: transparent; padding: 0; gap: var(--s2); margin-bottom: var(--s5); }
.onglets [role="tab"] { background: var(--surface-2); color: var(--encre-2); padding: 8px 15px; min-height: 38px; font-size: 13px; font-weight: 600; }
.onglets [role="tab"]:hover { background: var(--surface-3); color: var(--encre); }
.onglets [role="tab"].actif { background: var(--encre); color: var(--fond); }
.onglets [role="tab"]:disabled { background: var(--surface-2); color: var(--encre-3); }
.studio-onglets { border-radius: var(--rayon-petit); }
.studio-onglets button { border-radius: 9px; }

/* --- Listes : chaque ligne posée sur une surface douce, sans trait ------------------------------- */
.liste { display: flex; flex-direction: column; gap: var(--s2); }
.liste > li, .liste > a { background: var(--surface-2); border-radius: var(--rayon-petit); padding: var(--s3) var(--s4); }
.liste > a:hover { background: var(--surface-3); }
.liste > li.vide, .liste > a.vide { background: transparent; }
.ligne-invite, .ligne-import, .ag-creneaux li, .competence-lue, .apercu-message, .cases, .ag-aide { border-radius: var(--rayon-petit); }

/* --- Tableaux : en-tête teinté, lignes aérées, chiffres alignés --------------------------------- */
.tableau, .suivi-table, .md table { font-size: 13.5px; }
.tableau th, .suivi-table thead th, .md thead th { background: var(--surface-2); font-family: var(--titres); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-2); padding: 10px var(--s3); }
.tableau thead th:first-child, .suivi-table thead th:first-child, .md thead th:first-child { border-radius: 10px 0 0 10px; }
.tableau thead th:last-child, .suivi-table thead th:last-child, .md thead th:last-child { border-radius: 0 10px 10px 0; }
.tableau td, .suivi-table td, .md td { padding: 12px var(--s3); }
.tableau tbody tr:nth-child(odd), .suivi-table tbody tr:nth-child(odd) { background: transparent; }
.tableau tbody tr:nth-child(even) td, .suivi-table tbody tr:nth-child(even) td, .suivi-table tbody tr:nth-child(even) th, .md tbody tr:nth-child(even) td { background: var(--fond); }
.tableau tbody tr:hover td, .suivi-table tbody tr:hover td { background: var(--surface-2); }
.tableau tbody td:first-child, .suivi-table tbody td:first-child, .suivi-table tbody th:first-child { border-radius: 10px 0 0 10px; }
.tableau tbody td:last-child, .suivi-table tbody td:last-child { border-radius: 0 10px 10px 0; }
.tableau td.n { font-family: var(--police); font-weight: 600; }
.tableau .ligne-boutons .bouton.second { background: var(--surface-2); }

/* --- Modales, messages, alertes, états vides ---------------------------------------------------- */
#modale .boite { border-radius: var(--rayon-grand); padding: var(--s7); }
#modale h2 { font-size: 19px; font-weight: 800; margin-bottom: var(--s4); }
#modale .actions { margin-top: var(--s6); }
.toast { border-radius: var(--rayon-petit); padding: var(--s3) var(--s5); font-weight: 600; font-size: 14px; }
.alerte-page { border-radius: var(--rayon-petit); padding: var(--s3) var(--s4); font-weight: 500; }
.vide { position: relative; padding: var(--s9) var(--s5); color: var(--encre-3); font-size: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s3); text-align: center; list-style: none; }
.vide::before { content: ""; width: 52px; height: 52px; border-radius: 16px; background: var(--surface-2); }
.vide::after { content: ""; position: absolute; top: calc(var(--s9) + 14px); width: 24px; height: 24px; background: var(--encre-3); -webkit-mask: var(--ico-bac) center / contain no-repeat; mask: var(--ico-bac) center / contain no-repeat; }
p.vide { margin: 0; }
.erreur-page { border-radius: var(--rayon); }
.squelette i { border-radius: var(--rayon-petit); }
.squelette .sq-carte { border-radius: var(--rayon); }

/* --- Blocs d'accueil (bureau, studio) : la couleur pleine de la marque, les chiffres dedans ------ */
.hero, .studio-hero { border-radius: var(--rayon-grand); padding: var(--s8); }
.hero h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.025em; }
.hero-date { font-size: 14px; }
.hero .composeur { border-radius: var(--rayon); margin-top: var(--s5); }
.studio-hero h1 { font-size: 34px; }
.studio-invite { border-radius: var(--rayon); }
.studio-idee { font-weight: 600; }
.studio-carte { border-radius: var(--rayon); }
.studio-carte-pied strong { font-size: 15px; }

/* --- Équipe, postes, agents ---------------------------------------------------------------------- */
.poste { border-radius: var(--rayon); }
.poste-scene { border-radius: 12px; }
.carte-mini { padding: var(--s3) var(--s4); border-radius: var(--rayon); }
.carte-mini .badge { flex: none; }
.poste-info strong { font-family: var(--titres); font-weight: 700; }
.carte-agent-tete h2 { font-size: 20px; }
.famille .sous-titre { font-size: 12px; color: var(--encre-3); letter-spacing: .08em; text-transform: uppercase; }

/* --- Discussion et studio : bulles arrondies, la vôtre sur l'encre ------------------------------- */
.msg-moi .bulle { background: var(--primaire); color: var(--primaire-encre); border-radius: 18px 18px 4px 18px; }
.msg-vitorex.echec { border-radius: var(--rayon); }
.composeur { border-radius: 18px; }
.chat-liste a, .chat-liste-modale a { border-radius: 10px; }
.chat-liste a.actif, .chat-liste-modale a.actif { font-weight: 600; }
.studio-bloc { border-radius: var(--rayon-petit); }
.studio-composeur { border-radius: 18px; }

/* --- Agence, pages ------------------------------------------------------------------------------- */
.ag-chiffres b { font-family: var(--titres); font-weight: 800; letter-spacing: -0.02em; }
.ag-gros { font-family: var(--titres); font-weight: 800; }
.ag-barre b, .ag-heure { font-family: var(--police); font-weight: 700; }
.ag-fraicheur { margin-bottom: var(--s4); }
.pg-texte { border-radius: var(--rayon-petit); }

/* --- Connexion ----------------------------------------------------------------------------------- */
.connexion .carte { border-radius: var(--rayon-grand); padding: var(--s8); }
.carte-mdp { border-radius: var(--rayon-grand); }

/* --- Sombre : mêmes surfaces, l'entrée active du menu et la première tuile en surface ------------ */
:root[data-theme="dark"] .nav a.actif { background: var(--surface-2); color: var(--encre); }
:root[data-theme="dark"] .accueil-cockpit .kpis .kpi:first-child { background: var(--surface-2); color: var(--encre); }
:root[data-theme="dark"] .accueil-cockpit .kpis .kpi:first-child .kpi-label, :root[data-theme="dark"] .accueil-cockpit .kpis .kpi:first-child .kpi-pied { color: var(--encre-2); }
:root[data-theme="dark"] .accueil-cockpit .kpis .kpi:first-child .ic, :root[data-theme="dark"] .accueil-cockpit .kpis .kpi:first-child .jauge { background: var(--surface-3); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav a.actif { background: var(--surface-2); color: var(--encre); }
  :root:not([data-theme="light"]) .accueil-cockpit .kpis .kpi:first-child { background: var(--surface-2); color: var(--encre); }
  :root:not([data-theme="light"]) .accueil-cockpit .kpis .kpi:first-child .kpi-label, :root:not([data-theme="light"]) .accueil-cockpit .kpis .kpi:first-child .kpi-pied { color: var(--encre-2); }
  :root:not([data-theme="light"]) .accueil-cockpit .kpis .kpi:first-child .ic, :root:not([data-theme="light"]) .accueil-cockpit .kpis .kpi:first-child .jauge { background: var(--surface-3); }
}

/* --- Tablette et téléphone ----------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .principal { padding: var(--s6) var(--s6) var(--s16); }
}
@media (max-width: 900px) {
  .principal { padding: var(--s5) var(--s4) calc(var(--s16) + var(--s6) + env(safe-area-inset-bottom)); }
  .entete-mobile { height: 58px; }
  .entete-mobile strong { font-size: 15px; letter-spacing: 2.5px; }
  .nav { inset: 58px auto 0 0; width: 272px; padding: var(--s3) var(--s3) var(--s6); }
  .coque.menu-ouvert .voile { inset: 58px 0 0 0; }
  .barre-basse { padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); gap: 4px; }
  .barre-basse a, .barre-basse button { min-height: 50px; border-radius: 12px; font-size: 10.5px; font-weight: 700; }
  .barre-basse .actif { background: var(--or-doux); color: var(--encre); }
  .titre-page { margin-bottom: var(--s5); }
  .titre-page h1 { font-size: 23px; }
  .titre-page .actions { align-self: stretch; }
  .titre-page .actions .bouton { flex: 1 1 auto; justify-content: center; }
  .carte { padding: var(--s5); }
  .onglets { gap: 6px; }
  .onglets [role="tab"] { padding: 8px 13px; min-height: 40px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-valeur { font-size: 26px; }
  .hero, .studio-hero { padding: var(--s6); border-radius: var(--rayon); }
  .hero h1, .studio-hero h1 { font-size: 27px; }
  #modale .boite { border-radius: var(--rayon); padding: var(--s5); }
  #toasts { top: calc(58px + var(--s3)); }
  .tableau th, .tableau td { padding: 10px var(--s2); }
}
@media (max-width: 640px) {
  .principal { padding-left: var(--s3); padding-right: var(--s3); }
  .kpi .ic { display: none; }
  .kpi-label { font-size: 12px; }
  .carte-mini .badge { font-size: 11px; padding: 3px 8px; }
  .hero-etats { gap: 6px; }
  .puce-etat { font-size: 12px; padding: 5px 10px; }
  .carte { padding: var(--s4); border-radius: var(--rayon); }
  .kpi { padding: var(--s4); }
  .titre-page h1 { font-size: 22px; }
  .bouton { padding: 10px 16px; }
  .liste > li, .liste > a { padding: var(--s3); }
}
@media (prefers-reduced-motion: reduce) {
  .bouton, .onglets [role="tab"], input, select, textarea, a.kpi, .liste > a { transition: none; }
}

/* --- Composition des pages : sur-titre de rubrique, cockpit à deux colonnes, « À régler » ----------- */
.sur-titre { display: block; font-family: var(--titres); font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--or-encre); margin-bottom: 6px; }
.titre-page h1 { font-size: 28px; }
.section-titre h2 { font-size: 19px; }
.section-titre h2 .discret { font-size: 14px; font-weight: 600; margin-left: 4px; }
.cockpit { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s4); align-items: start; }
.cockpit-principal { display: grid; gap: var(--s5); min-width: 0; }
.cockpit-principal > * { min-width: 0; margin: 0; }
.cockpit-principal .scene-vedette .section-titre { margin-top: 0; }
.a-regler-carte { display: flex; flex-direction: column; gap: var(--s3); position: sticky; top: var(--s4); }
.a-regler-liste { display: flex; flex-direction: column; gap: var(--s2); }
.a-regler { display: flex; align-items: center; gap: var(--s3); padding: var(--s3); border-radius: var(--rayon-petit); background: var(--fond); color: inherit; text-decoration: none; }
.a-regler:hover { background: var(--surface-2); }
.a-regler strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.3; }
.a-regler .discret { display: block; font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
.ar-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--encre-2); }
.ar-ic svg { width: 18px; height: 18px; }
.ar-ic.erreur { background: var(--erreur-doux); color: var(--erreur); }
.ar-ic.alerte { background: var(--alerte-doux); color: var(--alerte); }
.ar-ic.info { background: var(--info-doux); color: var(--info); }
.ar-ic.ok { background: var(--ok-doux); color: var(--ok); }
.ar-ic.or { background: var(--or-doux); color: var(--or-encre); }
.a-regler-carte .bouton { margin-top: var(--s1); }
@media (max-width: 1100px) { .cockpit { grid-template-columns: 1fr; } .a-regler-carte { position: static; } }

/* Lignes de tâches : le visage de l'agent, le résumé, l'état et la durée à droite. */
.liste-taches .ligne-tache { display: flex; align-items: center; gap: var(--s3); background: var(--fond); }
.liste-taches .ligne-tache .grandit { flex: 1 1 0; min-width: 0; }
.liste-taches .ligne-tache:hover { background: var(--surface-2); }
.liste-taches .fil-tete { width: 38px; height: 38px; flex: none; }
.liste-taches strong { font-size: 14.5px; }
.liste-taches .grandit .discret { display: block; font-size: 12.5px; margin-top: 2px; }
.lt-droite { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.lt-droite .discret { font-size: 12px; }
.carte .liste > li, .carte .liste > a, .carte .ligne-tache { background: var(--fond); }
.carte .liste > a:hover, .carte .ligne-tache:hover { background: var(--surface-2); }

/* Échéances : la tuile de date en tête de ligne, le montant à droite. */
.echeances { display: flex; flex-direction: column; gap: var(--s2); }
.echeance { display: flex; align-items: center; gap: var(--s4); padding: var(--s3) var(--s4) var(--s3) var(--s3); border-radius: var(--rayon-petit); background: var(--fond); }
.echeance .grandit { min-width: 0; }
.echeance .montant { font-family: var(--titres); font-size: 17px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.date-tuile { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; height: 56px; border-radius: 12px; background: var(--surface-2); color: var(--encre); flex: none; line-height: 1; }
.date-tuile b { font-family: var(--titres); font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.date-tuile small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--encre-3); margin-top: 3px; }
.date-tuile.proche { background: var(--encre); color: var(--fond); }
.date-tuile.proche small { color: var(--or); }

/* Monogramme : deux lettres sur une tuile douce, pour les lignes qui n'ont pas de visage. */
.mono { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--or-doux); color: var(--or-encre); font-family: var(--titres); font-size: 13px; font-weight: 800; letter-spacing: .02em; flex: none; }
.cellule-nom { display: flex; align-items: center; gap: var(--s3); }
.cellule-nom > span:last-child { min-width: 0; }

/* Équipe : VOXY en bloc de tête. */
.hero-chef { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: var(--s6); align-items: center; padding: var(--s6) var(--s8); margin-bottom: var(--s5); }
.hero-chef-avatar { width: 112px; height: 112px; border-radius: 28px; overflow: hidden; background: var(--nav-actif); display: block; }
.hero-chef-avatar svg { width: 100%; height: 100%; display: block; }
.hero-chef-texte .sur-titre { color: var(--or); }
.hero-chef-texte h2 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: 3px; }
.hero-chef-texte p { margin: var(--s2) 0 var(--s4); color: var(--nav-encre); max-width: 52ch; }
.hero-chef-texte .bouton { background: var(--or); color: var(--nav); }
.hero-chef-texte .bouton:hover { background: #E8BC62; }
.hero-chef-chiffres { display: flex; gap: var(--s3); }
.hero-chef-chiffres div { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 88px; padding: var(--s3) var(--s4); border-radius: 14px; background: var(--nav-actif); }
.hero-chef-chiffres b { font-family: var(--titres); font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.hero-chef-chiffres span { font-size: 12px; color: var(--nav-encre); font-weight: 600; }
.famille .section-titre { margin-top: var(--s4); }
@media (max-width: 900px) {
  .hero-chef { grid-template-columns: 72px minmax(0, 1fr); padding: var(--s5); }
  .hero-chef-avatar { width: 72px; height: 72px; border-radius: 20px; }
  .hero-chef-chiffres { grid-column: 1 / -1; }
  .hero-chef-chiffres div { flex: 1; min-width: 0; }
  .hero-chef-texte h2 { font-size: 24px; }
  .echeance { gap: var(--s3); padding: var(--s3); }
  .echeance .montant { font-size: 15px; }
}
:root[data-theme="dark"] .date-tuile.proche { background: var(--or); color: var(--nav); }
:root[data-theme="dark"] .date-tuile.proche small { color: var(--nav); }
:root[data-theme="dark"] .hero-chef-avatar, :root[data-theme="dark"] .hero-chef-chiffres div { background: var(--surface-3); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .date-tuile.proche { background: var(--or); color: var(--nav); }
  :root:not([data-theme="light"]) .date-tuile.proche small { color: var(--nav); }
  :root:not([data-theme="light"]) .hero-chef-avatar, :root:not([data-theme="light"]) .hero-chef-chiffres div { background: var(--surface-3); }
}

/* --- Tâches : trois chiffres en tête ------------------------------------------------------------- */
.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: var(--s5); }
.kpis-3 .kpi:first-child { background: var(--nav); color: #FFFFFF; }
.kpis-3 .kpi:first-child .kpi-label, .kpis-3 .kpi:first-child .kpi-pied { color: var(--nav-encre); }
@media (max-width: 640px) { .kpis-3 { grid-template-columns: 1fr 1fr; } .kpis-3 .kpi:first-child { grid-column: 1 / -1; } }

/* --- Automatisations : en-tête, consigne, horaire, actions ----------------------------------------- */
.grille:has(> .carte-auto) { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.carte-auto { gap: var(--s3); }
.carte-auto.en-pause { background: var(--surface-2); }
.auto-tete { display: flex; align-items: flex-start; gap: var(--s3); }
.auto-tete .fil-tete { width: 44px; height: 44px; flex: none; }
.auto-tete h2 { margin: 0 0 2px; font-size: 15.5px; line-height: 1.25; }
.auto-tete .discret { display: block; font-size: 12.5px; }
.auto-etats { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.auto-consigne { margin: 0; font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.auto-pied { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: var(--s2); }
.horaire { display: inline-flex; align-items: center; gap: 7px; width: max-content; max-width: 100%; padding: 6px 12px 6px 9px; border-radius: 999px; background: var(--or-doux); color: var(--or-encre); font-size: 12.5px; font-weight: 700; }
.horaire svg { width: 15px; height: 15px; }
.horaire.eteint { background: var(--surface-2); color: var(--encre-3); }
.carte-auto > .actions { padding-top: var(--s2); }
.carte-auto > .actions .bouton.second:first-child { background: var(--encre); color: var(--fond); }
.carte-auto > .actions .bouton.second:first-child:hover { background: var(--encre-2); }
.carte-auto .lien-discret { margin-left: auto; }
@media (max-width: 640px) { .grille:has(> .carte-auto) { grid-template-columns: 1fr; } .auto-etats { flex-direction: row; } .auto-tete { flex-wrap: wrap; } }

/* --- Pages : une carte par marque, bandeau à sa couleur -------------------------------------------- */
.carte-page { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.cp-bande { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s4) var(--s5); min-height: 96px; }
.cp-logo { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; background: #FFFFFF; display: block; }
.cp-logo.mono { display: inline-grid; place-items: center; width: 56px; height: 56px; font-size: 18px; background: #FFFFFF; color: var(--encre); }
.cp-bande .badge { background: #FFFFFF; color: var(--encre); }
.cp-bande .badge.ok { background: #FFFFFF; color: var(--ok); }
.cp-corps { padding: var(--s4) var(--s5) var(--s5); display: flex; flex-direction: column; gap: 4px; }
.cp-corps h2 { margin: 0 0 var(--s2); font-size: 17px; }
.cp-theme { margin: 0 0 var(--s1); font-family: var(--titres); font-weight: 700; font-size: 15px; line-height: 1.3; }
.cp-corps .discret { font-size: 13px; }
.carte-page:hover { background: var(--surface); }
.carte-page:hover .cp-corps { background: var(--surface-2); }

/* --- Agence : la tuile de chaque marque coiffée de sa couleur ------------------------------------- */
.ag-tuile { padding: 0; overflow: hidden; }
.ag-tuile-tete { padding: var(--s3) var(--s5); margin: 0; min-height: 56px; }
.ag-tuile-tete .ag-marque, .ag-tuile-tete .discret { color: #FFFFFF; }
.ag-tuile-tete .ag-marque { font-family: var(--titres); font-size: 16px; font-weight: 800; }
.ag-tuile-tete .ag-point { background: #FFFFFF !important; }
.ag-tuile .ag-chiffres { padding: var(--s4) var(--s5) var(--s5); margin-top: 0; }
.ag-chiffres b { font-size: 24px; }

/* --- Discussion : la liste des conversations -------------------------------------------------------- */
.chat-liste a { padding: 10px 12px; }
.chat-liste a .bloc { font-weight: 600; font-size: 13.5px; }
.chat-liste small { margin-top: 2px; }

/* --- Connexion : le bloc de marque en grand, la carte sur l'encre ------------------------------------ */
.connexion .carte { max-width: 420px; padding: var(--s8) var(--s8) var(--s7); }
.connexion .marque { flex-direction: column; align-items: center; text-align: center; gap: var(--s3); padding: 0 0 var(--s6); }
.connexion .marque img { width: 64px; height: 64px; border-radius: 18px; }
.connexion .marque strong { font-size: 22px; letter-spacing: 5px; }
.connexion .marque small { font-size: 11.5px; letter-spacing: 2px; }
.connexion .bouton { width: 100%; }

/* --- Page Budget : trois familles de dépenses, lisibles par quelqu'un qui ne connaît pas le projet. --- */
:root { --bud-dette: #B0372B; --bud-pro: #2B4FA8; --bud-perso: #1B6E3F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bud-dette: #E07A68; --bud-pro: #7E9BE8; --bud-perso: #57B985; } }
:root[data-theme="dark"] { --bud-dette: #E07A68; --bud-pro: #7E9BE8; --bud-perso: #57B985; }
.bud-dette, .bud-colonne.bud-dette { --bud: var(--bud-dette); }
.bud-pro { --bud: var(--bud-pro); }
.bud-perso { --bud: var(--bud-perso); }
.bud-tete { display: flex; flex-direction: column; gap: var(--s5); }
.bud-chiffres { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); align-items: end; }
.bud-chiffres > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bud-etiquette { color: var(--encre-3); font-size: 13.5px; }
.bud-grand { font-family: var(--titres, inherit); font-size: clamp(34px, 5vw, 48px); line-height: 1.05; letter-spacing: -.02em; }
.bud-moyen { font-family: var(--titres, inherit); font-size: 24px; line-height: 1.15; }
.bud-barre { display: flex; gap: 2px; height: 14px; }
.bud-barre i { display: block; min-width: 4px; background: var(--bud); border-radius: 2px; }
.bud-barre i:first-child { border-radius: 4px 2px 2px 4px; }
.bud-barre i:last-child { border-radius: 2px 4px 4px 2px; }
.bud-legende { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.bud-legende li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.bud-pastille { width: 10px; height: 10px; border-radius: 3px; background: var(--bud); flex: none; display: inline-block; }
.bud-evolution { background: var(--surface-2); border-radius: var(--rayon-petit); padding: var(--s4); }
.bud-evolution h2 { font-size: 15px; margin: 0 0 var(--s2); }
.bud-evolution ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.bud-colonnes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); align-items: start; }
.bud-colonne { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; margin: 0; }
.bud-colonnes > .carte + .carte { margin-top: 0; }
.bud-colonne-tete { display: flex; align-items: center; gap: 10px; }
.bud-colonne-tete h2 { margin: 0; }
.bud-colonne-sous { margin: 0; color: var(--encre-3); font-size: 13.5px; }
.bud-total { margin: var(--s2) 0; }
.bud-total strong { font-family: var(--titres, inherit); font-size: 28px; letter-spacing: -.01em; }
.bud-total span { color: var(--encre-3); font-size: 13.5px; }
.bud-colonne .bud-dette { background: var(--surface-2); border-radius: var(--rayon-petit); padding: var(--s4); display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s2); --bud: var(--bud-dette); }
.bud-colonne .bud-dette p { margin: 0; }
.bud-reste { display: flex; flex-direction: column; gap: 2px; }
.bud-reste span { color: var(--encre-3); font-size: 13.5px; }
.bud-reste strong { font-family: var(--titres, inherit); font-size: 24px; }
.bud-progres { height: 10px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.bud-progres i { display: block; height: 100%; background: var(--bud-dette); border-radius: 4px; }
.bud-lignes { display: flex; flex-direction: column; gap: 2px; }
.bud-ligne { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); width: 100%; text-align: left; background: none; border: 0; color: inherit; font: inherit; padding: var(--s3) var(--s2); border-radius: var(--rayon-petit); cursor: pointer; min-height: 44px; transition: background-color .18s ease; }
a.bud-ligne { text-decoration: none; }
.bud-ligne:hover, .bud-ligne:focus-visible { background: var(--surface-2); }
.bud-ligne-nom { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bud-ligne-nom strong { font-weight: 600; font-size: 14.5px; }
.bud-ligne-nom small { color: var(--encre-3); font-size: 12.5px; line-height: 1.4; }
.bud-ligne-nom .badge { align-self: flex-start; }
.bud-ligne-montant { white-space: nowrap; font-size: 14.5px; }
@media (max-width: 1100px) { .bud-colonnes { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .bud-chiffres { grid-template-columns: minmax(0, 1fr); gap: var(--s3); } }
@media (prefers-reduced-motion: reduce) { .bud-ligne { transition: none; } }

/* --- Page Domaines : sur téléphone, chaque ligne devient une fiche, pour voir le prix et le bouton sans faire défiler. --- */
@media (max-width: 720px) {
  .dom-tableau thead { display: none; }
  .dom-tableau, .dom-tableau tbody { display: block; }
  .dom-tableau tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px var(--s3); padding: var(--s3); border-radius: var(--rayon-petit); }
  .dom-tableau tr[hidden] { display: none; }
  .dom-tableau td { display: block; padding: 0; background: none; min-width: 0; }
  .dom-tableau td:first-child { grid-column: 1 / -1; }
  .dom-tableau td:last-child:not(.n) { grid-column: 1 / -1; }
  .dom-tableau td.n { text-align: right; }
}

/* --- DEVOPS : serveurs et agent. --- */
.sv-puces { display: flex; flex-wrap: wrap; gap: 6px; }
.sv-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
.sv-tete h3 { margin: 0; }

/* --- Open Space (07/11/2026) : l'équipe sur un plateau. Des pièces en aplats doux, sans bordure, sans ombre, sans dégradé ni
   transparence ; les agents se déplacent par une simple translation, et ne bougent plus si l'appareil demande moins d'animation. */
.os-resume { display: flex; align-items: center; gap: var(--s2); font-size: 14px; color: var(--encre-2); }
.os-outils { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s3); }
.os-outil { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); color: var(--encre-3); border-radius: var(--rayon-pilule); padding: 5px 12px; font-size: 13px; font-weight: 600; transition: background .3s, color .3s; }
.os-outil small { font-weight: 500; }
.os-outil.allume { background: var(--ok-doux); color: var(--ok); }
.os-scene { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); align-items: start; }
@media (min-width: 1180px) { .os-scene.avec-fiche { grid-template-columns: minmax(0, 1fr) 340px; } }
.os-plateau { position: relative; }
.os-plan { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--s3); }
.os-piece { display: flex; flex-direction: column; gap: var(--s2); background: var(--surface-2); border-radius: var(--rayon); padding: var(--s3); min-width: 0; }
.os-piece header { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); font-size: 14px; }
.os-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 46px var(--s2); padding-top: 46px; }
.os-place { height: 50px; border-radius: 10px; background: var(--surface); }
.os-place.os-libre { height: 38px; border-radius: 999px; }
.os-prochaine { font-size: 12px; margin: 0; min-height: 1em; }
.os-p-direction { background: var(--or-doux); }
.os-p-agence, .os-p-veille { background: var(--info-doux); }
.os-p-pages { background: var(--erreur-doux); }
.os-p-studio, .os-pause { background: var(--ok-doux); }
.os-p-affaires { background: var(--alerte-doux); }
.os-p-metiers, .os-p-tech, .os-p-commun { background: var(--surface-2); }
.os-cafe { background: var(--surface-3); }
.os-calque { position: absolute; inset: 0; pointer-events: none; }
.os-agent { position: absolute; left: 0; top: 0; width: 60px; display: flex; flex-direction: column; align-items: center; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; transition: transform 1.8s cubic-bezier(.45, .05, .3, 1); }
.os-agent.sans-transition { transition: none; }
.os-agent .perso-svg { width: 46px; height: 46px; }
.os-agent:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; border-radius: 12px; }
.os-nom { position: relative; z-index: 1; margin-top: -4px; padding: 0 7px; border-radius: var(--rayon-pilule); background: var(--surface); color: var(--encre); font-size: 11px; font-weight: 700; white-space: nowrap; }
.os-bulle { display: none; position: absolute; bottom: calc(100% + 2px); left: -4px; width: max-content; max-width: 150px; padding: 4px 9px; border-radius: 10px; background: var(--primaire); color: var(--primaire-encre); font-size: 11px; line-height: 1.3; text-align: left; z-index: 2; }
.os-agent[data-etat="travail"] .os-bulle, .os-agent[data-etat="attente"] .os-bulle { display: block; }
.os-agent[data-etat="attente"] .os-bulle { background: var(--surface-3); color: var(--encre); }
.os-agent[data-etat="travail"] .os-nom { background: var(--or-doux); color: var(--alerte); }
.os-agent[data-etat="travail"] .perso-svg { animation: os-tape .7s ease-in-out infinite alternate; }
@keyframes os-tape { from { transform: translateY(0); } to { transform: translateY(-3px); } }
.os-dossier { position: absolute; left: 0; top: 0; width: 18px; height: 14px; margin: -7px 0 0 -9px; border-radius: 3px; background: var(--or); pointer-events: none; z-index: 3; transition: transform 1.4s ease-in-out; }
.os-fiche { position: sticky; top: var(--s4); display: grid; gap: var(--s2); }
.os-fiche h3 { margin: var(--s2) 0 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-3); }
.os-fiche p { margin: 0; }
.os-fiche-tete { display: flex; align-items: flex-start; gap: var(--s3); }
.os-fiche-tete > div { flex: 1; min-width: 0; }
.os-fiche-tete h2 { margin: 4px 0 0; }
.os-fiche-portrait .perso-svg { width: 72px; height: 72px; }
.os-fiche-etat { padding: 6px 10px; border-radius: 10px; background: var(--surface-2); font-weight: 600; }
.os-fiche-etat[data-etat="travail"] { background: var(--or-doux); color: var(--alerte); }
.os-routines { margin: 0; padding-left: 18px; }
@media (prefers-reduced-motion: reduce) {
  .os-agent, .os-outil, .os-dossier { transition: none; }
  .os-agent[data-etat="travail"] .perso-svg { animation: none; }
}

/* AUTO LABS et IMMO LABS (08/11/2026) : dossiers à vignette, créations, médias déposés et livrables. Fonds et espace, rien d'autre. */
.labs-creations { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s3); }
.labs-creation { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s3) var(--s4); border-radius: var(--rayon); background: var(--surface-2); }
.labs-creation .bouton { align-self: flex-start; margin-top: auto; }
.labs-dossiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s4); }
.labs-dossier { display: flex; flex-direction: column; border-radius: var(--rayon); background: var(--surface); color: var(--encre); text-decoration: none; overflow: hidden; }
.labs-dossier:hover, .labs-dossier:focus-visible { background: var(--surface-2); }
.labs-vignette { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; background: var(--surface-3); }
.labs-vignette img { width: 100%; height: 100%; object-fit: cover; }
.labs-vignette .monogramme { font-size: 28px; font-weight: 750; color: var(--encre-3); }
.labs-dossier-texte { display: flex; flex-direction: column; gap: 6px; padding: var(--s3) var(--s4) var(--s4); }
.labs-colonnes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--s4); align-items: start; }
.labs-colonnes > .carte { margin: 0; }
.labs-colonnes .champ + .labs-creations { margin-top: var(--s3); }
.labs-infos { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px var(--s3); margin: 0; }
.labs-infos dt { color: var(--encre-3); }
.labs-infos dd { margin: 0; overflow-wrap: anywhere; }
.labs-medias { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s3); margin-top: var(--s2); }
.labs-media { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.labs-media img, .labs-media video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon-petit); background: var(--surface-3); }
.labs-media figcaption { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.labs-doc { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: var(--s2); border-radius: var(--rayon-petit); background: var(--surface-2); overflow-wrap: anywhere; text-align: center; font-size: 13px; }
.labs-livrable { margin: 0 0 var(--s4); }
.labs-livrable video { width: 100%; max-height: 70vh; border-radius: var(--rayon); background: var(--surface-3); }
.labs-livrable figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s2); }
.labs-ligne { display: flex; align-items: center; gap: var(--s3); padding: 8px 12px; margin-bottom: 6px; border-radius: var(--rayon-petit); background: var(--surface-2); }
.labs-demande { padding: var(--s2) 0; }
.labs-demande summary { cursor: pointer; }
@media (max-width: 760px) { .labs-colonnes { grid-template-columns: minmax(0, 1fr); } }
/* Fiche d'un véhicule ou d'un bien, en page (AUTO LABS, IMMO LABS, 09/11/2026) */
.fiche-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s5); align-items: start; }
.fiche-principal { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
.fiche-principal > .carte { margin: 0; }
.fiche-groupe { padding: var(--s6); }
.fiche-groupe-tete { display: flex; gap: var(--s3); align-items: flex-start; margin-bottom: var(--s5); }
.fiche-groupe-tete h2 { margin: 0; font-size: 17px; }
.fiche-groupe-tete p { margin: 2px 0 0; font-size: 13px; }
.fiche-num { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--or-doux); color: var(--or-encre); font-family: var(--titres); font-weight: 800; font-size: 13.5px; }
.fiche-champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s4); }
.fiche-champs .fiche-large { grid-column: 1 / -1; }
.fiche-champs textarea { min-height: 96px; resize: vertical; }
.fiche-cote { position: sticky; top: var(--s6); }
.fiche-apercu { margin: 0; display: flex; flex-direction: column; gap: var(--s2); padding: var(--s6); }
.fiche-apercu .sur-titre { margin: 0; }
.fiche-apercu-titre { font-family: var(--titres); font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.fiche-apercu-prix { font-family: var(--titres); font-size: 18px; font-weight: 800; color: var(--or-encre); font-variant-numeric: tabular-nums; }
.fiche-apercu-puces { display: flex; flex-wrap: wrap; gap: 6px; }
.fiche-apercu-puces:empty { display: none; }
.fiche-puce { padding: 4px 10px; border-radius: var(--rayon-pilule); background: var(--surface-2); font-size: 12.5px; font-weight: 600; color: var(--encre-2); }
.fiche-apercu-actions { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s3); }
.fiche-apercu-actions .bouton { width: 100%; justify-content: center; }
@media (max-width: 980px) {
  .fiche-page { grid-template-columns: minmax(0, 1fr); }
  .fiche-cote { position: static; order: 2; }
}
@media (max-width: 640px) {
  .fiche-champs { grid-template-columns: minmax(0, 1fr); }
  .fiche-groupe, .fiche-apercu { padding: var(--s5); }
}
/* Zone d'envoi : aperçu, progression et état de chaque fichier */
.envoi { display: flex; flex-direction: column; gap: var(--s3); }
.envoi-zone { display: flex; flex-direction: column; align-items: center; gap: var(--s2); padding: var(--s10) var(--s6); border-radius: var(--rayon); background: var(--surface-2); text-align: center; cursor: pointer; transition: background .2s; }
.envoi-zone:hover, .envoi-zone.actif, .envoi-zone:focus-within { background: var(--or-doux); }
.envoi-zone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.envoi-zone strong { font-family: var(--titres); font-size: 16px; }
.envoi-zone .bouton { pointer-events: none; }
.envoi-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); color: var(--or-encre); margin-bottom: var(--s1); }
.envoi-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.envoi-formats { font-size: 12px; color: var(--encre-3); max-width: 52ch; line-height: 1.5; margin-top: var(--s1); }
.envoi-resume { font-family: var(--titres); font-weight: 600; font-size: 13px; color: var(--encre-2); }
.envoi-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s2); }
.envoi-liste:empty { display: none; }
.envoi-item { display: flex; align-items: center; gap: var(--s3); padding: var(--s2); border-radius: var(--rayon-petit); background: var(--surface-2); min-width: 0; }
.envoi-vignette { flex: none; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--encre-2); }
.envoi-vignette img { width: 100%; height: 100%; object-fit: cover; display: block; }
.envoi-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.envoi-texte strong { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.envoi-texte small { font-size: 12px; color: var(--encre-2); }
.envoi-barre { display: block; height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.envoi-barre i { display: block; height: 100%; width: 0; background: var(--or); transition: width .2s; }
.envoi-item[data-etat="fait"] .envoi-barre i { background: var(--ok); }
.envoi-item[data-etat="fait"] small { color: var(--ok); }
.envoi-item[data-etat="erreur"] { background: var(--erreur-doux); }
.envoi-item[data-etat="erreur"] small { color: var(--erreur); }
.envoi-item[data-etat="erreur"] .envoi-barre, .envoi-item[data-etat="attente"] .envoi-barre { display: none; }
.envoi-retirer { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--surface); color: var(--encre-2); font-size: 18px; line-height: 1; cursor: pointer; }
.envoi-retirer:hover { background: var(--surface-3); color: var(--encre); }
.envoi-item[data-etat="envoi"] .envoi-retirer, .envoi-item[data-etat="fait"] .envoi-retirer { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .envoi-zone, .envoi-barre i { transition: none; } }
/* Showroom 3D d'un dossier (AUTO LABS) */
.labs-showroom-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.labs-showroom-tete h2 { margin: 0; }
.labs-showroom-cadre { display: block; width: 100%; height: min(72vh, 680px); border: 0; border-radius: var(--rayon); background: var(--surface-3); }
@media (max-width: 760px) { .labs-showroom-cadre { height: 78vh; } }
/* IMMO STUDIO (10/11/2026) : barre des sept services, livrables du service 1, état des livrables de chaque bien. */
.studio-nav { display: flex; gap: var(--s2); overflow-x: auto; padding-bottom: var(--s1); margin-bottom: var(--s5); scrollbar-width: thin; }
.studio-nav a { flex: none; display: inline-flex; align-items: center; gap: var(--s2); padding: 8px 14px 8px 8px; border-radius: var(--rayon-pilule); background: var(--surface-2); color: var(--encre-2); text-decoration: none; font-weight: 600; font-size: 13px; min-height: 40px; }
.studio-nav a span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); font-family: var(--titres); font-weight: 800; font-size: 12px; }
.studio-nav a:hover, .studio-nav a:focus-visible { background: var(--surface-3); color: var(--encre); }
.studio-nav a.a-venir { color: var(--encre-3); }
.studio-nav a.actif { background: var(--encre); color: var(--fond); }
.studio-nav a.actif span { background: var(--or); color: var(--or-encre); }
.studio-livrables { margin: 0 0 var(--s4); padding: 0; list-style: none; counter-reset: livrable; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.studio-livrables li { counter-increment: livrable; display: flex; flex-direction: column; gap: 4px; padding: var(--s4); border-radius: var(--rayon); background: var(--surface); font-size: 13px; }
.studio-livrables li strong { font-family: var(--titres); font-size: 15px; }
.studio-livrables li strong::before { content: counter(livrable) ". "; color: var(--or-encre); }
.studio-biens { display: flex; flex-direction: column; gap: var(--s2); }
.studio-bien { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 2.2fr); gap: var(--s4); align-items: center; padding: var(--s2); padding-right: var(--s4); border-radius: var(--rayon); background: var(--surface); color: var(--encre); text-decoration: none; }
.studio-bien:hover, .studio-bien:focus-visible { background: var(--surface-2); }
.studio-bien .labs-vignette { aspect-ratio: 4 / 3; border-radius: var(--rayon-petit); overflow: hidden; }
.studio-bien .labs-vignette .monogramme { font-size: 20px; }
.studio-bien-texte { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.studio-bien-texte strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-etats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.studio-etat { display: flex; flex-direction: column; gap: 4px; font-size: 12px; min-width: 0; }
.studio-etat .badge { align-self: flex-start; }
.studio-progres { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; margin-top: var(--s2); }
.studio-progres i { display: block; height: 100%; width: 0; background: var(--or); transition: width .3s; }
.studio-atelier-etat { margin-bottom: var(--s3); }
.studio-atelier-etat p { margin: 0 0 var(--s1); }
.studio-journal { margin: var(--s2) 0 0; padding: var(--s3); border-radius: var(--rayon-petit); background: var(--surface-2); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 240px; overflow: auto; }
.studio-lien label { display: block; font-weight: 700; margin-bottom: var(--s1); }
.studio-lien-ligne { display: flex; gap: var(--s2); flex-wrap: wrap; }
.studio-lien-ligne input { flex: 1 1 260px; min-width: 0; font-size: 13px; }
.studio-video video { max-width: 420px; aspect-ratio: 9 / 16; object-fit: contain; }
@media (max-width: 1100px) {
  .studio-livrables { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-bien { grid-template-columns: 80px minmax(0, 1fr); }
  .studio-etats { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .studio-livrables { grid-template-columns: minmax(0, 1fr); }
  .studio-etats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .studio-progres i { transition: none; } }
/* IMMO STUDIO, pages des services 2 à 7 : galerie des images livrées */
.studio-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s3); margin-top: var(--s3); }
.studio-galerie a { display: flex; flex-direction: column; gap: 6px; color: var(--encre-2); text-decoration: none; font-size: 12.5px; }
.studio-galerie img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--rayon-petit); background: var(--surface-3); }
.studio-galerie a:hover span, .studio-galerie a:focus-visible span { color: var(--encre); }
.studio-service-bien h2 { margin: 0 0 4px; }
.studio-service-bien h2 a { color: inherit; text-decoration: none; }

/* LA MACHINE (13/11/2026) : lignes de mission, fiche d'un agent, journal d'une mission. */
.ligne-mission { display: flex; align-items: center; gap: var(--s4); color: inherit; text-decoration: none; }
.pile-badges { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s1); }
.carte-mini.a-venir .carte-mini-tete { filter: grayscale(1); }
.carte-mini.a-venir strong { color: var(--encre-2); }
.fiche-dl { display: grid; grid-template-columns: 9em 1fr; gap: var(--s2) var(--s3); margin: 0; }
.fiche-dl dt { color: var(--encre-3); font-weight: 600; }
.fiche-dl dd { margin: 0; overflow-wrap: anywhere; }
.journal-mission { margin: 0; padding-left: var(--s5); font: 13px var(--mono); display: flex; flex-direction: column; gap: var(--s1); max-height: 420px; overflow: auto; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .fiche-dl { grid-template-columns: 1fr; }
  .fiche-dl dt { margin-top: var(--s2); }
  .ligne-mission { flex-wrap: wrap; }
}

/* LA MACHINE, plateau en direct (13/11/2026) : séparation par les fonds, aucun trait ni ombre. */
.pl-mission { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4); background: var(--surface); border-radius: var(--rayon); padding: var(--s5); margin-bottom: var(--s4); }
.pl-mission h2 { margin: var(--s1) 0; font-size: 18px; }
.pl-mission h2 a { color: inherit; text-decoration: none; }
.pl-direct { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--or); margin-right: var(--s2); vertical-align: 1px; }
.pl-chef { display: flex; align-items: center; gap: var(--s4); background: var(--surface-2); border-radius: var(--rayon); padding: var(--s4) var(--s5); margin-bottom: var(--s5); }
.pl-chef.actif { background: var(--or-doux); }
.pl-chef strong { display: block; font-size: 16px; margin: 2px 0; }
.pl-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s3); margin-bottom: var(--s5); }
.pl-poste { display: flex; gap: var(--s3); align-items: flex-start; background: var(--surface); border-radius: var(--rayon); padding: var(--s4); color: inherit; text-decoration: none; }
.pl-poste.actif { background: var(--or-doux); }
.pl-tete { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--surface-2); display: block; }
.pl-tete.grande { width: 72px; height: 72px; }
.pl-tete svg, .pl-mini svg { width: 100%; height: 100%; display: block; }
.pl-texte { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pl-texte .discret { overflow-wrap: anywhere; }
.pl-bulle { align-self: flex-start; background: var(--surface); border-radius: var(--rayon-petit); padding: 6px 10px; font-size: 13px; overflow-wrap: anywhere; }
.pl-chiffres { font-size: 12px; color: var(--encre-3); }
.pl-bas { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s5); }
.pl-fil { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.pl-fil li { display: grid; grid-template-columns: 32px 1fr auto; gap: var(--s3); align-items: center; background: var(--surface); border-radius: var(--rayon-petit); padding: var(--s2) var(--s3); font-size: 13.5px; }
.pl-mini { display: inline-block; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--surface-2); }
.pl-repos { display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s3); }
.pl-repos > div { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-repos .pl-mini { filter: grayscale(1); }
@media (prefers-reduced-motion: no-preference) {
  .pl-direct { animation: pl-pouls 1.4s ease-in-out infinite; }
  .pl-poste.actif .pl-tete svg, .pl-chef.actif .pl-tete svg { animation: pl-travail 2.4s ease-in-out infinite; }
  .pl-poste { transition: background-color .2s ease-out; }
}
@keyframes pl-pouls { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }
@keyframes pl-travail { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (max-width: 760px) { .pl-bas { grid-template-columns: 1fr; } .pl-mission { flex-direction: column; } }

/* Google en action (13/11/2026) : tuiles, fil, pastilles par service ; séparation par les fonds, aucun trait ni ombre. */
.go-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: var(--s3); margin: var(--s4) 0 var(--s5); }
.go-tuile { background: var(--surface); border-radius: var(--rayon); padding: var(--s4); display: flex; flex-direction: column; gap: 4px; }
.go-tuile strong { font-size: 22px; line-height: 1.2; }
.go-tuile.ok strong { color: #1e7d3a; }
.go-tuile.erreur { background: #fbe9e7; }
.go-tuile.erreur strong { color: #b3261e; }
.go-tuile-titre { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-3); }
.go-barre { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: var(--s2); }
.go-barre span { display: block; height: 100%; background: #1e8e3e; border-radius: 999px; }
.go-deux { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s5); align-items: start; }
.go-fil, .go-tourne, .go-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.go-fil li { display: grid; grid-template-columns: 78px 1fr auto; gap: var(--s3); align-items: center; background: var(--surface); border-radius: var(--rayon-petit); padding: var(--s2) var(--s3); font-size: 13.5px; }
.go-tourne li { display: grid; grid-template-columns: 78px 1fr; gap: var(--s3); align-items: start; background: var(--surface); border-radius: var(--rayon-petit); padding: var(--s3); margin-bottom: var(--s2); }
.go-tourne { margin-bottom: var(--s3); }
.go-liste li { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--s3); background: var(--surface-2); border-radius: var(--rayon-petit); padding: var(--s3); }
.go-liste li .discret { grid-column: 1; font-size: 12px; overflow-wrap: anywhere; }
.go-liste li > span:last-child { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 700; }
.go-pastille { display: inline-block; text-align: center; font-size: 11.5px; font-weight: 700; color: #ffffff; border-radius: 999px; padding: 3px 8px; background: #5f6368; }
.go-drive { background: #1e8e3e; } .go-sheets { background: #137333; } .go-gmail { background: #c5221f; } .go-agenda { background: #1a73e8; } .go-autre { background: #5f6368; }
.go-classeurs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--s3); }
.go-classeur { display: flex; flex-direction: column; gap: var(--s2); align-items: flex-start; }
.go-classeur h3 { margin: 0; font-size: 16px; }
.go-grand { font-size: 26px; font-weight: 700; margin: 0; }
.go-reponse { background: var(--surface-2); border-radius: var(--rayon-petit); padding: var(--s4); max-height: 360px; overflow: auto; }
@media (max-width: 760px) { .go-deux { grid-template-columns: 1fr; } .go-fil li { grid-template-columns: 70px 1fr; } .go-fil li time { grid-column: 2; } }
.go-classeur h3 { text-transform: none; letter-spacing: 0; font-size: 17px; color: var(--encre); }

/* Automatisations vivantes (13/11/2026) : pastilles d'historique, chiffres, journée, passages. */
.au-pastilles { display: inline-flex; gap: 3px; align-items: center; }
.au-p { display: inline-block; width: 10px; height: 18px; border-radius: 3px; background: var(--surface-3); }
.au-ok { background: #1e8e3e; } .au-rien { background: #9aa0a6; } .au-echec { background: #c5221f; } .au-en_cours, .au-attente { background: #1a73e8; }
.au-stats { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: center; font-size: 13px; color: var(--encre-2); margin: var(--s2) 0; }
.au-stats strong { color: var(--encre); }
.au-extrait { background: var(--surface-2); border-radius: var(--rayon-petit); padding: var(--s3); font-size: 13.5px; margin: var(--s2) 0; overflow-wrap: anywhere; }
.au-carte h2 a { color: inherit; text-decoration: none; }
.au-jour { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.au-jour li { display: grid; grid-template-columns: 52px 36px 1fr auto; gap: var(--s3); align-items: center; background: var(--surface); border-radius: var(--rayon-petit); padding: var(--s2) var(--s3); font-size: 13.5px; }
.au-jour li time { font-weight: 700; font-variant-numeric: tabular-nums; }
.au-jour li a { color: inherit; text-decoration: none; }
.au-jour .fil-tete { width: 32px; height: 32px; }
.au-filtres { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin-top: var(--s5); }
.au-filtres input[type="search"] { flex: 1 1 220px; max-width: 320px; }
.au-passage summary { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; cursor: pointer; list-style: none; }
.au-passage summary::-webkit-details-marker { display: none; }
.au-passage[open] summary { margin-bottom: var(--s3); }
@media (max-width: 640px) { .au-jour li { grid-template-columns: 48px 1fr auto; } .au-jour li .fil-tete { display: none; } }
.au-plus { margin-top: var(--s2); } .au-plus summary { cursor: pointer; color: var(--or-encre); font-weight: 600; padding: var(--s2) 0; }

/* Serveur en direct (13/11/2026). */
.srv-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.srv-liste li { display: grid; grid-template-columns: 12px 1fr auto; gap: var(--s3); align-items: center; background: var(--surface); border-radius: var(--rayon-petit); padding: var(--s2) var(--s3); font-size: 13.5px; }
.srv-point { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.srv-point.srv-ok { background: #1e8e3e; } .srv-point.srv-alerte { background: #e8a33d; } .srv-point.srv-erreur { background: #c5221f; }
.go-barre.srv-alerte span { background: #e8a33d; } .go-barre.srv-erreur span { background: #c5221f; }
.go-tuile.alerte strong { color: #9a5b00; }
.pilule-lien { font: inherit; font-size: 12.5px; background: var(--surface-2); color: var(--encre); border: 0; border-radius: 999px; padding: 3px 10px; margin: 2px 2px 2px 0; cursor: pointer; } .pilule-lien:hover { background: var(--surface-3); }
/* Évolution (13/11/2026) */
.ev-decisions { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ev-decision { background: var(--surface); border-radius: 14px; padding: 16px 18px; }
.ev-decision p { margin: 8px 0; }
.ev-decision-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ev-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; }
.ev-images img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.ev-concurrents { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.ev-concurrents li { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 12px; padding: 12px 14px; }
.ev-concurrents .ev-c-nom { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ev-ajout { display: grid; grid-template-columns: 2fr 1fr 1.5fr auto; gap: 12px; align-items: end; background: var(--surface); border-radius: 14px; padding: 16px; }
.ev-ajout .champ { margin: 0; }
@media (max-width: 760px) { .ev-ajout { grid-template-columns: 1fr; } }
/* Crédits du staff (lovable.wapidi.com, 14/11/2026) : des chiffres simples, sans dollar. */
.tuiles-credits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin: var(--s3) 0; }
.tuiles-credits > div { background: var(--surface-2); border-radius: var(--rayon); padding: var(--s3) var(--s4); display: grid; gap: var(--s1, 4px); }
.tuiles-credits b { font-family: var(--titres); font-size: 1.6rem; color: var(--encre); font-variant-numeric: tabular-nums; }
.tuiles-credits span { color: var(--encre-3); font-size: .85rem; }
@media (max-width: 520px) { .tuiles-credits { grid-template-columns: 1fr; } }
