/* ========= Thème Navy + Orange (propre, moderne) ========= */
:root {
  --navy-900: #0b1f3b; /* bleu marine profond */
  --navy-800: #12284a;
  --navy-700: #1a345e;
  --navy-600: #24406f;

  --orange-500: #ff7a00; /* orange saturé */
  --orange-600: #ff8c1a;
  --orange-700: #e67000;

  --text-on-navy: rgba(255, 255, 255, 0.92);
  --text-on-navy-dim: rgba(255, 255, 255, 0.75);
  --focus-ring: rgba(255, 122, 0, 0.45);
}

/* Navbar */
.custom-navbar {
  background: linear-gradient(
    90deg,
    var(--navy-900) 0%,
    var(--navy-800) 60%,
    var(--navy-700) 100%
  );
  --bs-navbar-brand-color: var(--text-on-navy);
  --bs-navbar-color: var(--text-on-navy-dim);
  --bs-navbar-hover-color: #fff;
  --bs-navbar-active-color: #fff;
  --bs-navbar-toggler-border-color: transparent;
}
.custom-navbar .navbar-brand {
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text-on-navy);
}
.custom-navbar .navbar-toggler-icon {
  filter: brightness(1.2) contrast(1.1);
}

/* Logo bloc (carré arrondi) */
.brand-logo {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--orange-500);
  color: var(--navy-900);
  border-radius: 0.6rem;
  font-weight: 800;
  line-height: 1;
  font-size: 0.95rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.25);
}
.brand-text {
  color: var(--text-on-navy);
}

/* Liens du menu */
.custom-navbar .nav-link {
  color: var(--text-on-navy-dim);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: color 0.15s ease, background-color 0.15s ease;
  position: relative;
}
.custom-navbar .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.custom-navbar .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.custom-navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -6px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange-500);
}

/* Bouton Déconnexion */
.btn-logout {
  --btn-color: var(--orange-500);
  color: var(--btn-color);
  border: 1px solid var(--btn-color);
  padding: 0.45rem 0.75rem;
  border-radius: 0.6rem;
  font-weight: 600;
  background: transparent;
}
.btn-logout:hover {
  background: var(--orange-500);
  color: var(--navy-900);
  border-color: var(--orange-500);
}
.btn-logout:focus {
  box-shadow: 0 0 0 0.25rem var(--focus-ring);
  outline: none;
}

/* Accessibilité (focus) */
.custom-navbar .nav-link:focus {
  outline: none;
  box-shadow: 0 0 0 0.25rem var(--focus-ring);
}

/* Optionnel: affiner containers & cartes pour matcher le thème */
.card {
  border-radius: 0.9rem;
}
.table-actions .btn {
  border-radius: 0.6rem;
}
/* ======= Accueil : Hero & CTA ======= */
.hero-landing {
  background: radial-gradient(
      1000px 400px at 20% -10%,
      rgba(255, 122, 0, 0.18),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 90% -20%,
      rgba(255, 122, 0, 0.1),
      transparent 70%
    ),
    linear-gradient(
      90deg,
      var(--navy-900) 0%,
      var(--navy-800) 60%,
      var(--navy-700) 100%
    );
  position: relative;
}
.hero-landing .hero-wave {
  display: block;
  width: 100%;
  height: 60px;
  margin-top: -12px;
}
.hero-landing .hero-wave path {
  fill: #fff;
}
.text-white-75 {
  color: rgba(255, 255, 255, 0.82);
}

/* Boutons brand */
.btn-brand {
  --btn-bg: var(--orange-500);
  --btn-bg-hover: var(--orange-600);
  --btn-fg: var(--navy-900);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: 0.8rem;
  padding: 0.65rem 1.1rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.btn-brand:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-bg-hover);
  color: var(--navy-900);
}
.btn-brand:focus {
  box-shadow: 0 0 0 0.25rem var(--focus-ring);
}

/* Bouton ghost sur fond sombre ou clair */
.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: transparent;
  border-radius: 0.8rem;
  padding: 0.65rem 1.1rem;
  font-weight: 600;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}
.btn-ghost:focus {
  box-shadow: 0 0 0 0.25rem var(--focus-ring);
}

