/* projet-cv : admin Apixen Job (public/css/admin.css). Identite reprise de la maquette Mon espace (Importations/, 2026-10-09).
   Servi tel quel (pas de Vite) ; aucune ressource externe. Police Geist (Vercel, licence SIL OFL 1.1) dans /fonts. */
@font-face { font-family: 'Geist'; src: url('/fonts/geist.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/fonts/geist-ext.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02FF, U+2000-206F, U+20AC, U+2190-21FF, U+2212; }

:root {
    color-scheme: light;
    --creme: #F7F2EA; --creme-2: #EEE6DA; --papier: #FFFFFF; --cote: #FFFDF9;
    --encre: #1E2533; --encre-2: #3B4352; --encre-3: #5F6676; --trait: #E7DDD0; --trait-2: #D5C8B7;
    --bleu: #2D64BC; --bleu-2: #2452A0; --bleu-clair: #E6EEFA; --bleu-moyen: #9DBBEA;
    --nuit: #172133; --nuit-2: #1C283D; --nuit-3: #253552; --nuit-texte: #DCE4F0; --nuit-doux: #A9B6CB;
    --rouge: #D2452F; --rouge-fonce: #B13A27; --rouge-clair: #FDECE7;
    --ambre: #B7832F; --ambre-clair: #F8EED9; --vert: #11845B; --vert-clair: #E3F5EC;
    --police: 'Geist', 'Helvetica Neue', Arial, sans-serif;
    --mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
    --ombre: 0 1px 2px rgba(23, 33, 51, .05), 0 10px 30px -14px rgba(23, 33, 51, .18);
    --ombre-forte: 0 2px 4px rgba(23, 33, 51, .05), 0 30px 60px -24px rgba(23, 33, 51, .32);
    /* anciens noms, encore lus par quelques vues */
    --fond: var(--creme); --carte: var(--papier); --texte: var(--encre); --doux: var(--encre-3); --bord: var(--trait);
    --accent: var(--bleu); --accent-fonce: var(--bleu-2); --accent-doux: var(--bleu-clair);
    --erreur: var(--rouge-fonce); --erreur-fond: var(--rouge-clair); --ok: var(--vert); --ok-fond: var(--vert-clair);
    --attention: var(--ambre); --attention-fond: var(--ambre-clair);
}
* { box-sizing: border-box; }
html { background: var(--creme); overflow-x: clip; }
body { margin: 0; font-family: var(--police); font-size: 15px; line-height: 1.5; color: var(--encre); background: var(--creme); -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "cv11"; letter-spacing: -.006em; overflow-x: clip; }
::selection { background: var(--bleu-clair); }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; }
a { color: var(--bleu); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.035em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(26px, 2.6vw, 36px); margin: 0 0 16px; }
h2 { font-size: 17px; letter-spacing: -.02em; margin: 28px 0 6px; }
svg { display: block; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* champs et boutons */
label { display: block; font-weight: 550; font-size: 13.5px; color: var(--encre-2); margin: 16px 0 6px; }
input, select, textarea { font: inherit; color: var(--encre); }
input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--trait-2); border-radius: 10px; background: var(--papier); font-size: 15px; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: var(--encre-3); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--bleu); box-shadow: 0 0 0 3px var(--bleu-clair); }
input.code { font-size: 26px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
input[type=checkbox] { width: 18px; height: 18px; min-height: 0; accent-color: var(--bleu); }
select { min-height: 40px; padding: 8px 12px; border: 1px solid var(--trait-2); border-radius: 10px; background: var(--papier); font-size: 14.5px; }
button { margin-top: 24px; width: 100%; min-height: 46px; padding: 0 18px; border: 1px solid var(--bleu); border-radius: 10px; background: var(--bleu); color: #fff; font: 550 15px/1.1 var(--police); cursor: pointer; box-shadow: 0 1px 2px rgba(23, 33, 51, .1), 0 10px 22px -12px rgba(45, 100, 188, .75); transition: transform .15s, box-shadow .15s, background .15s; }
button:hover { background: var(--bleu-2); border-color: var(--bleu-2); transform: translateY(-1px); box-shadow: 0 1px 2px rgba(23, 33, 51, .1), 0 14px 26px -12px rgba(45, 100, 188, .8); }
button:active { transform: none; box-shadow: none; }
button.secondaire { background: var(--papier); color: var(--encre); border-color: var(--trait-2); box-shadow: none; }
button.secondaire:hover { background: var(--creme); border-color: var(--encre-3); }
button.danger { background: var(--papier); color: var(--rouge-fonce); border-color: #F3C4B9; box-shadow: none; }
button.danger:hover { background: var(--rouge-clair); border-color: var(--rouge); }
.bouton { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--trait-2); border-radius: 10px; background: var(--papier); color: var(--encre); font-weight: 550; font-size: 14px; text-decoration: none; transition: background .15s, border-color .15s; }
.bouton:hover { background: var(--creme); border-color: var(--encre-3); }
.bouton svg { width: 16px; height: 16px; }

/* messages */
.erreur, .statut { border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 0 0 16px; border: 1px solid transparent; }
.erreur { background: var(--rouge-clair); color: var(--rouge-fonce); border-color: #F7D3CA; }
.statut { background: var(--vert-clair); color: var(--vert); border-color: #BFE6D2; }
.aide { color: var(--encre-3); font-size: 13.5px; margin: 6px 0 0; }
.aide + .erreur { margin-top: 16px; }
.lien { color: var(--encre-3); font-size: 14px; text-align: center; margin: 16px 0 0; }

/* pages hors connexion (connexion, code, invitation) */
.centre { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: radial-gradient(circle at 15% 10%, #FFFDF9 0, transparent 45%), var(--creme); }
.carte { width: 100%; max-width: 410px; background: var(--papier); border: 1px solid var(--trait); border-radius: 18px; padding: 32px; box-shadow: var(--ombre-forte); }
.carte.large { max-width: 540px; }
.carte h1 { font-size: 26px; }
.marque { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; font-weight: 650; font-size: 20px; letter-spacing: -.035em; color: var(--encre); line-height: 1; text-decoration: none; }
.marque svg { width: 26px; height: 26px; flex: none; fill: var(--bleu); }
.marque em { font-style: normal; font-weight: 500; color: var(--bleu); }
.marque small { font: 500 12px/1 var(--police); letter-spacing: 0; color: var(--encre-3); background: var(--creme); border: 1px solid var(--trait); border-radius: 6px; padding: 4px 6px; margin-left: 2px; }
.qr { text-align: center; margin: 16px 0 8px; }
.qr img { width: 200px; height: 200px; border-radius: 12px; border: 1px solid var(--trait); padding: 8px; background: #fff; }
.cle { font-family: var(--mono); background: var(--creme); padding: 8px 10px; border-radius: 8px; text-align: center; font-size: 14px; word-break: break-all; margin: 6px 0 0; }

/* cadre : menu lateral clair */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.menu { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 22px 14px 18px; background: var(--cote); border-right: 1px solid var(--trait); }
.menu .marque { margin: 0; padding: 2px 8px 0; }
.menu .rubrique { font-size: 12px; font-weight: 500; color: var(--encre-3); padding: 0 10px; margin: 0 0 -12px; }
.menu nav { display: flex; flex-direction: column; gap: 2px; }
.menu nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--encre-2); text-decoration: none; font-weight: 500; font-size: 14.5px; white-space: nowrap; transition: background .15s, color .15s; }
.menu nav a svg { width: 18px; height: 18px; flex: none; color: var(--encre-3); }
.menu nav a:hover { background: var(--creme); color: var(--encre); }
.menu nav a.actif { background: var(--bleu-clair); color: var(--bleu); font-weight: 600; }
.menu nav a.actif svg { color: var(--bleu); }
.menu nav a .pastille { margin-left: auto; }
.menu .session { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--trait); font-size: 13px; color: var(--encre-3); }
.menu .session .avatar { width: 34px; height: 34px; font-size: 12.5px; }
.menu .session b { display: block; color: var(--encre); font-weight: 600; font-size: 14px; }
.menu .session form { margin: 0 0 0 auto; }
.menu .session button { margin: 0; width: 34px; min-height: 34px; padding: 0; display: grid; place-items: center; background: transparent; color: var(--encre-3); border: 1px solid var(--trait); box-shadow: none; }
.menu .session button:hover { background: var(--creme); color: var(--rouge-fonce); border-color: var(--trait-2); transform: none; }
.menu .session button svg { width: 16px; height: 16px; }
.menu .voir-site { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--nuit); color: #fff; text-decoration: none; font-size: 13.5px; font-weight: 550; transition: transform .2s, box-shadow .2s; }
.menu .voir-site small { display: block; color: var(--nuit-doux); font-weight: 400; font-size: 12px; }
.menu .voir-site:hover { transform: translateY(-1px); box-shadow: var(--ombre-forte); }
.menu .voir-site svg { width: 16px; height: 16px; color: var(--bleu-moyen); }
.avatar { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--nuit); color: #fff; font-weight: 600; font-size: 13px; letter-spacing: 0; }
.avatar.bleu { background: var(--bleu-clair); color: var(--bleu); }
.avatar.vert { background: var(--vert-clair); color: var(--vert); }
.avatar.ambre { background: var(--ambre-clair); color: var(--ambre); }
.avatar.rouge { background: var(--rouge-clair); color: var(--rouge-fonce); }
main { width: 100%; max-width: 1280px; padding: 30px clamp(18px, 3vw, 40px) 60px; }
main > * { animation: entree .5s cubic-bezier(.2, .8, .2, 1) both; }
main > *:nth-child(2) { animation-delay: .04s; } main > *:nth-child(3) { animation-delay: .08s; } main > *:nth-child(4) { animation-delay: .12s; } main > *:nth-child(5) { animation-delay: .16s; }
@keyframes entree { from { opacity: 0; transform: translateY(12px); } }
.bandeau-apercu { background: var(--ambre-clair); color: var(--ambre); border: 1px solid #EED9AE; border-radius: 10px; padding: 8px 12px; font-size: 13.5px; font-weight: 600; margin: 0 0 20px; }
.pastille { display: inline-block; min-width: 20px; padding: 0 7px; border-radius: 6px; background: var(--bleu); color: #fff; font: 600 11.5px/20px var(--police); text-align: center; }
.pastille.chaude { background: var(--rouge); }

/* en-tete de page */
.titre-page { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 20px; flex-wrap: wrap; margin: 0 0 22px; }
.titre-page h1 { margin: 0; }
.titre-page h1 span { color: var(--bleu); }
.sous-titre { color: var(--encre-3); margin: 6px 0 0; font-size: 14.5px; }
.fil-ariane { font-size: 13.5px; color: var(--encre-3); margin: 0 0 8px; }
.fil-ariane a { text-decoration: none; color: var(--encre-3); }
.fil-ariane a:hover { color: var(--bleu); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.a-venir { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px dashed var(--trait-2); border-radius: 10px; color: var(--encre-3); font-size: 13.5px; cursor: not-allowed; white-space: nowrap; }
.a-venir::after { content: " \00b7  \00e0  venir"; font-size: 12px; margin-left: 4px; }
.date-pilule { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; background: var(--papier); border: 1px solid var(--trait); border-radius: 10px; font-size: 13.5px; font-weight: 500; box-shadow: var(--ombre); }
.date-pilule i { width: 7px; height: 7px; border-radius: 50%; background: var(--vert); }

/* chiffres (tuiles) */
.chiffres { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 0 0 22px; }
.chiffre { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 16px 16px 14px; background: var(--papier); border: 1px solid var(--trait); border-radius: 14px; box-shadow: var(--ombre); color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; --point: var(--bleu); }
a.chiffre:hover { transform: translateY(-2px); box-shadow: var(--ombre-forte); }
.chiffre .libelle { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--encre-3); }
.chiffre .libelle::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--point); }
.chiffre .valeur { font-size: clamp(30px, 3vw, 40px); font-weight: 600; letter-spacing: -.04em; line-height: 1; margin-top: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chiffre .detail { grid-column: 1; font-size: 12.5px; font-weight: 550; color: var(--point); }
.chiffre .courbe { grid-column: 2; grid-row: 2 / 4; align-self: end; width: 92px; height: 40px; color: var(--point); }
.chiffre.vert { --point: var(--vert); } .chiffre.ambre { --point: var(--ambre); } .chiffre.rouge { --point: var(--rouge); } .chiffre.encre { --point: var(--nuit-3); }
.chiffre.alerte { --point: var(--rouge); }
.chiffre.alerte .valeur { color: var(--rouge-fonce); }

/* tableau de bord : carte heros et carte nuit */
.heros { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin: 0 0 16px; align-items: stretch; }
.panneau.a-traiter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0; overflow: hidden; border: 0; box-shadow: var(--ombre-forte); }
.priorite { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 22px; color: #fff; background: linear-gradient(150deg, #3A72CC 0%, #2D64BC 45%, #24529F 100%); }
.priorite::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; bottom: -120px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 0 0 40px rgba(255, 255, 255, .04), 0 0 0 80px rgba(255, 255, 255, .03); pointer-events: none; }
.priorite > * { position: relative; z-index: 1; }
.surtitre { font-size: 13px; font-weight: 600; color: var(--encre-3); margin: 0; }
.priorite .surtitre { color: rgba(255, 255, 255, .75); }
.priorite .icone { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); flex: none; }
.priorite .icone svg { width: 22px; height: 22px; }
.priorite .rangee { display: flex; gap: 14px; align-items: flex-start; }
.priorite strong { display: block; font-size: clamp(20px, 2vw, 25px); font-weight: 600; letter-spacing: -.03em; line-height: 1.12; margin-bottom: 6px; }
.priorite p { margin: 0; color: #DCE6F6; font-size: 14.5px; line-height: 1.45; }
.priorite .bouton { align-self: flex-start; margin-top: auto; background: #fff; color: var(--bleu); border-color: #fff; box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .5); }
.priorite .bouton:hover { background: #F2F6FD; }
.ensuite { padding: 20px 22px; display: flex; flex-direction: column; }
.ensuite .tete { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.ensuite .tete small { font-size: 12.5px; color: var(--encre-3); }
.taches { list-style: none; margin: 0; padding: 0; }
.taches li a, .taches li > div { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; color: inherit; text-decoration: none; }
.taches li + li { border-top: 1px solid var(--trait); }
.taches li a:hover b { color: var(--bleu); }
.taches .rond { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--trait-2); display: grid; place-items: center; }
.taches .ok .rond { background: var(--vert); border-color: var(--vert); }
.taches .ok .rond::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.taches .chaud .rond { border-color: var(--rouge); background: var(--rouge-clair); }
.taches b { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.25; transition: color .15s; }
.taches span { font-size: 12.5px; color: var(--encre-3); }
.taches .ok b { color: var(--encre-3); }
.taches em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 15px; }
.panneau.nuit { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; background: var(--nuit); color: var(--nuit-texte); border: 0; box-shadow: var(--ombre-forte); }
.nuit::before { content: ""; position: absolute; inset: -40% -30% auto auto; width: 300px; height: 300px; background: radial-gradient(closest-side, rgba(74, 130, 216, .35), transparent); pointer-events: none; }
.nuit > * { position: relative; }
.nuit h2 { color: #fff; margin: 0; }
.nuit .surtitre { color: var(--nuit-doux); }
.nuit .gros { font-size: 46px; font-weight: 600; letter-spacing: -.045em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.nuit .gros small { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--nuit-doux); margin-left: 6px; }
.histo { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end; gap: 4px; height: 86px; padding-top: 6px; }
.histo i { display: block; min-height: 3px; border-radius: 4px 4px 2px 2px; background: rgba(157, 187, 234, .35); transition: background .15s; }
.histo i:last-child { background: var(--bleu-moyen); }
.histo i:hover { background: #fff; }
.histo-legende { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--nuit-doux); margin-top: -6px; }
.nuit .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.nuit .duo div { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 10px 12px; }
.nuit .duo b { display: block; color: #fff; font-size: 20px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.nuit .duo span { font-size: 12px; color: var(--nuit-doux); }

/* panneaux */
.panneaux, .cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; align-items: start; }
.panneau { min-width: 0; padding: 20px; background: var(--papier); border: 1px solid var(--trait); border-radius: 16px; box-shadow: var(--ombre); }
.panneau h2 { margin: 0 0 14px; font-size: 17px; }
.panneau h2.intertitre { margin-top: 24px; }
.panneau.bloc { margin-top: 16px; }
.titre-panneau { display: flex; justify-content: space-between; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: 0 0 14px; }
.titre-panneau h2 { margin: 0; }
.titre-panneau a.tout { font-size: 13px; font-weight: 550; text-decoration: none; }
.titre-panneau a.tout:hover { text-decoration: underline; }
.ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 11px 8px; margin: 0 -8px; border-radius: 12px; color: inherit; text-decoration: none; transition: background .15s; }
.ligne + .ligne { border-top: 1px solid var(--trait); border-radius: 0; }
a.ligne:hover { background: var(--creme); border-radius: 12px; }
a.ligne:hover + .ligne { border-top-color: transparent; }
.ligne strong { font-weight: 600; }
.ligne .extrait { grid-column: 1 / -1; color: var(--encre-3); font-size: 13.5px; overflow-wrap: anywhere; }
.ligne.avec-avatar { grid-template-columns: 36px minmax(0, 1fr) auto; }
.ligne.avec-avatar .avatar { grid-row: span 2; }
.ligne.avec-avatar .extrait { grid-column: 2 / -1; }
.discret { color: var(--encre-3); font-size: 13px; }
.discret.attention, td .attention { color: var(--ambre); font-weight: 600; }
.vide { color: var(--encre-3); font-size: 14px; margin: 0; padding: 18px; text-align: center; border: 1px dashed var(--trait-2); border-radius: 12px; }
.defile { overflow-x: auto; }

/* tableaux */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 550; color: var(--encre-3); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--trait); white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid var(--trait); vertical-align: top; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: #FCFAF6; }
tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { padding-left: 0; }
th.nombre, td.nombre { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.positif { color: var(--vert); font-weight: 600; }
td a { font-weight: 600; text-decoration: none; }
td a:hover { text-decoration: underline; }
tr.robot td { color: var(--encre-3); }
td.nom-sante { white-space: nowrap; }
code { font-family: var(--mono); font-size: 12.5px; background: var(--creme); border: 1px solid var(--trait); padding: 1px 5px; border-radius: 6px; overflow-wrap: anywhere; }
.adresse { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }

/* etiquettes et voyants */
.etiquette { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 550; white-space: nowrap; background: var(--creme-2); color: var(--encre-2); }
.etiquette::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.etiquette.ok { background: var(--vert-clair); color: var(--vert); }
.etiquette.attention { background: var(--ambre-clair); color: var(--ambre); }
.etiquette.erreur { background: var(--rouge-clair); color: var(--rouge-fonce); }
.etiquette.info { background: var(--bleu-clair); color: var(--bleu); }
.voyant { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: var(--trait-2); }
.voyant.ok { background: var(--vert); box-shadow: 0 0 0 3px var(--vert-clair); }
.voyant.erreur { background: var(--rouge); box-shadow: 0 0 0 3px var(--rouge-clair); }

/* onglets (segments) */
.onglets { display: inline-flex; gap: 3px; padding: 3px; margin: 0 0 20px; max-width: 100%; overflow-x: auto; scrollbar-width: none; background: var(--creme-2); border-radius: 10px; }
.onglets a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 8px; color: var(--encre-3); text-decoration: none; font-weight: 550; font-size: 14px; white-space: nowrap; transition: background .15s, color .15s; }
.onglets a:hover { background: rgba(255, 255, 255, .6); color: var(--encre); }
.onglets a.actif { background: var(--papier); color: var(--encre); box-shadow: 0 1px 2px rgba(23, 33, 51, .12), 0 2px 8px -4px rgba(23, 33, 51, .18); }
.onglets .compte { font-size: 12px; font-weight: 600; background: rgba(23, 33, 51, .06); color: var(--encre-2); border-radius: 6px; padding: 0 6px; }
.onglets a.actif .compte { background: var(--bleu-clair); color: var(--bleu); }

/* filtres et pagination */
.filtres { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 16px; font-size: 14px; }
.filtres input { width: auto; flex: 1 1 260px; max-width: 380px; min-height: 40px; padding: 8px 12px 8px 36px; background: var(--papier) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235F6676' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center; }
.filtres button { margin: 0; width: auto; min-height: 40px; padding: 0 16px; font-size: 14px; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0 0; font-size: 13.5px; color: var(--encre-3); }
.pagination a, .pagination .inactif { padding: 7px 12px; border: 1px solid var(--trait-2); border-radius: 10px; background: var(--papier); color: var(--encre); text-decoration: none; font-weight: 550; }
.pagination a:hover { background: var(--creme); }
.pagination .inactif { opacity: .45; }

/* fiches et messagerie */
.fiche { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 10px 18px; margin: 0; font-size: 14.5px; }
.fiche dt { color: var(--encre-3); }
.fiche dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.fil { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-top: 12px; }
.bulle { align-self: flex-start; max-width: 85%; padding: 11px 14px; border-radius: 4px 14px 14px 14px; background: var(--creme); border: 1px solid var(--trait); }
.bulle.admin { align-self: flex-end; border-radius: 14px 4px 14px 14px; background: var(--bleu-clair); border-color: #CADBF4; }
.bulle.non-lu { border-color: var(--rouge); box-shadow: 0 0 0 3px var(--rouge-clair); }
.bulle .meta { font-size: 12px; color: var(--encre-3); margin: 0 0 4px; }
.bulle p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.resultats { margin: -8px 0 12px; }

/* Systeme : serveur en direct et gestion des admins */
.bloc-haut { margin: 0 0 16px; }
.mesures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px 24px; }
.mesure .libelle { font-size: 13px; color: var(--encre-3); }
.mesure .libelle.intertitre-mesure { margin-top: 10px; }
.mesure .valeur { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.jauge { height: 8px; background: var(--creme-2); border-radius: 999px; overflow: hidden; margin: 6px 0 0; }
.barre-remplie { height: 100%; width: 0; background: var(--vert); border-radius: 999px; transition: width .4s ease; }
.barre-remplie.attention { background: var(--ambre); }
.barre-remplie.erreur { background: var(--rouge); }
/* crans de 5 % (Series::cran) : hauteur des barres de l'histogramme, largeur de depart des jauges ; CSP sans attribut style */
.histo i.c0 { height: 0%; } .barre-remplie.c0 { width: 0%; }
.histo i.c5 { height: 5%; } .barre-remplie.c5 { width: 5%; }
.histo i.c10 { height: 10%; } .barre-remplie.c10 { width: 10%; }
.histo i.c15 { height: 15%; } .barre-remplie.c15 { width: 15%; }
.histo i.c20 { height: 20%; } .barre-remplie.c20 { width: 20%; }
.histo i.c25 { height: 25%; } .barre-remplie.c25 { width: 25%; }
.histo i.c30 { height: 30%; } .barre-remplie.c30 { width: 30%; }
.histo i.c35 { height: 35%; } .barre-remplie.c35 { width: 35%; }
.histo i.c40 { height: 40%; } .barre-remplie.c40 { width: 40%; }
.histo i.c45 { height: 45%; } .barre-remplie.c45 { width: 45%; }
.histo i.c50 { height: 50%; } .barre-remplie.c50 { width: 50%; }
.histo i.c55 { height: 55%; } .barre-remplie.c55 { width: 55%; }
.histo i.c60 { height: 60%; } .barre-remplie.c60 { width: 60%; }
.histo i.c65 { height: 65%; } .barre-remplie.c65 { width: 65%; }
.histo i.c70 { height: 70%; } .barre-remplie.c70 { width: 70%; }
.histo i.c75 { height: 75%; } .barre-remplie.c75 { width: 75%; }
.histo i.c80 { height: 80%; } .barre-remplie.c80 { width: 80%; }
.histo i.c85 { height: 85%; } .barre-remplie.c85 { width: 85%; }
.histo i.c90 { height: 90%; } .barre-remplie.c90 { width: 90%; }
.histo i.c95 { height: 95%; } .barre-remplie.c95 { width: 95%; }
.histo i.c100 { height: 100%; } .barre-remplie.c100 { width: 100%; }
.direct { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--encre-3); white-space: nowrap; }
.direct::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--vert); animation: pouls 2s ease-in-out infinite; }
@keyframes pouls { 50% { opacity: .25; } }
.formulaire-ligne { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0; }
.formulaire-ligne button, .invitation-form button { margin: 0; width: auto; min-height: 38px; padding: 0 14px; font-size: 14px; }
input.code-court { width: 96px; min-height: 38px; padding: 6px 8px; font-size: 14px; letter-spacing: .15em; text-align: center; font-variant-numeric: tabular-nums; }
.invitation-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; align-items: end; margin: 0; }
.invitation-form label { margin: 0 0 6px; }
.invitation-form input { min-height: 40px; padding: 8px 12px; font-size: 14.5px; }
.invitation-form input.code-court { width: 100%; }
.invitation-form button { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
textarea.lien { width: 100%; padding: 10px 12px; border: 1px solid var(--trait); border-radius: 10px; font-family: var(--mono); font-size: 13px; background: var(--creme); resize: none; overflow-wrap: anywhere; }

/* Messagerie : formulaire de reponse sous le fil */
form.reponse { margin-top: 20px; padding-top: 4px; border-top: 1px solid var(--trait); }
form.reponse .boutons { margin-top: 12px; }

/* Fiche client : CV offerts ou retires */
@media (min-width: 720px) { .geste-cv .large { grid-column: span 2; } }

/* Fiche site : actions d'en-tete et suppression */
.actions form { margin: 0; }
.actions button { margin: 0; width: auto; min-height: 40px; }
.zone-sensible { border-color: #F3C4B9; }
.zone-sensible .formulaire-ligne { gap: 12px 18px; margin-top: 14px; }

/* Site vitrine : editeur de code, apercu */
textarea.code-source, textarea.texte-court { width: 100%; padding: 12px 14px; border: 1px solid var(--trait-2); border-radius: 12px; background: var(--papier); resize: vertical; transition: border-color .15s, box-shadow .15s; }
textarea.code-source { font-family: var(--mono); font-size: 13px; line-height: 1.5; tab-size: 4; white-space: pre; overflow-wrap: normal; overflow-x: auto; background: #FFFEFB; }
textarea.texte-court { font-size: 14.5px; }
.boutons { margin-top: 16px; }
.boutons button { margin: 0; width: auto; }
iframe.apercu { display: block; width: 100%; height: 70vh; border: 1px solid var(--trait); border-radius: 12px; background: #fff; }
label.case { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; }
label.case input { width: 18px; }

@media (max-width: 1100px) {
    .heros { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
    .app { grid-template-columns: minmax(0, 1fr); }
    .menu { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--trait); background: rgba(255, 253, 249, .94); backdrop-filter: blur(12px); }
    .menu .rubrique, .menu .voir-site, .menu .session > div { display: none; }
    .menu nav { order: 3; flex-direction: row; overflow-x: auto; width: 100%; scrollbar-width: none; margin: 0 -4px; }
    .menu nav a { padding: 7px 10px; font-size: 14px; }
    .menu .session { margin: 0 0 0 auto; padding: 0; border: 0; }
    main { padding: 20px 16px 48px; }
    .panneau.a-traiter { grid-template-columns: minmax(0, 1fr); }
    .fiche { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .fiche dd { margin-bottom: 8px; }
    .bulle { max-width: 100%; }
    .chiffre .courbe { width: 72px; }
}
.ensuite .tete h2 { margin: 0; }

/* Clients en cartes et dossier client (lot 1, 2026-10-12), sur le modele du CRM Apixen */
.bouton.primaire { background: var(--bleu); border-color: var(--bleu); color: #fff; box-shadow: 0 1px 2px rgba(23, 33, 51, .1), 0 10px 22px -12px rgba(45, 100, 188, .75); }
.bouton.primaire:hover { background: var(--bleu-2); border-color: var(--bleu-2); }
.cartes-clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.carte-client { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px 12px; align-content: start; padding: 18px; background: var(--papier); border: 1px solid var(--trait); border-radius: 16px; box-shadow: var(--ombre); color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.carte-client:hover { transform: translateY(-2px); box-shadow: var(--ombre-forte); border-color: var(--bleu-moyen); }
.carte-client .avatar { width: 44px; height: 44px; border-radius: 12px; font-size: 15px; }
.carte-client .identite { display: flex; flex-direction: column; min-width: 0; }
.carte-client .identite strong { font-weight: 600; font-size: 15.5px; line-height: 1.25; overflow-wrap: anywhere; }
.carte-client .identite .discret { overflow-wrap: anywhere; }
.carte-client .etiquettes { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.carte-client .compteurs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 14px; padding-top: 10px; border-top: 1px solid var(--trait); font-size: 13px; color: var(--encre-3); }
.carte-client .compteurs b { color: var(--encre); font-weight: 600; font-variant-numeric: tabular-nums; }
.entete-dossier { align-items: center; }
.entete-dossier .qui { display: flex; gap: 16px; align-items: center; min-width: 0; }
.entete-dossier .qui > div { min-width: 0; }
.entete-dossier .sous-titre { margin-top: 4px; overflow-wrap: anywhere; }
.avatar.grand { width: 64px; height: 64px; border-radius: 16px; font-size: 22px; }
.onglets .pastille { min-width: 18px; padding: 0 5px; font-size: 11px; line-height: 18px; }
.formulaire-client { max-width: 760px; }
.champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 16px; }
.champs label { margin-top: 12px; }
.erreur-champ { color: var(--rouge-fonce); font-size: 13px; margin: 6px 0 0; }
.champ-adresse { display: flex; align-items: center; gap: 8px; }
.champ-adresse input { flex: 1 1 auto; min-width: 0; font-family: var(--mono); font-size: 14px; }
.champ-adresse .adresse { color: var(--encre-3); white-space: nowrap; }
.bloc-fiche { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--trait); }
.pile { display: grid; gap: 16px; min-width: 0; }
.nouvelle-note { margin: 0 0 20px; }
.nouvelle-note label { margin-top: 4px; }
.notes { display: flex; flex-direction: column; gap: 10px; }
.note { padding: 12px 14px; border-radius: 12px; background: var(--creme); border: 1px solid var(--trait); }
.note .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; color: var(--encre-3); margin: 0 0 6px; }
.note .meta form { margin: 0; }
.note p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
button.petit { margin: 0; width: auto; min-height: 30px; padding: 0 10px; font-size: 12.5px; }

/* Offres du dossier client (lot 2, 2026-10-12) : formulaire et actions par ligne en <details>, sans JS */
details.nouvelle-offre { margin: 0 0 18px; }
details.nouvelle-offre > summary { list-style: none; cursor: pointer; width: fit-content; }
details.nouvelle-offre form { margin-top: 10px; padding: 4px 16px 16px; border: 1px solid var(--trait); border-radius: 12px; background: var(--cote); }
details > summary::-webkit-details-marker { display: none; }
.cellule-offre .adresse { display: block; margin-top: 4px; font-size: 12.5px; color: var(--encre-3); }
.texte-annonce { margin-top: 6px; }
.texte-annonce summary { cursor: pointer; font-size: 13px; color: var(--bleu); }
.texte-annonce p { margin: 6px 0 0; max-width: 60ch; white-space: pre-line; overflow-wrap: anywhere; font-size: 13.5px; color: var(--encre-2); }
.cellule-offre { min-width: 280px; }
.actions-offre { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 16px; margin-top: 8px; }
.actions-offre details[open] { flex-basis: 100%; }
.actions-offre summary { list-style: none; cursor: pointer; font-size: 13px; font-weight: 550; color: var(--bleu); }
.actions-offre summary.danger { color: var(--rouge-fonce); }
.actions-offre form { margin-top: 8px; max-width: 380px; }
.actions-offre form label { margin-top: 8px; }
.actions-offre form input:not([type=checkbox]) { min-height: 38px; padding: 6px 10px; font-size: 14px; }
.actions-offre form button { margin-top: 10px; width: auto; min-height: 36px; padding: 0 12px; font-size: 13.5px; }
.actions-offre label.case { font-size: 13px; }

/* Documents du dossier client (lot 3, 2026-10-13) : depot en <details>, sans JS */
details.depot-document { margin: 0 0 18px; }
details.depot-document > summary { list-style: none; cursor: pointer; width: fit-content; }
details.depot-document form { margin-top: 10px; padding: 4px 16px 16px; border: 1px solid var(--trait); border-radius: 12px; background: var(--cote); }
input[type=file] { padding: 9px 12px; font-size: 14px; background: var(--papier); }
label.case.remplacer { margin-top: 14px; font-size: 14px; }
.actions-document { margin-top: 0; }
.actions-document .formulaire-ligne button { min-height: 36px; }

/* Depot d'un site (lot 4, 2026-10-13) : apercu isole et avertissements */
.avertissements { margin: 0 0 12px; padding: 10px 14px 10px 30px; background: var(--ambre-clair); border: 1px solid #EED9AE; border-radius: 10px; color: var(--ambre); font-size: 13.5px; }
.avertissements li + li { margin-top: 4px; }
details.remplacer-html { margin: 14px 0 0; }
.champ-adresse > .adresse:first-child { white-space: normal; overflow-wrap: anywhere; }

/* Mise en ligne et adresse publique d'un site (lot 6, 2026-10-13) */
input.adresse-a-copier { font-family: var(--mono); font-size: 13.5px; background: var(--creme); }

/* Ressources rapatriees d'un site (lot 5d-1, 2026-10-13) */
.ressources { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--trait); border-radius: 10px; background: var(--cote); font-size: 14px; }
.ressources p { margin: 0; }
.avertissements.echecs { background: var(--rouge-clair); border-color: #F7D3CA; color: var(--rouge-fonce); list-style: none; padding-left: 14px; }

/* Supprimer un compte (lot 7, 2026-10-13) */
#supprimer-compte form { max-width: 460px; }
label.case.confirmation-suppression { margin-top: 14px; }

/* Medias du site vitrine (lot 2, 2026-10-27) */
.vignette-media { display: block; width: 96px; height: 72px; object-fit: cover; border: 1px solid var(--trait); border-radius: 8px; background: var(--creme-2); }
.formulaire-ligne input[type="file"] { width: auto; max-width: 230px; font-size: 13px; }
.suppression-media { margin-top: 8px; }
.texte-masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 860px) {
    .entete-dossier .qui { align-items: flex-start; }
    .avatar.grand { width: 48px; height: 48px; border-radius: 12px; font-size: 17px; }
    .champ-adresse { flex-wrap: wrap; }
}
