@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&family=Montserrat:wght@700;800;900&display=swap');
@import url('./tokens.css');

/* ── 1. Moteur d'Animations CSS Natives (@keyframes) ── */
@keyframes fadeInUp {
  0% {
    opacity: 0.96;
    transform: translate3d(0, 6px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes pulseRedGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(229, 46, 54, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(229, 46, 54, 0);
  }
}

@keyframes pulseEmeraldGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
}

@keyframes ecgTrace {
  0% {
    stroke-dashoffset: 680;
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.92;
  }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -7px, 0);
  }
}

@keyframes floatBadge {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -5px, 0);
  }
}

@keyframes meterFill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes borderGlowSweep {
  0%, 100% {
    border-color: rgba(229, 46, 54, 0.35);
  }
  50% {
    border-color: rgba(229, 46, 54, 0.85);
  }
}

.animate-fade-up {
  animation: fadeInUp 220ms var(--ease-smooth-out) forwards;
}
.stagger-1, .stagger-2, .stagger-3, .stagger-4, .stagger-5, .stagger-6 {
  animation-delay: 0ms;
}

/* Sections immédiatement visibles (zéro délai d'opacité) */
.reveal-section {
  opacity: 1;
  transform: none;
}
.reveal-section.is-visible {
  opacity: 1;
  transform: none;
}

/* ── 2. Reset & Base (#0B1929, #13263B, #1A3048, #C2232A, #E52E36, #FFFFFF, #A0AEC0) ── */
*, *::before, *::after {
  box-sizing: border-box;
}
img, video {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
  background-color: #0B1929;
  color: #FFFFFF;
  color-scheme: dark;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: thin;
  scrollbar-color: #233E5B #07111D;
  overflow-x: clip;
  max-width: 100%;
}

/* Barres de défilement (Scrollbars) 100 % sur mesure */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0B1929;
}
::-webkit-scrollbar-thumb {
  background: #1A3048;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C2232A;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

h1, h2 {
  text-wrap: balance;
}

button, a, .btn, .mdx-trigger, .saas-nav-item, .mobile-bottom-link {
  touch-action: manipulation;
}

.mobile-drawer,
.mobile-drawer-panel,
.t-modal-backdrop,
.saas-dropdown-menu,
.fast-login-popover,
.mdx-popover,
.mx-notify-dock {
  overscroll-behavior: contain;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: #0B1929;
  background-image:
    radial-gradient(circle at 82% 10%, rgba(194, 35, 42, 0.17), transparent 38%),
    radial-gradient(circle at 14% 48%, rgba(26, 48, 72, 0.65), transparent 44%),
    radial-gradient(circle at 88% 82%, rgba(19, 38, 59, 0.8), transparent 46%);
  color: #FFFFFF;
  overflow-x: clip;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 9999;
  background: #C2232A;
  color: #FFFFFF;
  padding: var(--space-3) var(--space-5);
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: top var(--duration-quick) var(--ease-smooth-out);
}
.skip-link:focus {
  top: var(--space-3);
  outline: 3px solid #FFFFFF;
  outline-offset: 2px;
}

:focus-visible {
  outline: 3px solid #E52E36;
  outline-offset: 2px;
}

.tabular,
time,
.kpi-value,
.price-tag,
.table-num,
.code-mono {
  font-variant-numeric: tabular-nums;
}

.code-mono {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: #FFFFFF;
  margin-top: 0;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
  scroll-margin-top: 108px;
}

[id] {
  scroll-margin-top: 108px;
}

h1 { font-size: var(--font-size-h1); font-weight: 800; }
h2 { font-size: var(--font-size-h2); font-weight: 800; }
h3 { font-size: var(--font-size-h3); font-weight: 700; }

p {
  margin-top: 0;
  margin-bottom: var(--space-4);
  color: #A0AEC0;
  max-width: 72ch;
}

a {
  color: #FFFFFF;
  text-decoration-color: rgba(229, 46, 54, 0.7);
  text-underline-offset: 4px;
  transition: color var(--duration-quick) var(--ease-smooth-out);
}
a:hover {
  color: #FCA5A5;
}

/* ── 3. Conteneurs & Grilles ── */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 640px) {
  .container { padding-inline: var(--space-5); }
}
@media (min-width: 1024px) {
  .container { max-width: 1280px; padding-inline: var(--space-6); }
}
@media (min-width: 1440px) {
  .container { max-width: 1380px; }
}

.section {
  padding-block: var(--space-8);
  position: relative;
}
@media (min-width: 1024px) {
  .section { padding-block: var(--space-10); }
}

.section-header {
  margin-bottom: var(--space-6);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #FFFFFF;
  background: linear-gradient(90deg, rgba(194, 35, 42, 0.28) 0%, rgba(19, 38, 59, 0.85) 100%);
  border: 1px solid rgba(229, 46, 54, 0.45);
  border-radius: var(--radius-pill);
  padding: 0.38rem 0.95rem;
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #E52E36;
  box-shadow: 0 0 8px #E52E36;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── 4. Navigation Collante Dynamique MuseCare ── */
.topbar {
  background: rgba(7, 17, 29, 0.94);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-xs);
  color: #A0AEC0;
  padding-block: 0.48rem;
}
.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}
.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #FFFFFF;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #E52E36;
  animation: pulseRedGlow 2.2s infinite;
}
.pulse-dot-emerald {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #10B981;
  animation: pulseEmeraldGlow 2.2s infinite;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 25, 41, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color var(--duration-fast) var(--ease-smooth-out),
              box-shadow var(--duration-fast) var(--ease-smooth-out),
              border-color var(--duration-fast) var(--ease-smooth-out);
}
.site-header.is-scrolled {
  background: rgba(11, 25, 41, 0.95);
  box-shadow: 0 14px 36px rgba(3, 8, 16, 0.68);
  border-bottom-color: rgba(255, 255, 255, 0.14);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: var(--space-4);
  transition: min-height var(--duration-fast) var(--ease-smooth-out);
}
.site-header.is-scrolled .navbar {
  min-height: 64px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: #FFFFFF;
}
.brand-link img {
  height: 46px;
  width: auto;
  display: block;
  transition: height var(--duration-fast) var(--ease-smooth-out),
              transform var(--duration-fast) var(--ease-smooth-out);
}
.site-header.is-scrolled .brand-link img {
  height: 38px;
}
.brand-link:hover img {
  transform: scale(1.03);
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0.25rem;
  background: rgba(19, 38, 59, 0.72);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  align-items: center;
  gap: 0.2rem;
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
}
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 1.05rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #A0AEC0;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: color var(--duration-quick) var(--ease-smooth-out),
              background-color var(--duration-quick) var(--ease-smooth-out),
              box-shadow var(--duration-quick) var(--ease-smooth-out);
}
.nav-link:hover {
  color: #FFFFFF;
  background: rgba(26, 48, 72, 0.75);
}
.nav-link.is-active {
  color: #FFFFFF;
  background: linear-gradient(135deg, #C2232A 0%, #E52E36 100%);
  box-shadow: 0 4px 14px rgba(229, 46, 54, 0.38);
}

.nav-actions {
  display: none;
  align-items: center;
  gap: var(--space-2);
}
@media (min-width: 1024px) {
  .nav-actions { display: flex; }
}

.drawer-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--touch-target-min);
  min-height: var(--touch-target-min);
  background: #13263B;
  color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
}
@media (min-width: 1024px) {
  .drawer-toggle { display: none; }
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 460;
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(7, 17, 29, 0.8);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity var(--duration-fast) var(--ease-smooth-out), visibility 0s linear var(--duration-fast);
}
.mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity var(--duration-fast) var(--ease-smooth-out), visibility 0s;
}
.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  touch-action: pan-y;
  width: min(370px, 88vw);
  background: #13263B;
  border-left: 1px solid var(--color-border-strong);
  border-top-left-radius: var(--radius-xl);
  border-bottom-left-radius: var(--radius-xl);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transform: translateX(100%);
  transition: transform var(--panel-open-dur) var(--panel-ease);
}
.mobile-drawer.is-open .mobile-drawer-panel {
  transform: translateX(0);
}
.mobile-drawer-panel.is-dragging {
  transition: none;
}
.mobile-drawer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.mobile-drawer-links a {
  display: flex;
  align-items: center;
  min-height: var(--touch-target-min);
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
}
.mobile-drawer-links a.is-active,
.mobile-drawer-links a:hover {
  border-color: #E52E36;
  background: var(--red-surface);
}

/* ── 5. Boutons avec Micro-Hover Scale(1.03) & Lueur #E52E36 ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: var(--touch-target-min);
  padding: 0.7rem 1.45rem;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-smooth-out),
              color var(--duration-fast) var(--ease-smooth-out),
              border-color var(--duration-fast) var(--ease-smooth-out),
              transform var(--duration-fast) var(--ease-smooth-out),
              box-shadow var(--duration-fast) var(--ease-smooth-out);
}
.btn-primary {
  background: linear-gradient(135deg, #C2232A 0%, #E52E36 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(194, 35, 42, 0.35);
}
.btn-primary:hover {
  background: #E52E36;
  color: #FFFFFF;
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 10px 28px rgba(229, 46, 54, 0.52);
}
.btn-secondary {
  background: #1A3048;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.14);
}
.btn-secondary:hover {
  background: #233E5B;
  border-color: rgba(229, 46, 54, 0.55);
  color: #FFFFFF;
  transform: scale(1.03) translateY(-2px);
}
.btn-outline {
  background: rgba(19, 38, 59, 0.55);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.16);
}
.btn-outline:hover {
  border-color: #E52E36;
  background: var(--red-surface);
  color: #FFFFFF;
}
.btn-sm {
  min-height: 48px;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  border-radius: var(--radius-md);
}
.btn-danger {
  background: #991B1B;
  color: #FFFFFF;
}
.btn-danger:hover {
  background: #E52E36;
  transform: scale(1.03);
}

/* ── 6. NOUVEAU HERO ASYMÉTRIQUE INSPIRÉ DE MUSECARE ── */
.muse-hero {
  position: relative;
  padding-block: var(--space-8) var(--space-10);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}
.muse-hero::before {
  content: "";
  position: absolute;
  top: -15%;
  right: -8%;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 46, 54, 0.18) 0%, rgba(19, 38, 59, 0) 70%);
  pointer-events: none;
}

.muse-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 1080px) {
  .muse-hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 3.25rem;
  }
}

.hero-display-title {
  font-size: clamp(2.15rem, 4.1vw, 3.45rem);
  font-weight: 900;
  line-height: 1.09;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-4);
}
.hero-display-accent {
  background: linear-gradient(90deg, #FFFFFF 0%, #FCA5A5 45%, #E52E36 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead-text {
  font-size: var(--font-size-lg);
  color: #A0AEC0;
  max-width: 62ch;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.hero-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.hero-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  background: rgba(19, 38, 59, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 0.82rem;
  color: #A0AEC0;
}
.hero-trust-chip strong {
  color: #FFFFFF;
}

/* Barre micro-interactive de réservation rapide intégrée au Hero */
.hero-quick-booking {
  margin-top: var(--space-5);
  background: rgba(19, 38, 59, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 20px 44px rgba(4, 10, 22, 0.62);
  transition: border-color var(--duration-fast) var(--ease-smooth-out),
              box-shadow var(--duration-fast) var(--ease-smooth-out);
}
.hero-quick-booking:hover,
.hero-quick-booking:focus-within {
  border-color: rgba(229, 46, 54, 0.6);
  box-shadow: 0 22px 48px rgba(194, 35, 42, 0.22);
}
.hero-quick-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hero-quick-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
}
.hero-quick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: end;
}
@media (min-width: 640px) {
  .hero-quick-grid {
    grid-template-columns: 1.2fr 1fr 0.9fr auto;
  }
}
.quick-field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #A0AEC0;
  margin-bottom: 0.3rem;
}
.quick-select {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  background: #0B1929;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
}
.quick-select:focus {
  border-color: #E52E36;
  box-shadow: 0 0 0 3px rgba(229, 46, 54, 0.28);
  outline: none;
}

/* Listes structurées de gouvernance (À propos) */
.pillar-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
}
.pillar-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.95rem;
  background: rgba(11, 25, 41, 0.72);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition: border-color var(--duration-quick) var(--ease-smooth-out),
              background-color var(--duration-quick) var(--ease-smooth-out);
}
.pillar-list-item:hover {
  background: #1A3048;
  border-color: rgba(229, 46, 54, 0.55);
}

/* Grille Bento des 5 expertises de services sur la page d'accueil */
.services-pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 768px) {
  .services-pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .services-pillars-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .services-pillars-grid .service-pillar-wide {
    grid-column: span 2;
  }
}

.ecg-divider {
  width: 100%;
  height: 44px;
  margin-block: 0.5rem;
}
.ecg-divider path {
  stroke-dasharray: 680;
  stroke-dashoffset: 0;
  animation: ecgTrace 3.4s var(--ease-in-out) infinite;
}

/* ── 7. Cartes avec Micro-Hover Scale(1.02) & Bordure Lumineuse ── */
.card {
  background: #13263B;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: var(--shadow-card);
  transition: transform 250ms ease-in-out,
              box-shadow 250ms ease-in-out,
              border-color 250ms ease-in-out,
              background-color 250ms ease-in-out;
}
.card:hover {
  transform: translateY(-4px);
  background: #1A3048;
  border-color: rgba(229, 46, 54, 0.65);
  box-shadow: var(--shadow-card-hover);
}
.card.has-open-popover,
.hero-quick-booking.has-open-popover {
  z-index: 80;
  transform: none !important;
}

.card-cut {
  border-radius: var(--radius-xl);
  border-top: 3px solid #C2232A;
  background-image: radial-gradient(circle at 100% 0%, rgba(229, 46, 54, 0.16), transparent 140px);
}

.stat-tile {
  background: #13263B;
  border: 1px solid var(--color-border);
  border-top: 3px solid #C2232A;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
  transition: transform 300ms var(--ease-smooth-out),
              box-shadow 300ms var(--ease-smooth-out),
              border-color 300ms var(--ease-smooth-out),
              background-color 300ms var(--ease-smooth-out);
}
.stat-tile:hover {
  transform: scale(1.03) translateY(-4px);
  background: #1A3048;
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(229, 46, 54, 0.65);
}
.stat-tile-value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}
.stat-tile-label {
  font-size: var(--font-size-xs);
  color: #A0AEC0;
  margin-top: 0.25rem;
}

/* ── 8. Vitrine Interactive des Services (Filtres + Rail Horizontal / Grille Extensible) ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-5);
}
.filter-pill {
  min-height: 40px;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: #13263B;
  color: #A0AEC0;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--duration-quick) var(--ease-smooth-out),
              color var(--duration-quick) var(--ease-smooth-out),
              border-color var(--duration-quick) var(--ease-smooth-out),
              transform var(--duration-quick) var(--ease-smooth-out);
}
.filter-pill:focus-visible {
  outline: 2px solid #E52E36;
  outline-offset: 3px;
}
.filter-pill:hover,
.filter-pill.is-active {
  background: linear-gradient(135deg, #C2232A 0%, #E52E36 100%);
  color: #FFFFFF;
  border-color: #E52E36;
  transform: none;
}

.services-showcase-rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 768px) {
  .services-showcase-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.service-Interactive-card {
  background: linear-gradient(160deg, #13263B 0%, #1A3048 100%);
  border: 1px solid var(--color-border);
  border-top: 3px solid #C2232A;
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 300ms var(--ease-smooth-out),
              border-color 300ms var(--ease-smooth-out),
              box-shadow 300ms var(--ease-smooth-out);
}
.service-Interactive-card:hover {
  transform: scale(1.02) translateY(-5px);
  border-color: #E52E36;
  box-shadow: var(--shadow-card-hover);
}
.service-Interactive-card.is-hidden {
  display: none;
}

.low-poly-banner {
  background: linear-gradient(135deg, #13263B 0%, #1A3048 60%, rgba(194, 35, 42, 0.28) 100%);
  border: 1px solid rgba(229, 46, 54, 0.45);
  border-left: 5px solid #C2232A;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.low-poly-banner::before {
  content: "";
  position: absolute;
  top: -40%;
  right: 8%;
  width: 180px;
  height: 220%;
  background: rgba(229, 46, 54, 0.12);
  transform: rotate(45deg);
  pointer-events: none;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.card-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red-surface);
  color: #FCA5A5;
  border: 1px solid rgba(229, 46, 54, 0.45);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

/* ── 9. Chronologie / Étapes Opérationnelles (À propos & Services) ── */
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 1024px) {
  .timeline-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.timeline-step {
  background: #13263B;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  position: relative;
  transition: transform 300ms var(--ease-smooth-out),
              border-color 300ms var(--ease-smooth-out),
              background-color 300ms var(--ease-smooth-out);
}
@media (hover: hover) and (pointer: fine) {
  .timeline-step:hover {
    transform: scale(1.03) translateY(-4px);
    background: #1A3048;
    border-color: #E52E36;
  }
}
.step-number {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #C2232A 0%, #E52E36 100%);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

/* ── 10. Badges, Formulaires, Tableaux & Portails ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.72rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-red { background: var(--red-surface); color: #FECACA; border: 1px solid rgba(229, 46, 54, 0.55); }
.badge-green { background: var(--emerald-surface); color: #A7F3D0; border: 1px solid rgba(16, 185, 129, 0.45); }
.badge-amber { background: var(--amber-surface); color: #FDE68A; border: 1px solid rgba(245, 158, 11, 0.45); }
.badge-blue { background: #1A3048; color: #FFFFFF; border: 1px solid rgba(255, 255, 255, 0.18); }
.badge-neutral { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; border: 1px solid var(--color-border); }

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row,
.form-row-2,
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 1.25rem;
  column-gap: 1rem;
  align-items: start;
}
@media (min-width: 768px) {
  .form-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.form-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  min-width: 0;
  margin: 0;
}
.form-label {
  display: block;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: var(--font-size-sm);
  line-height: 1.3;
  color: #FFFFFF;
}
.form-group > .form-hint {
  margin: -0.25rem 0 0;
}
.form-group > .mdx-field-error {
  margin-top: 0;
}
.form-required {
  color: #FCA5A5;
  margin-left: 0.2rem;
}
.form-hint {
  font-size: var(--font-size-xs);
  color: #A0AEC0;
}
.form-control,
.form-textarea,
.form-select {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  line-height: 1.35;
  color: #FFFFFF;
  background: #0B1929;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-quick) var(--ease-smooth-out),
              box-shadow var(--duration-quick) var(--ease-smooth-out),
              background-color var(--duration-quick) var(--ease-smooth-out);
}
input.form-control,
select.form-control,
select.form-select {
  box-sizing: border-box;
  height: 3rem;
  min-height: 3rem;
  padding: 0 0.9rem;
  line-height: calc(3rem - 2px);
}
.form-control::placeholder,
.form-textarea::placeholder {
  color: #A0AEC0;
  opacity: 0.72;
}
.form-control:focus,
.form-textarea:focus {
  background: #13263B;
  border-color: #E52E36;
  box-shadow: 0 0 0 3px rgba(229, 46, 54, 0.28);
  outline: none;
}
textarea.form-control,
.form-textarea {
  min-height: 112px;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  line-height: 1.5;
  resize: vertical;
}
.checkbox-label,
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  color: #A0AEC0;
  cursor: pointer;
  user-select: none;
}
.checkbox-label > span,
.form-check > span:not(.mx-check) {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"],
.form-check input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0.1rem 0 0;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background-color: rgba(11, 25, 41, 0.92);
  cursor: pointer;
  transition:
    background-color 200ms var(--ease-smooth-out),
    border-color 200ms var(--ease-smooth-out),
    box-shadow 200ms var(--ease-smooth-out);
}
.checkbox-label input[type="checkbox"]:hover,
.form-check input[type="checkbox"]:hover {
  border-color: rgba(229, 46, 54, 0.45);
}
.checkbox-label input[type="checkbox"]:focus-visible,
.form-check input[type="checkbox"]:focus-visible {
  outline: none;
  border-color: #E52E36;
  box-shadow: 0 0 0 3px rgba(229, 46, 54, 0.28);
}
.checkbox-label input[type="checkbox"]:checked,
.form-check input[type="checkbox"]:checked {
  border-color: #E52E36;
  background-color: rgba(194, 35, 42, 0.28);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23E52E36' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2 6.6 11.2 12.5 4.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior-x: contain;
  background: #0B1929;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.data-table td.text-right .form-stack {
  max-width: 340px;
  margin-left: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}
.data-table th,
.data-table td {
  padding: 0.88rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.data-table td {
  overflow-wrap: anywhere;
}
.data-table th {
  background: rgba(7, 17, 29, 0.9);
  color: #A0AEC0;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.data-table tbody tr {
  transition: background-color var(--duration-quick) var(--ease-smooth-out);
}
.data-table tbody tr:hover {
  background: rgba(26, 48, 72, 0.55);
}
.data-table .text-right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.portal-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100dvh - 82px);
}
@media (min-width: 1024px) {
  .portal-shell {
    grid-template-columns: 276px 1fr;
  }
}
.portal-sidebar {
  background: rgba(7, 17, 29, 0.88);
  backdrop-filter: blur(12px);
  border-right: 1px solid var(--color-border);
  padding: var(--space-5);
}
.portal-nav-section {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #A0AEC0;
  margin: var(--space-4) 0 var(--space-2);
}
.portal-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.portal-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: var(--touch-target-min);
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #A0AEC0;
  text-decoration: none;
  border-radius: var(--radius-md);
  border-left: 3px solid transparent;
  transition: background-color var(--duration-quick) var(--ease-smooth-out),
              color var(--duration-quick) var(--ease-smooth-out),
              border-color var(--duration-quick) var(--ease-smooth-out),
              transform var(--duration-quick) var(--ease-smooth-out);
}
.portal-nav-link:hover,
.portal-nav-link.is-active {
  background: var(--red-surface);
  color: #FFFFFF;
  border-left-color: #E52E36;
  transform: translateX(3px);
}
.portal-main {
  padding: var(--space-5);
  max-width: 100%;
  overflow-x: hidden;
}
@media (min-width: 1024px) {
  .portal-main { padding: var(--space-6); }
}

.alert {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  border-left: 4px solid #C2232A;
  background: #13263B;
  animation: fadeInUp var(--duration-fast) var(--ease-smooth-out) both;
}
.alert-success { border-left-color: #10B981; background: rgba(16, 185, 129, 0.12); }
.alert-warning { border-left-color: #F59E0B; background: rgba(245, 158, 11, 0.12); }
.alert-danger  { border-left-color: #E52E36; background: rgba(194, 35, 42, 0.16); }

.t-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  overscroll-behavior: contain;
  background: rgba(5, 12, 22, 0.82);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity var(--modal-open-dur) var(--modal-ease), visibility 0s linear var(--modal-open-dur);
}
.t-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity var(--modal-open-dur) var(--modal-ease), visibility 0s;
}
.t-modal {
  width: min(640px, 100%);
  max-height: 90dvh;
  overflow-y: auto;
  background: #13263B;
  border: 1px solid var(--color-border-strong);
  border-top: 4px solid #C2232A;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-modal);
  transform: scale(var(--modal-scale));
  transition: transform var(--modal-open-dur) var(--modal-ease);
}
.t-modal-backdrop.is-open .t-modal {
  transform: scale(1);
}
.t-modal.has-open-popover {
  overflow: visible;
}
.staff-chip {
  cursor: grab;
}
.staff-chip:active {
  cursor: grabbing;
}
.shift-drop.is-drop-hot {
  border-color: #E52E36;
  box-shadow: 0 0 0 2px rgba(229, 46, 54, 0.45);
}
.clean-list-item .meta,
.meta {
  font-size: 0.8rem;
  color: #A0AEC0;
  margin-top: 0.2rem;
}

.t-acc-item {
  background: #13263B;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: border-color var(--duration-quick) var(--ease-smooth-out);
}
.t-acc-item:hover {
  border-color: rgba(229, 46, 54, 0.55);
}
.t-acc-trigger {
  width: 100%;
  min-height: var(--touch-target-min);
  padding: var(--space-4) var(--space-5);
  background: transparent;
  color: #FFFFFF;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: transform var(--duration-micro) var(--ease-out);
}
.t-acc-trigger:active {
  transform: scale(var(--scale-small));
}
@media (prefers-reduced-motion: reduce) {
  .t-acc-trigger:active {
    transform: none;
    opacity: 0.92;
  }
}
.t-acc-chevron {
  transition: transform var(--acc-chevron) var(--acc-ease);
}
.t-acc-trigger[aria-expanded="true"] .t-acc-chevron {
  transform: scaleY(-1);
}
.t-acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--acc-collapse) var(--acc-ease);
}
.t-acc-panel[data-open="true"] {
  grid-template-rows: 1fr;
  transition: grid-template-rows var(--acc-expand) var(--acc-ease);
}
.t-acc-panel-inner {
  overflow: hidden;
  padding: 0 var(--space-5);
}
.t-acc-panel[data-open="true"] .t-acc-panel-inner {
  padding-bottom: var(--space-4);
}

@keyframes t-error-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(calc(-1 * var(--shake-distance))); }
  40% { transform: translateX(var(--shake-distance)); }
  60% { transform: translateX(calc(-1 * var(--shake-overshoot))); }
  80% { transform: translateX(var(--shake-overshoot)); }
}
.is-shaking {
  animation: t-error-shake 320ms var(--shake-ease);
}

.site-footer {
  margin-top: auto;
  background: #07111D;
  border-top: 2px solid #C2232A;
  padding-block: var(--space-8) var(--space-6);
  padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: start;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .footer-grid { grid-template-columns: 1.45fr 0.9fr 1.05fr 1.25fr; }
}
.footer-brand-link {
  display: inline-block;
  margin-bottom: 0.75rem;
}
.footer-tagline {
  font-size: 0.92rem;
  color: #A0AEC0;
  line-height: 1.55;
  margin-bottom: 0.95rem;
  max-width: 34ch;
}
.footer-pride-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.85rem;
  background: #13263B;
  border: 1px solid rgba(229, 46, 54, 0.45);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFFFFF;
}
.footer-heading {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin: 0 0 0.95rem 0;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-list a,
.footer-link-btn {
  color: #A0AEC0;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: 500;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color var(--duration-quick) var(--ease-smooth-out),
              transform var(--duration-quick) var(--ease-smooth-out);
  display: inline-flex;
  align-items: center;
}
.footer-list a:hover,
.footer-link-btn:hover {
  color: #FFFFFF;
  transform: translateX(3px);
}
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #A0AEC0;
}
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  line-height: 1.45;
}
.footer-contact-list svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.footer-contact-list a {
  color: #A0AEC0;
  text-decoration: none;
}
.footer-contact-list a:hover {
  color: #FFFFFF;
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #13263B;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #A0AEC0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out, transform 180ms ease-out;
}
.footer-social-btn:hover {
  background: #1A3048;
  color: #FFFFFF;
  border-color: #E52E36;
  transform: translateY(-2px);
}
.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2.25rem;
  padding-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  font-size: 0.84rem;
  color: #A0AEC0;
}

/* ── 11. ARCHITECTURE UNIVERSELLE DE PORTAIL SAAS (Inspirée de Super Finti, Palette #0B1929 / #13263B / #1A3048 / #C2232A) ── */
.portal-body {
  background: #0B1929;
  min-height: 100dvh;
  overscroll-behavior: none;
}

.saas-layout {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .saas-layout {
    display: block;
    max-width: 100%;
  }
}

/* Barre latérale gauche pliable */
.saas-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 278px;
  z-index: 250;
  background: #081320;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem 1.1rem;
  touch-action: pan-y;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 250ms ease-in-out, width 250ms ease-in-out, visibility 0s linear 250ms;
}
.saas-sidebar.is-mobile-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 250ms ease-in-out, width 250ms ease-in-out, visibility 0s;
}
.saas-sidebar.is-dragging {
  transition: none;
}
@media (min-width: 1024px) {
  .saas-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: auto;
    height: 100dvh;
    max-height: 100dvh;
    width: 268px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    touch-action: auto;
    transform: none;
    visibility: visible;
    transition: width 250ms ease-in-out;
  }
  .saas-layout.is-collapsed .saas-sidebar {
    width: 84px;
  }
}

