/* ==========================================================================
   ER Interview Manager — styles personnalisés (par-dessus Bootstrap 5)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

:root {
  /* Palette officielle Experts Refuge, extraite du logo */
  --ink: #054547;
  --ink-soft: #3E6A6C;
  --ink-faint: #8CA6A7;
  --bg: #F4F9F8;
  --surface: #FFFFFF;
  --border: #DEEBE9;
  --accent: #0AD88D;
  --accent-dark: #08B075;
  --accent-soft: #E1FAF0;
  --danger: #D94A4A;
  --danger-soft: #FBEBEB;
  --warning: #C98A1F;
  --warning-soft: #FBF2E1;

  --bs-body-font-family: 'Inter', system-ui, sans-serif;
}

* { scroll-behavior: smooth; }

/* ---------------------------------------------------------------------- */
/* Barres de défilement — fines et discrètes, dans la palette du site,    */
/* au lieu de la barre grise épaisse par défaut du navigateur              */
/* ---------------------------------------------------------------------- */

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(5,69,71,0.22) transparent;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(5,69,71,0.22);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(5,69,71,0.38); background-clip: content-box; }

/* Sur fond sombre (barre latérale), une teinte claire et discrète */
.sidebar-nav {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.22) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.22);
  border: none;
  background-clip: padding-box;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.38); }

body {
  background:
    radial-gradient(circle at 6% 0%, rgba(10,216,141,0.035), transparent 32%),
    var(--bg);
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.55;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--ink);
  text-decoration: underline;
}

h1, h2, h3, h4, .navbar-brand, .card-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { margin-bottom: 6px; }

.form-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.form-control, .form-select {
  padding: 9px 13px;
  font-size: 14.5px;
  border-radius: 8px;
  border-color: var(--border);
}

.btn {
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 14px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active { transform: scale(0.97); }

.btn-erim-primary, .btn-erim-dark {
  padding: 10px 20px;
}

.btn-erim-primary:hover, .btn-erim-dark:hover {
  box-shadow: 0 3px 8px rgba(5,69,71,0.12);
}

.btn-sm { padding: 6px 13px; font-size: 12.5px; border-radius: 7px; }
.btn-sm svg { vertical-align: middle; margin-right: 4px; }

/* ------------------------------------------------------------------ */
/* Mouvements & interactivité                                          */
/* ------------------------------------------------------------------ */

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.reveal-on-load {
  opacity: 0;
  animation: fadeSlideUp 0.4s ease forwards;
}

.main-content { animation: fadeIn 0.3s ease both; }

.count-up { display: inline-block; }

/* ---------------------------------------------------------------------- */
/* Navbar                                                                  */
/* ---------------------------------------------------------------------- */

.navbar-erim {
  background: var(--ink);
  padding: 12px 0;
}

.navbar-erim .navbar-brand {
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.navbar-erim .navbar-brand .brand-logo {
  height: 30px;
  width: auto;
  display: block;
}

.navbar-erim .brand-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.2);
  margin: 0 2px;
}

.navbar-erim .brand-mark {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
}

.navbar-erim .nav-link {
  color: rgba(232,240,238,0.78) !important;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 14px !important;
  border-radius: 6px;
}

.navbar-erim .nav-link:hover,
.navbar-erim .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,0.08);
}

.navbar-erim .btn-logout {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(232,240,238,0.85);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
}
.navbar-erim .btn-logout:hover { color: #fff; border-color: rgba(255,255,255,0.4); }

/* ---------------------------------------------------------------------- */
/* Cards / panels                                                         */
/* ---------------------------------------------------------------------- */

.card-erim {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(11,42,58,0.04);
  transition: box-shadow 0.2s ease;
}

.card-erim:hover {
  box-shadow: 0 4px 12px rgba(11,42,58,0.06);
}

.card-erim .card-body { padding: 22px 24px; }
.card-erim .card-body.p-3 { padding: 18px 20px !important; }

.card-erim .card-header {
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFEFD 100%);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 15px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 6px;
}

.page-sub { color: var(--ink-soft); font-size: 14px; margin-top: 2px; }

