@font-face { font-family: "Rajdhani"; font-weight: 500; font-display: swap; src: url("../fonts/rajdhani-500.woff2") format("woff2"); }
@font-face { font-family: "Rajdhani"; font-weight: 600; font-display: swap; src: url("../fonts/rajdhani-600.woff2") format("woff2"); }
@font-face { font-family: "Rajdhani"; font-weight: 700; font-display: swap; src: url("../fonts/rajdhani-700.woff2") format("woff2"); }

:root {
  --marine: #0c2846;
  --marine-2: #12355c;
  --marine-3: #1b4574;
  --rouge: #ae0018;
  --rouge-clair: #d11a33;
  --acier: #436488;
  --ciel: #c1e1f4;
  --fond: #eef2f7;
  --carte: #ffffff;
  --trait: #e5e7eb;
  --texte: #111827;
  --doux: #6b7280;
  --vert: #0f8a5f;
  --ambre: #c98a06;
  --rayon: 14px;
  --ombre: 0 1px 2px rgba(12, 40, 70, .06), 0 8px 24px rgba(12, 40, 70, .06);
  --ombre-haute: 0 2px 4px rgba(12, 40, 70, .08), 0 22px 48px rgba(12, 40, 70, .16);
  --ease: cubic-bezier(.22, .9, .3, 1);
  --titre: "Rajdhani", "Helvetica Neue", Arial, sans-serif;
  --corps: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 180ms var(--ease) both sortie; }
::view-transition-new(root) { animation: 320ms var(--ease) both entree; }
@keyframes sortie { to { opacity: 0; transform: translateY(-6px); } }
@keyframes entree { from { opacity: 0; transform: translateY(10px); } }

* { box-sizing: border-box; }
html, body { background: var(--fond); color: var(--texte); font-family: var(--corps); font-size: 14px; }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, .titre { font-family: var(--titre); font-weight: 700; letter-spacing: .02em; color: var(--marine); }
a { color: var(--acier); text-decoration: none; }

/* ---------------------------------------------------------- bandeau */
.bandeau {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(100deg, var(--marine) 0%, var(--marine-2) 60%, var(--marine-3) 100%);
  color: #fff; box-shadow: 0 6px 24px rgba(12, 40, 70, .25);
}
.bandeau::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--rouge);
  transform-origin: left; animation: filet 900ms var(--ease) both;
}
@keyframes filet { from { transform: scaleX(0); } }
.bandeau .conteneur { display: flex; align-items: center; gap: 22px; height: 70px; padding: 0 28px; }
.bandeau .logo { height: 44px; transition: transform .4s var(--ease); }
.bandeau a.marque:hover .logo { transform: scale(1.05); }
.bandeau .appli { font-family: var(--titre); font-weight: 700; font-size: 20px; letter-spacing: .12em; text-transform: uppercase; line-height: 1; }
.bandeau .appli small { display: block; font-size: 12px; letter-spacing: .08em; color: var(--ciel); font-weight: 600; margin-top: 4px; }
.bandeau .separateur { width: 1px; height: 36px; background: rgba(255, 255, 255, .18); }
.bandeau nav { display: flex; gap: 4px; margin-left: 8px; }
.bandeau nav a {
  position: relative; color: rgba(255, 255, 255, .78); font-family: var(--titre); font-weight: 600;
  font-size: 15px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border-radius: 8px;
  transition: color .25s, background .25s;
}
.bandeau nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--rouge);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.bandeau nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.bandeau nav a:hover::after, .bandeau nav a.actif::after { transform: scaleX(1); }
.bandeau nav a.actif { color: #fff; }
.bandeau .droite { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--ciel); }
.bascule { display: inline-flex; background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 3px; }
.bascule a { color: rgba(255, 255, 255, .7); padding: 5px 12px; border-radius: 999px; font-weight: 600; font-size: 12px; transition: all .3s var(--ease); }
.bascule a.on { background: #fff; color: var(--marine); }
.bascule a.on.demo { background: var(--rouge); color: #fff; }

.ruban-demo { background: var(--rouge); color: #fff; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .06em; padding: 5px; }

/* ---------------------------------------------------------- page */
.page { padding: 28px; max-width: 1560px; margin: 0 auto; }
.entete-page { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.entete-page h1 { font-size: 34px; margin: 0; line-height: 1; }
.entete-page .sous { color: var(--doux); margin-top: 6px; font-size: 13.5px; }
.surtitre { font-family: var(--titre); font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--rouge); margin-bottom: 6px; }

.carte { background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); border: 1px solid rgba(12, 40, 70, .04); }
.carte .carte-titre { font-family: var(--titre); font-weight: 700; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--marine); display: flex; align-items: center; gap: 10px; }
.carte .carte-titre::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--rouge); }

