/* ============================================================
   ONEWEB MÉDIA — Stylesheet principal
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ---- Variables ---- */
:root {
  --bg:         #FFFFFF;
  --surface:    #FFFFFF;
  --ink:        #111111;
  --ink-mid:    #444444;
  --ink-light:  #888888;
  --border:     #E2E0DB;

  /* Accents par catégorie */
  --ia:         oklch(0.52 0.22 260);
  --robotique:  oklch(0.52 0.22 300);
  --science:    oklch(0.52 0.22 195);
  --spatial:    oklch(0.52 0.22 280);
  --cyber:      oklch(0.52 0.22 25);
  --innovations:oklch(0.52 0.22 155);
  --default-accent: oklch(0.52 0.22 260);

  --font-serif: 'DM Sans', system-ui, sans-serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  --max-w: 1200px;
  --col-gap: 2rem;
  --section-gap: 4rem;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---- Utilitaires ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.editorial-note {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--ink);
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.03), rgba(17, 17, 17, 0.015));
}
.editorial-note strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.editorial-note p {
  color: var(--ink-mid);
  max-width: 72ch;
}

/* Couleurs catégories */
.cat-ia         { --cat: var(--ia); }
.cat-robotique  { --cat: var(--robotique); }
.cat-science    { --cat: var(--science); }
.cat-spatial    { --cat: var(--spatial); }
.cat-cyber      { --cat: var(--cyber); }
.cat-innovations{ --cat: var(--innovations); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}
.site-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex-shrink: 0;
}
.site-logo span {
  color: var(--ia);
}

/* Nav principale */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.main-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-mid);
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  letter-spacing: 0.01em;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
  background: var(--bg);
}
.main-nav a.active { color: var(--ia); }

/* Burger mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ink);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform 0.3s;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--ink-light);
  padding: 0.75rem 0 0;
}
.breadcrumb a { color: var(--ink-light); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb li { display: inline; }
.breadcrumb li + li::before { content: " › "; margin: 0 0.3em; }

/* ============================================================
   BADGES CATÉGORIE
   ============================================================ */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cat, var(--default-accent));
  padding: 0.2em 0;
  border-bottom: 2px solid var(--cat, var(--default-accent));
}

/* ============================================================
   HOMEPAGE — Hero
   ============================================================ */
.hero {
  padding: 6rem 0 0;
}
.hero-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 1rem;
  align-items: stretch;
}
.hero-top-main {
  min-width: 0;
}
.hero-top-link {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 500px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.hero-top-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}
.hero-overlay {
  position: absolute;
  inset: auto 1.5rem 1.5rem 1.5rem;
  color: #fff;
}
.hero-topic {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.78);
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.85rem;
}
.hero-overlay h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.16;
  font-size: clamp(1.9rem, 2.8vw, 3rem);
  letter-spacing: -0.01em;
  max-width: 22ch;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.72),
    0 8px 22px rgba(0, 0, 0, 0.62);
}
.hero-side-column {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  min-width: 0;
}
.hero-side-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.hero-side-thumb {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background: var(--border);
  z-index: 0;
}
.hero-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.hero-side-card:hover .hero-side-thumb img {
  transform: scale(1.04);
}
.hero-side-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.78));
}
.hero-side-card .badge {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-bottom: 0.5rem;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
}
.hero-side-card h2 {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.55rem;
}
.hero-side-card h2 {
  color: #fff;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}
.hero-side-card:hover h2 {
  color: #fff;
}
.hero-side-card .card-meta {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.82);
}
.hero-ad-reserve {
  min-height: 0;
  border: 1px solid transparent;
}
.home-layout {
  padding: 2rem 0 0;
}
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1rem;
  align-items: start;
}
.home-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.feature-card {
  position: relative;
  border: 1px solid var(--border);
  overflow: hidden;
}
.feature-link {
  display: block;
  min-height: 410px;
  position: relative;
}
.feature-media {
  position: absolute;
  inset: 0;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}
