/* ============================================================
   CyberMedic — Design System
   Dark mode default | Light mode toggle
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
  --bg-primary: #0A0E1A;
  --bg-secondary: #0F1526;
  --bg-card: #131929;
  --bg-card-hover: #1a2035;
  --bg-input: #0d1320;
  --border: rgba(255,255,255,0.07);
  --border-focus: rgba(0,102,255,0.5);
  --text-primary: #F0F4FF;
  --text-secondary: #8892AA;
  --text-muted: #4A5568;
  --primary: #0066FF;
  --primary-dark: #0052CC;
  --primary-light: #3385FF;
  --primary-glow: rgba(0,102,255,0.25);
  --accent: #00C2A8;
  --accent-dark: #009988;
  --accent-glow: rgba(0,194,168,0.2);
  --danger: #FF4757;
  --warning: #FFB347;
  --success: #00C896;
  --info: #00AAFF;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-primary: 0 4px 20px rgba(0,102,255,0.3);
  --shadow-accent: 0 4px 20px rgba(0,194,168,0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 68px;
  --sidebar-width: 260px;
}

[data-theme="light"] {
  --bg-primary: #F0F4FF;
  --bg-secondary: #E8EEFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFF;
  --bg-input: #F8FAFF;
  --border: rgba(0,0,0,0.08);
  --border-focus: rgba(0,85,204,0.4);
  --text-primary: #0A0E1A;
  --text-secondary: #475069;
  --text-muted: #8892AA;
  --primary: #0055CC;
  --primary-dark: #003D99;
  --primary-light: #2970DD;
  --primary-glow: rgba(0,85,204,0.15);
  --accent: #00A896;
  --accent-dark: #007D6E;
  --accent-glow: rgba(0,168,150,0.15);
  --shadow-sm: 0 2px 8px rgba(0,0,50,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,50,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,50,0.12);
  --shadow-primary: 0 4px 20px rgba(0,85,204,0.2);
  --shadow-accent: 0 4px 20px rgba(0,168,150,0.15);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 17px;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }

img { max-width: 100%; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background var(--transition);
}
[data-theme="light"] .navbar {
  background: rgba(240, 244, 255, 0.92);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo svg { width: 32px; height: 32px; }
.nav-logo img { height: 36px; max-height: 36px; width: auto; object-fit: contain; flex-shrink: 0; }
.nav-logo .logo-icon { color: var(--primary); }
.logo-cm { color: var(--text-primary); }
.logo-medic { color: var(--accent); }

.nav-alpha-badge {
  font-size: 0.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 2px 6px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
  align-self: flex-start;
  margin-top: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover {
  color: var(--text-primary);
  background: var(--border);
}

/* PC Care — lien nav dédié avec glow pulsé */
.nav-pccare-link {
  color: #FF9F47 !important;
  font-weight: 600 !important;
  position: relative;
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 1.25;
  padding: 2px 0;
}
.nav-pccare-main {
  display: block;
  white-space: nowrap;
  text-align: center;
}
.nav-pccare-sub {
  display: block;
  white-space: nowrap;
  text-align: center;
  font-size: 0.60rem;
  font-weight: 500;
  color: rgba(255,159,71,0.78);
  letter-spacing: 0.025em;
  line-height: 1;
  margin-top: 1px;
}
.nav-links.open .nav-pccare-link {
  display: flex !important;
}
.nav-pccare-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 8px rgba(255,159,71,0.5);
  animation: pccare-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pccare-pulse {
  0%, 100% { opacity: 0.3; box-shadow: 0 0 5px rgba(255,159,71,0.4); }
  50%       { opacity: 1;   box-shadow: 0 0 14px rgba(255,159,71,0.8), 0 0 28px rgba(255,159,71,0.25); }
}

