/* ============================================
   BEASTIEJOB — styles.css
   Palette : indigo (#4F46E5) + accent lime (#84CC16)
   ============================================ */

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

/* === VARIABLES === */
:root {
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --primary-light: #6366F1;
  --secondary: #A5B4FC;
  --secondary-light: #EEF2FF;
  --accent: #84CC16;
  --accent-dark: #65A30D;
  --text: #1e1b4b;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #F5F3FF;
  --bg-card: #ffffff;
  --border: #E0E7FF;
  --shadow-sm: 0 2px 8px rgba(79,70,229,0.08);
  --shadow-md: 0 8px 32px rgba(79,70,229,0.12);
  --shadow-lg: 0 20px 60px rgba(79,70,229,0.18);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  --nav-height: 72px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { line-height: 1.75; color: var(--text-muted); }

/* === LAYOUT === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-lg); }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 var(--space-lg); }
.section { padding: var(--space-3xl) 0; }
.section-sm { padding: var(--space-2xl) 0; }
.section-light { background: var(--bg-soft); }

/* === NAVIGATION === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}
.navbar-logo span { color: var(--accent); }
.logo-icon {
  width: 38px; height: 38px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 22px; height: 22px; stroke: white; fill: none; stroke-width: 2.5; }
.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.navbar-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.navbar-nav a:hover { color: var(--primary); }
.navbar-nav a:hover::after { transform: scaleX(1); }
.navbar-nav a.active { color: var(--primary); }
.navbar-nav a.active::after { transform: scaleX(1); }
.navbar-cta {
  background: var(--primary);
  color: white !important;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}
.navbar-cta::after { display: none !important; }
.navbar-cta:hover { background: var(--primary-dark) !important; transform: translateY(-1px); }

/* Mobile menu */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid var(--border);
}
.navbar-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s;
  cursor: pointer;
  font-family: var(--font-body);
  white-space: nowrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(79,70,229,0.3);
  transition: all 0.25s;
  cursor: pointer;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,70,229,0.4); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  transition: all 0.25s;
  cursor: pointer;
}
.btn-outline:hover { background: var(--bg-soft); transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }
.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover { background: var(--bg-soft); transform: translateY(-2px); }
.btn-accent {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 16px rgba(132,204,22,0.3);
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(132,204,22,0.4); }
.btn-light {
  background: white;
  color: var(--primary);
}
.btn-light:hover { background: var(--secondary-light); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-primary { background: var(--secondary-light); color: var(--primary); }
.badge-accent { background: #F7FEE7; color: var(--accent-dark); }
.badge-success { background: #e8f8f0; color: #16a34a; }
.badge-warning { background: #fff7e6; color: #d97706; }
.badge-gray { background: #f1f5f9; color: #64748b; }

/* === CARDS === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-md);
}
.card-icon svg { width: 28px; height: 28px; stroke: var(--primary); fill: none; stroke-width: 2; }

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #F5F3FF 0%, #EEF2FF 40%, #E0E7FF 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(165,180,252,0.4) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -10%; left: -5%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge { margin-bottom: var(--space-lg); }
.hero-title { margin-bottom: var(--space-lg); }
.hero-title .highlight {
  color: var(--primary);
  position: relative;
}
.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}
.hero-desc { font-size: 1.1rem; margin-bottom: var(--space-xl); color: var(--text-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-bottom: var(--space-xl); }
.hero-stats {
  display: flex;
  gap: var(--space-xl);
}
.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.hero-stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual-main {
  width: 420px;
  height: 480px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-visual-main svg {
  width: 220px; height: 220px;
  stroke: rgba(255,255,255,0.9);
  fill: none; stroke-width: 1.2;
}
.hero-visual-main::before {
  content: '';
  position: absolute;
  top: -30%; right: -20%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.hero-card-float {
  position: absolute;
  background: white;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.hero-card-float.top-left { top: 20px; left: -30px; }
.hero-card-float.bottom-right { bottom: 40px; right: -20px; }
.hero-card-float .float-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-card-float .float-icon.blue { background: var(--secondary-light); }
.hero-card-float .float-icon.orange { background: #F7FEE7; }
.hero-card-float .float-icon.blue svg { stroke: var(--primary); }
.hero-card-float .float-icon.orange svg { stroke: var(--accent-dark); }
.hero-card-float .float-icon svg { width: 18px; height: 18px; fill: none; stroke-width: 2.2; }

/* === SEARCH BAR === */
.search-section {
  background: white;
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.search-box {
  display: flex;
  gap: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79,70,229,0.1);
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 16px 20px;
  border-right: 1px solid var(--border);
}
.search-field svg { width: 20px; height: 20px; stroke: var(--text-muted); fill: none; stroke-width: 2; flex-shrink: 0; }
.search-field input {
  border: none; outline: none; width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: transparent;
}
.search-field input::placeholder { color: #adb5bd; }
.search-box .btn { border-radius: 0; padding: 16px 32px; }

/* === SECTION HEADER === */
.section-header { text-align: center; margin-bottom: var(--space-2xl); }
.section-header .badge { margin-bottom: var(--space-md); }
.section-header h2 { margin-bottom: var(--space-md); }
.section-header p { font-size: 1.05rem; max-width: 580px; margin: 0 auto; }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; margin-bottom: var(--space-2xl); text-align: center; }

/* === STATS BAND === */
.stats-band {
  background: var(--primary);
  padding: var(--space-2xl) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}
.stat-item { color: white; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-number span { color: var(--secondary); }
.stat-label { font-size: 0.9rem; opacity: 0.85; }

/* === FEATURES GRID === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* === JOB CARDS === */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.job-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.job-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform 0.3s;
}
.job-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--secondary); }
.job-card:hover::before { transform: scaleY(1); }
.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}
.job-company-logo {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.job-company-logo svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 2; }
.job-card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.job-company { font-size: 0.88rem; color: var(--text-muted); margin-bottom: var(--space-sm); }
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.job-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.job-meta-item svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}
.job-salary { font-weight: 700; color: var(--primary); font-size: 1rem; }

/* === SECTEURS === */
.secteurs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.secteur-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}
.secteur-card:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.secteur-card:hover .secteur-icon svg { stroke: white; }
.secteur-card:hover .secteur-name { color: white; }
.secteur-card:hover .secteur-count { color: rgba(255,255,255,0.8); }
.secteur-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-md);
  transition: background 0.3s;
}
.secteur-card:hover .secteur-icon { background: rgba(255,255,255,0.2); }
.secteur-icon svg { width: 28px; height: 28px; stroke: var(--primary); fill: none; stroke-width: 2; }
.secteur-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; transition: color 0.3s; }
.secteur-count { font-size: 0.8rem; color: var(--text-muted); transition: color 0.3s; }

