/* =====================================================================
   CONSOLE EXCELPROS — la feuille de style (auparavant dans views/_gabarit.php)
   =====================================================================
   Les couleurs viennent du logo : bleu nuit (le corps de l'engrenage et le mot « ExcelPros »),
   orange et vert d'eau (ses segments). Le rouge d'alerte reste bien distinct de l'orange de
   marque : une décoration ne doit jamais passer pour une urgence.
   L'orange du logo (#f26a1b) n'atteint pas 4,5:1 sur blanc : il sert aux traits et aux aplats ;
   le texte orange prend --marque-texte.
   Thème : automatique (réglage du système), ou forcé par <html data-theme="clair|sombre">.
   ===================================================================== */

/* Les mêmes polices que l'application, hébergées ici (hors ligne, aucun service tiers). */
@font-face { font-family:'Atkinson Hyperlegible'; font-weight:400; font-display:swap; src:url('/fonts/atkinson-400.woff2') format('woff2'); }
@font-face { font-family:'Atkinson Hyperlegible'; font-weight:700; font-display:swap; src:url('/fonts/atkinson-700.woff2') format('woff2'); }
@font-face { font-family:'Lexend'; font-weight:100 900; font-display:swap; src:url('/fonts/lexend.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --nuit:#0f2430; --nuit-2:#1b3846; --nuit-texte:#cfdae1;
  --fond:#f4f6f7; --carte:#fff; --texte:#14232c; --discret:#586872; --trait:#dde4e8;
  --bouton:#0f2430; --bouton-texte:#fff; --lien:#1a5fb4; --focus:#1a5fb4;
  --marque:#f26a1b; --marque-texte:#b4500f;
  --ok:#12795a; --alerte:#b3261e; --alerte-texte:#fff; --attention:#9a4a00; --info:#1a5fb4;
  --accent:var(--bouton);
  --larg-barre:244px; --hauteur-onglets:60px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]) {
    color-scheme: dark;
    --nuit:#0b1a23; --nuit-2:#16323f;
    --fond:#0f171d; --carte:#16222b; --texte:#e7edf0; --discret:#9fb0ba; --trait:#2a3a45;
    --bouton:#ff9a5c; --bouton-texte:#26110a; --lien:#7fb2ff; --focus:#7fb2ff;
    --marque-texte:#ff9a5c;
    --ok:#4fd1a5; --alerte:#ff8a8a; --alerte-texte:#2a0a0a; --attention:#f0c060; --info:#7fb2ff;
  }
}
:root[data-theme="sombre"] {
  color-scheme: dark;
  --nuit:#0b1a23; --nuit-2:#16323f;
  --fond:#0f171d; --carte:#16222b; --texte:#e7edf0; --discret:#9fb0ba; --trait:#2a3a45;
  --bouton:#ff9a5c; --bouton-texte:#26110a; --lien:#7fb2ff; --focus:#7fb2ff;
  --marque-texte:#ff9a5c;
  --ok:#4fd1a5; --alerte:#ff8a8a; --alerte-texte:#2a0a0a; --attention:#f0c060; --info:#7fb2ff;
}