/* ── Dropdown navigation ── */
.has-dropdown { position: relative; list-style: none; }
.has-dropdown > a { display: flex !important; align-items: center; gap: 5px; }
/* Caret toujours visible, tourne à l'ouverture */
.nav-caret {
  font-size: 0.72rem;
  transition: transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  background: var(--border);
  border-radius: 4px;
  opacity: 0.75;
  flex-shrink: 0;
}
.has-dropdown:hover .nav-caret,
.has-dropdown:focus-within .nav-caret { transform: rotate(180deg); opacity: 1; background: var(--primary); color: #fff; }

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  z-index: 2000;
  min-width: 460px;
  max-width: calc(100vw - 32px);
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  animation: dd-fade-in 0.15s ease;
}
/* Pont invisible pour ne pas perdre le hover entre le lien et le panneau */
.nav-dropdown::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 12px;
}
@keyframes dd-fade-in {
  from { opacity:0; transform:translateY(-6px); }
  to   { opacity:1; transform:translateY(0); }
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown { display: flex; }

/* Lien "Tous nos services" en tête du dropdown */
.nav-dd-all {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  background: transparent !important;
  border-bottom: 1px solid var(--border);
  border-radius: 0 !important;
  text-decoration: none;
  transition: background var(--transition);
  white-space: nowrap;
}
.nav-dd-all:hover { background: rgba(0,194,168,0.08) !important; color: var(--primary) !important; }
.nav-dd-all span { opacity: 0.6; font-size: 0.8rem; font-weight: 400; }

/* Corps à deux colonnes */
.nav-dd-body {
  display: flex;
  flex-direction: row;
  padding: 12px;
  gap: 0;
}

.nav-dd-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 200px;
}
.nav-dd-col a {
  padding: 6px 10px !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-secondary) !important;
  font-size: 0.84rem !important;
  font-weight: 400 !important;
  white-space: nowrap;
  transition: all var(--transition);
  text-decoration: none;
  background: transparent !important;
  display: block !important;
}
.nav-dd-col a:hover {
  color: var(--text-primary) !important;
  background: var(--border) !important;
}
.nav-dd-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  padding: 6px 10px 3px;
}
.nav-dd-sep {
  width: 1px;
  background: var(--border);
  margin: 0 10px;
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  font-size: 1.1rem;
}
.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.4s ease;
}
.btn:hover::before { left: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(0,102,255,0.4);
  color: white;
}
.btn-primary:active { transform: translateY(0); }

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  box-shadow: var(--shadow-accent);
}
.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(0,194,168,0.35);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-primary);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
}
.btn-ghost:hover { color: var(--text-primary); background: var(--border); }

.btn-lg { padding: 15px 32px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; border-radius: var(--radius-sm); }
.btn-xl { padding: 18px 42px; font-size: 1.15rem; border-radius: var(--radius-lg); }

.btn:disabled, .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  pointer-events: none;
}
.btn-soon { position: relative; }
.btn-soon[disabled]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-soon:hover::after { opacity: 1; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}
.card:hover { border-color: rgba(0,102,255,0.2); }
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card-hover);
}

/* ── Section base ── */
.section {
  padding: 90px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  color: var(--text-secondary);
  text-align: center;
  font-size: 1.05rem;
  margin-bottom: 56px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(0,102,255,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0,194,168,0.1) 0%, transparent 50%),
    var(--bg-primary);
  animation: heroPulse 8s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,102,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,102,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-glow);
  border: 1px solid rgba(0,102,255,0.3);
  color: var(--primary-light);
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
  animation: fadeInDown 0.6s ease;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.7s ease 0.1s both;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.3s both;
}

/* ── Stats bar ── */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 24px;
}
.stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.stat-item { padding: 16px; }
.stat-value {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }

/* ── Steps (How it works) ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: calc(16.66% + 16px);
  right: calc(16.66% + 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.3;
}
.step-card {
  text-align: center;
  padding: 42px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,102,255,0.3);
  box-shadow: var(--shadow-primary);
}
.step-num {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.step-icon { font-size: 2.8rem; margin-bottom: 18px; display: block; }
.step-title { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 0.95rem; color: var(--text-secondary); }

/* ── Services grid ── */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.service-card {
  flex: 0 0 260px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-glow), var(--accent-glow));
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}
.service-card:hover::after { opacity: 1; }
.service-icon { font-size: 2.6rem; margin-bottom: 14px; display: block; position: relative; z-index: 1; }
.service-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  position: relative; z-index: 1;
}
.service-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  position: relative; z-index: 1;
  min-height: 36px;
}
.service-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  position: relative; z-index: 1;
  margin-top: auto;
  padding-top: 12px;
}
.service-price-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
  position: relative; z-index: 1;
}

