/* ==================== MA CERTIF' PRO SANTÉ — DESIGN SYSTEM ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 10px 30px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: white;
  color: var(--slate-800);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }

/* ==================== HEADER ==================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 0 1.5rem;
}
.header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-icon {
  width: 44px; height: 44px;
  object-fit: contain;
}
.logo-text h1 { font-size: 1.05rem; font-weight: 700; line-height: 1.2; color: white; transition: color 0.3s; }
.header.scrolled .logo-text h1 { color: var(--slate-800); }
.logo-text p { font-size: 0.7rem; color: rgba(255,255,255,0.8); transition: color 0.3s; font-weight: 500; letter-spacing: 0.03em; }
.header.scrolled .logo-text p { color: var(--teal-600); }

.nav { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1024px) { .nav { display: flex; } }
.nav-btn {
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  font-size: 0.85rem; font-weight: 500;
  background: transparent; border: none; cursor: pointer;
  transition: all 0.2s; color: rgba(255,255,255,0.9);
}
.header.scrolled .nav-btn { color: var(--slate-600); }
.header.scrolled .nav-btn:hover { background: var(--slate-100); }
.nav-btn:hover { background: rgba(255,255,255,0.1); }
.nav-btn.active { background: var(--teal-500); color: white; box-shadow: 0 4px 15px rgba(20,184,166,0.4); }
.nav-btn.highlight { color: var(--amber-400) !important; font-weight: 600; }

.header-cta {
  display: none;
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  color: var(--slate-900); border: none; border-radius: 10px;
  font-weight: 700; font-size: 0.875rem; cursor: pointer;
  box-shadow: 0 4px 15px rgba(245,158,11,0.3);
  transition: all 0.2s;
}
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(245,158,11,0.5); }
@media (min-width: 1024px) { .header-cta { display: block; } }

.menu-toggle {
  padding: 0.5rem; background: transparent; border: none;
  cursor: pointer; color: white; transition: color 0.3s;
}
.header.scrolled .menu-toggle { color: var(--slate-800); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle svg { width: 24px; height: 24px; }

.mobile-menu {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: white; border-top: 1px solid var(--slate-200);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  padding: 1rem; flex-direction: column;
}
.mobile-menu.open { display: flex; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }
.mobile-menu a {
  display: block; padding: 0.75rem 1rem; border-radius: 8px;
  font-weight: 500; color: var(--slate-600); transition: all 0.2s;
}
.mobile-menu a:hover { background: var(--slate-100); }

/* ==================== BUTTONS ==================== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, var(--teal-500), var(--emerald-500));
  color: white; border: none; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; cursor: pointer;
  box-shadow: 0 8px 25px rgba(20,184,166,0.35); transition: all 0.3s;
  font-family: inherit;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(20,184,166,0.45); }
.btn-primary svg { width: 20px; height: 20px; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
  color: white; border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius); font-weight: 600; font-size: 1rem;
  cursor: pointer; transition: all 0.3s; font-family: inherit;
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); }

.btn-amber {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  color: var(--slate-900); border: none; border-radius: var(--radius);
  font-weight: 700; font-size: 1.05rem; cursor: pointer;
  box-shadow: 0 8px 25px rgba(245,158,11,0.35); transition: all 0.3s;
  font-family: inherit;
}
.btn-amber:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(245,158,11,0.5); }

.btn-white {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white; color: var(--teal-600); border: none;
  border-radius: var(--radius); font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.btn-white:hover { background: rgba(255,255,255,0.9); }

/* ==================== SECTIONS ==================== */
.section { padding: 5rem 1.5rem; }
.section-light { background: linear-gradient(180deg, white, var(--slate-50)); }
.section-dark { background: var(--slate-900); color: white; }
.section-gradient { background: linear-gradient(180deg, var(--slate-50), white); }

.container { max-width: 1280px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-badge {
  display: inline-block; padding: 0.375rem 1rem;
  border-radius: 9999px; font-size: 0.85rem; font-weight: 500; margin-bottom: 1rem;
}
.badge-teal { background: rgba(20,184,166,0.1); color: var(--teal-700); }
.badge-emerald { background: rgba(16,185,129,0.1); color: var(--emerald-600); }
.badge-blue { background: rgba(59,130,246,0.1); color: var(--blue-600); }
.badge-rose { background: rgba(244,63,94,0.1); color: var(--rose-600); }
.badge-teal-dark { background: rgba(20,184,166,0.2); color: var(--teal-400); }

.section-title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700; margin-bottom: 1rem;
}
.section-desc {
  font-size: 1.1rem; color: var(--slate-600);
  max-width: 48rem; margin: 0 auto; line-height: 1.7;
}
.section-dark .section-desc { color: var(--slate-400); }

