/* =============================================================================
   SILLAGE — Maquette UI/UX d'un média d'actualité généraliste
   Mobile-first · optimisé Google Discover (images 16:9, CWV, E-E-A-T)
   ============================================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f2ee;
  --text: #121212;
  --text-2: #3f3f46;
  --muted: #6b6b6b;
  --line: #e6e2da;
  --accent: #d0213b;
  --accent-ink: #ffffff;
  --accent-soft: #fdecee;
  --live: #e11d2e;
  --focus: #2563eb;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1240px;
  --gutter: 16px;
  --header-h: 56px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0e0f11;
  --bg-alt: #18191c;
  --text: #f2f2f2;
  --text-2: #c9c9cf;
  --muted: #9b9ba3;
  --line: #2a2c31;
  --accent: #ff5168;
  --accent-ink: #111111;
  --accent-soft: #3a1720;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0f11;
    --bg-alt: #18191c;
    --text: #f2f2f2;
    --text-2: #c9c9cf;
    --muted: #9b9ba3;
    --line: #2a2c31;
    --accent: #ff5168;
    --accent-ink: #111111;
    --accent-soft: #3a1720;
    color-scheme: dark;
  }
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --header-h: 64px; }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 300;
  background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 8px; }
.icon { width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; }

/* ---------- 3. Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg);
  font: 600 14px/1 var(--sans); cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, filter .15s;
}
.btn:hover { background: var(--bg-alt); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent); filter: brightness(1.08); }
.btn--dark { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn--dark:hover { background: var(--text); filter: brightness(1.2); }
.btn--lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn--block { width: 100%; }

.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; flex: none;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  transition: background-color .15s;
}
.icon-btn:hover { background: var(--bg-alt); }
.icon-btn--outline { border: 1px solid var(--line); }
.icon-btn[aria-pressed="true"] { color: var(--accent); }
.icon-btn[aria-pressed="true"] svg path { fill: currentColor; }

/* ---------- 4. Bandeau maquette ---------- */
.proto-bar { background: #111; color: #bbb; font: 500 12.5px/1 var(--sans); }
.proto-bar .container { display: flex; align-items: center; gap: 12px; padding-block: 8px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.proto-bar strong { color: #fff; }
.proto-bar .proto-sep { opacity: .6; }
.proto-bar nav { display: flex; gap: 4px; margin-left: auto; }
.proto-bar nav a { padding: 5px 10px; border-radius: 999px; color: #ccc; }
.proto-bar nav a:hover { color: #fff; background: #262626; }
.proto-bar nav a[aria-current="page"] { background: #fff; color: #111; }

/* ---------- 5. En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg); border-bottom: 1px solid var(--line);
  transition: transform .25s ease;
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); }
.header-left, .header-right { display: flex; align-items: center; gap: 4px; }
.header-right { justify-content: flex-end; }
.header-date { display: none; margin-left: 8px; font-size: 13px; color: var(--muted); }
@media (min-width: 1024px) { .header-date { display: inline; } }

.logo { display: inline-flex; align-items: baseline; gap: 3px; font: 700 28px/1 var(--serif); letter-spacing: -.035em; }
.logo { gap: 7px; white-space: nowrap; }
.logo-marque { align-self: center; height: 1.05em; width: auto; flex: none; }
@media (min-width: 1024px) { .logo { font-size: 34px; } }
.logo--sm { font-size: 24px; }

.btn-follow { display: none; height: 36px; padding: 0 14px; margin-right: 4px; }
@media (min-width: 640px) { .btn-follow { display: inline-flex; } }

.main-nav { border-top: 1px solid var(--line); }
.main-nav ul {
  display: flex; gap: 2px; list-style: none; overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 88%, transparent);
          mask-image: linear-gradient(to right, #000 88%, transparent);
}
.main-nav ul::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) {
  .main-nav ul { justify-content: center; -webkit-mask-image: none; mask-image: none; }
}
.main-nav a {
  display: flex; align-items: center; gap: 6px; padding: 12px 10px; margin-bottom: -1px;
  font: 600 14px/1 var(--sans); color: var(--text-2); white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--text); }
.main-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.main-nav .is-live { color: var(--live); }
.main-nav .is-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }

/* ---------- 6. Menu tiroir ---------- */
.drawer { position: fixed; inset: 0; z-index: 200; display: none; }
.drawer.is-open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.drawer-panel {
  position: absolute; inset: 0 auto 0 0; width: min(88vw, 380px);
  background: var(--bg); padding: 12px 20px 40px; overflow-y: auto;
  box-shadow: 0 0 40px rgba(0, 0, 0, .25); animation: slide-in .22s ease;
}
@keyframes slide-in { from { transform: translateX(-100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: 48px; margin-bottom: 12px; }
.drawer-search {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; margin-bottom: 12px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
}
.drawer-search:focus-within { border-color: var(--text); }
.drawer-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: 400 16px var(--sans); color: var(--text); }
.drawer-nav a {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 0;
  border-bottom: 1px solid var(--line); font: 600 19px/1.2 var(--serif);
}
.drawer-nav a svg { color: var(--muted); }
.drawer-group-title { margin: 26px 0 6px; font: 700 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.drawer-links a { display: block; padding: 8px 0; font-size: 15px; color: var(--text-2); }
.drawer-links a:hover { color: var(--text); }

/* ---------- 7. Bandeau « En direct » ---------- */
.breaking { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.breaking a { display: flex; align-items: center; gap: 12px; padding-block: 11px; font: 600 14px/1.35 var(--sans); }
.breaking a:hover .breaking-text { text-decoration: underline; text-underline-offset: 3px; }
.breaking .icon { margin-left: auto; color: var(--muted); }
.live-pill {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 5px 8px; border-radius: 4px; background: var(--live); color: #fff;
  font: 700 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
}
.live-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 8. Méta, surtitres, badges ---------- */
.kicker {
  position: relative; z-index: 1; align-self: flex-start;
  font: 700 12px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
}
a.kicker:hover { text-decoration: underline; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font: 400 13px/1.4 var(--sans); color: var(--muted); }
.meta .sep::before { content: "·"; }
.meta strong { font-weight: 600; color: var(--text-2); }
.badge {
  position: absolute; left: 10px; top: 10px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px;
  background: rgba(0, 0, 0, .72); color: #fff; font: 600 11.5px/1 var(--sans);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.badge--live { background: var(--live); }

/* ---------- 9. Cartes article ---------- */
.card { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card-media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius-sm); background: var(--bg-alt);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.card-title { font: 600 20px/1.22 var(--serif); letter-spacing: -.01em; text-wrap: pretty; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.card:hover .card-title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card-excerpt { font: 400 15px/1.5 var(--sans); color: var(--text-2); }

.card--hero { gap: 14px; }
.card--hero .card-media { border-radius: var(--radius); }
.card--hero .card-title { font-size: clamp(26px, 6vw, 40px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.card--hero .card-excerpt { font-size: 16.5px; }

/* Carte horizontale (vignette à droite) */
.card--row { flex-direction: row; align-items: flex-start; gap: 14px; }
.card--row .card-media { order: 2; width: 112px; flex: none; aspect-ratio: 4 / 3; }
.card--row .card-title { font-size: 17px; line-height: 1.25; }
.card--row .card-excerpt { display: none; }
@media (min-width: 1024px) { .card--row .card-media { width: 136px; } }

/* Carte qui devient horizontale sur mobile */
@media (max-width: 767.98px) {
  .card--responsive { flex-direction: row; align-items: flex-start; gap: 14px; }
  .card--responsive .card-media { order: 2; width: 112px; flex: none; aspect-ratio: 4 / 3; }
  .card--responsive .card-title { font-size: 17px; line-height: 1.25; }
  .card--responsive .card-excerpt { display: none; }
  .card--responsive .badge { display: none; }
}

/* Carte « à la une » de rubrique (image + texte côte à côte en desktop) */
@media (min-width: 900px) {
  .card--lead { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: center; }
  .card--lead .card-title { font-size: 34px; font-weight: 700; line-height: 1.1; }
  .card--lead .card-excerpt { font-size: 16.5px; }
}

/* Carte texte seul */
.card--text .card-title { font-size: 18px; }

/* ---------- 10. Mises en page ---------- */
.home-top { display: grid; gap: 32px; padding-block: 20px 32px; }
@media (min-width: 1024px) {
  .home-top { grid-template-columns: minmax(0, 1fr) 336px; gap: 44px; padding-top: 28px; }
}
.top-secondary { display: grid; gap: 16px; margin-top: 24px; }
.top-secondary > .card + .card { padding-top: 16px; border-top: 1px solid var(--line); }
@media (min-width: 768px) {
  .top-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin-top: 32px; }
  .top-secondary > .card + .card { padding-top: 0; border-top: 0; }
}

.section { padding-block: 32px; border-top: 1px solid var(--line); }
.section--flush { border-top: 0; padding-top: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-title { display: flex; align-items: center; gap: 10px; font: 700 24px/1.1 var(--serif); letter-spacing: -.01em; }
.section-title::before { content: ""; width: 4px; height: 22px; border-radius: 2px; background: var(--accent); }
.see-all { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; font: 600 14px/1 var(--sans); color: var(--accent); white-space: nowrap; }
.see-all:hover { text-decoration: underline; text-underline-offset: 3px; }

.split { display: grid; gap: 20px; }
@media (min-width: 768px) { .split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; } }

.stack { display: flex; flex-direction: column; }
.stack > * { padding-block: 14px; border-bottom: 1px solid var(--line); }
.stack > *:first-child { padding-top: 0; }
.stack > *:last-child { border-bottom: 0; padding-bottom: 0; }

.duo { display: grid; gap: 36px; }
@media (min-width: 900px) { .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; } }

.grid-3, .grid-4 { display: grid; gap: 16px; }
.grid-3 > .card + .card, .grid-4 > .card + .card { padding-top: 16px; border-top: 1px solid var(--line); }
@media (min-width: 768px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .grid-3 > .card + .card, .grid-4 > .card + .card { padding-top: 0; border-top: 0; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Carrousel horizontal sur mobile, grille sur desktop */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 768px) {
  .rail { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; overflow: visible; margin-inline: 0; padding-inline: 0; }
}
@media (min-width: 1024px) { .rail { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- 11. Panneaux latéraux : fil info, plus lus ---------- */
.panel-title {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-bottom: 12px; margin-bottom: 4px; border-bottom: 2px solid var(--text);
  font: 700 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
}
.panel-title .live-dot { display: inline-flex; align-items: center; gap: 6px; }
.panel-title .live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.4s infinite; }
.panel + .panel, .panel + .ad, .ad + .panel { margin-top: 28px; }

.fil { list-style: none; }
.fil li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fil time { font: 700 13px/1.45 var(--sans); color: var(--accent); font-variant-numeric: tabular-nums; }
.fil-k { display: block; margin-bottom: 3px; font: 600 11px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fil a { font: 500 15px/1.35 var(--sans); }
.fil a:hover { text-decoration: underline; text-underline-offset: 3px; }
.panel-more { display: block; margin-top: 14px; font: 600 14px/1 var(--sans); color: var(--accent); }

.most-read { list-style: none; counter-reset: mr; }
.most-read li { counter-increment: mr; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.most-read li:last-child { border-bottom: 0; }
.most-read li::before { content: counter(mr); font: 700 30px/1 var(--serif); color: var(--accent); }
.most-read a { font: 600 17px/1.28 var(--serif); }
.most-read a:hover { text-decoration: underline; text-underline-offset: 3px; }
.most-read .meta { margin-top: 4px; }

/* ---------- 12. Publicité : emplacements réservés (zéro CLS) ---------- */
.ad {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1px dashed var(--line); border-radius: var(--radius-sm); background: var(--bg-alt);
  font: 600 11px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center;
}
.ad small { font-weight: 400; letter-spacing: 0; text-transform: none; opacity: .85; }
.ad--mpu { min-height: 250px; }
.ad--banner { min-height: 100px; margin-block: 8px 32px; }
@media (min-width: 768px) { .ad--banner { min-height: 90px; max-width: 728px; margin-inline: auto; } }
.ad--inarticle { min-height: 280px; margin-block: 1.8em; }
.sticky-side { position: sticky; top: calc(var(--header-h) + 24px); }

/* ---------- 13. Blocs d'engagement : suivre, newsletter ---------- */
.follow-card {
  display: grid; gap: 16px; padding: 22px 20px; margin-bottom: 32px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-soft), transparent 65%);
}
.follow-card h2 { font: 700 22px/1.2 var(--serif); }
.follow-card p { margin-top: 6px; font-size: 15px; color: var(--text-2); }
.follow-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 900px) { .follow-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 24px 28px; } }

.newsletter { padding: 24px; border-radius: var(--radius); background: #16171a; color: #fff; border: 1px solid var(--line); }
.newsletter .eyebrow { font: 700 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #ff8a9a; }
.newsletter h2 { margin: 10px 0 8px; font: 700 26px/1.15 var(--serif); }
.newsletter p { font-size: 15px; color: #c9c9cf; }
.newsletter form { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
@media (min-width: 480px) { .newsletter form { flex-direction: row; } }
.newsletter input {
  flex: 1; min-width: 0; height: 48px; padding: 0 18px; border: 0; border-radius: 999px;
  background: #fff; color: #111; font: 400 16px var(--sans);
}
.newsletter .btn--primary { height: 48px; background: #d0213b; border-color: #d0213b; color: #fff; }
.newsletter .fine { margin-top: 12px; font-size: 12.5px; color: #8b8b93; }

/* ---------- 14. Pied de page ---------- */
.site-footer { margin-top: 48px; padding: 44px 0 28px; background: var(--bg-alt); border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.footer-grid { display: grid; gap: 28px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { max-width: 40ch; margin-top: 12px; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: auto; }
}
.footer-title { margin-bottom: 12px; font: 700 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.footer-links { list-style: none; display: grid; gap: 9px; }
.footer-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- 15. Page article ---------- */
.read-progress { position: fixed; inset: 0 0 auto 0; z-index: 120; height: 3px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

.article-layout { display: grid; gap: 40px; padding-block: 18px 16px; }
@media (min-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0, 720px) 300px; justify-content: space-between; padding-top: 28px; }
}

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-bottom: 14px; font: 500 13px/1.4 var(--sans); color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }

.article-title { margin: 10px 0 14px; font: 700 clamp(29px, 6.4vw, 46px)/1.1 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.standfirst { margin-bottom: 20px; font: 400 clamp(18.5px, 2.6vw, 21px)/1.45 var(--serif); color: var(--text-2); }

.byline { display: flex; align-items: center; gap: 12px; padding-block: 14px; border-top: 1px solid var(--line); }
.avatar {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #d0213b, #6d0f1e); color: #fff; font: 700 15px/1 var(--sans);
}
.avatar--blue { background: linear-gradient(135deg, #2563eb, #1e3a8a); }
.avatar--green { background: linear-gradient(135deg, #059669, #064e3b); }
.avatar--amber { background: linear-gradient(135deg, #d97706, #7c2d12); }
.avatar--lg { width: 64px; height: 64px; font-size: 21px; }
.avatar--xl { width: 112px; height: 112px; font-size: 38px; }
@media (min-width: 768px) { .avatar--xl { width: 132px; height: 132px; font-size: 44px; } }
.byline-name { font: 400 15px/1.35 var(--sans); }
.byline-name a { font-weight: 700; }
.byline-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.byline-name .role { color: var(--muted); }
.byline-dates { margin-top: 2px; font: 400 13px/1.4 var(--sans); color: var(--muted); }

.share-bar { display: flex; align-items: center; gap: 6px; padding-block: 10px; border-block: 1px solid var(--line); }
.share-bar .spacer { flex: 1; }
.share-bar .btn { height: 38px; padding: 0 14px; font-size: 13.5px; }

.article-figure { margin: 20px calc(var(--gutter) * -1) 0; }
.article-figure .card-media { border-radius: 0; }
.article-figure figcaption { padding: 8px var(--gutter) 0; font: 400 13px/1.45 var(--sans); color: var(--muted); }
.article-figure .credit { white-space: nowrap; opacity: .85; }
@media (min-width: 768px) {
  .article-figure { margin-inline: 0; }
  .article-figure .card-media { border-radius: var(--radius); }
  .article-figure figcaption { padding-inline: 0; }
}

.update-note {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 12px 14px;
  border-radius: var(--radius-sm); background: var(--accent-soft); font: 400 14.5px/1.45 var(--sans);
}
.update-note strong { color: var(--accent); }

.key-points { margin: 22px 0 28px; padding: 18px 20px; border-left: 4px solid var(--accent); border-radius: var(--radius-sm); background: var(--bg-alt); }
.key-points h2 { margin-bottom: 10px; font: 700 12.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.key-points ul { padding-left: 18px; }
.key-points li { margin: 7px 0; font: 400 16px/1.5 var(--sans); }
.key-points li::marker { color: var(--accent); }

.prose { font: 400 19px/1.7 var(--serif); }
.prose > p { margin-bottom: 1.1em; }
.prose h2 { margin: 1.7em 0 .55em; font: 700 25px/1.25 var(--serif); letter-spacing: -.01em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 3px solid var(--accent); font: italic 400 23px/1.4 var(--serif); }
.prose blockquote p { margin: 0; }
.prose blockquote cite { display: block; margin-top: 10px; font: normal 500 14px/1.4 var(--sans); color: var(--muted); }
.prose figure { margin: 1.6em 0; }
.prose figcaption { margin-top: 8px; font: 400 13px/1.45 var(--sans); color: var(--muted); }

.read-also {
  position: relative; display: flex; align-items: center; gap: 14px; margin: 1.6em 0; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--sans);
  transition: border-color .15s;
}
.read-also:hover { border-color: var(--text); }
.prose .read-also { color: inherit; text-decoration: none; }
.read-also img { width: 104px; aspect-ratio: 16 / 9; flex: none; object-fit: cover; border-radius: 6px; }
.read-also .label { display: block; margin-bottom: 4px; font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.read-also .t { display: block; font: 600 16.5px/1.3 var(--serif); color: var(--text); }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 1.6em 0; font-family: var(--sans); }
.fact { padding: 14px 10px; border-radius: var(--radius-sm); background: var(--bg-alt); text-align: center; }
.fact strong { display: block; margin-bottom: 4px; font: 700 clamp(22px, 5vw, 30px)/1 var(--serif); color: var(--accent); }
.fact span { display: block; font-size: 13px; line-height: 1.35; color: var(--text-2); }

.sources { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font: 400 14px/1.55 var(--sans); color: var(--text-2); }
.sources h2 { margin-bottom: 8px; font: 700 12.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.sources ul { padding-left: 18px; }

.trust {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); font: 400 14px/1.5 var(--sans); color: var(--text-2);
}
.trust svg { color: #15803d; margin-top: 1px; }
.trust a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none; height: 34px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
  font: 600 13px/1 var(--sans); color: var(--text-2); white-space: nowrap;
}
.chip:hover { border-color: var(--text); color: var(--text); }
.chip[aria-current] { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip--follow { border-color: var(--accent); color: var(--accent); }

.author-box { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; margin-top: 28px; padding: 20px; border-radius: var(--radius); background: var(--bg-alt); }
.author-box-name { font: 700 19px/1.2 var(--serif); }
.author-box-name a:hover { text-decoration: underline; }
.author-box-role { margin: 3px 0 10px; font: 600 13.5px/1.35 var(--sans); color: var(--accent); }
.author-box-bio { margin-bottom: 12px; font: 400 15px/1.55 var(--sans); color: var(--text-2); }

.follow-inline { display: grid; gap: 14px; margin-top: 28px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.follow-inline h2 { font: 700 20px/1.2 var(--serif); }
.follow-inline p { font-size: 14.5px; color: var(--text-2); }
.follow-inline .follow-actions .btn { flex: 1 1 auto; }

/* ---------- 16. Pages rubrique & auteur ---------- */
.page-head { padding-block: 28px 22px; border-bottom: 1px solid var(--line); }
.page-head .kicker { display: inline-block; margin-bottom: 10px; }
.page-head h1 { font: 700 clamp(38px, 9vw, 64px)/1 var(--serif); letter-spacing: -.035em; }
.page-head .lead { max-width: 62ch; margin: 12px 0 18px; font-size: 17px; color: var(--text-2); }
.page-head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }

.load-more { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 36px; }
.pager { display: flex; gap: 6px; list-style: none; }
.pager a {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; font: 600 14px/1 var(--sans);
}
.pager a:hover { border-color: var(--text); }
.pager a[aria-current] { background: var(--text); border-color: var(--text); color: var(--bg); }

.author-hero { display: grid; gap: 22px; padding-block: 32px 30px; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .author-hero { grid-template-columns: 132px minmax(0, 1fr); gap: 36px; align-items: start; } }
.author-hero h1 { font: 700 clamp(34px, 7vw, 52px)/1.05 var(--serif); letter-spacing: -.025em; }
.author-role { margin: 8px 0 16px; font: 600 15px/1.4 var(--sans); color: var(--accent); }
.author-bio { max-width: 66ch; font: 400 18.5px/1.6 var(--serif); color: var(--text-2); }
.author-bio + .author-bio { margin-top: .8em; }
.author-facts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: 22px; }
.author-fact { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14.5px; line-height: 1.45; }
.author-fact strong { display: block; margin-bottom: 4px; font: 700 11.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.author-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.list-articles { display: flex; flex-direction: column; }
.list-articles > .card { padding-block: 20px; border-bottom: 1px solid var(--line); }
.list-articles > .card:first-child { padding-top: 0; }
@media (min-width: 768px) {
  .list-articles .card--row .card-media { width: 240px; aspect-ratio: 16 / 9; }
  .list-articles .card--row .card-title { font-size: 22px; }
  .list-articles .card--row .card-excerpt { display: block; }
}

/* ---------- 17. Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 20px);
  padding: 12px 18px; border-radius: 999px; background: var(--text); color: var(--bg);
  font: 600 14px/1 var(--sans); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 18. Page « Aperçu Discover » ---------- */
.dv-head { padding-block: 32px 8px; }
.dv-head h1 { font: 700 clamp(32px, 6vw, 48px)/1.08 var(--serif); letter-spacing: -.025em; }
.dv-head p { max-width: 70ch; margin-top: 12px; font-size: 17px; color: var(--text-2); }

.dv-grid { display: grid; gap: 36px; padding-block: 28px; }
@media (min-width: 1024px) { .dv-grid { grid-template-columns: 380px minmax(0, 1fr); gap: 56px; align-items: start; } }

.phone {
  width: 100%; max-width: 372px; height: 760px; margin-inline: auto; overflow-y: auto; scrollbar-width: none;
  border: 10px solid #0f0f10; border-radius: 44px; background: #eef0f3; color: #1f1f1f;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .4); font-family: var(--sans);
}
.phone::-webkit-scrollbar { display: none; }
.phone-status { display: flex; justify-content: space-between; padding: 10px 24px 4px; font: 600 12.5px/1 var(--sans); }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px 14px; }
.phone-search { flex: 1; height: 44px; border-radius: 999px; background: #fff; display: flex; align-items: center; gap: 10px; padding: 0 16px; color: #5f6368; font-size: 14px; }
.phone-avatar { width: 34px; height: 34px; border-radius: 50%; background: #7c3aed; color: #fff; display: grid; place-items: center; font: 600 14px/1 var(--sans); }
.phone-label { padding: 2px 18px 10px; font: 500 13px/1 var(--sans); color: #5f6368; }

.dcard { margin: 0 10px 10px; overflow: hidden; border-radius: 22px; background: #fff; }
.dcard-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #dfe3e8; }
.dcard-body { padding: 12px 16px 12px; }
.dcard-src { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #5f6368; }
.dcard-fav { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: #d0213b; color: #fff; font: 700 12px/1 var(--serif); }
.dcard-fav--b { background: #1e3a8a; }
.dcard-fav--g { background: #065f46; }
.dcard-title {
  margin: 8px 0 12px; font: 500 17px/1.35 var(--sans); color: #1f1f1f;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.dcard-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: #5f6368; }
.dcard-actions { display: flex; gap: 16px; color: #444746; }
.dcard--compact .dcard-row { display: flex; gap: 12px; padding: 14px 16px 4px; }
.dcard--compact .dcard-row > div { flex: 1; min-width: 0; }
.dcard--compact .dcard-row img { order: 2; width: 92px; height: 92px; flex: none; border-radius: 14px; object-fit: cover; }
.dcard--compact .dcard-title { margin-bottom: 6px; font-size: 15.5px; }
.dcard--compact .dcard-foot { padding: 0 16px 12px; }

.tester { display: grid; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.tester h2 { font: 700 22px/1.2 var(--serif); }
.tester > p { font-size: 15px; color: var(--text-2); margin-top: -8px; }
.field label, .field .field-label { display: block; margin-bottom: 8px; font: 600 14px/1.3 var(--sans); }
.field textarea {
  width: 100%; min-height: 86px; padding: 12px 14px; resize: vertical;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: 400 16px/1.45 var(--sans);
}
.field textarea:focus { outline: none; border-color: var(--text); }
.counter { margin-top: 6px; font: 500 13px/1.4 var(--sans); color: var(--muted); }
.counter.is-ok { color: #15803d; }
.counter.is-warn { color: #b45309; }
.counter.is-bad { color: #dc2626; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs button { width: 92px; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 8px; background: var(--bg-alt); cursor: pointer; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button[aria-pressed="true"] { border-color: var(--accent); }
.switch { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; line-height: 1.45; cursor: pointer; }
.switch input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.switch code, .check-group code { padding: 1px 5px; border-radius: 4px; background: var(--bg-alt); font-size: 12.5px; }

.checklist { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.check-group { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.check-group h3 { margin-bottom: 12px; font: 700 19px/1.2 var(--serif); }
.check-group ul { list-style: none; display: grid; gap: 11px; }
.check-group li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 14.5px; line-height: 1.45; color: var(--text-2); }
.check-group li::before {
  content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: #dcfce7; color: #15803d; font: 700 12px/1 var(--sans);
}
.check-group li.todo::before { content: "!"; background: #fef3c7; color: #b45309; }
.check-group li strong { color: var(--text); }

/* ---------- 19. Compléments ---------- */
button.chip { cursor: pointer; }
.chip--follow[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.article-figure { margin-bottom: 18px; }
.article-figure + .byline { padding-top: 14px; }

/* Checklist : puce en absolu pour que le contenu reste un seul bloc de texte */
.check-group li { position: relative; display: block; padding-left: 30px; }
.check-group li::before { position: absolute; left: 0; top: 1px; }

/* =============================================================================
   Site dynamique (ajouts à la maquette)
   ============================================================================= */
.muted { color: var(--muted); }
.media-vide { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; text-align: center; background: linear-gradient(135deg, var(--bg-alt), var(--line)); color: var(--muted); font: 700 12px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.vide { padding: 56px 0; text-align: center; color: var(--muted); font: 400 16px/1.6 var(--sans); }
.vide a { color: var(--accent); text-decoration: underline; }
.vide-titre { margin-bottom: 6px; color: var(--text); font: 700 22px/1.3 var(--serif); }
.faq { margin-top: 32px; }
.faq h2 { margin-bottom: 8px; font: 700 25px/1.25 var(--serif); }
.faq h3 { margin: 18px 0 4px; font: 600 19px/1.35 var(--serif); }
.faq p { font: 400 18px/1.6 var(--serif); color: var(--text-2); }
.sources a { text-decoration: underline; text-underline-offset: 3px; }
.pagination { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }

/* Pages fixes (mentions légales, confidentialité) */
.page-fixe { max-width: 720px; margin: 24px auto 72px; }
.page-fixe .prose { font-size: 17px; }
.page-fixe .prose a { text-decoration: underline; text-underline-offset: 2px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a:hover { color: var(--text); text-decoration: underline; }