/* ── Benefits ── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: all var(--transition);
}
.benefit-card:hover {
  border-color: rgba(0,102,255,0.25);
  transform: translateX(4px);
}
.benefit-icon {
  width: 52px; height: 52px;
  background: var(--primary-glow);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.benefit-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.benefit-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

/* ── Tech Recruitment ── */
.recruit-section {
  background: linear-gradient(135deg, rgba(0,102,255,0.08) 0%, rgba(0,194,168,0.06) 100%);
  border: 1px solid rgba(0,102,255,0.15);
  border-radius: var(--radius-xl);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.recruit-perks { display: flex; flex-direction: column; gap: 16px; margin: 24px 0; }
.recruit-perk {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}
.recruit-perk-icon {
  width: 32px; height: 32px;
  background: var(--accent-glow);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.stars { color: #FFB347; font-size: 1rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-text {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
}
.author-name { font-size: 0.9rem; font-weight: 700; }
.author-meta { font-size: 0.78rem; color: var(--text-muted); }

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: rgba(0,102,255,0.3); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  gap: 16px;
  transition: color var(--transition);
}
.faq-item:hover .faq-question { color: var(--primary); }
.faq-chevron {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: var(--text-muted);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--primary); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 24px 20px;
}

/* ── Footer ── */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 56px 24px 32px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 0.88rem; color: var(--text-secondary); margin-top: 12px; line-height: 1.6; max-width: 280px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 10px; transition: color var(--transition); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Modals ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.modal-title { font-size: 1.3rem; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
  flex-shrink: 0;
}
.modal-close:hover { background: var(--danger); color: white; }
.modal-body { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.8; }
.modal-body h3 { color: var(--text-primary); font-size: 1rem; margin: 20px 0 8px; }
.modal-body ul { padding-left: 20px; list-style: disc; }
.modal-body ul li { margin-bottom: 6px; }

/* ── Forms ── */
.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
select.form-control option,
select option {
  background: var(--bg-input);
  color: var(--text-primary);
}
textarea.form-control { resize: vertical; min-height: 100px; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}
.form-check-label { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.form-check-label a { color: var(--primary); }

.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 4px; }
.form-success { font-size: 0.8rem; color: var(--success); margin-top: 4px; }

/* ── Auth Pages ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 24px;
  background:
    radial-gradient(ellipse 80% 60% at 30% 0%, rgba(0,102,255,0.1) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(0,194,168,0.07) 0%, transparent 50%),
    var(--bg-primary);
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
}
.auth-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.auth-subtitle { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 32px; }
.auth-divider {
  text-align: center;
  position: relative;
  margin: 24px 0;
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  position: relative;
  background: var(--bg-card);
  padding: 0 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.88rem; color: var(--text-secondary); }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* Boutons SSO Google / Microsoft */
.btn-sso {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  border: 1.5px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.btn-sso:hover {
  border-color: var(--primary);
  background: var(--bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.btn-sso-google:hover { border-color: #4285F4; }
.btn-sso-microsoft:hover { border-color: #00a4ef; }

/* Role selector */
.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.role-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.role-card:hover { border-color: var(--primary); background: var(--primary-glow); }
.role-card.active { border-color: var(--primary); background: var(--primary-glow); }
.role-card .role-icon { font-size: 2rem; margin-bottom: 10px; display: block; }
.role-card .role-name { font-size: 0.9rem; font-weight: 700; }
.role-card .role-desc { font-size: 0.78rem; color: var(--text-secondary); margin-top: 4px; }

/* Steps indicator */
.steps-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  justify-content: center;
}
.step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all var(--transition);
}
.step-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}
.step-dot.done { background: var(--accent); }

/* ── Dashboard layout ── */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--nav-height);
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  position: fixed;
  top: var(--nav-height);
  bottom: 0;
  left: 0;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}