.portal-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 240;
  background: rgba(5, 11, 20, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 250ms ease-in-out, visibility 0s linear 250ms;
}
.portal-sidebar-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 250ms ease-in-out, visibility 0s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
body.is-portal-drawer-open {
  overflow: hidden;
}
body.is-portal-drawer-open .portal-mobile-bottom-nav {
  pointer-events: none;
}

.saas-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.25rem 0.45rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.saas-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #FFFFFF;
}
.saas-brand-mark {
  width: 38px;
  height: 28px;
  flex-shrink: 0;
}
.saas-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.saas-brand-text strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #FFFFFF;
}
.saas-brand-text span {
  font-size: 0.72rem;
  color: #A0AEC0;
  font-weight: 600;
}
.saas-sidebar-close-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #13263B;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}
@media (min-width: 1024px) {
  .saas-sidebar-close-mobile {
    display: none;
  }
}

.saas-sidebar-scroll {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: auto;
  padding-block: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.saas-sidebar-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.saas-nav-title {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #A0AEC0;
  padding: 0 0.75rem;
  margin-bottom: 0.5rem;
}
.saas-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.saas-nav-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  color: #A0AEC0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: background-color 250ms ease-in-out,
              color 250ms ease-in-out,
              border-color 250ms ease-in-out,
              transform 250ms ease-in-out;
}
.saas-nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.saas-nav-item:hover {
  background: #13263B;
  color: #FFFFFF;
}
.saas-nav-item.is-active {
  background: linear-gradient(135deg, rgba(194, 35, 42, 0.25) 0%, rgba(26, 48, 72, 0.9) 100%);
  color: #FFFFFF;
  border-color: rgba(229, 46, 54, 0.55);
  box-shadow: 0 6px 18px rgba(194, 35, 42, 0.18);
}
.saas-nav-item.is-active .saas-nav-icon {
  color: #E52E36;
}

/* État replié de la sidebar sur grand écran */
@media (min-width: 1024px) {
  .saas-layout.is-collapsed .saas-brand-text,
  .saas-layout.is-collapsed .saas-nav-title,
  .saas-layout.is-collapsed .saas-nav-label,
  .saas-layout.is-collapsed .saas-help-card {
    display: none;
  }
  .saas-layout.is-collapsed .saas-nav-item {
    justify-content: center;
    padding-inline: 0;
  }
}

/* Carte Centre d'assistance bas de sidebar */
.saas-help-card {
  background: linear-gradient(155deg, #13263B 0%, #1A3048 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid #C2232A;
  border-radius: 16px;
  padding: 1.1rem;
  text-align: center;
  position: relative;
}
.saas-help-badge {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #C2232A;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.45rem;
  box-shadow: 0 4px 12px rgba(229, 46, 54, 0.4);
}
.saas-help-card strong {
  display: block;
  font-size: 0.9rem;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}
.saas-help-card p {
  font-size: 0.76rem;
  color: #A0AEC0;
  margin-bottom: 0.75rem;
}

/* Barre supérieure universelle du portail */
.saas-main-wrapper {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  padding-bottom: 74px;
}
@media (min-width: 1024px) {
  .saas-main-wrapper {
    margin-left: 268px;
    width: auto;
    max-width: none;
    padding-bottom: 0;
    transition: margin-left 250ms ease-in-out;
  }
  .saas-layout.is-collapsed .saas-main-wrapper {
    margin-left: 84px;
  }
}

.saas-topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(11, 25, 41, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
@media (min-width: 1024px) {
  .saas-topbar {
    padding: 0.95rem 2rem;
    flex-wrap: nowrap;
  }
}

.saas-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.saas-collapse-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #13263B;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 250ms ease-in-out, border-color 250ms ease-in-out;
}
.saas-collapse-btn:hover {
  background: #1A3048;
  border-color: #E52E36;
}

.saas-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #A0AEC0;
}
.saas-breadcrumbs a {
  color: #A0AEC0;
  text-decoration: none;
}
.saas-breadcrumbs a:hover {
  color: #FFFFFF;
}
.saas-breadcrumbs strong {
  color: #FFFFFF;
  font-weight: 700;
}

.saas-search-box {
  position: relative;
  flex: 1 1 260px;
  max-width: 420px;
  display: none;
}
@media (min-width: 768px) {
  .saas-search-box {
    display: block;
  }
}
.saas-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #A0AEC0;
  pointer-events: none;
}
.saas-search-input {
  width: 100%;
  min-height: 42px;
  padding: 0.5rem 0.95rem 0.5rem 2.45rem;
  background: #13263B;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  transition: border-color 250ms ease-in-out, background-color 250ms ease-in-out;
}
.saas-search-input::placeholder {
  color: #A0AEC0;
}
.saas-search-input:focus {
  background: #1A3048;
  border-color: #E52E36;
  box-shadow: 0 0 0 3px rgba(229, 46, 54, 0.28);
  outline: none;
}

.saas-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.saas-quick-cta {
  display: none;
}
@media (min-width: 640px) {
  .saas-quick-cta {
    display: inline-flex;
  }
}

.saas-icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #13263B;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 250ms ease-in-out, border-color 250ms ease-in-out;
}
.saas-icon-btn:hover {
  background: #1A3048;
  border-color: #E52E36;
}
.saas-notif-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #E52E36;
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Menus déroulants du header (Cloche & Profil) */
.saas-dropdown {
  position: relative;
}
.saas-profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 42px;
  padding: 0.3rem 0.45rem 0.3rem 0.85rem;
  border-radius: 12px;
  background: #13263B;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  transition: border-color 250ms ease-in-out, background-color 250ms ease-in-out;
}
.saas-profile-trigger:hover {
  background: #1A3048;
  border-color: #E52E36;
}
.saas-profile-greeting {
  display: none;
  max-width: 9rem;
  overflow: hidden;
  color: #A0AEC0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.saas-profile-greeting strong {
  color: #FFFFFF;
}
@media (min-width: 640px) {
  .saas-profile-greeting {
    display: inline;
  }
}
.saas-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, #C2232A 0%, #E52E36 100%);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.saas-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: #13263B;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(3, 8, 18, 0.78);
  padding: 0.45rem;
  z-index: 220;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 150ms var(--ease-smooth-out), transform 150ms var(--ease-smooth-out), visibility 0s linear 150ms;
}
.saas-dropdown.is-open .saas-dropdown-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
  transition: opacity 200ms var(--ease-smooth-out), transform 200ms var(--ease-smooth-out), visibility 0s;
}
.saas-notif-menu {
  width: min(340px, 88vw);
}
@media (max-width: 1023px) {
  .saas-dropdown.is-open .saas-dropdown-menu {
    position: fixed;
    top: 8.75rem;
    left: 0.75rem;
    right: auto;
    width: min(420px, calc(100vw - 1.5rem));
    min-width: 0;
    max-height: min(62dvh, 440px);
    overflow: auto;
    transform: translateY(0) scale(1);
  }
}
.saas-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
  padding: 0.15rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.25rem;
  font-size: 0.84rem;
}
.saas-dropdown-header a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.35rem;
}
.saas-dropdown-item {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition: background-color 180ms ease-in-out;
}
.saas-dropdown-item:hover {
  background: #1A3048;
  color: #FFFFFF;
}
.saas-dropdown-item.is-danger {
  color: #FCA5A5;
}
.saas-notif-item {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.saas-notif-item:hover {
  background: #1A3048;
}
.saas-dropdown-header > div {
  min-width: 0;
  max-width: 16rem;
}
.saas-dropdown-header strong,
.saas-dropdown-header small,
.saas-notif-item strong,
.saas-notif-item span {
  overflow-wrap: anywhere;
}
.saas-notif-item strong {
  display: block;
  font-size: 0.82rem;
  color: #FFFFFF;
}
.saas-notif-item span {
  display: block;
  font-size: 0.76rem;
  color: #A0AEC0;
  margin-top: 0.15rem;
}
.saas-dropdown-empty {
  padding: 1rem;
  text-align: center;
  font-size: 0.82rem;
  color: #A0AEC0;
  opacity: 0;
  transition: opacity var(--duration-quick) var(--ease-smooth-out);
}
.saas-dropdown.is-open .saas-dropdown-empty {
  opacity: 1;
}

.saas-content {
  padding: 1.5rem 1.25rem;
  max-width: 1440px;
  width: 100%;
  min-width: 0;
  margin-inline: auto;
}
.saas-topbar,
.saas-topbar-left,
.saas-topbar-right,
.saas-breadcrumbs,
.saas-search-box {
  min-width: 0;
}
.saas-nav-item,
.saas-nav-label {
  min-width: 0;
}
.saas-nav-label {
  overflow-wrap: break-word;
}
@media (min-width: 1024px) {
  .saas-content {
    padding: 2rem 2.25rem;
  }
}

/* Barre inférieure fixe sur mobile et tablette */
.portal-mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 180;
  background: rgba(8, 19, 32, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 1024px) {
  .portal-mobile-bottom-nav {
    display: none;
  }
}
.mobile-bottom-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
  min-height: 48px;
  padding-inline: 0.15rem;
  color: #A0AEC0;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
  border-radius: 12px;
  overflow: hidden;
}
.mobile-bottom-link span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-bottom-link.is-active,
.mobile-bottom-link:hover {
  color: #FFFFFF;
  background: rgba(194, 35, 42, 0.2);
}

/* ── 12. CARTES KPI SUPER FINTI & LISTES ÉPURÉES (Zéro encombrement) ── */
.finti-kpi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .finti-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .finti-kpi-grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .finti-kpi-grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.finti-hero-card {
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px rgba(4, 10, 20, 0.48);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 168px;
  transform: translate3d(0, 0, 0);
  transition:
    transform var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-fast) var(--ease-smooth-out),
    border-color var(--duration-quick) ease;
}
@media (hover: hover) and (pointer: fine) {
  .finti-hero-card:hover {
    transform: translate3d(0, calc(-1 * var(--distance-micro, 4px)), 0);
    border-color: #E52E36;
    box-shadow: 0 20px 44px rgba(194, 35, 42, 0.26);
  }
}
.finti-hero-card::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -35px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.finti-card-navy {
  background: linear-gradient(145deg, #13263B 0%, #1A3048 100%);
  border-top: 3px solid #C2232A;
}
.finti-card-red {
  background: linear-gradient(135deg, #9E1B21 0%, #C2232A 60%, #E52E36 100%);
}
.finti-card-slate {
  background: linear-gradient(145deg, #1A3048 0%, #13263B 100%);
  border-top: 3px solid #10B981;
}

.finti-kpi-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 800;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-block: 0.45rem;
}
.finti-kpi-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.82);
}
.finti-kpi-sub {
  font-size: 0.82rem;
  color: #A0AEC0;
}
.finti-card-red .finti-kpi-sub {
  color: rgba(255, 255, 255, 0.88);
}

/* Listes d'éléments épurées (Remplace les tableaux denses) */
.clean-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.clean-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.15rem;
  background: rgba(11, 25, 41, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  transition: transform 250ms ease-in-out, border-color 250ms ease-in-out, background-color 250ms ease-in-out;
}
.clean-list-item:hover {
  background: #1A3048;
  border-color: rgba(229, 46, 54, 0.55);
}
.clean-item-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}
.clean-item-icon {
  box-sizing: border-box;
  min-width: var(--touch-target-min, 44px);
  width: max-content;
  max-width: 7.75rem;
  height: var(--touch-target-min, 44px);
  padding-inline: 0.45rem;
  border-radius: 12px;
  background: rgba(194, 35, 42, 0.16);
  border: 1px solid rgba(229, 46, 54, 0.4);
  color: #FCA5A5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.64rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.clean-item-icon.is-green {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #A7F3D0;
}
.clean-item-icon.is-blue {
  background: rgba(26, 48, 72, 0.95);
  border-color: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}

/* ── 13. CONTRÔLES DE FORMULAIRE 100 % SUR MESURE (.mdx-select, .mdx-datepicker, .mdx-timepicker) ── */
.mdx-select-wrap,
.mdx-picker-wrap {
  position: relative;
  width: 100%;
}
.mdx-native-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  pointer-events: none !important;
}

.mdx-trigger {
  width: 100%;
  box-sizing: border-box;
  height: 3rem;
  min-height: 3rem;
  padding: 0 0.9rem;
  background: #0B1929;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  transition: border-color 220ms ease-in-out, background-color 220ms ease-in-out, box-shadow 220ms ease-in-out;
}
.mdx-trigger:hover {
  background: #13263B;
  border-color: rgba(255, 255, 255, 0.28);
}
.mdx-trigger:focus,
.mdx-select-wrap.is-open .mdx-trigger,
.mdx-picker-wrap.is-open .mdx-trigger {
  background: #13263B;
  border-color: #E52E36;
  box-shadow: 0 0 0 3px rgba(229, 46, 54, 0.25);
  outline: none;
}
.mdx-trigger-label {
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mdx-trigger-icon {
  width: 18px;
  height: 18px;
  color: #FCA5A5;
  flex-shrink: 0;
  transition: transform 220ms ease-in-out;
}
.mdx-select-wrap.is-open .mdx-trigger-icon {
  transform: rotate(180deg);
}

.mdx-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 220px;
  max-height: 290px;
  overflow-y: auto;
  background: #13263B;
  border: 1px solid rgba(229, 46, 54, 0.55);
  border-radius: 14px;
  box-shadow: 0 22px 48px rgba(2, 6, 14, 0.85);
  padding: 0.4rem;
  z-index: 450;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 180ms ease-in-out, transform 180ms ease-in-out, visibility 0s linear 180ms;
}
.mdx-select-wrap.is-open .mdx-popover,
.mdx-picker-wrap.is-open .mdx-popover {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
  transition: opacity 180ms ease-in-out, transform 180ms ease-in-out, visibility 0s;
}