/* ==================== ARTICLE PAGES ==================== */
.article-page { padding-top: 80px; min-height: 100vh; }
.article-header {
  background: linear-gradient(135deg, var(--slate-900), var(--blue-900), #0d4f4f);
  padding: 4rem 1.5rem; color: white;
}
.article-header-inner { max-width: 800px; margin: 0 auto; }
.article-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--teal-400); margin-bottom: 2rem; font-weight: 500; transition: gap 0.2s;
}
.article-back:hover { gap: 0.75rem; }
.article-back svg { width: 20px; height: 20px; }

.article-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.article-category {
  padding: 0.375rem 0.75rem;
  background: rgba(20,184,166,0.2); color: var(--teal-400);
  border-radius: 8px; font-size: 0.85rem; font-weight: 500;
}
.article-date { color: var(--slate-400); font-size: 0.9rem; }
.article-title { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 700; line-height: 1.2; }

.article-content { max-width: 800px; margin: 0 auto; padding: 3.5rem 1.5rem; }
.article-content p { color: var(--slate-600); font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.5rem; }
.article-content h2 { font-size: 1.4rem; font-weight: 700; color: var(--slate-800); margin-top: 2.5rem; margin-bottom: 1rem; }
.article-content h3 { font-size: 1.15rem; font-weight: 600; color: var(--slate-800); margin-top: 2rem; margin-bottom: 0.75rem; }
.article-content ul, .article-content ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.article-content li { color: var(--slate-600); margin-bottom: 0.5rem; line-height: 1.7; }
.article-content strong { color: var(--slate-800); }
.article-content a { color: var(--teal-600); text-decoration: underline; }
.article-content blockquote {
  border-left: 4px solid var(--teal-500);
  padding: 1rem 1.5rem; margin: 1.5rem 0;
  background: var(--slate-50); border-radius: 0 var(--radius) var(--radius) 0;
}
.article-content blockquote p { color: var(--slate-700); font-style: italic; margin-bottom: 0; }

.article-cta {
  background: linear-gradient(135deg, var(--slate-50), rgba(20,184,166,0.05));
  border: 1px solid var(--slate-200);
  border-radius: 16px; padding: 2.5rem; text-align: center; margin-top: 3rem;
}
.article-cta h3 { font-size: 1.25rem; font-weight: 700; color: var(--slate-800); margin-bottom: 0.5rem; }
.article-cta p { color: var(--slate-600); margin-bottom: 1.25rem; font-size: 1rem !important; }
.article-cta .btn-primary { font-size: 1rem; padding: 0.75rem 1.5rem; }

/* ==================== LEGAL PAGES ==================== */
.legal-page { padding-top: 80px; min-height: 100vh; }
.legal-header {
  background: linear-gradient(135deg, var(--slate-900), var(--blue-900));
  padding: 4rem 1.5rem; color: white; text-align: center;
}
.legal-header h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 700; }
.legal-content { max-width: 800px; margin: 0 auto; padding: 3.5rem 1.5rem; }
.legal-content h2 { font-size: 1.4rem; font-weight: 700; color: var(--slate-800); margin-top: 2.5rem; margin-bottom: 1rem; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p { color: var(--slate-600); margin-bottom: 1rem; line-height: 1.7; }
.legal-content ul { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.legal-content li { color: var(--slate-600); margin-bottom: 0.5rem; }
.legal-content a { color: var(--teal-600); text-decoration: underline; }

/* ==================== FOOTER ==================== */
.footer {
  background: var(--slate-900); color: var(--slate-400);
  padding: 4rem 1.5rem 2rem;
}
.footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem; margin-bottom: 3rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-brand-icon {
  width: 40px; height: 40px;
  object-fit: contain;
}
.footer-brand-text h3 { color: white; font-size: 1rem; font-weight: 700; }
.footer-brand-text p { font-size: 0.7rem; color: var(--teal-400); }

.footer-col h4 { color: white; font-weight: 600; margin-bottom: 1rem; font-size: 0.95rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--slate-400); font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--teal-400); }
.footer-col p { font-size: 0.9rem; line-height: 1.6; }

.footer-disclaimer {
  max-width: 1280px; margin: 0 auto;
  padding: 1.25rem 0; border-top: 1px solid var(--slate-700);
}
.footer-disclaimer p {
  font-size: 0.75rem; color: var(--slate-500); line-height: 1.5; text-align: center;
}

.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  padding-top: 1.25rem; border-top: 1px solid var(--slate-700);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  font-size: 0.85rem;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--slate-500); transition: color 0.2s; }
.footer-links a:hover { color: var(--teal-400); }

/* ==================== UTILITIES ==================== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