/* === PROCESS STEPS === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px; left: 12.5%; right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  z-index: 0;
}
.step-item { text-align: center; position: relative; z-index: 1; }
.step-number {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-md);
  box-shadow: 0 4px 16px rgba(79,70,229,0.3);
}
.step-title { font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 0.88rem; color: var(--text-muted); }

/* === TESTIMONIALS === */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.testimonial-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}
.testimonial-stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: var(--space-md); letter-spacing: 2px; }
.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-md);
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: white;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: 0.9rem; }
.author-role { font-size: 0.8rem; color: var(--text-muted); }

/* === CTA SECTION === */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.cta-section h2 { color: white; margin-bottom: var(--space-md); }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: var(--space-xl); max-width: 550px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; justify-content: center; gap: var(--space-md); flex-wrap: wrap; }

/* === PAGE HERO === */
.page-hero {
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
  background: linear-gradient(135deg, #F5F3FF 0%, #EEF2FF 100%);
  text-align: center;
}
.page-hero .badge { margin-bottom: var(--space-md); }
.page-hero h1 { margin-bottom: var(--space-md); }
.page-hero p { font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* === BREADCRUMB === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  justify-content: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { opacity: 0.5; }

/* === FILTERS === */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 150px;
}
.filter-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.filter-group select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: white;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.filter-group select:focus { border-color: var(--primary); }

/* === OFFRES PAGE === */
.offres-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.sidebar {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}
.sidebar-section { margin-bottom: var(--space-xl); }
.sidebar-section:last-child { margin-bottom: 0; }
.sidebar-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}
.checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
  transition: color 0.2s;
}
.checkbox-item:hover { color: var(--primary); }
.checkbox-item input { accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer; }
.checkbox-count {
  margin-left: auto;
  font-size: 0.78rem;
  background: var(--bg-soft);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 100px;
}

