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

/* ─── Variables design system ─────────────────────────────────────────────── */
:root {
  --bg-base:        #0A0F1A;
  --bg-surface:     #131B2E;
  --bg-card:        #1C2640;
  --bg-card-hover:  #212d4a;
  --accent:         #00E5FF;
  --accent-dim:     rgba(0, 229, 255, 0.12);
  --accent-border:  rgba(0, 229, 255, 0.25);
  --text-primary:   #F0F4FF;
  --text-secondary: rgba(240, 244, 255, 0.65);
  --text-muted:     rgba(240, 244, 255, 0.35);
  --border:         rgba(255, 255, 255, 0.07);
  --border-hover:   rgba(255, 255, 255, 0.14);
  --font:           'DM Sans', system-ui, sans-serif;
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;
  --transition:     all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width:      1320px;
  --shadow-card:    0 1px 3px rgba(0,0,0,0.4);
}

/* ─── Light mode ──────────────────────────────────────────────────────────── */
[data-theme="light"] {
  --bg-base:        #F0F4FF;
  --bg-surface:     #FFFFFF;
  --bg-card:        #FFFFFF;
  --bg-card-hover:  #F5F8FF;
  --accent:         #0088AA;
  --accent-dim:     rgba(0, 136, 170, 0.08);
  --accent-border:  rgba(0, 136, 170, 0.2);
  --text-primary:   #0A0F1A;
  --text-secondary: rgba(10, 15, 26, 0.65);
  --text-muted:     rgba(10, 15, 26, 0.38);
  --border:         rgba(10, 15, 26, 0.08);
  --border-hover:   rgba(10, 15, 26, 0.16);
  --shadow-card:    0 1px 3px rgba(0,0,0,0.08);
}

/* ─── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Typography ──────────────────────────────────────────────────────────── */
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 600; line-height: 1.3; }
p { line-height: 1.75; color: var(--text-secondary); }

/* ─── Layout ──────────────────────────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }
@media (min-width: 1280px) { .container { padding: 0 2.5rem; } }

/* ─── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .site-header { background: rgba(240, 244, 255, 0.92); }

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

.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  flex-shrink: 0;
}
.site-logo span { color: var(--accent); }

.site-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 768px) { .site-nav { display: flex; } }

.nav-link {
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}
.nav-link:hover { color: var(--text-primary); background: var(--border); }
.nav-link.active { color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Recherche */
.search-wrap { position: relative; }
.search-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.375rem 1rem 0.375rem 2.25rem;
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--text-primary);
  width: 180px;
  transition: var(--transition);
}
.search-input:focus {
  outline: none;
  border-color: var(--accent-border);
  width: 240px;
  background: var(--bg-surface);
}
.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  display: none;
  z-index: 50;
  overflow: hidden;
}
.search-results.visible { display: block; }
.search-result-item {
  display: block;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-card); }
.search-result-cat { font-size: 0.7rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.search-result-title { font-size: 0.875rem; font-weight: 500; color: var(--text-primary); }

/* Bouton newsletter */
.btn-newsletter {
  background: var(--accent);
  color: #001A1F;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  display: none;
}
@media (min-width: 640px) { .btn-newsletter { display: block; } }
.btn-newsletter:hover { opacity: 0.85; transform: translateY(-1px); }

/* Theme toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent-border); }
.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* Hamburger mobile */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 6px;
}
@media (min-width: 768px) { .hamburger { display: none; } }
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: var(--transition);
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 60px 0 0 0;
  background: var(--bg-base);
  z-index: 99;
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { font-size: 1.1rem; padding: 0.75rem 1rem; }

/* ─── Category badge ──────────────────────────────────────────────────────── */
.cat-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  padding: 2px 0;
}

/* ─── Article Cards ───────────────────────────────────────────────────────── */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}
.article-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.article-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-surface);
  position: relative;
}
.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.article-card:hover .article-card-img img { transform: scale(1.04); }
.article-card-body { padding: 1rem 1.25rem 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.article-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  transition: color 0.15s;
}
.article-card:hover .article-card-title { color: var(--accent); }
.article-card-summary { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; color: var(--text-muted); margin-top: auto; padding-top: 0.5rem; border-top: 1px solid var(--border); }

/* ─── Hero article (grande carte) ────────────────────────────────────────── */
.hero-article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  position: relative;
}
@media (min-width: 768px) {
  .hero-article { grid-template-columns: 1fr 1fr; min-height: 340px; }
}
@media (min-width: 1280px) {
  .hero-article { grid-template-columns: 3fr 2fr; min-height: 380px; }
}
.hero-article::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0,229,255,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-article:hover { border-color: var(--accent-border); }
.hero-article-body {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) { .hero-article-body { padding: 2.5rem 2rem; } }
.hero-article-title {
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  transition: color 0.15s;
}
.hero-article:hover .hero-article-title { color: var(--accent); }
.hero-article-summary { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-article-img {
  overflow: hidden;
  background: var(--bg-surface);
  min-height: 220px;
}
.hero-article-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); }
.hero-article:hover .hero-article-img img { transform: scale(1.05); }
.hero-article-meta { display: flex; gap: 1rem; font-size: 0.78rem; color: var(--text-muted); align-items: center; }
.reading-time::before { content: '·'; margin-right: 0.5rem; }

/* ─── Section home ────────────────────────────────────────────────────────── */
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.5rem; }
.section-title { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.section-more { font-size: 0.8rem; color: var(--accent); font-weight: 500; transition: opacity 0.15s; }
.section-more:hover { opacity: 0.7; }

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .articles-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .articles-grid { grid-template-columns: repeat(4, 1fr); } }