/* ---------------------------------------------------------------------- */
/* Table                                                                  */
/* ---------------------------------------------------------------------- */

.table-erim thead th {
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  padding: 14px 16px;
}

.table-erim tbody td {
  vertical-align: middle;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
}

.table-erim tbody tr {
  transition: background 0.15s ease;
}

.table-erim tbody tr:nth-child(even) { background: rgba(5,69,71,0.012); }

.table-erim tbody tr:hover { background: rgba(18,184,134,0.05); }

/* Formsets et tableaux génériques (ex: choix QCM) : plus d'air */
.table td, .table th {
  padding: 12px 14px;
  vertical-align: middle;
}
.table .form-control, .table .form-select { min-width: 90px; }

/* ---------------------------------------------------------------------- */
/* Badges / pills — encode statut, difficulté, appréciation                */
/* ---------------------------------------------------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.12s ease;
}
.pill:hover { transform: translateY(-1px); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.pill-neutral { background: #EEF2F1; color: var(--ink-soft); }
.pill-accent  { background: var(--accent-soft); color: var(--accent-dark); }
.pill-warn    { background: var(--warning-soft); color: var(--warning); }
.pill-danger  { background: var(--danger-soft); color: var(--danger); }
.pill-ink     { background: rgba(11,42,58,0.08); color: var(--ink); }

.score-badge { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--ink-soft); }
.score-badge strong { color: var(--ink); font-size: 15px; }

/* ---------------------------------------------------------------------- */
/* Buttons                                                                */
/* ---------------------------------------------------------------------- */

.btn-erim-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
}
.btn-erim-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn-erim-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-weight: 600;
}
.btn-erim-dark:hover { background: #10394C; border-color: #10394C; color: #fff; }

/* ---------------------------------------------------------------------- */
/* Forms                                                                  */
/* ---------------------------------------------------------------------- */

.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ---------------------------------------------------------------------- */
/* Fiche récapitulative (impression)                                     */
/* ---------------------------------------------------------------------- */

.summary-block {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 18px;
  background: var(--surface);
}

.summary-block h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.print-header {
  display: none;
}

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .summary-block { border: 1px solid #ccc; break-inside: avoid; }
  a { text-decoration: none; color: inherit; }
  .print-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ink);
  }
  .print-header img { height: 34px; }
  .print-header span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--ink);
    font-size: 14px;
  }
}

/* ---------------------------------------------------------------------- */
/* Tableau de bord — statistiques en tête de la liste des entretiens      */
/* ---------------------------------------------------------------------- */

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.18s ease;
}

.stat-card:hover {
  box-shadow: 0 4px 14px rgba(5,69,71,0.06);
}

.stat-card::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
}

.stat-card.stat-total::before { background: var(--ink); }
.stat-card.stat-planned::before { background: #2E7FD1; }
.stat-card.stat-done::before { background: var(--accent); }
.stat-card.stat-selected::before { background: #B98A2B; }

.stat-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.stat-card .stat-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.stat-card.stat-total .stat-icon { background: rgba(5,69,71,0.08); color: var(--ink); }
.stat-card.stat-planned .stat-icon { background: rgba(46,127,209,0.12); color: #2E7FD1; }
.stat-card.stat-done .stat-icon { background: var(--accent-soft); color: var(--accent-dark); }
.stat-card.stat-selected .stat-icon { background: rgba(185,138,43,0.12); color: #B98A2B; }

.stat-card .stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}

.stat-card .stat-label {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------------------- */
/* Pagination                                                             */
/* ---------------------------------------------------------------------- */

.pagination .page-link {
  color: var(--ink);
  border-color: var(--border);
}
.pagination .page-item.active .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pagination .page-link:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

/* ---------------------------------------------------------------------- */
/* Auth page (login)                                                     */
/* ---------------------------------------------------------------------- */

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 12% 15%, rgba(18, 184, 134, 0.06), transparent 45%),
    var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px 32px;
  box-shadow: 0 4px 16px rgba(11,42,58,0.06);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
}

/* ---------------------------------------------------------------------- */
/* App shell — barre latérale + colonne principale + pied de page         */
/* ---------------------------------------------------------------------- */

.app-shell {
  min-height: 100vh;
  display: flex;
}

.main-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

.content-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding-top: 6px;
  padding-bottom: 6px;
}

/* --- Sidebar (utilisateur connecté) ------------------------------------ */

.sidebar {
  width: 268px;
  flex-shrink: 0;
  background: var(--ink);
  color: #E8F0EE;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 22px;
  color: #fff !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s ease;
}

.sidebar-brand:hover { background: rgba(255,255,255,0.04); }

.sidebar-brand img { height: 32px; width: auto; flex-shrink: 0; }

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.sidebar-brand-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
}