.sidebar-nav { padding: 20px 12px; flex: 1; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  margin-bottom: 4px;
}
.sidebar-nav a:hover { color: var(--text-primary); background: var(--border); }
.sidebar-nav a.active { color: var(--primary); background: var(--primary-glow); font-weight: 600; }
.sidebar-nav a .nav-icon { font-size: 1.1rem; flex-shrink: 0; }

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}

.dashboard-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 32px;
  min-width: 0;
}
.dashboard-header {
  margin-bottom: 28px;
}
.dashboard-title { font-size: 1.6rem; font-weight: 800; }
.dashboard-subtitle { font-size: 0.9rem; color: var(--text-secondary); margin-top: 4px; }

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card-value { font-size: 1.9rem; font-weight: 800; color: var(--primary); }
.stat-card-label { font-size: 0.82rem; color: var(--text-secondary); margin-top: 4px; }
.stat-card-icon { font-size: 1.4rem; margin-bottom: 10px; opacity: 0.8; }

/* Panel */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.panel-title { font-size: 1.05rem; font-weight: 700; }

/* Table */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
thead tr { border-bottom: 2px solid var(--border); }
th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(0,102,255,0.03); color: var(--text-primary); }

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-pending { background: rgba(255,179,71,0.15); color: var(--warning); }
.badge-accepted { background: rgba(0,170,255,0.15); color: var(--info); }
.badge-in_progress { background: rgba(0,102,255,0.15); color: var(--primary-light); }
.badge-completed { background: rgba(0,200,150,0.15); color: var(--success); }
.badge-cancelled { background: rgba(255,71,87,0.15); color: var(--danger); }
.badge-online { background: rgba(0,200,150,0.15); color: var(--success); }
.badge-offline { background: rgba(136,146,170,0.15); color: var(--text-muted); }
.badge-active { background: rgba(0,200,150,0.1); color: var(--success); }
.badge-inactive { background: rgba(255,71,87,0.1); color: var(--danger); }

/* Mission wizard */
.wizard-steps {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 4px;
}
.wizard-step {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}
.wizard-step.active { background: var(--bg-card); color: var(--primary); box-shadow: var(--shadow-sm); }
.wizard-step.done { color: var(--accent); }

/* Pricing grid (tech) */
.pricing-table th, .pricing-table td { text-align: right; }
.pricing-table th:first-child, .pricing-table td:first-child { text-align: left; }
.price-cell { font-weight: 700; color: var(--text-primary); }
.net-cell { color: var(--success); font-weight: 700; }
.commission-cell { color: var(--warning); font-weight: 600; }

/* Online toggle */
.online-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all var(--transition);
  margin-bottom: 16px;
}
.toggle-switch {
  width: 44px; height: 24px;
  background: var(--text-muted);
  border-radius: 12px;
  position: relative;
  transition: background var(--transition);
  flex-shrink: 0;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition);
}
.toggle-switch.on { background: var(--success); }
.toggle-switch.on::after { transform: translateX(20px); }
.toggle-label { font-size: 0.9rem; font-weight: 600; }
.toggle-status { font-size: 0.8rem; color: var(--text-secondary); }

/* Admin panel */
.admin-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 4px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.admin-tab:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.admin-tab.active { background: var(--bg-card); color: var(--primary); box-shadow: var(--shadow-sm); }

/* Notification toast */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 360px;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-info { border-left: 3px solid var(--primary); }