/* === CONSEILS PAGE === */
.conseils-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.conseil-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s;
}
.conseil-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.conseil-card-header {
  height: 200px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.conseil-card-header svg { width: 80px; height: 80px; stroke: rgba(255,255,255,0.9); fill: none; stroke-width: 1.2; }
.conseil-card-body { padding: var(--space-xl); }
.conseil-card-body h3 { margin-bottom: 10px; }
.conseil-card-body p { font-size: 0.9rem; margin-bottom: var(--space-md); }

/* === SPLIT SECTION === */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}
.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }
.split-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.split-content .badge { margin-bottom: var(--space-md); }
.split-content h2 { margin-bottom: var(--space-md); }
.split-content p { margin-bottom: var(--space-xl); }

/* === CHECK LIST === */
.check-list { display: flex; flex-direction: column; gap: var(--space-md); }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}
.check-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--secondary-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.check-icon svg { width: 14px; height: 14px; stroke: var(--primary); fill: none; stroke-width: 3; }
.check-text { font-size: 0.95rem; color: var(--text-muted); }
.check-text strong { color: var(--text); }

/* === PRICING CARDS === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.pricing-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  transition: all 0.3s;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}
.pricing-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 4px 20px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.pricing-price {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin: var(--space-md) 0;
  line-height: 1;
}
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.pricing-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.pricing-desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: var(--space-xl); }
.pricing-features { text-align: left; display: flex; flex-direction: column; gap: 12px; margin-bottom: var(--space-xl); }
.pricing-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--text-muted);
}
.pricing-feature svg { width: 16px; height: 16px; stroke: var(--primary); fill: none; stroke-width: 2.5; flex-shrink: 0; }
.pricing-feature.no svg { stroke: #e2e8f0; }
.pricing-feature.no { opacity: 0.5; }

/* === TEAM GRID === */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}
.team-card { text-align: center; }
.team-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  box-shadow: var(--shadow-md);
}
.team-name { font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: 0.85rem; color: var(--text-muted); }

/* === VALUES GRID === */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}
.value-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  transition: all 0.3s;
}
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.value-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.value-icon svg { width: 28px; height: 28px; fill: none; stroke-width: 2; }

/* === FAQ === */
.faq-list { display: flex; flex-direction: column; gap: var(--space-md); }
.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
  user-select: none;
}
.faq-question:hover { background: var(--bg-soft); }
.faq-icon { width: 24px; height: 24px; flex-shrink: 0; transition: transform 0.3s; }
.faq-icon svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 2.5; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 var(--space-xl);
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 var(--space-xl) var(--space-lg);
}
.faq-answer p { font-size: 0.95rem; }