/* Chips (petites étiquettes) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-weight: 600;
  font-size: 0.85rem;
}
.chip-accent {
  background: rgba(255, 122, 0, 0.12);
  color: var(--orange-700);
  border: 1px solid rgba(255, 122, 0, 0.38);
}

/* Timeline de étapes */
.steps-timeline {
  list-style: none;
  padding-left: 0;
  margin-left: 0.25rem;
  counter-reset: step;
  position: relative;
}
.steps-timeline > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.4rem;
  margin: 0 0 1.1rem 0;
}
.steps-timeline > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--orange-500);
  color: var(--navy-900);
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.25);
}
.steps-timeline > li:not(:last-child) {
  border-left: 2px solid var(--navy-600);
  margin-left: 0.8rem;
  padding-left: 2.6rem;
}
.steps-timeline > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  top: 1.8rem;
  bottom: -1.1rem;
  width: 2px;
  background: var(--navy-600);
}

/* Accents & titres */
.icon-accent {
  color: var(--orange-500);
}
.text-navy {
  color: var(--navy-800);
}

/* Cartes plus douces */
.card {
  border-radius: 1rem;
}

/* Partie Index.php */

/* ======= Accueil : Hero & CTA ======= */
.hero-landing {
  background: radial-gradient(
      1000px 400px at 20% -10%,
      rgba(255, 122, 0, 0.18),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 90% -20%,
      rgba(255, 122, 0, 0.1),
      transparent 70%
    ),
    linear-gradient(
      90deg,
      var(--navy-900) 0%,
      var(--navy-800) 60%,
      var(--navy-700) 100%
    );
  position: relative;
}
.hero-landing .hero-wave {
  display: block;
  width: 100%;
  height: 60px;
  margin-top: -12px;
}
.hero-landing .hero-wave path {
  fill: #fff;
}
.text-white-75 {
  color: rgba(255, 255, 255, 0.82);
}

/* Boutons brand */
.btn-brand {
  --btn-bg: var(--orange-500);
  --btn-bg-hover: var(--orange-600);
  --btn-fg: var(--navy-900);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: 0.8rem;
  padding: 0.65rem 1.1rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.btn-brand:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-bg-hover);
  color: var(--navy-900);
}
.btn-brand:focus {
  box-shadow: 0 0 0 0.25rem var(--focus-ring);
}

/* Bouton ghost sur fond sombre ou clair */
.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: transparent;
  border-radius: 0.8rem;
  padding: 0.65rem 1.1rem;
  font-weight: 600;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}
.btn-ghost:focus {
  box-shadow: 0 0 0 0.25rem var(--focus-ring);
}

/* Chips (petites étiquettes) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-weight: 600;
  font-size: 0.85rem;
}
.chip-accent {
  background: rgba(255, 122, 0, 0.12);
  color: var(--orange-700);
  border: 1px solid rgba(255, 122, 0, 0.38);
}

/* Timeline de étapes */
.steps-timeline {
  list-style: none;
  padding-left: 0;
  margin-left: 0.25rem;
  counter-reset: step;
  position: relative;
}
.steps-timeline > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.4rem;
  margin: 0 0 1.1rem 0;
}
.steps-timeline > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--orange-500);
  color: var(--navy-900);
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.25);
}
.steps-timeline > li:not(:last-child) {
  border-left: 2px solid var(--navy-600);
  margin-left: 0.8rem;
  padding-left: 2.6rem;
}
.steps-timeline > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  top: 1.8rem;
  bottom: -1.1rem;
  width: 2px;
  background: var(--navy-600);
}

/* Accents & titres */
.icon-accent {
  color: var(--orange-500);
}
.text-navy {
  color: var(--navy-800);
}

/* Cartes plus douces */
.card {
  border-radius: 1rem;
}

/* Tableau de bord prof */

/* ======= Dashboard enseignant ======= */
.dashboard-hero {
  background: radial-gradient(
      900px 380px at 20% -10%,
      rgba(255, 122, 0, 0.18),
      transparent 60%
    ),
    radial-gradient(
      800px 420px at 95% -30%,
      rgba(255, 122, 0, 0.1),
      transparent 70%
    ),
    linear-gradient(
      90deg,
      var(--navy-900) 0%,
      var(--navy-800) 60%,
      var(--navy-700) 100%
    );
  position: relative;
}
.dashboard-hero .hero-wave {
  width: 100%;
  height: 56px;
  display: block;
  margin-top: -8px;
}
.dashboard-hero .hero-wave path {
  fill: #fff;
}