.sidebar-brand-subtitle {
  font-size: 11px;
  font-weight: 400;
  color: rgba(232,240,238,0.55);
  line-height: 1.3;
}

.sidebar-nav {
  flex: 1;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.sidebar-section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232,240,238,0.45);
  padding: 14px 12px 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10.5px 14px;
  border-radius: 8px;
  color: rgba(232,240,238,0.78);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-link svg { width: 17px; height: 17px; flex-shrink: 0; }

.sidebar-link:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
}

.sidebar-link.active {
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
}

.sidebar-footer {
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.sidebar-user-avatar {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.sidebar-user-role {
  font-size: 11px;
  color: rgba(232,240,238,0.55);
}

.sidebar .btn-logout {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(232,240,238,0.8);
  font-size: 12.5px;
  padding: 7px 10px;
  border-radius: 6px;
}
.sidebar .btn-logout:hover { color: #fff; border-color: rgba(255,255,255,0.35); }

/* --- Topbar (visiteur non connecté) ------------------------------------ */

.topbar-public {
  background: var(--ink);
  padding: 14px 0;
}

.topbar-public .navbar-brand {
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  text-decoration: none;
}

.topbar-public .navbar-brand img { height: 28px; width: auto; }

/* --- Footer -------------------------------------------------------------*/

.app-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 26px 0;
  margin-top: auto;
}

.app-footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
}

.app-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  color: var(--ink);
}

.app-footer .footer-brand img { height: 19px; }

.app-footer a { color: var(--ink-soft); text-decoration: none; transition: color 0.15s ease; }
.app-footer a:hover { color: var(--accent-dark); }

.app-footer .footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.app-footer .footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------- */
/* Landing page                                                           */
/* ---------------------------------------------------------------------- */

.landing-hero {
  padding: 48px 44px 52px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 15% 20%, rgba(10,216,141,0.07), transparent 45%),
    var(--surface);
  border: 1px solid var(--border);
}

.landing-hero .role-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 16px;
}

.landing-hero h1 {
  font-size: 32px;
  max-width: 720px;
  line-height: 1.3;
}

.landing-hero p.lead {
  color: var(--ink-soft);
  max-width: 660px;
  font-size: 15.5px;
  margin-bottom: 0;
  margin-top: 10px;
}

.action-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.action-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.action-card:hover {
  box-shadow: 0 8px 20px rgba(5,69,71,0.08);
  border-color: var(--accent);
}

.action-card.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.action-card.primary p { color: rgba(232,240,238,0.75); }

.action-card .action-icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.action-card.primary .action-icon {
  background: var(--accent);
  color: var(--ink);
}

.action-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  word-break: break-word;
}

.action-card.primary h3 { color: #fff; }

.action-card p {
  color: var(--ink-soft);
  font-size: 14px;
  flex: 1;
  margin-bottom: 20px;
  word-break: break-word;
  line-height: 1.5;
}

.action-card .btn { width: 100%; white-space: normal; }

.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px 32px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}

.feature-item .feature-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 0;
  line-height: 1.5;
}

@media (max-width: 576px) {
  .landing-hero { padding: 28px 20px 32px; }
  .landing-hero h1 { font-size: 24px; }
}

/* ---------------------------------------------------------------------- */
/* Liste des entretiens — ligne enrichie                                 */
/* ---------------------------------------------------------------------- */

