/* =====================================================================
   medias.fr — base « Magazine » 2026 (commune aux titres du réseau)
   Les couleurs, polices et rubriques sont définies dans site.css.
   ===================================================================== */

/* ---------- 1. Jetons par défaut (surchargés par site.css) ---------- */
:root {
  --paper: #fafbf7; --surface: #ffffff; --surface-2: #f3f5ef; --mix: #ffffff;
  --ink: #16231b; --ink-2: #4b5a50; --ink-3: #7a877e; --line: #e2e8de;
  --brand: #1f6b43; --brand-ink: #ffffff; --brand-deep: #123f29; --brand-soft: #e3f0dd;
  --highlight: #f4b63f; --highlight-ink: #16231b; --highlight-soft: #fdf1d6;
  --alert: #c8442a; --alert-soft: #fbe7e1;
  --header-bg: rgba(250, 251, 247, .9);
  --footer-bg: #0f1d15; --footer-ink: #b8c7bc; --footer-strong: #ffffff;
  --band-bg: var(--brand); --band-ink: #ffffff; --band-muted: rgba(255, 255, 255, .78);
  --f-display: Georgia, serif; --f-body: system-ui, sans-serif;
  --display-weight: 400; --display-tracking: -0.02em; --display-case: none;
  --wrap: 1240px; --read: 720px; --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --pill: 999px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px -12px rgba(0, 0, 0, .25);
  --header-h: 72px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--highlight); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--highlight); color: var(--highlight-ink); }
.mag-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.mag-display, .mag h1, .mag h2 { font-family: var(--f-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 1.08; text-wrap: balance; color: var(--ink); margin: 0; }
.mag h3, .mag h4 { font-family: var(--f-body); font-weight: 700; line-height: 1.3; text-wrap: balance; color: var(--ink); margin: 0; }
.mag p { margin: 0 0 1em; }

/* ---------- 3. Bandeau des rubriques + en-tête ---------- */
.mag-stripe { display: flex; height: 5px; }
.mag-stripe span { flex: 1; background: var(--c); }
.mag-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; font-family: var(--f-body); }
.mag-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .45); }
.mag-header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.mag-logo { font: var(--display-weight) 1.55rem/1 var(--f-display); color: var(--ink); text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; text-transform: var(--logo-case, none); }
.mag-logo span { color: var(--brand); }
.mag-logo:hover { color: var(--ink); }
.mag-nav { flex: 1; min-width: 0; }
.mag-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.mag-nav a { display: block; padding: 8px 12px; border-radius: var(--pill); color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.mag-nav a:hover { background: var(--brand-soft); color: var(--ink); }
.mag-nav a.active, .mag-nav a[aria-current="page"] { background: var(--nav-active-bg, var(--ink)); color: var(--nav-active-ink, var(--paper)); }
.mag-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.mag-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: var(--pill); border: 1.5px solid transparent; font: 700 .95rem/1.1 var(--f-body); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, filter .15s; white-space: nowrap; }
.mag-btn--primary { background: var(--brand); color: var(--brand-ink); }
.mag-btn--primary:hover { filter: brightness(1.08); color: var(--brand-ink); }
.mag-btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.mag-btn--ghost:hover { background: var(--ink); color: var(--paper); }
.mag-btn--light { background: var(--highlight); color: var(--highlight-ink); }
.mag-btn--light:hover { filter: brightness(1.06); color: var(--highlight-ink); }
.mag-btn--small { min-height: 38px; padding: 8px 16px; font-size: .88rem; }

