/* =========================================================
   MSA — Design system (feuille de style unique)
   Lier dans chaque page :  <link rel="stylesheet" href="/css/style.css">
   Sommaire
     1. Variables (tokens) + mode sombre
     2. Base & accessibilité
     3. Boutons, formulaires, tableaux, badges, alertes
     4. Navbar publique, sidebar, topbar mobile, fil d'Ariane, footer
     5. Composants tableau de bord (hero, tuiles, cartes, filtres)
     6. Authentification & inscription (wizard)
     7. Profil, CV, candidatures, entretiens
     8. Page d'accueil (landing)
     9. Toasts, animations, responsive, préférences système
    10. Réparation modal Bootstrap (correctif)
   ========================================================= */

/* ---------- 1. VARIABLES ---------- */
:root {
  /* Couleurs */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #e8efff;
  --navy: #0b1e3f;
  --navy-2: #12295a;
  --accent: #f59e0b;
  --accent-soft: #fff4dc;
  --success: #16a34a;
  --success-soft: #e6f6ec;
  --danger: #dc2626;
  --danger-soft: #fdecec;
  --warning: #d97706;
  --warning-soft: #fff4dc;
  --info-soft: #e0f2fe;

  --background: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #1e293b;
  --text-strong: #0f172a;
  --text-muted: #64748b;
  --border: #e5e9f2;

  /* Espacements */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2.5rem;

  /* Rayons */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.14);

  /* Transitions */
  --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Typographie */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;

  --sidebar-w: 268px;

  /* Alias historiques (utilisés par d'anciens styles) */
  --msa-dark: var(--navy);
  --msa-dark-2: var(--navy-2);
  --msa-accent: var(--primary);
  --msa-accent-2: #7fb0ff;
  --msa-bg: var(--background);
  --msa-success: var(--success);
  --msa-radius: var(--radius);

  /* Pont vers Bootstrap 5.3 */
  --bs-body-font-family: var(--font);
  --bs-body-bg: var(--background);
  --bs-body-color: var(--text);
  --bs-border-color: var(--border);
  --bs-primary: var(--primary);
  --bs-primary-rgb: 37, 99, 235;
  --bs-link-color: var(--primary);
  --bs-link-color-rgb: 37, 99, 235;
  --bs-link-hover-color: var(--primary-dark);
  --bs-link-hover-color-rgb: 29, 78, 216;
  --bs-box-shadow-sm: var(--shadow-sm);
  --bs-border-radius: var(--radius-sm);
  --bs-secondary-color: var(--text-muted);
}

[data-bs-theme="dark"] {
  --primary: #4d8bff;
  --primary-dark: #7aa7ff;
  --primary-soft: rgba(77, 139, 255, 0.16);
  --accent-soft: rgba(245, 158, 11, 0.16);
  --success-soft: rgba(34, 197, 94, 0.16);
  --danger-soft: rgba(248, 113, 113, 0.16);
  --warning-soft: rgba(245, 158, 11, 0.16);
  --info-soft: rgba(56, 189, 248, 0.16);
  --background: #0a1120;
  --surface: #111a2f;
  --surface-2: #16213b;
  --text: #dfe6f3;
  --text-strong: #f4f7fc;
  --text-muted: #94a3bd;
  --border: #23314f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.5);
  --bs-primary-rgb: 77, 139, 255;
  --bs-link-color-rgb: 122, 167, 255;
  --bs-link-hover-color-rgb: 170, 200, 255;
  --bs-body-bg: var(--background);
  --bs-body-color: var(--text);
  --bs-secondary-bg: var(--surface-2);
  --bs-tertiary-bg: var(--surface-2);
  --bs-emphasis-color: var(--text-strong);
}

/* ---------- 2. BASE & ACCESSIBILITÉ ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: var(--fs-base);
  background-color: var(--background);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--text-strong);
  font-weight: 700;
  letter-spacing: -0.01em;
}
a { text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color var(--transition); }
img { max-width: 100%; }
.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--primary) !important; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}
.form-control:focus-visible, .form-select:focus-visible { outline: none; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 2000;
  background: var(--primary); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 8px; }

/* ---------- 3. BOUTONS, FORMULAIRES, TABLEAUX ---------- */
.btn {
  border-radius: 10px;
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 0.55rem 1.1rem;
  transition: background-color var(--transition), border-color var(--transition),
              color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 0.35rem 0.7rem; font-size: var(--fs-xs); border-radius: 8px; }
.btn-lg { padding: 0.8rem 1.8rem; font-size: var(--fs-base); border-radius: 12px; }

