/*
Theme Name: Microbiote Expert
Theme URI: https://esnaturopathiemaroc.com/microbiote
Author: ESNM
Description: Plateforme scientifique sur le microbiote intestinal pour professionnels de santé
Version: 1.0.0
License: Private
Text Domain: microbiote-expert
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   CSS VARIABLES — exact copy from microbiote-sjroysiu.manus.space
   ============================================================ */
:root {
  /* Core tokens — LIGHT MODE */
  --radius:              0.625rem;
  --background:          oklch(98% .005 120);
  --foreground:          oklch(15% .02 200);
  --card:                oklch(100% 0 0);
  --card-foreground:     oklch(15% .02 200);
  --popover:             oklch(100% 0 0);
  --popover-foreground:  oklch(15% .02 200);
  --primary:             oklch(32% .08 160);
  --primary-foreground:  oklch(98% .005 120);
  --secondary:           oklch(92% .025 150);
  --secondary-foreground:oklch(25% .06 160);
  --muted:               oklch(95% .01 130);
  --muted-foreground:    oklch(50% .02 180);
  --accent:              oklch(80% .08 85);
  --accent-foreground:   oklch(20% .04 80);
  --destructive:         oklch(57.7% .245 27.325);
  --destructive-foreground: oklch(98.5% 0 0);
  --border:              oklch(88% .015 140);
  --input:               oklch(88% .015 140);
  --ring:                oklch(32% .08 160);
  --sidebar:             oklch(22% .07 165);
  --sidebar-foreground:  oklch(92% .02 140);
  --sidebar-primary:     oklch(65% .1 162);
  --sidebar-primary-foreground: oklch(12% .02 200);
  --sidebar-accent:      oklch(30% .06 160);
  --sidebar-accent-foreground: oklch(92% .02 140);
  --sidebar-border:      oklch(30% .05 165);
  --sidebar-ring:        oklch(65% .1 162);

  /* Utility tokens */
  --emerald:             oklch(65% .15 162);
  --emerald-light:       oklch(75% .13 162);
  --teal:                oklch(62% .13 195);
  --shadow-sm:           0 1px 3px rgba(0,0,0,.06);
  --shadow:              0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:           0 8px 30px rgba(0,0,0,.1);
  --transition:          all 0.2s ease;
  --font-sans:           'Inter', system-ui, sans-serif;
  --font-serif:          'Playfair Display', Georgia, serif;
  --font-mono:           'JetBrains Mono', monospace;

  /* Template aliases */
  --color-primary:       oklch(32% .08 160);
  --color-text:          oklch(15% .02 200);
  --color-text-muted:    oklch(50% .02 180);
  --color-border:        oklch(88% .015 140);
  --color-bg-alt:        oklch(95% .01 130);
}


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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.2;
  font-weight: 700;
}

.font-mono { font-family: var(--font-mono); }
.font-sans { font-family: var(--font-sans); }
.font-serif { font-family: var(--font-serif); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
  transition: var(--transition);
}

.site-header.dark-header {
  background: var(--card);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.site-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #10b981, #14b8a6);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  flex-shrink: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.primary-nav > li { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--card-foreground);
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}

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

.nav-link .arrow {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  transition: transform 0.2s;
}

.primary-nav > li:hover .arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateX(-50%) translateY(-8px);
}

.primary-nav > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: calc(var(--radius) - 2px);
  transition: var(--transition);
}

.dropdown a:hover {
  background: var(--muted);
  color: var(--primary);
}

.dropdown-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  padding: 0.5rem 0.75rem 0.25rem;
}

.dropdown-desc {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.125rem;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: var(--muted);
  border-radius: 2rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  min-width: 180px;
  transition: var(--transition);
  text-decoration: none;
}

.header-search:hover {
  border-color: var(--primary);
  background: var(--background);
}

.header-search svg { flex-shrink: 0; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--foreground);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: var(--shadow); }

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

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

.btn-white {
  background: white;
  color: var(--primary);
  border-color: white;
}

.btn-white:hover { background: rgba(255,255,255,0.9); }

.btn-ghost-white {
  background: rgba(255,255,255,0.1);
  color: white;
  border-color: rgba(255,255,255,0.3);
}

.btn-ghost-white:hover { background: rgba(255,255,255,0.2); }

.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.8125rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.card-body { padding: 1.5rem; }
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); }

/* Glass card */
.glass {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 2rem;
  white-space: nowrap;
}

.badge-primary { background: var(--primary); color: white; }
.badge-secondary { background: var(--secondary); color: var(--secondary-foreground); }
.badge-emerald { background: #d1fae5; color: #065f46; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-rose { background: #ffe4e6; color: #9f1239; }
.badge-purple { background: #ede9fe; color: #5b21b6; }
.badge-sky { background: #e0f2fe; color: #075985; }
.badge-teal { background: #ccfbf1; color: #115e59; }
.badge-outline { background: transparent; border: 1px solid var(--border); color: var(--foreground); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #002116, #003e27 40%, #00595a);
  padding: 6rem 0 8rem;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(16,185,129,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(20,184,166,0.1) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2rem;
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, #6ee7b7, #5eead4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-item { padding: 0.5rem; }

.stat-value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* ============================================================
   FEATURE CARDS GRID
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--teal));
  opacity: 0;
  transition: opacity 0.2s;
}

.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 1rem;
}

.feature-link:hover { gap: 0.625rem; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--secondary);
  padding: 0.375rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--foreground);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   STRAIN CARDS
   ============================================================ */
.strain-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
}

.strain-card:hover { box-shadow: var(--shadow); }