.mag-burger { display: none; width: 44px; height: 44px; border: 0; background: var(--surface); border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; padding: 0; position: relative; }
.mag-burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.mag-burger span:nth-child(1) { top: 15px; } .mag-burger span:nth-child(2) { top: 21px; } .mag-burger span:nth-child(3) { top: 27px; }
.mag-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mag-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mag-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mag-mobile { display: none; }
@media (max-width: 1100px) {
  .mag-nav { display: none; }
  .mag-burger { display: inline-block; }
  .mag-mobile { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; height: auto; background: var(--paper); padding: 24px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(40px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px)); overflow-y: auto; overscroll-behavior: contain; z-index: 100000; }
  .mag-mobile.is-open { display: grid; align-content: start; gap: 4px; }
  .mag-mobile a { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font: var(--display-weight) 1.45rem/1.2 var(--f-display); }
  .mag-mobile .mag-btn { margin-top: 20px; font-family: var(--f-body); font-size: 1rem; border: 0; justify-content: center; color: var(--brand-ink); }
}
@media (max-width: 520px) { .mag-header__actions .mag-btn--primary { display: none; } .mag-logo { font-size: 1.3rem; } }
.mag-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.mag-progress span { display: block; height: 100%; width: 0; background: var(--highlight); }

/* ---------- 4. Couvertures générées par rubrique ---------- */
.mag-art { --c: var(--brand); position: relative; display: block; overflow: hidden; container-type: inline-size; color: var(--c); background-color: color-mix(in srgb, var(--c) 13%, var(--mix)); background-image: radial-gradient(color-mix(in srgb, var(--c) 24%, transparent) 1.3px, transparent 1.5px); background-size: 15px 15px; aspect-ratio: 16 / 10; border-radius: var(--r-lg); isolation: isolate; }
.mag-art::after { content: var(--l, ""); position: absolute; left: -0.04em; bottom: -0.2em; z-index: -1; font: var(--display-weight) 30cqw/0.8 var(--f-display); letter-spacing: -0.05em; color: color-mix(in srgb, var(--c) 20%, transparent); white-space: nowrap; pointer-events: none; text-transform: var(--display-case); }
.mag-art svg { position: absolute; top: 7cqw; right: 7cqw; width: clamp(40px, 17cqw, 96px); height: auto; padding: clamp(8px, 3.4cqw, 18px); border-radius: 50%; background: var(--surface); box-sizing: content-box; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .45); }
.mag-art--solid { background-color: var(--c); background-image: radial-gradient(rgba(255, 255, 255, .13) 1.3px, transparent 1.5px); }
.mag-art--solid::after { color: rgba(255, 255, 255, .16); }
.mag-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.mag-art:has(img)::after { display: none; }
.mag-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--pill); background: color-mix(in srgb, var(--c, var(--brand)) 15%, var(--mix)); color: color-mix(in srgb, var(--c, var(--brand)) 72%, var(--ink)); font: 700 .78rem/1.2 var(--f-body); text-decoration: none; letter-spacing: .01em; }
.mag-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--brand)); }
a.mag-chip:hover { background: color-mix(in srgb, var(--c, var(--brand)) 25%, var(--mix)); }

