/* ============================================
   FORME QUOTIDIEN — Design éditorial magazine
   ============================================ */

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

/* ---- Variables ---- */
:root {
  --primary: #2D6A4F;
  --primary-dark: #1B4332;
  --primary-light: #52B788;
  --secondary: #95D5B2;
  --accent: #74C69D;
  --warm: #D8F3DC;
  --white: #FFFFFF;
  --off-white: #F8FAF8;
  --text: #1A2E22;
  --text-muted: #5A7268;
  --text-light: #8CA99C;
  --border: #D1E8DA;
  --border-light: #E8F5EC;
  --shadow-sm: 0 2px 8px rgba(45,106,79,0.08);
  --shadow-md: 0 8px 32px rgba(45,106,79,0.12);
  --shadow-lg: 0 20px 60px rgba(45,106,79,0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --max-width: 1200px;
  --gap: 24px;
}

/* ---- Reset & Base ---- */
*, *::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(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { font-size: 1rem; color: var(--text-muted); }

/* ---- Layout ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ============================================
   NAVIGATION
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo .logo-icon svg { color: white; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--warm);
  color: var(--primary);
}

.nav-cta {
  background: var(--primary) !important;
  color: white !important;
  border-radius: var(--radius-sm) !important;
  padding: 8px 18px !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  color: white !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

/* ============================================
   HERO — HOMEPAGE
   ============================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,67,50,0.85) 0%, rgba(45,106,79,0.6) 60%, rgba(82,183,136,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  color: white;
  padding: 60px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero h1 {
  color: white;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero h1 em {
  font-style: italic;
  color: var(--secondary);
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  max-width: 540px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.hero-stat .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  display: block;
}

.hero-stat .label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,106,79,0.35);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
}

.btn-ghost {
  background: var(--warm);
  color: var(--primary);
}

.btn-ghost:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-label {
  display: inline-block;
  background: var(--warm);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-header h2 { margin-bottom: 16px; }

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

/* ============================================
   RUBRIQUES GRID (Homepage)
   ============================================ */
.rubriques-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
}

.rubrique-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform 0.3s;
}

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

.rubrique-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.rubrique-card:hover img {
  transform: scale(1.05);
}

.rubrique-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,67,50,0.85) 0%, rgba(27,67,50,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.rubrique-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: white;
}

.rubrique-overlay h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.rubrique-overlay p {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  line-height: 1.5;
}

.rubrique-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
}

/* ============================================
   ARTICLE CARDS
   ============================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--gap);
}

.article-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.article-card-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.article-card:hover .article-card-img img {
  transform: scale(1.05);
}

.article-cat {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
}

.article-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.article-meta span {
  font-size: 0.78rem;
  color: var(--text-light);
}

.article-meta .dot {
  width: 3px;
  height: 3px;
  background: var(--text-light);
  border-radius: 50%;
}

.article-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--text);
}

.article-card-body p {
  font-size: 0.88rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: gap 0.2s;
}

.read-more:hover { gap: 10px; }

/* ============================================
   FEATURE SECTION (Z-pattern)
   ============================================ */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
}

.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }

.feature-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.feature-img img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.feature-img::after {
  content: '';
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 60%;
  height: 60%;
  border: 3px solid var(--secondary);
  border-radius: var(--radius-xl);
  z-index: -1;
}

.feature-content .section-label { margin-bottom: 16px; }
.feature-content h2 { margin-bottom: 20px; }
.feature-content > p { margin-bottom: 28px; font-size: 1.05rem; }

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.feature-list li::before {
  content: '';
  width: 20px;
  height: 20px;
  background: var(--warm);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232D6A4F'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ============================================
   CONSEIL CARDS (Tips)
   ============================================ */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--gap);
}

.tip-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-light);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.tip-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.tip-card:hover::before { transform: scaleX(1); }

.tip-card:hover {
  background: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.tip-icon {
  width: 52px;
  height: 52px;
  background: var(--warm);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 18px;
}

.tip-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.tip-card p {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item.open {
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  gap: 16px;
  transition: background 0.2s;
}

.faq-question:hover { background: var(--off-white); }

.faq-chevron {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--primary);
  transition: transform 0.3s;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

/* ============================================
   NEWSLETTER BANNER
   ============================================ */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.newsletter-section::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: rgba(149,213,178,0.1);
  border-radius: 50%;
}

.newsletter-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}