/* KPI cards */
.kpi-card {
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
}
.kpi-card .card-body {
  padding: 1.25rem 1.25rem 0.75rem 1.25rem;
}
.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: var(--navy-900);
  background: linear-gradient(180deg, var(--orange-500), var(--orange-600));
  box-shadow: 0 2px 10px rgba(255, 122, 0, 0.25);
}
.kpi-label {
  font-size: 0.9rem;
  color: #6c757d;
}
.kpi-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1f2937;
  letter-spacing: 0.2px;
}
.kpi-link {
  display: block;
  padding: 0.6rem 1.25rem 0.9rem;
  text-decoration: none;
  color: var(--navy-700);
  font-weight: 600;
}
.kpi-link:hover {
  color: var(--orange-700);
}

.kpi-classes::after,
.kpi-seq::after,
.kpi-prep::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 60%,
    rgba(255, 122, 0, 0.05)
  );
}

/* Carte graphique */
.card-chart {
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
}
.card-chart::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange-500), var(--orange-600));
}

/* ======= Classes (enseignant) ======= */
.card-accent {
  border: 0;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
}
.card-accent::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange-500), var(--orange-600));
}
.w-600 {
  max-width: 640px;
}

/* Input group thème (icône + input + bouton brand) */
.input-group-theme .input-group-text {
  background: rgba(255, 122, 0, 0.1);
  color: var(--orange-700);
  border-color: rgba(255, 122, 0, 0.35);
  border-right: 0;
}
.input-group-theme .form-control {
  border-color: rgba(255, 122, 0, 0.35);
  border-left: 0;
}
.input-group-theme .form-control:focus {
  box-shadow: 0 0 0 0.2rem var(--focus-ring);
  border-color: var(--orange-600);
}

/* Tableau harmonisé */
.table-theme thead th {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--navy-800);
  font-weight: 700;
}
.table-theme tbody tr:hover {
  background: rgba(255, 122, 0, 0.04);
}
.table-theme .badge {
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Statuts */
.badge-status-active {
  background: rgba(25, 135, 84, 0.12);
  color: #198754;
  border: 1px solid rgba(25, 135, 84, 0.25);
}
.badge-status-deleted {
  background: rgba(108, 117, 125, 0.12);
  color: #6c757d;
  border: 1px solid rgba(108, 117, 125, 0.25);
}

/* ======= Séquences (enseignant) ======= */

/* petite barre d’accent sur la carte déjà utilisée ailleurs */
.card-accent::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange-500), var(--orange-600));
}

/* Badge de nombre de préparations */
.badge-count {
  background: rgba(255, 122, 0, 0.12);
  color: var(--orange-700);
  border: 1px solid rgba(255, 122, 0, 0.35);
  font-weight: 700;
}

/* Tableau harmonisé (réutilise table-theme si déjà inclus) */
.table-theme thead th {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--navy-800);
  font-weight: 700;
}
.table-theme tbody tr:hover {
  background: rgba(255, 122, 0, 0.04);
}

/* Actions arrondies */
.btn-group-actions .btn {
  border-radius: 0.6rem !important;
}

/* Pagination aux couleurs du thème */
.pagination-theme .page-link {
  color: var(--navy-700);
  border-color: rgba(0, 0, 0, 0.08);
}
.pagination-theme .page-link:focus {
  box-shadow: 0 0 0 0.2rem var(--focus-ring);
}
.pagination-theme .page-item.active .page-link {
  background: var(--orange-500);
  border-color: var(--orange-500);
  color: var(--navy-900);
}
.pagination-theme .page-item.disabled .page-link {
  color: #adb5bd;
}

/* ======= Séquence : vue détaillée ======= */

/* Carte de préparation avec filets d’accent */
.prep-card {
  border: 0;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
}
.prep-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange-500), var(--orange-600));
}

/* Pastille “Séance X” */
.session-pill {
  background: rgba(255, 122, 0, 0.12);
  color: var(--orange-700);
  border: 1px solid rgba(255, 122, 0, 0.35);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.2px;
}