/* === CONTACT FORM === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-2xl);
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: var(--space-xl); }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}
.contact-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 2; }
.contact-info-title { font-weight: 700; margin-bottom: 4px; }
.contact-info-value { font-size: 0.9rem; color: var(--text-muted); }
.form-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-md); }
.form-group.full { grid-column: span 2; }
.form-group label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  background: white;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #adb5bd; }

/* === FOOTER === */
footer {
  background: #0a1628;
  color: #8899aa;
  padding: var(--space-3xl) 0 var(--space-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
.footer-brand .navbar-logo { color: white; margin-bottom: var(--space-md); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: var(--space-lg); }
.footer-social { display: flex; gap: var(--space-md); }
.social-link {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.social-link:hover { border-color: var(--secondary); background: rgba(165,180,252,0.1); }
.social-link svg { width: 18px; height: 18px; stroke: #8899aa; fill: none; stroke-width: 2; transition: stroke 0.2s; }
.social-link:hover svg { stroke: var(--secondary); }
.footer-col h4 { color: white; font-size: 0.95rem; margin-bottom: var(--space-lg); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: #8899aa;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--secondary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.footer-bottom a { color: #8899aa; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--secondary); }

/* === REVEAL ON SCROLL === */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* === BG VARIATIONS === */
.bg-soft { background: var(--bg-soft); }
.bg-white { background: white; }

/* === ALERTS / NOTICES === */
.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}
.alert-success { background: #e8f8f0; border: 1px solid #bbf7d0; color: #16a34a; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }

/* ============================================
   BLOG STYLES
   ============================================ */

/* Blog Hero */
.blog-hero {
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-2xl);
  background: linear-gradient(135deg, #F5F3FF 0%, #EEF2FF 60%, #E0E7FF 100%);
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -5%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(165,180,252,0.35) 0%, transparent 70%);
}
.blog-hero-content {
  margin-bottom: var(--space-xl);
}
.blog-hero-tag {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-md);
}
.blog-hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: var(--space-md);
}
.blog-hero-content p {
  font-size: 1.1rem;
  max-width: 560px;
}
.blog-hero-stats {
  display: flex;
  gap: var(--space-2xl);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Blog Layout */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-2xl);
  align-items: start;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

/* Article Visual Placeholders */
.article-visual-placeholder {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
}
.article-visual-placeholder::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.article-visual-large { height: 280px; border-radius: var(--radius-md); }
.article-visual-medium { height: 180px; }
.article-visual-icon { font-size: 3rem; }
.article-visual-category {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.15);
  padding: 4px 14px;
  border-radius: 100px;
}

/* Article Featured */
.article-featured {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
  margin-bottom: var(--space-xl);
}
.article-featured:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.article-featured-visual { position: relative; }
.article-visual-large { height: 100%; min-height: 280px; border-radius: 0; }
.article-featured-content {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
}
.article-featured-content h2 {
  font-size: 1.5rem;
  line-height: 1.3;
}
.article-featured-content h2 a { color: var(--text); transition: color 0.2s; }
.article-featured-content h2 a:hover { color: var(--primary); }
.article-featured-content p { font-size: 0.95rem; }

/* Article Meta */
.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.article-category-badge {
  display: inline-block;
  background: var(--secondary-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.article-category-badge-lg {
  font-size: 0.82rem;
  padding: 6px 18px;
  margin-bottom: var(--space-md);
  display: inline-block;
}
.article-date, .article-read-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Article Author */
.article-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.article-author .author-avatar {
  width: 40px; height: 40px;
  font-size: 0.85rem;
}
.author-name { display: block; font-weight: 700; font-size: 0.88rem; color: var(--text); }
.author-role { display: block; font-size: 0.78rem; color: var(--text-muted); }

/* Article Card */
.article-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.article-card-content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}
.article-card-content h3 { font-size: 1.05rem; line-height: 1.4; }
.article-card-content h3 a { color: var(--text); transition: color 0.2s; }
.article-card-content h3 a:hover { color: var(--primary); }
.article-card-content p { font-size: 0.88rem; flex: 1; }
.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
  margin-top: var(--space-sm);
}
.article-author-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.author-avatar-mini {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.article-date-mini { font-size: 0.78rem; color: var(--text-muted); }
.article-read-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: var(--space-sm);
  transition: gap 0.2s;
}
.article-read-link:hover { gap: 8px; }

/* Filter Active */
.filter-active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--secondary-light);
  border: 1px solid var(--secondary);
  border-radius: var(--radius-sm);
  padding: 12px var(--space-md);
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
}
.filter-clear {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
}
.filter-clear:hover { text-decoration: underline; }

