/* ==========================================================================
   newsframework — site public
   Fidèle à la maquette « NewsHub » + mode sombre, animations, accessibilité.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-wght-italic.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0152-0153, U+2000-206F;
}

/* ---------- Tokens ---------- */
:root {
  --accent: #e5484d;
  --accent-ink: #fff;
  --canvas: #ffffff; /* fond autour de la « feuille » (écrans larges) */
  --bg: #ffffff;
  --surface: #f6f6f7;
  --surface-2: #efeff1;
  --card: rgba(246, 246, 246, 0.97);
  --text: #121214;
  --text-2: #3a3a40;
  --muted: #6e6e76;
  --line: #ebebee;
  --header: #161616;
  --header-ink: #ffffff;
  --shadow-sm: 0 1px 2px rgba(16, 16, 20, 0.06);
  --shadow: 0 10px 30px -12px rgba(16, 16, 20, 0.18);
  --shadow-lg: 0 30px 80px -20px rgba(16, 16, 20, 0.35);
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1240px;
  --gutter: 32px;
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
[data-theme='dark'] {
  --canvas: #050506;
  --bg: #0e0e10;
  --surface: #17171a;
  --surface-2: #1e1e22;
  --card: rgba(24, 24, 27, 0.96);
  --text: #f3f3f5;
  --text-2: #d0d0d6;
  --muted: #9a9aa3;
  --line: #26262b;
  --header: #09090a;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.75);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s ease, color 0.3s ease;
}
img,
svg {
  display: block;
  max-width: 100%;
}

/* Écrans larges : le site est une feuille posée sur un fond gris, comme sur la maquette */
@media (min-width: 1024px) {
  html {
    --sheet-x: clamp(24px, 7vw, 160px);
    --sheet-y: clamp(24px, 5vw, 80px);
    background: var(--canvas);
    transition: background-color 0.3s ease;
  }
  body {
    width: min(1440px, calc(100% - 2 * var(--sheet-x)));
    min-height: calc(100vh - var(--sheet-y));
    margin: 0 auto var(--sheet-y);
    box-shadow:
      0 1px 2px rgba(16, 16, 20, 0.05),
      0 40px 90px -30px rgba(16, 16, 20, 0.35);
  }
  [data-theme='dark'] body {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.05),
      0 40px 90px -30px rgba(0, 0, 0, 0.9);
  }
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 650;
  text-wrap: balance;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
kbd {
  font: 500 11px/1 'Inter', system-ui, sans-serif;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}
::selection {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.i {
  width: 1em;
  height: 1em;
  flex: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
}
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
  flex: none;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
}
.btn:active {
  transform: scale(0.97);
}
.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn--accent:hover {
  background: color-mix(in srgb, var(--accent) 88%, #000);
}
.btn--dark {
  background: var(--text);
  color: var(--bg);
}
.btn--dark:hover {
  background: color-mix(in srgb, var(--text) 85%, var(--accent));
}
.btn--outline {
  border: 1px solid var(--line);
  background: var(--bg);
}
.btn--outline:hover {
  border-color: var(--text);
}
.btn.is-loading {
  pointer-events: none;
  opacity: 0.75;
}
.btn.is-loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header);
  color: var(--header-ink);
  transition: box-shadow 0.3s, background-color 0.3s;
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 40px;
  transition: height 0.3s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.5);
}
.site-header.is-scrolled .site-header__inner {
  height: 54px;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
  display: inline-flex;
  align-items: flex-start;
  gap: 2px;
}
.logo__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 4px;
  transition: transform 0.4s var(--ease-out);
}
.logo:hover .logo__dot {
  transform: scale(1.5);
}
.main-nav {
  flex: 1;
  min-width: 0;
}
.main-nav ul {
  display: flex;
  gap: 28px;
  overflow: hidden;
}
.main-nav a {
  position: relative;
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.86);
  white-space: nowrap;
  transition: color 0.2s;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.main-nav a:hover,
.main-nav a[aria-current='page'] {
  color: #fff;
}
.main-nav a:hover::after,
.main-nav a[aria-current='page']::after {
  transform: scaleX(1);
  transform-origin: left;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 19px;
  transition: background-color 0.2s, transform 0.2s;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.icon-btn:active {
  transform: scale(0.92);
}
.theme-toggle .i {
  transition: transform 0.5s var(--ease-out), opacity 0.3s;
  grid-area: 1 / 1;
}
.theme-toggle .i-moon,
[data-theme='dark'] .theme-toggle .i-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}
[data-theme='dark'] .theme-toggle .i-moon {
  opacity: 1;
  transform: none;
}
.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  pointer-events: none;
  display: none;
}
.has-progress .read-progress {
  display: block;
}
.read-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
}