/* ---------- 5. Accueil et sections ---------- */
.mag-section { padding-block: clamp(48px, 7vw, 88px); }
.mag-section--tight { padding-block: clamp(32px, 4vw, 48px); }
.mag-section--alt { background: var(--surface-2); }
.mag-section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.mag-section__head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.mag-section__head p { margin: 8px 0 0; color: var(--ink-2); max-width: 60ch; }
.mag-more { font-weight: 700; text-decoration: none; white-space: nowrap; color: var(--brand); }
.mag-more:hover { text-decoration: underline; }
.mag-cover { padding-block: clamp(32px, 6vw, 72px) clamp(40px, 6vw, 80px); }
.mag-cover__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.mag-cover h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); line-height: .98; letter-spacing: calc(var(--display-tracking) - 0.005em); margin-bottom: 24px; text-transform: var(--display-case); }
.mag-h1-sub { display: block; margin-top: 18px; font: 700 clamp(1rem, 1.4vw, 1.15rem)/1.3 var(--f-body); letter-spacing: 0; color: var(--brand); text-transform: none; }
.mag-cover__lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 36ch; margin-bottom: 32px; }
.mag-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mag-feature { display: grid; gap: 22px; text-decoration: none; color: var(--ink); }
.mag-feature .mag-art { aspect-ratio: 5 / 4; }
.mag-feature__body { display: grid; gap: 10px; justify-items: start; }
.mag-feature h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.mag-feature p { margin: 0; color: var(--ink-2); }
.mag-feature:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.mag-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink-3); font-size: .88rem; font-weight: 500; }
.mag-rubriques { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.mag-rubrique { --c: var(--brand); display: grid; gap: 6px; align-content: start; padding: 20px 18px 22px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.mag-rubrique:hover { border-color: var(--c); color: var(--ink); transform: translateY(-2px); }
.mag-rubrique__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, var(--mix)); color: var(--c); margin-bottom: 10px; }
.mag-rubrique__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mag-rubrique h3 { font-size: 1.05rem; }
.mag-rubrique p { margin: 0; font-size: .88rem; color: var(--ink-2); line-height: 1.45; }
.mag-stories { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); }
.mag-stories__lead { display: grid; gap: 14px; align-content: start; justify-items: start; text-decoration: none; color: var(--ink); }
.mag-stories__lead > .mag-art { justify-self: stretch; margin-bottom: 6px; }
.mag-stories__lead h3 { font: var(--display-weight) clamp(1.6rem, 2.4vw, 2.1rem)/1.12 var(--f-display); letter-spacing: var(--display-tracking); }
.mag-stories__lead p { margin: 0; color: var(--ink-2); }
.mag-stories__list { display: grid; align-content: start; }
.mag-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.mag-row:first-child { padding-top: 0; }
.mag-row:last-child { border-bottom: 0; }
.mag-row .mag-art { border-radius: var(--r-sm); aspect-ratio: 4 / 3; }
.mag-row .mag-art svg { width: 26cqw; top: 50%; right: 50%; transform: translate(50%, -50%); padding: 6cqw; }
.mag-row .mag-art::after { font-size: 42cqw; }
.mag-row h3 { font-size: 1.06rem; margin: 6px 0 4px; }
.mag-row .mag-meta { font-size: .82rem; }
.mag-stories__lead:hover h3, .mag-row:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.mag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.mag-card { display: grid; gap: 14px; align-content: start; }
.mag-card__art { display: block; text-decoration: none; }
.mag-card__body { display: grid; gap: 8px; justify-items: start; }
.mag-card .mag-card__title, .mag-card h3 { font: var(--display-weight) 1.32rem/1.2 var(--f-display); letter-spacing: var(--display-tracking); margin: 0; color: var(--ink); }
.mag-card .mag-card__title a, .mag-card h3 a { color: var(--ink); text-decoration: none; }
.mag-card h3 a:hover, .mag-card .mag-card__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.mag-card p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.mag-card--wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.mag-card--wide .mag-card__title { font-size: clamp(1.7rem, 2.8vw, 2.3rem) !important; }
.mag-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: stretch; }
.mag-panel { background: var(--brand-deep); color: rgba(255, 255, 255, .85); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; align-content: start; }
.mag-panel h2 { color: #fff; font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.mag-panel p { margin: 0; color: rgba(255, 255, 255, .75); }
.mag-panel ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.mag-panel li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: var(--r-md); background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; font-weight: 700; transition: background .15s; }
.mag-panel li a:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.mag-panel li a span { font-weight: 500; color: rgba(255, 255, 255, .65); font-size: .88rem; }
.mag-quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); display: grid; gap: 14px; align-content: start; }
.mag-quote h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.mag-quote p { margin: 0; color: var(--ink-2); }
.mag-quote__big { font: var(--display-weight) clamp(2.6rem, 5vw, 4rem)/1 var(--f-display); color: var(--brand); letter-spacing: var(--display-tracking); }
.mag-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.mag-stat { padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.mag-stat b { display: block; font: var(--display-weight) 1.9rem/1.1 var(--f-display); color: var(--brand); font-variant-numeric: tabular-nums; }
.mag-stat span { color: var(--ink-2); font-size: .92rem; }
.mag-faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.mag-faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: var(--ink); }
.mag-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.mag-faq details[open] summary::after { content: "–"; }
.mag-faq p { margin: 12px 0 0; color: var(--ink-2); }