.mdx-option {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: #A0AEC0;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  transition: background-color 150ms ease-in-out, color 150ms ease-in-out;
}
.mdx-option:hover {
  background: #1A3048;
  color: #FFFFFF;
}
.mdx-option.is-selected {
  background: linear-gradient(135deg, #C2232A 0%, #E52E36 100%);
  color: #FFFFFF;
}

/* Calendrier Datepicker sur mesure */
.mdx-calendar-popover {
  min-width: 296px;
  max-height: none;
  padding: 0.9rem;
}
.mdx-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}
.mdx-cal-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  color: #FFFFFF;
  text-transform: capitalize;
}
.mdx-cal-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0B1929;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mdx-cal-nav-btn:hover {
  border-color: #E52E36;
  background: #1A3048;
}
.mdx-cal-weekdays,
.mdx-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.mdx-cal-weekdays span {
  font-size: 0.7rem;
  font-weight: 700;
  color: #A0AEC0;
  padding-block: 0.25rem;
}
.mdx-cal-day {
  height: 34px;
  border-radius: 8px;
  border: 0;
  background: rgba(11, 25, 41, 0.6);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 150ms ease-in-out, transform 150ms ease-in-out;
}
.mdx-cal-day:hover {
  background: #1A3048;
  transform: scale(1.05);
}
.mdx-cal-day.is-selected {
  background: linear-gradient(135deg, #C2232A 0%, #E52E36 100%);
  color: #FFFFFF;
  font-weight: 800;
}
.mdx-cal-day.is-today {
  border: 1px solid #E52E36;
}
.mdx-cal-day.is-empty {
  background: transparent;
  pointer-events: none;
}
.mdx-cal-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Date + heure (datetime-local) */
.mdx-datetime-wrap {
  min-width: 0;
  position: relative;
  z-index: 1;
}
.mdx-datetime-wrap.is-open {
  z-index: 40;
}
.mdx-datetime-popover {
  min-width: min(100%, 18.5rem);
  max-width: min(calc(100vw - 1.25rem), 26rem);
  max-height: min(90dvh, 32rem);
  overscroll-behavior: contain;
}
.mdx-datetime-popover.is-docked {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0.5rem;
}
.mdx-datetime-popover.is-docked .mdx-datetime-grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 0.15rem;
}
.mdx-datetime-popover.is-docked .mdx-dt-footer,
.mdx-datetime-popover.is-docked .mdx-cal-footer.mdx-dt-footer {
  flex-shrink: 0;
  margin-top: auto;
  z-index: 2;
}
.mdx-popover.is-docked.is-mdx-sheet {
  border-radius: 18px 18px 14px 14px;
  box-shadow:
    0 -8px 48px rgba(2, 6, 14, 0.88),
    0 24px 64px rgba(2, 6, 14, 0.92),
    0 0 0 1px rgba(229, 46, 54, 0.45);
}
.mdx-popover.is-docked {
  position: fixed !important;
  z-index: 12050;
  margin: 0;
  right: auto;
  bottom: auto;
  max-width: none;
  box-shadow:
    0 24px 64px rgba(2, 6, 14, 0.92),
    0 0 0 1px rgba(229, 46, 54, 0.45);
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 160ms ease, transform 160ms ease;
}
.mdx-popover.is-docked:not(.is-open-panel) {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.mdx-datetime-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  align-items: start;
}
@media (min-width: 520px) {
  .mdx-datetime-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 0.65rem;
  }
}
.mdx-datetime-time {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.mdx-dt-legend {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #A0AEC0;
  margin-bottom: 0.15rem;
}
.mdx-dt-wheels {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.5rem;
  min-height: 8.5rem;
  padding-inline: 0.1rem;
}
.mdx-dt-wheel-sep {
  align-self: center;
  font-weight: 800;
  color: #FCA5A5;
  font-size: 0.85rem;
  padding-top: 0.15rem;
}
.mdx-dt-wheel {
  flex: 1 1 0;
  max-width: 5.25rem;
  max-height: 11.5rem;
  min-height: 8.5rem;
  overflow-y: auto;
  scroll-snap-type: y proximity;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(11, 25, 41, 0.65);
  padding: 0.35rem 0.2rem;
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.mdx-dt-wheel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.mdx-dt-wheel-item {
  width: 100%;
  min-height: 2.75rem;
  padding-inline: 0.15rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #CBD5E1;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  scroll-snap-align: center;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.mdx-dt-wheel-item:hover {
  background: rgba(26, 48, 72, 0.9);
  color: #fff;
}
.mdx-dt-wheel-item.is-selected {
  background: rgba(194, 35, 42, 0.28);
  border-color: #E52E36;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(229, 46, 54, 0.35);
}
.mdx-dt-footer {
  flex-wrap: wrap;
  gap: 0.35rem;
}
.mdx-dt-footer .btn-primary {
  margin-left: auto;
}
.data-table .mdx-datetime-wrap {
  min-width: 10.5rem;
}
@media (max-width: 1023px) {
  .mdx-datetime-grid {
    gap: 1rem;
  }
  .mdx-datetime-popover .mdx-cal-day {
    height: 2.65rem;
    min-height: 42px;
  }
  .mdx-dt-wheels {
    min-height: 7.5rem;
  }
  .mdx-dt-wheel {
    max-height: 8.5rem;
    min-height: 7.5rem;
    max-width: none;
  }
  .mdx-dt-wheel-item {
    min-height: 40px;
    font-size: 0.95rem;
  }
  .mdx-datetime-popover.is-docked .mdx-dt-footer {
    padding-top: 0.45rem;
    background: linear-gradient(180deg, transparent, #13263B 22%);
  }
}
@media (max-width: 519px) {
  .mdx-datetime-popover .mdx-cal-day {
    height: 2.75rem;
    min-height: 44px;
  }
}

/* ── 14. CONNEXION ÉCRAN DIVISÉ (Split-Screen Login) & WIDGET FAST LOGIN LOCAL ── */
.split-login-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1120px;
  margin-inline: auto;
  background: #13263B;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(3, 8, 18, 0.72);
}
@media (min-width: 960px) {
  .split-login-shell {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 0;
  }
}

.split-login-visual {
  background:
    radial-gradient(circle at 20% 20%, rgba(229, 46, 54, 0.28), transparent 52%),
    linear-gradient(155deg, #07111D 0%, #0B1929 55%, #1A3048 100%);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}
@media (min-width: 960px) {
  .split-login-visual {
    padding: 3rem;
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
}

.split-login-glass-badge {
  background: rgba(19, 38, 59, 0.76);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 4px solid #C2232A;
  border-radius: 16px;
  padding: 1.25rem;
  margin-block: 1.5rem;
}

.split-login-form-pane {
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 640px) {
  .split-login-form-pane {
    padding: 3rem;
  }
}

.login-role-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  background: #0B1929;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}
.login-role-tab {
  min-height: 40px;
  padding: 0.45rem 0.5rem;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: #A0AEC0;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 220ms ease-in-out, color 220ms ease-in-out;
}
.login-role-tab.is-active,
.login-role-tab:hover {
  background: linear-gradient(135deg, #C2232A 0%, #E52E36 100%);
  color: #FFFFFF;
}

/* Connexion : deux portails distincts, entrée animée */
@keyframes mxLoginIn {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
.mx-login-hero,
.mx-login-card,
.mx-login-legal {
  animation: mxLoginIn 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mx-login-card:nth-child(2) { animation-delay: 90ms; }
.mx-login-legal { animation-delay: 160ms; }
.mx-login-card .form-group,
.mx-login-submit,
.mx-login-demo {
  animation: mxLoginIn 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mx-login-card .form-group:nth-child(3) { animation-delay: 140ms; }
.mx-login-card .form-group:nth-child(4) { animation-delay: 200ms; }
.mx-login-submit { animation-delay: 260ms; }
.mx-login-demo { animation-delay: 320ms; }

.mx-login-hero {
  max-width: 720px;
  margin: 0 auto 1.75rem;
  text-align: center;
}
.mx-login-hero h1 {
  margin: 0.35rem 0 0.6rem;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}
.mx-login-hero p {
  margin: 0 auto;
  max-width: 62ch;
  color: #A0AEC0;
}
.mx-login-ecg {
  height: 42px;
  margin: 1rem auto 0;
  max-width: 520px;
}
.mx-login-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 900px) {
  .mx-login-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }
}
.mx-login-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  height: 100%;
  padding: 1.35rem;
  background: #13263B;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(3, 8, 18, 0.35);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}
.mx-login-card:hover,
.mx-login-card.is-current {
  border-color: rgba(229, 46, 54, 0.55);
  box-shadow: 0 18px 42px rgba(194, 35, 42, 0.2);
}
.mx-login-card-head h1,
.mx-login-card-head h2 {
  margin: 0.45rem 0 0.3rem;
  font-size: clamp(1.45rem, 1.15rem + 1vw, 1.75rem);
}
.mx-login-card-head p,
.mx-login-foot,
.mx-login-legal,
.mx-login-demo p {
  margin: 0;
  color: #A0AEC0;
}
.mx-login-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.mx-login-label-row a,
.mx-login-foot a,
.mx-login-legal a {
  color: #FFFFFF;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.mx-login-label-row a {
  font-size: 0.8rem;
  color: #FCA5A5;
}
.mx-login-submit {
  width: 100%;
  min-height: 48px;
}
.mx-login-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mx-login-roles li {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #0B1929;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-size: 0.78rem;
}
.mx-login-demo {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.mx-login-demo p {
  margin-bottom: 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mx-login-demo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.mx-login-demo .btn {
  min-height: 44px;
}
.mx-login-legal {
  margin-top: 1.25rem;
  text-align: center;
}
.mx-login.section {
  padding-block: 1rem 1.25rem;
}
.mx-login-stage {
  width: min(1480px, calc(100% - 2rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.mx-login-aside {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.15rem;
  min-width: 0;
  padding: 1.35rem 1.35rem 1.25rem 1.6rem;
  background: #13263B;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  animation: mxLoginIn 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mx-login-aside::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #C2232A;
}
.mx-login-aside h1 {
  position: relative;
  margin: 0.35rem 0 0.55rem;
  max-width: 20ch;
  font-size: clamp(1.7rem, 1.2rem + 1vw, 2.45rem);
  line-height: 1.08;
}
.mx-login-lead {
  position: relative;
  margin: 0 0 0.25rem;
  max-width: 46ch;
  color: #A0AEC0;
  font-size: 1.02rem;
}
.mx-login-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mx-login-facts li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  min-height: 72px;
  padding: 0.85rem 1rem;
  background: #0B1929;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}
.mx-login-facts strong {
  color: #FFFFFF;
  font-size: 1rem;
  line-height: 1.3;
}
.mx-login-facts span {
  color: #A0AEC0;
  font-size: 0.92rem;
  line-height: 1.45;
}
.mx-login-stage .mx-login-card {
  justify-content: flex-start;
}
.mx-login-next {
  display: grid;
  gap: 0.65rem;
  margin-top: 0;
  align-items: stretch;
}
.mx-login-next a,
.mx-login-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-height: 72px;
  padding: 0.9rem 1rem;
  background: #0B1929;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #FFFFFF;
  text-decoration: none;
}
.mx-login-next a {
  transition: border-color 180ms ease, background-color 180ms ease;
}
.mx-login-next a:hover {
  border-color: rgba(229, 46, 54, 0.55);
  background: #1A3048;
}
.mx-login-next strong {
  color: #FFFFFF;
  font-size: 1rem;
}
.mx-login-next span {
  color: #A0AEC0;
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.45;
}
.mx-login-stage .mx-login-card:hover {
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(3, 8, 18, 0.35);
}
.mx-login-card input.form-control,
.mx-login-card select.form-control {
  height: 52px;
  min-height: 52px;
  padding: 0 0.9rem;
  line-height: calc(52px - 2px);
}
.mx-login-card textarea.form-control {
  min-height: 52px;
  height: auto;
  line-height: 1.5;
  padding-block: 0.75rem;
}
@media (min-width: 960px) {
  .mx-login.section {
    padding-block: 1.25rem 1.75rem;
  }
  .mx-login-stage {
    width: min(1480px, calc(100% - 3rem));
    grid-template-columns: minmax(0, 1.25fr) minmax(420px, 500px);
    gap: 1.5rem;
    align-items: stretch;
  }
  .mx-login-aside,
  .mx-login-card {
    align-self: stretch;
    padding: 1.75rem 1.75rem 1.5rem;
  }
  .mx-login-facts {
    flex: 1 1 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr 1fr auto;
    align-items: stretch;
  }
  .mx-login-facts .is-wide {
    grid-column: 1 / -1;
  }
  .mx-login-next > * {
    height: auto;
    min-height: 72px;
  }
  .mx-login-aside {
    padding-inline-start: 2rem;
  }
  .mx-login-next {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }
}
@media (max-width: 959px) {
  .mx-login-aside h1 {
    font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2rem);
  }
}

/* Widget Flottant 🧪 Mode Test / Fast Login */
.fast-login-widget {
  position: fixed;
  right: 1.25rem;
  bottom: 5.25rem;
  z-index: 170;
}
@media (min-width: 1024px) {
  .fast-login-widget {
    bottom: 1.5rem;
  }
}
.fast-login-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #13263B 0%, #1A3048 100%);
  color: #FFFFFF;
  border: 1.5px solid #E52E36;
  box-shadow: 0 12px 32px rgba(2, 6, 14, 0.78), 0 0 18px rgba(229, 46, 54, 0.35);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 220ms ease-in-out, box-shadow 220ms ease-in-out;
}
.fast-login-fab:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 16px 38px rgba(229, 46, 54, 0.48);
}
.fast-login-fab-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

.fast-login-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(360px, 90vw);
  background: #13263B;
  border: 1px solid rgba(229, 46, 54, 0.6);
  border-top: 4px solid #C2232A;
  border-radius: 16px;
  padding: 1.15rem;
  box-shadow: 0 24px 56px rgba(2, 6, 14, 0.88);
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 220ms ease-in-out, transform 220ms ease-in-out, visibility 0s linear 220ms;
}
.fast-login-popover.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
  transition: opacity 220ms ease-in-out, transform 220ms ease-in-out, visibility 0s;
}
.fast-login-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}
.fast-login-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #A0AEC0;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.fast-login-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fast-login-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: #0B1929;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease-in-out, border-color 180ms ease-in-out, background-color 180ms ease-in-out;
}
.fast-login-option:hover,
.fast-login-option.is-current {
  background: #1A3048;
  border-color: #E52E36;
  transform: translateX(3px);
}
.fast-login-role-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.role-admin { background: rgba(229, 46, 54, 0.2); color: #FCA5A5; border: 1px solid rgba(229, 46, 54, 0.5); }
.role-staff { background: rgba(16, 185, 129, 0.2); color: #A7F3D0; border: 1px solid rgba(16, 185, 129, 0.5); }
.role-client { background: #1A3048; color: #FFFFFF; border: 1px solid rgba(255, 255, 255, 0.22); }
.role-sup { background: rgba(245, 158, 11, 0.2); color: #FDE68A; border: 1px solid rgba(245, 158, 11, 0.5); }

.fast-login-meta {
  display: flex;
  flex-direction: column;
}
.fast-login-meta strong {
  font-size: 0.86rem;
  color: #FFFFFF;
}
.fast-login-meta small {
  font-size: 0.74rem;
  color: #A0AEC0;
}

/* Grille Calendrier Interactif du Portail Employé */
.shift-calendar-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0.85rem;
}
@media (min-width: 768px) {
  .shift-calendar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.shift-calendar-day-card {
  background: #0B1929;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid #C2232A;
  border-radius: 14px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* ── 16. ARCHITECTURE SPA, ANIMATIONS DE VUE (@keyframes pageFadeIn / slideInUp), ANTI-CLS & TOASTS ── */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes spaSpin {
  to {
    transform: rotate(360deg);
  }
}

.spa-view-stage {
  min-height: 68svh;
  --spa-fade-out: var(--duration-quick, 150ms);
  will-change: opacity;
}

.spa-view-enter {
  animation: pageFadeIn 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.spa-slide-up {
  animation: slideInUp 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.spa-view-stage.is-spa-loading {
  opacity: 0;
  transform: none;
  filter: none;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.spa-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 9999;
  background: linear-gradient(90deg, #C2232A 0%, #E52E36 55%, #FFFFFF 100%);
  box-shadow: 0 0 14px rgba(229, 46, 54, 0.85);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  pointer-events: none;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease-out;
}

.spa-progress-bar.is-active {
  opacity: 1;
  transform: scaleX(0.72);
}

.spa-progress-bar.is-finishing {
  opacity: 0;
  transform: scaleX(1);
}

@keyframes mxNotifyIn {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.97);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes mxNotifyOut {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.98);
    filter: blur(2px);
  }
}

@keyframes mxNotifyTimer {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.spa-toast-region,
.mx-notify-dock {
  position: fixed;
  left: 1.25rem;
  bottom: 1.5rem;
  z-index: 260;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  gap: 0.65rem;
  width: min(380px, calc(100vw - 2.5rem));
  pointer-events: none;
}

.mx-notify,
.spa-toast {
  pointer-events: auto;
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr 36px;
  align-items: start;
  gap: 0.7rem;
  margin: 0;
  padding: 0.85rem 0.7rem 0.95rem 0.85rem;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(19, 38, 59, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 4px solid #C2232A;
  color: #FFFFFF;
  box-shadow: 0 18px 42px rgba(4, 10, 20, 0.65);
  animation: mxNotifyIn 350ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mx-notify:nth-child(2),
.spa-toast:nth-child(2) { animation-delay: 70ms; }
.mx-notify:nth-child(3),
.spa-toast:nth-child(3) { animation-delay: 140ms; }

.mx-notify.is-leaving,
.spa-toast.is-leaving {
  animation: mxNotifyOut 250ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: none;
}

.mx-notify-success,
.spa-toast-success { border-left-color: #10B981; }
.mx-notify-warning,
.spa-toast-warning { border-left-color: #F59E0B; }
.mx-notify-danger,
.spa-toast-danger {
  border-left-color: #E52E36;
  background: linear-gradient(145deg, rgba(19, 38, 59, 0.98) 0%, rgba(194, 35, 42, 0.22) 100%);
}

.mx-notify-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}
.mx-notify-success .mx-notify-icon { color: #10B981; background: rgba(16, 185, 129, 0.16); }
.mx-notify-warning .mx-notify-icon { color: #F59E0B; background: rgba(245, 158, 11, 0.16); }
.mx-notify-danger .mx-notify-icon { color: #E52E36; background: rgba(229, 46, 54, 0.18); }

.mx-notify-copy,
.spa-toast-body { min-width: 0; }
.mx-notify-kicker {
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #A0AEC0;
}
.mx-notify-text,
.spa-toast-body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 600;
  color: #FFFFFF;
}

.mx-notify-close,
.spa-toast-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: -0.15rem;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #A0AEC0;
  cursor: pointer;
  transition: color 150ms ease-out, background-color 150ms ease-out;
}
.mx-notify-close:hover,
.spa-toast-close:hover,
.mx-notify-close:focus-visible,
.spa-toast-close:focus-visible {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.mx-notify-timer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform-origin: left center;
  background: currentColor;
  opacity: 0.85;
  animation: mxNotifyTimer 8s linear forwards;
}
.mx-notify-success .mx-notify-timer { color: #10B981; }
.mx-notify-warning .mx-notify-timer { color: #F59E0B; }
.mx-notify-danger .mx-notify-timer { color: #E52E36; }
.mx-notify:hover .mx-notify-timer,
.mx-notify:focus-within .mx-notify-timer,
.mx-notify.is-paused .mx-notify-timer {
  animation-play-state: paused;
}

@media (min-width: 1024px) {
  .portal-body .mx-notify-dock {
    left: calc(268px + 1.25rem);
    bottom: 1.5rem;
    width: min(380px, calc(100vw - 268px - 15rem));
  }
  .portal-body:has(.saas-layout.is-collapsed) .mx-notify-dock {
    left: calc(84px + 1.25rem);
    width: min(380px, calc(100vw - 84px - 15rem));
  }
}

@media (max-width: 1023px) {
  .portal-body .mx-notify-dock {
    left: 0.75rem;
    right: auto;
    bottom: calc(4.85rem + env(safe-area-inset-bottom, 0px));
    width: min(380px, calc(100vw - 5.6rem));
  }
  body.mx-public .mx-notify-dock {
    left: 0.75rem;
    right: auto;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    width: min(380px, calc(100vw - 1.5rem));
  }
}

body.mx-public:has(.mdx-cookie-banner.is-visible) .mx-notify-dock {
  bottom: 9.5rem;
}
@media (max-width: 640px) {
  body.mx-public:has(.mdx-cookie-banner.is-visible) .mx-notify-dock {
    bottom: 13.5rem;
  }
  .mx-notify-close,
  .spa-toast-close {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mx-notify,
  .spa-toast,
  .mx-notify.is-leaving,
  .spa-toast.is-leaving,
  .mx-notify-timer {
    animation: none !important;
    filter: none !important;
    transform: none !important;
  }
  .mx-notify.is-leaving,
  .spa-toast.is-leaving { opacity: 0; }
}

.btn.is-submitting {
  opacity: 0.88;
  cursor: wait;
}

.spa-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spaSpin 650ms linear infinite;
  vertical-align: middle;
  margin-right: 0.45rem;
  flex-shrink: 0;
}

/* ── 17. HERO CENTRÉ ÉPURÉ MÉDAXIA (ZÉRO RECTANGLE VERTICAL), EMBLÈME OFFICIEL & SLIDERS SUR MESURE ── */
.mdx-hero {
  position: relative;
  padding-block: 3rem 3.25rem;
  border-bottom: 1px solid var(--color-border);
  overflow: visible;
}
.mdx-hero::before {
  content: "";
  position: absolute;
  top: -18%;
  left: 50%;
  transform: translateX(-50%);
  width: min(820px, 95vw);
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 46, 54, 0.16) 0%, rgba(19, 38, 59, 0) 70%);
  pointer-events: none;
}

.mdx-hero-centered {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.mdx-hero-crest {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.mdx-crest-glow {
  position: absolute;
  top: -14px;
  width: 160px;
  height: 100px;
  background: radial-gradient(circle, rgba(229, 46, 54, 0.32) 0%, transparent 72%);
  filter: blur(12px);
  pointer-events: none;
}
.mdx-crest-mark {
  width: 112px;
  height: 76px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 22px rgba(229, 46, 54, 0.28));
}

.mdx-hero-centered .hero-display-title {
  max-width: 20ch;
  margin-inline: auto;
}
.mdx-hero-centered .hero-lead-text {
  max-width: 66ch;
  margin-inline: auto;
}
.hero-actions-centered {
  justify-content: center;
  margin-bottom: 0.5rem;
}
.hero-actions-centered .btn {
  padding: 0.65rem 1.2rem;
  font-size: 0.82rem;
}

/* Rangee de 3 piliers horizontaux sous la barre de configuration */
.hero-pillars-strip {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
@media (min-width: 900px) {
  .hero-pillars-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.hero-Strip-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  background: rgba(19, 38, 59, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
}
.hero-Strip-item strong {
  display: block;
  font-size: 0.86rem;
  color: #FFFFFF;
  margin-bottom: 0.1rem;
}
.hero-Strip-item span {
  display: block;
  font-size: 0.78rem;
  color: #A0AEC0;
}
.hero-strip-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(194, 35, 42, 0.18);
  border: 1px solid rgba(229, 46, 54, 0.45);
  color: #FCA5A5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mdx-hero-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (min-width: 1024px) {
  .mdx-hero-main {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 3rem;
  }
}

.hero-portal-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.25rem;
}
.hero-portal-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #A0AEC0;
}
.hero-portal-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: #13263B;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease-out, border-color 180ms ease-out, transform 180ms ease-out;
}
.hero-portal-pill:hover {
  background: #1A3048;
  border-color: #E52E36;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Emblème officiel équilibré à droite du Hero (Format horizontal/carré, sans tour verticale) */
.mdx-emblem-showcase {
  background: linear-gradient(150deg, #13263B 0%, #1A3048 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid #C2232A;
  border-radius: 16px;
  padding: 1.35rem;
  box-shadow: 0 22px 48px rgba(4, 10, 20, 0.58);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mdx-emblem-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.mdx-emblem-canvas {
  background:
    radial-gradient(circle at 50% 45%, rgba(194, 35, 42, 0.2), transparent 68%),
    #0B1929;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mdx-emblem-img {
  width: min(100%, 230px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}
.mdx-emblem-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.mdx-emblem-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.7rem;
  border-radius: 12px;
  background: rgba(11, 25, 41, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.76rem;
  font-weight: 600;
  color: #FFFFFF;
}

/* Barre horizontale pleine largeur du configurateur dans le Hero */
.hero-config-bar {
  margin-top: 2.25rem;
  background: #13263B;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 4px solid #C2232A;
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 20px 44px rgba(4, 10, 22, 0.58);
  position: relative;
  z-index: 15;
}
.hero-config-bar.has-open-popover {
  z-index: 90;
}
.hero-config-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-config-bar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: end;
}
@media (min-width: 640px) {
  .hero-config-bar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .hero-config-bar-grid {
    grid-template-columns: 1.2fr 1.05fr 1.1fr auto;
  }
}

/* ── CURSEURS INTERACTIFS (RANGE SLIDERS) & SCROLL SLIDER 100 % SUR MESURE ── */
.mdx-range-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  background: rgba(194, 35, 42, 0.22);
  border: 1px solid rgba(229, 46, 54, 0.55);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
}

.mdx-range-input,
.mdx-scroll-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #C2232A 0%,
    #E52E36 var(--range-pct, 15%),
    #0B1929 var(--range-pct, 15%),
    #0B1929 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  outline: none;
  cursor: pointer;
  margin-block: 0.55rem;
  transition: border-color 180ms ease-out, box-shadow 180ms ease-out;
}
.mdx-range-input:hover,
.mdx-scroll-range:hover,
.mdx-range-input:focus-visible,
.mdx-scroll-range:focus-visible {
  border-color: #E52E36;
  box-shadow: 0 0 0 3px rgba(229, 46, 54, 0.25);
}
.mdx-range-input::-webkit-slider-thumb,
.mdx-scroll-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 4px solid #E52E36;
  box-shadow: 0 4px 12px rgba(229, 46, 54, 0.65);
  cursor: grab;
  transition: transform 150ms ease-out, background-color 150ms ease-out;
}
.mdx-range-input::-webkit-slider-thumb:hover,
.mdx-scroll-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.mdx-range-input::-moz-range-thumb,
.mdx-scroll-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 4px solid #E52E36;
  box-shadow: 0 4px 12px rgba(229, 46, 54, 0.65);
  cursor: grab;
  transition: transform 150ms ease-out;
}

/* Rail horizontal de forfaits + Scroll Slider sur mesure */
.mdx-packages-block {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
}
.mdx-packages-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.mdx-rail-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.mdx-rail-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #13263B;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 180ms ease-out, border-color 180ms ease-out, transform 180ms ease-out;
}
.mdx-rail-btn:hover {
  background: #1A3048;
  border-color: #E52E36;
  transform: scale(1.05);
}
.mdx-rail-viewport {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(295px, 1fr);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.75rem;
  scrollbar-width: none;
}
@media (min-width: 768px) {
  .mdx-rail-viewport {
    grid-auto-columns: calc(50% - 0.65rem);
  }
}
.mdx-rail-viewport::-webkit-scrollbar {
  display: none;
}
.mdx-rail-slide {
  scroll-snap-align: start;
}
.mdx-scroll-slider-bar {
  margin-top: 0.65rem;
  display: flex;
  align-items: center;
}

/* Steppers numériques sur mesure pour input[type="number"] */
.mdx-num-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.mdx-num-wrap input[type="number"] {
  -moz-appearance: textfield;
  text-align: center;
  flex: 1 1 4.5rem;
  min-width: 4.5rem;
  height: 3rem;
  min-height: 3rem;
  padding: 0 0.75rem;
  line-height: calc(3rem - 2px);
}
.mdx-num-wrap input[type="number"]::-webkit-outer-spin-button,
.mdx-num-wrap input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.mdx-num-btn {
  width: var(--touch-target-min);
  height: var(--touch-target-min);
  border-radius: 12px;
  background: #13263B;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 150ms ease-out, border-color 150ms ease-out;
}
.mdx-num-btn:hover {
  background: #1A3048;
  border-color: #E52E36;
}

/* Interrupteur à bascule (Switch) sur mesure pour les préférences de témoins */
.mdx-switch-input {
  -webkit-appearance: none;
  appearance: none;
  width: 48px;
  height: 26px;
  border-radius: 999px;
  background: #0B1929;
  border: 1px solid rgba(255, 255, 255, 0.22);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 200ms ease-out, border-color 200ms ease-out;
}
.mdx-switch-input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #A0AEC0;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), background-color 200ms ease-out;
}
.mdx-switch-input:checked {
  background: #C2232A;
  border-color: #E52E36;
}
.mdx-switch-input:checked::after {
  transform: translateX(21px);
  background: #FFFFFF;
}

/* Pages juridiques & politiques (Québec / Loi 25) */
.legal-subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
  margin-bottom: var(--space-5);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}
.legal-subnav a {
  text-decoration: none;
}
.legal-docs {
  max-width: 76rem;
}
.legal-docs .card {
  min-width: 0;
  border-radius: 14px;
}
.legal-docs h2,
.legal-lead {
  overflow-wrap: break-word;
  text-wrap: balance;
}
.legal-lead {
  max-width: 68ch;
}
.legal-subnav .filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 48px;
  padding: 0.55rem 1rem;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
  transform: none;
}
.legal-subnav .filter-pill:hover,
.legal-subnav .filter-pill.is-active {
  transform: none;
}
@media (max-width: 720px) {
  .legal-subnav .filter-pill {
    flex: 1 1 100%;
  }
}
.legal-bullet-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #A0AEC0;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
.legal-docs .legal-bullet-list,
.legal-docs .legal-bullet-list ul {
  max-width: 68ch;
}
.legal-docs .legal-bullet-list ul {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.legal-bullet-list strong {
  color: #FFFFFF;
}
.legal-contact-box {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  background: #0B1929;
  border: 1px solid rgba(229, 46, 54, 0.45);
  border-left: 4px solid #C2232A;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.86rem;
  color: #A0AEC0;
}
.legal-contact-box strong {
  color: #FFFFFF;
  font-size: 0.92rem;
}

/* Bannière de consentement aux témoins (Cookies Banner - Loi 25 / PIPEDA) */
.mdx-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 380;
  overscroll-behavior: contain;
  background: rgba(11, 25, 41, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 2px solid #C2232A;
  box-shadow: 0 -16px 42px rgba(2, 6, 14, 0.78);
  padding-block: 1rem;
  transform: translateY(105%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease-out, visibility 0s linear 320ms;
}
.mdx-cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease-out, visibility 0s;
}
.mdx-cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.mdx-cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.mdx-cookie-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: #0B1929;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

/* ── 18. VALIDATION SUR MESURE DES FORMULAIRES & CHAMPS EN ERREUR (transitions.dev 12-error-state-shake) ── */
@keyframes t-input-shake {
  0%      { transform: translateX(0);                                 animation-timing-function: var(--shake-ease); }
  28.57%  { transform: translateX(var(--shake-distance));             animation-timing-function: var(--shake-ease); }
  57.14%  { transform: translateX(calc(var(--shake-distance) * -1)); animation-timing-function: var(--shake-ease); }
  78.57%  { transform: translateX(var(--shake-overshoot));            animation-timing-function: var(--shake-ease); }
  100%    { transform: translateX(0); }
}

.form-group.has-field-error .form-label {
  color: #FCA5A5;
}

.form-control.is-invalid,
.form-textarea.is-invalid,
.quick-select.is-invalid,
.mdx-trigger.is-invalid {
  border-color: #E52E36 !important;
  box-shadow: 0 0 0 3px rgba(229, 46, 54, 0.28) !important;
  background-color: rgba(194, 35, 42, 0.1) !important;
  transition: border-color var(--revert-dur, 280ms) ease-out,
              box-shadow var(--revert-dur, 280ms) ease-out,
              background-color var(--revert-dur, 280ms) ease-out;
}

.form-control.is-shaking,
.form-textarea.is-shaking,
.quick-select.is-shaking,
.mdx-trigger.is-shaking,
.checkbox-label.is-shaking,
.form-check.is-shaking {
  animation: t-input-shake calc(var(--shake-dur-a, 80ms) * 2 + var(--shake-dur-b, 60ms) * 2) linear;
}

.form-control.is-valid,
.form-textarea.is-valid,
.mdx-trigger.is-valid {
  border-color: rgba(16, 185, 129, 0.65) !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.16) !important;
}

.checkbox-label.is-invalid,
.form-check.is-invalid {
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  border: 1px solid #E52E36;
  background: rgba(194, 35, 42, 0.12);
  color: #FFFFFF;
}

.mdx-field-error {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0.4rem;
  padding: 0.48rem 0.75rem;
  border-radius: 12px;
  background: rgba(194, 35, 42, 0.2);
  border: 1px solid rgba(229, 46, 54, 0.45);
  border-left: 3px solid #E52E36;
  color: #FECACA;
  font-size: 0.81rem;
  font-weight: 600;
  line-height: 1.4;
  animation: slideInUp 180ms ease-out both;
}

.mdx-error-summary {
  background: linear-gradient(145deg, rgba(19, 38, 59, 0.98) 0%, rgba(194, 35, 42, 0.24) 100%);
  border: 1px solid rgba(229, 46, 54, 0.6);
  border-left: 4px solid #E52E36;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.15rem;
  color: #FFFFFF;
  box-shadow: 0 14px 32px rgba(4, 10, 20, 0.48);
  animation: slideInUp 220ms ease-out both;
}

.mdx-error-summary:focus {
  outline: 2px solid #E52E36;
  outline-offset: 2px;
}

.mdx-error-summary-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  color: #FCA5A5;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mdx-error-summary-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.84rem;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.mdx-error-summary-list a {
  color: #FECACA;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  cursor: pointer;
}

.mdx-error-summary-list a:hover {
  color: #FFFFFF;
}

/* Bouton Afficher / Masquer sur les champs mot de passe */
.mdx-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.mdx-password-wrap .form-control {
  padding-right: 5.5rem;
}
.mdx-password-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  min-height: 32px;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #13263B;
  color: #A0AEC0;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 150ms ease-out, border-color 150ms ease-out, background-color 150ms ease-out;
}
.mdx-password-toggle:hover {
  color: #FFFFFF;
  background: #1A3048;
  border-color: #E52E36;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  body {
    background: #FFFFFF !important;
    color: #0B1929 !important;
  }
  .site-header, .topbar, .site-footer, .portal-sidebar, .no-print {
    display: none !important;
  }
  .card, .table-wrap {
    border: 1px solid #94A3B8 !important;
    background: #FFFFFF !important;
    color: #0B1929 !important;
    box-shadow: none !important;
  }
  h1, h2, h3, p, td, th {
    color: #0B1929 !important;
  }
  .mx-header, .mx-footer, .mx-flash-stack, .mx-notify-dock { display: none !important; }
}

/* ══════════════════════════════════════════════════════════════════════
   20. SYSTÈME VISUEL PUBLIC — Boutons, navigation, pied de page, animations
   ══════════════════════════════════════════════════════════════════════ */

/* ── 20.1 Boutons : levée, reflet balayé, flèche animée, pression ── */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.9rem;
  transition: background-color 220ms var(--ease-smooth-out),
              color 220ms var(--ease-smooth-out),
              border-color 220ms var(--ease-smooth-out),
              transform 260ms var(--ease-smooth-out),
              box-shadow 260ms var(--ease-smooth-out);
}
.btn-sm { font-size: 0.82rem; }
.btn[hidden] { display: none; }
.btn-lg {
  min-height: 52px;
  padding: 0.85rem 1.75rem;
  font-size: 0.98rem;
  border-radius: var(--radius-lg);
}
.btn-primary:hover,
.btn-secondary:hover,
.btn-outline:hover,
.btn-danger:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 90ms; }
.btn:focus-visible { outline: 2px solid #E52E36; outline-offset: 3px; }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 700ms var(--ease-smooth-out);
  pointer-events: none;
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost {
  background: transparent;
  color: #FFFFFF;
  border-color: transparent;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--color-border-strong);
  color: #FFFFFF;
}
.btn .btn-arrow { transition: transform 300ms var(--ease-bounce); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ── 20.2 Barre de navigation ── */
@keyframes mxHeaderIn {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}
.mx-header {
  --mx-header-h: 72px;
  position: sticky;
  top: 0;
  z-index: 120;
  padding-block: 14px;
  border-bottom: 1px solid transparent;
  animation: mxHeaderIn 600ms var(--ease-smooth-out) backwards;
  transition: padding 320ms var(--ease-smooth-out), border-color 320ms ease, box-shadow 320ms ease;
}
.mx-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 25, 41, 0.86);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  opacity: 0;
  transition: opacity 320ms ease;
}
.mx-header.is-scrolled {
  padding-block: 8px;
  border-bottom-color: var(--color-border);
  box-shadow: 0 12px 32px -16px rgba(2, 6, 14, 0.7);
}
.mx-header.is-scrolled::before { opacity: 1; }

.mx-navbar {
  max-width: 1480px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
}
.mx-brand {
  justify-self: start;
  display: inline-flex;
  border-radius: var(--radius-sm);
}
.mx-brand img {
  height: 42px;
  width: auto;
  transition: height 320ms var(--ease-smooth-out), transform 400ms var(--ease-bounce);
}
.mx-header.is-scrolled .mx-brand img { height: 36px; }
.mx-brand:hover img { transform: scale(1.04); }
.mx-brand:focus-visible { outline: 2px solid #E52E36; outline-offset: 4px; }

.mx-nav-list {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 5px;
  list-style: none;
  background: rgba(19, 38, 59, 0.62);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 28px -14px rgba(0, 0, 0, 0.6);
}
.mx-nav-pills {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.mx-nav-hover,
.mx-nav-indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  border-radius: var(--radius-pill);
  opacity: 0;
  transition: transform 420ms var(--ease-smooth-out), width 420ms var(--ease-smooth-out), opacity 220ms ease;
}
.mx-nav-hover { background: rgba(255, 255, 255, 0.06); }
.mx-nav.is-hovering .mx-nav-hover { opacity: 1; }
@media (hover: none), (pointer: coarse) {
  .mx-nav-hover { display: none !important; }
  .mx-nav.is-hovering .mx-nav-hover { opacity: 0 !important; }
}
.mx-nav-indicator {
  background: linear-gradient(180deg, #1A3048 0%, #13263B 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.mx-nav-indicator::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 14px;
  height: 2px;
  margin-left: -7px;
  border-radius: 2px;
  background: #E52E36;
  box-shadow: 0 0 10px rgba(229, 46, 54, 0.9);
}
.mx-nav.has-active .mx-nav-indicator { opacity: 1; }
.mx-nav-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1rem;
  border-radius: var(--radius-pill);
  color: #A0AEC0;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 220ms ease;
}
.mx-nav-link:hover,
.mx-nav-link.is-active { color: #FFFFFF; }
.mx-nav-link:focus-visible { outline: 2px solid #E52E36; outline-offset: 2px; }
.mx-nav:not(.is-enhanced) .mx-nav-link.is-active { background: #1A3048; }

.mx-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mx-actions .btn { white-space: nowrap; }
.mx-actions .btn-ghost { background: rgba(19, 38, 59, 0.55); border-color: var(--color-border-strong); }
.mx-actions .btn-ghost:hover { border-color: rgba(229, 46, 54, 0.55); }
.mx-account-btn { padding-left: 0.4rem; }
@media (max-width: 1320px) and (min-width: 1181px) {
  .mx-nav-link { padding: 0 0.8rem; }
  .mx-actions-cta .btn-arrow { display: none; }
}
.mx-avatar {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #C2232A 0%, #E52E36 100%);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  color: #FFFFFF;
}
.mx-chevron { transition: transform 260ms var(--ease-smooth-out); }
.mx-account.is-open .mx-chevron { transform: rotate(180deg); }
.mx-account-menu { min-width: 260px; }

.mx-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-strong);
  background: rgba(19, 38, 59, 0.7);
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.mx-burger:hover { border-color: rgba(229, 46, 54, 0.55); }
.mx-burger span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #FFFFFF;
  transition: transform 320ms var(--ease-smooth-out), opacity 200ms ease;
}
.mx-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mx-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mx-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mx-scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, #C2232A, #E52E36);
  transform-origin: left center;
  transform: scaleX(var(--scroll-progress, 0));
  opacity: 0;
  transition: opacity 320ms ease;
}
.mx-header.is-scrolled .mx-scroll-progress { opacity: 1; }

@media (max-width: 1180px) {
  .mx-navbar { grid-template-columns: auto 1fr; }
  .mx-nav { display: none; }
  .mx-burger { display: inline-flex; }
}
@media (max-width: 640px) {
  .mx-actions > .btn-ghost,
  .mx-actions-cta,
  .mx-account { display: none; }
  .mx-brand img { height: 36px; }
}

.mobile-drawer-links li {
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 300ms ease, transform 420ms var(--ease-smooth-out);
  transition-delay: calc(var(--i, 0) * 45ms + 90ms);
}
.mobile-drawer.is-open .mobile-drawer-links li { opacity: 1; transform: none; }
.mx-drawer-actions {
  margin-top: auto;
  display: grid;
  gap: 0.6rem;
}

/* Les avis flash vivent dans .mx-notify-dock (coin bas). */

/* ── 20.3 Pied de page ── */
.mx-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3.5rem, 7vw, 5rem);
  background: linear-gradient(180deg, #0B1929 0%, #07111D 100%);
  border-top: 1px solid var(--color-border);
}
.mx-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: min(680px, 80%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #E52E36, transparent);
}
.mx-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 2.5rem 2rem;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.mx-footer-brand img { height: 44px; width: auto; }
.mx-footer-brand p {
  max-width: 34ch;
  margin: 1.1rem 0 1.4rem;
  color: #A0AEC0;
  font-size: 0.92rem;
}
.mx-footer-socials { display: flex; gap: 0.5rem; }
.mx-social {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #A0AEC0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, transform 320ms var(--ease-bounce);
}
.mx-social:hover {
  color: #FFFFFF;
  background: var(--red-surface);
  border-color: var(--color-border-accent);
  transform: translateY(-3px);
}
.mx-footer-title {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFFFF;
}
.mx-footer-links {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mx-footer-links a,
.mx-footer-links span,
.mx-footer-linkbtn {
  position: relative;
  display: inline-block;
  padding: 0;
  background: none;
  border: 0;
  color: #A0AEC0;
  font-family: inherit;
  font-size: 0.92rem;
  text-align: left;
  text-decoration: none;
  transition: color 200ms ease;
}
.mx-footer-links a,
.mx-footer-linkbtn { cursor: pointer; }
.mx-footer-links a::after,
.mx-footer-linkbtn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: #E52E36;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 320ms var(--ease-smooth-out);
}
.mx-footer-links a:hover,
.mx-footer-linkbtn:hover { color: #FFFFFF; }
.mx-footer-links a:hover::after,
.mx-footer-linkbtn:hover::after { transform: scaleX(1); transform-origin: left center; }
.mx-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--color-border);
  color: #A0AEC0;
  font-size: 0.8rem;
}
.mx-made-in { display: inline-flex; align-items: center; gap: 0.4rem; }
@keyframes mxHeartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.28); }
  28% { transform: scale(1); }
  42% { transform: scale(1.18); }
  70% { transform: scale(1); }
}
.mx-heart { transform-origin: center; animation: mxHeartbeat 1.6s ease-in-out infinite; }
@media (max-width: 1024px) {
  .mx-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .mx-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .mx-footer-grid { grid-template-columns: 1fr; }
  .mx-footer-bottom { justify-content: center; text-align: center; }
}