/* ---------- Tiroir (menu) ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}
.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s;
}
.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 88vw);
  background: var(--bg);
  visibility: hidden;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out), visibility 0.45s;
  overflow-y: auto;
}
.drawer.is-open {
  pointer-events: auto;
}
.drawer.is-open .drawer__backdrop {
  opacity: 1;
}
.drawer.is-open .drawer__panel {
  transform: none;
  visibility: visible;
  box-shadow: var(--shadow-lg);
}
.drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer__head .icon-btn:hover {
  background: var(--surface);
}
.logo--dark {
  color: var(--text);
}
.drawer__search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  text-align: left;
}
.drawer__search kbd {
  margin-left: auto;
}
.drawer__nav {
  display: flex;
  flex-direction: column;
}
.drawer__nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateX(16px);
  transition: color 0.2s, opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 30ms + 120ms);
}
.drawer.is-open .drawer__nav a {
  opacity: 1;
  transform: none;
}
.drawer__nav a:hover {
  color: var(--accent);
}
.swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: none;
}
.drawer__foot {
  margin-top: auto;
  font-size: 13px;
  color: var(--muted);
}
.drawer__foot a:hover {
  color: var(--text);
}

/* ---------- Bandeau en direct ---------- */
.ticker {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 46px;
  padding: 0 0 0 18px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 13px;
}
.ticker__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
.ticker__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee var(--ticker-duration, 60s) linear infinite;
}
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track {
  animation-play-state: paused;
}
.ticker__list {
  display: flex;
}
.ticker__list li {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.ticker__list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 16px;
}
.ticker__list a {
  color: var(--text-2);
  transition: color 0.2s;
}
.ticker__list a:hover {
  color: var(--accent);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Byline / avatars ---------- */
.byline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  min-width: 0;
}
.byline__name {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.byline__more {
  color: var(--muted);
  font-weight: 500;
}
.byline__time {
  white-space: nowrap;
}
.byline--sm {
  font-size: 12px;
  gap: 6px;
}
.avatar-stack {
  display: flex;
  flex: none;
}
.avatar-stack .avatar + .avatar {
  margin-left: -7px;
}
.avatar {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  box-shadow: 0 0 0 2px var(--bg);
  flex: none;
}
.byline--sm .avatar {
  width: 18px;
  height: 18px;
}
.avatar--initials {
  display: inline-grid;
  place-items: center;
  background: var(--av, var(--accent));
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
}
.byline--sm .avatar--initials {
  font-size: 8px;
}
.avatar--md {
  width: 40px;
  height: 40px;
  font-size: 14px;
}
.avatar--lg {
  width: 48px;
  height: 48px;
  font-size: 16px;
}
.avatar--xl {
  width: 88px;
  height: 88px;
  font-size: 28px;
}

/* ---------- Média (couvertures) ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ph, var(--surface-2));
  isolation: isolate;
}
.media__ai {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 6px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
  pointer-events: none;
}
.media__ai .i {
  width: 12px;
  height: 12px;
}
/* Vignettes étroites (colonne de la une, listes) : badge réduit */
.card--compact .media__ai,
.card--row .media__ai {
  top: 6px;
  left: 6px;
  padding: 2px 6px 2px 5px;
  font-size: 10px;
}
.article-cover .media__ai {
  top: 14px;
  left: 14px;
  font-size: 12px;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), opacity 0.6s ease, filter 0.6s ease;
}
.js .media img:not(.is-loaded) {
  opacity: 0;
  filter: blur(12px);
  transform: scale(1.06);
}
.media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  pointer-events: none;
}

