/* Direction — salle de contrôle (3 nov. 2026). Voir public/direction.js. */
.dir { display: grid; gap: 16px; }
.dir-hero { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px 30px 26px; border-radius: 26px; overflow: hidden;
  background: radial-gradient(70% 120% at 100% 0%, rgba(227, 29, 29, .38), transparent 60%), radial-gradient(60% 90% at 0% 100%, rgba(255, 194, 26, .13), transparent 60%), #0b0d14; border: 1px solid rgba(255, 255, 255, .08); }
.dir-hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 64px), repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 64px); mask-image: linear-gradient(90deg, #000, transparent 85%); pointer-events: none; }
.dir-hero-t { position: relative; max-width: 720px; }
.dir-kick { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #aab0c6; }
.dir-kick i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px #22c55e; animation: dir-clig 1.6s ease-in-out infinite; }
.dir-hero h1 { margin: 8px 0 14px; font: 800 clamp(34px, 5vw, 58px)/1 var(--display, inherit); letter-spacing: -.03em; background: linear-gradient(110deg, #fff 30%, #ffc21a 70%, #ff6a3a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dir-njee { display: flex; align-items: center; gap: 12px; margin: 0; padding: 9px 16px 9px 9px; border-radius: 99px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(8px); font-size: 14px; line-height: 1.35; max-width: 100%; }
.dir-njee img { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 12%; box-shadow: 0 0 0 2px #ffc21a, 0 0 18px rgba(255, 194, 26, .5); }
.dir-njee b { color: #ffc21a; margin-right: 4px; }
.dir-hero-r { position: relative; display: grid; justify-items: center; padding: 14px 26px; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.dir-hero-r b { font: 800 54px/1 var(--display, inherit); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.dir-hero-r small { color: #aab0c6; font-size: 12px; margin-top: 2px; }
.dir-hero-r.on { border-color: rgba(255, 194, 26, .5); box-shadow: 0 0 40px -10px rgba(255, 194, 26, .45); }
.dir-hero-r.on b { color: #ffc21a; }
.dir-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dir-kpi { position: relative; display: grid; gap: 3px; padding: 18px 18px 16px; border-radius: 20px; overflow: hidden; color: inherit; text-decoration: none;
  background: linear-gradient(160deg, rgba(26, 28, 40, .95), rgba(12, 13, 20, .95)); border: 1px solid rgba(255, 255, 255, .09); transition: transform .2s, border-color .2s, box-shadow .2s; }
a.dir-kpi:hover { transform: translateY(-3px); border-color: rgba(255, 194, 26, .6); box-shadow: 0 16px 40px -18px rgba(255, 194, 26, .45); }
.dir-kpi::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(227, 29, 29, .35), transparent 70%); }
.dir-kpi.tiede::after { background: radial-gradient(circle, rgba(255, 194, 26, .4), transparent 70%); }
.dir-kpi.alerte { border-color: rgba(227, 29, 29, .55); }
.dir-kpi-ic { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(160deg, #e31d1d, #8f0f0f); margin-bottom: 8px; position: relative; z-index: 1; }
.dir-kpi-ic svg { width: 18px; height: 18px; }
.dir-kpi small { color: #9aa0b4; font-size: 12px; letter-spacing: .02em; position: relative; z-index: 1; }
.dir-kpi b { font: 800 clamp(26px, 2.6vw, 38px)/1.05 var(--display, inherit); letter-spacing: -.025em; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.dir-kpi em { font-style: normal; color: #aab0c6; font-size: 12.5px; position: relative; z-index: 1; }
.dir-chip { display: inline-block; padding: 1px 8px; border-radius: 99px; font-weight: 800; font-size: 12px; margin-right: 4px; }
.dir-chip.hausse { background: rgba(34, 197, 94, .18); color: #4ade80; }
.dir-chip.baisse { background: rgba(227, 29, 29, .22); color: #ff6b6b; }
.dir-g2 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 14px; }
.dir-bas { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.dir-carte { padding: 20px 22px 20px; border-radius: 22px; background: linear-gradient(165deg, rgba(22, 24, 34, .95), rgba(11, 12, 18, .95)); border: 1px solid rgba(255, 255, 255, .08); min-width: 0; }
.dir-ch { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.dir-ch h2 { margin: 0; font: 800 16px var(--display, inherit); letter-spacing: -.01em; }
.dir-ch span, .dir-ch a { font-size: 12px; color: #9aa0b4; }
.dir-ch a:hover { color: #fff; }
/* courbe */
.dir-svg { position: relative; }
.dir-svg svg { display: block; width: 100%; height: 230px; overflow: visible; }
.dir-svg .grille line { stroke: rgba(255, 255, 255, .07); stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.dir-svg .ligne { fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; filter: drop-shadow(0 4px 10px rgba(255, 194, 26, .45)); }
.dir-svg .aire { opacity: 0; transition: opacity 1s .6s; }
.dir-pret .dir-svg .ligne { animation: dir-trace 1.5s cubic-bezier(.3, .7, .2, 1) forwards; }
.dir-pret .dir-svg .aire { opacity: 1; }
.dir-svg .pt-c { fill: #0b0d14; stroke: #ffc21a; stroke-width: 2.5; vector-effect: non-scaling-stroke; transition: r .15s, fill .15s; opacity: 0; }
.dir-pret .dir-svg .pt-c { opacity: 1; transition: opacity .4s 1.1s, r .15s, fill .15s; }
.dir-svg .pt.on .pt-c { r: 8; fill: #ffc21a; }
.dir-svg .pt { cursor: pointer; }
.dir-mois { display: flex; justify-content: space-between; padding: 0 20px; margin-top: 4px; font-size: 11.5px; color: #8a90a8; text-transform: capitalize; }
.dir-bulle { position: absolute; transform: translate(-50%, calc(-100% - 12px)); pointer-events: none; padding: 7px 12px; border-radius: 12px; background: #fff; color: #10121a; text-align: center; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .7); white-space: nowrap; z-index: 3; }
.dir-bulle small { display: block; font-size: 10.5px; color: #6b7088; text-transform: capitalize; }
.dir-bulle b { font: 800 16px var(--display, inherit); }
.dir-vide { padding: 26px 8px; text-align: center; color: #9aa0b4; }
.dir-vide.ok { color: #4ade80; background: rgba(34, 197, 94, .08); border-radius: 14px; }
.dir-vide.ok b { display: block; font-size: 15px; }
/* anneaux */
.dir-an2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dir-anneau { position: relative; display: grid; justify-items: center; }
.dir-anneau svg { width: 100%; max-width: 150px; transform: rotate(-90deg); }
.dir-anneau circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.dir-anneau .fond { stroke: rgba(255, 255, 255, .08); }
.dir-anneau .val { transition: stroke-dashoffset 1.6s cubic-bezier(.3, .7, .2, 1) .2s; filter: drop-shadow(0 0 8px currentColor); }
.dir-anneau-t { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 1; max-width: 150px; margin: 0 auto; display: grid; place-content: center; text-align: center; }
.dir-anneau-t b { font: 800 26px/1 var(--display, inherit); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dir-anneau-t small { color: #9aa0b4; font-size: 11px; margin-top: 3px; }
.dir-anneau-s { margin-top: 6px; font-size: 11.5px; color: #aab0c6; text-align: center; min-height: 1.3em; }
.dir-solde { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 194, 26, .08); border: 1px solid rgba(255, 194, 26, .25); display: grid; }
.dir-solde small { color: #c9b87a; font-size: 11.5px; } .dir-solde b { font: 800 24px var(--display, inherit); } .dir-solde em { font-style: normal; color: #aab0c6; font-size: 12px; }
/* à régler */
.dir-alertes { display: grid; gap: 8px; }
.dir-alerte { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; color: inherit; text-decoration: none; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-left: 4px solid #ffc21a; transition: transform .15s, background .15s; }
.dir-alerte.rouge { border-left-color: #e31d1d; }
.dir-alerte:hover { transform: translateX(3px); background: rgba(255, 255, 255, .08); }
.dir-alerte > span { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .07); font-weight: 800; }
.dir-alerte div { display: grid; min-width: 0; flex: 1; }
.dir-alerte b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir-alerte small { color: #9aa0b4; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir-alerte i { font-style: normal; font-size: 22px; color: #6b7088; }
/* agents */
.dir-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.dir-stats > * { display: grid; justify-items: center; padding: 11px 6px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); color: inherit; text-decoration: none; }
.dir-stats b { font: 800 26px/1 var(--display, inherit); font-variant-numeric: tabular-nums; } .dir-stats small { color: #9aa0b4; font-size: 11.5px; margin-top: 3px; text-align: center; }
.dir-stats .att { border-color: rgba(255, 194, 26, .6); background: rgba(255, 194, 26, .1); } .dir-stats .att b { color: #ffc21a; }
.dir-barres { display: grid; gap: 8px; }
.dir-barres > div { display: grid; grid-template-columns: 110px 1fr 28px; align-items: center; gap: 10px; font-size: 13px; }
.dir-barres i { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.dir-barres u { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, #e31d1d, #ffc21a); transition: width 1.2s cubic-bezier(.3, .7, .2, 1) .3s; }
.dir-pret .dir-barres u { width: var(--w); }
.dir-barres em { font-style: normal; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.dir-note { margin: 10px 0 0; font-size: 12px; color: #8a90a8; }
@keyframes dir-trace { to { stroke-dashoffset: 0; } }
@keyframes dir-clig { 50% { opacity: .35; } }
@media (max-width: 1100px) { .dir-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dir-g2, .dir-bas { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .dir-hero { padding: 20px 18px; border-radius: 20px; } .dir-hero-r { width: 100%; grid-auto-flow: column; justify-content: center; gap: 12px; align-items: baseline; } .dir-hero-r b { font-size: 38px; }
  .dir-kpi { padding: 14px 14px 12px; } .dir-carte { padding: 16px 14px; } .dir-barres > div { grid-template-columns: 90px 1fr 24px; } .dir-an2 { gap: 4px; } }
@media (prefers-reduced-motion: reduce) { .dir *, .dir *::before { animation: none !important; transition: none !important; } .dir-svg .ligne { stroke-dashoffset: 0; } .dir-svg .aire, .dir-svg .pt-c { opacity: 1; } .dir-barres u { width: var(--w); } .dir-anneau .val { stroke-dashoffset: var(--c, 0); } }