/* Loading spinner */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state p { font-size: 0.9rem; }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.5s ease both; }
.fade-in-d1 { animation-delay: 0.1s; }
.fade-in-d2 { animation-delay: 0.2s; }
.fade-in-d3 { animation-delay: 0.3s; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .recruit-section { grid-template-columns: 1fr; padding: 36px; }
  .benefits-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    max-height: calc(100vh - var(--nav-height));
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    padding: 12px 20px 24px;
    z-index: 999;
    gap: 2px;
    overflow-y: auto;
  }
  /* Bouton retour fixe (drill-down) — entre le header nav et le panneau */
  .nav-back-fixed {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    height: 44px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: left;
  }
  /* En mode drill-down : panneau décalé sous le bouton retour */
  .nav-links.open.drilling {
    top: calc(var(--nav-height) + 44px);
    max-height: calc(100vh - var(--nav-height) - 44px);
  }
  .nav-links.open li { list-style: none; }
  .nav-links.open a, .nav-links.open li a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); }
  /* Dropdown fermé par défaut — tap sur le lien parent pour ouvrir */
  .nav-links.open .nav-dropdown { display: none !important; }
  /* Dropdown ouvert quand .expanded sur le li parent */
  .nav-links.open .has-dropdown.expanded .nav-dropdown {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: none !important;
    border: none !important;
    border-left: 2px solid var(--border) !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 0 4px 0 !important;
    background: transparent !important;
    transform: none !important;
    min-width: auto !important;
    width: 100% !important;
    animation: none !important;
    gap: 0 !important;
    overflow: visible !important;
  }
  .nav-links.open .has-dropdown.expanded .nav-dd-body {
    flex-direction: column !important;
    padding: 2px 0 4px 10px !important;
  }
  .nav-links.open .has-dropdown.expanded .nav-dd-sep { display: none !important; }
  .nav-links.open .has-dropdown.expanded .nav-dd-col { min-width: auto; }
  .nav-links.open .has-dropdown.expanded .nav-dd-all { border-radius: 0 !important; padding: 8px 10px !important; }
  /* Caret */
  .nav-links.open .nav-caret { display: inline-flex !important; width: 14px; height: 14px; font-size: 0.62rem; }
  /* Drill-down : panneau structuré avec sous-sections */
  .nav-links.open .nav-drill-panel { list-style: none; width: 100%; }
  .nav-links.open .nav-drill-panel .nav-dd-all {
    display: block; padding: 10px 12px; font-weight: 600;
    color: var(--primary); border-bottom: 1px solid var(--border); margin-bottom: 6px;
  }
  .nav-links.open .nav-drill-panel .nav-dd-all span { display: none; }
  .nav-links.open .nav-drill-panel .nav-dd-body {
    display: flex !important; flex-direction: column !important; gap: 0;
  }
  .nav-links.open .nav-drill-panel .nav-dd-sep { display: none !important; }
  .nav-links.open .nav-drill-panel .nav-dd-col { min-width: 0 !important; width: 100%; }
  .nav-links.open .nav-drill-panel .nav-dd-label {
    display: block; font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--text-muted); padding: 14px 12px 4px;
  }
  .nav-links.open .nav-drill-panel a {
    display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  }
  /* Boutons mobiles (Connexion + CTA) pleine largeur */
  .nav-links.open .btn {
    display: block !important;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    margin-top: 4px;
  }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .sidebar { transform: translateX(-100%); transition: transform var(--transition); }
  .sidebar.open { transform: translateX(0); }
  .dashboard-main { margin-left: 0; padding: 20px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .service-card { flex: 0 0 calc(50% - 10px); }
  .role-selector { grid-template-columns: 1fr; }
  .admin-tabs { gap: 2px; }
  .admin-tab { padding: 8px 12px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .service-card { flex: 0 0 calc(50% - 10px); }
  .stats-row { grid-template-columns: 1fr 1fr; }
}

/* Mobile nav toggle */
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
}
@media (max-width: 768px) { .menu-toggle { display: flex; } }

/* Utility */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.gap-8 { gap: 8px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.gap-12 { gap: 12px; }
.full-width { width: 100%; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.highlight-box {
  background: var(--primary-glow);
  border: 1px solid rgba(0,102,255,0.2);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 0.88rem;
}

/* ══════════════════════════════════════════════
   AMÉLIORATIONS UI — Phase 2
   ══════════════════════════════════════════════ */

/* Transitions plus douces globales */
* { transition-timing-function: cubic-bezier(0.4,0,0.2,1); }

/* Card hover amélioré */
.card:hover, .step-card:hover, .service-card:hover, .benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.step-card:hover { box-shadow: var(--shadow-primary); }

/* Testimonial cards avec photo */
.testimonial-photo {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  border-color: rgba(0,102,255,0.2);
}

/* Step cards avec image */
.step-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

/* Hero avec image de fond */
#hero.has-bg-img .hero-bg {
  background: none;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,14,26,0.75);
}