/* Chips méta en haut (classe, dates, total) */
.chip-soft {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.chip-soft i {
  opacity: 0.95;
}

/* Badges d’info séance */
.badge-soft {
  background: rgba(11, 31, 59, 0.06);
  color: var(--navy-800);
  border: 1px solid rgba(11, 31, 59, 0.12);
  font-weight: 700;
  border-radius: 0.6rem;
}

/* Titres de sections */
.section-title {
  color: var(--navy-800);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.section-title i {
  color: var(--orange-500);
}

/* Corps de sections (typographie douce) */
.section-content {
  line-height: 1.6;
}

/* Tâches en chips */
.task-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: 0.6rem;
  background: rgba(255, 122, 0, 0.1);
  color: var(--orange-700);
  border: 1px solid rgba(255, 122, 0, 0.28);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ======= Edit préparation (enseignant) ======= */
.wysiwyg-hint {
  color: #6c757d;
}

/* lignes de tâches */
.task-row .btn-remove-task {
  border-color: rgba(220, 53, 69, 0.35);
  color: #dc3545;
}
.task-row .btn-remove-task:hover {
  background: rgba(220, 53, 69, 0.08);
  border-color: #dc3545;
}

/* titres & sections (réutilisent déjà les styles globaux) */
.section-title {
  color: var(--navy-800);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.section-title i {
  color: var(--orange-500);
}

/* ======= Création séquentielle (builder) ======= */
.prep-builder-block {
  border: 0;
  border-radius: 1rem;
  position: relative;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02), 0 6px 18px rgba(11, 31, 59, 0.06);
  padding: 1rem 1rem 1.1rem;
}
.prep-builder-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange-500), var(--orange-600));
}
.prep-builder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}
/* Session pill réutilisée (déjà définie sur la vue détaillée) */
.session-pill {
  background: rgba(255, 122, 0, 0.12);
  color: var(--orange-700);
  border: 1px solid rgba(255, 122, 0, 0.35);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.2px;
}

/* Bouton supprimer (doux mais clair) */
.btn-remove-prep {
  border: 1px solid rgba(220, 53, 69, 0.35);
  color: #dc3545;
  border-radius: 0.5rem;
  background: transparent;
  padding: 0.25rem 0.5rem;
}
.btn-remove-prep:hover {
  background: rgba(220, 53, 69, 0.08);
  border-color: #dc3545;
}

/* Aide WYSIWYG */
.form-text {
  color: #6c757d;
}

/* Harmonisation input groups (déjà utilisés) */
.input-group-theme .input-group-text {
  background: rgba(255, 122, 0, 0.1);
  color: var(--orange-700);
  border-color: rgba(255, 122, 0, 0.35);
  border-right: 0;
}
.input-group-theme .form-control {
  border-color: rgba(255, 122, 0, 0.35);
  border-left: 0;
}
.input-group-theme .form-control:focus {
  box-shadow: 0 0 0 0.2rem var(--focus-ring);
  border-color: var(--orange-600);
}

/* ===== Login split ===== */
.login-split {
  background: #fff;
  border: 1px solid rgba(11, 31, 59, 0.06);
}

/* Panneau orange (gauche) */
.login-visual {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: #fff;
  position: relative;
}
.badge-hero {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 700;
  border-radius: 0.6rem;
  padding: 0.35rem 0.6rem;
}
.login-illustration svg {
  width: 100%;
  height: auto;
  max-height: 240px;
}

/* Formulaire (droite) */
.link-orange {
  color: var(--orange-700);
}
.link-orange:hover {
  color: var(--orange-600);
  text-decoration: underline;
}

/* Toggle password bouton */
.toggle-pass {
  border-color: rgba(11, 31, 59, 0.15);
  color: var(--navy-800);
}
.toggle-pass:hover {
  background: rgba(11, 31, 59, 0.06);
}

/* Utilitaires (si pas déjà définis) */
.text-white-75 {
  color: rgba(255, 255, 255, 0.75);
}
.fw-extrabold {
  font-weight: 800;
}

/* ===== Register split (illustration à droite) ===== */
.register-visual {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: #fff;
}
.guide-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem 0;
}
.guide-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  opacity: 0.95;
  margin-bottom: 0.35rem;
}
.guide-list i {
  color: #fff;
}