/* ── 20.4 Animations d'apparition au défilement ── */
@keyframes mxRevealUp { from { opacity: 0; transform: translate3d(0, 28px, 0); } }
@keyframes mxRevealLeft { from { opacity: 0; transform: translate3d(-32px, 0, 0); } }
@keyframes mxRevealRight { from { opacity: 0; transform: translate3d(32px, 0, 0); } }
@keyframes mxRevealScale { from { opacity: 0; transform: scale(0.94); } }
@keyframes mxRevealBlur { from { opacity: 0; filter: blur(10px); transform: translate3d(0, 14px, 0); } }
html.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  filter: none;
  transition:
    opacity 0.55s var(--ease-smooth-out),
    transform 0.55s var(--ease-smooth-out),
    filter 0.55s var(--ease-smooth-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}
html.js [data-reveal="left"],
html.js [data-reveal="right"] { transform: translate3d(0, 24px, 0); }
html.js [data-reveal="left"].is-in,
html.js [data-reveal="right"].is-in { transform: none; }
@media (max-width: 1023px) {
  html.js [data-reveal],
  html.js [data-reveal="left"],
  html.js [data-reveal="right"],
  html.js [data-reveal="scale"],
  html.js [data-reveal="blur"] {
    transform: none;
    filter: none;
  }
}
html.js [data-reveal="scale"] { transform: scale(0.94); }
html.js [data-reveal="scale"].is-in { transform: none; }
html.js [data-reveal="blur"] {
  filter: blur(10px);
  transform: translate3d(0, 14px, 0);
}
html.js [data-reveal="blur"].is-in {
  filter: none;
  transform: none;
}
html.js [data-inview] {
  opacity: 1;
}
html.js .reveal-section {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.6s var(--ease-smooth-out), transform 0.6s var(--ease-smooth-out);
}
html.js .reveal-section.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes mxRise {
  from { opacity: 0; transform: translate3d(0, 24px, 0); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
.mx-anim-in { animation: mxRise 900ms var(--ease-smooth-out) var(--d, 0ms) backwards; }

/* ── 20.5 Héros & arrière-plans animés ── */
@keyframes mxGridPan { to { background-position: 56px 56px, 56px 56px; } }
@keyframes mxFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(30px, -24px, 0) scale(1.08); }
}
@keyframes mxBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes mxEcg { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@keyframes mxShimmerText { to { background-position: 100% center; } }
@keyframes mxMarquee { to { transform: translateX(-50%); } }

.mx-hero,
.mx-page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: -79px;
}
.mx-hero {
  padding: calc(79px + clamp(4rem, 9vw, 7rem)) 0 clamp(3.5rem, 7vw, 5.5rem);
}
.mx-page-hero {
  padding: calc(79px + clamp(3.5rem, 7vw, 5.5rem)) 0 clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.mx-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.mx-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 25%, transparent 75%);
  animation: mxGridPan 28s linear infinite;
}
.mx-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  animation: mxFloat 14s ease-in-out infinite;
}
.mx-glow--red {
  top: -180px;
  left: 50%;
  width: 560px;
  height: 560px;
  margin-left: -280px;
  background: radial-gradient(circle, rgba(194, 35, 42, 0.5), transparent 65%);
}
.mx-glow--navy {
  bottom: -320px;
  left: -180px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(35, 62, 91, 0.85), transparent 65%);
  animation-delay: -5s;
}
.mx-glow--navy-r {
  top: 10%;
  right: -220px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(35, 62, 91, 0.7), transparent 65%);
  animation-delay: -9s;
}
.mx-ecg {
  position: absolute;
  left: 0;
  width: 100%;
  height: 120px;
  bottom: 2%;
}
.mx-ecg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mx-ecg-base { stroke: rgba(194, 35, 42, 0.16); stroke-width: 1.5; }
.mx-ecg-pulse {
  stroke: #E52E36;
  stroke-width: 2.4;
  stroke-dasharray: 140 860;
  filter: drop-shadow(0 0 6px rgba(229, 46, 54, 0.8));
  animation: mxEcg 4.8s linear infinite;
}

.mx-hero-inner {
  max-width: 940px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.mx-crest-wrap { animation: mxBob 6s ease-in-out 1s infinite; margin-bottom: 1.6rem; }
.mx-crest {
  display: block;
  width: 88px;
  height: auto;
  filter: drop-shadow(0 12px 30px rgba(194, 35, 42, 0.4));
}
.mx-chip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
  gap: 0.6rem;
  padding: 0.35rem 0.95rem 0.35rem 0.4rem;
  border-radius: var(--radius-pill);
  background: rgba(19, 38, 59, 0.72);
  border: 1px solid var(--color-border-strong);
  color: #CBD5E1;
  font-size: 0.84rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mx-chip-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--red-surface);
  border: 1px solid rgba(229, 46, 54, 0.35);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 700;
}
.mx-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E52E36;
  animation: pulseRedGlow 2s infinite;
}
.mx-hero-title {
  margin: 1.4rem 0 1.25rem;
  font-size: clamp(2.4rem, 6.2vw, 4.7rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.mx-hero-title > span { display: block; }
.mx-gradient-text {
  background: linear-gradient(100deg, #E52E36 0%, #FF8A8F 35%, #E52E36 60%, #C2232A 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Hérite du tracking du parent — pas de padding/tracking ajouté (cassait titres site entier) */
  letter-spacing: inherit;
  word-spacing: inherit;
  padding: 0;
  animation: mxShimmerText 5s ease-in-out infinite alternate;
}
h1 .mx-gradient-text,
h2 .mx-gradient-text,
h3 .mx-gradient-text,
.mx-hero-title .mx-gradient-text,
.mx-page-hero h1 .mx-gradient-text {
  letter-spacing: inherit;
  word-spacing: inherit;
}
@media (prefers-reduced-motion: reduce) {
  .mx-gradient-text {
    animation: none;
    background-size: 100% auto;
  }
}
.mx-hero-lead {
  max-width: 62ch;
  margin: 0 auto 2.2rem;
  color: #A0AEC0;
  font-size: clamp(1.04rem, 1.6vw, 1.22rem);
  text-wrap: pretty;
}
.mx-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}
.mx-hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.75rem;
  margin: 2.75rem 0 0;
  padding: 0;
  list-style: none;
  color: #A0AEC0;
  font-size: 0.9rem;
}
.mx-hero-trust li { display: inline-flex; align-items: center; gap: 0.5rem; }
.mx-hero-trust svg { color: #E52E36; flex-shrink: 0; }

.mx-page-hero h1 {
  max-width: 20ch;
  margin: 1.1rem auto 1rem;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.mx-page-hero p {
  max-width: 62ch;
  margin: 0 auto;
  color: #A0AEC0;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  text-wrap: pretty;
}

/* ── 20.6 Bandeau défilant ── */
.mx-marquee {
  position: relative;
  overflow: hidden;
  padding-block: 1.15rem;
  background: rgba(7, 17, 29, 0.55);
  border-block: 1px solid var(--color-border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.mx-marquee-track {
  display: flex;
  width: max-content;
  animation: mxMarquee 40s linear infinite;
}
.mx-marquee:hover .mx-marquee-track { animation-play-state: paused; }
.mx-marquee-group {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  margin: 0;
  padding: 0 2.75rem 0 0;
  list-style: none;
}
.mx-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 2.75rem;
  color: #CBD5E1;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 200ms ease;
}
.mx-marquee-item:hover { color: #FFFFFF; }
.mx-marquee-item::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #C2232A;
  transform: rotate(45deg);
}

/* ── 20.7 Sections, titres et cartes ── */
.mx-section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}
.mx-section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.mx-section--alt {
  background: linear-gradient(180deg, rgba(19, 38, 59, 0.42) 0%, rgba(19, 38, 59, 0) 100%);
  border-top: 1px solid var(--color-border);
}
.mx-head {
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}
.mx-head--left { margin-left: 0; text-align: left; }
.mx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: #FF6B70;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.mx-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.mx-h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.16;
  letter-spacing: -0.012em;
  word-spacing: normal;
  text-wrap: balance;
}
.mx-lead {
  margin: 0;
  color: #A0AEC0;
  font-size: 1.08rem;
  text-wrap: pretty;
}

.mx-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1.75rem;
  background: linear-gradient(180deg, rgba(26, 48, 72, 0.6) 0%, rgba(19, 38, 59, 0.6) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: transform 420ms var(--ease-smooth-out), border-color 300ms ease, box-shadow 420ms var(--ease-smooth-out);
}
.mx-card:hover {
  transform: translateY(-6px);
  border-color: rgba(229, 46, 54, 0.35);
  box-shadow: var(--shadow-card-hover);
}
.mx-card--static:hover { transform: none; }
.mx-card.has-open-popover,
.card.has-open-popover {
  overflow: visible;
  z-index: 6;
}
.mx-apply-card.has-open-popover,
.mx-stage-form-card.has-open-popover,
.mx-apply-form.has-open-popover,
.mx-stage-form.has-open-popover {
  overflow: visible;
  z-index: 6;
}
.mx-card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.mx-card p { margin: 0; color: #A0AEC0; font-size: 0.95rem; }

.mx-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(194, 35, 42, 0.24), rgba(194, 35, 42, 0.06));
  border: 1px solid rgba(229, 46, 54, 0.3);
  color: #E52E36;
  transition: transform 450ms var(--ease-bounce), background-color 300ms ease;
}
.mx-card:hover .mx-icon { transform: scale(1.08) rotate(-5deg); }

.mx-grid { display: grid; gap: 1.25rem; }
.mx-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mx-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mx-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) {
  .mx-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mx-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .mx-grid-2, .mx-grid-3, .mx-grid-4 { grid-template-columns: 1fr; }
}

