/* ============================================
   IF-LOCATION.FR — STYLES PRINCIPAUX
   ============================================ */

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

/* ---- VARIABLES ---- */
:root {
  --primary: #1A1A2E;
  --primary-light: #2d2d4e;
  --accent: #E63946;
  --accent-hover: #c1121f;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-400: #ced4da;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --text: #1a1a2e;
  --text-light: #6c757d;
  --border: #e9ecef;

  --font-heading: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);
  --shadow-xl: 0 24px 60px rgba(0,0,0,.18);

  --nav-height: 72px;
  --container: 1200px;
}

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

/* ---- CONTAINER ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  letter-spacing: -.02em;
}
.nav-logo svg { color: var(--accent); }
.nav-logo span { color: var(--accent); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-800);
  padding: 6px 0;
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links > li > a:hover { color: var(--accent); }
.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .25s;
  border-radius: 2px;
}
.nav-links > li > a:hover::after { transform: scaleX(1); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  transform: translateX(-50%) translateY(8px);
  padding: var(--space-sm);
}
.nav-links > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-section { padding: var(--space-sm); }
.dropdown-section h4 {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-600);
  padding: 4px 8px;
  margin-bottom: 4px;
}
.dropdown a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: var(--gray-800);
  transition: background .2s, color .2s;
}
.dropdown a:hover { background: var(--gray-100); color: var(--accent); }

/* Search */
.nav-search {
  display: flex;
  align-items: center;
  position: relative;
}
.search-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-800);
  transition: background .2s, color .2s;
  z-index: 2;
}
.search-btn:hover { background: var(--gray-100); color: var(--accent); }
.search-expand {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 0; overflow: hidden;
  transition: width .3s ease;
  z-index: 1;
}
.search-expand.open { width: 240px; }
.search-expand input {
  width: 100%;
  padding: 8px 44px 8px 16px;
  border: 2px solid var(--primary);
  border-radius: 40px;
  font-size: .875rem;
  background: var(--white);
  color: var(--text);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg);
  z-index: 999;
  box-shadow: var(--shadow-lg);
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  color: var(--gray-800);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile .mobile-section h4 {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-600);
  padding: 12px 0 4px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,.88) 0%, rgba(26,26,46,.60) 50%, rgba(230,57,70,.30) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 720px;
  padding-top: var(--nav-height);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230,57,70,.2);
  border: 1px solid rgba(230,57,70,.5);
  color: #ff8a95;
  padding: 6px 14px;
  border-radius: 40px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: var(--space-lg);
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,.8);
  margin-bottom: var(--space-xl);
  max-width: 540px;
}
.hero-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: .9rem;
  transition: all .25s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(230,57,70,.4);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(230,57,70,.5);
}
.btn-outline {
  border: 2px solid rgba(255,255,255,.5);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--primary);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  color: var(--accent);
  padding: 14px 0;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-ghost:hover { gap: 10px; }

/* ============================================
   SECTIONS
   ============================================ */
section { padding: var(--space-3xl) 0; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}
.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: var(--space-md);
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================
   ARTICLES GRID
   ============================================ */
.articles-section { background: var(--gray-50); }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}
.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.article-card-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.article-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.article-card:hover .article-card-img img { transform: scale(1.06); }
.article-card-cat {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--accent);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 12px;
  border-radius: 40px;
}
.article-card-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card-date {
  font-size: .8rem;
  color: var(--gray-600);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}
.article-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
  margin-bottom: var(--space-sm);
  transition: color .2s;
}
.article-card:hover .article-card-title { color: var(--accent); }
.article-card-excerpt {
  font-size: .875rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}
.article-card-read {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
}
.article-card:hover .article-card-read { gap: 8px; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px; height: 44px;
  border-radius: 50%;
  font-size: .9rem;
  font-weight: 600;
  transition: all .2s;
  padding: 0 12px;
}
.pagination a {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--gray-800);
}
.pagination a:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.pagination span.current {
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
}
.pagination .dots { color: var(--gray-600); border: none; background: none; }
.pagination-prev, .pagination-next {
  border-radius: 40px !important;
  padding: 0 20px !important;
  gap: 6px;
  display: flex !important;
  align-items: center !important;
}

/* ============================================
   BLOG PAGE — FILTERS
   ============================================ */
.blog-header {
  background: var(--primary);
  color: var(--white);
  padding: var(--space-3xl) 0 var(--space-xl);
}
.blog-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
}
.blog-header p {
  color: rgba(255,255,255,.7);
  margin-top: var(--space-sm);
  font-size: 1rem;
}
.blog-filters {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) 0;
  position: sticky;
  top: var(--nav-height);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.filters-inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.filter-group label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.filter-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 32px 8px 12px;
  font-size: .875rem;
  color: var(--gray-800);
  background: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  appearance: none;
  cursor: pointer;
  transition: border-color .2s;
}
.filter-select:focus { border-color: var(--accent); }

/* Cat badges */
.cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.cat-badge {
  padding: 6px 16px;
  border-radius: 40px;
  font-size: .8rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--gray-800);
  transition: all .2s;
}
.cat-badge:hover, .cat-badge.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* ============================================
   ARTICLE PAGE
   ============================================ */
