/* Tableau de bord client Msolutions-ai : gabarit (06/12/2026).
   Toute la charte du client passe par les variables ci-dessous, posées par app.js depuis sa fiche
   (couleurs clair et sombre, polices, rayon, matière de fond). Aucun contrôle natif du navigateur. */
:root {
  --fond: #EDECE8; --matiere: none; --carte: #FDFDFD; --carte-2: #F3F2EE;
  --encre: #0E0E0E; --encre-2: #444444; --encre-3: #616161;
  --trait: rgba(14, 14, 14, .13); --trait-fort: rgba(14, 14, 14, .3);
  --accent: #FF6A1F; --accent-texte: #B04600; --sur-accent: #140600;
  --serie-1: #eb6834; --serie-2: #2a78d6; --serie-3: #1baf7a; --serie-4: #eda100;
  --bon: #17703f; --mauvais: #b3261e;
  --police-titre: "Archivo", system-ui, sans-serif; --police-texte: "Archivo", system-ui, sans-serif;
  --graisse-titre: 800; --casse-titre: uppercase; --chasse-chiffre: 88%; --espace-titre: .01em;
  --rayon: 14px; --rayon-petit: 9px; --rayon-bouton: 999px;
}
html[data-theme="sombre"] { --bon: #4cc38a; --mauvais: #ff7b6e; color-scheme: dark; }
html[data-theme="clair"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--trait-fort) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--trait-fort); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }
body {
  margin: 0; min-height: 100vh; background: var(--fond) var(--matiere) center top / 1074px auto;
  color: var(--encre); font: 400 15px/1.45 var(--police-texte); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent-texte); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--sur-accent); }
[hidden] { display: none !important; }
.attente { min-height: 100vh; margin: 0; display: grid; place-items: center; color: var(--encre-3); font-size: 14px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.page { max-width: 1240px; margin: 0 auto; padding: 18px clamp(14px, 3vw, 32px) 40px; }

/* ── En-tête ── */
.tete { display: flex; align-items: center; gap: 18px; padding: 6px 0 16px; }
.tete__logo { display: flex; align-items: center; flex: none; color: var(--encre); }
.tete__logo svg, .tete__logo img { display: block; height: 34px; width: auto; }
.tete__nom { font: var(--graisse-titre) 22px/1 var(--police-titre); letter-spacing: var(--espace-titre); }
.tete__titre { margin: 0; padding-left: 18px; border-left: 1px solid var(--trait-fort); font: var(--graisse-titre) 15px/1.1 var(--police-titre); text-transform: var(--casse-titre); letter-spacing: var(--espace-titre); }
.tete__vide { flex: 1; }
.tete__outils { display: flex; align-items: center; gap: 8px; }
.rond { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--trait-fort); background: var(--carte); transition: background .18s, border-color .18s, transform .18s; }
.rond:hover { border-color: var(--encre); }
.rond:active { transform: scale(.94); }
.rond svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Logo Msolutions-ai : l'emblème d'origine, sans fond. Dessiné pour un fond sombre, il est inversé en thème clair. */
.msol { display: inline-flex; flex: none; line-height: 0; border-radius: 50%; }
.embleme { display: block; width: 30px; height: 30px; opacity: .9; }
html[data-theme="clair"] .embleme { filter: invert(1); }
.tete .msol .embleme { width: 38px; height: 38px; }

.barre { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.onglets { display: flex; gap: 4px; }
.onglet { position: relative; padding: 10px 16px 12px; font: var(--graisse-titre) 15px/1 var(--police-titre); text-transform: var(--casse-titre); letter-spacing: var(--espace-titre); color: var(--encre-3); transition: color .18s; white-space: nowrap; }
.onglet::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .28s cubic-bezier(.2, .7, .2, 1); }
.onglet:hover { color: var(--encre); }
.onglet[aria-selected="true"] { color: var(--encre); }
.onglet[aria-selected="true"]::after { transform: scaleX(1); }
.onglet b { margin-left: 7px; padding: 2px 7px; border-radius: 999px; background: var(--encre); color: var(--carte); font: 700 11.5px/1.3 var(--police-texte); letter-spacing: 0; vertical-align: 2px; }