/* Section recrutement avec image de fond */
.recruit-bg {
  position: relative;
  overflow: hidden;
}
.recruit-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  pointer-events: none;
}
[data-theme="light"] .recruit-bg-img {
  opacity: 0.35;
}

/* Section confiance */
.trust-section {
  padding: 80px 24px;
  background: linear-gradient(135deg, rgba(0,102,255,0.06) 0%, rgba(0,194,168,0.04) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.trust-img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.trust-points { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.trust-point {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}
.trust-point:hover { border-color: rgba(0,102,255,0.25); transform: translateX(4px); }
.trust-point-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.trust-point-icon.blue { background: var(--primary-glow); }
.trust-point-icon.green { background: rgba(0,200,150,0.12); }
.trust-point-icon.orange { background: rgba(255,179,71,0.12); }
.trust-point-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 3px; }
.trust-point-desc { font-size: 0.84rem; color: var(--text-secondary); }

/* Section dividers gradient */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  opacity: 0.2;
  margin: 0;
}

/* Gradient headlines */
.headline-gradient {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Boutons améliorés */
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,102,255,0.45);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,194,168,0.4);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow);
  transform: translateY(-1px);
}

/* Canvas particules */
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* CyberBot — Chatbot FAQ */
.cyberbot-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 8000;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(0,102,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.cyberbot-btn:hover { transform: scale(1.08); box-shadow: 0 8px 36px rgba(0,102,255,0.55); }
.cyberbot-label {
  position: absolute;
  bottom: 68px;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.cyberbot-panel {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 8000;
  width: 320px;
  height: min(420px, calc(100dvh - var(--nav-height, 68px) - 120px));
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  overflow: hidden;
}
.cyberbot-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}
.cyberbot-header {
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cyberbot-header h4 { font-size: 0.95rem; font-weight: 700; margin: 0; flex: 1; }
.cyberbot-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.2);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.cyberbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bot-msg {
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.84rem;
  line-height: 1.5;
  max-width: 86%;
  border-bottom-left-radius: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  align-self: flex-start;
}
.user-msg {
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.84rem;
  line-height: 1.5;
  max-width: 86%;
  border-bottom-right-radius: 4px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  align-self: flex-end;
}
.cyberbot-input-area {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  display: flex;
  gap: 8px;
}
.cyberbot-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 0.84rem;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
}
.cyberbot-send {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Responsive trust section */
@media (max-width: 768px) {
  .trust-inner { grid-template-columns: 1fr; gap: 32px; }
  .cyberbot-panel { width: calc(100vw - 32px); right: 16px; }
  .cyberbot-btn { bottom: 20px; right: 20px; }
}

/* ══════════════════════════════════════════════════════
   LIGHT MODE — Corrections zones avec fond sombre forcé
   ══════════════════════════════════════════════════════ */

/* Hero section : overlay toujours sombre → texte toujours clair */
#hero .hero-title,
#hero h1 {
  color: #F0F4FF;
}
#hero .hero-sub {
  color: rgba(224,230,255,0.85);
}
#hero .hero-badge {
  color: #93bbff;
}
#hero .btn-outline {
  color: #F0F4FF;
  border-color: rgba(240,244,255,0.45);
}
#hero .btn-outline:hover {
  background: rgba(240,244,255,0.12);
  border-color: rgba(240,244,255,0.75);
  color: #ffffff;
}

/* Light mode — corrections recruit-stat (fond quasi invisible en clair) */
[data-theme="light"] .recruit-stat {
  background: rgba(0,0,80,0.05);
}

/* Light mode — hero-badge border plus lisible */
[data-theme="light"] #hero .hero-badge {
  background: rgba(0,102,255,0.3);
  border-color: rgba(100,170,255,0.5);
  color: #b8d4ff;
}

/* Light mode — hero-floating-card texte (déjà géré fond blanc, mais texte secondary peut être foncé) */
[data-theme="light"] .hero-floating-card {
  color: var(--text-secondary);
}