/* Newsletter */
.mag-newsletter { background: var(--band-bg); color: var(--band-ink); padding-block: clamp(48px, 6vw, 72px); background-image: radial-gradient(rgba(255, 255, 255, .09) 1.4px, transparent 1.6px); background-size: 18px 18px; }
.mag-newsletter .mag-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px 48px; align-items: center; }
.mag-newsletter__title { font: var(--display-weight) clamp(1.8rem, 3vw, 2.5rem)/1.08 var(--f-display); color: var(--band-ink); margin: 0; letter-spacing: var(--display-tracking); }
.mag-newsletter p { color: var(--band-muted); margin: 0; }
.mag-newsletter form { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: var(--pill); box-shadow: var(--shadow); }
.mag-newsletter input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 16px; font: 500 1rem var(--f-body); color: #16181d; outline: none; }
.mag-newsletter button { min-height: 44px; padding: 10px 22px; border: 0; border-radius: var(--pill); background: var(--highlight); color: var(--highlight-ink); font: 700 .95rem var(--f-body); cursor: pointer; }
.mag-newsletter .mag-thanks { color: #16181d; padding: 10px 16px; font-weight: 700; }

/* Réseau medias.fr */
.mag-network-band { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.mag-net { display: grid; gap: 4px; padding: 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.mag-net:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--ink); }
.mag-net b { font: 800 1.05rem/1.2 var(--f-body); }
.mag-net span { color: var(--ink-2); font-size: .88rem; line-height: 1.4; }
.mag-net small { color: var(--ink-3); font-size: .78rem; }
.mag-net.is-soon { opacity: .6; pointer-events: none; }
.mag-crosslinks { margin: 56px 0 0; padding: 28px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); font-family: var(--f-body); }
.mag-crosslinks__title { font: 800 1.05rem/1.3 var(--f-body); color: var(--ink); margin: 0 0 4px; }
.mag-crosslinks > p { margin: 0 0 18px; color: var(--ink-2); font-size: .95rem; }
.mag-crosslinks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.mag-crosslinks li a { display: grid; gap: 4px; height: 100%; padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.mag-crosslinks li a:hover { border-color: var(--brand); }
.mag-crosslinks li small { color: var(--brand); font-weight: 800; font-size: .78rem; }
.mag-crosslinks li strong { font-size: 1rem; line-height: 1.3; }
.mag-crosslinks li span { color: var(--ink-2); font-size: .88rem; line-height: 1.45; }

/* ---------- 6. Pied de page ---------- */
.mag-footer { background: var(--footer-bg); color: var(--footer-ink); padding-block: 64px 28px; font: 400 .95rem/1.6 var(--f-body); }
.mag-footer a { color: var(--footer-strong); text-decoration: none; opacity: .9; }
.mag-footer a:hover { color: var(--highlight); opacity: 1; }
.mag-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr); gap: 32px; }
.mag-footer .mag-logo { color: var(--footer-strong); }
.mag-footer .mag-logo span { color: var(--highlight); }
.mag-footer__about p { margin: 14px 0 0; max-width: 34ch; }
.mag-footer__title { color: var(--footer-strong); font-weight: 700; font-size: .95rem; margin: 0 0 14px; }
.mag-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.mag-network li { display: flex; justify-content: space-between; gap: 8px; }
.mag-network li span { opacity: .55; font-size: .82rem; }
.mag-network li.is-current a { color: var(--highlight); }
.mag-footer__group { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding: 18px 22px; border-radius: var(--r-md); background: rgba(255, 255, 255, .05); }
.mag-footer__group p { margin: 0; color: var(--footer-strong); opacity: .85; }
.mag-group__mark { font: 800 1.2rem/1 var(--f-body); color: #fff; letter-spacing: -0.01em; margin: 0; text-decoration: none; }
.mag-group__mark span { color: var(--highlight); }
.mag-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; opacity: .8; }