/* ---------- Cartes ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius);
}
.card a:not(.card__link) {
  position: relative;
  z-index: 2;
}
.card__media {
  aspect-ratio: 1.2;
}
.card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  min-width: 0;
}
.card__title {
  font-size: 19px;
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}
.card__title,
.hero__title a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.45s var(--ease-out), color 0.2s;
}
.card:hover .card__title {
  background-size: 100% 1.5px;
}
.card:hover .media img.is-loaded,
.no-js .card:hover .media img {
  transform: scale(1.05);
}
.card__excerpt {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.card-meta__cat {
  color: var(--accent);
  font-weight: 500;
}
.card-meta__cat:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.card__link:focus-visible {
  outline-offset: 6px;
}

/* Compacte (colonne à droite du hero) */
.card--compact {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: start;
}
.card--compact .card__media {
  aspect-ratio: 1 / 1.02;
  border-radius: 8px;
}
.card--compact .card__body {
  padding-top: 0;
  gap: 6px;
}
.card--compact .card__title {
  font-size: 14.5px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card--compact .card-meta {
  font-size: 12px;
}

/* Grande (À lire absolument) */
.card--big .card__media {
  aspect-ratio: 2.75;
}
.card--big .card__title {
  font-size: 23px;
}

/* Ligne (À lire absolument, liste) */
.card--row {
  display: grid;
  grid-template-columns: minmax(150px, 44%) 1fr;
  gap: 16px;
  align-items: start;
}
.card--row .card__media {
  aspect-ratio: 1.75;
  border-radius: 8px;
}
.card--row .card__body {
  padding-top: 0;
  gap: 7px;
}
.card--row .card__title {
  font-size: 15.5px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Petite (Semaine) */
.card--small .card__media {
  aspect-ratio: 1.1;
}
.card--small .card__title {
  font-size: 15.5px;
  line-height: 1.38;
}
.card--small .card__body {
  gap: 9px;
}

/* ---------- Sections ---------- */
.section {
  margin-top: 80px;
}
.section--tight {
  margin-top: 32px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.see-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}
.see-all .i {
  transition: transform 0.3s var(--ease-out);
}
.see-all:hover .i {
  transform: translateX(4px);
}
.grid {
  display: grid;
  gap: 40px 24px;
}
.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 20px;
}

/* ---------- Hero ---------- */
.hero {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}
.hero__main {
  position: relative;
  min-height: 470px;
}
.hero__slides {
  position: absolute;
  inset: 0 0 0 64px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s;
}
.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}
.hero__image,
.hero__image .media {
  display: block;
  height: 100%;
  border-radius: 0;
}
.hero__slide .media img {
  transform: scale(1.08);
  transition: transform 8s linear, opacity 0.6s ease, filter 0.6s ease;
}
.hero__slide.is-active .media img.is-loaded {
  transform: scale(1);
}
.hero__card {
  position: absolute;
  left: 0;
  top: 36px;
  bottom: 36px;
  width: min(390px, 48%);
  z-index: 2;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 28px;
  background: var(--card);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px) saturate(1.2);
}
.hero__content {
  grid-area: 1 / 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.6s var(--ease-out), visibility 0.5s;
}
.hero__content.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0.15s;
}
.hero__title {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.025em;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero__title a:hover {
  background-size: 100% 2px;
}
.hero__excerpt {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.read-more {
  color: var(--text);
  font-weight: 600;
}
.read-more:hover {
  color: var(--accent);
}
.hero__foot {
  margin-top: auto;
}
.hero__date {
  font-size: 12px;
  color: var(--muted);
}
.hero__date a:hover {
  color: var(--accent);
}
.hero__controls {
  grid-row: 2;
  margin: 14px -6px -6px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero__dots {
  display: flex;
  gap: 6px;
}
.hero__dots button {
  width: 22px;
  height: 18px;
  display: grid;
  align-items: center;
}
.hero__dots span {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
  position: relative;
}
.hero__dots span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.hero__dots [aria-selected='true'] span::after {
  animation: progress var(--interval, 7s) linear forwards;
}
.hero__main.is-paused .hero__dots [aria-selected='true'] span::after {
  animation-play-state: paused;
}
@keyframes progress {
  to {
    transform: scaleX(1);
  }
}
.hero__arrows {
  display: flex;
  gap: 4px;
}
.arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--muted);
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.arrow:hover {
  background: var(--surface-2);
  color: var(--text);
}
.arrow:active {
  transform: scale(0.9);
}
.arrow--accent {
  color: var(--accent);
}
.hero__side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

/* ---------- À lire absolument ---------- */
.must-read {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 28px;
}
.must-read__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------- Nos sources ---------- */
.sources-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.source-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  margin: -10px;
  border-radius: 14px;
  transition: background-color 0.25s;
}
.source-chip:hover {
  background: var(--surface);
}
.source-chip .avatar {
  transition: transform 0.4s var(--ease-out);
}
.source-chip:hover .avatar {
  transform: scale(1.08) rotate(-4deg);
}
.source-chip__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.source-chip strong {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.source-chip small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--accent);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 104px;
  background: var(--surface);
  padding: 64px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 64px;
}
.footer-brand p {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-2);
  max-width: 320px;
}
.newsletter {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  max-width: 420px;
}
.newsletter__field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.newsletter__field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}
.newsletter__field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: 14px;
  color: var(--text);
}
.newsletter.is-done .newsletter__field {
  border-color: #30a46c;
}
.newsletter.is-error .newsletter__field {
  border-color: var(--accent);
  animation: shake 0.4s;
}
@keyframes shake {
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}
.footer-brand .newsletter__hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.footer-cols h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}
.footer-cols li + li {
  margin-top: 12px;
}
.footer-cols a {
  font-size: 13.5px;
  color: var(--text-2);
  transition: color 0.2s;
}
.footer-cols a:hover {
  color: var(--accent);
}
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 12.5px;
  color: var(--muted);
}
.footer-note {
  display: block;
  margin-top: 4px;
}
.footer-bottom nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-bottom a:hover {
  color: var(--text);
}