* { box-sizing: border-box; }
body { margin:0; background:var(--fond); color:var(--texte); font:16px/1.5 'Atkinson Hyperlegible', system-ui, sans-serif; font-variant-numeric:tabular-nums; }
h1, h2, h3 { font-family:'Lexend', system-ui, sans-serif; font-weight:600; }
h1 { font-size:1.45rem; margin:.2em 0 .6em; } h2 { font-size:1.1rem; margin:1.4em 0 .5em; } h3 { font-size:1rem; margin:1.2em 0 .4em; }
a { color:var(--lien); }
:focus-visible { outline:3px solid var(--focus); outline-offset:2px; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.saut { position:absolute; left:8px; top:-60px; z-index:100; background:var(--bouton); color:var(--bouton-texte); padding:10px 14px; border-radius:8px; font-weight:700; }
.saut:focus { top:8px; }
@media (prefers-reduced-motion: reduce) { * { transition:none !important; animation:none !important; } }

/* ------------------------------------------------------------------ LA COQUE
   Ordinateur : une barre latérale bleu nuit. Téléphone : un bandeau en haut et des onglets en bas. */
main { max-width:1040px; margin:0 auto; padding:20px 16px; }
main.large { max-width:1320px; }
footer { max-width:1040px; margin:0 auto; padding:10px 16px 24px; border-top:1px solid var(--trait); }

.barre, .entete, .onglets-bas { display:none; }

.tuile-logo { display:inline-flex; align-items:center; justify-content:center; background:#fff; border-radius:10px; flex:none; }
.tuile-logo img { display:block; }

@media (min-width:960px) {
  body.avec-menu { padding-left:var(--larg-barre); }
  .barre { display:flex; flex-direction:column; position:fixed; inset:0 auto 0 0; width:var(--larg-barre); background:var(--nuit); color:var(--nuit-texte); padding:16px 12px 14px; overflow-y:auto; z-index:20; }
  .barre :focus-visible { outline-color:#fff; }
  .barre .marque { display:flex; align-items:center; gap:10px; padding:4px 8px 16px; color:#fff; text-decoration:none; }
  .barre .tuile-logo { width:42px; height:42px; }
  .barre .tuile-logo img { width:34px; height:34px; }
  .barre .marque-nom { font:700 1.15rem/1.1 'Lexend', system-ui, sans-serif; letter-spacing:-.01em; }
  .barre .marque-nom small { display:block; margin-top:3px; font:700 .68rem/1 'Atkinson Hyperlegible', system-ui, sans-serif; letter-spacing:.14em; text-transform:uppercase; color:var(--marque); }
  .barre nav { flex:1; }
  .barre .groupe-titre { margin:16px 10px 4px; font-size:.7rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:#8fa3ae; }
  .barre a.lien { display:flex; align-items:center; gap:11px; min-height:42px; padding:0 10px; border-radius:8px; color:var(--nuit-texte); text-decoration:none; font-weight:400; }
  .barre a.lien svg { width:20px; height:20px; flex:none; opacity:.85; }
  .barre a.lien:hover { background:rgba(255,255,255,.07); color:#fff; }
  .barre a.lien.ici { background:rgba(255,255,255,.1); color:#fff; font-weight:700; box-shadow:inset 3px 0 var(--marque); }
  .barre a.lien.ici svg { opacity:1; color:var(--marque); }
  .barre .compteur { margin-left:auto; }
  .barre .qui { margin:0 0 8px; padding:10px 10px 0; border-top:1px solid rgba(255,255,255,.12); color:#fff; font-weight:700; line-height:1.3; }
  .barre .qui span { display:block; margin-top:2px; font-weight:400; font-size:.8rem; color:#8fa3ae; }
  .barre .pied { padding-top:4px; }
  .barre .pied button { width:100%; background:transparent; color:var(--nuit-texte); border:1px solid rgba(255,255,255,.22); }
  .barre .pied button:hover { background:rgba(255,255,255,.08); color:#fff; }
}

@media (max-width:959px) {
  body.avec-menu { padding-bottom:calc(var(--hauteur-onglets) + env(safe-area-inset-bottom)); }
  .entete { display:flex; align-items:center; gap:10px; position:sticky; top:0; z-index:20; background:var(--nuit); color:#fff; padding:8px 16px; padding-top:calc(8px + env(safe-area-inset-top)); }
  .entete .tuile-logo { width:34px; height:34px; border-radius:8px; }
  .entete .tuile-logo img { width:27px; height:27px; }
  .entete-titre { font:600 1.05rem/1.2 'Lexend', system-ui, sans-serif; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .entete a { color:#fff; text-decoration:none; }
  .entete :focus-visible { outline-color:#fff; }

  .onglets-bas { display:grid; grid-template-columns:repeat(5, 1fr); position:fixed; inset:auto 0 0 0; z-index:30; background:var(--carte); border-top:1px solid var(--trait); padding-bottom:env(safe-area-inset-bottom); }
  .onglets-bas a, .onglets-bas summary { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; min-height:var(--hauteur-onglets); padding:6px 2px; color:var(--discret); font-size:.72rem; font-weight:700; text-decoration:none; cursor:pointer; list-style:none; text-align:center; }
  .onglets-bas summary::-webkit-details-marker { display:none; }
  .onglets-bas svg { width:24px; height:24px; }
  .onglets-bas a.ici, .onglets-bas details[open] > summary { color:var(--marque-texte); }
  .onglets-bas a.ici::before { content:''; position:absolute; top:0; left:22%; right:22%; height:3px; border-radius:0 0 3px 3px; background:var(--marque); }
  .onglets-bas .compteur { position:absolute; top:4px; left:calc(50% + 6px); margin:0; padding:0 6px; font-size:.7rem; line-height:1.5; }
  .onglets-bas .plus-feuille { position:fixed; inset:auto 8px calc(var(--hauteur-onglets) + env(safe-area-inset-bottom) + 8px) 8px; background:var(--carte); border:1px solid var(--trait); border-radius:14px; box-shadow:0 8px 28px rgba(0,0,0,.28); padding:6px; display:grid; gap:2px; }
  .onglets-bas .plus-feuille a { flex-direction:row; justify-content:flex-start; gap:12px; min-height:48px; padding:0 12px; border-radius:8px; font-size:1rem; font-weight:400; color:var(--texte); text-align:left; }
  .onglets-bas .plus-feuille a.ici { background:var(--fond); font-weight:700; }
  .onglets-bas .plus-feuille a::before { display:none; }
  .onglets-bas .plus-feuille form { padding:4px 0 0; border-top:1px solid var(--trait); margin-top:4px; }
  .onglets-bas .plus-feuille form button { width:100%; }
}

/* ------------------------------------------------------------------ LES COMPOSANTS */
main > p.discret { max-width:70ch; }
.carte { background:var(--carte); border:1px solid var(--trait); border-radius:12px; padding:14px 16px; margin:0 0 14px; overflow-x:auto; }
table { width:100%; border-collapse:collapse; } th, td { text-align:left; padding:8px 6px; border-bottom:1px solid var(--trait); vertical-align:top; } th { color:var(--discret); font-weight:600; font-size:.85rem; }
.discret { color:var(--discret); font-size:.9rem; }
label { display:block; font-weight:600; margin:10px 0 4px; font-size:.9rem; }
input, select, textarea { width:100%; padding:9px 10px; border:1px solid var(--trait); border-radius:8px; background:var(--fond); color:var(--texte); font:inherit; }
input[type=checkbox] { width:auto; }
label.case { display:flex; gap:8px; align-items:center; font-weight:400; margin:4px 0; }
button, .bouton { display:inline-block; padding:9px 14px; border:0; border-radius:8px; background:var(--bouton); color:var(--bouton-texte); font:inherit; font-weight:600; cursor:pointer; text-decoration:none; }
button:hover, .bouton:hover { filter:brightness(1.12); }
button.second, .bouton.second { background:transparent; color:var(--texte); border:1px solid var(--trait); }
button.second:hover, .bouton.second:hover { background:var(--fond); filter:none; }
button.petit { padding:4px 10px; font-size:.85rem; }
button.danger { background:var(--alerte); color:var(--alerte-texte); }
.message { padding:10px 14px; border-radius:8px; margin:0 0 14px; border:1px solid var(--trait); background:var(--carte); }
.message.ok { border-color:var(--ok); color:var(--ok); } .message.erreur { border-color:var(--alerte); color:var(--alerte); }
.pastille { display:inline-block; padding:1px 9px; border-radius:99px; font-size:.8rem; border:1px solid var(--trait); white-space:nowrap; }
.pastille.active, .pastille.ok { color:var(--ok); border-color:var(--ok); } .pastille.suspendue, .pastille.urgent { color:var(--alerte); border-color:var(--alerte); }
.pastille.a_faire, .pastille.preparation { color:var(--attention); border-color:var(--attention); }
.compteur { display:inline-block; padding:1px 8px; border-radius:99px; background:var(--alerte); color:var(--alerte-texte); font-size:.8125rem; font-weight:700; text-align:center; margin-left:6px; white-space:nowrap; }

/* Page avec une action à droite du titre. */
.entete-page { display:flex; justify-content:space-between; align-items:center; gap:8px 16px; flex-wrap:wrap; margin:0 0 6px; }
.entete-page h1 { margin:.2em 0; }
.entete-page form { margin:0; }

/* Les tuiles chiffrées du tableau de bord : un coup d'œil dit si tout va bien. */
.tuiles { display:grid; gap:12px; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); margin:0 0 18px; }
.tuile { display:block; background:var(--carte); border:1px solid var(--trait); border-top:4px solid var(--ok); border-radius:12px; padding:12px 16px 14px; color:var(--texte); text-decoration:none; }
.tuile:hover { border-color:var(--discret); border-top-color:inherit; box-shadow:0 2px 10px rgba(15,36,48,.1); }
.tuile .valeur { display:block; font:700 2.1rem/1.1 'Lexend', system-ui, sans-serif; margin:2px 0; }
.tuile .libelle { color:var(--discret); font-size:.9rem; }
.tuile.rouge { border-top-color:var(--alerte); } .tuile.rouge .valeur { color:var(--alerte); }
.tuile.orange { border-top-color:var(--marque); } .tuile.orange .valeur { color:var(--attention); }
.tuile.vert { border-top-color:var(--ok); }

/* Filtres : une barre segmentée, distincte des boutons d'action. */
.filtres { display:inline-flex; flex-wrap:wrap; gap:2px; padding:3px; margin:6px 0 14px; border:1px solid var(--trait); border-radius:10px; background:var(--carte); }
.filtres a { display:inline-flex; align-items:center; gap:6px; min-height:40px; padding:0 14px; border-radius:7px; color:var(--discret); font-weight:600; text-decoration:none; }
.filtres a:hover { color:var(--texte); background:var(--fond); }
.filtres a[aria-current=page] { background:var(--bouton); color:var(--bouton-texte); }
.filtres .nb { opacity:.75; font-weight:400; }

/* Liste de tickets : le statut se lit d'un coup d'œil. */
td.serre, th.serre { white-space:nowrap; width:1%; }
tbody tr:hover { background:var(--fond); }
tr.nouveau td:first-child { box-shadow:inset 3px 0 var(--alerte); }
a.titre { text-decoration:none; font-weight:600; }
a.titre:hover, a.titre:focus-visible { text-decoration:underline; }
tr.resolu a.titre { color:var(--discret); font-weight:400; }
select.statut { width:auto; padding:3px 28px 3px 12px; border-radius:99px; border:1px solid currentColor; background-color:transparent; font-size:.85rem; font-weight:700; cursor:pointer; appearance:none; -webkit-appearance:none;
  background-image:linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size:5px 5px; background-repeat:no-repeat; }
select.statut.nouveau { color:var(--alerte); }
select.statut.en_cours, select.statut.attente_client { color:var(--attention); }
select.statut.resolu { color:var(--ok); }
.filtres-ligne { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:0 0 14px; }
.filtres-ligne select, .filtres-ligne input { width:auto; padding:7px 10px; }
.filtres-ligne input[type=search] { flex:1 1 220px; max-width:340px; }
th a { color:inherit; text-decoration:none; } th a:hover { color:var(--texte); text-decoration:underline; }
th[aria-sort] a { color:var(--texte); }
td.age { font-size:.9rem; font-weight:700; }
select.statut option { color:var(--texte); background:var(--carte); font-weight:400; }

/* LA FICHE EN ONGLETS, SANS SCRIPT : des boutons radio et :checked (la politique de
   sécurité n'autorise aucun script dans la page). console.js retient l'onglet ouvert. */
.onglet-radio { position:absolute; opacity:0; pointer-events:none; }
.onglets-barre { display:flex; flex-wrap:wrap; gap:4px; border-bottom:1px solid var(--trait); margin:0 0 16px; }
.onglets-barre label { display:inline-flex; align-items:center; gap:6px; margin:0 0 -1px; padding:10px 16px; min-height:44px; box-sizing:border-box; cursor:pointer; font-size:1rem; font-weight:600; color:var(--discret); border:1px solid transparent; border-bottom:0; border-radius:8px 8px 0 0; }
.onglets-barre label:hover { color:var(--texte); }
.onglets-barre label.onglet-danger { color:var(--alerte); }
.onglet-panneau { display:none; }
#onglet-suivi:checked ~ #panneau-suivi, #onglet-reglages:checked ~ #panneau-reglages,
#onglet-operations:checked ~ #panneau-operations, #onglet-fin:checked ~ #panneau-fin,
#onglet-apercu:checked ~ #panneau-apercu, #onglet-sav:checked ~ #panneau-sav, #onglet-chrono:checked ~ #panneau-chrono,
#onglet-abos:checked ~ #panneau-abos, #onglet-fiche:checked ~ #panneau-fiche { display:block; }
#onglet-suivi:checked ~ .onglets-barre label[for="onglet-suivi"], #onglet-reglages:checked ~ .onglets-barre label[for="onglet-reglages"],
#onglet-operations:checked ~ .onglets-barre label[for="onglet-operations"], #onglet-fin:checked ~ .onglets-barre label[for="onglet-fin"],
#onglet-apercu:checked ~ .onglets-barre label[for="onglet-apercu"], #onglet-sav:checked ~ .onglets-barre label[for="onglet-sav"], #onglet-chrono:checked ~ .onglets-barre label[for="onglet-chrono"],
#onglet-abos:checked ~ .onglets-barre label[for="onglet-abos"], #onglet-fiche:checked ~ .onglets-barre label[for="onglet-fiche"] { color:var(--texte); background:var(--carte); border-color:var(--trait); box-shadow:inset 0 3px 0 var(--marque); }
#onglet-suivi:focus-visible ~ .onglets-barre label[for="onglet-suivi"], #onglet-reglages:focus-visible ~ .onglets-barre label[for="onglet-reglages"],
#onglet-operations:focus-visible ~ .onglets-barre label[for="onglet-operations"], #onglet-fin:focus-visible ~ .onglets-barre label[for="onglet-fin"],
#onglet-apercu:focus-visible ~ .onglets-barre label[for="onglet-apercu"], #onglet-sav:focus-visible ~ .onglets-barre label[for="onglet-sav"], #onglet-chrono:focus-visible ~ .onglets-barre label[for="onglet-chrono"],
#onglet-abos:focus-visible ~ .onglets-barre label[for="onglet-abos"], #onglet-fiche:focus-visible ~ .onglets-barre label[for="onglet-fiche"] { outline:3px solid var(--focus); outline-offset:2px; }

@media (max-width:720px) {
  /* Cibles tactiles de 44 px. */
  button, .bouton { min-height:44px; }
  button.petit { min-height:36px; }
  .filtres a { min-height:44px; }
  /* Les onglets de la fiche installation défilent sur une ligne au lieu de passer sur deux. */
  .onglets-barre { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; }
  .onglets-barre label { flex:0 0 auto; white-space:nowrap; padding:10px 12px; }
  /* Tableau empilé : chaque ligne devient un bloc, chaque cellule porte son libellé (data-libelle). */
  .carte:has(table.empile) { overflow-x:visible; }
  table.empile, table.empile tbody, table.empile tr, table.empile td { display:block; }
  table.empile tr { padding:10px 0; border-bottom:1px solid var(--trait); }
  table.empile td { border:0; padding:2px 0; width:auto; white-space:normal; overflow-wrap:anywhere; }
  table.empile td[data-libelle]::before { content:attr(data-libelle) " : "; color:var(--discret); font-size:.85rem; }
  table.empile thead, table.empile tr:has(> th) { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); padding:0; border:0; }
}
.grille { display:grid; gap:0 14px; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); }
.secret { font-family:ui-monospace, monospace; background:var(--fond); padding:6px 10px; border-radius:6px; word-break:break-all; }
code, .code { font-family:ui-monospace, monospace; font-size:.88rem; background:var(--fond); padding:1px 5px; border-radius:4px; word-break:break-all; }
.actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.point { border-left:4px solid var(--trait); padding:8px 12px; margin:0 0 10px; background:var(--carte); border-radius:0 8px 8px 0; }
.point.urgent { border-color:var(--alerte); } .point.a_faire { border-color:var(--attention); } .point.surveiller { border-color:var(--lien); }
.point .explication { white-space:pre-line; overflow-wrap:anywhere; color:var(--discret); font-size:.9rem; margin:4px 0 6px; }
.point form { display:inline; }
.chiffre { font-size:1.8rem; font-weight:700; }
.guide ol li, .guide ul li { margin:4px 0; }
details summary { cursor:pointer; font-weight:600; }

/* Ce qui était écrit en ligne dans les vues. */
.bloc-etroit { max-width:420px; } .bloc-tres-etroit { max-width:280px; } .bloc-mini { max-width:200px; }
.espace-haut-4 { margin-top:4px; } .espace-haut-6 { margin-top:6px; } .espace-haut-8 { margin-top:8px; } .espace-haut-10 { margin-top:10px; } .espace-haut-14 { margin-top:14px; } .sans-marge-haut { margin-top:0; }
.texte-brut { white-space:pre-wrap; }
.petit-texte { font-size:.85rem; }
.aligne-bas { align-items:end; } .aligne-centre-large { align-items:center; gap:16px; }
.largeur-auto { width:auto; }
.grandit { flex:1; min-width:240px; }
.bord-alerte { border-color:var(--alerte); } .bord-accent { border-color:var(--accent); }
.vignette-logo { border:1px solid var(--trait); border-radius:14px; background:#fff; }
.message-ticket { margin:0 0 12px; padding:8px 12px; border-left:3px solid var(--marque); }
.message-ticket.support { border-left-color:var(--accent); }
.code.bloc-code { display:block; padding:8px; white-space:pre-wrap; }
.lu-par-auteur { margin-top:4px; color:var(--accent); font-size:.85rem; }

/* La fiche client : l'en-tête, la chronologie, les notes. */
.fiche-entete { display:flex; justify-content:space-between; align-items:flex-start; gap:10px 16px; flex-wrap:wrap; margin:0 0 14px; }
.fiche-entete h1 { margin:.1em 0 .1em; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.fiche-entete h1 .sante { font-family:'Atkinson Hyperlegible', system-ui, sans-serif; }
.fiche-entete p { margin:0; }
.chrono { list-style:none; margin:0; padding:0; }
.chrono li { display:grid; grid-template-columns:9.5rem 5.5rem 1fr; gap:2px 12px; padding:9px 0; border-bottom:1px solid var(--trait); }
.chrono li:last-child { border-bottom:0; }
.chrono .quand { color:var(--discret); font-size:.85rem; padding-top:2px; }
.chrono .detail.bloc { display:block; }
.chrono .detail { color:var(--discret); font-size:.9rem; white-space:pre-line; overflow-wrap:anywhere; }
.chrono .qui { color:var(--discret); font-size:.85rem; }
@media (max-width:720px) { .chrono li { grid-template-columns:1fr; gap:1px; } .chrono .quand { padding-top:0; } }
.pastille.type-journal { color:var(--discret); } .pastille.type-ticket { color:var(--attention); border-color:var(--attention); }
.pastille.type-message { color:var(--info); border-color:var(--info); } .pastille.type-note { color:var(--marque-texte); border-color:var(--marque); }
.note { padding:10px 0; border-bottom:1px solid var(--trait); } .note:last-child { border-bottom:0; }
.note .texte { white-space:pre-wrap; overflow-wrap:anywhere; margin:2px 0 0; }
.note form { display:inline; }

/* Notifications et réglages. */
.notifs { list-style:none; margin:0; padding:0; }
.notif { display:grid; grid-template-columns:6.5rem 1fr auto; gap:2px 12px; padding:10px 0 10px 12px; border-bottom:1px solid var(--trait); border-left:3px solid transparent; }
.notif:last-child { border-bottom:0; }
.notif.non-lue { border-left-color:var(--marque); background:linear-gradient(90deg, rgba(242,106,27,.07), transparent 40%); }
.notif.urgente .titre { color:var(--alerte); }
.notif .quand { color:var(--discret); font-size:.85rem; padding-top:2px; }
.notif .detail { display:block; color:var(--discret); font-size:.9rem; overflow-wrap:anywhere; }
@media (max-width:720px) { .notif { grid-template-columns:1fr; } }
input.heure { width:auto; }
td.serre label.case { margin:0; }
.coupes { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:0 14px; max-height:260px; overflow-y:auto; padding:2px; }
#push-etat { margin-top:0; font-weight:700; }

.modeles { display:flex; flex-wrap:wrap; gap:6px 8px; align-items:center; margin:6px 0 8px; }

.qr { display:flex; justify-content:center; margin:12px 0; } .qr svg { max-width:100%; height:auto; border:1px solid var(--trait); border-radius:8px; }

/* La courbe du chiffre et la disponibilité des sites. */
.courbe-zone { margin:10px 0; }
.courbe .grille { stroke:var(--trait); stroke-width:1; }
.courbe .axe { fill:var(--discret); font:12px 'Atkinson Hyperlegible', system-ui, sans-serif; }
.courbe .trait { stroke:var(--marque); stroke-width:3; stroke-linecap:round; }
.courbe .trait.estime { stroke-dasharray:6 6; opacity:.75; }
.courbe .point { fill:var(--marque); stroke:var(--marque); stroke-width:2; }
.courbe .point.estime { fill:var(--carte); }
.bande-dispo { display:grid; grid-template-columns:repeat(30, 1fr); gap:3px; margin:14px 0 6px; }
.bande-dispo .jour { height:30px; border-radius:3px; background:var(--trait); }
.bande-dispo .jour.ok { background:var(--ok); } .bande-dispo .jour.coupure { background:var(--alerte); } .bande-dispo .jour.inconnu { background:var(--trait); }
.chiffre.dispo-vert { color:var(--ok); } .chiffre.dispo-orange { color:var(--attention); } .chiffre.dispo-rouge { color:var(--alerte); }
textarea[readonly] { font-family:ui-monospace, monospace; font-size:.88rem; }

.barre-lot { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center; margin:0 0 10px; padding:10px 12px; background:var(--carte); border:1px solid var(--trait); border-radius:12px; }
.barre-lot select { width:auto; }

/* La santé d'un client : un point de couleur ET un mot (jamais la couleur seule). */
.sante { display:inline-flex; align-items:center; gap:6px; font-weight:700; font-size:.85rem; }
.sante::before { content:''; width:10px; height:10px; border-radius:50%; background:currentColor; flex:none; }
.sante.rouge { color:var(--alerte); } .sante.orange { color:var(--attention); } .sante.vert { color:var(--ok); }
.pagination { display:flex; align-items:center; justify-content:center; gap:14px; margin:0 0 18px; }
.resultat { padding:6px 0; border-bottom:1px solid var(--trait); } .resultat:last-child { border-bottom:0; }
kbd { font:600 .75rem/1 ui-monospace, monospace; padding:3px 6px; border:1px solid var(--trait); border-radius:5px; background:var(--fond); }

/* La recherche : le lien de la barre, et la palette Ctrl+K. */
.recherche-lien { display:flex; align-items:center; gap:10px; min-height:40px; padding:0 10px; margin:0 0 4px; border:1px solid rgba(255,255,255,.22); border-radius:8px; color:var(--nuit-texte); text-decoration:none; }
.recherche-lien svg { width:18px; height:18px; flex:none; }
.recherche-lien:hover { background:rgba(255,255,255,.08); color:#fff; }
.recherche-lien kbd { margin-left:auto; background:transparent; border-color:rgba(255,255,255,.28); color:var(--nuit-texte); }
.entete-recherche { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; }
.entete-recherche svg { width:22px; height:22px; }
@media (min-width:960px) { .entete-recherche { display:none; } }
@media (max-width:959px) { .recherche-lien { display:none; } }
dialog.palette { border:1px solid var(--trait); border-radius:14px; padding:0; width:min(640px, calc(100vw - 24px)); margin:10vh auto 0; background:var(--carte); color:var(--texte); box-shadow:0 18px 60px rgba(0,0,0,.4); }
dialog.palette::backdrop { background:rgba(8,20,28,.55); }
dialog.palette input { border:0; border-bottom:1px solid var(--trait); border-radius:14px 14px 0 0; background:transparent; padding:16px 18px; font-size:1.1rem; }
dialog.palette input:focus-visible { outline:none; box-shadow:inset 0 -3px 0 var(--marque); }
#palette-resultats { max-height:52vh; overflow-y:auto; padding:4px 8px; }
#palette-resultats h3 { margin:10px 10px 2px; font:700 .72rem/1 'Atkinson Hyperlegible', system-ui, sans-serif; letter-spacing:.1em; text-transform:uppercase; color:var(--discret); }
#palette-resultats a { display:flex; flex-wrap:wrap; gap:2px 10px; align-items:baseline; padding:9px 10px; border-radius:8px; color:var(--texte); text-decoration:none; }
#palette-resultats a.actif { background:var(--fond); box-shadow:inset 3px 0 var(--marque); }
#palette-resultats a .detail { color:var(--discret); font-size:.85rem; }
#palette-resultats p { padding:14px 10px; margin:0; color:var(--discret); }
.palette-aide { margin:0; padding:8px 18px 12px; border-top:1px solid var(--trait); }

/* ------------------------------------------------------------------ LA CONNEXION */
.large-bouton { display:block; width:100%; margin:10px 0 6px; padding:13px 14px; font-size:1.05rem; }
.separateur { display:flex; align-items:center; gap:10px; margin:14px 0 2px; color:var(--discret); font-size:.85rem; }
.separateur::before, .separateur::after { content:''; flex:1; height:1px; background:var(--trait); }
body.sans-menu { background:var(--nuit); min-height:100vh; }
body.sans-menu main { max-width:none; padding:0; }
.connexion { max-width:400px; margin:0 auto; padding:clamp(24px, 8vh, 72px) 16px 32px; }
.connexion .tuile-logo { display:flex; width:100%; padding:18px 20px 12px; border-radius:16px 16px 0 0; }
.connexion .tuile-logo img { width:min(100%, 250px); height:auto; }
.connexion form.carte, .connexion .carte.attente, .connexion .carte.approuver { border-radius:0 0 16px 16px; border:0; margin:0; padding:6px 22px 22px; }
.nombre-affiche { font:700 4rem/1 'Lexend', system-ui, sans-serif; text-align:center; margin:14px 0; letter-spacing:.06em; color:var(--marque-texte); }
.nombres { display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; margin:10px 0; }
.nombres .nombre { font:700 2rem/1 'Lexend', system-ui, sans-serif; min-height:76px; }
.detail-demande { background:var(--fond); border-radius:10px; padding:10px 12px; }
.connexion .message { border-radius:8px; margin:0 0 12px; }