.strain-name {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.strain-species {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  font-style: italic;
  margin-bottom: 1rem;
}

.strain-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.strain-indications { margin-bottom: 1rem; }

.strain-indications h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.strain-indications ul { list-style: none; }

.strain-indications li {
  font-size: 0.8125rem;
  color: var(--foreground);
  padding: 0.25rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.strain-indications li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--emerald);
}

.mecanism-list { list-style: none; margin: 0.75rem 0; }

.mecanism-list li {
  font-size: 0.8125rem;
  padding: 0.375rem 0;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
}

.mecanism-list li:last-child { border-bottom: none; }

.mecanism-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 700;
}

.study-ref {
  background: var(--muted);
  border-left: 3px solid var(--primary);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.8125rem;
  color: var(--foreground);
  font-style: italic;
  margin: 0.75rem 0;
}

.strain-summary {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.dosage-box {
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  margin-top: 1rem;
}

.dosage-box .label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.dosage-box .value {
  font-weight: 600;
  color: var(--foreground);
  font-size: 0.875rem;
}

/* ============================================================
   PAGE LAYOUT (Sidebar + Content)
   ============================================================ */
.page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-nav {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.sidebar-nav-header {
  padding: 1rem 1.25rem;
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}

.sidebar-nav-header h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--foreground);
}

.sidebar-nav a {
  display: block;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  color: var(--foreground);
  border-left: 3px solid transparent;
  transition: var(--transition);
}

.sidebar-nav a:hover, .sidebar-nav a.active {
  background: var(--muted);
  color: var(--primary);
  border-left-color: var(--primary);
}

/* ============================================================
   STUDIES / RESEARCH
   ============================================================ */
.study-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}

.study-card:hover { box-shadow: var(--shadow); }

.study-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.study-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.study-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ============================================================
   PATHOLOGY CARDS
   ============================================================ */
.pathology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pathology-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  display: block;
  transition: var(--transition);
}

.pathology-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.pathology-card .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.pathology-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.375rem;
  color: var(--foreground);
}

.pathology-card p {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

/* ============================================================
   TABS
   ============================================================ */
.tabs-nav {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.tab-btn:hover { color: var(--foreground); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============================================================
   NUTRACEUTICALS GRID
   ============================================================ */
.nutra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.nutra-pill {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  transition: var(--transition);
  cursor: pointer;
}

.nutra-pill:hover { background: rgba(255,255,255,0.2); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, #0d2818, #1a3a2a);
  padding: 4rem 0;
  color: white;
  margin-bottom: 0;
}

.page-hero .breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
}

.page-hero .breadcrumb a { color: rgba(255,255,255,0.6); }
.page-hero .breadcrumb a:hover { color: white; }
.page-hero .breadcrumb span { color: rgba(255,255,255,0.3); }

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: white;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.75);
  max-width: 700px;
  line-height: 1.7;
}

/* ============================================================
   INFO BOXES
   ============================================================ */
.info-box {
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border: 1px solid;
  margin: 1.5rem 0;
}

.info-box-emerald { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.info-box-blue { background: #eff6ff; border-color: #bfdbfe; color: #1e3a5f; }
.info-box-amber { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.info-box-rose { background: #fff1f2; border-color: #fecdd3; color: #881337; }

.info-box h4 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.info-box p { font-size: 0.875rem; line-height: 1.6; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, #0d2818, #1a3a2a);
  padding: 4rem 0;
  text-align: center;
  color: white;
}

.cta-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0a1a10;
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .site-logo { color: #34d399; margin-bottom: 0.75rem; }

.footer-brand p {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  padding: 0.3rem 0;
  transition: var(--transition);
}

.footer-col a:hover { color: #34d399; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-bar {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-bar input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 2rem;
  font-size: 1rem;
  color: var(--foreground);
  box-shadow: var(--shadow);
  outline: none;
}

.search-bar input:focus { border-color: var(--primary); }

.search-bar .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  pointer-events: none;
}

/* ============================================================
   TABLES
   ============================================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
  vertical-align: top;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--muted); }

/* ============================================================
   ACCORDION
   ============================================================ */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: none;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
  transition: var(--transition);
}

.accordion-btn:hover { background: var(--muted); }
.accordion-btn.open { background: var(--muted); }

.accordion-btn .chevron {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
  flex-shrink: 0;
  color: var(--muted-foreground);
}

.accordion-btn.open .chevron { transform: rotate(180deg); }

.accordion-content {
  display: none;
  padding: 1rem 1.25rem 1.25rem;
  background: var(--card);
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.accordion-content.open { display: block; }

/* ============================================================
   MOBILE / RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .sidebar { position: static; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .header-search { display: none; }
  .mobile-menu-btn { display: flex; }

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

  .features-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .section { padding: 3rem 0; }

  .hero { padding: 4rem 0 6rem; }

  .tabs-nav { gap: 0; }
  .tab-btn { padding: 0.625rem 0.875rem; font-size: 0.8125rem; }
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--background);
  padding: 1.5rem;
  overflow-y: auto;
}

.mobile-menu.open { display: block; }

.mobile-menu-close {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.mobile-menu-close button {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--foreground);
}

.mobile-nav a {
  display: block;
  padding: 0.875rem 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}

.mobile-nav .mobile-sub {
  padding: 0.375rem 0 0.375rem 1rem;
}

.mobile-nav .mobile-sub a {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  padding: 0.5rem 0;
  border-bottom: none;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }
.text-emerald { color: var(--emerald); }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

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

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* WP default helpers */
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { margin: 0 auto; }
.wp-caption { max-width: 100%; }

/* Strength indicator */
.strength-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
  margin: 0.375rem 0;
}

.strength-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--teal));
}

/* Connexion button */
.btn-connexion {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 0.875rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}
.btn-connexion:hover {
  background: var(--color-primary-dark, oklch(35% 0.1 160));
  color: #fff;
  transform: translateY(-1px);
}
