/* ========== RESET & VARIABLES ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

:root {
  /* --- Nouvelle palette SaaS 2026 --- */
  --primary: #6366f1;
  --primary-dark: #4338ca;
  --primary-light: #eef2ff;
  --primary-glow: rgba(99, 102, 241, .12);
  --accent: #f97316;
  --accent-light: #fff7ed;
  --success: #10b981;
  --success-light: #ecfdf5;
  --text: #0f172a;
  --text-light: #64748b;
  --text-white: #f8fafc;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f0d1a;
  --bg-surface: #fff;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .04);
  --shadow-md: 0 4px 16px rgba(99, 102, 241, .08), 0 1px 3px rgba(0, 0, 0, .06);
  --shadow-lg: 0 8px 32px rgba(99, 102, 241, .1), 0 2px 8px rgba(0, 0, 0, .04);
  --shadow-xl: 0 20px 60px rgba(99, 102, 241, .12);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --transition: 0.25s cubic-bezier(.4, 0, .2, 1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;
  --container: 1180px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-alt);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

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

a:hover {
  color: var(--primary-dark)
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text)
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  border-radius: 0 0 var(--radius-sm) 0;
  transition: top .2s
}

.skip-link:focus {
  top: 0
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(0, 0, 0, .04);
  transition: box-shadow var(--transition)
}

.site-header.scrolled {
  box-shadow: 0 1px 12px rgba(99, 102, 241, .06)
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em
}

.logo-sub {
  font-weight: 500;
  color: var(--primary);
  opacity: .8
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2px
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: .9rem;
  color: var(--text-light);
  transition: all var(--transition)
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-light)
}

.nav-item.active>.nav-link {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600
}

.dropdown-arrow {
  transition: transform var(--transition);
  opacity: .5
}

.has-dropdown {
  position: relative
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: -8px;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .2s ease;
  list-style: none
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0)
}

.has-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg)
}

.dropdown-link {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  color: var(--text-light);
  transition: all var(--transition)
}

.dropdown-link:hover,
.dropdown-link.active {
  background: var(--primary-light);
  color: var(--primary)
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition)
}

/* Removed legacy hero styles to prevent conflicts */

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: .92rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: -.01em
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 12px rgba(99, 102, 241, .3)
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, .35);
  color: #fff
}

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

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light)
}

.btn-green {
  background: var(--primary);
  color: #fff
}

.btn-green:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  color: #fff
}

/* ========== STATS ROW ========== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 56px
}

.stat {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition)
}

.stat:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md)
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2px
}

.stat-label {
  font-size: .82rem;
  color: var(--text-light);
  font-weight: 500
}

/* ========== SECTIONS ========== */
.section {
  padding: 80px 0
}

.section-alt {
  background: var(--bg)
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 52px
}

.section-header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  margin-bottom: 14px;
  letter-spacing: -.02em
}

.section-header p {
  color: var(--text-light);
  font-size: 1.02rem
}

.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--primary);
  margin-bottom: 10px;
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: var(--radius-full)
}

/* ========== CARDS ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #a78bfa);
  opacity: 0;
  transition: opacity var(--transition)
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent
}

.card:hover::before {
  opacity: 1
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem
}

.card-icon.teal {
  background: var(--primary-light);
  color: var(--primary)
}

.card-icon.amber {
  background: var(--accent-light);
  color: var(--accent)
}

.card-icon.blue {
  background: #eff6ff;
  color: #3b82f6
}

.card-icon.purple {
  background: #f5f3ff;
  color: #8b5cf6
}

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
  font-weight: 700
}

.card p {
  color: var(--text-light);
  font-size: .92rem;
  line-height: 1.7
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 600;
  font-size: .88rem;
  color: var(--primary)
}

.card-link:hover {
  gap: 10px
}

/* ========== DEPARTMENTS ========== */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px
}

.dept-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: all var(--transition)
}

.dept-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md)
}

.dept-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1
}

.dept-info h3 {
  font-size: .95rem;
  margin-bottom: 1px
}