/* ---------- Article ---------- */
.article-head {
  max-width: 880px;
  padding-top: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb .i {
  font-size: 12px;
  opacity: 0.6;
}
.breadcrumb a:hover {
  color: var(--accent);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cat, var(--accent));
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.kicker::before {
  content: '';
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.article-title {
  margin-top: 14px;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.article-dek {
  margin-top: 18px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 760px;
  text-wrap: pretty;
}
.article-meta {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13px;
  color: var(--muted);
}
.article-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-cover {
  margin: 36px 0 0;
}
.article-cover__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.article-cover__legend {
  flex: 1 1 320px;
  color: var(--text-2);
}
.article-cover__legend em {
  color: var(--muted);
}
.article-cover__credit {
  /* Texte courant (pas de flex) : la ponctuation reste collée aux liens */
  display: block;
  margin-left: auto;
}
.article-cover__credit .i {
  width: 14px;
  height: 14px;
  margin-right: 5px;
  vertical-align: -2px;
  color: var(--accent);
}
/* Mention IA : l'icône reste collée à la première ligne du texte */
.article-cover__credit--ai {
  display: flex;
  align-items: flex-start;
}
.article-cover__credit--ai .i {
  flex: none;
  margin-top: 2px;
}
.article-cover__credit a {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.article-cover__credit a:hover {
  color: var(--accent);
}
.article-cover .media {
  aspect-ratio: 2.3;
  border-radius: var(--radius-lg);
  view-transition-name: cover;
}
.article-layout {
  display: grid;
  grid-template-columns: 72px minmax(0, 720px) minmax(0, 1fr);
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
}
.article-aside {
  position: relative;
}
.share,
.toc {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.share {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.share__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}
.share__btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 17px;
  color: var(--text-2);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.25s var(--ease-out);
}
.share__btn:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: translateY(-2px);
}
.share__btn.is-copied {
  background: #30a46c;
  border-color: #30a46c;
  color: #fff;
}
.toc {
  font-size: 13.5px;
  max-width: 260px;
}
.toc__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
}
.toc ol {
  border-left: 2px solid var(--line);
}
.toc a {
  display: block;
  padding: 7px 0 7px 16px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--muted);
  line-height: 1.4;
  transition: color 0.2s, border-color 0.3s;
}
.toc a:hover {
  color: var(--text);
}
.toc a.is-active {
  color: var(--text);
  font-weight: 500;
  border-left-color: var(--accent);
}
.key-points {
  position: relative;
  padding: 24px 26px 24px 28px;
  border-radius: 14px;
  background: var(--surface);
  margin-bottom: 36px;
  overflow: hidden;
}
.key-points::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
}
.key-points h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 14px;
}
.key-points li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-2);
}
.key-points li + li {
  margin-top: 10px;
}
.key-points li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%23e5484d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat;
}
.prose {
  font-size: 17.5px;
  line-height: 1.78;
  color: var(--text-2);
  text-wrap: pretty;
}
.prose > * + * {
  margin-top: 1.15em;
}
.prose h2 {
  margin-top: 1.9em;
  font-size: 25px;
  line-height: 1.25;
  color: var(--text);
  font-weight: 700;
}
.prose h3 {
  margin-top: 1.6em;
  font-size: 20px;
  color: var(--text);
}
.prose a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.prose a:hover {
  color: var(--accent);
}
.prose strong {
  color: var(--text);
  font-weight: 650;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose ul {
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose li + li {
  margin-top: 0.4em;
}
.prose li::marker {
  color: var(--accent);
}
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  font-size: 1.1em;
  font-style: italic;
  color: var(--text);
}
.prose .lead {
  font-size: 1.15em;
  color: var(--text);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}
.tag,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: background-color 0.2s, color 0.2s;
}
.tag:hover,
.chip:hover {
  background: var(--text);
  color: var(--bg);
}
.citations {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.citations h2 {
  font-size: 20px;
}
.citations__intro {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}
.citations__list {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}
.citation {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s var(--ease-out);
}
.citation:hover {
  border-color: transparent;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.citation__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.citation__source {
  font-weight: 600;
}
.citation__source:hover {
  color: var(--accent);
}
.citation__type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}
.citation__title {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-2);
}
.citation__title .i {
  font-size: 12px;
  flex: none;
  transform: translateY(1px);
}
.citation__title:hover {
  color: var(--accent);
}
.citation__ts {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

/* ---------- Listes / rubriques ---------- */
.listing-head {
  padding-top: 32px;
}
.listing-head__row {
  display: flex;
  align-items: center;
  gap: 24px;
}
.listing-head .kicker {
  margin-top: 24px;
}
.listing-title {
  margin-top: 10px;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.035em;
}
.listing-intro {
  margin-top: 12px;
  max-width: 640px;
  font-size: 17px;
  color: var(--text-2);
}
.listing-count {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.listing-count a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
}
.load-more {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}
.search-page-form {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 640px;
  padding: 6px 6px 6px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-page-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}
.search-page-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: 16px;
  color: var(--text);
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 72px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}
.empty-state > .i {
  font-size: 40px;
  color: var(--accent);
}
.empty-state h2 {
  font-size: 22px;
}
.empty-state p {
  color: var(--muted);
}
.empty-state .btn {
  margin-top: 8px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.static-page {
  max-width: 760px;
  padding-top: 32px;
}
.static-page .prose {
  margin-top: 28px;
}
.empty-home {
  padding-top: 80px;
}
.empty-home__card {
  text-align: center;
  padding: 80px 24px;
  border-radius: 24px;
  background: var(--surface);
}
.empty-home__card h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin-top: 18px;
}
.empty-home__card p {
  margin-top: 12px;
  color: var(--muted);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- 404 ---------- */
.not-found {
  text-align: center;
  padding-top: 96px;
}
.not-found__code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(90px, 16vw, 160px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}
.not-found__o {
  width: 0.72em;
  height: 0.72em;
  border-radius: 50%;
  border: 0.14em solid var(--accent);
  border-right-color: transparent;
  animation: spin 2.4s var(--ease) infinite;
}
.not-found h1 {
  margin-top: 28px;
  font-size: 28px;
}
.not-found p {
  margin-top: 10px;
  color: var(--muted);
}
.not-found__actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ---------- Recherche instantanée ---------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}
.search-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s;
}
.search-overlay__panel {
  position: relative;
  margin: 12vh auto 0;
  width: min(680px, calc(100vw - 32px));
  background: var(--bg);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-12px) scale(0.97);
  transition: opacity 0.25s, transform 0.35s var(--ease-out);
}
.search-overlay.is-open {
  pointer-events: auto;
}
.search-overlay.is-open .search-overlay__backdrop {
  opacity: 1;
}
.search-overlay.is-open .search-overlay__panel {
  opacity: 1;
  transform: none;
}
.search-overlay__form {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  height: 64px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 20px;
}
.search-overlay__form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: 17px;
  color: var(--text);
}
.search-overlay__form input::-webkit-search-cancel-button {
  display: none;
}
.search-overlay__form kbd {
  cursor: pointer;
}
.search-overlay__results {
  max-height: min(60vh, 520px);
  overflow-y: auto;
  padding: 8px;
}
.search-overlay__hint {
  padding: 22px 14px;
  font-size: 13.5px;
  color: var(--muted);
}
.search-overlay__hint span {
  display: block;
  margin-top: 6px;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 12px;
  transition: background-color 0.15s;
  animation: fadeUp 0.35s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}