.feature-overlay {
  position: absolute;
  inset: auto 1.5rem 1.5rem 1.5rem;
  color: #fff;
}
.feature-topic {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.78);
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.75rem;
}
.feature-overlay h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.55rem, 2.2vw, 2.65rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  max-width: 23ch;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.trending-panel {
  background: #fff;
  border: 1px solid var(--border);
  padding: 1.25rem;
}
.trending-panel h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #173a54;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.trending-panel h2 span {
  width: 12px;
  height: 12px;
  background: #1899d6;
  display: inline-block;
}
.trending-list {
  display: flex;
  flex-direction: column;
}
.trending-item {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.trending-item:last-child {
  border-bottom: none;
}
.trending-thumb {
  display: block;
}
.trending-thumb .thumb-placeholder {
  aspect-ratio: 16 / 9;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.55);
}
.trending-item h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  line-height: 1.22;
  letter-spacing: -0.005em;
}
.trending-item h3 a:hover {
  color: var(--cat, var(--default-accent));
}
.yt-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3em 0.6em;
  border-radius: 3px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.3em;
}

/* ============================================================
   HOMEPAGE — Section articles
   ============================================================ */
.section-heading {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.section-heading h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.section-heading .see-all {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-light);
  margin-left: auto;
}
.section-heading .see-all:hover { color: var(--ink); }
.section-heading .section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  align-self: center;
}

.articles-section { padding: var(--section-gap) 0; border-bottom: none; }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--col-gap);
}

/* Card article */
.article-card { display: flex; flex-direction: column; }
.article-card-thumb {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--border);
  margin-bottom: 0.85rem;
}
.article-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}
.article-card-thumb:hover img { transform: scale(1.04); }
.article-card-thumb .yt-badge { font-size: 0.65rem; }
.article-card .badge { margin-bottom: 0.5rem; }
.article-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}
.article-card h3 a:hover { color: var(--cat, var(--default-accent)); }
.article-card .card-excerpt {
  font-size: 0.88rem;
  color: var(--ink-mid);
  line-height: 1.55;
  margin-bottom: 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card .card-meta {
  font-size: 0.75rem;
  color: var(--ink-light);
  margin-top: auto;
}

/* ============================================================
   HOMEPAGE — Catégories strip
   ============================================================ */
.categories-strip {
  padding: 2.5rem 0;
  border-bottom: none;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-mid);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
  border-top: 3px solid var(--cat, var(--default-accent));
}
.cat-card:hover {
  color: var(--cat, var(--default-accent));
  border-color: var(--cat, var(--default-accent));
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}
.cat-card .cat-icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.95), rgba(255,255,255,0) 55%),
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(244,246,250,0.92));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  color: var(--cat, var(--default-accent));
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.cat-card .cat-icon svg {
  width: 1.45rem;
  height: 1.45rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cat-card:hover .cat-icon {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}
.cat-card > span:not(.cat-icon):not(.cat-count) {
  max-width: 100%;
  font-size: clamp(0.7rem, 0.8vw, 0.88rem);
  line-height: 1.15;
  letter-spacing: 0;
  white-space: nowrap;
}
.cat-card .cat-count { font-size: 0.72rem; font-weight: 400; color: var(--ink-light); }

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.category-header {
  padding: 1.25rem 0 2rem;
  border-bottom: 3px solid var(--cat, var(--default-accent));
  margin-bottom: 3rem;
}
.category-header[class*="cat-"] {
  margin-bottom: 1.5rem;
}
.category-header .badge { margin-bottom: 0.75rem; }
.category-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.55rem;
}
.category-header p {
  font-size: 1rem;
  color: var(--ink-mid);
  max-width: 60ch;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--col-gap);
  margin-bottom: var(--section-gap);
}
.category-grid .article-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 0.6rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.category-grid .article-card:first-child .article-card-thumb {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 16/9;
  margin-bottom: 0;
  grid-column: 1;
  grid-row: 1 / 5;
}
.category-grid .article-card:first-child h3 {
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  line-height: 1.2;
}
.category-grid .article-card:first-child .card-excerpt {
  -webkit-line-clamp: 4;
  font-size: 0.95rem;
}
.category-grid .article-card:first-child .badge,
.category-grid .article-card:first-child h3,
.category-grid .article-card:first-child .card-excerpt,
.category-grid .article-card:first-child .card-meta {
  grid-column: 2;
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  padding: 1.25rem 0 4rem;
  align-items: start;
}
.article-main { min-width: 0; }
.article-sidebar {
  position: sticky;
  top: calc(72px + 1.5rem);
  align-self: start;
}
.article-sidebar-reserve {
  min-height: 640px;
}