.dept-info p {
  font-size: .78rem;
  color: var(--text-light)
}

/* ========== PAGE CONTENT ========== */
.page-hero {
  padding: 52px 0 36px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light)
}

.page-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 12px;
  letter-spacing: -.02em
}

.page-hero p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-light);
  margin-bottom: 18px;
  flex-wrap: wrap
}

.breadcrumb a {
  color: var(--primary)
}

.breadcrumb span {
  opacity: .4
}

.content-section {
  padding: 56px 0
}

.content-wrapper {
  max-width: 760px;
  margin: 0 auto
}

.content-wrapper h2 {
  font-size: 1.45rem;
  margin: 36px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  letter-spacing: -.01em
}

.content-wrapper h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0
}

.content-wrapper h3 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
  color: var(--primary-dark)
}

.content-wrapper p {
  margin-bottom: 16px;
  color: #334155;
  line-height: 1.85;
  font-size: .96rem
}

.content-wrapper ul,
.content-wrapper ol {
  margin: 0 0 20px 24px;
  color: #334155
}

.content-wrapper li {
  margin-bottom: 8px;
  line-height: 1.7;
  font-size: .96rem
}

.info-box {
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  padding: 18px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-size: .92rem
}

.info-box.warning {
  background: var(--accent-light);
  border-color: var(--accent)
}

.info-box p {
  margin-bottom: 0
}

.info-box a {
  font-weight: 600
}

/* ========== CTA BANNER ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), #818cf8);
  padding: 56px 40px;
  text-align: center;
  color: #fff;
  border-radius: var(--radius-lg);
  margin: 40px 0;
  position: relative;
  overflow: hidden
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, .08), transparent 70%);
  pointer-events: none
}

.cta-banner h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 10px;
  color: #fff
}

.cta-banner p {
  color: rgba(255, 255, 255, .85);
  margin-bottom: 24px;
  font-size: 1rem
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15)
}

.cta-banner .btn-primary:hover {
  color: var(--primary-dark);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .2)
}

/* ========== TIMELINE ========== */
.timeline {
  position: relative;
  padding-left: 30px;
  margin: 28px 0
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-light), var(--primary), var(--primary-light))
}

.timeline-item {
  position: relative;
  padding-bottom: 28px
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border: 3px solid var(--primary-light);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .15)
}

.timeline-date {
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .06em
}

.timeline-item h3 {
  font-size: 1rem;
  margin: 4px 0 5px
}

.timeline-item p {
  color: var(--text-light);
  font-size: .88rem
}

/* ========== NEWS CARDS ========== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px
}

.news-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition)
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent
}

.news-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-light), #eff6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem
}

.news-card-body {
  padding: 22px 24px
}

.news-card-date {
  font-size: .76rem;
  color: var(--text-light);
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em
}

.news-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  line-height: 1.4
}

.news-card p {
  color: var(--text-light);
  font-size: .88rem;
  line-height: 1.6
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 56px 0 0;
  margin-top: 40px
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 14px
}

.footer-desc {
  color: rgba(255, 255, 255, .5);
  font-size: .88rem;
  margin-bottom: 14px;
  line-height: 1.7
}

.footer-disclaimer {
  color: rgba(255, 255, 255, .28);
  font-size: .73rem;
  line-height: 1.6;
  font-style: italic;
  border-top: 1px solid rgba(255, 255, 255, .05);
  padding-top: 12px;
  margin-top: 10px
}

.footer-col .footer-title {
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, .75);
  text-transform: uppercase;
  letter-spacing: .08em
}

.footer-col ul {
  list-style: none
}

.footer-col li {
  margin-bottom: 9px
}

.footer-col a {
  color: rgba(255, 255, 255, .45);
  font-size: .86rem;
  transition: color var(--transition)
}

.footer-col a:hover {
  color: var(--primary)
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: .78rem;
  color: rgba(255, 255, 255, .28)
}

.footer-links-bottom a {
  color: rgba(255, 255, 255, .28);
  margin: 0 4px
}

.footer-links-bottom a:hover {
  color: var(--primary)
}

.sep {
  margin: 0 6px;
  opacity: .3
}

/* ========== 404 ========== */
.error-page {
  text-align: center;
  padding: 120px 24px
}