/* Light mode — navbar scrollée (fond blanc → liens visibles) */
[data-theme="light"] .navbar {
  box-shadow: 0 2px 16px rgba(0,0,80,0.08);
}

/* Light mode — section-title gradient lisible */
[data-theme="light"] .section-title {
  color: var(--text-primary);
}

/* Light mode — recruit-section texte inline (hardcodé light) */
[data-theme="light"] .recruit-section h2 {
  color: var(--text-primary);
}

/* Testimonial photo - assure bonne forme circulaire */
.testimonial-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* ── Pulse nom connecté (global) ── */
@keyframes cm-pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(0,153,255,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(0,153,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,153,255,0); }
}
.cm-pulse { animation: cm-pulse-ring 2s ease-out infinite; border-radius: 8px; }

/* ══════════════════════════════════════════════
   Responsive Mobile / Tablette
   ══════════════════════════════════════════════ */

/* html font-size réduit sur mobile → hiérarchie préservée */
@media (max-width: 768px) {
  html { font-size: 16px; }
}

/* Sidebar tablette (768-900px) : largeur réduite, padding ajusté */
@media (min-width: 769px) and (max-width: 900px) {
  :root { --sidebar-width: 210px; }
  .dashboard-main { padding: 24px 18px; }
}

/* Nav-actions : compact sur mobile */
@media (max-width: 640px) {
  .nav-actions .btn-ghost { display: none; }
  .nav-actions .btn-primary { padding: 9px 12px; font-size: 0.78rem; }
}
/* Nav très petit écran (Pixel 6 ≈ 412px) : padding + gap réduits,
   CTA masqué — le hero a son propre bouton bien visible */
@media (max-width: 480px) {
  .nav-inner { padding: 0 12px; gap: 8px; }
  .nav-actions .btn-primary { display: none; }
  .nav-actions .btn-accent { display: none; }
  /* btn-xl natif ≈ 450px sur 412px → réduire pour ne pas déborder */
  .btn-xl { padding: 14px 20px; font-size: 1rem; }
}

/* Menu hamburger mobile : éléments cachés sur desktop */
.nav-mobile-sep { display: none; }
.nav-mobile-only { display: none; }
@media (max-width: 768px) {
  .nav-links.open .nav-mobile-sep {
    display: block;
    height: 1px;
    background: var(--border);
    margin: 6px 0;
  }
  .nav-links.open .nav-mobile-only { display: block; }
  /* Connexion : texte blanc bien visible, pas gris */
  .nav-links.open .nav-mobile-only a:not(.btn) {
    color: var(--text-primary) !important;
    font-weight: 600;
  }
  /* CTA : pleine largeur, texte blanc gras */
  .nav-links.open .nav-mobile-only a.btn {
    display: block !important;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    margin-top: 6px;
    color: #fff !important;
    font-weight: 700 !important;
  }
}

/* Service cards : 1 colonne sous 400px */
@media (max-width: 400px) {
  .service-card { flex: 0 0 100%; }
}

/* Grilles 2 colonnes inline : 1 colonne sur mobile */
@media (max-width: 768px) {
  .dual-col { grid-template-columns: 1fr !important; }
}

/* Table-wrap : indicateur de scroll horizontal sur mobile */
@media (max-width: 768px) {
  .table-wrap {
    position: relative;
  }
  .table-wrap::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 32px;
    background: linear-gradient(to right, transparent, var(--bg-primary, #070d1a));
    pointer-events: none;
    border-radius: 0 var(--radius-md, 8px) var(--radius-md, 8px) 0;
  }
}

/* Flex-between : wrap sur mobile pour éviter superpositions */
@media (max-width: 480px) {
  .flex-between { flex-wrap: wrap; gap: 10px; }
}

/* Admin toolbar : colonne sur très petit écran */
@media (max-width: 480px) {
  .admin-toolbar { flex-direction: column; align-items: stretch; }
  .admin-toolbar input[type=text],
  .admin-toolbar select { width: 100%; min-width: 0; }
}