/* Statistiques */
.mx-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}
.mx-stat {
  position: relative;
  padding: 2rem 1.6rem;
  background: rgba(19, 38, 59, 0.82);
  transition: background-color 300ms ease;
}
.mx-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #C2232A, #E52E36);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 520ms var(--ease-smooth-out);
}
.mx-stat:hover { background: #1A3048; }
.mx-stat:hover::before { transform: scaleX(1); }
.mx-stat-value {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
.mx-stat-value small { color: #E52E36; font-size: 0.5em; font-weight: 800; }
.mx-stat-value--phrase {
  letter-spacing: 0;
  gap: 0;
}
.mx-stat-phrase {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  letter-spacing: 0;
  word-spacing: normal;
}
.mx-stat-phrase__num,
.mx-stat-phrase__tail {
  letter-spacing: 0;
}
.mx-stat-phrase__tail {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #FCA5A5;
  text-transform: lowercase;
  margin-inline-start: 0.05rem;
}
.mx-stat-phrase__tail--symbol {
  color: #E52E36;
  text-transform: none;
  letter-spacing: 0;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}
.mx-stat-label { margin-top: 0.75rem; color: #A0AEC0; font-size: 0.92rem; }
@media (max-width: 900px) { .mx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .mx-stats { grid-template-columns: 1fr; } }

/* Disposition deux colonnes */
.mx-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 960px) { .mx-split { grid-template-columns: 1fr; } }
.mx-checklist {
  display: grid;
  gap: 0.9rem;
  margin: 1.75rem 0 2rem;
  padding: 0;
  list-style: none;
}
.mx-checklist li { display: flex; align-items: flex-start; gap: 0.8rem; color: #CBD5E1; }
.mx-check {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--red-surface);
  border: 1px solid rgba(229, 46, 54, 0.3);
  color: #E52E36;
}
.mx-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.mx-bento .mx-card { padding: 1.5rem; }
.mx-bento-wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.25rem; }
.mx-bento-wide img { width: 64px; height: auto; flex-shrink: 0; }
.mx-bento-big {
  display: block;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
@media (max-width: 480px) { .mx-bento { grid-template-columns: 1fr; } }

/* Cartes de services */
.mx-service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.mx-service-card p { flex: 1; }
.mx-service-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.mx-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: #CBD5E1;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mx-tag--label {
  text-transform: none;
  letter-spacing: normal;
  padding: 0.35rem 0.85rem;
  font-size: 0.76rem;
  gap: 0.4em;
  line-height: 1.3;
}
.mx-tag__ordinal,
.mx-tag__word {
  display: inline-block;
  letter-spacing: 0.02em;
}
.mx-tag__word {
  text-transform: lowercase;
}
.mx-tag sup {
  font-size: 0.72em;
  font-weight: 800;
  line-height: 0;
  top: -0.06em;
  margin-inline: 0.06em 0.02em;
  letter-spacing: 0;
  text-transform: lowercase;
}
.mx-tag:not(.mx-tag--label) {
  letter-spacing: 0.05em;
}
.mx-service-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--color-border);
}
.mx-price { color: #FFFFFF; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.mx-price small { display: block; color: #A0AEC0; font-family: var(--font-sans); font-size: 0.74rem; font-weight: 600; }
.mx-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}
.mx-link-arrow svg { color: #E52E36; transition: transform 320ms var(--ease-bounce); }
.mx-card:hover .mx-link-arrow svg,
.mx-link-arrow:hover svg { transform: translateX(4px); }
.mx-service-card.is-hidden { display: none; }

/* Étapes du processus */
.mx-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.mx-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, rgba(229, 46, 54, 0.7), rgba(229, 46, 54, 0.12));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1400ms var(--ease-smooth-out) 250ms;
}
.mx-steps.is-in::before { transform: scaleX(1); }
.mx-step { text-align: center; padding-inline: 0.5rem; }
.mx-step-num {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
  border-radius: 16px;
  background: #13263B;
  border: 1px solid var(--color-border-strong);
  box-shadow: 0 0 0 6px #0B1929;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  transition: transform 450ms var(--ease-bounce), background-color 300ms ease, border-color 300ms ease;
}
.mx-step:hover .mx-step-num {
  transform: translateY(-4px) rotate(-6deg);
  background: linear-gradient(135deg, #C2232A, #E52E36);
  border-color: transparent;
}
.mx-step h3 { margin: 0 0 0.5rem; font-size: 1.08rem; }
.mx-step p { margin: 0; color: #A0AEC0; font-size: 0.93rem; }
@media (max-width: 900px) {
  .mx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .mx-steps::before { display: none; }
}
@media (max-width: 520px) { .mx-steps { grid-template-columns: 1fr; } }

/* Valeurs */
.mx-value-index {
  position: absolute;
  top: 1.1rem;
  right: 1.4rem;
  color: rgba(255, 255, 255, 0.05);
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  transition: color 320ms ease;
}
.mx-card:hover .mx-value-index { color: rgba(229, 46, 54, 0.22); }

/* Appel à l'action */
.mx-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.75rem, 6vw, 4.75rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(229, 46, 54, 0.3);
  background: radial-gradient(120% 140% at 50% 0%, rgba(194, 35, 42, 0.38) 0%, rgba(19, 38, 59, 0.92) 48%, #13263B 100%);
}
.mx-cta .mx-ecg { bottom: auto; top: 50%; transform: translateY(-50%); opacity: 0.55; z-index: -1; }
.mx-cta h2 { max-width: 22ch; margin: 0 auto 1rem; font-size: clamp(1.9rem, 3.8vw, 3rem); letter-spacing: -0.012em; line-height: 1.16; }
.mx-cta p { max-width: 56ch; margin: 0 auto 2rem; color: #CBD5E1; }

/* Onglets à indicateur glissant */
.mx-tabs {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  gap: 2px;
  padding: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(19, 38, 59, 0.62);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
}
.mx-tabs::-webkit-scrollbar { display: none; }
.mx-tabs-indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #C2232A, #E52E36);
  box-shadow: 0 6px 18px -6px rgba(229, 46, 54, 0.7);
  transition: transform 420ms var(--ease-smooth-out), width 420ms var(--ease-smooth-out);
  pointer-events: none;
}
.mx-tab {
  position: relative;
  z-index: 1;
  min-height: 40px;
  padding: 0 1.1rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: #A0AEC0;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 220ms ease;
}
.mx-tab:hover, .mx-tab.is-active { color: #FFFFFF; }
.mx-tab:focus-visible { outline: 2px solid #E52E36; outline-offset: 2px; }
.mx-tabs:not(.is-enhanced) .mx-tab.is-active { background: #C2232A; }

@media (prefers-reduced-motion: reduce) {
  .finti-hero-card,
  .t-kpi-card,
  .shift-calendar-day-card {
    transition: border-color var(--duration-quick) ease, box-shadow var(--duration-quick) ease;
  }
  .finti-hero-card:hover,
  .t-kpi-card:hover,
  .shift-calendar-day-card:hover {
    transform: none;
  }
  .mx-tabs-indicator {
    transition: none;
  }
}

/* Calculateur d'effectifs */
.mx-calc {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.25rem;
  align-items: stretch;
}
@media (max-width: 900px) { .mx-calc { grid-template-columns: 1fr; } }
.mx-calc-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(120% 120% at 100% 0%, rgba(194, 35, 42, 0.3), rgba(19, 38, 59, 0.9) 60%);
  border-color: rgba(229, 46, 54, 0.3);
}
.mx-calc-number {
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.mx-segment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
.mx-bump { animation: mxBump 420ms var(--ease-bounce); }
@keyframes mxBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Choix en cartes (boutons radio) */
.mx-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.75rem;
}
.mx-choice { position: relative; display: block; cursor: pointer; }
.mx-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.mx-choice-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  height: 100%;
  padding: 1rem 2.6rem 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--color-border-strong);
  background: rgba(19, 38, 59, 0.55);
  transition: border-color 250ms ease, background-color 250ms ease, transform 320ms var(--ease-bounce), box-shadow 300ms ease;
}
.mx-choice-body::after {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: border-color 200ms ease, box-shadow 250ms var(--ease-bounce), background-color 200ms ease;
}
.mx-choice:hover .mx-choice-body { border-color: rgba(229, 46, 54, 0.45); transform: translateY(-2px); }
.mx-choice input:checked + .mx-choice-body {
  border-color: #E52E36;
  background: linear-gradient(180deg, rgba(194, 35, 42, 0.18), rgba(194, 35, 42, 0.05));
  box-shadow: 0 0 0 3px rgba(229, 46, 54, 0.15);
}
.mx-choice input:checked + .mx-choice-body::after {
  border-color: #E52E36;
  background: #FFFFFF;
  box-shadow: inset 0 0 0 4px #E52E36;
}
.mx-choice input:focus-visible + .mx-choice-body { outline: 2px solid #E52E36; outline-offset: 2px; }
.mx-choice-title { color: #FFFFFF; font-size: 0.95rem; font-weight: 700; }
.mx-choice-desc { color: #A0AEC0; font-size: 0.82rem; line-height: 1.45; }
.mx-choice-price { margin-top: auto; padding-top: 0.35rem; color: #E52E36; font-family: var(--font-display); font-size: 0.86rem; font-weight: 800; }
.mx-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mx-pills .mx-choice-body {
  flex-direction: row;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: #CBD5E1;
}
.mx-pills .mx-choice-body::after { display: none; }
.mx-pills .mx-choice input:checked + .mx-choice-body { color: #FFFFFF; }

/* Assistant de soumission en 3 étapes */
.mx-quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.75rem;
  align-items: start;
}
@media (max-width: 1080px) { .mx-quote-layout { grid-template-columns: 1fr; } }
.mx-wizard { padding: clamp(1.25rem, 3vw, 2.25rem); }
.mx-wizard:hover { transform: none; }
.mx-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.mx-stepper-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.02);
  color: #A0AEC0;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
  cursor: default;
  transition: border-color 300ms ease, background-color 300ms ease, color 300ms ease;
}
.mx-stepper-btn:not(:disabled) { cursor: pointer; }
.mx-stepper-btn:not(:disabled):hover { border-color: rgba(229, 46, 54, 0.45); color: #FFFFFF; }
.mx-stepper-num {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #13263B;
  border: 1px solid var(--color-border-strong);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  transition: background-color 300ms ease, border-color 300ms ease, transform 400ms var(--ease-bounce);
}
.mx-stepper-num svg { display: none; }
.mx-stepper-item.is-current .mx-stepper-btn { border-color: rgba(229, 46, 54, 0.5); background: var(--red-surface); color: #FFFFFF; }
.mx-stepper-item.is-current .mx-stepper-num { background: linear-gradient(135deg, #C2232A, #E52E36); border-color: transparent; transform: scale(1.06); }
.mx-stepper-item.is-done .mx-stepper-btn { color: #FFFFFF; }
.mx-stepper-item.is-done .mx-stepper-num { background: #1A3048; border-color: rgba(229, 46, 54, 0.5); color: #E52E36; }
.mx-stepper-item.is-done .mx-stepper-num span { display: none; }
.mx-stepper-item.is-done .mx-stepper-num svg { display: block; }
@media (max-width: 560px) { .mx-stepper-label { display: none; } .mx-stepper-btn { justify-content: center; } }
.mx-progress {
  height: 4px;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}
.mx-progress-bar {
  width: var(--p, 33.33%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #C2232A, #E52E36);
  transition: width 550ms var(--ease-smooth-out);
}
@keyframes mxStepIn { from { opacity: 0; transform: translate3d(22px, 0, 0); } }
@keyframes mxStepInBack { from { opacity: 0; transform: translate3d(-22px, 0, 0); } }
.mx-step-panel { display: none; }
.mx-step-panel.is-active { display: block; animation: mxStepIn 460ms var(--ease-smooth-out) backwards; }
[data-dir="back"] .mx-step-panel.is-active { animation-name: mxStepInBack; }
.mx-step-panel > .form-stack { gap: 1.35rem; }
.mx-step-title { margin: 0 0 0.35rem; font-size: 1.4rem; letter-spacing: -0.015em; }
.mx-card .mx-step-sub { margin: 0 0 1.75rem; color: #A0AEC0; font-size: 0.95rem; }
.mx-field-label {
  display: block;
  margin-bottom: 0.6rem;
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 700;
}
.mx-wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.mx-wizard-nav .mx-step-count { color: #A0AEC0; font-size: 0.85rem; }
.mx-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--color-border-strong);
  background: rgba(19, 38, 59, 0.55);
  cursor: pointer;
  transition: border-color 250ms ease;
}
.mx-toggle-row:hover { border-color: rgba(229, 46, 54, 0.45); }
.mx-dropzone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: rgba(7, 17, 29, 0.4);
  color: #A0AEC0;
  font-size: 0.9rem;
  transition: border-color 250ms ease, background-color 250ms ease;
}
.mx-dropzone:hover, .mx-dropzone.is-filled { border-color: #E52E36; background: var(--red-surface); color: #FFFFFF; }
.mx-dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mx-dropzone .mx-icon { margin: 0; width: 42px; height: 42px; border-radius: 12px; }
.mx-summary { position: sticky; top: 96px; }
.mx-summary:hover { transform: none; }
.mx-estimate {
  margin-top: 0.3rem;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.mx-estimate-box {
  margin: 1rem 0 1.25rem;
  padding: 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(229, 46, 54, 0.4);
  background: radial-gradient(120% 120% at 100% 0%, rgba(194, 35, 42, 0.22), rgba(7, 17, 29, 0.6) 65%);
}
.mx-estimate-box small { color: #A0AEC0; font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.mx-summary-list { display: grid; gap: 0.65rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.mx-summary-list li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.88rem; }
.mx-summary-list span:first-child { color: #A0AEC0; }
.mx-summary-list span:last-child { color: #FFFFFF; font-weight: 600; text-align: right; }

/* Liste de territoire */
.mx-region-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.mx-region-list li {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: rgba(19, 38, 59, 0.6);
  color: #CBD5E1;
  font-size: 0.86rem;
  transition: border-color 220ms ease, color 220ms ease, transform 300ms var(--ease-bounce);
}
.mx-region-list li:hover { border-color: rgba(229, 46, 54, 0.5); color: #FFFFFF; transform: translateY(-2px); }
.mx-region-list li.is-home { border-color: #E52E36; background: var(--red-surface); color: #FFFFFF; font-weight: 700; }

/* ── 21. NOTRE ÉQUIPE, CARRIÈRES & RECRUTEMENT ── */
.mx-team-page {
  --team-card-pad-x: clamp(1.25rem, 3.2vw, 1.85rem);
  --team-card-pad-y: clamp(1.35rem, 3vw, 1.9rem);
  --team-gap: clamp(1.1rem, 2.4vw, 1.5rem);
}
.mx-team-page .mx-card {
  padding: var(--team-card-pad-y) var(--team-card-pad-x);
}
.mx-team-page .mx-card.mx-card--static:hover,
.mx-team-page .mx-team-notice:hover,
.mx-team-page .mx-apply-card:hover {
  transform: none;
  box-shadow: none;
}
.mx-team-page .mx-stats {
  border-radius: var(--radius-xl);
}
.mx-team-page .mx-stat {
  padding: clamp(1.35rem, 2.8vw, 2rem) clamp(1.15rem, 2.5vw, 1.6rem);
}
@media (max-width: 767px) {
  .mx-team-page .mx-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .mx-team-page .mx-stats {
    grid-template-columns: 1fr;
  }
  .mx-team-page .mx-stat-label {
    font-size: 0.88rem;
    line-height: 1.45;
  }
}
.mx-team-page .mx-head {
  margin-bottom: clamp(1.75rem, 3vw, 2.25rem);
}
.mx-team-page .mx-section--alt .mx-card {
  height: 100%;
}
.mx-team-page .mx-bento {
  gap: var(--team-gap);
}
.mx-team-page .mx-split {
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}
.mx-team-page .mx-section--alt .mx-checklist {
  margin-top: 1.25rem;
  gap: 0.65rem;
}
.mx-team-grid { align-items: stretch; gap: var(--team-gap); }
.mx-team-grid--solo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: min(100%, 22.5rem);
  margin-inline: auto;
}
.mx-team-grid--solo .mx-team-card {
  width: 100%;
}
.mx-team-empty {
  text-align: center;
  padding-block: clamp(2rem, 4vw, 2.75rem) !important;
}
.mx-team-empty p {
  margin: 0 auto;
  max-width: 36rem;
  color: #A0AEC0;
  line-height: 1.6;
}
.mx-team-empty a {
  color: #E52E36;
  font-weight: 600;
  text-underline-offset: 3px;
}
.mx-team-empty--jobs {
  margin-bottom: clamp(2rem, 4vw, 2.5rem);
}
.mx-team-empty--jobs h3 {
  margin: 0.75rem 0 0.35rem;
  color: #FFFFFF;
  font-size: 1.2rem;
}
.mx-team-empty__icon {
  margin-inline: auto;
}
.mx-team-notice {
  max-width: 46rem;
  margin-inline: auto;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  padding: clamp(1.5rem, 3.5vw, 2.35rem) clamp(1.35rem, 4vw, 2.75rem) !important;
  text-align: center;
  border-color: rgba(229, 46, 54, 0.35);
}
.mx-team-notice__lead {
  margin: 0 0 0.75rem;
  color: #FFFFFF;
  font-size: clamp(1.02rem, 1.85vw, 1.12rem);
  font-weight: 700;
  line-height: 1.45;
  text-wrap: balance;
}
.mx-team-notice__copy {
  margin: 0 auto;
  max-width: 40rem;
  color: #CBD5E1;
  font-size: 0.95rem;
  line-height: 1.65;
  text-wrap: pretty;
}
.mx-team-notice a {
  color: #E52E36;
  text-underline-offset: 3px;
  font-weight: 600;
}
.mx-team-notice a:hover { color: #FFFFFF; }
@media (max-width: 480px) {
  .mx-team-notice__copy {
    font-size: 0.92rem;
    line-height: 1.6;
  }
}
.mx-careers-intro {
  max-width: 46rem;
  margin-inline: auto;
}
.mx-careers-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12em;
  max-width: min(100%, 44rem);
  margin-inline: auto;
  text-wrap: unset;
  line-height: 1.12;
  letter-spacing: -0.006em;
}
.mx-careers-title__line {
  display: block;
  width: 100%;
  text-align: center;
}
.mx-careers-title__line--lead {
  white-space: nowrap;
}
.mx-careers-title .mx-gradient-text {
  letter-spacing: 0.01em;
  display: inline;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .mx-careers-title {
    font-size: clamp(1.65rem, 7.5vw, 2.1rem);
  }
  .mx-careers-title__line--lead {
    white-space: normal;
    text-wrap: balance;
  }
  .mx-careers-title .mx-gradient-text {
    white-space: normal;
  }
}
.mx-team-page #stages {
  padding-bottom: clamp(2.25rem, 4.5vw, 3.25rem);
}
.mx-team-page #carrieres.mx-section--careers {
  padding-top: clamp(2.25rem, 4.5vw, 3.25rem);
}
.mx-careers-intro a {
  color: #E52E36;
  font-weight: 600;
  text-underline-offset: 3px;
}
.mx-team-page .mx-page-hero h1 {
  letter-spacing: -0.012em;
  line-height: 1.12;
  max-width: 24ch;
}
.mx-team-page .mx-h2 {
  letter-spacing: -0.008em;
  line-height: 1.18;
}
.mx-team-page .mx-h2 .mx-gradient-text {
  letter-spacing: inherit;
  word-spacing: inherit;
  padding: 0;
}
.mx-team-page .mx-page-hero h1 .mx-gradient-text {
  letter-spacing: inherit;
  padding: 0;
}
.mx-team-page .mx-kicker {
  letter-spacing: 0.1em;
}
.mx-team-page .mx-stat-value--phrase .mx-stat-phrase {
  justify-content: center;
  flex-wrap: wrap;
}
/* Badge « 1re année » — ne pas réutiliser .mx-tag (uppercase + tracking agressif) */
.mx-stage-year-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.38rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  color: #E5E7EB;
  font-family: var(--font-body, inherit);
  font-size: 0.8125rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1.45;
  letter-spacing: 0.04em;
  word-spacing: 0.16em;
  text-transform: none;
  white-space: nowrap;
}
.mx-stage-year-badge sup {
  font-size: 0.62em;
  font-weight: 800;
  line-height: 0;
  position: relative;
  top: -0.35em;
  margin: 0;
  padding: 0;
  letter-spacing: 0;
  text-transform: lowercase;
  vertical-align: baseline;
}
.mx-stage-card .mx-stage-year-badge {
  margin-bottom: 0.15rem;
}
.mx-stage-form-page {
  padding-top: clamp(2rem, 4vw, 3rem);
}
.mx-stage-form-card {
  width: min(100%, 72rem);
  max-width: min(72rem, calc(100vw - 1.5rem));
  margin-inline: auto;
  overflow: visible;
}
.mx-stage-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.35rem;
}
.mx-stage-form-actions .btn-lg {
  flex: 1 1 16rem;
}
.mx-school-combo__hint {
  margin: 0 0 0.45rem;
  font-size: 0.84rem;
  color: #A0AEC0;
}
.mx-school-combo__field {
  position: relative;
}
.mx-school-combo__list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  max-height: 15rem;
  margin: 0;
  padding: 0.35rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  border-radius: 12px;
  border: 1px solid rgba(229, 46, 54, 0.35);
  background: #0B1929;
  box-shadow: 0 16px 40px rgba(2, 6, 14, 0.55);
}
.mx-school-combo__option {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  color: #E5E7EB;
  font-size: 0.88rem;
  line-height: 1.35;
  cursor: pointer;
}
.mx-school-combo__option:hover,
.mx-school-combo__option:focus {
  background: rgba(194, 35, 42, 0.18);
  color: #FFFFFF;
}
.mx-school-combo__type {
  flex: 0 0 auto;
  margin-top: 0.1rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mx-school-combo__type--cegep {
  background: rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
}
.mx-school-combo__type--uni {
  background: rgba(194, 35, 42, 0.22);
  color: #FCA5A5;
}
.mx-school-combo__empty {
  padding: 0.65rem 0.75rem;
  color: #A0AEC0;
  font-size: 0.85rem;
}
.mx-stage-card__brand {
  margin: 0 0 0.35rem;
  color: #FCA5A5;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mx-team-page .mx-h2 sup,
.mx-team-page .mx-stage-steps sup,
.mx-team-page .mx-stage-cta sup {
  margin-inline: 0.12em;
  font-size: 0.72em;
  letter-spacing: 0;
}
.mx-stage-path {
  max-width: 46rem;
  margin: 0 auto clamp(1.25rem, 3vw, 1.75rem);
  text-align: left;
  border-color: rgba(229, 46, 54, 0.28);
}
.mx-stage-path__title {
  margin: 0 0 0.75rem;
  color: #FFFFFF;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.mx-stage-steps {
  margin: 0;
  padding-left: 1.15rem;
  color: #CBD5E1;
  line-height: 1.55;
  display: grid;
  gap: 0.45rem;
}
.mx-stage-steps strong { color: #FFFFFF; font-weight: 700; }
.mx-stage-path__note {
  margin: 0.85rem 0 0;
  color: #A0AEC0;
  font-size: 0.9rem;
  line-height: 1.55;
}
.mx-stage-grid { margin-top: 0.25rem; }
.mx-stage-card {
  display: flex;
  flex-direction: column;
}
.mx-stage-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 1.1rem;
}
.mx-stage-card__actions .btn { flex: 1 1 12rem; justify-content: center; }
.mx-stage-card h3 {
  margin: 0.35rem 0 0.4rem;
  color: #FFFFFF;
  font-size: 1.35rem;
}
.mx-stage-card .mx-checklist {
  margin: 1rem 0 0;
}
.mx-stage-cta {
  margin: 1.5rem auto 0;
  max-width: 42rem;
  text-align: center;
  color: #CBD5E1;
  line-height: 1.55;
}
.mx-stage-cta a {
  color: #E52E36;
  font-weight: 600;
  text-underline-offset: 3px;
}
.mx-stage-cta__link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.mx-job-meta-line {
  margin-top: 0.35rem;
  color: #CBD5E1;
  font-size: 0.86rem;
}
.mx-job-deadline {
  margin: 0.5rem 0 0;
  color: #A0AEC0;
  font-size: 0.8rem;
}
.mx-job-deadline strong { color: #E5E7EB; }
.mx-team-card {
  display: flex;
  flex-direction: column;
  gap: clamp(0.95rem, 2vw, 1.2rem);
  height: 100%;
}
.mx-team-visual {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}
.mx-team-avatar {
  flex-shrink: 0;
  width: clamp(5.5rem, 18vw, 6.5rem);
  height: clamp(5.5rem, 18vw, 6.5rem);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(229, 46, 54, 0.35);
  box-shadow: 0 14px 32px rgba(2, 6, 14, 0.48);
  transition: transform 360ms var(--ease-bounce), border-color 260ms ease;
}
.mx-team-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mx-team-card .mx-tag {
  max-width: 9.5rem;
  text-align: right;
  line-height: 1.35;
  white-space: normal;
}
.mx-team-card:hover .mx-team-avatar {
  transform: translateY(-3px) scale(1.03);
  border-color: #E52E36;
}
.mx-team-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.18rem;
  color: #FFFFFF;
}
.mx-team-role {
  margin: 0 0 0.65rem !important;
  color: #FCA5A5 !important;
  font-size: 0.85rem !important;
  font-weight: 700;
}
.mx-team-bio {
  margin: 0;
  color: #A0AEC0;
  font-size: 0.9rem;
  line-height: 1.6;
}
.mx-team-body {
  flex: 1 1 auto;
  min-width: 0;
}
.mx-team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: auto 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--color-border);
  list-style: none;
}
.mx-team-tags li {
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(11, 25, 41, 0.72);
  border: 1px solid var(--color-border);
  color: #CBD5E1;
  font-size: 0.76rem;
  font-weight: 600;
}
.mx-team-jobs-grid {
  gap: var(--team-gap);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  align-items: stretch;
}
.mx-team-job-card {
  height: 100%;
}
.mx-team-job-card .mx-service-top.mx-team-job-card__tags {
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.65rem;
  min-width: 0;
}
.mx-team-job-card .mx-service-top.mx-team-job-card__tags .badge,
.mx-team-job-card .mx-service-top.mx-team-job-card__tags .mx-tag {
  flex: 0 1 auto;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mx-team-job-card .mx-service-top.mx-team-job-card__tags .badge {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: none;
}
.mx-team-job-card > p {
  flex: 1 1 auto;
  color: #CBD5E1;
  line-height: 1.55;
}
.mx-team-job-card h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.02rem, 1.8vw, 1.12rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.mx-job-card {
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 1.8vw, 1.05rem);
  height: 100%;
}
.mx-job-details {
  display: grid;
  gap: 0.75rem;
  padding: clamp(0.85rem, 2vw, 1.05rem) clamp(0.95rem, 2.2vw, 1.15rem);
  border-radius: 12px;
  background: rgba(11, 25, 41, 0.58);
  border: 1px solid var(--color-border);
  font-size: 0.84rem;
}
.mx-team-job-card .mx-service-foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}
.mx-job-details strong {
  display: block;
  color: #FFFFFF;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}
.mx-job-details p {
  margin: 0;
  color: #A0AEC0;
  font-size: 0.84rem;
  line-height: 1.5;
}
.mx-apply-closed {
  padding: clamp(1.1rem, 2.2vw, 1.5rem);
  border-radius: var(--radius-lg);
  background: rgba(11, 25, 41, 0.55);
  border: 1px solid var(--color-border);
  text-align: center;
}
.mx-apply-closed__title {
  margin: 0 0 0.45rem;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 800;
}
.mx-apply-closed__copy {
  margin: 0;
  color: #A0AEC0;
  font-size: 0.92rem;
  line-height: 1.5;
}
.mx-apply-card {
  display: grid;
  gap: 1.25rem;
  width: min(100%, 72rem);
  max-width: min(72rem, calc(100vw - 1.5rem));
  margin-inline: auto;
  padding: clamp(1.15rem, 2.4vw, 1.75rem) !important;
  background: radial-gradient(120% 120% at 0% 0%, rgba(194, 35, 42, 0.14), rgba(19, 38, 59, 0.92) 55%);
  overflow: visible;
}
#postuler.mx-apply-card {
  isolation: auto;
}
.mx-apply-head {
  display: grid;
  gap: 0.85rem;
}
.mx-apply-card__title {
  margin: 0.35rem 0 0.35rem;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  color: #FFFFFF;
  line-height: 1.2;
  text-wrap: balance;
}
.mx-apply-card__lead {
  margin: 0;
  max-width: 42rem;
  color: #A0AEC0;
  line-height: 1.5;
}
.mx-apply-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mx-apply-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #CBD5E1;
  font-size: 0.88rem;
  line-height: 1.35;
}
.mx-apply-form,
.mx-stage-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0;
  min-width: 0;
  overflow: visible;
  padding: clamp(1rem, 2vw, 1.25rem);
  border-radius: var(--radius-lg);
  background: rgba(11, 25, 41, 0.45);
  border: 1px solid var(--color-border);
}
.mx-apply-form .mdx-select-wrap,
.mx-apply-form .mdx-picker-wrap,
.mx-stage-form .mdx-select-wrap,
.mx-stage-form .mdx-picker-wrap {
  min-width: 0;
  max-width: 100%;
}
.mx-apply-form .mdx-trigger,
.mx-stage-form .mdx-trigger {
  min-width: 0;
  max-width: 100%;
}
.mx-apply-form .mdx-trigger-label,
.mx-stage-form .mdx-trigger-label {
  flex: 1 1 auto;
  min-width: 0;
}
.mx-apply-form .mdx-popover,
.mx-stage-form .mdx-popover {
  width: 100%;
  min-width: 0;
  max-width: min(36rem, calc(100vw - 2rem));
  box-sizing: border-box;
}
.mx-apply-form .mdx-option,
.mx-stage-form .mdx-option {
  align-items: flex-start;
  height: auto;
  min-height: 2.75rem;
  padding-block: 0.55rem;
  white-space: normal;
}
.mx-apply-form .mdx-option > span:first-child,
.mx-stage-form .mdx-option > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
  text-align: left;
}
.mx-team-page #carrieres .container {
  max-width: min(76rem, calc(100vw - 1.25rem));
}
@media (max-width: 768px) {
  .mx-apply-card,
  .mx-stage-form-card {
    max-width: calc(100vw - 1.1rem);
    padding: clamp(0.95rem, 3.5vw, 1.15rem) !important;
  }
  .mx-apply-form .mdx-popover,
  .mx-stage-form .mdx-popover {
    max-width: calc(100vw - 2.25rem);
  }
}
.mx-apply-form .form-group,
.mx-stage-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
}
.mx-apply-form .form-label,
.mx-stage-form .form-label {
  margin: 0;
  padding: 0;
  line-height: 1.3;
}
.mx-apply-form .form-row,
.mx-apply-form .form-row-2,
.mx-apply-form .form-row-3,
.mx-stage-form .form-row,
.mx-stage-form .form-row-2,
.mx-stage-form .form-row-3 {
  display: grid;
  row-gap: 1.25rem;
  column-gap: 1rem;
  align-items: end;
}
.mx-apply-form input.form-control,
.mx-apply-form select.form-control,
.mx-apply-form select.form-select,
.mx-stage-form input.form-control,
.mx-stage-form select.form-control,
.mx-stage-form select.form-select,
.mx-apply-form .mdx-trigger,
.mx-stage-form .mdx-trigger,
.mx-apply-form .mdx-num-wrap input[type="number"],
.mx-stage-form .mdx-num-wrap input[type="number"] {
  box-sizing: border-box;
  height: 3rem;
  min-height: 3rem;
  padding: 0 0.9rem;
  line-height: calc(3rem - 2px);
}
.mx-apply-form textarea.form-control,
.mx-apply-form .form-textarea,
.mx-stage-form textarea.form-control,
.mx-stage-form .form-textarea {
  height: auto;
  min-height: 7rem;
  padding: 0.8rem 0.9rem;
  line-height: 1.5;
}
.mx-apply-consent {
  font-size: 0.88rem;
  color: #CBD5E1;
  line-height: 1.5;
}
.mx-apply-consent a {
  color: #E52E36;
  text-underline-offset: 2px;
}
.mx-apply-submit {
  width: 100%;
  margin-top: 0.15rem;
}
.mx-avail-hint {
  margin: 0.15rem 0 0.75rem;
}
.mx-avail-picker .mx-avail-block {
  border: 0;
  margin: 0 0 0.75rem;
  padding: 0;
}
.mx-avail-legend {
  margin: 0 0 0.4rem;
  color: #E5E7EB;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mx-avail-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.mx-avail-days .mx-choice-body {
  min-width: 2.85rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.55rem;
  text-align: center;
}
.mx-avail-periods .mx-choice-body,
.mx-avail-contexts .mx-choice-body {
  min-height: 2.75rem;
  padding: 0.45rem 0.75rem;
}
.mx-avail-preview {
  margin: 0.15rem 0 0;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: rgba(11, 25, 41, 0.55);
  border: 1px solid var(--color-border);
  color: #A0AEC0;
  font-size: 0.84rem;
  line-height: 1.45;
}
.mx-avail-preview strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #CBD5E1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.mx-avail-picker.is-invalid .mx-avail-preview {
  border-color: rgba(229, 46, 54, 0.45);
}
@media (max-width: 640px) {
  .mx-apply-form .form-row-2,
  .mx-stage-form .form-row-2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .mx-team-visual {
    flex-wrap: wrap;
  }
  .mx-team-card .mx-tag {
    max-width: none;
    text-align: left;
  }
}

/* ── 22. SYSTÈME VISUEL UNIFIÉ POUR LES PORTAILS (CLIENT, TERRAIN, ADMIN) ── */
@keyframes mxPortalFadeUp {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

html:has(body.portal-body) {
  overflow-x: clip;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.portal-body {
  display: block;
  min-height: 100dvh;
  height: auto;
  overflow: visible;
  background:
    radial-gradient(900px 480px at 88% -8%, rgba(194, 35, 42, 0.14), transparent 65%),
    radial-gradient(760px 420px at 12% 18%, rgba(26, 48, 72, 0.55), transparent 65%),
    #0B1929;
}

.portal-body .saas-layout,
.portal-body .saas-main-wrapper,
.portal-body .saas-content {
  overflow: visible;
}

.portal-body .saas-content.spa-view-stage {
  min-height: 0;
}
.portal-body .saas-content.spa-view-stage.is-spa-loading {
  min-height: 50svh;
}
.saas-avatar.is-photo {
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.mx-account nav.mx-settings-tabs {
  display: inline-flex;
  align-self: flex-start;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin: -0.35rem 0 0;
  padding: 0.25rem;
  border-radius: 12px;
  background: #0B1929;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}
.mx-seg-indicator {
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  left: 0;
  border-radius: 9px;
  background: #C2232A;
  z-index: 0;
  pointer-events: none;
  transition: transform var(--duration-fast, 250ms) var(--ease-smooth-out),
              width var(--duration-fast, 250ms) var(--ease-smooth-out);
  will-change: transform, width;
}
.mx-account nav.mx-settings-tabs .mx-tab {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 9px;
  padding: 0.48rem 0.95rem;
  background: transparent;
  color: #A0AEC0;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  transition: color var(--duration-quick) var(--ease-smooth-out);
}
.mx-account nav.mx-settings-tabs .mx-tab:hover {
  color: #FFFFFF;
}
.mx-account nav.mx-settings-tabs .mx-tab.is-active {
  background: transparent;
  color: #FFFFFF;
}
.filter-bar[data-ticket-filters] {
  position: relative;
  flex-wrap: nowrap;
  gap: 0.2rem;
  padding: 0.25rem;
  border-radius: var(--radius-pill);
  background: #0B1929;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.filter-bar[data-ticket-filters] .mx-seg-indicator {
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #C2232A 0%, #E52E36 100%);
}
.filter-bar[data-ticket-filters] .filter-pill {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  border-color: transparent;
  background: transparent;
  white-space: nowrap;
}
.filter-bar[data-ticket-filters] .filter-pill:hover {
  color: #FFFFFF;
  background: transparent;
  border-color: transparent;
  transform: none;
}
.filter-bar[data-ticket-filters] .filter-pill.is-active {
  color: #FFFFFF;
  background: transparent;
  border-color: transparent;
  transform: none;
}
.mx-account nav.mx-settings-tabs .mx-tab:focus-visible {
  outline: 2px solid #E52E36;
  outline-offset: 2px;
}

.mx-id-pane,
.mx-sheet {
  position: relative;
  background: #101E2E;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.35rem 1.35rem 1.2rem;
}
.mx-id-veil {
  position: absolute;
  inset: 0.55rem;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  padding-top: 4.75rem;
  border-radius: 12px;
  border: 2px solid #E52E36;
  background: #0B1929;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--duration-quick) var(--ease-smooth-out), visibility var(--duration-quick);
}
.mx-id-pane.is-dropping .mx-id-veil {
  opacity: 1;
  visibility: visible;
}
.mx-id-veil p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}
.mx-id-ecg {
  display: block;
}
.mx-id-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mx-id-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.15rem 1.4rem;
  align-items: center;
  padding-bottom: 1.25rem;
  margin-bottom: 0.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mx-portrait {
  position: relative;
  width: 158px;
}
.mx-portrait-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.mx-portrait-file:focus,
.mx-portrait-file:focus-visible {
  outline: none;
}
.mx-portrait-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 158px;
  height: 188px;
  margin: 0;
  border-radius: 18px 18px 22px 18px;
  overflow: hidden;
  cursor: pointer;
  background:
    linear-gradient(160deg, #1A3048 0%, #0B1929 70%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(194, 35, 42, 0.28);
  color: #FFFFFF;
}
.mx-portrait:focus-within .mx-portrait-frame {
  outline: 2px solid #E52E36;
  outline-offset: 3px;
}
.mx-portrait-frame img,
.mx-portrait-fallback {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
}
.mx-portrait-frame img {
  object-fit: cover;
  display: block;
}
.mx-portrait-fallback {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  letter-spacing: -0.04em;
}
.mx-portrait-fallback[hidden],
.mx-portrait-frame img[hidden] {
  display: none;
}
.mx-portrait-mark {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #FFFFFF;
  background: #C2232A;
}
.mx-portrait-hint {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 1.6rem 0.55rem 0.55rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(transparent, rgba(11, 25, 41, 0.92));
}
@media (hover: hover) and (pointer: fine) {
  .mx-portrait-hint {
    opacity: 0;
    transition: opacity var(--duration-quick) var(--ease-smooth-out);
  }
  .mx-portrait-frame:hover .mx-portrait-hint,
  .mx-portrait:focus-within .mx-portrait-hint,
  .mx-portrait.is-ready .mx-portrait-hint {
    opacity: 1;
  }
}
.mx-id-role {
  margin: 0 0 0.2rem;
  color: #E52E36;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mx-id-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.mx-id-mail,
.mx-id-meta,
.mx-id-pending,
.mx-portrait-status {
  margin: 0.45rem 0 0;
  color: #A0AEC0;
  font-size: 0.92rem;
}
.mx-id-mail {
  display: flex;
  min-width: 0;
  overflow-wrap: anywhere;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
}
.mx-id-textbtn {
  padding: 0;
  border: 0;
  background: none;
  color: #FFFFFF;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.mx-id-textbtn:hover { color: #E52E36; }
.mx-id-textbtn:focus-visible {
  outline: 2px solid #E52E36;
  outline-offset: 2px;
}
.mx-id-pending { color: #FFFFFF; }
.mx-portrait-caption {
  margin: 0.45rem 0 0;
  text-align: center;
  color: #A0AEC0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mx-id-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}
.mx-id-meta a {
  color: #FFFFFF;
  font-weight: 700;
}
.mx-id-meta a:hover { color: #E52E36; }
.mx-id-quals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}
.mx-id-quals li {
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0B1929;
  color: #FFFFFF;
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.mx-portrait-status.is-error { color: #E52E36; }
.mx-portrait-status.is-ready { color: #FFFFFF; }
.mx-id-block {
  padding-top: 1.15rem;
}
.mx-id-block h2,
.mx-sheet h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #A0AEC0;
}
.mx-sheet h2 {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #FFFFFF;
}
.mx-sheet > p,
.mx-sheet-head p {
  margin: 0 0 1rem;
  color: #A0AEC0;
}
.mx-id-fields {
  display: grid;
  gap: 0.85rem 1rem;
}
.mx-id-fields .form-group { margin: 0; }
@media (min-width: 800px) {
  .mx-id-fields.cols-2 { grid-template-columns: 1fr 1fr; }
  .mx-id-span { grid-column: 1 / -1; }
}
.mx-id-switches {
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 800px) {
  .mx-id-switches { grid-template-columns: 1fr 1fr; }
}
.mx-id-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  margin: 0;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0B1929;
  cursor: pointer;
}
.mx-id-switch-row strong {
  display: block;
  color: #FFFFFF;
  font-size: 0.95rem;
}
.mx-id-switch-row small {
  display: block;
  margin-top: 0.15rem;
  color: #A0AEC0;
  font-size: 0.8rem;
  line-height: 1.35;
}
.mx-id-switch {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 28px;
}
.mx-id-switch input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.mx-id-switch span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #13263B;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.mx-id-switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #A0AEC0;
  transition: transform var(--duration-quick) var(--ease-smooth-out), background-color var(--duration-quick) var(--ease-smooth-out);
}
.mx-id-switch input:checked + span {
  background: #C2232A;
  border-color: #E52E36;
}
.mx-id-switch input:checked + span::after {
  transform: translateX(18px);
  background: #FFFFFF;
}
.mx-id-switch input:focus-visible + span {
  outline: 2px solid #E52E36;
  outline-offset: 3px;
}
.mx-id-save {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.mx-id-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 960px) {
  .mx-id-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .mx-sheet-wide { grid-column: 1 / -1; }
}
.mx-sheet-narrow { max-width: 420px; }
.mx-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}
.mx-sheet-head h2 { margin-bottom: 0.3rem; }
.mx-sheet-foot { margin: 0.85rem 0 0; }
.mx-sheet-foot a { color: #FFFFFF; font-weight: 700; }
.mx-sheet-foot a:hover { color: #E52E36; }
.mx-sheet-empty { margin: 0; color: #A0AEC0; }
.mx-session-item .badge { margin-left: 0.4rem; }
.mx-session-item .meta {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: #A0AEC0;
}
@media (max-width: 640px) {
  .mx-id-hero { grid-template-columns: 1fr; }
  .mx-id-save .btn { width: 100%; }
  .mx-id-pane,
  .mx-sheet { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mx-id-veil,
  .mx-portrait-hint,
  .mx-id-switch span::after { transition: none; }
}
.mx-session-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.mx-session-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #13263B;
  border: 1px solid rgba(160, 174, 192, 0.12);
}
.mx-session-item.is-current {
  border-color: rgba(194, 35, 42, 0.5);
}
.btn.is-busy {
  opacity: 0.72;
  pointer-events: none;
}

.portal-body .saas-content > * {
  animation: mxPortalFadeIn 420ms var(--ease-smooth-out) backwards;
}

@keyframes mxPortalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.saas-sidebar {
  background: linear-gradient(180deg, rgba(19, 38, 59, 0.96) 0%, rgba(11, 25, 41, 0.98) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 14px 0 40px rgba(2, 6, 14, 0.42);
}

.saas-brand-mark {
  width: 48px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(194, 35, 42, 0.28));
  transition: transform 320ms var(--ease-bounce);
}
.saas-brand-link:hover .saas-brand-mark {
  transform: scale(1.06) rotate(-2deg);
}

.saas-nav-item {
  position: relative;
  min-height: 44px;
  border-radius: 12px;
  transition:
    color 200ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    transform 260ms var(--ease-bounce),
    box-shadow 260ms ease;
}
.saas-nav-item:hover {
  transform: translateX(3px);
  background: rgba(26, 48, 72, 0.72);
  color: #FFFFFF;
}
.saas-nav-item.is-active {
  background: linear-gradient(90deg, rgba(194, 35, 42, 0.24) 0%, rgba(194, 35, 42, 0.08) 100%);
  border-color: rgba(229, 46, 54, 0.55);
  color: #FFFFFF;
  box-shadow: 0 8px 22px rgba(194, 35, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.saas-nav-item.is-active::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 4px;
  background: #E52E36;
  box-shadow: 0 0 10px #E52E36;
}

.saas-topbar {
  background: rgba(11, 25, 41, 0.84);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  transition: background-color 240ms ease, box-shadow 240ms ease;
}

.portal-body .saas-content > *:nth-child(1) { animation-delay: 20ms; }
.portal-body .saas-content > *:nth-child(2) { animation-delay: 80ms; }
.portal-body .saas-content > *:nth-child(3) { animation-delay: 140ms; }
.portal-body .saas-content > *:nth-child(4) { animation-delay: 200ms; }

/* Cartes KPI & Cartes Portail avec lueur interactive */
.t-kpi-card,
.portal-body .card,
.shift-calendar-day-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  transition:
    transform var(--duration-fast) var(--ease-smooth-out),
    border-color var(--duration-quick) ease,
    box-shadow var(--duration-fast) var(--ease-smooth-out);
}
@media (hover: hover) and (pointer: fine) {
  .t-kpi-card:hover,
  .shift-calendar-day-card:hover {
    transform: translate3d(0, calc(-1 * var(--distance-micro, 4px)), 0);
    border-color: rgba(229, 46, 54, 0.48);
    box-shadow: 0 20px 42px rgba(2, 6, 14, 0.52);
  }
}
.portal-body .card:hover {
  border-color: rgba(229, 46, 54, 0.35);
  box-shadow: 0 18px 38px rgba(2, 6, 14, 0.45);
}

.clean-list-item {
  border-radius: 12px;
  transition: background-color 200ms ease, border-color 200ms ease, transform 240ms var(--ease-bounce);
}
.clean-list-item:hover {
  background: rgba(26, 48, 72, 0.55);
  border-color: rgba(229, 46, 54, 0.32);
  transform: none;
}

/* ── 23. AUDIT RESPONSIVE & CIBLES TACTILES (>= 44x44px Mobile / Tablette) ── */
@media (max-width: 1023px) {
  .portal-body .saas-content {
    padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
  }
  .fast-login-fab {
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    justify-content: center;
    gap: 0;
  }
  .fast-login-fab > span:not(.fast-login-fab-dot) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  body.mx-public .fast-login-widget {
    top: 4.85rem;
    bottom: auto;
    right: 0.7rem;
  }
  body.mx-public .fast-login-popover {
    top: calc(100% + 10px);
    bottom: auto;
    max-height: min(70dvh, 520px);
    overflow: auto;
  }
  .fast-login-widget,
  body.mx-public .fast-login-widget {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: auto;
    display: flex;
    justify-content: flex-end;
    margin: 1rem 1rem calc(6rem + env(safe-area-inset-bottom, 0px));
  }
  body.mx-public .fast-login-widget {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .btn,
  .btn-sm,
  .mx-burger,
  .drawer-toggle,
  .saas-icon-btn,
  .saas-collapse-btn,
  .saas-profile-trigger,
  .filter-pill,
  .mx-tab,
  .mx-nav-link,
  .mobile-bottom-link {
    min-height: 48px;
  }
  .mx-burger,
  .drawer-toggle,
  .saas-icon-btn,
  .saas-collapse-btn {
    min-width: 48px;
  }
  .form-control,
  .form-select,
  .mdx-trigger {
    min-height: 48px;
  }
}

@media (max-width: 768px) {
  .mx-navbar {
    padding-inline: 0.85rem;
  }
  .mx-brand img {
    height: 38px;
    width: auto;
  }
  .mx-actions-cta {
    display: none;
  }
  .section-header,
  .t-dash-header {
    flex-direction: column;
    align-items: stretch !important;
  }
  .clean-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .clean-list-item > div:last-child {
    width: 100%;
    justify-content: flex-start;
  }
  .table-wrap {
    margin-inline: -0.25rem;
    padding-inline: 0.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    box-shadow: inset -18px 0 14px -16px rgba(2, 6, 14, 0.95);
  }
  .checkbox-label,
  .mx-choice {
    min-height: 44px;
  }
}

/* Héros allégé : téléphones, tablettes (même quand la mise en page est celle du bureau),
   écrans tactiles et machines lentes. Le dégradé, la grille et le texte restent. */
@media (max-width: 1400px), (pointer: coarse), (hover: none), (update: slow) {
  .mx-hero .mx-bg-grid,
  .mx-hero .mx-glow,
  .mx-hero .mx-crest-wrap,
  .mx-hero .mx-gradient-text,
  .mx-hero .mx-chip-dot,
  .mx-hero .mx-anim-in,
  .mx-marquee-track {
    animation: none;
  }
  .mx-hero .mx-glow {
    filter: none;
  }
  .mx-hero .mx-glow--navy,
  .mx-hero .mx-glow--navy-r {
    display: none;
  }
  .mx-hero .mx-anim-in {
    filter: none;
    opacity: 1;
  }
  .mx-marquee-track {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
  }
  .mx-marquee-group {
    flex-wrap: wrap;
    justify-content: center;
    padding-inline: 1rem;
  }
  .mx-marquee-group[aria-hidden="true"] {
    display: none;
  }
}
html.mx-lite .mx-hero .mx-bg-grid,
html.mx-lite .mx-hero .mx-glow,
html.mx-lite .mx-hero .mx-ecg-pulse,
html.mx-lite .mx-hero .mx-crest-wrap,
html.mx-lite .mx-hero .mx-gradient-text,
html.mx-lite .mx-hero .mx-chip-dot,
html.mx-lite .mx-hero .mx-anim-in,
html.mx-lite .mx-marquee-track {
  animation: none;
}
html.mx-lite .mx-hero .mx-glow { filter: none; }
html.mx-lite .mx-hero .mx-glow--navy,
html.mx-lite .mx-hero .mx-glow--navy-r { display: none; }
html.mx-lite .mx-hero .mx-ecg-pulse {
  filter: none;
  stroke-dasharray: none;
  opacity: 0.4;
}
html.mx-lite .mx-hero .mx-anim-in { filter: none; opacity: 1; }
html.mx-lite .mx-marquee-track {
  width: auto;
  flex-wrap: wrap;
  justify-content: center;
}
html.mx-lite .mx-marquee-group {
  flex-wrap: wrap;
  justify-content: center;
  padding-inline: 1rem;
}
html.mx-lite .mx-marquee-group[aria-hidden="true"] { display: none; }

/* Le tracé ECG du héros reste en mouvement sur téléphone et tablette. */
@media (max-width: 1400px), (pointer: coarse), (hover: none) {
  .mx-hero .mx-ecg-pulse,
  html.mx-lite .mx-hero .mx-ecg-pulse {
    animation: mxEcg 4.8s linear infinite;
    stroke-dasharray: 140 860;
    filter: drop-shadow(0 0 6px rgba(229, 46, 54, 0.8));
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; }
  .spa-view-stage.is-spa-loading {
    opacity: 0.92;
    filter: none;
    transform: none;
    transition: opacity 80ms ease-out;
  }
  .spa-view-enter {
    animation: none !important;
  }
  .portal-body .saas-content > * { animation: none !important; }
  .mx-marquee-track, .mx-bg-grid, .mx-glow, .mx-ecg-pulse, .mx-heart, .mx-crest-wrap, .mx-gradient-text, .mx-chip-dot, .mx-anim-in { animation: none !important; }
}

/* ── Tableaux de bord : grille égale, cartes 14px, calendrier personnel ── */
.mx-dash {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.mx-dash-head,
.mx-cal-toolbar,
.mx-cal-nav {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.mx-dash-head p {
  margin: 0;
  max-width: 68ch;
  color: #A0AEC0;
}
.mx-dash-actions,
.mx-inline-actions,
.mx-cal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}
.mx-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}
@media (min-width: 1024px) {
  .mx-panels-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.mx-dash .finti-kpi-grid {
  margin-bottom: 0;
}
.mx-dash .card,
.mx-dash .finti-hero-card {
  height: 100%;
  border-radius: 14px;
  border-color: rgba(255, 255, 255, 0.06);
  justify-content: flex-start;
  gap: 1rem;
}
.mx-quote-board {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  min-width: 0;
}
.mx-quote-group h2 {
  margin: 0 0 0.35rem;
}
.mx-quote-lead {
  margin: 0 0 0.85rem;
  color: #A0AEC0;
  max-width: 68ch;
}
.mx-quote-card {
  min-width: 0;
  align-items: flex-start;
}
.mx-quote-card > div {
  min-width: 0;
  flex: 1 1 16rem;
}
.mx-quote-card .meta {
  overflow-wrap: anywhere;
}
.mx-quote-issue {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.85rem;
}
.mx-quote-issue .form-group { margin: 0; min-width: 0; }
@media (min-width: 900px) {
  .mx-quote-issue {
    grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) minmax(0, 1.3fr) auto;
    align-items: end;
  }
}
.mx-dash .clean-list-item:hover {
  transform: none;
}
/* Onglets portail (filter-pill) — ne pas mélanger avec la barre [data-mx-tabs] */
.mx-tabs:not([data-mx-tabs]) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: relative;
  max-width: none;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.mx-tabs:not([data-mx-tabs]) .filter-pill {
  min-height: 44px;
}
/* Segmented control : une seule ligne, défilement horizontal sur petit écran */
[data-mx-tabs].mx-tabs,
.mx-tabs[data-mx-tabs] {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
}
/* FAQ — barre de filtres (pilules à retour à la ligne, recherche centrée) */
.mx-faq-toolbar-card {
  margin-bottom: 2rem;
  padding: 1.25rem 1.15rem;
}
@media (min-width: 768px) {
  .mx-faq-toolbar-card {
    padding: 1.5rem 1.75rem;
  }
}
.mx-faq-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
.mx-faq-toolbar-label {
  margin: 0;
  width: 100%;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #A0AEC0;
}
.mx-faq-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}
.filter-pill--faq {
  min-height: var(--touch-target-min, 48px);
  padding: 0.55rem 1.05rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
  text-align: center;
  text-wrap: balance;
  flex: 1 1 calc(50% - 0.25rem);
  max-width: 100%;
  touch-action: manipulation;
}
@media (min-width: 560px) {
  .filter-pill--faq {
    flex: 0 1 auto;
    max-width: min(100%, 18.5rem);
  }
}
.filter-pill--faq.is-active {
  box-shadow: 0 0 0 2px rgba(229, 46, 54, 0.35);
}
.mx-faq-search {
  width: 100%;
  max-width: 28rem;
  margin-inline: auto;
  min-width: 0;
}
.mx-faq-search-label {
  display: block;
  margin-bottom: 0.45rem;
  text-align: center;
  font-size: 0.88rem;
}
.mx-tab-panel[hidden] {
  display: none;
}
.mx-cal {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .mx-cal {
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
    gap: 1.75rem;
  }
}
.mx-cal-board,
.mx-cal-detail {
  background: #13263B;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.15rem;
  min-width: 0;
}
.mx-cal-title {
  margin: 0;
  font-size: 1.2rem;
  text-transform: capitalize;
}
.mx-cal-weekdays,
.mx-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}
.mx-cal-weekdays {
  margin: 0.85rem 0 0.35rem;
  color: #A0AEC0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}
.mx-cal-day {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.2rem;
  min-height: 48px;
  min-width: 0;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #0B1929;
  color: #FFFFFF;
  cursor: pointer;
  text-align: left;
}
.mx-cal-day:hover,
.mx-cal-day.is-selected {
  border-color: #E52E36;
  background: #1A3048;
}
.mx-cal-day.is-outside {
  opacity: 0.42;
}
.mx-cal-day.is-today .mx-cal-num {
  color: #E52E36;
}
.mx-cal-num {
  font-weight: 800;
  line-height: 1;
}
.mx-cal-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: transparent;
}
.mx-cal-day.is-open .mx-cal-dot,
.mx-cal-legend .mx-cal-dot.is-open { background: #C2232A; }
.mx-cal-day.is-assigned .mx-cal-dot,
.mx-cal-legend .mx-cal-dot.is-assigned { background: #F59E0B; }
.mx-cal-day.is-confirmed .mx-cal-dot,
.mx-cal-legend .mx-cal-dot.is-confirmed { background: #10B981; }
.mx-cal-day.is-history .mx-cal-dot,
.mx-cal-legend .mx-cal-dot.is-history { background: #A0AEC0; }
.mx-cal-day.is-available .mx-cal-dot,
.mx-cal-legend .mx-cal-dot.is-available { background: #FFFFFF; }
.mx-cal-day.is-unavailable .mx-cal-dot { background: #991B1B; }
.mx-cal-chip {
  display: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.68rem;
  color: #A0AEC0;
}
@media (min-width: 768px) {
  .mx-cal-day { min-height: 72px; }
  .mx-cal-chip { display: block; }
}
@media (max-width: 767px) {
  .mx-cal-weekdays { display: none; }
  .mx-cal-grid { grid-template-columns: minmax(0, 1fr); }
  .mx-cal-day {
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    min-height: 48px;
  }
  .mx-cal:not(.is-week) .mx-cal-day.is-outside { display: none; }
  .mx-cal-chip {
    display: inline;
    margin-left: auto;
  }
}
.mx-cal.is-week .mx-cal-day:not(.is-in-week) {
  display: none;
}
.mx-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  color: #A0AEC0;
  font-size: 0.78rem;
}
.mx-cal-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Activation 2FA : carte centrée, QR et clé manuelle */
.mx-totp-stage {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-block: 0.5rem 2rem;
}
.mx-totp-card {
  width: min(440px, 100%);
  margin-inline: auto;
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
}
.mx-totp-card:hover {
  transform: none;
  background: #13263B;
  border-color: var(--color-border);
  box-shadow: var(--shadow-card);
}
.mx-totp-card h1 {
  margin: 0.35rem 0 0.4rem;
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.mx-totp-lead,
.mx-totp-or {
  margin: 0;
  color: #A0AEC0;
  max-width: 36ch;
}
.mx-totp-or {
  margin-top: 0.35rem;
  font-size: 0.84rem;
}
.mx-totp-qr {
  margin: 1rem auto 0.85rem;
  padding: 12px;
  background: #ffffff;
  border-radius: 12px;
  line-height: 0;
}
.mx-totp-qr svg {
  display: block;
  width: 196px;
  height: 196px;
}
.mx-totp-secret {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin: 0.55rem 0 0.75rem;
  padding: 0.8rem 0.85rem;
  width: 100%;
  background: #0B1929;
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
  color: #ffffff;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
}
.mx-totp-form {
  width: 100%;
  margin-top: 1.15rem;
  align-items: stretch;
}
.mx-totp-code {
  text-align: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.32em;
}
.mx-totp-form .btn-primary {
  width: 100%;
}
.mx-totp-card .badge {
  align-self: center;
}
.mx-day-panel { display: none; }
.mx-day-panel.is-active {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mx-day-kicker {
  margin: 0;
  color: #FFFFFF;
  font-weight: 700;
}
.mx-cal-form {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.mx-cal-detail h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.mx-package-grid,
.mx-admin-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.mx-package-grid {
  align-items: stretch;
}
.mx-package-card {
  height: 100%;
  border-radius: 14px;
}
.mx-package-card.is-popular {
  border-color: rgba(194, 35, 42, 0.75);
}
.mx-popular-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #C2232A;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
}
.mx-choice .mx-popular-badge { margin-bottom: 0.45rem; }
.mx-package-audience { color: #A0AEC0; }
.mx-package-list {
  display: flex;
  flex-direction: column;
  margin: 0.85rem 0 0;
  gap: 0.4rem;
  font-size: 0.88rem;
  list-style: none;
  padding: 0;
}
.mx-package-team {
  margin: 0.85rem 0 0;
  color: #FFFFFF;
  font-size: 0.86rem;
  font-weight: 600;
}
.mx-protocol { margin-top: 1.5rem; }
.mx-protocol-title {
  margin: 0;
  color: #FFFFFF;
  font-weight: 700;
}
.mx-protocol-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0.75rem 0;
  padding: 0;
}
.mx-protocol-list li {
  white-space: nowrap;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #FFFFFF;
  font-size: 0.82rem;
}
.mx-protocol-copy {
  max-width: 42rem;
  margin: 0;
  color: #A0AEC0;
}
.mx-addon-list {
  display: grid;
  gap: 0.75rem;
}
.mx-addon {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 0.75rem;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  cursor: pointer;
}
.mx-addon-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}
.mx-addon strong { color: #FFFFFF; }
.mx-addon small {
  display: block;
  color: #A0AEC0;
}
.mx-addon-price {
  grid-column: 2;
  min-width: 0;
  color: #FFFFFF;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.mx-addon-price.is-badge {
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}
.mx-addon:has(input:checked) {
  border-color: rgba(194, 35, 42, 0.75);
}
.mx-addon:has(input:focus-visible) {
  outline: 2px solid #E52E36;
  outline-offset: 2px;
}
.mx-estimate.t-digit-group {
  display: flex;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .mx-package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .mx-addon {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .mx-addon-price { grid-column: auto; }
}
@media (min-width: 1024px) {
  .mx-package-grid,
  .mx-admin-split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
  .mx-package-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mx-admin-split {
    grid-template-columns: minmax(280px, 24rem) minmax(0, 1fr);
    align-items: start;
  }
}
.mx-admin-split .card {
  justify-content: flex-start;
  align-self: start;
  gap: 1rem;
}
.mx-admin-split .card h2 {
  margin: 0 0 0.25rem;
}
.mx-admin-options-table .data-table td:last-child {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}
.mx-admin-options-table .data-table td:last-child .btn {
  margin-left: 0.15rem;
}
.mx-admin-options-table .data-table td:nth-child(2) {
  white-space: nowrap;
  padding-right: 1rem;
}
.mx-inline-form {
  display: inline;
  margin: 0;
}

:root {
  --digit-dur: 500ms;
  --digit-distance: 8px;
  --digit-stagger: 70ms;
  --digit-blur: 2px;
  --digit-ease: cubic-bezier(0.34, 1.45, 0.64, 1);
  --digit-dir-x: 0;
  --digit-dir-y: 1;
}
@keyframes t-digit-pop-in {
  0%   {
    transform: translate(
      calc(var(--digit-distance) * var(--digit-dir-x)),
      calc(var(--digit-distance) * var(--digit-dir-y))
    );
    opacity: 0;
    filter: blur(var(--digit-blur));
  }
  100% { transform: translate(0, 0); opacity: 1; filter: blur(0); }
}
.t-digit-group {
  display: inline-flex;
  align-items: baseline;
}
.t-digit {
  display: inline-block;
  will-change: transform, opacity, filter;
}
.t-digit-group.is-animating .t-digit {
  animation: t-digit-pop-in var(--digit-dur) var(--digit-ease) both;
}
.t-digit-group.is-animating .t-digit[data-stagger="1"] {
  animation-delay: var(--digit-stagger);
}
.t-digit-group.is-animating .t-digit[data-stagger="2"] {
  animation-delay: calc(var(--digit-stagger) * 2);
}
@media (prefers-reduced-motion: reduce) {
  .t-digit-group .t-digit { animation: none !important; }
}

.mx-package-card {
  container-type: inline-size;
}
.mx-package-card--catalog .mx-package-audience {
  margin-bottom: 0.65rem;
}
.mx-package-card--catalog .mx-package-staff-floor {
  margin-top: 0;
  margin-bottom: 0.85rem;
}
.mx-package-card--catalog .mx-flag-group {
  margin-top: 0.65rem;
}
.mx-package-card--catalog .mx-flag-group:first-of-type {
  margin-top: 0;
}
.mx-package-card p { flex: 0 0 auto; }
.mx-package-card h3 {
  margin: 0.85rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #FFFFFF;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.mx-package-card h3 a {
  color: inherit;
  text-decoration: none;
}
.mx-package-card h3 a:hover { color: #E52E36; }
.mx-package-card .mx-package-audience {
  font-size: 0.92rem;
  line-height: 1.5;
}
.mx-package-card .mx-service-meta {
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 1rem;
}
.mx-package-card .mx-price { min-width: 0; overflow-wrap: anywhere; }
.mx-package-card .mx-price-value {
  font-size: 1.5rem;
  line-height: 1.2;
}
.mx-package-card.is-client-simple .mx-price-value {
  font-size: clamp(1.65rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
}
.mx-package-card .mx-price-note {
  display: block;
  margin-top: 0.35rem;
  color: #A0AEC0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
}
.mx-package-count {
  margin: 0.85rem 0 0;
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
}
.mx-package-cta {
  width: 100%;
  min-height: 44px;
  justify-content: center;
  white-space: normal;
  text-align: center;
}
.mx-flag-group {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: #0B1929;
}
.mx-package-card .mx-flag-group {
  flex: 0 0 auto;
}
.mx-flag-group.is-off {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.mx-flag-group .mx-flag-kicker { margin: 0 0 0.5rem; }
.mx-flag-kicker {
  margin: 1rem 0 0.4rem;
  color: #A0AEC0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mx-flag-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mx-flag {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.4rem;
  align-items: start;
  min-width: 0;
}
.mx-flag-name {
  min-width: 0;
  overflow-wrap: break-word;
  color: #FFFFFF;
  font-size: 0.82rem;
  line-height: 1.35;
}
.mx-flag.is-off .mx-flag-name,
.mx-flag.is-off .mx-flag-icon { color: #A0AEC0; }
.mx-flag.is-on .mx-flag-icon {
  width: 1rem;
  height: 1rem;
  margin-top: 0.05rem;
  border-radius: 999px;
  background: #C2232A;
  color: #FFFFFF;
  align-items: center;
  justify-content: center;
}
.mx-flag-icon { display: inline-flex; margin-top: 0.1rem; }
.mx-flag-icon svg { width: 14px; height: 14px; }
.mx-flag.is-on .mx-flag-icon svg { width: 10px; height: 10px; }
@container (min-width: 220px) {
  .mx-flag-list {
    display: block;
    columns: 2;
    column-gap: 0.85rem;
    column-fill: balance;
  }
  .mx-flag-list > .mx-flag {
    margin-bottom: 0.4rem;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
  }
}
.mx-immobilisation {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #13263B;
  color: #FFFFFF;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.mx-addon-cat {
  margin: 1.25rem 0 0.75rem;
  color: #FFFFFF;
  font-size: 1rem;
}
.mx-addon-catalog {
  display: grid;
  gap: 0.85rem;
  align-items: stretch;
}
.mx-addon-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  border-radius: 14px;
  min-width: 0;
  padding: 1.15rem 1.2rem 1.05rem;
}
.mx-addon-card-top {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}
.mx-addon-unit {
  margin: 0;
  color: #FCA5A5;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mx-addon-card h4 {
  margin: 0;
  color: #FFFFFF;
  font-size: 1.12rem;
  line-height: 1.3;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.mx-addon-card p {
  margin: 0;
  color: #CBD5E1;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.mx-addon-includes {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.mx-addon-includes.mx-checklist li {
  font-size: 0.84rem;
}
.mx-addon-card-price {
  margin: auto 0 0;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-size: 1.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.mx-addon-card-price span { color: #A0AEC0; font-weight: 600; font-size: 0.85rem; }
.mx-addon-copy .mx-addon-includes {
  margin-top: 0.35rem;
}
.mx-addon-copy .mx-addon-includes li {
  font-size: 0.78rem;
  color: #CBD5E1;
}
.mx-mark-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}
.mx-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #FFFFFF;
  font-size: 0.78rem;
  white-space: nowrap;
}
.mx-mark.is-off { color: #A0AEC0; }
.mx-addon { position: relative; min-height: 44px; }
.mx-addon.is-included { cursor: default; }
.mx-addon-copy { min-width: 0; overflow-wrap: anywhere; }
.mx-summary-flags { margin-top: 1rem; }
.mx-summary-list [data-sum="options"] {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}
.mx-admin-addons { border: 0; margin: 0; padding: 0; }
.mx-admin-addons legend { padding: 0; }
.mx-admin-cat { margin: 0.85rem 0 0.35rem; color: #FFFFFF; font-weight: 700; }
.mx-link-table th,
.mx-link-table td { white-space: nowrap; }
.mx-link-table th:first-child,
.mx-link-table td:first-child {
  white-space: normal;
  min-width: 10rem;
  overflow-wrap: anywhere;
}
.mx-matrix-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .mx-addon-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

:root {
  --check-box: 150ms;
  --check-draw: 350ms;
  --check-delay: 0ms;
  --check-uncheck: 150ms;
  --check-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.t-check { transition: background var(--check-box) var(--check-ease), box-shadow var(--check-box) var(--check-ease); }
.t-check svg path { stroke-dasharray: var(--check-len, 15); stroke-dashoffset: var(--check-len, 15); transition: stroke-dashoffset var(--check-uncheck) var(--check-ease); }
.t-check[aria-checked="true"] svg path { stroke-dashoffset: 0; transition: stroke-dashoffset var(--check-draw) var(--check-ease) var(--check-delay); }
@media (prefers-reduced-motion: reduce) { .t-check, .t-check svg path { transition: none !important; } }
.t-check {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border: 1.5px solid #A0AEC0;
  border-radius: 4px;
  background: transparent;
}
.t-check svg { width: 0.8rem; height: 0.8rem; }
.t-check svg path { fill: none; stroke: #FFFFFF; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.t-check[aria-checked="true"] { background: #C2232A; border-color: #C2232A; }

/* ── 25. Architecture Unifiée des Portails MÉDAXIA (Accueil Résumé, Rapports à Cases, Matériel, Répertoire) ── */
.saas-sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.85rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.saas-footer-form {
  margin: 0;
}
.saas-footer-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #13263B;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--duration-quick) var(--ease-smooth-out),
              border-color var(--duration-quick) var(--ease-smooth-out),
              color var(--duration-quick) var(--ease-smooth-out);
}
.saas-footer-btn:hover {
  background: #1A3048;
  border-color: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}
.saas-footer-btn.is-logout {
  background: rgba(194, 35, 42, 0.14);
  border-color: rgba(194, 35, 42, 0.45);
  color: #FFFFFF;
}
.saas-footer-btn.is-logout:hover {
  background: #C2232A;
  border-color: #E52E36;
}
@media (min-width: 1024px) {
  .saas-layout.is-collapsed .saas-footer-btn {
    justify-content: center;
    padding-inline: 0;
  }
}

.portal-body .grid-2,
.portal-body .mx-panels-2 {
  align-items: start;
}

.mx-portal-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 640px) {
  .mx-portal-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .mx-portal-hub-grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .mx-portal-hub-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mx-hub-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: #13263B;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  text-decoration: none;
  transition: background-color var(--duration-quick) var(--ease-smooth-out),
              border-color var(--duration-quick) var(--ease-smooth-out),
              transform var(--duration-quick) var(--ease-smooth-out);
}
.mx-hub-card:hover {
  background: #1A3048;
  border-color: #E52E36;
  transform: translateY(-2px);
}
.mx-hub-card.is-primary {
  border-left: 4px solid #C2232A;
}
.mx-hub-card-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.mx-hub-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #1A3048;
  color: #FFFFFF;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.mx-hub-card.is-primary .mx-hub-icon {
  background: rgba(194, 35, 42, 0.2);
  border-color: rgba(194, 35, 42, 0.5);
}
.mx-hub-text {
  min-width: 0;
}
.mx-hub-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: #FFFFFF;
  line-height: 1.25;
}
.mx-hub-text span {
  display: block;
  font-size: 0.82rem;
  color: #A0AEC0;
  margin-top: 0.15rem;
}
.mx-hub-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 0.6rem;
  border-radius: 999px;
  background: #0B1929;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.mx-hub-badge.is-alert {
  background: #C2232A;
  border-color: #E52E36;
}

.mx-summary-banner {
  background: #13263B;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #C2232A;
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.mx-summary-banner-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.mx-crew-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.mx-crew-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
  background: #0B1929;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-size: 0.84rem;
}
.mx-crew-pill small {
  color: #A0AEC0;
  font-size: 0.76rem;
}

.mx-shift-briefs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.mx-shift-briefs > .mx-dash-head p {
  margin: 0.35rem 0 0;
  color: #A0AEC0;
  max-width: 68ch;
}
.mx-shift-brief-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
.card.mx-duty-card {
  padding: 1.15rem 1.25rem 1rem;
  gap: 0.85rem;
  min-width: 0;
  background: #13263B;
  box-shadow: none;
}
.card.mx-duty-card:hover {
  transform: none;
  background: #13263B;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}
.mx-duty-card.is-due {
  border-color: rgba(229, 46, 54, 0.55);
}
.mx-duty-head { min-width: 0; }
.mx-duty-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  margin: 0;
  color: #A0AEC0;
  font-size: 0.75rem;
  font-weight: 650;
}
.mx-duty-live {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #C2232A;
  box-shadow: 0 0 0 4px rgba(194, 35, 42, 0.22);
  flex-shrink: 0;
}
.mx-duty-card.is-due .mx-duty-live {
  animation: pulseRedGlow 1.8s ease-in-out infinite;
}
.mx-duty-state {
  color: #FFFFFF;
  font-weight: 650;
}
.mx-duty-state.is-hot { color: #FFB4B6; }
.mx-duty-head h3 {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-wrap: balance;
}
.mx-duty-when {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.1rem;
  margin: 0.75rem 0 0;
}
.mx-duty-date {
  color: #A0AEC0;
  font-size: 0.92rem;
}
.mx-duty-clock {
  font-variant-numeric: tabular-nums;
  font-size: 0.98rem;
  font-weight: 650;
  color: #FFFFFF;
  line-height: 1.2;
}
.mx-duty-clock em {
  font-style: normal;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0;
  color: #A0AEC0;
  margin: 0 0.2rem;
}
.mx-duty-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem 1.75rem;
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.mx-duty-facts div {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  gap: 0.2rem 0.75rem;
  align-items: baseline;
  min-width: 0;
}
.mx-duty-facts dt {
  margin: 0;
  color: #A0AEC0;
  font-size: 0.75rem;
  font-weight: 650;
}
.mx-duty-facts dd {
  margin: 0;
  color: #FFFFFF;
  font-size: 0.98rem;
  line-height: 1.35;
  overflow-wrap: break-word;
}
.mx-duty-facts small {
  display: block;
  margin-top: 0.15rem;
  color: #A0AEC0;
  font-size: 0.82rem;
}
.mx-duty-note {
  margin: 0;
  padding-top: 0.85rem;
  background: transparent;
  color: #FFFFFF;
  line-height: 1.45;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.mx-duty-note span {
  display: block;
  margin-bottom: 0.2rem;
  color: #A0AEC0;
  font-size: 0.75rem;
  font-weight: 650;
}
.mx-duty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 0.15rem;
}
.mx-duty-actions:empty {
  display: none;
}

.mx-shift-section-label {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #A0AEC0;
}
.mx-shift-response {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: none;
}
.mx-shift-response-hint {
  margin: 0 0 0.65rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: #A0AEC0;
}
.mx-shift-response-form {
  margin: 0;
}
.mx-shift-response-note {
  margin-bottom: 0.65rem;
  font-size: 0.84rem;
  color: #A0AEC0;
}
.mx-shift-response-note summary {
  cursor: pointer;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
}
.mx-shift-response-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: flex-end;
}
.mx-shift-response.is-compact .mx-shift-response-actions,
.mx-duty-card .mx-shift-response-actions {
  justify-content: flex-start;
}
.clean-list-item .mx-shift-response {
  padding: 0;
  border-top: 0;
  background: none;
  margin-left: auto;
}
@media (max-width: 640px) {
  .mx-shift-response-actions .btn {
    flex: 1 1 calc(50% - 0.3rem);
    min-height: 48px;
  }
  .clean-list-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .clean-list-item .mx-shift-response-actions .btn {
    flex: 1 1 auto;
  }
}
@media (min-width: 760px) {
  .mx-duty-facts {
    grid-template-columns: 1fr 1fr;
  }
  .mx-duty-facts .is-wide {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .mx-duty-actions .btn {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mx-duty-card.is-due .mx-duty-live {
    animation: none;
  }
}

/* Cases à cocher tactiles pour les 4 types de rapports & vérifications matériel */
.mx-report-type-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
  .mx-report-type-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.mx-report-type-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 58px;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #13263B;
  color: #FFFFFF;
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: background-color var(--duration-quick) var(--ease-smooth-out),
              border-color var(--duration-quick) var(--ease-smooth-out),
              box-shadow var(--duration-fast) var(--ease-smooth-out),
              transform var(--duration-fast) var(--ease-smooth-out);
}
.mx-report-type-btn strong {
  font-size: 0.92rem;
  color: #FFFFFF;
}
.mx-report-type-btn small {
  font-size: 0.76rem;
  color: #A0AEC0;
  margin-top: 0.1rem;
}
.mx-report-type-btn:hover {
  background: #1A3048;
  border-color: rgba(229, 46, 54, 0.5);
}
.mx-report-type-btn.is-active {
  background: #1A3048;
  border-color: #C2232A;
  box-shadow: 0 0 0 2px rgba(194, 35, 42, 0.35);
  transform: translateY(-2px);
}

.mx-check-fieldset {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: #0B1929;
  padding: 2.75rem 1.1rem 1.1rem;
  margin: 0;
  min-inline-size: 0;
}
.mx-check-fieldset > legend {
  position: absolute;
  top: 0.95rem;
  left: 1.1rem;
  right: 1.1rem;
  display: block;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
  overflow-wrap: break-word;
  background: transparent;
}
.form-row > .mx-check-fieldset {
  height: 100%;
}
details.mx-check-fieldset {
  padding: 0.85rem 1.1rem;
}
details.mx-check-fieldset > summary {
  padding: 0.15rem 0;
  line-height: 1.4;
}
.mx-check-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
  margin: 0;
  align-items: stretch;
}
@media (min-width: 560px) {
  .mx-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.65rem;
    row-gap: 0.6rem;
  }
}
.mx-check-grid--stack {
  grid-template-columns: minmax(0, 1fr);
}
.mx-check-grid--triple {
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 480px) {
  .mx-check-grid--triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.mx-check-pill {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  box-sizing: border-box;
  min-height: var(--touch-target-min, 48px);
  height: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #13263B;
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--duration-quick) var(--ease-smooth-out),
              border-color var(--duration-quick) var(--ease-smooth-out);
}
.mx-check-pill > span {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.35;
  overflow-wrap: break-word;
}
.mx-check-pill:hover {
  background: #1A3048;
}
.mx-check-pill input[type="checkbox"],
.mx-check-pill input[type="radio"] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: #C2232A;
  flex: 0 0 1.15rem;
  align-self: center;
}
.mx-check-pill:has(input:checked) {
  background: rgba(194, 35, 42, 0.18);
  border-color: #E52E36;
}

/* Répertoire du personnel & coéquipiers */
.mx-directory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
@media (min-width: 700px) {
  .mx-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1140px) {
  .mx-directory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.mx-directory-card {
  background: #13263B;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mx-directory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}
.mx-directory-actions .btn {
  flex: 1 1 auto;
  min-height: 44px;
  justify-content: center;
}

@keyframes mxPaneReveal {
  from {
    opacity: 0;
    transform: translateY(var(--distance-small, 6px));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
[data-view-pane].is-pane-entering {
  animation: mxPaneReveal var(--duration-fast, 250ms) var(--ease-smooth-out) both;
}
.saas-footer-btn:focus-visible,
.mx-hub-card:focus-visible,
.mx-report-type-btn:focus-visible,
.mx-check-pill:focus-within {
  outline: 2px solid #E52E36;
  outline-offset: 2px;
}
.t-modal-backdrop,
.saas-sidebar-scroll {
  overscroll-behavior: contain;
}
.mx-hub-card,
.mx-report-type-btn,
.mx-check-pill,
.saas-footer-btn {
  touch-action: manipulation;
}
@media (prefers-reduced-motion: reduce) {
  .mx-hub-card,
  .mx-report-type-btn,
  .mx-check-pill,
  .saas-footer-btn,
  .mx-seg-indicator,
  [data-view-pane].is-pane-entering {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* Téléphone et tablette : le toucher ne laisse pas un survol collé, le clavier ne zoome pas, l’encoche est respectée. */
.mx-header {
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
}
.mx-header.is-scrolled {
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
}
.saas-topbar {
  padding-top: calc(0.95rem + env(safe-area-inset-top, 0px));
}
@media (max-width: 1023px) {
  .saas-topbar {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.7rem;
    padding-top: calc(0.35rem + env(safe-area-inset-top, 0px));
  }
  .saas-topbar-left {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.4rem;
  }
  .saas-breadcrumbs {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 0;
  }
  .saas-breadcrumbs a,
  .saas-breadcrumbs > span {
    display: none;
  }
  .saas-breadcrumbs strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
  }
  .saas-topbar-right {
    flex: 0 0 auto;
    gap: 0.35rem;
  }
}
.saas-sidebar {
  padding-top: calc(1.35rem + env(safe-area-inset-top, 0px));
}
.mobile-drawer-panel {
  padding-top: calc(var(--space-5) + env(safe-area-inset-top, 0px));
  padding-bottom: calc(var(--space-5) + env(safe-area-inset-bottom, 0px));
}
.mdx-cookie-banner {
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}
button,
.btn,
.saas-nav-item,
.mobile-bottom-link,
.mx-nav-link,
.mx-chip,
.filter-pill,
.mdx-trigger,
.mdx-option,
.mx-choice,
.saas-footer-btn {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.saas-nav-item:active,
.mobile-bottom-link:active,
.mx-nav-link:active,
.mobile-drawer-links a:active,
.mdx-trigger:active,
.mx-choice:active {
  transform: scale(0.97);
  transition: transform 100ms ease-out;
}
@media (prefers-reduced-transparency: reduce) {
  .mx-header::before,
  .saas-topbar,
  .portal-mobile-bottom-nav,
  .mdx-cookie-banner,
  .portal-sidebar-backdrop,
  .mobile-drawer {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .saas-topbar,
  .portal-mobile-bottom-nav,
  .mdx-cookie-banner {
    background: #0B1929;
  }
}
@media (pointer: coarse) {
  input,
  textarea,
  select,
  .form-control,
  .form-textarea,
  .form-select,
  .saas-search-input {
    font-size: 16px;
  }
  .mx-social,
  .footer-social-btn {
    width: 44px;
    height: 44px;
  }
  .mx-footer-links a,
  .mx-footer-linkbtn {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .checkbox-label,
  .form-check {
    min-height: 44px;
    align-items: center;
  }
}
@media (hover: none), (pointer: coarse) {
  .brand-link:hover img,
  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-outline:hover,
  .btn-danger:hover,
  .btn-ghost:hover,
  .card:hover,
  .stat-tile:hover,
  .service-Interactive-card:hover,
  .pillar-list-item:hover,
  .portal-nav-link:hover,
  .footer-list a:hover,
  .footer-link-btn:hover,
  .footer-social-btn:hover,
  .mx-brand:hover img,
  .btn:hover .btn-arrow,
  .clean-list-item:hover,
  .mx-hub-card:hover,
  .saas-nav-item:hover,
  .mx-footer-links a:hover::after,
  .mx-footer-linkbtn:hover::after {
    transform: none;
  }
}

/* Feuille de garde — un chiffre ou une heure mène, le reste est un registre. */
.mx-board-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 238, 246, 0.52);
}
.mx-board-head,
.mx-dash .mx-dash-head {
  align-items: flex-end;
}
.mx-dash h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}
.mx-board-alert {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(194, 35, 42, 0.12);
  box-shadow: inset 3px 0 0 #C2232A;
}
.mx-board-alert p {
  margin: 0;
  max-width: 62ch;
}
.mx-dispatch {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 22px 22px 20px;
  border-radius: 20px;
  background: rgba(19, 38, 59, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.mx-dispatch-main {
  min-width: 0;
  flex: 1 1 16rem;
}
.mx-dispatch-clock {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  color: #F4F7FB;
}
.mx-dispatch-clock span {
  margin-left: 10px;
  font-size: 0.38em;
  font-weight: 550;
  letter-spacing: 0;
  color: rgba(232, 238, 246, 0.55);
}
.mx-dispatch h2 {
  margin: 10px 0 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.mx-dispatch-place,
.mx-dispatch-note {
  margin: 6px 0 0;
  max-width: 62ch;
  color: rgba(232, 238, 246, 0.62);
  font-size: 14px;
  line-height: 1.45;
}
.mx-dispatch-note {
  color: #F4C7C9;
}
.mx-ledger {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mx-ledger > div {
  min-width: 0;
  padding: 14px 16px 14px 0;
}
.mx-ledger > div + div {
  padding-left: 16px;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.08);
}
.mx-ledger dt {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 238, 246, 0.48);
}
.mx-ledger dt a {
  color: inherit;
  text-decoration: none;
}
.mx-ledger dd {
  margin: 4px 0 0;
  font-size: clamp(18px, 4.2vw, 22px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.mx-ledger dd.is-due {
  color: #F0A3A6;
}
.mx-dispatch-follow {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mx-dash .mx-portal-hub-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 4px 4px 12px;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 18px;
}
.mx-dash .mx-hub-card,
.mx-dash .mx-hub-card.is-primary {
  background: transparent;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  padding: 12px 8px;
  min-height: 56px;
}
.mx-dash .mx-hub-card:hover,
.mx-dash .mx-hub-card:focus-visible {
  transform: none;
  background: rgba(255, 255, 255, 0.045);
}
.mx-dash .mx-hub-card:active {
  transform: scale(0.985);
}
.mx-dash .mx-jump .mx-portal-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 720px) {
  .mx-dash .mx-jump .mx-portal-hub-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.mx-dash .mx-jump .mx-hub-card {
  justify-content: flex-start;
  min-height: 44px;
  padding: 10px 12px;
}
.mx-dash .mx-hub-card > strong {
  font-weight: 600;
  line-height: 1.3;
}
.mx-follow-label {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
}
.mx-row-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.mx-row-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
}
.mx-row-actions form {
  margin: 0;
}
.mx-dash .mx-jump > h2,
.mx-dash > section > h2 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 238, 246, 0.52);
}
@media (max-width: 640px) {
  .mx-ledger {
    grid-template-columns: 1fr;
  }
  .mx-ledger > div + div {
    padding-left: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  .mx-dash h1 {
    font-size: 24px;
  }
}
.mx-hub-card,
.mx-hub-card-main {
  align-items: flex-start;
}
.mx-hub-text strong,
.mx-hub-text span,
.mx-dispatch-place,
.mx-dispatch-note,
.mx-board-alert p,
.mx-crew-pill,
.mx-crew-pill small,
.mx-follow-row p {
  overflow-wrap: anywhere;
}
.mx-hub-badge {
  align-self: center;
  white-space: nowrap;
}
.mx-crew-pill {
  align-items: flex-start;
  flex-direction: column;
  max-width: 100%;
  min-width: 0;
}
.mx-follow-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mx-follow-row p {
  margin: 0;
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
}
.mx-follow-row .btn {
  flex-shrink: 0;
}
.mx-dash-head > div:first-child {
  min-width: 0;
  flex: 1 1 12rem;
}
.mx-data-toggle {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: #3a3a3a;
  font-family: system-ui, sans-serif;
  font-size: 12px;
}
.mx-data-toggle a {
  color: #ddd;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  min-height: 32px;
}
.mx-data-toggle a.is-on {
  background: #fff;
  color: #111;
}
@media (max-width: 1023px) {
  .mx-data-toggle {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
  .mx-dash-actions .btn {
    min-height: 44px;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .mx-dispatch {
    background: #13263B;
    backdrop-filter: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mx-dash .mx-hub-card:active {
    transform: none;
  }
}

/* Portail entier : la navigation sert le contenu, le rouge n’est qu’un repère. */
.portal-body .saas-sidebar {
  background: #0B1929;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.portal-body .saas-brand-mark {
  filter: none;
}
.portal-body .saas-brand-link:hover .saas-brand-mark {
  transform: none;
}
.portal-body .saas-nav-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(232, 238, 246, 0.42);
}
.portal-body .saas-nav-item {
  border-radius: 8px;
  transform: none;
  box-shadow: none;
}
.portal-body .saas-nav-item:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.04);
}
.portal-body .saas-nav-item.is-active {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: #F4F7FB;
}
.portal-body .saas-nav-item.is-active::before {
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: #C2232A;
  box-shadow: none;
}
.portal-body .saas-topbar {
  background: rgba(11, 25, 41, 0.92);
  box-shadow: none;
}
.portal-body .saas-content > * {
  animation: none;
}
.portal-body .section-header,
.portal-body .mx-dash-head {
  align-items: flex-end;
  margin-bottom: 8px;
}
.portal-body .section-header h1,
.portal-body .mx-dash h1,
.portal-body .mx-account h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}
.portal-body .eyebrow,
.portal-body .section-header .eyebrow {
  display: block;
  width: fit-content;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(232, 238, 246, 0.52);
}
.portal-body .eyebrow::before {
  display: none;
}
.portal-body .section-header p,
.portal-body .mx-dash-head p {
  margin: 8px 0 0;
  max-width: 62ch;
  color: rgba(232, 238, 246, 0.62);
  font-size: 14px;
  line-height: 1.45;
}
.portal-body .finti-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  margin: 8px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.portal-body .finti-hero-card,
.portal-body .finti-card-navy,
.portal-body .finti-card-red,
.portal-body .finti-card-slate,
.portal-body .finti-card-amber {
  min-height: 0;
  padding: 14px 16px 14px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  gap: 4px;
}
.portal-body .finti-hero-card::after,
.portal-body .finti-hero-card:hover {
  transform: none;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.portal-body .finti-hero-card::after { display: none; }
.portal-body .finti-hero-card + .finti-hero-card {
  padding-left: 16px;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.08);
}
.portal-body .finti-kpi-label,
.portal-body .finti-card-red .finti-kpi-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(232, 238, 246, 0.48);
}
.portal-body .finti-kpi-value,
.portal-body .finti-card-red .finti-kpi-value {
  margin: 4px 0 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #F4F7FB;
}
.portal-body .finti-kpi-sub,
.portal-body .finti-card-red .finti-kpi-sub {
  color: rgba(232, 238, 246, 0.55);
}
.portal-body .card,
.portal-body .card-cut {
  background: rgba(255, 255, 255, 0.03);
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}
.portal-body .card:hover,
.portal-body .card-cut:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.045);
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.portal-body .clean-list-item:hover {
  transform: none;
  border-color: transparent;
}
.portal-body .data-table {
  font-variant-numeric: tabular-nums;
}
.portal-body .data-table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 238, 246, 0.48);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.portal-body .data-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.portal-body .form-control,
.portal-body .form-select,
.portal-body .form-textarea,
.portal-body .saas-search-input {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.portal-body .form-control:focus,
.portal-body .form-select:focus,
.portal-body .form-textarea:focus,
.portal-body .saas-search-input:focus {
  border-color: rgba(244, 247, 251, 0.45);
  outline: 2px solid rgba(194, 35, 42, 0.45);
  outline-offset: 2px;
}
.portal-body .mx-quote-group h2,
.portal-body .card > h2,
.portal-body .card-header h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.portal-body .btn:active {
  transform: scale(0.97);
}
@media (max-width: 720px) {
  .portal-body .finti-kpi-grid { grid-template-columns: 1fr; }
  .portal-body .finti-hero-card + .finti-hero-card {
    padding-left: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  .portal-body .section-header h1,
  .portal-body .mx-dash h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-body .btn:active { transform: none; }
}

.ops-body {
  margin: 0;
  min-height: 100dvh;
  background: #0B1929;
  color: #FFFFFF;
  overscroll-behavior: none;
}
.ops-body.is-gate .ops-shell {
  width: min(24rem, calc(100% - 2rem));
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
}
.ops-gate-toggle {
  align-self: flex-start;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #A0AEC0;
  font: inherit;
  font-size: 0.9rem;
}
.ops-gate-brand {
  width: 9.5rem;
  height: auto;
  margin: 0 0 1.5rem;
}
.ops-gate h1 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.15;
  text-wrap: balance;
}
.ops-gate-lead {
  margin: 0.5rem 0 1.5rem;
  max-width: 28rem;
  color: #A0AEC0;
}
.ops-gate .ops-form { max-width: 24rem; }
.ops-gate-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
.ops-gate-forgot {
  color: #FF6B70;
  font-size: 0.9rem;
}
.ops-field-error {
  margin: 0.35rem 0 0;
  color: #FF6B70;
  font-size: 0.9rem;
}
.ops-shell {
  width: min(40rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: calc(1rem + env(safe-area-inset-top, 0px)) 0 calc(6.5rem + env(safe-area-inset-bottom, 0px));
  scroll-padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
}
.ops-top h1,
.ops-panel h2,
.ops-lock h2 {
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.ops-kicker,
.ops-clock-label {
  margin: 0;
  color: #A0AEC0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ops-top-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
@media (max-width: 640px) {
  .ops-top-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
.ops-top h1 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.ops-leave {
  flex-shrink: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #FFFFFF;
  touch-action: manipulation;
}
.ops-clock {
  margin: 1.25rem 0 0;
  font-size: clamp(3rem, 14vw, 4.5rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ops-facts {
  margin: 1rem 0;
}
.ops-facts div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.35rem 0.75rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  align-items: baseline;
}
.ops-facts dt {
  color: #A0AEC0;
  font-size: 0.8rem;
}
.ops-facts dd {
  margin: 0;
  overflow-wrap: break-word;
}
.ops-panel:not([hidden]) {
  animation: opsPanelIn 180ms var(--ease-smooth-out);
}
@keyframes opsPanelIn {
  from { opacity: 0; }
}
.ops-note,
.ops-status {
  color: #FFFFFF;
  line-height: 1.45;
}
.ops-note strong { font-weight: 650; }
.ops-form { display: flex; flex-direction: column; gap: 0.75rem; }
.ops-label { font-weight: 650; }
.ops-field {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: #13263B;
  color: #FFFFFF;
  font: inherit;
  font-size: 16px;
}
.ops-check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  min-height: 44px;
}
.ops-check input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; }
.ops-kit {
  margin: 0;
  padding: 0.75rem 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.ops-kit legend { font-weight: 650; padding: 0; }
.ops-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}
.ops-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 48px;
  padding: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: #13263B;
  text-align: center;
}
.ops-choice:has(:checked) {
  border-color: #FFFFFF;
  background: #1A3048;
}
.ops-choice input { width: 1.1rem; height: 1.1rem; }
.ops-btn,
.ops-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #1A3048;
  color: #FFFFFF;
  font: inherit;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  padding: 0.75rem 1rem;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 120ms ease-out, background-color 120ms ease-out;
}
.ops-btn { width: 100%; max-width: 24rem; }
.ops-btn-primary { background: #C2232A; border-color: #C2232A; }
.ops-btn-danger { background: transparent; color: #FFFFFF; border-color: #C2232A; }
.ops-btn:active,
.ops-tab:active { transform: scale(0.97); }
.ops-btn:focus-visible,
.ops-tab:focus-visible,
.ops-field:focus-visible,
.ops-leave:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}
.ops-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  background: rgba(11, 25, 41, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 20;
}
.ops-tab[aria-current="page"] { background: #C2232A; border-color: #C2232A; }
.ops-lock { padding-top: 2rem; }
.ops-lock h2 { font-size: 1.8rem; letter-spacing: -0.03em; }
.ops-lock-meta { color: #A0AEC0; }
@media (hover: hover) and (pointer: fine) {
  .ops-btn:hover,
  .ops-tab:hover { background: #243B58; }
  .ops-btn-primary:hover,
  .ops-tab[aria-current="page"]:hover { background: #a61d23; }
}
@media (prefers-reduced-motion: reduce) {
  .ops-btn,
  .ops-tab { transition: none; }
  .ops-btn:active,
  .ops-tab:active { transform: none; }
  .ops-panel:not([hidden]) { animation: none; }
}