.error-page h1 {
  font-size: 6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.error-page h2 {
  font-size: 1.5rem;
  margin-bottom: 14px
}

.error-page p {
  color: var(--text-light);
  margin-bottom: 28px
}

/* ========== EDITORIAL GRID ========== */
.editorial-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: start
}

.editorial-main {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition)
}

.editorial-main:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent
}

.editorial-img {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden
}

.editorial-img-lg {
  height: 280px;
  background: linear-gradient(135deg, var(--primary-light), #e0e7ff, #f0f4ff);
  font-size: 4rem
}

.editorial-img-sm {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  font-size: 1.6rem
}

.editorial-cat {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em
}

.editorial-body {
  padding: 24px 28px
}

.editorial-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: var(--text-light);
  margin-bottom: 8px;
  font-weight: 500
}

.meta-sep {
  opacity: .3
}

.editorial-body h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  line-height: 1.35
}

.editorial-body h3 a {
  color: var(--text);
  transition: color var(--transition)
}

.editorial-body h3 a:hover {
  color: var(--primary)
}

.editorial-body>p {
  color: var(--text-light);
  font-size: .94rem;
  line-height: 1.7
}

.editorial-sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.editorial-sm {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: all var(--transition)
}

.editorial-sm:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md)
}

.editorial-sm h4 {
  font-size: .92rem;
  line-height: 1.4;
  font-weight: 600
}

.editorial-sm h4 a {
  color: var(--text);
  transition: color var(--transition)
}

.editorial-sm h4 a:hover {
  color: var(--primary)
}

/* ========== TOPIC CARDS ========== */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px
}

.topic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit
}

.topic-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: inherit
}

.topic-emoji {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
  transition: transform var(--transition)
}

.topic-card:hover .topic-emoji {
  transform: scale(1.15)
}

.topic-card h3 {
  font-size: .95rem;
  margin-bottom: 4px
}

.topic-card p {
  font-size: .78rem;
  color: var(--text-light);
  line-height: 1.5
}

/* ========== STATS LIGHT ========== */
.stats-row-light {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px
}

.stat-light {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition)
}

.stat-light:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md)
}

.stat-light-value {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px
}

.stat-light-label {
  font-size: .84rem;
  color: var(--text-light);
  font-weight: 500
}

/* ========== HERO ========== */
.hero {
  min-height: calc(100vh - 84px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0;
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-alt) 100%);
  text-align: center;
  overflow: hidden;
  position: relative
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 0;
  pointer-events: none
}

.hero>.container {
  position: relative;
  z-index: 1
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: .05em
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 20px;
  line-height: 1.15;
  color: var(--text)
}

.hero h1 .highlight {
  background: -webkit-linear-gradient(45deg, var(--primary), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto 40px;
  line-height: 1.6
}

/* ========== SEARCH BAR SAAS ========== */
.search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 100px;
  padding: 10px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
  transition: box-shadow var(--transition)
}

.search-bar:focus-within {
  box-shadow: 0 15px 50px -10px rgba(99, 102, 241, 0.15);
  border-color: var(--primary-light)
}

.search-field {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  min-width: 0
}

.search-field:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-light)
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 100%
}

.search-icon {
  font-size: 1.2rem;
  opacity: 0.5;
  margin-right: 12px;
  flex-shrink: 0
}

.search-field input,
.search-field select {
  width: 100%;
  min-width: 0;
  border: none;
  padding: 16px 0;
  font-size: 1.05rem;
  font-family: var(--font);
  color: var(--text);
  background: transparent;
  outline: none
}

.search-field input::placeholder {
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.search-field select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2394a3b8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 0px center;
  background-size: 12px;
  padding-right: 20px;
  white-space: nowrap;
  text-overflow: ellipsis
}