.candidate-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.candidate-avatar {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.candidate-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}

.candidate-sub {
  font-size: 12px;
  color: var(--ink-faint);
}

.table-erim.table-lg tbody td {
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 14px;
}

.table-erim.table-lg thead th {
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 11.5px;
}

.mobile-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  padding: 12px 16px;
}

.mobile-topbar .navbar-brand {
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  text-decoration: none;
}
.mobile-topbar .navbar-brand img { height: 24px; }

.mobile-topbar .sidebar-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.mobile-topbar .sidebar-toggle:hover { background: rgba(255,255,255,0.1); }

.app-shell.sidebar-open .sidebar-toggle { transform: rotate(90deg); }

.sidebar-backdrop {
  transition: opacity 0.2s ease;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,69,71,0.45);
  z-index: 1040;
}

@media (max-width: 991px) {
  .mobile-topbar { display: flex; }
  .sidebar {
    position: fixed;
    left: 0; top: 0;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 1050;
  }
  .app-shell.sidebar-open .sidebar { transform: translateX(0); }
  .app-shell.sidebar-open .sidebar-backdrop { display: block; }
}

/* ---------------------------------------------------------------------- */
/* Animations d'entrée échelonnées (mouvement au chargement de la page)   */
/* ---------------------------------------------------------------------- */

.stats-row .stat-card,
.action-cards-grid .action-card,
.feature-row .feature-item {
  opacity: 0;
  animation: fadeSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.stats-row .stat-card:nth-child(1) { animation-delay: 0.03s; }
.stats-row .stat-card:nth-child(2) { animation-delay: 0.09s; }
.stats-row .stat-card:nth-child(3) { animation-delay: 0.15s; }
.stats-row .stat-card:nth-child(4) { animation-delay: 0.21s; }

.action-cards-grid .action-card:nth-child(1) { animation-delay: 0.05s; }
.action-cards-grid .action-card:nth-child(2) { animation-delay: 0.13s; }
.action-cards-grid .action-card:nth-child(3) { animation-delay: 0.21s; }

.feature-row .feature-item:nth-child(1) { animation-delay: 0.05s; }
.feature-row .feature-item:nth-child(2) { animation-delay: 0.11s; }
.feature-row .feature-item:nth-child(3) { animation-delay: 0.17s; }
.feature-row .feature-item:nth-child(4) { animation-delay: 0.23s; }

.landing-hero .role-pill,
.landing-hero h1,
.landing-hero p.lead {
  opacity: 0;
  animation: fadeSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.landing-hero h1 { animation-delay: 0.05s; }
.landing-hero p.lead { animation-delay: 0.1s; }

/* Cartes révélées au scroll (voir script.js) */
.js-reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ---------------------------------------------------------------------- */
/* Fiches d'ajout (candidat / client) — encart simple                     */
/* ---------------------------------------------------------------------- */

.input-icon-group { position: relative; }
.input-icon-group svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--ink-faint);
  pointer-events: none;
}
.input-icon-group input { padding-left: 36px !important; }

/* ---------------------------------------------------------------------- */
/* Suppression — confirmation simple                                      */
/* ---------------------------------------------------------------------- */

.confirm-delete-wrap { max-width: 460px; margin: 24px auto 0; }
.confirm-delete-card .card-body { padding: 32px 30px; }

.notice-box {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 13.5px;
  line-height: 1.5;
  text-align: left;
}
.notice-box svg { flex-shrink: 0; width: 15px; height: 15px; margin-top: 2px; }
.notice-box.notice-blocked { background: var(--danger-soft); color: var(--danger); }
.notice-box.notice-neutral { background: #EEF2F1; color: var(--ink-soft); }
.notice-box.notice-info { background: var(--accent-soft); color: var(--accent-dark); }

.btn-danger-erim {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
  font-weight: 600;
}
.btn-danger-erim:hover { background: #C23C3C; border-color: #C23C3C; color: #fff; }
.btn-danger-erim:disabled,
.btn-danger-erim.disabled {
  background: var(--danger-soft);
  border-color: var(--danger-soft);
  color: var(--danger);
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