/* ---------------------------------------------------------- entree animee */
.apparait { opacity: 0; transform: translateY(16px); animation: monte .7s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes monte { to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------- accueil */
.accueil-hero {
  position: relative; overflow: hidden; border-radius: 20px; color: #fff; padding: 34px 38px;
  background: radial-gradient(1200px 400px at 90% -10%, rgba(193, 225, 244, .22), transparent 60%),
              linear-gradient(120deg, var(--marine) 0%, var(--marine-2) 55%, var(--acier) 130%);
  box-shadow: var(--ombre-haute); margin-bottom: 26px;
}
.accueil-hero .logo-fond { position: absolute; right: -40px; top: -30px; height: 260px; opacity: .06; transform: rotate(-8deg); }
.accueil-hero h1 { color: #fff; font-size: 40px; margin: 0; }
.accueil-hero .avion { color: var(--ciel); font-family: var(--titre); font-weight: 600; font-size: 18px; letter-spacing: .06em; margin-top: 6px; }
.hero-chiffres { display: flex; gap: 40px; margin-top: 26px; flex-wrap: wrap; }
.hero-chiffres .val { font-family: var(--titre); font-weight: 700; font-size: 44px; line-height: 1; }
.hero-chiffres .lib { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ciel); margin-top: 6px; }
.jauge { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .15); overflow: hidden; margin-top: 26px; position: relative; }
.jauge .prevu { position: absolute; inset: 0 auto 0 0; background: rgba(193, 225, 244, .35); border-radius: 8px; transition: width 1.4s var(--ease); width: 0; }
.jauge .reel { position: absolute; inset: 0 auto 0 0; background: #fff; border-radius: 8px; transition: width 1.4s var(--ease) .2s; width: 0; }

.tuiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1100px) { .tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .tuiles { grid-template-columns: 1fr; } }
.tuile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  aspect-ratio: 1.35 / 1; min-height: 240px; padding: 26px; border-radius: 18px; overflow: hidden;
  background: var(--carte); color: var(--texte); box-shadow: var(--ombre);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  isolation: isolate;
}
.tuile::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, var(--marine) 0%, var(--marine-3) 100%);
  clip-path: circle(0% at 100% 0%); transition: clip-path .6s var(--ease);
}
.tuile:hover { transform: translateY(-6px); box-shadow: var(--ombre-haute); color: #fff; }
.tuile:hover::before { clip-path: circle(150% at 100% 0%); }
.tuile .ico {
  width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; font-size: 28px;
  background: rgba(12, 40, 70, .06); color: var(--marine); transition: all .45s var(--ease);
}
.tuile:hover .ico { background: var(--rouge); color: #fff; transform: rotate(-6deg) scale(1.06); }
.tuile .nom { font-family: var(--titre); font-weight: 700; font-size: 26px; letter-spacing: .03em; color: var(--marine); transition: color .4s; line-height: 1.05; }
.tuile:hover .nom { color: #fff; }
.tuile .desc { color: var(--doux); font-size: 13px; margin-top: 6px; transition: color .4s; }
.tuile:hover .desc { color: var(--ciel); }
.tuile .chiffre { font-family: var(--titre); font-weight: 700; font-size: 40px; line-height: 1; color: var(--marine); transition: color .4s; }
.tuile:hover .chiffre { color: #fff; }
.tuile .chiffre small { font-size: 16px; font-weight: 600; color: var(--doux); margin-left: 4px; transition: color .4s; }
.tuile:hover .chiffre small { color: var(--ciel); }
.tuile .fleche { position: absolute; right: 24px; bottom: 24px; font-size: 22px; color: var(--rouge); transform: translateX(-8px); opacity: 0; transition: all .45s var(--ease); }
.tuile:hover .fleche { transform: none; opacity: 1; color: #fff; }
.tuile .bas { display: flex; align-items: end; justify-content: space-between; }
.tuile.bientot { opacity: .8; }
.tuile .etiquette { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--acier); font-weight: 600; }
.tuile:hover .etiquette { color: var(--ciel); }

/* ---------------------------------------------------------- indicateurs */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
@media (max-width: 1300px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kpi { padding: 18px 20px; position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.kpi:hover { transform: translateY(-3px); box-shadow: var(--ombre-haute); }
.kpi .lib { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--doux); font-weight: 600; }
.kpi .val { font-family: var(--titre); font-weight: 700; font-size: 36px; line-height: 1.05; color: var(--marine); margin-top: 6px; }
.kpi .val small { font-size: 16px; color: var(--doux); font-weight: 600; margin-left: 2px; }
.kpi .note { font-size: 12px; color: var(--doux); margin-top: 4px; }
.kpi .barre { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--acier); width: 0; transition: width 1.2s var(--ease); }
.kpi.alerte .val { color: var(--rouge); }
.kpi.alerte .barre { background: var(--rouge); }
.kpi.bon .val { color: var(--vert); }
.kpi.bon .barre { background: var(--vert); }

.grille-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.grille-2b { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 1200px) { .grille-2, .grille-2b { grid-template-columns: 1fr; } }
.graphe { padding: 20px 22px; }
.graphe .zone-graphe { position: relative; height: 340px; margin-top: 14px; }
.graphe .zone-graphe.haut { height: 420px; }
.legende { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--doux); }
.legende span { display: inline-flex; align-items: center; gap: 7px; }
.legende i { width: 18px; height: 3px; border-radius: 2px; display: inline-block; }

.ligne-prog { display: grid; grid-template-columns: minmax(230px, 38%) 1fr 58px; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--trait); }
.ligne-prog:last-child { border-bottom: 0; }
.ligne-prog .nom { font-size: 13px; font-weight: 600; color: var(--texte); line-height: 1.3; }
.ligne-prog .nom small { display: block; color: var(--doux); font-weight: 500; font-size: 11.5px; }
.piste { position: relative; height: 12px; background: #eef1f5; border-radius: 12px; overflow: hidden; }
.piste .p { position: absolute; inset: 0 auto 0 0; background: repeating-linear-gradient(135deg, rgba(67, 100, 136, .28) 0 6px, rgba(67, 100, 136, .16) 6px 12px); border-radius: 12px; width: 0; transition: width 1.2s var(--ease); }
.piste .r { position: absolute; inset: 2px auto 2px 2px; background: linear-gradient(90deg, var(--marine), var(--acier)); border-radius: 10px; width: 0; transition: width 1.3s var(--ease) .15s; }
.piste .r.retard { background: linear-gradient(90deg, var(--rouge), var(--rouge-clair)); }
.ligne-prog .pct { font-family: var(--titre); font-weight: 700; font-size: 17px; text-align: right; color: var(--marine); }

/* gantt */
.gantt { position: relative; padding: 6px 0 0; }
.gantt .rang { display: grid; grid-template-columns: 250px 1fr; align-items: center; height: 38px; }
.gantt .rang .lib { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 10px; }
.gantt .rang .lib b { font-family: var(--titre); color: var(--rouge); margin-right: 8px; }
.gantt .rail { position: relative; height: 100%; }
.gantt .bloc { position: absolute; top: 9px; height: 20px; border-radius: 6px; background: #d9e3ee; overflow: hidden; transform-origin: left; animation: deploie .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); }
.gantt .bloc .fait { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--marine), var(--acier)); }
@keyframes deploie { from { transform: scaleX(0); opacity: 0; } }
.gantt .jour { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--rouge); z-index: 3; }
.gantt .jour span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: var(--rouge); white-space: nowrap; }
.gantt .graduations { display: grid; grid-template-columns: 250px 1fr; font-size: 11px; color: var(--doux); margin-top: 6px; }
.gantt .graduations .g { position: relative; height: 16px; }
.gantt .graduations .g span { position: absolute; transform: translateX(-50%); white-space: nowrap; }