.article-hero {
  position: relative;
  height: 55vh;
  min-height: 400px;
  overflow: hidden;
}
.article-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,.9) 0%, transparent 60%);
}
.article-hero-meta {
  position: absolute;
  bottom: var(--space-xl);
  left: 0; right: 0;
  color: var(--white);
}
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: rgba(255,255,255,.7);
  margin-bottom: var(--space-sm);
}
.article-breadcrumb a { color: rgba(255,255,255,.7); transition: color .2s; }
.article-breadcrumb a:hover { color: var(--white); }
.article-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  max-width: 800px;
}
.article-meta-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}
.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: rgba(255,255,255,.75);
}
.article-cat-badge {
  background: var(--accent);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 40px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Article body */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-2xl);
  align-items: start;
}
.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-800);
}
.article-content h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin: var(--space-xl) 0 var(--space-md);
}
.article-content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin: var(--space-lg) 0 var(--space-sm);
}
.article-content p { margin-bottom: var(--space-md); }
.article-content ul, .article-content ol {
  padding-left: 1.5rem;
  margin-bottom: var(--space-md);
}
.article-content li { margin-bottom: var(--space-xs); }
.article-content a { color: var(--accent); text-decoration: underline; }
.article-content img {
  border-radius: var(--radius-md);
  margin: var(--space-lg) 0;
}
.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding-left: var(--space-lg);
  margin: var(--space-xl) 0;
  color: var(--gray-600);
  font-style: italic;
  font-size: 1.1rem;
}

/* Sidebar */
.article-sidebar { position: sticky; top: calc(var(--nav-height) + 24px); }
.sidebar-widget {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  border: 1px solid var(--border);
}
.sidebar-widget h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--accent);
}
.toc-list { counter-reset: toc; }
.toc-list li {
  counter-increment: toc;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.toc-list li:last-child { border-bottom: none; }
.toc-list a {
  font-size: .875rem;
  color: var(--gray-800);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transition: color .2s;
}
.toc-list a::before {
  content: counter(toc, decimal-leading-zero);
  font-weight: 700;
  color: var(--accent);
  font-size: .75rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.toc-list a:hover { color: var(--accent); }

/* Similar articles */
.similar-articles { background: var(--gray-50); }
.similar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
  align-items: start;
}
.contact-info { padding-top: var(--space-lg); }
.contact-info-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.contact-icon {
  width: 48px; height: 48px;
  background: rgba(230,57,70,.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-info-item h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 4px;
}
.contact-info-item p { color: var(--text-light); font-size: .9rem; }

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.form-group { margin-bottom: var(--space-lg); }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  background: var(--gray-50);
  transition: border-color .2s, background .2s;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-lg);
  font-size: .9rem;
  font-weight: 500;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
  background: var(--primary);
  color: var(--white);
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: '';
  position: absolute;
  right: -200px; top: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(230,57,70,.08);
}
.about-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
}
.about-hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 600px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}
.value-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border);
  transition: box-shadow .3s, transform .3s;
}
.value-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.value-icon {
  width: 56px; height: 56px;
  background: rgba(230,57,70,.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: var(--space-lg);
}
.value-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.value-card p { color: var(--text-light); font-size: .9rem; line-height: 1.7; }

/* ============================================
   MENTIONS LÉGALES
   ============================================ */
.legal-page {
  padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-3xl);
}
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}
.legal-content h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--space-xl);
  color: var(--primary);
}
.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin: var(--space-xl) 0 var(--space-sm);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}
.legal-content h2:first-of-type { border-top: none; padding-top: 0; }
.legal-content p, .legal-content li {
  font-size: .95rem;
  color: var(--gray-800);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,.75);
  padding: var(--space-2xl) 0 var(--space-lg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
.footer-brand .nav-logo {
  color: var(--white);
  margin-bottom: var(--space-md);
}
.footer-brand p {
  font-size: .9rem;
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--white);
  margin-bottom: var(--space-md);
}
.footer-col a {
  display: block;
  font-size: .875rem;
  padding: 4px 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.footer-bottom p { font-size: .8rem; }
.footer-legal-links {
  display: flex;
  gap: var(--space-md);
}
.footer-legal-links a {
  font-size: .8rem;
  transition: color .2s;
}
.footer-legal-links a:hover { color: var(--white); }

/* ============================================
   404 PAGE
   ============================================ */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--nav-height) var(--space-lg) var(--space-lg);
}
.page-404 .big-num {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  opacity: .15;
  position: absolute;
  left: 50%; transform: translateX(-50%);
}
.page-404-inner { position: relative; z-index: 1; }
.page-404 h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

/* ============================================
   REVEAL ON SCROLL
   ============================================ */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-on-scroll.delay-1 { transition-delay: .1s; }
.reveal-on-scroll.delay-2 { transition-delay: .2s; }
.reveal-on-scroll.delay-3 { transition-delay: .3s; }
.reveal-on-scroll.delay-4 { transition-delay: .4s; }
.reveal-on-scroll.delay-5 { transition-delay: .5s; }

/* ============================================
   LOADING / SKELETON
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ============================================
   FALLBACK / ERROR
   ============================================ */
.api-error {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
  grid-column: 1 / -1;
}
.api-error svg { color: var(--gray-400); margin: 0 auto var(--space-md); }
.api-error h3 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin-bottom: var(--space-sm);
}
.api-error p { color: var(--text-light); font-size: .9rem; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .similar-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --space-3xl: 64px; }
  .nav-links, .nav-search { display: none; }
  .nav-toggle { display: flex; }
  .articles-grid { grid-template-columns: 1fr; }
  .similar-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-form { padding: var(--space-xl); }
  .form-row { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .article-hero { height: 45vh; }
  .filters-inner { flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }
  .contact-form { padding: var(--space-lg); border-radius: var(--radius-lg); }
}