/* Header article */
.article-header { margin-bottom: 2rem; }
.article-header .badge { margin-bottom: 0.75rem; }
.article-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.article-dek {
  font-size: 1.15rem;
  color: var(--ink-mid);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 1.25rem;
  max-width: 65ch;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.82rem;
  color: var(--ink-light);
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.article-meta strong { color: var(--ink); }

.article-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
}
.article-share-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-right: 0.25rem;
}
.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.share-button:hover,
.share-button:focus-visible {
  border-color: var(--cat, var(--default-accent));
  background: color-mix(in srgb, var(--cat, var(--default-accent)) 8%, #fff);
  color: var(--cat, var(--default-accent));
  outline: none;
}
.share-button.is-copied {
  border-color: var(--cat, var(--default-accent));
  background: color-mix(in srgb, var(--cat, var(--default-accent)) 8%, #fff);
  color: var(--cat, var(--default-accent));
}

/* Miniature YouTube */
.yt-thumb-block {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  background: var(--ink);
  display: block;
}
.yt-thumb-block img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.yt-thumb-block:hover img { opacity: 1; }
.yt-thumb-embed {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--ink);
}
.yt-thumb-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.yt-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 68px; height: 68px;
  background: rgba(255,0,0,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}
.yt-thumb-block:hover .yt-play-btn {
  background: #ff0000;
  transform: translate(-50%, -50%) scale(1.08);
}
.yt-play-btn svg { margin-left: 4px; }
.yt-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 0.82rem;
  padding: 1.5rem 1rem 0.75rem;
}

/* Corps de l'article */
.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1a1a1a;
}
.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin: 2.25rem 0 0.75rem;
  color: var(--ink);
}
.article-body h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 1.75rem 0 0.5rem;
}
.article-body p { margin-bottom: 1.25rem; }
.article-body strong { font-weight: 600; }
.article-body em { font-style: italic; }
.article-body a {
  color: var(--cat, var(--default-accent));
  border-bottom: 1px solid currentColor;
}
.article-body a:hover { opacity: 0.7; }
.article-body blockquote {
  border-left: 3px solid var(--cat, var(--default-accent));
  margin: 2rem 0;
  padding: 0.75rem 1.5rem;
  background: rgba(0,0,0,0.02);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-mid);
}
.article-body ul, .article-body ol {
  margin: 1rem 0 1.25rem 1.5rem;
  list-style: disc;
}
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.4rem; }

/* Encadré "L'essentiel" */
.key-takeaway {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cat, var(--default-accent));
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.key-takeaway h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cat, var(--default-accent));
  margin-bottom: 0.6rem;
}
.key-takeaway ul { list-style: disc; margin-left: 1.25rem; }
.key-takeaway li { font-size: 0.92rem; margin-bottom: 0.3rem; }

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-mid);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.3em 0.7em;
  transition: border-color 0.15s, color 0.15s;
}
.tag:hover { color: var(--cat, var(--default-accent)); border-color: var(--cat, var(--default-accent)); }