.choix { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--rayon-bouton); background: var(--carte); border: 1px solid var(--trait-fort); }
.choix button { padding: 7px 14px; border-radius: var(--rayon-bouton); font-weight: 600; font-size: 13.5px; line-height: 1.2; color: var(--encre-2); white-space: nowrap; transition: background .18s, color .18s; }
.choix button:hover { color: var(--encre); }
.choix button[aria-pressed="true"] { background: var(--encre); color: var(--carte); }
.choix--petit button { padding: 5px 11px; font-size: 12.5px; }

.etat { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 12px 0 16px; padding-top: 12px; border-top: 1px solid var(--trait-fort); font-size: 12.5px; color: var(--encre-3); }
.etat b { font-weight: 600; color: var(--encre-2); }
.etat .essai { margin-left: auto; padding: 1px 8px; border: 1px dashed var(--trait-fort); border-radius: 999px; }

/* ── Cartes ── */
.grille { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.carte { grid-column: span 12; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 20px 22px 22px; min-width: 0; }
.c-7 { grid-column: span 7; } .c-5 { grid-column: span 5; } .c-4 { grid-column: span 4; } .c-6 { grid-column: span 6; } .c-8 { grid-column: span 8; }
.carte__tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 14px; }
.carte__titre { margin: 0; font: var(--graisse-titre) 15.5px/1.15 var(--police-titre); text-transform: var(--casse-titre); letter-spacing: var(--espace-titre); }
.carte__periode { font-size: 12.5px; color: var(--encre-3); }
.entre { animation: entre .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes entre { from { opacity: 0; transform: translateY(10px); } }

.grand { display: flex; align-items: flex-end; gap: 14px 18px; flex-wrap: wrap; margin-bottom: 18px; }
.grand__n { font: var(--graisse-titre) clamp(64px, 9vw, 108px)/.82 var(--police-titre); font-stretch: var(--chasse-chiffre); letter-spacing: -.02em; }
.grand__sur { font: 600 clamp(22px, 3vw, 30px)/1 var(--police-titre); color: var(--encre-3); padding-bottom: 6px; }
.ecart { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--encre-3); padding-bottom: 7px; }
.ecart b { font-weight: 700; font-size: 14px; }
.ecart--plus b { color: var(--bon); } .ecart--moins b { color: var(--mauvais); }

/* Barre découpée (répartition d'un tout) */
.seg { display: flex; gap: 2px; height: 28px; margin-bottom: 12px; }
.seg__bloc { min-width: 3px; border-radius: 4px; background: var(--c); color: var(--t); display: flex; align-items: center; padding-left: 8px; font: 700 12.5px/1 var(--police-texte); overflow: visible; white-space: nowrap; transition: filter .15s; }
.seg__bloc:hover { filter: brightness(1.08); }
.seg--fin { height: 8px; } .seg--fin .seg__bloc { border-radius: 999px; padding: 0; }