/* ---------------------------------------------------------- taches */
.barre-filtres { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding: 14px 18px; margin-bottom: 16px; }
.barre-filtres .form-select, .barre-filtres .form-control { border-radius: 10px; border-color: var(--trait); font-size: 13px; }
.barre-filtres .form-control:focus, .barre-filtres .form-select:focus { border-color: var(--acier); box-shadow: 0 0 0 4px rgba(67, 100, 136, .15); }
.pastilles { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pastille { border: 1px solid var(--trait); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; color: var(--texte); cursor: pointer; transition: all .3s var(--ease); }
.pastille b { font-family: var(--titre); font-size: 15px; margin-left: 6px; }
.pastille:hover { border-color: var(--acier); transform: translateY(-1px); }
.pastille.on { background: var(--marine); border-color: var(--marine); color: #fff; }

.table-taches { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.table-taches thead th { position: sticky; top: 70px; z-index: 5; background: #f8fafc; font-family: var(--titre); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--acier); padding: 11px 12px; border-bottom: 1px solid var(--trait); }
.table-taches tbody tr { transition: background .25s; }
.table-taches tbody tr:hover { background: #f5f8fc; }
.table-taches td { padding: 10px 12px; border-bottom: 1px solid #f0f2f5; vertical-align: middle; }
.table-taches .ref { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: var(--marine); overflow-wrap: anywhere; }
.table-taches .desc { overflow-wrap: anywhere; }
.table-taches .desc small { display: block; color: var(--doux); font-size: 11.5px; margin-top: 2px; }
.table-taches tr.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { background: rgba(193, 225, 244, .9); } 100% { background: transparent; } }
.puce-jalon { font-family: var(--titre); font-weight: 700; font-size: 13px; color: #fff; background: var(--acier); border-radius: 6px; padding: 2px 7px; }
.badge-config { display: inline-block; font-size: 10.5px; font-weight: 600; background: #fff4e5; color: #8a5a00; border-radius: 6px; padding: 2px 6px; margin: 2px 4px 0 0; }
.badge-alerte { display: inline-block; font-size: 10.5px; font-weight: 600; background: #fdecee; color: var(--rouge); border-radius: 6px; padding: 2px 6px; margin: 2px 4px 0 0; }

.select-statut { border: 0; border-radius: 999px; font-size: 12px; font-weight: 700; padding: 5px 26px 5px 12px; cursor: pointer; transition: all .3s var(--ease); background-position: right 8px center; }
.select-statut.a_faire { background-color: #eef1f5; color: #4b5563; }
.select-statut.en_cours { background-color: #e6f0fa; color: var(--acier); }
.select-statut.bloquee { background-color: #fdecee; color: var(--rouge); }
.select-statut.terminee { background-color: #e5f5ee; color: var(--vert); }
.select-tech { border: 1px solid var(--trait); border-radius: 8px; font-size: 12px; padding: 4px 8px; max-width: 150px; }

.chargement { position: relative; overflow: hidden; background: #eef1f5; border-radius: 10px; }
.chargement::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: brille 1.3s infinite; }
@keyframes brille { to { transform: translateX(100%); } }

.toast-asi { position: fixed; right: 24px; bottom: 24px; z-index: 999; background: var(--marine); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--ombre-haute); font-size: 13px; display: flex; gap: 10px; align-items: center; transform: translateY(20px); opacity: 0; transition: all .45s var(--ease); }
.toast-asi.on { transform: none; opacity: 1; }
.toast-asi i { color: var(--ciel); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .apparait { opacity: 1; transform: none; }
}

/* ================================================================= ouverture */
.intro { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center;
  background: radial-gradient(900px 500px at 50% 45%, var(--marine-3), var(--marine) 70%); transition: opacity .7s var(--ease), visibility .7s; }
.intro.fini { opacity: 0; visibility: hidden; }
.intro .bloc-logo { position: relative; width: 300px; }
.intro svg { width: 100%; height: auto; overflow: visible; }
.intro svg path, .intro svg line, .intro svg rect, .intro svg polygon { stroke: #fff; stroke-width: 2; fill: transparent;
  stroke-dasharray: 2200; stroke-dashoffset: 2200; animation: trace 1.5s var(--ease) forwards, remplit .6s ease 1.15s forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes remplit { to { fill: #fff; stroke-width: 0; } }
.intro .filet { position: absolute; left: 0; bottom: -26px; height: 5px; width: 100%; background: var(--rouge);
  transform: scaleX(0); transform-origin: left; animation: filetIntro .7s var(--ease) 1.35s forwards; }
.intro .slogan { position: absolute; left: 0; right: 0; bottom: -70px; text-align: center; color: var(--ciel);
  font-family: var(--titre); font-weight: 600; letter-spacing: .3em; font-size: 14px; text-transform: uppercase; opacity: 0;
  animation: monte .7s var(--ease) 1.6s forwards; transform: translateY(10px); }
@keyframes filetIntro { to { transform: scaleX(1); } }

/* ================================================================= menu principal */
.menu-principal { min-height: calc(100vh - 140px); display: flex; flex-direction: column; justify-content: center; }
.menu-principal .salut { text-align: center; margin-bottom: 40px; }
.menu-principal .salut h1 { font-size: 46px; margin: 0; }
.menu-principal .salut p { color: var(--doux); font-size: 15px; margin-top: 8px; }
.grandes-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 24px; max-width: 1280px; margin: 0 auto; width: 100%; }
@media (max-width: 620px) { .grandes-tuiles { grid-template-columns: 1fr; } }
.grande-tuile { position: relative; aspect-ratio: 1 / 1; border-radius: 26px; overflow: hidden; padding: 28px; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--ombre-haute);
  background: linear-gradient(150deg, var(--marine) 0%, var(--marine-3) 100%); transition: transform .55s var(--ease), box-shadow .55s var(--ease); isolation: isolate; }
.grande-tuile.claire { background: linear-gradient(150deg, #fff 0%, #eef4fa 100%); color: var(--marine); }
.grande-tuile::after { content: ""; position: absolute; width: 520px; height: 520px; right: -220px; bottom: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(193,225,244,.25), transparent 65%); transition: transform .8s var(--ease); z-index: -1; }
.grande-tuile:hover { transform: translateY(-10px) scale(1.01); box-shadow: 0 30px 60px rgba(12,40,70,.28); color: #fff; }
.grande-tuile.claire:hover { color: var(--marine); }
.grande-tuile:hover::after { transform: scale(1.35) translate(-40px, -40px); }
.grande-tuile .ico { font-size: 54px; line-height: 1; transition: transform .55s var(--ease); }
.grande-tuile:hover .ico { transform: translateY(-4px) rotate(-6deg); }
.grande-tuile .nom { font-family: var(--titre); font-weight: 700; font-size: clamp(30px, 3.1vw, 42px); line-height: 1.02; letter-spacing: .02em; }
.grande-tuile .desc { opacity: .75; margin-top: 10px; font-size: 14px; max-width: 90%; }
.grande-tuile .trait { height: 4px; width: 60px; background: var(--rouge); border-radius: 2px; margin: 18px 0 0; transition: width .55s var(--ease); }
.grande-tuile:hover .trait { width: 140px; }
.grande-tuile .chiffres { display: flex; gap: 26px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.grande-tuile .chiffres b { display: block; font-family: var(--titre); font-size: 30px; letter-spacing: 0; opacity: 1; }

/* ================================================================= fil d'ariane et onglets */
.ariane { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--doux); margin-bottom: 14px; flex-wrap: wrap; }
.ariane a { color: var(--acier); font-weight: 600; }
.ariane a:hover { color: var(--marine); }
.ariane i { font-size: 11px; opacity: .6; }
.onglets { display: flex; gap: 6px; padding: 6px; background: #fff; border-radius: 14px; box-shadow: var(--ombre); margin-bottom: 24px; overflow-x: auto; position: relative; }
.onglets a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px;
  font-family: var(--titre); font-weight: 700; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; color: var(--doux); white-space: nowrap; transition: color .3s; }
.onglets a:hover { color: var(--marine); }
.onglets a.on { color: #fff; }
.onglets .curseur-onglet { position: absolute; top: 6px; bottom: 6px; border-radius: 10px; background: linear-gradient(120deg, var(--marine), var(--marine-3));
  box-shadow: 0 6px 16px rgba(12,40,70,.25); transition: left .45s var(--ease), width .45s var(--ease); z-index: 0; }

.fiche-visite { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; flex-wrap: wrap; }
.fiche-visite h1 { margin: 0; font-size: 34px; line-height: 1; }
.fiche-visite .meta { color: var(--doux); font-size: 13px; margin-top: 6px; }
.etiquette-demo { background: var(--rouge); color: #fff; border-radius: 999px; padding: 4px 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pastille-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--vert); font-weight: 600; }
.pastille-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 0 rgba(15,138,95,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(15,138,95,.5); } 70% { box-shadow: 0 0 0 10px rgba(15,138,95,0); } 100% { box-shadow: 0 0 0 0 rgba(15,138,95,0); } }

/* ================================================================= courbe d'avancement */
.outils-courbe { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.segment { display: inline-flex; background: #eef1f5; border-radius: 10px; padding: 3px; }
.segment button { border: 0; background: transparent; padding: 6px 14px; border-radius: 8px; font-weight: 700; font-size: 12.5px; color: var(--doux); transition: all .3s var(--ease); }
.segment button.on { background: #fff; color: var(--marine); box-shadow: 0 2px 6px rgba(12,40,70,.12); }
.courbe-cadre { display: grid; grid-template-columns: 1fr 360px; gap: 18px; margin-top: 16px; }
@media (max-width: 1300px) { .courbe-cadre { grid-template-columns: 1fr; } }
.courbe-zone { position: relative; height: 480px; cursor: crosshair; }
.apercu { position: relative; height: 64px; margin-top: 12px; border-radius: 10px; background: #f6f8fb; overflow: hidden; user-select: none; }
.apercu canvas { position: absolute; inset: 0; }
.apercu .fenetre { position: absolute; top: 0; bottom: 0; background: rgba(12,40,70,.10); border: 2px solid var(--marine); border-radius: 8px; cursor: grab; transition: background .2s; }
.apercu .fenetre:active { cursor: grabbing; background: rgba(12,40,70,.16); }
.apercu .fenetre .poignee { position: absolute; top: 50%; width: 10px; height: 30px; margin-top: -15px; background: var(--marine); border-radius: 4px; cursor: ew-resize; }
.apercu .fenetre .poignee.g { left: -6px; }
.apercu .fenetre .poignee.d { right: -6px; }
.apercu .masque { position: absolute; top: 0; bottom: 0; background: rgba(238,242,247,.7); pointer-events: none; }

.bulle-courbe { position: absolute; pointer-events: none; z-index: 20; min-width: 250px; background: rgba(12,40,70,.96); color: #fff; border-radius: 14px;
  padding: 14px 16px; box-shadow: 0 18px 40px rgba(12,40,70,.35); font-size: 12.5px; opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s; backdrop-filter: blur(6px); }
.bulle-courbe.on { opacity: 1; transform: none; }
.bulle-courbe .t { font-family: var(--titre); font-weight: 700; font-size: 17px; letter-spacing: .04em; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 12px; }
.bulle-courbe .l { display: flex; justify-content: space-between; gap: 18px; padding: 3px 0; }
.bulle-courbe .l span:first-child { color: var(--ciel); display: flex; align-items: center; gap: 7px; }
.bulle-courbe .l i { width: 10px; height: 3px; border-radius: 2px; display: inline-block; }
.bulle-courbe .sep { height: 1px; background: rgba(255,255,255,.15); margin: 7px 0; }
.bulle-courbe .retard { color: #ff9aa6; font-weight: 700; }
.bulle-courbe .avance { color: #8ee0bd; font-weight: 700; }
.bulle-courbe .evt { margin-top: 6px; color: #ffd28a; font-weight: 600; }

.panneau-jour { border-left: 1px solid var(--trait); padding-left: 18px; max-height: 520px; overflow-y: auto; }
@media (max-width: 1300px) { .panneau-jour { border-left: 0; padding-left: 0; border-top: 1px solid var(--trait); padding-top: 14px; } }
.panneau-jour .vide { color: var(--doux); font-size: 13px; padding: 30px 6px; text-align: center; }
.panneau-jour .vide i { font-size: 30px; display: block; margin-bottom: 10px; color: var(--ciel); }
.panneau-jour .date { font-family: var(--titre); font-weight: 700; font-size: 22px; color: var(--marine); line-height: 1; }
.panneau-jour .epingle { font-size: 11px; color: var(--rouge); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.panneau-jour .resume { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 14px; }
.panneau-jour .resume div { background: #f5f8fc; border-radius: 10px; padding: 8px 10px; }
.panneau-jour .resume b { display: block; font-family: var(--titre); font-size: 19px; color: var(--marine); }
.panneau-jour .resume small { font-size: 10.5px; color: var(--doux); text-transform: uppercase; letter-spacing: .05em; }
.panneau-jour h6 { font-family: var(--titre); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--acier); margin: 14px 0 8px; }
.fait-jour { position: relative; padding: 9px 10px 9px 14px; border-radius: 10px; background: #fafbfd; margin-bottom: 7px; font-size: 12.5px; animation: monte .4s var(--ease) both; }
.fait-jour::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--acier); }
.fait-jour.incident { background: #fff6f7; }
.fait-jour.incident::before { background: var(--rouge); }
.fait-jour.signe::before { background: var(--vert); }
.fait-jour .qui { font-size: 11px; color: var(--doux); margin-top: 2px; }
.fait-jour b { color: var(--marine); }

.kpi .val.petit { font-size: 28px; }

/* ================================================================= cartes avions */
.cartes-avions { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 22px; }
.carte-avion { padding: 22px; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.carte-avion:hover { transform: translateY(-4px); box-shadow: var(--ombre-haute); }
.carte-avion .type { font-family: var(--titre); font-weight: 700; font-size: 24px; color: var(--marine); line-height: 1.05; }
.carte-avion .sn { color: var(--doux); font-size: 13px; }
.visite-ligne { display: grid; grid-template-columns: 1fr 130px; gap: 14px; align-items: center; padding: 14px; border-radius: 12px; margin-top: 12px;
  background: #f7f9fc; transition: background .3s, transform .3s var(--ease); color: var(--texte); }
.visite-ligne:hover { background: #eaf1f8; transform: translateX(4px); color: var(--texte); }
.visite-ligne .n { font-weight: 700; color: var(--marine); }
.visite-ligne .m { font-size: 12px; color: var(--doux); margin-top: 3px; }
.visite-ligne canvas { width: 130px !important; height: 46px !important; }
.bouton-asi { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 10px; padding: 10px 18px; font-weight: 700; font-size: 13px;
  background: linear-gradient(120deg, var(--marine), var(--marine-3)); color: #fff; box-shadow: 0 6px 16px rgba(12,40,70,.22); transition: transform .3s var(--ease), box-shadow .3s; }
.bouton-asi:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(12,40,70,.3); color: #fff; }
.bouton-asi.rouge { background: linear-gradient(120deg, var(--rouge), var(--rouge-clair)); box-shadow: 0 6px 16px rgba(174,0,24,.25); }
.bouton-asi.clair { background: #fff; color: var(--marine); border: 1px solid var(--trait); box-shadow: none; }
.bouton-asi:disabled { opacity: .5; transform: none; }

.zone-depot { border: 2px dashed #c9d5e3; border-radius: 14px; padding: 26px; text-align: center; color: var(--doux); transition: all .3s var(--ease); cursor: pointer; background: #fafcff; }
.zone-depot.survol { border-color: var(--acier); background: #eef5fb; color: var(--marine); transform: scale(1.01); }
.zone-depot i { font-size: 30px; color: var(--acier); display: block; margin-bottom: 6px; }

.modal-content { border-radius: 18px; border: 0; box-shadow: var(--ombre-haute); }
.modal-header { border-bottom: 1px solid var(--trait); }
.modal-title { font-family: var(--titre); font-weight: 700; font-size: 22px; color: var(--marine); }
.form-label { font-size: 12px; font-weight: 700; color: var(--acier); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
.form-control, .form-select { border-radius: 10px; border-color: var(--trait); }
.form-control:focus, .form-select:focus { border-color: var(--acier); box-shadow: 0 0 0 4px rgba(67,100,136,.15); }

/* ================================================================= fiche tache */
.tete-tache { padding: 24px 26px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.tete-tache .ref { font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--acier); font-size: 14px; }
.tete-tache h1 { font-size: 28px; margin: 6px 0; line-height: 1.15; }
.anneau { position: relative; width: 132px; height: 132px; }
.anneau svg { transform: rotate(-90deg); }
.anneau circle { fill: none; stroke-width: 11; }
.anneau .fond { stroke: #eef1f5; }
.anneau .valeur { stroke: url(#degradeAnneau); stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease); }
.anneau .centre { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.anneau .centre b { font-family: var(--titre); font-size: 34px; color: var(--marine); line-height: 1; display: block; }
.anneau .centre small { font-size: 10.5px; color: var(--doux); text-transform: uppercase; letter-spacing: .06em; }
.grille-tache { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-top: 20px; }
@media (max-width: 1150px) { .grille-tache { grid-template-columns: 1fr; } }
.bloc { padding: 20px 22px; }
.bloc + .bloc { margin-top: 20px; }
.infos-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin-top: 12px; }
.infos-grille div small { display: block; font-size: 11px; text-transform: uppercase; color: var(--doux); letter-spacing: .05em; }
.infos-grille div span { font-size: 13px; }
.chrono { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 14px; background: #f5f8fc; margin-top: 12px; flex-wrap: wrap; }
.chrono .temps { font-family: var(--titre); font-weight: 700; font-size: 38px; color: var(--marine); font-variant-numeric: tabular-nums; min-width: 150px; }
.chrono.actif { background: linear-gradient(120deg, #e6f5ee, #f2fbf7); }
.chrono.actif .temps { color: var(--vert); }
.btn-chrono { width: 64px; height: 64px; border-radius: 50%; border: 0; color: #fff; font-size: 26px; display: grid; place-items: center;
  background: var(--vert); box-shadow: 0 8px 20px rgba(15,138,95,.35); transition: transform .3s var(--ease), background .3s; }
.btn-chrono:hover { transform: scale(1.07); }
.btn-chrono.stop { background: var(--rouge); box-shadow: 0 8px 20px rgba(174,0,24,.35); animation: respire 2s infinite; }
@keyframes respire { 50% { transform: scale(1.06); } }
.liste-mini { margin-top: 12px; }
.liste-mini .item { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f2f5; font-size: 13px; animation: monte .35s var(--ease) both; }
.liste-mini .item:last-child { border-bottom: 0; }
.liste-mini .item small { color: var(--doux); display: block; font-size: 11.5px; }
.liste-mini .suppr, .piece-ligne .suppr { border: 0; background: transparent; color: #b8c0cc; transition: color .2s; }
.liste-mini .suppr:hover, .piece-ligne .suppr:hover { color: var(--rouge); }
.pad-signature { position: relative; border: 2px dashed #c9d5e3; border-radius: 14px; background: #fff; height: 180px; touch-action: none; margin-top: 12px; }
.pad-signature canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.pad-signature .aide { position: absolute; inset: 0; display: grid; place-items: center; color: #b8c0cc; pointer-events: none; font-size: 13px; transition: opacity .3s; }
.carte-signee { display: flex; gap: 18px; align-items: center; padding: 16px; border-radius: 14px; background: linear-gradient(120deg, #e6f5ee, #f5fbf8); margin-top: 12px; }
.carte-signee img { height: 70px; background: #fff; border-radius: 10px; padding: 6px; }
.tampon { font-family: var(--titre); font-weight: 700; color: var(--vert); font-size: 20px; letter-spacing: .06em; text-transform: uppercase; }
.jauge-tache { height: 6px; border-radius: 6px; background: #eef1f5; overflow: hidden; min-width: 70px; }
.jauge-tache div { height: 100%; background: linear-gradient(90deg, var(--marine), var(--acier)); border-radius: 6px; transition: width 1s var(--ease); }
.jauge-tache.ok div { background: var(--vert); }
.lien-ligne { cursor: pointer; }
.chrono-actif-puce { display: inline-flex; width: 8px; height: 8px; border-radius: 50%; background: var(--vert); margin-right: 6px; animation: pulse 2s infinite; }

.kpi.juste .val { color: #d9a404; }
.kpi.juste .barre { background: #d9a404; }

/* pieces deposees et posees */
.pieces-alerte, .pieces-ok-etat { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: 13px; margin-top: 10px; }
.pieces-alerte { background: #fdecee; color: #7d0011; }
.pieces-alerte i { color: var(--rouge); font-size: 18px; }
.pieces-ok-etat { background: #e6f5ee; color: #0b5d40; }
.pieces-ok-etat i { color: var(--vert); font-size: 18px; }
.pieces-titre-prop { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); margin: 12px 0 6px; font-weight: 700; }
.pieces-prop { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1.5px dashed #c9d5e3; background: #f8fbfe; border-radius: 12px;
  padding: 8px 12px; margin-bottom: 6px; color: var(--marine); font-size: 13px; transition: all .25s var(--ease); }
.pieces-prop:hover { border-color: var(--acier); background: #eef4fa; transform: translateX(3px); }
.pieces-prop i { font-size: 18px; color: var(--acier); }
.pieces-prop small { display: block; font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--acier); font-size: 11.5px; }
.piece-ligne { border: 1px solid #e6ebf1; border-radius: 14px; padding: 10px 12px; margin-top: 10px; animation: monte .4s var(--ease) both; }
.piece-tete { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.piece-sens { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin-top: 6px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; }
.piece-sens small { display: block; font-family: var(--titre, sans-serif); text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; color: var(--doux); font-weight: 700; }
.piece-sens > i { color: var(--acier); font-size: 18px; }
.piece-sens .manque { color: var(--rouge); font-weight: 700; }
.piece-ligne .vide { color: #b8c0cc; }
.piece-pied { font-size: 12px; color: var(--doux); margin-top: 6px; }
.pieces-ajout { font-size: 13.5px; font-weight: 700; color: var(--acier); cursor: pointer; list-style: none; padding: 8px 0; }
.pieces-ajout::-webkit-details-marker { display: none; }
.pieces-sens { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-top: 6px; display: flex; gap: 6px; align-items: center; }
.pieces-sens.depose { color: #8a5a00; }
.pieces-sens.pose { color: var(--vert); }
.qui-bureau { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border: 0; color: #fff; border-radius: 999px; padding: 4px 14px 4px 4px; line-height: 1.1; font-size: 13px; transition: background .25s; }
.qui-bureau:hover { background: rgba(255,255,255,.16); }
.qui-bureau small { display: block; font-size: 11px; color: var(--ciel); }
.qui-bureau .init { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ciel); color: var(--marine); font-weight: 700; font-size: 12.5px; }
.tableau-defile { overflow-x: auto; margin-top: 12px; }
.tableau-defile .table-taches thead th { position: static; }
.piece-ligne .suppr { font-size: 16px; padding: 4px 6px; }

/* ================================================================= supply chain */
.saisie-stock .grille-saisie { display: grid; gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-areas: "pn sn des des cst qte" "crt avi cd due tag emp" "com com com com btn btn"; }
@media (max-width: 1100px) { .saisie-stock .grille-saisie {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas: "pn sn des des" "cst qte crt avi" "cd due tag emp" "com com btn btn"; } }
@media (max-width: 700px) { .saisie-stock .grille-saisie {
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "pn sn" "des des" "cst qte" "crt avi" "cd due" "tag emp" "com com" "btn btn"; } }
.etiq-cert { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 7px; background: #eef4fa; color: var(--acier); white-space: nowrap; }
.etiq-cert.EASA, .etiq-cert.FAA, .etiq-cert.CAA { background: #e5f5ee; color: var(--vert); }
.etiq-cert.TAG { background: #fff4e5; color: #8a5a00; }
.saisie-stock { border-left: 4px solid var(--rouge); }
.etat-stock { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 7px; background: #eef4fa; color: var(--acier); }
.etat-stock.SV, .etat-stock.OH, .etat-stock.NE, .etat-stock.NS, .etat-stock.RP, .etat-stock.INS, .etat-stock.TST { background: #e5f5ee; color: var(--vert); }
.etat-stock.US, .etat-stock.SCR { background: #fdecee; color: var(--rouge); }
.etat-stock.AR { background: #fff4e5; color: #8a5a00; }
.etat-stock.AR-FONCTIONNEL { background: #eaf7ee; color: #1a7a3a; }
.etat-stock.AR-INOP { background: #fdecee; color: var(--rouge); }
.table-taches td.modifiable { cursor: text; }
.table-taches td.modifiable:hover { background: #eef4fa; box-shadow: inset 0 0 0 1px #c9d5e3; }
.table-taches td.modifiable .vide { color: #c3cbd6; font-style: italic; }
.table-taches tr.sortie { opacity: .45; text-decoration: line-through; }
.table-taches tr.sortie .suppr { text-decoration: none; }

/* lecture des photos de tags */
.photos-lues { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; margin-top: 14px; }
.photo-lue { display: grid; grid-template-columns: 96px 1fr; gap: 12px; border: 1px solid #e6ebf1; border-radius: 14px; padding: 10px;
  animation: monte .4s var(--ease) both; }
.photo-lue.a-valider { border-color: #f0c98a; background: #fffaf2; }
.photo-lue img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: #eef1f5; }
.photo-lue .ref-photo { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 700; font-size: 13px; color: var(--marine); margin-top: 5px; }
.photo-lue .desc-photo { font-size: 12.5px; color: var(--texte); }
.photo-lue .msg-photo { font-size: 11.5px; color: var(--doux); margin-top: 2px; }
.etiq-action { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 7px; background: #eef4fa; color: var(--acier); }
.etiq-action.ok { background: #e5f5ee; color: var(--vert); }
.etiq-action.doublon { background: #eef1f5; color: var(--doux); }
.etiq-action.attention { background: #fff4e5; color: #8a5a00; }

.champ-date.date-invalide { border-color: var(--rouge); box-shadow: 0 0 0 3px rgba(174,0,24,.12); }

.badge-planif { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 4px 12px; cursor: pointer;
  background: #eef4fa; color: var(--acier); border: 1px solid var(--trait); transition: all .25s var(--ease); }
.badge-planif:hover { border-color: var(--acier); transform: translateY(-1px); }
.badge-planif.illimite { background: #f3ecfb; color: #5b3fa8; border-color: #ddd0f2; }

/* planning jour par jour */
.jour-planning { margin-bottom: 14px; }
.jour-planning .tete-jour { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--trait); padding-bottom: 10px; margin-bottom: 12px; }
.jour-planning .tete-jour b { font-family: var(--titre); font-size: 18px; text-transform: capitalize; }
.grille-mecanos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.mecano-jour { border: 1px solid #e6ebf1; border-radius: 14px; padding: 10px 12px; background: #fff;
  text-align: left; width: 100%; transition: all .25s var(--ease); }
.mecano-jour:hover { border-color: var(--acier); transform: translateY(-2px); box-shadow: var(--ombre); }
.apercu-taches { margin-top: 6px; }
.apercu-ligne { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; font-size: 12px;
  color: var(--texte); padding: 3px 0; border-top: 1px solid #f2f5f8; }
.apercu-ligne span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apercu-ligne.plus { display: block; color: var(--doux); font-size: 11.5px; font-style: italic; }
.mecano-jour.renfort { border-style: dashed; background: #fbf9ff; }
.mecano-jour .nom { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mecano-jour .nom .init { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  font-family: var(--titre); font-weight: 700; font-size: 13px; background: linear-gradient(135deg, var(--marine), var(--acier)); }
.mecano-jour.renfort .nom .init { background: linear-gradient(135deg, #7a5cc4, #a78ff0); }
.mecano-jour .nom small { display: block; font-size: 11.5px; color: var(--doux); }
.ligne-tache { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 6px 0;
  border-top: 1px solid #f2f5f8; color: var(--texte); font-size: 12.5px; }
.ligne-tache:hover { color: var(--marine); background: #f7fafd; }
.ligne-tache .txt small { display: block; color: var(--doux); font-size: 11px; }
.ligne-tache .h { font-family: var(--titre); color: var(--marine); white-space: nowrap; }

.select-avancement { border: 1px solid var(--trait); border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--marine);
  background: #fff; padding: 2px 4px; min-width: 62px; cursor: pointer; }
.select-avancement.saisi { background: #eef4fa; border-color: var(--acier); }
.select-avancement:disabled { opacity: .5; cursor: default; }

.jour-planning.vise { animation: vise 1.6s var(--ease); }
@keyframes vise { 0% { box-shadow: 0 0 0 0 rgba(31,78,121,.45); } 100% { box-shadow: 0 0 0 14px rgba(31,78,121,0); } }
.lien-jour { border: 1px solid var(--trait); background: #eef4fa; cursor: pointer; }
.lien-jour:hover { background: #dce8f5; }

/* ------------------------------------------------------------------ gantt */
.groupe-echelle { display: flex; gap: 6px; }
.groupe-echelle .bouton-asi.on { background: var(--marine); color: #fff; border-color: var(--marine); }
.gantt-cadre { overflow: auto; max-height: 72vh; }
.gantt-defile { min-width: max-content; }
.gantt-ligne { display: flex; align-items: stretch; border-bottom: 1px solid #f0f2f5; }
.gantt-ligne.entete { position: sticky; top: 0; z-index: 6; background: #f8fafc; border-bottom: 1px solid var(--trait); }
.gantt-ligne.titre { background: #eef4fa; }
.gantt-ligne.titre .gantt-nom b { font-family: var(--titre); letter-spacing: .04em; text-transform: uppercase; font-size: 12.5px; color: var(--marine); }
.gantt-nom { position: sticky; left: 0; z-index: 4; width: 320px; min-width: 320px; background: #fff; padding: 8px 12px; border-right: 1px solid var(--trait); }
.gantt-ligne.entete .gantt-nom { background: #f8fafc; font-family: var(--titre); text-transform: uppercase; font-size: 12px; letter-spacing: .06em; color: var(--acier); display: flex; align-items: flex-end; }
.gantt-ligne.titre .gantt-nom { background: #eef4fa; }
.gantt-nom a { display: block; color: inherit; text-decoration: none; }
.gantt-nom a:hover b { text-decoration: underline; }
.gantt-nom b { font-size: 12.5px; font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--marine); margin-right: 6px; }
.gantt-nom span { font-size: 12.5px; color: var(--encre); }
.gantt-nom small { display: block; color: var(--doux); font-size: 11px; margin-top: 2px; }
.gantt-piste { position: relative; display: flex; flex: 1; }
.gantt-col { border-left: 1px solid #f0f2f5; padding: 6px 4px 4px; text-align: center; }
.gantt-col b { display: block; font-size: 12px; color: var(--marine); }
.gantt-col small { display: block; font-size: 10.5px; color: var(--doux); }
.gantt-charge { height: 22px; display: flex; align-items: flex-end; justify-content: center; margin-top: 4px; }
.gantt-charge span { display: block; width: 60%; background: #cddcea; border-radius: 2px 2px 0 0; min-height: 2px; }
.gantt-case { border-left: 1px solid #f4f6f8; }
.gantt-barre { position: absolute; top: 7px; bottom: 7px; border-radius: 6px; background: var(--acier); color: #fff;
  display: flex; align-items: center; padding: 0 8px; font-size: 11px; overflow: hidden; text-decoration: none;
  box-shadow: 0 1px 3px rgba(16,32,48,.18); transition: filter .2s var(--ease); }
.gantt-barre:hover { filter: brightness(1.12); color: #fff; }
.gantt-barre span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt-barre.jJ1 { background: #1f4e79; } .gantt-barre.jJ2 { background: #2e6da4; }
.gantt-barre.jJ3 { background: #3d86b8; } .gantt-barre.jJ4 { background: #4e9ac2; }
.gantt-barre.jJ5 { background: #5aa9a0; } .gantt-barre.jJ6 { background: #6cae72; }
.gantt-barre.jJ7 { background: #c99a3d; } .gantt-barre.jJ8 { background: #c4753c; }
.gantt-barre.jJ9 { background: #a6483c; }

.bulle-bloc { position: absolute; z-index: 9; pointer-events: none; opacity: 0; transform: translateY(4px);
  transition: opacity .15s var(--ease), transform .15s var(--ease); background: #0c2846; color: #fff;
  border-radius: 10px; padding: 10px 12px; max-width: 320px; box-shadow: var(--ombre-haute); font-size: 12px; }
.bulle-bloc.on { opacity: 1; transform: translateY(0); }
.bulle-bloc .tete { display: flex; align-items: center; gap: 6px; font-family: var(--titre); font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; font-size: 11.5px; color: #9fc0e0; margin-bottom: 4px; }
.bulle-bloc .ref { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: #cfe1f3; }
.bulle-bloc .desc { font-size: 12.5px; margin: 2px 0 4px; }
.bulle-bloc .bas { color: #9fb6cc; font-size: 11.5px; }

/* ------------------------------------------------- vues direction et douanes */
.grille-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 1100px) { .grille-deux { grid-template-columns: 1fr; } }
.ligne-eco { display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid #f0f2f5; font-size: 13.5px; }
.ligne-eco small { display: block; color: var(--doux); font-size: 11.5px; }
.ligne-eco.fort { font-size: 15px; }
.ligne-eco.fort b { color: var(--vert); font-size: 17px; font-family: var(--titre); }
.ligne-eco.fort b.negatif { color: var(--rouge); }
.ligne-eco:last-child { border-bottom: 0; }

.choix-espaces { display: grid; gap: 10px; margin-top: 18px; }
.choix-espaces .espace { display: flex; align-items: center; gap: 14px;
  text-align: left; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--trait); background: #fff;
  cursor: pointer; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.choix-espaces .espace:hover { border-color: var(--acier); transform: translateY(-2px); box-shadow: var(--ombre); }
.choix-espaces .espace i { font-size: 22px; color: var(--marine); }
.choix-espaces .espace b { font-family: var(--titre); font-size: 16px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--encre); }

.legende-courbe { display: flex; flex-wrap: wrap; gap: 18px; margin: 2px 0 10px; font-size: 12.5px; color: var(--doux); }
.legende-courbe i { display: inline-block; width: 16px; height: 4px; border-radius: 2px; margin-right: 7px; vertical-align: middle; }

.legende-courbe i.tirets { background-image: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 10px) !important; }

.badge-perf { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; margin-top: 2px; }
.badge-perf.perf-bonne { background: #e3f4ec; color: var(--vert); }
.badge-perf.perf-juste { background: #fbf3dc; color: #9a6b00; }
.badge-perf.perf-faible { background: #fbe5e7; color: var(--rouge); }

.piste.passe { height: 4px; margin-top: 4px; background: #f0ebf7; }
.piste.passe > div { height: 100%; background: #8a5cc2; border-radius: 3px; }
.ligne-prog small.mesure { display: block; font-size: 11px; color: var(--doux); margin-top: 3px; }
.txt-vert { color: var(--vert); }
.txt-rouge { color: var(--rouge); }

.grille-lecture { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: center; }
@media (max-width: 1100px) { .grille-lecture { grid-template-columns: 1fr; } }
.lecture-courbe { display: grid; gap: 14px; }
.lecture-item { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--texte); }
.lecture-item > i { width: 22px; height: 5px; border-radius: 3px; margin-top: 8px; }
.lecture-item > i.tirets { background-image: none !important; -webkit-mask: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 9px); mask: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 9px); }
.lecture-item b:first-child { display: block; font-family: var(--titre); font-size: 14.5px; letter-spacing: .03em; }
.titre-bloc .etiq { font-size: 11px; vertical-align: middle; margin-left: 6px; }

.bulle-mapping { position: fixed; z-index: 1200; pointer-events: none; opacity: 0; transition: opacity .12s var(--ease);
  background: #0c2846; color: #fff; border-radius: 10px; padding: 10px 12px; max-width: 360px;
  box-shadow: var(--ombre-haute); font-size: 12.5px; }
.bulle-mapping.on { opacity: 1; }
.bulle-mapping .tete { font-family: var(--titre); font-weight: 700; font-size: 14px; letter-spacing: .03em; }
.bulle-mapping .sous { color: #9fc0e0; font-size: 11.5px; margin: 2px 0 6px; }
.bulle-mapping .ligne { border-top: 1px solid rgba(255,255,255,.12); padding: 4px 0; line-height: 1.35; }
.bulle-mapping .ligne b { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; color: #cfe1f3; }
.bulle-mapping .ligne .h { display: block; color: #9fb6cc; font-size: 11px; }

.grille-vues { display: block; }
