.nexus-menu details { border-block-end: 1px solid #ffffff19; }
.nexus-menu summary {
  padding: .75rem .65rem;
  color: #f4edf2;
  font-size: .85rem;
  font-weight: 650;
  cursor: pointer;
  border-radius: .5rem;
}
.nexus-menu summary::marker { color: #f5b8bb; }
.nexus-menu summary:hover, .nexus-menu details[open] > summary { background: #ffffff0a; }
.nexus-menu .nexus-sous-menu { padding: .2rem 0 .55rem .55rem; }
.nexus-menu a[aria-current="page"] {
  box-shadow: inset 3px 0 #f2767d;
  background: #6b2835;
  color: #fff;
}
.nexus-menu .nexus-home { font-weight: 750; }
.sidebar .nexus-menu { color: #fff; }
.sidebar .nexus-menu a { display: block; padding: .55rem; color: inherit; overflow-wrap: anywhere; }
.sidebar .nexus-menu summary { color: inherit; }
.sidebar .nexus-menu form button {
  color: inherit; background: transparent; border: 1px solid currentColor; padding: .5rem .7rem; border-radius: .5rem;
}
.sidebar .marque-logo { width: 3rem; height: 3rem; object-fit: contain; border-radius: .35rem; }
.command-centre { display: grid; gap: 1.4rem; }
.command-centre h2 { margin: 0 0 .85rem; font-size: clamp(1.08rem, 2vw, 1.4rem); }
.command-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.4rem, 5vw, 3.5rem);
  min-height: 15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  border: 1px solid #692733;
  border-radius: 1.35rem;
  background: radial-gradient(ellipse at 85% 0%, #52202f 0%, #241822 45%, #17191f 88%);
  color: #fff;
}
.command-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40% -15% 0 42%;
  transform: skew(-23deg);
  opacity: .6;
  background:
    linear-gradient(130deg, transparent 20%, #d9232b78 58%, transparent 84%),
    repeating-linear-gradient(90deg, transparent 0 6%, #f5b8bb2c 6.1% 6.3%, transparent 6.5% 9%),
    repeating-linear-gradient(0deg, transparent 0 10%, #f5b8bb29 10.1% 10.3%, transparent 10.5% 15%);
  mask-image: linear-gradient(140deg, transparent 12%, #000 72%);
}
.command-hero p { color: #f5c2c5; margin: .45rem 0; }
.command-hero h1 { margin: 0; font-size: clamp(2.3rem, 5vw, 4.75rem); line-height: 1.02; letter-spacing: -.055em; }
.command-hero h1 span { display: block; }
.command-hero > a {
  color: #fff; font-weight: 650; text-decoration: none; border: 1px solid #f5b8bb99;
  padding: .65rem .95rem; border-radius: .55rem;
}
.command-hero > a:hover { background: #ffffff15; }
.command-centre .panel { min-width: 0; margin: 0; }
.command-champs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .7rem;
  align-items: end;
}
.command-champs label { display: block; margin-bottom: .35rem; font-weight: 650; }
.command-champs input, .command-champs select { width: 100%; min-width: 0; }
.command-actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.command-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: .7rem;
}
.command-kpi {
  display: grid;
  align-content: start;
  gap: .55rem;
  position: relative;
  overflow: hidden;
  min-width: 0;
  color: var(--texte);
  background: var(--surface, var(--fond));
  border: 1px solid var(--bord);
  border-radius: .8rem;
  padding: .95rem 1rem;
  text-decoration: none;
}
.command-kpi::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: #d9232b; transform: scaleX(0); transform-origin: left; }
.command-kpi:hover, .command-kpi:focus-visible { border-color: #d9232b; color: var(--texte); }
.command-kpi:hover::after, .command-kpi:focus-visible::after { transform: scaleX(1); }
.command-kpi strong { font-variant-numeric: tabular-nums; font-size: clamp(1.04rem, 2vw, 1.65rem); overflow-wrap: anywhere; }
.command-kpi strong small { font-size: .62em; }
.command-note, .command-liste small { color: var(--texte-secondaire); font-size: .84rem; }
.command-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.command-liste { padding: 0; margin: 0 0 .75rem; list-style: none; }
.command-liste li {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .55rem;
  padding: .65rem 0; border-block-end: 1px solid var(--bord); overflow-wrap: anywhere;
}
.command-liste small { display: block; }
.command-serie { display: grid; gap: .5rem; margin-top: .65rem; }
.command-serie button {
  display: grid; grid-template-columns: 5rem minmax(.75rem, 1fr) auto; gap: .5rem;
  align-items: center; text-align: left; border: 1px solid var(--bord);
  color: var(--texte); background: transparent; padding: .55rem; font-size: .84rem;
}
.command-serie button[aria-pressed="true"] { border-color: #d9232b; }
.command-barre { width: var(--largeur, 0%); height: .42rem; border-radius: 1rem; background: linear-gradient(90deg, #d9232b, #f1787e); }
.command-serie output { min-height: 1.25rem; font-size: .85rem; color: var(--texte-secondaire); }
.command-filtres[data-en-cours="true"] [type="submit"] { opacity: .75; }
@media (max-width: 55rem) { .command-duo { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: no-preference) {
  .command-hero::before { animation: illumination-command .85s ease-out both; }
  .command-kpi::after { transition: transform .22s ease; }
  .command-centre > section, .nexus-menu details[open] .nexus-sous-menu { animation: entree-command .24s ease-out both; }
  .command-barre { animation: trace-command .45s ease-out both; transform-origin: left; }
  @keyframes illumination-command { from { opacity: 0; } }
  @keyframes entree-command { from { opacity: .4; transform: translateY(.25rem); } }
  @keyframes trace-command { from { transform: scaleX(0); } }
}
.navigation { min-width: 0; }
.navigation .nexus-menu { margin-top: 1.35rem; }
.nexus-menu a { overflow-wrap: anywhere; }
.command-priorites .command-actions > a {
  padding: .62rem .8rem; border: 1px solid var(--bord); border-radius: .55rem;
}
.command-priorites .command-actions > a:hover { border-color: #d9232b; }
.fil-ariane { display: block; margin: 0 0 1rem; font-size: .85rem; }
.fil-ariane ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 0; }
.fil-ariane li + li::before { content: " / "; margin-inline-end: .4rem; color: var(--texte-secondaire); }
.fil-ariane [aria-current] { font-weight: 650; }

.auth-regie { align-self: center; }
.auth-regie img, .command-illustration, .titre-illustre img {
  display: block;
  max-width: 100%;
  height: auto;
  background: #fff;
  border-radius: .85rem;
}
.auth-regie img { box-shadow: 0 1.1rem 3rem #12050e70; }
.command-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(10rem, .48fr); align-items: center; }
.command-hero > a { justify-self: start; }
.command-illustration { width: 100%; max-width: 22rem; justify-self: end; grid-column: 2; grid-row: span 2; }
.command-hero h1 { font-size: clamp(2.15rem, 4.3vw, 4.45rem); }
.titre-illustre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.titre-illustre img { width: clamp(4rem, 16vw, 8.5rem); max-height: 6rem; object-fit: contain; }
@media (max-width: 600px) {
  .command-hero { grid-template-columns: minmax(0, 1fr); }
  .command-illustration { justify-self: start; grid-column: auto; grid-row: auto; max-width: 12rem; }
}
@media (max-width: 760px) {
  .auth-regie { display: block; justify-self: center; padding: .2rem .6rem; }
  .auth-regie img { width: min(60vw, 13rem); }
}