.search-btn {
  flex-shrink: 0;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
  height: 100%;
  border: none;
  cursor: pointer
}

/* Autocomplete custom */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin-top: 8px;
  z-index: 100;
  max-height: 250px;
  overflow-y: auto;
  display: none;
  text-align: left
}

.autocomplete-item {
  padding: 12px 20px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
  border-bottom: 1px solid var(--border-light)
}

.autocomplete-item:last-child {
  border-bottom: none
}

.autocomplete-item:hover,
.autocomplete-item.active {
  background: var(--primary-light);
  color: var(--primary)
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 80px 0
  }

  .hero h1 {
    font-size: 2.5rem
  }

  .search-bar {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 16px;
    background: var(--bg-surface)
  }

  .search-field {
    width: 100%
  }

  .search-field:not(:first-child)::before {
    display: none
  }

  .search-field:not(:last-child) {
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 8px
  }

  .search-input-wrapper {
    padding: 0 8px
  }

  .search-btn {
    width: 100%;
    margin-top: 12px;
    border-radius: var(--radius-md)
  }
}

/* ========== ANNUAIRE LAYOUT ========== */
.annuaire-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start
}

.annuaire-layout.no-sidebar {
  grid-template-columns: 1fr
}

.annuaire-sidebar {
  position: sticky;
  top: 84px
}

.annuaire-sidebar h3 {
  font-size: .95rem;
  margin-bottom: 14px
}

.filter-list {
  list-style: none
}

.filter-list li {
  margin-bottom: 2px
}

.filter-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  color: var(--text-light);
  transition: all var(--transition)
}

.filter-list a:hover {
  background: var(--primary-light);
  color: var(--primary)
}

.filter-count {
  background: var(--bg-alt);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600
}

/* ========== PRACTITIONER CARDS ========== */
.practitioner-card {
  display: flex;
  gap: 18px;
  padding: 20px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: all var(--transition);
  margin-bottom: 8px
}

.practitioner-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md)
}

.practitioner-avatar {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary-light), #e0e7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  color: var(--primary)
}

.practitioner-info h3 {
  font-size: 1.02rem;
  margin-bottom: 4px
}

.practitioner-info h3 a {
  color: var(--text);
  transition: color var(--transition)
}

.practitioner-info h3 a:hover {
  color: var(--primary)
}

.practitioner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: .82rem;
  margin-bottom: 6px
}

.practitioner-prof {
  color: var(--primary);
  font-weight: 600
}

.practitioner-spec {
  color: var(--text-light)
}

.practitioner-address,
.practitioner-tel {
  font-size: .85rem;
  color: var(--text-light);
  margin-top: 3px
}

.practitioner-tel a {
  color: var(--primary)
}

/* ========== FICHE ========== */
.fiche-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  max-width: 960px;
  margin: 0 auto;
  align-items: start
}

.fiche-card {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px
}

.fiche-avatar {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff
}

.fiche-profession {
  color: var(--primary);
  font-weight: 600;
  font-size: .95rem
}

.fiche-specialite {
  color: var(--text-light);
  font-size: .88rem
}

.fiche-details {
  display: flex;
  flex-direction: column;
  gap: 2px
}

.fiche-detail-row {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light)
}

.fiche-detail-row:last-child {
  border-bottom: none
}

.fiche-icon {
  font-size: 1.2rem;
  min-width: 28px;
  text-align: center;
  padding-top: 2px
}

.fiche-detail-row strong {
  display: block;
  font-size: .82rem;
  color: var(--text-light);
  margin-bottom: 2px
}

.fiche-detail-row p {
  margin: 0;
  font-size: .94rem;
  color: var(--text)
}

.fiche-detail-row a {
  color: var(--primary);
  font-weight: 600
}

.fiche-sidebar h3 {
  font-size: .95rem;
  margin: 20px 0 10px
}

.fiche-related {
  list-style: none
}

.fiche-related li {
  margin-bottom: 6px
}