/* Jauge mot de passe */
.pw-meter {
  background: rgba(11, 31, 59, 0.08);
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
}
.pw-meter-bar {
  height: 100%;
  width: 0%;
  transition: width 0.25s ease;
  background: linear-gradient(90deg, #d9534f, #f0ad4e, #5cb85c);
  border-radius: 999px;
}
.pw-meter-bar.lvl-0 {
  width: 0%;
  background: #d9534f;
}
.pw-meter-bar.lvl-1 {
  width: 30%;
  background: #d9534f;
}
.pw-meter-bar.lvl-2 {
  width: 55%;
  background: #f0ad4e;
}
.pw-meter-bar.lvl-3 {
  width: 80%;
  background: #5cb85c;
}
.pw-meter-bar.lvl-4 {
  width: 100%;
  background: #198754;
}

/* Petites harmonisations si nécessaire (déjà posées côté login) */
.text-white-75 {
  color: rgba(255, 255, 255, 0.75);
}
.fw-extrabold {
  font-weight: 800;
}

/* ===== Liste numérotée élégante (Navy + Orange) ===== */
ol.steps-elegant {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
ol.steps-elegant li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(11, 31, 59, 0.1); /* navy très léger */
}
ol.steps-elegant li:last-child {
  border-bottom: 0;
}

ol.steps-elegant li::before {
  content: counter(step);
  flex: 0 0 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--orange-500, #ff7a00),
    var(--orange-600, #ff6a00)
  );
  box-shadow: 0 6px 16px rgba(255, 122, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.85);
}

ol.steps-elegant li strong {
  color: var(--navy-800, #0b1f3b);
}

/* ===== KPI Cards (Admin) ===== */
.kpi-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: #fff;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(11, 31, 59, 0.06);
  box-shadow: 0 8px 24px rgba(11, 31, 59, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.kpi-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--orange-500), var(--orange-600));
  border-top-left-radius: 1rem;
  border-bottom-left-radius: 1rem;
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(11, 31, 59, 0.12);
}
.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 122, 0, 0.12);
  color: var(--orange-700);
  font-size: 1.25rem;
}
.kpi-meta .kpi-label {
  color: #6b7280;
  font-weight: 600;
  line-height: 1;
}
.kpi-meta .kpi-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy-800);
}

/* KPI secondaires (soft pills) */
.kpi-soft {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid rgba(11, 31, 59, 0.06);
  border-radius: 0.9rem;
  padding: 0.75rem 0.9rem;
}
.kpi-soft-icon {
  font-size: 0.9rem;
}
.kpi-soft-icon.text-orange {
  color: var(--orange-600);
}
.kpi-soft-body .kpi-soft-label {
  color: #6b7280;
  font-weight: 600;
  line-height: 1;
}
.kpi-soft-body .kpi-soft-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-800);
}

/* Chips déjà utilisés ailleurs */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}
.chip-accent {
  background: rgba(255, 122, 0, 0.12);
  color: var(--orange-700);
  border: 1px solid rgba(255, 122, 0, 0.35);
}

/* Section title already themed elsewhere; ensure spacing */
.section-title {
  font-weight: 800;
  color: var(--navy-800);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-title i {
  color: var(--orange-600);
}

/* Helpers */
.text-white-75 {
  color: rgba(255, 255, 255, 0.75);
}

.assistant-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1055;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(135deg, #0b1f3b, #112744);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.assistant-panel {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 1055;
  width: 360px;
  max-height: 75vh;
  display: none;
  border: 0;
  overflow: hidden;
  border-radius: 1rem;
}
.assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, #0b1f3b, #112744);
}
.assistant-messages {
  padding: 0.75rem;
  background: #fff;
  height: 44vh;
  overflow: auto;
}
.assistant-input {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem;
  background: #f7f7fb;
  border-top: 1px solid rgba(11, 31, 59, 0.06);
}
.assistant-footer {
  padding: 0.4rem 0.75rem;
  background: #fff;
}
.msg {
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  margin: 0.35rem 0;
  max-width: 85%;
}
.msg-user {
  margin-left: auto;
  background: #0b1f3b;
  color: #fff;
}
.msg-bot {
  background: #f3f5fa;
  color: #0b1f3b;
}