.btn-primary, .btn-msa, .btn-gold {
  --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-dark); --bs-btn-hover-border-color: var(--primary-dark);
  --bs-btn-active-bg: var(--primary-dark); --bs-btn-active-border-color: var(--primary-dark);
  --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff;
  background-color: var(--primary);
  border: 1px solid var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover, .btn-msa:hover, .btn-gold:hover {
  background-color: var(--primary-dark); border-color: var(--primary-dark); color: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28); transform: translateY(-1px);
}
[data-bs-theme="dark"] .btn-primary, [data-bs-theme="dark"] .btn-msa, [data-bs-theme="dark"] .btn-gold { color: #06122b; }
[data-bs-theme="dark"] .btn-primary:hover, [data-bs-theme="dark"] .btn-msa:hover, [data-bs-theme="dark"] .btn-gold:hover { color: #06122b; }

.btn-outline-secondary {
  --bs-btn-color: var(--text); --bs-btn-border-color: var(--border);
  --bs-btn-hover-bg: var(--surface-2); --bs-btn-hover-color: var(--text-strong);
  --bs-btn-hover-border-color: var(--text-muted);
  --bs-btn-active-bg: var(--surface-2); --bs-btn-active-color: var(--text-strong);
  --bs-btn-active-border-color: var(--text-muted);
  background: var(--surface);
}
.btn-outline-danger { --bs-btn-border-color: rgba(220, 38, 38, 0.35); background: var(--surface); }
.btn-outline-primary { --bs-btn-border-color: rgba(37, 99, 235, 0.4); }
.btn-link { font-weight: 600; text-decoration: none; }

/* Formulaires */
.form-label { font-weight: 600; font-size: var(--fs-sm); color: var(--text-strong); margin-bottom: 0.4rem; }
.form-control, .form-select {
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-size: var(--fs-sm);
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}
.form-control::placeholder { color: var(--text-muted); opacity: 0.7; }
.form-control:hover, .form-select:hover { border-color: #b8c3d9; }
[data-bs-theme="dark"] .form-control:hover, [data-bs-theme="dark"] .form-select:hover { border-color: #3a4c73; }
.form-control:focus, .form-select:focus, .btn:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
  background-color: var(--surface);
  color: var(--text);
}
.form-control:disabled, .form-control[readonly] { background-color: var(--surface-2); }
textarea.form-control { min-height: 110px; resize: vertical; }
.form-floating > .form-control, .form-floating > .form-select { padding-top: 1.6rem; padding-bottom: 0.5rem; height: calc(3.6rem + 2px); }
.form-floating > label { color: var(--text-muted); font-size: var(--fs-sm); }
.form-floating > .form-control:focus ~ label, .form-floating > .form-control:not(:placeholder-shown) ~ label { color: var(--primary); }
.form-text { color: var(--text-muted); font-size: var(--fs-xs); }
.form-control[type="file"] { padding: 0.45rem 0.6rem; }
.form-control[type="file"]::file-selector-button {
  background: var(--primary-soft); color: var(--primary); border: 0; border-radius: 8px;
  padding: 0.4rem 0.8rem; margin-right: 0.8rem; font-weight: 600; cursor: pointer;
  transition: background-color var(--transition);
}
.form-control[type="file"]:hover::file-selector-button { background: rgba(37, 99, 235, 0.18); }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
/* Validation visuelle (uniquement après interaction) */
.form-control:user-invalid, .form-select:user-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1); }
.form-control:user-valid:not(:placeholder-shown):not([type="file"]) { border-color: rgba(22, 163, 74, 0.55); }
.invalid-feedback, .text-danger { color: var(--danger); }
[data-bs-theme="dark"] .invalid-feedback, [data-bs-theme="dark"] .text-danger { color: #fca5a5 !important; }

/* Tableaux */
.card { background-color: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); }
.card.border-0 { border: 1px solid var(--border) !important; }
.card.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--border); --bs-table-hover-bg: var(--primary-soft); --bs-table-hover-color: var(--text); margin-bottom: 0; }
.table-msa { border-collapse: separate; border-spacing: 0; }
.table-msa thead th {
  background-color: var(--surface-2);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table-msa thead { background: transparent; color: inherit; }
.table-msa tbody td { padding: 1rem 1.1rem; border-color: var(--border); vertical-align: middle; }
.table-msa tbody tr { background-color: transparent; transition: background-color var(--transition); }
.table-msa tbody tr:last-child td { border-bottom: 0; }
.table-responsive { border-radius: var(--radius); }
.table-msa .btn-sm { padding: 0.4rem 0.6rem; }
.table-msa .btn-outline-secondary:hover { color: var(--primary); border-color: var(--primary); }
.table-msa .btn-outline-danger:hover { background: var(--danger); color: #fff; }

/* Badges de statut */
.badge { font-weight: 600; border-radius: var(--radius-pill); padding: 0.4em 0.75em; }
.badge.bg-light { background-color: var(--surface-2) !important; color: var(--text) !important; border-color: var(--border) !important; }
.status-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.8rem; border-radius: var(--radius-pill);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.01em;
  background: var(--surface-2); color: var(--text-muted);
}
.status-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-en_attente { background: var(--warning-soft); color: var(--warning); }
.status-acceptee { background: var(--success-soft); color: var(--success); }
.status-refusee { background: var(--danger-soft); color: var(--danger); }
[data-bs-theme="dark"] .status-en_attente { color: #fbbf24; }
[data-bs-theme="dark"] .status-acceptee { color: #4ade80; }
[data-bs-theme="dark"] .status-refusee { color: #f87171; }

/* États vides */
.empty-state { text-align: center; padding: 3.5rem 1.5rem; color: var(--text-muted); }
.empty-state i { font-size: 2.6rem; display: block; margin-bottom: 0.8rem; color: var(--primary); opacity: 0.45; }

/* Modales & menus déroulants */
.modal-content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.modal-header, .modal-footer { border-color: var(--border); }
.dropdown-menu { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.5rem; box-shadow: var(--shadow-lg); }
.dropdown-item { border-radius: 8px; padding: 8px 12px; color: var(--text); }
.dropdown-item:hover { background: var(--primary-soft); color: var(--primary); }
.accordion-item { background: transparent; border: 0; border-bottom: 1px solid var(--border); }
.accordion-button { font-weight: 600; color: var(--text-strong); background: transparent; box-shadow: none; }
.accordion-button:not(.collapsed) { color: var(--primary); background: transparent; box-shadow: none; }
.accordion-button:focus { box-shadow: none; }

/* ---------- 4. NAVIGATION ---------- */
.msa-navbar {
  background: rgba(11, 30, 63, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.7rem 0;
}
.navbar-brand, .sidebar-brand {
  font-weight: 800; letter-spacing: 0.04em; font-size: 1.35rem; color: #fff; text-decoration: none;
  display: flex; align-items: center; gap: 0.6rem;
}
.navbar-brand > i, .sidebar-brand > i {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, #60a5fa 100%);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45);
}
.brand-accent { color: #7fb0ff; }
.msa-navbar .nav-link {
  color: rgba(255, 255, 255, 0.78); font-weight: 500; font-size: var(--fs-sm);
  padding: 0.5rem 0.9rem !important; border-radius: 8px; position: relative;
  transition: color var(--transition), background-color var(--transition);
}
.msa-navbar .nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.msa-navbar .nav-link.active { color: #fff; background: rgba(255, 255, 255, 0.12); }
.msa-navbar .navbar-toggler { padding: 0.35rem 0.6rem; }
.msa-navbar .navbar-collapse.show, .msa-navbar .navbar-collapse.collapsing { padding: 0.75rem 0 0.5rem; }
.theme-toggle {
  width: 38px; height: 38px; padding: 0; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background-color var(--transition);
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.icon-dark { display: none; }
[data-bs-theme="dark"] .icon-light { display: none; }
[data-bs-theme="dark"] .icon-dark { display: inline; }

/* Sidebar */
.msa-sidebar {
  position: sticky; top: 0;
  width: var(--sidebar-w); min-width: var(--sidebar-w); height: 100vh;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: 1.5rem 1rem 1rem; overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.sidebar-brand { padding: 0 0.5rem; margin-bottom: 1.5rem; }
.sidebar-section {
  color: rgba(255, 255, 255, 0.4); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 0.9rem 0.75rem 0.4rem;
}
.sidebar-nav, .sidebar-footer { display: flex; flex-direction: column; gap: 3px; }
.sidebar-footer { padding-top: 0.75rem; border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 0.75rem; }
.sidebar-link {
  display: flex; align-items: center; gap: 0.75rem; position: relative;
  color: rgba(255, 255, 255, 0.72); text-decoration: none;
  padding: 0.65rem 0.8rem; border-radius: 10px; font-size: var(--fs-sm); font-weight: 500;
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}
.sidebar-link i { font-size: 1.1rem; width: 22px; text-align: center; }
.sidebar-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.sidebar-link.active { background: rgba(77, 139, 255, 0.2); color: #fff; font-weight: 600; }
.sidebar-link.active::before {
  content: ""; position: absolute; left: -1rem; top: 20%; bottom: 20%; width: 4px;
  border-radius: 0 4px 4px 0; background: var(--primary);
}
.sidebar-link.active i { color: #8fb8ff; }
.sidebar-link.text-danger { color: #ffa3a3 !important; }
.sidebar-link.text-danger:hover { background: rgba(248, 113, 113, 0.14); color: #ffbcbc !important; }
.sidebar-link:focus-visible { outline-color: #8fb8ff; }
.sidebar-user {
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px; padding: 0.7rem; margin-top: 0.75rem;
}
.sidebar-user > div { min-width: 0; }
.sidebar-user-name { color: #fff; font-weight: 600; font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-role { color: rgba(255, 255, 255, 0.55); font-size: var(--fs-xs); }
button.sidebar-link { background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }

/* Topbar mobile + offcanvas */
.msa-navbar-dash {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-2) 100%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2); padding: 0.6rem 0;
}

.msa-offcanvas { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); width: 292px; border: 0; }
.msa-offcanvas .offcanvas-header { padding: 1.25rem 1rem; }
.msa-offcanvas .offcanvas-body { padding: 0 1rem 1.25rem; }
.msa-offcanvas .sidebar-brand { margin-bottom: 0; }
.msa-offcanvas .sidebar-link.active::before { left: -1rem; }

@media (min-width: 992px) {
  .app-shell { display: flex; align-items: flex-start; }
  .app-content { flex: 1 1 auto; min-width: 0; }
}
.app-content { background: var(--background); min-height: 100vh; }
.app-content main { animation: fadeUp 0.35s ease both; padding-left: 1.25rem; padding-right: 1.25rem; }
.app-content main.container { max-width: 1240px; }

/* Avatars */
.avatar-circle { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, 0.5); flex-shrink: 0; }
.avatar-lg { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 4px solid var(--surface); box-shadow: var(--shadow); }
.avatar-empty { display: inline-flex; align-items: center; justify-content: center; background-color: var(--surface-2); color: var(--text-muted); }
.avatar-circle.avatar-empty { background: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.8); border-color: rgba(255, 255, 255, 0.25); }
.avatar-circle.avatar-empty i { font-size: 1.15rem; }
.avatar-lg.avatar-empty i { font-size: 2.8rem; }
.candidate-photo.avatar-empty i { font-size: 1.8rem; }
.entretien-avatar.avatar-empty i { font-size: 1.3rem; }
.avatar-edit-wrapper { position: relative; display: inline-block; border-radius: 50%; cursor: pointer; }
.avatar-edit-overlay {
  position: absolute; inset: 0; border-radius: 50%; background: rgba(11, 30, 63, 0.6); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 1.3rem; opacity: 0; transition: opacity var(--transition);
}
.avatar-edit-overlay span { font-size: 0.72rem; font-weight: 600; margin-top: 2px; }
.avatar-edit-wrapper:hover .avatar-edit-overlay, .avatar-edit-wrapper:focus-within .avatar-edit-overlay { opacity: 1; }
#avatarEditHint { display: none; }

/* Fil d'Ariane */
.breadcrumb {
  display: inline-flex; flex-wrap: wrap; font-size: var(--fs-xs);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 0.4rem 1rem; box-shadow: var(--shadow-sm); margin-bottom: 1.25rem;
}
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); content: "›"; }
.breadcrumb-item a { color: var(--text); text-decoration: none; font-weight: 500; }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--text-muted); }

/* Pied de page */
.msa-footer { background: var(--navy); border-top: 1px solid rgba(255, 255, 255, 0.08); color: #fff; }
.msa-footer a { transition: color var(--transition); }
.msa-footer a:hover { color: #fff !important; }
.footer-brand { font-weight: 800; font-size: 1.3rem; letter-spacing: 0.04em; }
.footer-brand i { color: #7fb0ff; }
.footer-heading { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.9); margin-bottom: 0.9rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.8); transition: background-color var(--transition), transform var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* ---------- 5. COMPOSANTS TABLEAU DE BORD ---------- */
.dash-hero, .candidate-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 55%, #1d4ed8 140%);
  border-radius: var(--radius-lg); padding: 2.25rem 2.5rem; box-shadow: var(--shadow);
}
.dash-hero::after, .candidate-hero::after {
  content: ""; position: absolute; right: -80px; top: -120px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 176, 255, 0.28) 0%, transparent 70%); pointer-events: none;
}
.dash-hero > *, .candidate-hero > * { position: relative; z-index: 1; }
.dash-hero h3, .candidate-hero h3 { color: #fff; font-weight: 700; font-size: var(--fs-2xl); }
.dash-hero .lead, .candidate-hero .lead { color: rgba(255, 255, 255, 0.78); font-size: var(--fs-base); }
.hero-eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.7rem; font-weight: 700; color: #ffd27a; margin-bottom: 0.4rem; }
.hero-icon { font-size: 7rem; color: rgba(255, 255, 255, 0.12); }
.hero-search { max-width: 480px; }
.hero-search .form-control { border: 0; padding: 0.8rem 1.1rem; border-radius: 12px 0 0 12px; background: #fff; color: #1e293b; }
.hero-search .btn { border-radius: 0 12px 12px 0; padding-left: 1.2rem; padding-right: 1.2rem; }

.dash-tile { text-decoration: none; color: inherit; display: block; height: 100%; }
.dash-tile .card { height: 100%; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.dash-tile:hover .card { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(37, 99, 235, 0.35) !important; }
.dash-tile h3 { font-size: var(--fs-2xl); font-weight: 800; color: var(--text-strong); line-height: 1.1; }
.dash-tile h5 { font-size: var(--fs-base); font-weight: 700; }
.icon-wrap {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary); font-size: 1.45rem;
}
.icon-wrap-warning { background: var(--warning-soft); color: var(--warning); }
.icon-wrap-success { background: var(--success-soft); color: var(--success); }

.filter-bar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem; box-shadow: var(--shadow-sm); }
.filter-pill {
  text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 0.4rem 0.95rem; display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-sm); font-weight: 500; transition: all var(--transition);
}
.filter-pill img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.filter-pill:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.filter-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.table .filter-pill { font-size: var(--fs-xs); font-weight: 600; padding: 0.25rem 0.75rem; background: var(--primary-soft); border-color: transparent; color: var(--primary); }

.card-offer { height: 100%; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.card-offer:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(37, 99, 235, 0.35); }
.card-offer .card-body { padding: 1.5rem; }
.card-offer .offer-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); font-size: 1.3rem; margin-bottom: 1rem; }
.card-offer .card-title { font-size: var(--fs-lg); font-weight: 700; color: var(--text-strong); }
.card-offer .card-text { font-size: var(--fs-sm); }
.card-offer .offer-subtitle { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 700; }

.candidate-row { text-decoration: none; color: inherit; display: block; }
.candidate-row .card { box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.candidate-row:hover .card { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(37, 99, 235, 0.35) !important; }
.candidate-photo { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }

/* ---------- 6. AUTHENTIFICATION & INSCRIPTION ---------- */
.auth-wrapper {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 100px 1rem 40px;
  background:
    radial-gradient(900px 420px at 15% -5%, rgba(37, 99, 235, 0.14), transparent 60%),
    radial-gradient(700px 380px at 100% 100%, rgba(11, 30, 63, 0.1), transparent 60%),
    var(--background);
}
.auth-card { width: 100%; max-width: 448px; border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; animation: fadeUp 0.4s ease both; }
.auth-card .card-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; text-align: center; padding: 1.75rem 1.5rem; border: 0;
}
.auth-card .card-header h4 { color: #fff; font-weight: 700; }
.auth-card .card-header i { color: #8fb8ff; }
.auth-card .card-body { padding: 2rem !important; }
.auth-card .auth-subtitle { color: rgba(255, 255, 255, 0.7); font-size: var(--fs-sm); margin: 0.35rem 0 0; }
.auth-card .small { font-size: var(--fs-sm) !important; }
.auth-card a { font-weight: 500; text-decoration: none; }
.auth-card a:hover { text-decoration: underline; }

.wizard-card { max-width: 460px; }
.wizard-header { padding: 1.75rem 1.75rem 0; }
.text-gold { color: var(--primary); }
.time-badge { background: var(--primary-soft); color: var(--primary); font-size: var(--fs-xs); font-weight: 600; padding: 4px 12px; border-radius: var(--radius-pill); }
.wizard-progress { background: var(--surface-2); border-radius: var(--radius-pill); height: 6px; overflow: hidden; }
.wizard-progress-bar { background: linear-gradient(90deg, var(--primary) 0%, #60a5fa 100%); height: 100%; border-radius: var(--radius-pill); transition: width 0.35s ease; width: 33%; }
.wizard-meta { font-size: var(--fs-xs); color: var(--text-muted); }
.step-icon-circle {
  width: 68px; height: 68px; border-radius: 50%; border: 2px solid rgba(37, 99, 235, 0.25);
  background: var(--primary-soft); color: var(--primary); font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center; margin: 0.5rem auto 1.25rem;
}
.auth-wrapper .wizard-card { max-width: 1100px; width: 96%; }

/* ---------- 7. CV, CANDIDATURES, ENTRETIENS ---------- */
.cv-block-title { font-size: var(--fs-base); font-weight: 700; color: var(--text-strong); display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.cv-entry { position: relative; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; background: var(--surface); transition: border-color var(--transition), box-shadow var(--transition); }
.cv-entry:hover { border-color: rgba(37, 99, 235, 0.35); box-shadow: var(--shadow-sm); }
.cv-entry .cv-entry-title { font-weight: 700; font-size: var(--fs-sm); }
.cv-entry .cv-entry-sub { font-size: 0.85rem; color: var(--text-muted); }
.cv-entry .cv-entry-period { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600; }
.cv-entry .cv-entry-desc { font-size: 0.85rem; color: var(--text); margin-top: 0.4rem; margin-bottom: 0; }
.cv-entry-delete { position: absolute; top: 0.6rem; right: 0.6rem; border: none; background: transparent; color: var(--danger); opacity: 0.6; transition: opacity var(--transition); }
.cv-entry-delete:hover { opacity: 1; }
.cv-competence-tag { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--primary-soft); color: var(--primary); border-radius: var(--radius-pill); padding: 0.35rem 0.85rem; font-size: 0.82rem; font-weight: 600; margin: 0 0.4rem 0.4rem 0; }
.cv-competence-tag button { border: none; background: transparent; color: var(--danger); line-height: 1; padding: 0; font-size: 0.85rem; }
.cv-fichier-box { border: 1.5px dashed var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; background: var(--surface-2); }
.cv-fichier-box .bi { font-size: 1.8rem; color: var(--primary); }

.entretien-card {
  border: 1px solid var(--border); border-left: 4px solid var(--success); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); background: var(--surface); height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}
.entretien-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.entretien-card .entretien-date, .entretien-card .entretien-heure {
  border-radius: 8px; padding: 4px 10px; font-size: var(--fs-xs); font-weight: 700; display: inline-flex; align-items: center; gap: 6px;
}
.entretien-card .entretien-date { background: var(--success-soft); color: var(--success); }
.entretien-card .entretien-heure { background: var(--primary-soft); color: var(--primary); }
.entretien-card .entretien-type-badge { border-radius: var(--radius-pill); padding: 4px 12px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.entretien-type-presentiel { background: var(--surface-2); color: var(--text); }
.entretien-type-visio { background: var(--primary-soft); color: var(--primary); }
.entretien-type-telephone { background: var(--warning-soft); color: var(--warning); }
.entretien-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); box-shadow: var(--shadow-sm); }
.today-badge { background: var(--danger); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill); text-transform: uppercase; letter-spacing: 0.05em; margin-left: 6px; animation: pulse 1.8s infinite; }
.entretien-modal-header { background: linear-gradient(135deg, #15803d 0%, #22c55e 100%); color: #fff; border-radius: var(--radius-lg) var(--radius-lg) 0 0; border: 0; }
.entretien-modal-header .btn-close { filter: brightness(0) invert(1); }
.entretien-type-card { border: 2px solid var(--border); border-radius: var(--radius); padding: 10px; cursor: pointer; text-align: center; transition: all var(--transition); background: var(--surface); display: block; }
.entretien-type-card:hover { border-color: var(--primary); }
.entretien-type-card input { display: none; }
.entretien-type-card.selected { border-color: var(--primary); background: var(--primary-soft); }
.entretien-type-card i { font-size: 1.3rem; display: block; margin-bottom: 4px; color: var(--text-muted); }
.entretien-type-card.selected i { color: var(--primary); }
.entretien-type-card span { font-size: 0.82rem; font-weight: 600; }
.recap-box { background: var(--surface-2); border-left: 4px solid var(--primary); border-radius: var(--radius-sm); padding: 12px 16px; margin-top: 12px; font-size: 0.9rem; }
.recap-box .recap-line { margin-bottom: 4px; }
.recap-box .recap-line:last-child { margin-bottom: 0; }

/* ---------- 8. PAGE D'ACCUEIL (LANDING) ---------- */
.section-py { margin-top: 3rem; margin-bottom: 3rem; }
.section-label { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 700; color: var(--primary); }
.section-title { font-weight: 800; color: var(--text-strong); letter-spacing: -0.02em; }
.msa-hero-photo { position: relative; padding: 8rem 1rem 6rem; text-align: center; overflow: hidden; }
.hero-photo-content { position: relative; z-index: 1; color: #fff; }
.hero-photo-content h1 { font-weight: 800; letter-spacing: -0.03em; font-size: clamp(2.1rem, 5vw, 3.5rem); color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45); }
.hero-photo-content .section-label { color: #9cc2ff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45); }
.hero-photo-content .lead { max-width: 640px; margin-left: auto; margin-right: auto; color: rgba(255, 255, 255, 0.9); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4); }
.msa-hero-landing { padding: 7rem 1rem 4rem; text-align: center; }
.glass-panel {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 26px;
  box-shadow: 0 20px 50px rgba(11, 30, 63, 0.2); padding: 3rem 1.25rem;
}
@media (min-width: 768px) { .glass-panel { padding: 3.5rem 3rem; } }
.perk-card {
  border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 18px; background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm); padding: 2rem 1.5rem; height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}
.perk-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.perk-icon { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); font-size: 1.4rem; margin-bottom: 1rem; }
.domain-strip { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.domain-chip { background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: var(--radius-pill); padding: 10px 20px; font-weight: 600; font-size: 0.92rem; color: var(--text); box-shadow: var(--shadow-sm); }
.step-item { text-align: center; padding: 1rem; }
.step-circle { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #60a5fa); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; margin: 0 auto 1rem; box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35); }
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #1d4ed8 160%); color: #fff; border-radius: 26px; padding: 3.5rem 2rem; text-align: center; }
.cta-band h2, .cta-band h3, .cta-band h4 { color: #fff; }
.cta-band .lead { color: rgba(255, 255, 255, 0.85); }
.offer-toggle { cursor: pointer; }
.offer-chevron { transition: transform var(--transition); }
.offer-toggle[aria-expanded="true"] .offer-chevron { transform: rotate(180deg); }
.offer-login-hint { font-size: 0.85rem; color: var(--primary); margin-top: 0.75rem; }

[data-bs-theme="dark"] .glass-panel { background: rgba(10, 17, 32, 0.72); border-color: rgba(255, 255, 255, 0.1); }
[data-bs-theme="dark"] .perk-card, [data-bs-theme="dark"] .domain-chip { background: rgba(22, 33, 59, 0.75); border-color: rgba(255, 255, 255, 0.08); color: var(--text); }
[data-bs-theme="dark"] .card-offer, [data-bs-theme="dark"] .card { background-color: var(--surface); }

/* ---------- 9. TOASTS, ANIMATIONS, RESPONSIVE ---------- */
.toast-container { z-index: 1090; }
.toast { border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: var(--fs-sm); font-weight: 500; overflow: hidden; }
.toast.text-bg-danger { background: linear-gradient(135deg, #b91c1c, #dc2626) !important; }
.toast.text-bg-success { background: linear-gradient(135deg, #15803d, #16a34a) !important; }
.toast.showing, .toast.show { animation: slideIn 0.3s ease both; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

@media (max-width: 991.98px) {
  .app-content main { padding-top: 1.25rem !important; padding-bottom: 2rem !important; }
  .dash-hero, .candidate-hero { padding: 1.75rem 1.5rem; }
}
@media (max-width: 575.98px) {
  h3 { font-size: 1.35rem; }
  .dash-hero, .candidate-hero { padding: 1.5rem 1.25rem; border-radius: 16px; }
  .auth-card .card-body { padding: 1.5rem !important; }
  .auth-wrapper { padding-top: 88px; }
  .table-msa thead th, .table-msa tbody td { padding: 0.75rem 0.8rem; }
  .filter-bar form .form-control { max-width: 100% !important; width: 100%; }
  .msa-hero-photo { padding: 6rem 0.75rem 4rem; }
  .glass-panel { border-radius: 20px; }
  .breadcrumb { max-width: 100%; }
}

/* Tableaux empilés en cartes sur mobile (les libellés sont injectés par theme.js) */
@media (max-width: 767.98px) {
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody { display: block; width: 100%; }
  .table-stack tbody tr { display: block; padding: 0.9rem 1rem; border-bottom: 1px solid var(--border); }
  .table-stack tbody tr:last-child { border-bottom: 0; }
  .table-stack tbody td { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; padding: 0.35rem 0 !important; border: 0 !important; text-align: right; }
  .table-stack tbody td::before { content: attr(data-label); flex: 0 0 34%; text-align: left; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
  .table-stack tbody td[data-label=""]::before, .table-stack tbody td:first-child::before { display: none; }
  .table-stack tbody td:first-child { display: block; text-align: left; padding-bottom: 0.5rem !important; }
  .table-stack tbody td.text-end { justify-content: flex-end; padding-top: 0.6rem !important; }
  .table-stack tbody td.text-end::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   ✅ 10. RÉPARATION MODAL BOOTSTRAP 5 — CORRECTIF
   Corrige l'affichage des modals (fond, bordures, ombre,
   champs visibles et cliquables) sans casser les autres.
   À CONSERVER EN FIN DE FICHIER.
   ========================================================= */

/* 1. Fond sombre derrière le modal (backdrop) */
.modal-backdrop {
    background-color: rgba(11, 30, 63, 0.65);
    z-index: 1050;
}

/* 2. Conteneurs du modal */
.modal {
    z-index: 1055 !important;
}

.modal-dialog {
    z-index: 1060 !important;
    max-width: 720px;
    margin: 1.75rem auto;
    pointer-events: auto;
}

/* 3. Fond blanc/opaque du modal (CORRIGE LE PROBLÈME PRINCIPAL) */
.modal-content {
    background-color: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid #e5e9f2 !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35) !important;
    overflow: hidden;
    position: relative;
    z-index: 1065;
}

/* 4. En-tête — normal + variante verte entretien */
.modal-header {
    background-color: #f8fafc;
    border-bottom: 1px solid #e5e9f2;
    padding: 1rem 1.25rem;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header.entretien-modal-header {
    background: linear-gradient(135deg, #15803d 0%, #22c55e 100%) !important;
    color: #fff !important;
    border-bottom: 0 !important;
}

.modal-header.entretien-modal-header .modal-title,
.modal-header.entretien-modal-header small {
    color: #fff !important;
}

.modal-header.entretien-modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* 5. Corps */
.modal-body {
    background-color: #ffffff !important;
    color: #1e293b !important;
    padding: 1.5rem !important;
    position: relative;
    z-index: 1066;
}

/* 6. Pied */
.modal-footer {
    background-color: #f8fafc !important;
    border-top: 1px solid #e5e9f2 !important;
    padding: 1rem 1.25rem;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* 7. Champs de formulaire — visibles et cliquables */
.modal input.form-control,
.modal select.form-select,
.modal textarea.form-control {
    background-color: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid #ced4da !important;
    border-radius: 10px !important;
    padding: 0.55rem 0.85rem !important;
    font-size: 0.95rem;
    position: relative;
    z-index: 1067;
    pointer-events: auto;
    display: block;
    width: 100%;
}

.modal input.form-control::placeholder,
.modal textarea.form-control::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

.modal input.form-control:focus,
.modal select.form-select:focus,
.modal textarea.form-control:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15) !important;
    outline: none !important;
}

/* 8. Boutons — cliquables */
.modal button,
.modal .btn {
    position: relative;
    z-index: 1067;
    pointer-events: auto;
}

/* 9. Labels et textes dans le modal */
.modal .form-label {
    color: #1e293b !important;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    display: block;
}

.modal .form-text,
.modal .text-muted {
    color: #64748b !important;
}

.modal .modal-title {
    color: #0f172a;
    font-weight: 700;
    margin: 0;
}

/* 10. Cartes "type d'entretien" cliquables */
.modal .entretien-type-card {
    background: #f8fafc;
    border: 2px solid #e5e9f2;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    display: block;
    transition: all 0.18s ease;
    position: relative;
    z-index: 1067;
    pointer-events: auto;
}

.modal .entretien-type-card:hover {
    border-color: #2563eb;
}

.modal .entretien-type-card.selected {
    border-color: #2563eb;
    background: #e8efff;
}

.modal .entretien-type-card input {
    display: none;
}

.modal .entretien-type-card i {
    font-size: 1.4rem;
    display: block;
    margin-bottom: 4px;
    color: #64748b;
}

.modal .entretien-type-card.selected i {
    color: #2563eb;
}

.modal .entretien-type-card span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
}

/* 11. Mode sombre : adapter le modal */
[data-bs-theme="dark"] .modal-content {
    background-color: #16213b !important;
    color: #dfe6f3 !important;
    border-color: #23314f !important;
}

[data-bs-theme="dark"] .modal-body {
    background-color: #16213b !important;
    color: #dfe6f3 !important;
}

[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-footer {
    background-color: #111a2f !important;
    border-color: #23314f !important;
}

[data-bs-theme="dark"] .modal .form-label {
    color: #dfe6f3 !important;
}

[data-bs-theme="dark"] .modal .modal-title {
    color: #f4f7fc;
}

[data-bs-theme="dark"] .modal input.form-control,
[data-bs-theme="dark"] .modal select.form-select,
[data-bs-theme="dark"] .modal textarea.form-control {
    background-color: #0a1120 !important;
    color: #dfe6f3 !important;
    border-color: #23314f !important;
}

[data-bs-theme="dark"] .modal input.form-control::placeholder,
[data-bs-theme="dark"] .modal textarea.form-control::placeholder {
    color: #94a3bd !important;
}

[data-bs-theme="dark"] .modal .entretien-type-card {
    background: #0a1120;
    border-color: #23314f;
}

[data-bs-theme="dark"] .modal .entretien-type-card span {
    color: #dfe6f3;
}

[data-bs-theme="dark"] .modal .entretien-type-card.selected {
    background: rgba(77, 139, 255, 0.16);
    border-color: #4d8bff;
}

[data-bs-theme="dark"] .modal .modal-header.entretien-modal-header {
    background: linear-gradient(135deg, #15803d 0%, #22c55e 100%) !important;
}

/* 12. Petits écrans : le modal prend toute la largeur */
@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .modal-content {
        border-radius: 12px !important;
    }
}

/* Bouton menu mobile : trois traits qui se transforment en croix (X) */
.navbar-toggler .burger { position: relative; display: block; width: 24px; height: 18px; }
.navbar-toggler .burger span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: #fff;
  transition: top 0.3s ease, transform 0.3s ease, opacity 0.2s ease;
}
.navbar-toggler .burger span:nth-child(1) { top: 0; }
.navbar-toggler .burger span:nth-child(2) { top: 8px; }
.navbar-toggler .burger span:nth-child(3) { top: 16px; }
.navbar-toggler.is-open .burger span:nth-child(1),
.navbar-toggler[aria-expanded="true"] .burger span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.navbar-toggler.is-open .burger span:nth-child(2),
.navbar-toggler[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar-toggler.is-open .burger span:nth-child(3),
.navbar-toggler[aria-expanded="true"] .burger span:nth-child(3) { top: 8px; transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) {
  .navbar-toggler .burger span { transition: none; }
}

/* Bouton menu sans cadre carré (ni bordure, ni halo au toucher) */
.navbar-toggler { border: 0; background: transparent; }
.navbar-toggler:focus,
.navbar-toggler:focus-visible { outline: none; box-shadow: none; }