/* ─── Strip d'articles ────────────────────────────────────────────────────── */
.articles-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 640px) { .articles-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .articles-strip { grid-template-columns: repeat(3, 1fr); } }
.strip-item {
  background: var(--bg-card);
  padding: 1rem 1.25rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.strip-item:hover { background: var(--bg-card-hover); }
.strip-item-title { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); line-height: 1.35; transition: color 0.15s; }
.strip-item:hover .strip-item-title { color: var(--accent); }
.strip-item-meta { font-size: 0.72rem; color: var(--text-muted); }

/* ─── Catégories pills ────────────────────────────────────────────────────── */
.cats-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cats-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0;
  padding: 0.375rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.cat-pill:hover, .cat-pill.active {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ─── Newsletter inline ───────────────────────────────────────────────────── */
.newsletter-block {
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter-block::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0,229,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.newsletter-block h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.newsletter-block p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1.25rem; }
.newsletter-form { display: flex; gap: 0.5rem; max-width: 400px; margin: 0 auto; }
.newsletter-input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.625rem 1rem;
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--text-primary);
}
.newsletter-input:focus { outline: none; border-color: var(--accent-border); }
.newsletter-input::placeholder { color: var(--text-muted); }
.btn-submit {
  background: var(--accent);
  color: #001A1F;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: var(--font);
}
.btn-submit:hover { opacity: 0.85; }

/* ─── Article full page ───────────────────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 2.5rem 0;
}
@media (min-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}

.article-header { margin-bottom: 2rem; }
.article-header h1 { margin-bottom: 1rem; }
.article-header-meta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; aspect-ratio: 16/9; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

/* TL;DR block */
.tldr-block {
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.tldr-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.75rem; }
.tldr-block p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin: 0; }

/* Définition block */
.definition-block {
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}
.definition-block p { font-size: 1rem; color: var(--text-secondary); font-style: italic; margin: 0; }

/* Article body */
.article-body { font-size: 1.0625rem; line-height: 1.8; color: var(--text-secondary); }
.article-body h2 { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); margin: 2.5rem 0 1rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.article-body h3 { font-size: 1.15rem; font-weight: 600; color: var(--text-primary); margin: 1.75rem 0 0.75rem; }
.article-body p { margin-bottom: 1.5rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body strong { color: var(--text-primary); font-weight: 600; }
.article-body blockquote { border-left: 2px solid var(--accent-border); padding-left: 1.25rem; margin: 2rem 0; }
.article-body blockquote p { color: var(--text-muted); font-style: italic; }
.article-body code { background: var(--bg-card); padding: 0.15em 0.4em; border-radius: 4px; font-size: 0.9em; font-family: 'SF Mono', monospace; }

/* Barre de progression lecture */
.reading-progress {
  position: fixed;
  top: 60px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  z-index: 99;
  transition: width 0.1s linear;
}

/* FAQ */
.faq-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.faq-section h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; }
.faq-item { margin-bottom: 1.5rem; }
.faq-item h3 { font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.5rem; }
.faq-item p { font-size: 0.925rem; color: var(--text-secondary); margin: 0; }

/* Sidebar article */
.article-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.sidebar-card h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 1rem; }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.toc-item { font-size: 0.875rem; color: var(--text-secondary); cursor: pointer; transition: color 0.15s; padding-left: 0.75rem; border-left: 2px solid transparent; }
.toc-item:hover, .toc-item.active { color: var(--accent); border-left-color: var(--accent); }
.share-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.share-btn {
  flex: 1;
  min-width: 80px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-surface);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  font-family: var(--font);
}
.share-btn:hover { border-color: var(--accent-border); color: var(--accent); }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.75rem; max-width: 280px; }
.footer-nav h5 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 1rem; }
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { font-size: 0.875rem; color: var(--text-secondary); transition: color 0.15s; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted); }

/* ─── Cookie banner ───────────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 480px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  display: none;
}
.cookie-banner.visible { display: block; }
.cookie-banner p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1rem; }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.5rem; }
.cookie-accept {
  flex: 1;
  background: var(--accent);
  color: #001A1F;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}
.cookie-refuse {
  flex: 1;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--font);
}

/* ─── Skeleton loading ────────────────────────────────────────────────────── */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ─── Animations entrée ───────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.fade-in-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* Observer pour scroll animations */
.observe-fade { opacity: 0; transform: translateY(16px); transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1), transform 0.5s cubic-bezier(0.4,0,0.2,1); }
.observe-fade.visible { opacity: 1; transform: translateY(0); }

/* ─── Responsive utils ────────────────────────────────────────────────────── */
@media (max-width: 639px) {
  .hide-mobile { display: none !important; }
  .newsletter-form { flex-direction: column; }
  .newsletter-input { width: 100%; }
  .search-input { width: 140px; }
  .search-input:focus { width: 160px; }
  .article-header h1 { font-size: 1.5rem; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .hide-tablet { display: none !important; }
}

/* ─── AdSense emplacements ────────────────────────────────────────────────── */
.ad-slot { min-height: 90px; background: var(--bg-card); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.75rem; }
.ad-slot-banner { width: 100%; }
.ad-slot-square { width: 300px; min-height: 250px; }
.ad-sticky { position: sticky; top: 80px; }

/* ─── Sticky footer mobile (AdSense) ─────────────────────────────────────── */
.ad-sticky-footer {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 0.5rem;
  z-index: 150;
  text-align: center;
}
@media (max-width: 767px) { .ad-sticky-footer { display: block; } }