.search-result.is-active,
.search-result:hover {
  background: var(--surface);
}
.search-result img {
  width: 64px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}
.search-result__text {
  min-width: 0;
}
.search-result strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result small {
  font-size: 12px;
  color: var(--muted);
}
.search-result small b {
  font-weight: 600;
}
.search-result mark {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}
.search-overlay__all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 6px;
  padding: 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
}
.search-overlay__all:hover {
  background: var(--surface);
}
.skeleton {
  height: 68px;
  margin: 4px 0;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 37%, var(--surface) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
}
@keyframes shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

/* ---------- Toasts & retour en haut ---------- */
.toasts {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 95;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.45s var(--ease-out) both;
}
.toast .i {
  color: #3dd68c;
}
.toast.is-leaving {
  animation: toastOut 0.3s ease forwards;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
}
@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
}
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.4s var(--ease-out), background-color 0.2s;
}
.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover {
  background: var(--accent);
}

/* ---------- Animations d'apparition ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
.hero {
  animation: fadeUp 0.8s var(--ease-out) both;
}
.ticker {
  animation: fadeUp 0.6s var(--ease-out) both;
}

/* Transitions de page (navigateurs compatibles) */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: 0.18s ease both vtOut;
}
::view-transition-new(root) {
  animation: 0.32s var(--ease-out) both vtIn;
}
::view-transition-group(cover) {
  animation-duration: 0.45s;
  animation-timing-function: var(--ease-out);
}
@keyframes vtOut {
  to {
    opacity: 0;
  }
}
@keyframes vtIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .main-nav ul {
    gap: 20px;
  }
  .article-layout {
    grid-template-columns: 64px minmax(0, 1fr) 220px;
    gap: 36px;
  }
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
  }
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sources-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-layout {
    grid-template-columns: minmax(0, 720px);
  }
  .article-aside--right {
    display: none;
  }
  .article-aside--left {
    order: 2;
  }
  .share {
    position: static;
    flex-direction: row;
    justify-content: center;
    padding-top: 8px;
  }
  .share__label {
    margin: 0 6px 0 0;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}