/* ---------- 7. Gabarit article (blog et pages créées dans WordPress) ---------- */
.mag-crumbs { padding-top: 22px; font: 400 .88rem/1.5 var(--f-body); color: var(--ink-3); }
.mag-crumbs .mag-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.mag-crumbs a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.mag-crumbs a:hover { color: var(--brand); text-decoration: underline; }
.mag-crumbs .sep { opacity: .4; }
.mag-article { padding-block: 8px 72px; }
.mag-article > .mag-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 290px; column-gap: clamp(32px, 6vw, 96px); align-items: start; }
.mag-article > .mag-wrap > * { grid-column: 1; min-width: 0; max-width: 760px; }
.mag-article > .mag-wrap > .mag-article__head { grid-column: 1 / -1; max-width: 920px; }
.mag-article > .mag-wrap > .toc { grid-column: 2; grid-row: 2 / span 60; max-width: none; }
.mag-article > .mag-wrap > .mag-related { grid-column: 1 / -1; max-width: none; }
.mag-article > .mag-wrap:not(:has(> .toc)) { grid-template-columns: minmax(0, var(--read)); justify-content: center; }
.mag-article__head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: clamp(24px, 4vw, 48px) 0 clamp(28px, 4vw, 44px); margin-bottom: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.mag-article__head h1 { font-size: clamp(2.2rem, 4.4vw, 3.7rem); line-height: 1.03; text-transform: var(--display-case); }
.mag-article__dek { margin: 0; font-size: clamp(1.12rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.mag-article__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-3); font-size: .9rem; font-weight: 600; }
.mfr-entry { font-family: var(--f-body); }
.mfr-entry > *:first-child { margin-top: 0; }
.mfr-entry h2 { font: var(--display-weight) clamp(1.6rem, 2.6vw, 2.05rem)/1.12 var(--f-display); letter-spacing: var(--display-tracking); margin: 2.2em 0 .6em; scroll-margin-top: calc(var(--header-h) + 24px); color: var(--ink); }
.mfr-entry h3 { font: 700 1.22rem/1.3 var(--f-body); margin: 1.8em 0 .5em; color: var(--ink); }
.mfr-entry p, .mfr-entry li { font-size: 1.07rem; line-height: 1.75; color: var(--ink); }
.mfr-entry ul, .mfr-entry ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.mfr-entry li { margin-bottom: .45em; }
.mfr-entry li::marker { color: var(--brand); font-weight: 700; }
.mfr-entry a { color: var(--brand); }
.mfr-entry blockquote { margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--highlight); font: var(--display-weight) 1.35rem/1.45 var(--f-display); color: var(--ink); }
.mfr-entry img { border-radius: var(--r-md); }
.mfr-entry table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1.6em 0; display: block; overflow-x: auto; }
.mfr-entry th { background: var(--ink); color: var(--paper); text-align: left; padding: 12px 14px; }
.mfr-entry td { padding: 12px 14px; border-top: 1px solid var(--line); }
.mfr-hero-img { margin: 0 0 32px; padding: 0; max-width: 100%; }
.mfr-hero-img img { width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg, 14px); display: block; background: color-mix(in srgb, var(--brand, #888) 12%, transparent); }
.mfr-hero-img figcaption { margin-top: 8px; font: 500 .78rem/1.4 var(--f-body, system-ui, sans-serif); color: var(--ink-3, #6b6b6b); text-align: right; }
.mfr-hero-img figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.mfr-hero-img--wide img { aspect-ratio: 5 / 2; }
.mag-listing-head + .mfr-hero-img { margin-top: -8px; }
.mfr-legacy .mfr-hero-img, main:not(.mag) .mfr-hero-img { margin: 28px auto; max-width: 960px; }
.mfr-legacy .mfr-hero-img figcaption, main:not(.mag) .mfr-hero-img figcaption { color: inherit; opacity: .7; }
@media (max-width: 640px) { .mfr-hero-img--wide img { aspect-ratio: 16 / 9; } }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 20px 16px; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; margin-bottom: 32px; font-family: var(--f-body); }
.toc .toc-title { font: 800 .95rem/1.2 var(--f-body); margin: 0 0 12px; color: var(--ink); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: grid; gap: 2px; }
.toc li { counter-increment: toc; margin: 0; font-size: .9rem; line-height: 1.35; }
.toc a { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px; padding: 7px 8px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.toc a::before { content: counter(toc); color: var(--ink-3); font-weight: 700; font-variant-numeric: tabular-nums; }
.toc a:hover, .toc a.is-active { background: var(--brand-soft); color: var(--ink); }
.toc a.is-active { font-weight: 700; }
.mag-related { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.mag-related > h2 { margin: 0 0 24px; font-size: 1.8rem; }

/* ---------- 8. Listes, rubriques, blog ---------- */
.mag-listing-head { padding-block: clamp(32px, 5vw, 64px) clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); margin-bottom: clamp(32px, 4vw, 48px); display: grid; justify-items: start; gap: 12px; }
.mag-listing-head h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); line-height: 1; text-transform: var(--display-case); }
.mag-listing-head p { color: var(--ink-2); font-size: 1.15rem; max-width: 60ch; margin: 0; }
.mag-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mag-cats a { padding: 8px 14px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.mag-cats a:hover, .mag-cats a.is-current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.mag-empty { padding: 40px; border: 1.5px dashed var(--line); border-radius: var(--r-lg); text-align: center; color: var(--ink-2); display: grid; gap: 16px; justify-items: center; }
.mfr-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 56px 0 8px; }
.mfr-pagination .page-numbers { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; }
.mfr-pagination .page-numbers.current, .mfr-pagination a.page-numbers:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- 9. Contact, groupe, fondateurs ---------- */
.mag-contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mag-contact-card { display: grid; gap: 10px; align-content: start; justify-items: start; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.mag-contact-card h2 { font-size: 1.5rem; }
.mag-contact-card p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.mag-contact-mail { margin-top: 6px; font-weight: 800; font-size: 1.05rem; text-decoration: none; border-bottom: 2px solid var(--highlight); color: var(--ink); user-select: all; }
.mag-group { background: #111318; color: #c9ccd4; }
.mag-group__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.mag-group h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: 6px 0 16px; }
.mag-group p { margin: 0 0 18px; max-width: 58ch; }
.mag-group .mag-more { color: var(--highlight); }
.mag-group__titles { display: grid; gap: 10px; }
.mag-group__titles div { padding: 16px 18px; border-radius: var(--r-md); background: rgba(255, 255, 255, .06); }
.mag-group__titles h3 { color: #fff; font-size: 1rem; margin: 0 0 4px; }
.mag-group__titles p { margin: 0; font-size: .92rem; color: #9ea3ae; }
.mag-group__titles a { color: #d9dce3; }
.mag-founders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.mag-founder { display: grid; gap: 8px; align-content: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.mag-founder__photo { position: relative; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; margin-bottom: 10px; background: var(--brand-soft); display: grid; place-items: center; }
.mag-founder__photo::before { content: attr(data-initials); font: var(--display-weight) 2rem/1 var(--f-display); color: var(--brand); }
.mag-founder__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mag-founder__role { margin: 0 !important; color: var(--brand); font-weight: 700; font-size: .88rem; }
.mag-founder h3 { font: var(--display-weight) 1.55rem/1.15 var(--f-display); margin: 0; letter-spacing: var(--display-tracking); }
.mag-founder__title { margin: 0 !important; font-weight: 700; font-size: .95rem; }
.mag-founder p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.mag-founder__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px !important; }
.mag-founder__links a { padding: 6px 12px; border-radius: var(--pill); border: 1px solid var(--line); font-weight: 700; font-size: .85rem; text-decoration: none; color: var(--ink); }
.mag-founder__links a:hover { background: var(--ink); color: var(--paper); }

/* ---------- 10. Pages d'origine encapsulées ---------- */
.mfr-legacy { display: block; }
.mfr-legacy-after { display: contents; }

/* ---------- 11. Responsive ---------- */
@media (max-width: 1100px) {
  .mag-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mag-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .mag-cover__grid, .mag-stories, .mag-split, .mag-newsletter .mag-wrap, .mag-card--wide, .mag-contact-grid, .mag-founders, .mag-group__grid { grid-template-columns: minmax(0, 1fr); }
  .mag-newsletter form { grid-column: 1; grid-row: auto; }
  .mag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mag-article > .mag-wrap { grid-template-columns: minmax(0, 1fr); }
  .mag-article > .mag-wrap > .toc { grid-column: 1; grid-row: auto; position: static; max-height: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .mag-grid { grid-template-columns: minmax(0, 1fr); }
  .mag-row { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .mag-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mag-newsletter form { flex-direction: column; border-radius: var(--r-md); }
  .mag-newsletter input { height: 48px; }
}
@media print { .mag-header, .mag-footer, .mag-newsletter, .mag-progress, .toc { display: none !important; } }
.mag-footer__notice { font-size: .82rem; opacity: .8; border-left: 2px solid var(--brand); padding-left: 10px; }
/* ---------- Ajouts réseau (titres du groupe) ---------- */
.mag-kicker { margin: 0 0 10px; font: 800 .78rem/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.mag-card__price { margin: 2px 0 0 !important; font: var(--display-weight) 1.6rem/1.1 var(--f-display); color: var(--brand); }
.mag-card--product { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: var(--r-md); padding: 24px 22px; }
.mag-card--product .mag-card__body { gap: 10px; }
.mag-card--product h3 { font-size: 1.3rem; }
.mag-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.mag-tags a { padding: 6px 14px; border-radius: var(--pill); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: .88rem; text-decoration: none; transition: border-color .15s, color .15s; }
.mag-tags a:hover { border-color: var(--brand); color: var(--brand); }
.mag-row p { margin: 4px 0 0; color: var(--ink-2); font-size: .92rem; line-height: 1.45; }
.mag-grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
html.mag-menu-open .mag-header { z-index: 100001; }
html.mag-menu-open .mag-header { background: var(--paper); }
.mag-rubriques--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .mag-rubriques--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* ---------- Bloc « Notre sélection » (recommandations partenaires) ---------- */
.mag-reco { margin: 2em 0; padding: clamp(18px, 3vw, 28px); border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); font-family: var(--f-body); }
.mag-reco__title { margin: 0 0 14px !important; font: var(--display-weight) 1.35rem/1.2 var(--f-display) !important; letter-spacing: var(--display-tracking); color: var(--ink) !important; text-transform: var(--display-case); }
.mag-reco__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.mag-reco__item { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.mag-reco__item p { margin: 0 !important; font-size: .93rem !important; line-height: 1.5 !important; color: var(--ink-2) !important; }
.mag-reco__item .mag-reco__name { font-weight: 800; font-size: 1.02rem !important; color: var(--ink) !important; }
.mag-reco__tag { align-self: flex-start; font: 800 .68rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.mag-reco__btn { margin-top: auto; align-self: flex-start; padding: 8px 16px; border-radius: var(--pill); background: var(--brand); color: var(--brand-ink) !important; font-weight: 700; font-size: .88rem; text-decoration: none !important; }
.mag-reco__btn:hover { filter: brightness(1.08); }
.mag-reco__note { margin: 12px 0 0 !important; font-size: .8rem !important; color: var(--ink-3) !important; }