.newsletter-inner h2 { color: white; margin-bottom: 16px; }
.newsletter-inner p { color: rgba(255,255,255,0.8); margin-bottom: 36px; font-size: 1.05rem; }

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: white;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus { border-color: var(--secondary); }

.newsletter-form button {
  background: white;
  color: var(--primary);
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: var(--font-body);
}

.newsletter-form button:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

/* ============================================
   HERO PAGE (pages internes)
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.page-hero-content { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.breadcrumb a,
.breadcrumb span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.breadcrumb a:hover { color: white; }

.breadcrumb .sep { color: rgba(255,255,255,0.3); }

.page-hero h1 { color: white; margin-bottom: 20px; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 600px; }

/* ============================================
   CONTENT ARTICLE LAYOUT
   ============================================ */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.content-main {}

.content-intro {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.content-section {
  margin-bottom: 48px;
}

.content-section h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 4px solid var(--primary);
}

.content-section h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.content-section p {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.8;
}

.content-section ul {
  margin: 16px 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.content-section ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 12px 16px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
}

.content-section ul li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.content-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 32px 0;
}

.content-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.highlight-box {
  background: var(--warm);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px 28px;
  margin: 28px 0;
}

.highlight-box p {
  font-size: 1rem;
  color: var(--primary-dark);
  font-style: italic;
  margin: 0;
}

/* Sidebar */
.content-sidebar { position: sticky; top: 96px; }

.sidebar-widget {
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.sidebar-widget h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}

.sidebar-links a:hover {
  background: var(--warm);
  color: var(--primary);
}

.sidebar-links a .dot-nav {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

.sidebar-links a:hover .dot-nav { background: var(--primary); }

.sidebar-stat {
  text-align: center;
  padding: 16px 0;
}

.sidebar-stat .big-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.sidebar-stat small { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================
   INTERACTIVE WIDGET (calculatrice, etc.)
   ============================================ */
.widget-box {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  margin: 40px 0;
  box-shadow: var(--shadow-sm);
}

.widget-box h3 {
  color: var(--primary);
  margin-bottom: 8px;
}

.widget-box > p {
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.widget-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--off-white);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus { border-color: var(--primary); background: white; }

.widget-result {
  background: var(--warm);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 20px;
  display: none;
  text-align: center;
}

.widget-result.show { display: block; }

.widget-result .result-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
}

.widget-result .result-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.widget-result .result-advice {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--primary-dark);
  font-weight: 500;
}

/* ============================================
   STATS BANNER
   ============================================ */
.stats-banner {
  background: var(--primary);
  padding: 60px 0;
}

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

.stat-item .num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--secondary);
  display: block;
}

.stat-item .lbl {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-brand h3 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
}

.footer-social-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.footer-col h4 {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--secondary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}

.footer-legal a:hover { color: rgba(255,255,255,0.7); }

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

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.reveal-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.reveal-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.reveal-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.reveal-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* ============================================
   BACKGROUND VARIANTS
   ============================================ */
.bg-green { background: var(--off-white); }
.bg-warm { background: var(--warm); }
.bg-white { background: white; }

/* ============================================
   PROGRESS BAR (sommeil, nutrition)
   ============================================ */
.progress-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.progress-item {}
.progress-item .prog-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.progress-bar {
  height: 10px;
  background: var(--border-light);
  border-radius: 50px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 50px;
  width: 0;
  transition: width 1.2s ease;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    position: static;
  }

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

  .feature-block {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .feature-block.reverse { direction: ltr; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    gap: 4px;
  }

  .hero { min-height: 70vh; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }

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

  .widget-form { grid-template-columns: 1fr; }

  .newsletter-form { flex-direction: column; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { max-width: 100%; }

  .section { padding: 56px 0; }

  .feature-img img { height: 300px; }
  .feature-img::after { display: none; }
}

@media (max-width: 480px) {
  .rubriques-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; }
}