/* "Lire aussi" */
.lire-aussi {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.lire-aussi h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.75rem;
}
.lire-aussi ul { display: flex; flex-direction: column; gap: 0.5rem; }
.lire-aussi li { display: flex; gap: 0.5rem; align-items: baseline; }
.lire-aussi li::before {
  content: "→";
  color: var(--cat, var(--default-accent));
  font-size: 0.85rem;
  flex-shrink: 0;
}
.lire-aussi a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  transition: color 0.15s;
}
.lire-aussi a:hover { color: var(--cat, var(--default-accent)); }

/* Sidebar article */
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.sidebar-card h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-article {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-article:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-article-thumb {
  width: 64px; height: 48px; flex-shrink: 0;
  border-radius: 3px; overflow: hidden; background: var(--border);
}
.sidebar-article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-article h5 {
  font-size: 0.85rem;
  line-height: 1.35;
  font-weight: 500;
}
.sidebar-article h5 a:hover { color: var(--cat, var(--default-accent)); }
.sidebar-article .card-meta { font-size: 0.72rem; color: var(--ink-light); margin-top: 0.25rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
  margin-top: var(--section-gap);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand .logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.75rem;
}
.footer-brand .logo span { color: var(--ia); }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; max-width: 28ch; }
.footer-col h5 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { font-size: 0.85rem; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2.5rem 0;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.15s;
}
.pagination a:hover { border-color: var(--cat, var(--default-accent)); color: var(--cat, var(--default-accent)); }
.pagination .current {
  background: var(--cat, var(--default-accent));
  color: #fff;
  border-color: var(--cat, var(--default-accent));
}

/* ============================================================
   THUMB PLACEHOLDER SVG
   ============================================================ */
.thumb-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    -45deg,
    var(--border),
    var(--border) 1px,
    transparent 1px,
    transparent 8px
  );
  color: var(--ink-light);
  font-size: 0.75rem;
  font-family: var(--font-sans);
  text-align: center;
  padding: 1rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
  .hero-top-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .home-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .trending-item {
    grid-template-columns: 112px 1fr;
  }
  .trending-panel h2 {
    font-size: 1.35rem;
  }
}

@media (max-width: 1024px) {
  .hero-top-grid,
  .home-grid { grid-template-columns: 1fr; }
  .hero-side-column { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .hero-ad-reserve { min-height: 180px; }
.articles-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-gap: 2.5rem; }
.hero-top-link { min-height: 360px; }
  .hero-overlay { inset: auto 1rem 1rem 1rem; }
  .hero-overlay h1 { font-size: clamp(1.45rem, 8.6vw, 2.05rem); }
  .hero-side-column { grid-template-columns: 1fr; }
  .hero-ad-reserve { min-height: 140px; }
  .home-layout { padding: 1.25rem 0 0; }
  .feature-link { min-height: 320px; }
  .feature-overlay { inset: auto 1rem 1rem 1rem; }
  .feature-overlay h2 { font-size: clamp(1.3rem, 8.1vw, 1.9rem); }
.trending-item { grid-template-columns: 92px 1fr; }
.articles-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; gap: 2rem; }
  .article-sidebar { display: none; }
  .category-grid { grid-template-columns: 1fr; }
  .category-grid .article-card:first-child {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 0.9rem;
  }
  .category-grid .article-card:first-child .article-card-thumb {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    aspect-ratio: 16/9;
  }
  .category-grid .article-card:first-child .badge,
  .category-grid .article-card:first-child h3,
  .category-grid .article-card:first-child .card-excerpt,
  .category-grid .article-card:first-child .card-meta {
    grid-column: 1;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }

  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav.open ul {
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.25rem;
  }
  .nav-toggle { display: flex; flex-direction: column; }
}

/* ============================================================
   ANIMATIONS légères
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .article-card, .cat-card, .sidebar-article {
    transition: transform 0.2s;
  }
}