@media (max-width: 860px) {
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .must-read {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  :root {
    --gutter: 16px;
    --header-h: 56px;
  }
  body {
    font-size: 15px;
  }
  .logo {
    font-size: 20px;
  }
  .ticker {
    margin-top: 12px;
    height: 42px;
    padding-left: 14px;
  }
  .hero {
    margin-top: 16px;
  }
  .hero__main {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .hero__slides {
    position: relative;
    inset: auto;
    aspect-ratio: 1.45;
    border-radius: 12px;
  }
  .hero__card {
    position: relative;
    inset: auto;
    width: auto;
    margin: -48px 12px 0;
    padding: 20px;
    background: var(--surface);
    backdrop-filter: none;
  }
  .hero__title {
    font-size: 23px;
    -webkit-line-clamp: 4;
  }
  .hero__excerpt {
    -webkit-line-clamp: 3;
  }
  .hero__side {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .card--compact {
    grid-template-columns: 96px 1fr;
  }
  .section {
    margin-top: 56px;
  }
  .section-head {
    margin-bottom: 20px;
  }
  .section-title {
    font-size: 23px;
  }
  .grid--3 {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 14px;
  }
  .card--small .card__title {
    font-size: 14.5px;
  }
  .card--small .byline__time,
  .card--small .byline .dot {
    display: none;
  }
  .card--big .card__media {
    aspect-ratio: 1.6;
  }
  .card--big .card__title {
    font-size: 20px;
  }
  .card--row {
    grid-template-columns: 120px 1fr;
    gap: 14px;
  }
  .card--row .card__media {
    aspect-ratio: 1.1;
  }
  .sources-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .source-chip {
    margin: 0;
    padding: 6px 0;
  }
  .source-chip strong {
    font-size: 14px;
  }
  .site-footer {
    margin-top: 72px;
    padding-top: 48px;
  }
  .newsletter {
    flex-direction: column;
  }
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 16px;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .article-head {
    text-align: left;
    align-items: flex-start;
    padding-top: 20px;
  }
  .article-meta {
    justify-content: flex-start;
  }
  .article-cover {
    margin-top: 24px;
  }
  .article-cover .media {
    aspect-ratio: 1.6;
    border-radius: 12px;
  }
  .article-layout {
    margin-top: 32px;
  }
  .prose {
    font-size: 17px;
  }
  .listing-head__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .search-overlay__panel {
    margin-top: 12px;
  }
  .to-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ticker__track {
    animation: none !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .article-aside,
  .to-top,
  .related,
  .ticker {
    display: none !important;
  }
}

/* Bandeau d'aperçu d'un brouillon (admins) */
.preview-banner { position: sticky; top: 0; z-index: 60; display: flex; gap: 1rem; justify-content: center; align-items: center; padding: .6rem 1rem; background: #FFB224; color: #1a1a1a; font-size: .875rem; font-weight: 600; }
.preview-banner a { text-decoration: underline; }