.fiche-related a {
  font-size: .88rem;
  color: var(--text-light);
  transition: color var(--transition)
}

.fiche-related a:hover {
  color: var(--primary)
}

/* ========== DEPT GRID FULL ========== */
.dept-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px
}

.dept-card-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit
}

.dept-card-link:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  color: inherit
}

/* ========== PAGINATION ========== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light)
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: .88rem;
  color: var(--primary);
  background: var(--primary-light);
  transition: all var(--transition)
}

.pagination-link:hover {
  background: var(--primary);
  color: #fff
}

.pagination-info {
  font-size: .85rem;
  color: var(--text-light);
  font-weight: 500
}


/* ========== RESPONSIVE ========== */
@media(max-width:900px) {
  .nav-list {
    display: none
  }

  .mobile-toggle {
    display: flex
  }

  .main-nav.open .nav-list {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    padding: 20px;
    gap: 2px;
    z-index: 999;
    animation: slideIn .25s ease
  }

  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(-8px)
    }

    to {
      opacity: 1;
      transform: translateY(0)
    }
  }

  .main-nav.open .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px)
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px)
  }

  .hero {
    padding: 50px 0 40px
  }

  .hero h1 {
    font-size: 2rem
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr)
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center
  }

  .cards-grid,
  .news-grid {
    grid-template-columns: 1fr
  }

  .editorial-grid {
    grid-template-columns: 1fr
  }

  .topics-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .stats-row-light {
    grid-template-columns: repeat(2, 1fr)
  }

  .annuaire-layout {
    grid-template-columns: 1fr
  }

  .annuaire-sidebar {
    position: static
  }

  .fiche-layout {
    grid-template-columns: 1fr
  }

  .search-bar {
    flex-direction: column
  }

  .search-field {
    min-width: 100%
  }

  .dept-grid-full {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr))
  }
}

@media(max-width:480px) {
  .hero-actions {
    flex-direction: column
  }

  .btn {
    width: 100%;
    justify-content: center
  }

  .stats-row {
    grid-template-columns: 1fr 1fr
  }

  .stats-row-light {
    grid-template-columns: 1fr 1fr
  }

  .footer-grid {
    grid-template-columns: 1fr
  }

  .dept-grid {
    grid-template-columns: 1fr
  }

  .topics-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .editorial-sm {
    flex-direction: column;
    gap: 10px
  }

  .editorial-img-sm {
    width: 100%;
    height: 120px
  }

  .practitioner-card {
    flex-direction: column;
    gap: 12px
  }

  .fiche-card {
    flex-direction: column;
    text-align: center
  }

  .dept-grid-full {
    grid-template-columns: 1fr 1fr
  }

  .split-container {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* Nouvelles sections Homepage */
.split-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-container.reverse {
  direction: rtl;
}

.split-container.reverse>* {
  direction: ltr;
}

.split-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.split-content h2 {
  font-size: 2.25rem;
  color: var(--text);
  line-height: 1.2;
}

.split-content p {
  font-size: 1.125rem;
  color: var(--text-light);
  line-height: 1.6;
}

.split-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
  margin: 0 auto;
  display: block;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.05rem;
  color: var(--text);
}

.feat-icon {
  background: var(--primary-light);
  color: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Hauts de France Focus Section */
.section-hdf {
  padding: 4rem 0;
}

.hdf-wrapper {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 24px;
  padding: 3rem;
  color: white;
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.25);
  position: relative;
  overflow: hidden;
}

.hdf-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hdf-content h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.hdf-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hdf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hdf-stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}

.hdf-stat-val {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
}

.hdf-stat-lbl {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hdf-seo-text {
  font-size: 0.95rem !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  margin-bottom: 0 !important;
}

@media (max-width: 900px) {
  .hdf-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hdf-wrapper {
    padding: 2rem 1.5rem;
  }

  .hdf-content h2 {
    font-size: 1.8rem;
  }

  .hdf-stats {
    grid-template-columns: 1fr;
  }
}