/* No results */
.no-results {
  text-align: center;
  padding: var(--space-3xl) 0;
}
.no-results p { margin-bottom: var(--space-xl); font-size: 1.05rem; }

/* Blog Sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}
.sidebar-widget {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}
.widget-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--secondary-light);
  color: var(--text);
}

/* Category List */
.category-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.2s;
}
.category-list a:hover, .category-list a.active {
  background: var(--bg-soft);
  color: var(--primary);
}
.cat-count {
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}

/* Recent Articles */
.recent-articles {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.recent-articles a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.recent-articles a:last-child { border-bottom: none; }
.recent-articles a:hover { color: var(--primary); }
.recent-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.recent-title { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); line-height: 1.4; margin-bottom: 2px; }
.recent-date { font-size: 0.75rem; color: var(--text-muted); }

/* Tags Cloud */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-item {
  background: var(--bg-soft);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: default;
}
.tag-item:hover { background: var(--secondary-light); color: var(--primary); }

/* Sidebar CTA */
.sidebar-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
  border: none !important;
  text-align: center;
}
.sidebar-cta-light {
  background: var(--bg-soft) !important;
  border: 1px solid var(--border) !important;
}
.sidebar-cta .sidebar-cta-icon { font-size: 2rem; margin-bottom: var(--space-sm); }
.sidebar-cta h3 { color: white; font-size: 1rem; margin-bottom: 8px; }
.sidebar-cta p { color: rgba(255,255,255,0.85); font-size: 0.85rem; margin-bottom: var(--space-md); }
.sidebar-cta .btn-primary { background: white; color: var(--primary); }
.sidebar-cta .btn-primary:hover { background: var(--secondary-light); }
.sidebar-cta-light .sidebar-cta-icon { font-size: 2rem; margin-bottom: var(--space-sm); }
.sidebar-cta-light h3 { color: var(--text); font-size: 1rem; margin-bottom: 8px; }
.sidebar-cta-light p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: var(--space-md); }

/* ============================================
   ARTICLE PAGE STYLES
   ============================================ */

/* Article Hero */
.article-hero {
  padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-2xl);
  background: linear-gradient(135deg, #F5F3FF 0%, #EEF2FF 100%);
  position: relative;
}
.article-hero .breadcrumb { justify-content: flex-start; }
.article-hero-content { max-width: 740px; }
.article-hero-content h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.25;
  margin-bottom: var(--space-md);
}
.article-hero-excerpt {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}
.article-hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.article-author-full {
  display: flex;
  align-items: center;
  gap: 14px;
}
.author-avatar-lg {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.author-name-lg { display: block; font-weight: 700; color: var(--text); }
.author-role-lg { font-size: 0.82rem; color: var(--text-muted); }
.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: white;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.article-info-pills {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Article Hero Visual */
.article-hero-visual {
  margin-top: var(--space-xl);
}
.article-hero-placeholder {
  height: 320px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
  overflow: hidden;
}
.article-hero-placeholder::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.article-hero-icon { font-size: 4rem; }
.article-hero-cat {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.15);
  padding: 6px 20px;
  border-radius: 100px;
}

/* Article Layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-2xl);
  align-items: start;
}

/* Article Content */
.article-content h2 {
  font-size: 1.6rem;
  margin: var(--space-xl) 0 var(--space-md);
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary-light);
}
.article-content h2:first-child { margin-top: 0; }
.article-intro {
  font-size: 1.08rem;
  color: var(--text);
  line-height: 1.85;
  border-left: 4px solid var(--primary);
  padding-left: var(--space-lg);
  margin-bottom: var(--space-xl);
  background: var(--bg-soft);
  padding: var(--space-lg) var(--space-xl);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-content p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.article-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--space-xl);
  padding-left: 0;
}
.article-list li {
  padding: 12px var(--space-md);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--secondary);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.article-callout {
  background: linear-gradient(135deg, var(--secondary-light) 0%, #E0E7FF 100%);
  border: 1px solid var(--secondary);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
}
.callout-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}
.article-callout p { font-size: 0.95rem; color: var(--text); margin: 0; }