/* Lignes chiffrées : libellé, volume / total, part */
.lignes { list-style: none; margin: 0; padding: 0; }
.lignes > li { border-top: 1px solid var(--trait); }
.lignes > li:first-child { border-top: 0; }
.rang { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto 62px; align-items: center; gap: 12px; padding: 10px 0; }
button.rang { transition: padding .18s; }
button.rang:hover { padding-left: 6px; }
.rang__nom { display: flex; align-items: center; gap: 9px; min-width: 0; font-weight: 500; }
.rang__nom span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rang__nom i { font-style: normal; color: var(--encre-3); font-size: 12.5px; flex: none; }
.puce { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--encre)); }
.rang__val { white-space: nowrap; color: var(--encre-3); font-size: 13.5px; }
.rang__val b { color: var(--encre); font-weight: 700; font-size: 15px; }
.rang__part { text-align: right; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.rang__barre { grid-column: 1 / -1; height: 4px; margin-top: -3px; background: var(--trait); border-radius: 999px; overflow: hidden; }
.rang__barre i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transform-origin: left; animation: pousse .7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes pousse { from { transform: scaleX(0); } }
.chevron { flex: none; width: 9px; height: 9px; border-right: 2px solid var(--encre-3); border-bottom: 2px solid var(--encre-3); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
[aria-expanded="true"] > .rang__nom .chevron, [aria-expanded="true"] > .chevron { transform: rotate(-135deg) translate(-2px, -2px); }

.detail { padding: 2px 0 12px 19px; animation: ouvre .28s ease both; }
@keyframes ouvre { from { opacity: 0; transform: translateY(-4px); } }
.mini { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--trait-fort); }
.mini button { width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; padding: 7px 0 7px 12px; font-size: 13.5px; align-items: baseline; }
.mini button:hover b { text-decoration: underline; text-underline-offset: 3px; }
.mini time { color: var(--encre-3); }
.mini b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini i { font-style: normal; color: var(--encre-3); white-space: nowrap; }
.lien { margin: 8px 0 0 12px; font-weight: 600; font-size: 13.5px; color: var(--accent-texte); text-decoration: underline; text-underline-offset: 3px; }

/* Bandeau de chiffres (audience) */
.bandeau { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 -22px; border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.carte > .bandeau:last-child { border-bottom: 0; margin-bottom: -22px; }
.chiffre { padding: 16px 22px 14px; border-left: 1px solid var(--trait); position: relative; display: block; width: 100%; }
.chiffre:first-child { border-left: 0; }
button.chiffre { transition: background .18s; }
button.chiffre:hover { background: var(--carte-2); }
button.chiffre[aria-pressed="true"]::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 4px; background: var(--accent); }
.chiffre__nom { display: block; font-size: 13px; font-weight: 600; color: var(--encre-2); }
.chiffre__n { display: block; margin: 6px 0 4px; font: var(--graisse-titre) clamp(30px, 3.6vw, 42px)/1 var(--police-titre); font-stretch: var(--chasse-chiffre); letter-spacing: -.01em; }
.chiffre__n small { font: 600 15px/1 var(--police-texte); color: var(--encre-3); letter-spacing: 0; }
.chiffre .ecart { padding: 0; font-size: 12.5px; }
.chiffre .ecart b { font-size: 13px; }
.trace { display: block; width: 100%; height: 26px; margin-top: 8px; overflow: visible; }

.graphe-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 6px; }
.graphe-tete h3, .sous-titre { margin: 0; font: 600 13.5px/1.2 var(--police-texte); color: var(--encre-2); }
.graphe { position: relative; width: 100%; }
.graphe svg { display: block; width: 100%; overflow: visible; touch-action: pan-y; }
.graphe text { font: 500 11.5px var(--police-texte); fill: var(--encre-3); }
.graphe .valeur { font-weight: 700; font-size: 12.5px; fill: var(--encre); paint-order: stroke; stroke: var(--carte); stroke-width: 4px; stroke-linejoin: round; }
.table-vue { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table-vue th, .table-vue td { padding: 7px 10px 7px 0; border-top: 1px solid var(--trait); text-align: right; font-weight: 500; }
.table-vue th:first-child, .table-vue td:first-child { text-align: left; }
.table-vue thead th { border-top: 0; color: var(--encre-3); font-weight: 600; }
.defile { max-height: 330px; overflow: auto; }

/* Entonnoir */
.etape { padding: 11px 0; border-top: 1px solid var(--trait); }
.etape:first-child { border-top: 0; padding-top: 0; }
.etape__haut { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.etape__haut span { font-weight: 500; }
.etape__haut b { font: var(--graisse-titre) 22px/1 var(--police-titre); font-stretch: var(--chasse-chiffre); }
.etape__haut i { font-style: normal; color: var(--encre-3); font-size: 13px; margin-left: 6px; }
.etape__barre { height: 10px; margin-top: 8px; background: var(--trait); border-radius: 999px; overflow: hidden; }
.etape__barre i { display: block; height: 100%; border-radius: 999px; background: var(--accent); transform-origin: left; animation: pousse .8s cubic-bezier(.2, .7, .2, 1) both; }
.etape__part { margin-top: 5px; font-size: 12.5px; color: var(--encre-3); }
.etape__part b { color: var(--encre); font-weight: 700; }

/* ── Contacts ── */
.outils { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.cherche { position: relative; flex: 1 1 260px; min-width: 200px; }
.cherche svg { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); stroke: var(--encre-3); fill: none; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.cherche input { width: 100%; height: 42px; padding: 0 40px 0 40px; border-radius: var(--rayon-bouton); border: 1px solid var(--trait-fort); background: var(--carte); font-size: 14.5px; appearance: none; -webkit-appearance: none; transition: border-color .18s, box-shadow .18s; }
.cherche input::placeholder { color: var(--encre-3); }
.cherche input:focus { border-color: var(--encre); box-shadow: 0 0 0 3px var(--trait); outline: none; }
.cherche__vide { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--encre-3); }
.cherche__vide:hover { background: var(--carte-2); color: var(--encre); }
.cherche__vide svg { position: static; transform: none; width: 12px; height: 12px; stroke: currentColor; }

.pastilles { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pastille { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: var(--rayon-bouton); border: 1px solid var(--trait-fort); background: var(--carte); font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: background .18s, color .18s, border-color .18s; }
.pastille:hover { border-color: var(--encre); }
.pastille b { font-weight: 700; color: var(--encre-3); }
.pastille[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: var(--carte); }
.pastille[aria-pressed="true"] b { color: inherit; opacity: .7; }

.liste-choix { position: relative; }
.liste-choix__bouton { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border-radius: var(--rayon-bouton); border: 1px solid var(--trait-fort); background: var(--carte); font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: border-color .18s; }
.liste-choix__bouton:hover, .liste-choix__bouton[aria-expanded="true"] { border-color: var(--encre); }
.liste-choix__bouton.actif { background: var(--encre); border-color: var(--encre); color: var(--carte); }
.liste-choix__bouton.actif .chevron { border-color: var(--carte); }
.liste-choix__bouton .chevron { width: 8px; height: 8px; }
.liste-choix__menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 100%; max-height: 300px; overflow: auto; padding: 6px; background: var(--carte); border: 1px solid var(--trait-fort); border-radius: var(--rayon); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .35); animation: ouvre .18s ease both; }
.liste-choix__menu--droite { left: auto; right: 0; }
.liste-choix__menu button { display: flex; justify-content: space-between; gap: 18px; width: 100%; padding: 9px 12px; border-radius: var(--rayon-petit); font-size: 14px; white-space: nowrap; }
.liste-choix__menu button:hover, .liste-choix__menu button:focus-visible { background: var(--carte-2); outline: none; }
.liste-choix__menu button[aria-selected="true"] { font-weight: 700; box-shadow: inset 3px 0 0 var(--accent); }
.liste-choix__menu button i { font-style: normal; color: var(--encre-3); }

.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: var(--rayon-bouton); background: var(--accent); color: var(--sur-accent); font-weight: 700; font-size: 14px; white-space: nowrap; text-decoration: none; transition: transform .15s, filter .18s, background .18s; }
.bouton:hover { filter: brightness(1.06); }
.bouton:active { transform: scale(.97); }
.bouton--trait { background: transparent; color: var(--encre); border: 1px solid var(--trait-fort); }
.bouton--trait:hover { border-color: var(--encre); filter: none; }
.bouton--fait { background: var(--bon); color: #fff; }
.bouton--petit { height: 36px; padding: 0 15px; font-size: 13.5px; }
.coche { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.compte { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 10px; }
.compte p { margin: 0; font-size: 13.5px; color: var(--encre-3); }
.compte p b { font: var(--graisse-titre) 22px/1 var(--police-titre); font-stretch: var(--chasse-chiffre); color: var(--encre); margin-right: 2px; }

.col { --colonnes: 86px minmax(150px, 1.25fr) 132px 150px minmax(140px, 1.2fr) 112px; }
.entetes { display: grid; grid-template-columns: minmax(0, 1fr) 118px; border-bottom: 1px solid var(--trait-fort); }
.entetes__cols { display: grid; grid-template-columns: var(--colonnes); gap: 14px; }
.entetes button, .entetes span { padding: 8px 0; font-size: 12.5px; font-weight: 600; color: var(--encre-3); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.entetes button:hover { color: var(--encre); }
.entetes button[aria-sort="ascending"], .entetes button[aria-sort="descending"] { color: var(--encre); }
.tri { width: 0; height: 0; border: 4px solid transparent; border-top: 5px solid currentColor; margin-top: 4px; opacity: 0; }
[aria-sort="descending"] .tri { opacity: 1; }
[aria-sort="ascending"] .tri { opacity: 1; transform: rotate(180deg); margin-top: -5px; }
.ligne { display: grid; grid-template-columns: minmax(0, 1fr) 118px; align-items: center; border-bottom: 1px solid var(--trait); }
.ligne__tete { display: grid; grid-template-columns: var(--colonnes); gap: 14px; align-items: center; padding: 12px 0; min-width: 0; transition: background .15s; }
.ligne__tete:hover { background: var(--carte-2); }
.ligne__tete > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.ligne__tete i { font-style: normal; color: var(--encre-3); font-size: 12.5px; }
.c-date { padding-left: 6px; }
.c-date i, .c-nom i { display: block; }
.c-nom b { font-weight: 700; display: block; overflow: hidden; text-overflow: ellipsis; }
.c-type { display: inline-flex !important; align-items: center; gap: 8px; }
.suivi { justify-self: end; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: var(--rayon-bouton); border: 1px solid var(--trait-fort); font-weight: 600; font-size: 12.5px; white-space: nowrap; transition: background .18s, border-color .18s, color .18s; }
.suivi::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.suivi:hover { border-color: var(--encre); }
.suivi[aria-pressed="true"] { border-color: transparent; background: var(--carte-2); color: var(--encre-3); }
.suivi[aria-pressed="true"]::before { background: none; width: 11px; height: 6px; border-radius: 0; border-left: 2px solid var(--bon); border-bottom: 2px solid var(--bon); transform: rotate(-45deg) translateY(-2px); }
.fiche { grid-column: 1 / -1; padding: 4px 6px 18px; animation: ouvre .28s ease both; }
.fiche dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px 22px; margin: 0 0 14px; padding: 16px 18px; background: var(--carte-2); border-radius: var(--rayon-petit); }
.fiche dt { font-size: 12px; color: var(--encre-3); font-weight: 600; }
.fiche dd { margin: 2px 0 0; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.fiche .large { grid-column: 1 / -1; }
.fiche__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.vide { padding: 34px 0 20px; text-align: center; color: var(--encre-3); }
.vide b { display: block; font: var(--graisse-titre) 40px/1 var(--police-titre); color: var(--encre); margin-bottom: 6px; }
.suite { display: flex; justify-content: center; padding-top: 16px; }

/* ── États : message plein écran, statistiques absentes, actualisation ── */
.message { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.message__carte { width: min(430px, 100%); background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 34px 30px 26px; }
.message h1 { margin: 0 0 10px; font: var(--graisse-titre) 24px/1.1 var(--police-titre); text-transform: var(--casse-titre); letter-spacing: var(--espace-titre); }
.message p { margin: 0; color: var(--encre-2); }
.sans-stats { padding: 26px 0 10px; text-align: center; color: var(--encre-3); }
.sans-stats b { display: block; font: var(--graisse-titre) 18px/1.2 var(--police-titre); text-transform: var(--casse-titre); letter-spacing: var(--espace-titre); color: var(--encre); margin-bottom: 6px; }
.rond.tourne svg { animation: tourne .8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.bouton[disabled] { opacity: .55; cursor: default; }
.bouton[disabled]:hover { filter: none; }
.bouton--fait[disabled] { opacity: 1; }
a.bouton { text-decoration: none; }

/* ── Pied ── */
.pied { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--trait-fort); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; font-size: 12.5px; color: var(--encre-3); }
.pied__faits { display: flex; flex-wrap: wrap; gap: 3px 18px; flex: 1 1 320px; }
.pied__faits b { color: var(--encre-2); font-weight: 600; }
.pied__reglage { display: flex; align-items: center; gap: 8px; }
.pied__maquette { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border: 1px dashed var(--trait-fort); border-radius: 999px; }

/* ── Bulle (survol des graphiques, confirmations) ── */
.bulle { position: fixed; z-index: 60; pointer-events: none; padding: 8px 11px; border-radius: 9px; background: var(--encre); color: var(--carte); font-size: 12.5px; line-height: 1.35; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); white-space: nowrap; }
.bulle b { display: block; font: 800 16px/1.1 var(--police-titre); }
.bulle--note { left: 50% !important; top: auto !important; bottom: 22px; transform: translateX(-50%); padding: 11px 16px; font-size: 13.5px; font-weight: 600; animation: ouvre .22s ease both; }

/* ── Écran d'accès : composant « Auth Section 3 » (21st.dev, solaceui), porté sans React et mis à la charte du client.
   Mesures reprises du modèle : marge 12 px, deux panneaux 0,94 / 1,06, contenu de 460 px, champs et bouton de 44 px,
   aperçu incliné de 3 degrés qui sort du panneau par le bas. ── */
.auth { min-height: 100vh; min-height: 100svh; padding: 12px; background: var(--fond) var(--matiere) center top / 1074px auto; }
.auth__grille { display: grid; gap: 12px; min-height: calc(100svh - 24px); }
.auth__form { position: relative; display: flex; align-items: center; justify-content: center; padding: 44px 24px; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); }
.auth__int { width: 100%; max-width: 460px; margin: 0 auto; }
.auth__theme { position: absolute; top: 16px; right: 16px; }
.auth__logo { display: flex; justify-content: center; color: var(--encre); margin-bottom: 30px; }
.auth__logo svg, .auth__logo img { height: 40px; width: auto; display: block; }
.auth h1 { margin: 0 0 30px; text-align: center; font: var(--graisse-titre) clamp(30px, 4vw, 38px)/1.05 var(--police-titre); text-transform: var(--casse-titre); letter-spacing: var(--espace-titre); }
.fort { background: var(--accent); color: var(--sur-accent); padding: 0 .16em; }
.auth__champ label { display: block; margin-bottom: 7px; font-size: 12.5px; font-weight: 600; color: var(--encre-2); }
.auth__champ input { width: 100%; height: 46px; padding: 0 15px; border-radius: var(--rayon-petit); border: 1px solid var(--trait-fort); background: var(--carte); font: 600 17px/1 var(--police-texte); letter-spacing: .16em; text-transform: lowercase; appearance: none; -webkit-appearance: none; transition: border-color .18s, box-shadow .18s; }
.auth__champ input:focus { border-color: var(--encre); box-shadow: 0 0 0 3px var(--trait); }
.auth__champ input.faux { border-color: var(--mauvais); animation: secoue .36s; }
.auth__champ input:disabled { opacity: .6; }
@keyframes secoue { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.acces__erreur { min-height: 20px; margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--mauvais); }
.garder { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; font-size: 13px; color: var(--encre-2); width: 100%; }
.garder__case { flex: none; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--trait-fort); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.garder[aria-checked="true"] .garder__case { background: var(--encre); border-color: var(--encre); color: var(--carte); }
.garder__case svg { opacity: 0; width: 10px; height: 10px; }
.garder[aria-checked="true"] .garder__case svg { opacity: 1; }
.auth .bouton { width: 100%; height: 46px; margin-top: 30px; font-size: 15px; }
/* Signature de l'atelier : le composant de la connexion Konectus (emblème, texte, un seul lien vers le site). */
.signe { display: flex; justify-content: center; margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--trait); }
.signe__lien { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 8px; border-radius: 999px; font-size: 13px; line-height: 1; color: var(--encre-2); text-decoration: none; transition: color .18s, background .18s; }
.signe__lien span { white-space: nowrap; }
.signe__lien:hover { color: var(--encre); background: var(--carte-2); }
.signe__lien b { color: var(--encre); font-weight: 700; }
.signe__coeur { color: #f5365c; font-style: normal; }
/* Sur l'écran de connexion, l'emblème est plus grand (demande de Mehdi, 06/12/2026). */
.auth .signe .embleme { width: 48px; height: 48px; }
.auth .signe__lien { gap: 12px; }
.signe--pied { margin: 0; padding: 0; border: 0; }
.signe--pied .signe__lien { margin-left: -8px; }

.auth__visuel { position: relative; overflow: hidden; min-height: 470px; padding: 32px; border-radius: var(--rayon); color: #fff; background: linear-gradient(to bottom, var(--acces-haut, #000), var(--acces-bas, #fff)); }
.auth__verre { position: absolute; inset: 0; pointer-events: none; }
.auth__verre:not(.pose) { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, rgba(255, 255, 255, 0) 1px 46px, rgba(0, 0, 0, .2) 46px 48px); }
.auth__verre canvas { display: block; width: 100%; height: 100%; }
.auth__contenu { position: relative; z-index: 1; height: 100%; }
.auth__texte { max-width: 460px; }
/* L'emblème Msolutions-ai dans le coin haut droit du panneau (06/12/2026). Le panneau est toujours sombre : l'emblème y
   garde son dessin d'origine. Il est posé en deux couches du même fichier, découpées par un masque rond : la tête reste
   fixe, l'anneau tourne très lentement (un tour en 40 secondes). Dans l'image, la tête tient dans 48 % du rayon et
   l'anneau commence à 60 % : le masque coupe à 55 %. */
.auth__msol { position: absolute; top: 20px; right: 20px; z-index: 2; width: 68px; height: 68px; border-radius: 50%; }
.auth__msol img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: .95; }
.orbite__coeur { -webkit-mask: radial-gradient(circle closest-side, #000 54%, transparent 56%); mask: radial-gradient(circle closest-side, #000 54%, transparent 56%); }
.orbite__anneau { -webkit-mask: radial-gradient(circle closest-side, transparent 54%, #000 56%); mask: radial-gradient(circle closest-side, transparent 54%, #000 56%); animation: tourne 40s linear infinite; }
.auth--entre .auth__msol { animation: auth-monte .7s cubic-bezier(.22, 1, .36, 1) both; }
.auth__marque { display: flex; color: #fff; }
.auth__marque svg, .auth__marque img { display: block; height: 34px; width: auto; }
.auth__marque .tete__nom { font-size: 24px; }
.auth__site { display: inline-block; margin-top: 10px; font-size: 12px; color: rgba(255, 255, 255, .6); text-decoration: none; border-radius: 4px; transition: color .18s; }
a.auth__site:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.auth__phrase { margin: 28px 0 0; font: 300 clamp(24px, 2.6vw, 34px)/1.16 var(--police-texte); letter-spacing: -.03em; color: rgba(255, 255, 255, .92); }
.auth__cadre { margin-top: 40px; width: 100%; transform: translateY(24%); padding: 8px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(0, 0, 0, .7); box-shadow: 0 30px 90px rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.auth__ecran { overflow: hidden; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); background: #000; }
.auth__barre { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .4); user-select: none; }
.auth__barre i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.auth__barre i:nth-child(2) { background: rgba(255, 255, 255, .25); } .auth__barre i:nth-child(3) { background: rgba(255, 255, 255, .15); }
.auth__barre span { margin-left: 16px; font: 9px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .05em; color: rgba(255, 255, 255, .4); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth__ecran img { display: block; width: 100%; height: auto; }
/* L'entrée du modèle : apparition floue qui monte, en trois temps. */
.auth--entre .auth__qui { animation: auth-monte .7s cubic-bezier(.22, 1, .36, 1) both; }
.auth--entre .auth__phrase { animation: auth-monte .8s .12s cubic-bezier(.22, 1, .36, 1) both; --dy: 18px; --flou: 8px; }
.auth--entre .auth__ecran { animation: auth-monte 1s .22s cubic-bezier(.16, 1, .3, 1) both; --dy: 72px; --flou: 10px; }
.auth--entre .auth__int { animation: auth-monte .6s cubic-bezier(.22, 1, .36, 1) both; --flou: 0px; }
@keyframes auth-monte { from { opacity: 0; transform: translateY(var(--dy, 12px)); filter: blur(var(--flou, 6px)); } }
@media (min-width: 640px) { .auth__visuel { padding: 48px; } }
@media (min-width: 1024px) {
  .auth__grille { grid-template-columns: .94fr 1.06fr; gap: 24px; }
  .auth__form { padding: 80px 56px; }
  .auth__visuel { min-height: 0; padding: 64px; }
  .auth__texte { padding-top: 48px; }
  .auth__cadre { position: absolute; left: 12%; bottom: -112px; width: 105%; margin-top: 0; transform: rotate(-3deg); transform-origin: bottom left; }
}
@media (min-width: 1280px) { .auth__form { padding: 80px; } .auth__cadre { left: 14%; bottom: -150px; width: 108%; } }
@media (min-width: 1536px) { .auth__cadre { bottom: -170px; width: 112%; } }

/* ── Écrans étroits ── */
@media (max-width: 980px) {
  .c-7, .c-5, .c-4, .c-6, .c-8 { grid-column: span 12; }
  .c-4 { grid-column: span 6; }
}
@media (max-width: 860px) {
  .tete { gap: 12px; padding-bottom: 12px; }
  .tete__titre { display: none; }
  .tete__logo svg, .tete__logo img { height: 26px; }
  .tete .rond { width: 36px; height: 36px; }
  .barre { gap: 10px; }
  .onglets { width: 100%; }
  .onglet { flex: 1; padding: 10px 4px 12px; text-align: center; font-size: 14px; }
  .onglet::after { left: 4px; right: 4px; }
  .barre .choix { width: 100%; }
  .barre .choix button { flex: 1; padding: 8px 4px; text-align: center; }
  .carte { padding: 16px 16px 18px; }
  .bandeau { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 -16px; }
  .carte > .bandeau:last-child { margin-bottom: -18px; }
  .chiffre { padding: 14px 16px 12px; }
  .chiffre:nth-child(odd) { border-left: 0; }
  .chiffre:nth-child(n+3) { border-top: 1px solid var(--trait); }
  .c-4 { grid-column: span 12; }
  .etat .essai { margin-left: 0; }
  /* La liste des contacts passe en fiches. */
  .entetes { display: none; }
  .ligne { grid-template-columns: minmax(0, 1fr) auto; padding: 4px 0; }
  .ligne__tete { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 0; }
  .c-nom { grid-column: 1; grid-row: 1; } .c-date { grid-column: 2; grid-row: 1; text-align: right; padding: 0; }
  .c-date i { display: inline; margin-left: 4px; }
  .c-tel { grid-column: 1; grid-row: 2; } .c-type { grid-column: 1 / -1; grid-row: 3; }
  .c-projet { grid-column: 1 / -1; grid-row: 4; color: var(--encre-3); font-size: 13px !important; } .c-ville { grid-column: 2; grid-row: 2; text-align: right; }
  /* Le suivi : visible tant que la demande est à traiter, puis seulement dans la fiche ouverte. */
  .ligne { grid-template-columns: minmax(0, 1fr); }
  .suivi { display: none; justify-self: start; margin: 0 0 10px; }
  .ligne.ouverte .suivi, .ligne .suivi[aria-pressed="false"] { display: inline-flex; }
  .fiche { padding: 0 0 14px; }
  .fiche dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; padding: 14px; }
  .outils { gap: 8px; }
  .cherche { flex-basis: 100%; }
  .outils .liste-choix { flex: 1 1 0; min-width: 0; }
  .outils .liste-choix__bouton { width: 100%; justify-content: space-between; padding: 0 13px; gap: 6px; }
  .outils .liste-choix__bouton span:first-child { overflow: hidden; text-overflow: ellipsis; }
  .pastilles { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 10px; padding: 0 16px 2px; scrollbar-width: none; }
  .pastilles::-webkit-scrollbar { display: none; }
  .compte { align-items: center; }
  .rang { grid-template-columns: minmax(0, 1fr) auto 56px; gap: 8px; }
}
@media (max-width: 420px) {
  .tete { gap: 8px; }
  .tete [data-action="theme"] { display: none; } /* le choix clair / sombre reste au pied de page */
  .onglet { font-size: 12.5px; padding-left: 2px; padding-right: 2px; }
  .onglet b { margin-left: 4px; padding: 2px 6px; font-size: 11px; }
  .barre .choix button { font-size: 13px; }
  .tete__logo svg, .tete__logo img { height: 23px; }
  .pied__maquette { flex-wrap: wrap; border-radius: 16px; padding: 8px 10px; }
}
@media (max-width: 480px) { .auth__form { padding-top: 68px; } .auth__theme { top: 14px; right: 14px; } }
@media (max-width: 400px) { .signe__lien { font-size: 12px; gap: 8px; padding: 6px 8px; } }
@media (max-width: 400px) { .auth .signe .embleme { width: 40px; height: 40px; } .auth .signe__lien { gap: 8px; } }
@media (max-width: 640px) { .auth__msol { top: 12px; right: 12px; width: 52px; height: 52px; } }
@media (max-width: 360px) { .auth__msol { top: 10px; right: 10px; width: 46px; height: 46px; } }
@media (max-width: 360px) {
  .tete { gap: 6px; }
  .tete__logo svg, .tete__logo img { height: 20px; }
  .tete__outils { gap: 6px; }
  .tete .rond { width: 32px; height: 32px; }
  .tete .rond svg { width: 15px; height: 15px; }
  .tete .msol .embleme { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