/* Comparison Table */
.article-table-wrapper {
  overflow-x: auto;
  margin: var(--space-xl) 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.article-table th {
  background: var(--primary);
  color: white;
  padding: 14px var(--space-md);
  text-align: left;
  font-weight: 700;
  font-size: 0.85rem;
}
.article-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.article-table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.article-table td {
  padding: 12px var(--space-md);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: middle;
}
.article-table tr:last-child td { border-bottom: none; }
.article-table tr:nth-child(even) td { background: var(--bg-soft); }
.article-table tr:hover td { background: var(--secondary-light); }
.article-table td:first-child { font-weight: 600; color: var(--text); }

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-xl);
}
.tag-badge {
  background: var(--bg-soft);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Share */
.article-share {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  margin: var(--space-2xl) 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}
.share-btn {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  color: white;
  transition: all 0.2s;
}
.share-btn:hover { transform: translateY(-2px); }
.share-linkedin { background: #0077b5; }
.share-twitter { background: #1da1f2; }
.share-facebook { background: #1877f2; }

/* Author Bio */
.author-bio-box {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-top: var(--space-xl);
}
.author-bio-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  color: white;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.author-bio-content h3 { font-size: 1.1rem; margin-bottom: 4px; }
.author-bio-role { font-size: 0.82rem; color: var(--primary); font-weight: 600; display: block; margin-bottom: var(--space-sm); }
.author-bio-content p { font-size: 0.9rem; }

/* Article Sidebar */
.article-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* TOC */
.toc-widget { position: relative; }
.toc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.toc-list a {
  display: block;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.2s;
  border-left: 2px solid transparent;
}
.toc-list a:hover, .toc-list a.toc-active {
  background: var(--bg-soft);
  color: var(--primary);
  border-left-color: var(--primary);
}

/* Related list */
.related-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.related-list a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.related-list a:last-child { border-bottom: none; }
.related-list a:hover { color: var(--primary); }
.related-icon { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.related-title { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.related-time { font-size: 0.75rem; color: var(--text-muted); }

/* Related Articles Section */
.related-articles .articles-grid { margin-top: 0; }

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .secteurs-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-layout { grid-template-columns: 1fr 280px; }
  .article-layout { grid-template-columns: 1fr 260px; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .jobs-grid { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; }
  .split-section.reverse { direction: ltr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .offres-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .conseils-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .secteurs-grid { grid-template-columns: repeat(2, 1fr); }
  /* Blog */
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .article-featured { grid-template-columns: 1fr; }
  .article-visual-large { height: 200px; min-height: 200px; border-radius: var(--radius-md) var(--radius-md) 0 0; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .article-hero-meta { flex-direction: column; }
}
@media (max-width: 640px) {
  .navbar-nav { display: none; }
  .navbar-toggle { display: flex; }
  .navbar-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: white;
    padding: var(--space-xl);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: var(--space-lg);
    z-index: 999;
  }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .secteurs-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .conseils-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: var(--space-lg); align-items: center; }
  .search-box { flex-direction: column; }
  .search-field { border-right: none; border-bottom: 1px solid var(--border); }
  .search-box .btn { border-radius: var(--radius-sm); margin: var(--space-sm); }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; align-items: center; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: span 1; }
  /* Blog mobile */
  .articles-grid { grid-template-columns: 1fr; }
  .blog-hero-stats { flex-direction: column; gap: var(--space-md); }
  .article-share { flex-direction: column; align-items: flex-start; }
  .article-hero-placeholder { height: 180px; }
  .author-bio-box { flex-direction: column; }
}