/* =============================================================
   NE Magazine — main.css
   Tech magazine FR pro · navy + accent orange
   Inter + Manrope · dense Maddyness/Sifted layout
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:#0A1F3D;
  --navy-2:#142D52;
  --navy-3:#1E3A6E;
  --navy-4:#2D4A7C;
  --orange:#FF6B35;
  --orange-deep:#E85420;
  --orange-soft:#FFE5DA;
  --ink:#0A1F3D;
  --mute:#5C6680;
  --mute-2:#8993A8;
  --line:#E1E5EE;
  --line-2:#EFF1F5;
  --bg:#F4F6FA;
  --bg-2:#EDF1F7;
  --card:#fff;
  --green:#00C2A8;
  --purple:#7B3FE4;
  --yellow:#E8B400;
  --pink:#E11D74;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  
  font-feature-settings: "ss01","cv11";
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.visually-hidden, .skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; left: 0; top: 0; width: auto; height: auto; padding: 12px 18px;
  background: var(--orange); color: #fff; font-weight: 700; z-index: 999;
  border-radius: 0 0 6px 0;
}

/* Reading progress bar — v9 */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  z-index: 100; transition: width .12s linear; pointer-events: none;
}

/* =============================================================
   TOPBAR
   ============================================================= */
.topbar {
  background: var(--navy); color: #fff; font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-inner {
  max-width: 1480px; margin: 0 auto; padding: 9px 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.live-dot {
  width: 6px; height: 6px; background: var(--orange); border-radius: 50%;
  display: inline-block; margin-right: 8px; animation: nemag-pulse 2s infinite;
}
@keyframes nemag-pulse { 50% { opacity: .3; } }
.topbar a { color: rgba(255,255,255,.65); font-weight: 500; }
.topbar a:hover { color: var(--orange); }
.topbar-right { display: flex; gap: 18px; align-items: center; }
.market { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.market.up { color: var(--green); }
.market.dn { color: var(--orange); }

/* =============================================================
   HEADER
   ============================================================= */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1480px; margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 48px; height: 48px; background: var(--navy); color: #fff;
  display: grid; place-items: center; border-radius: 10px;
  font-family: 'Manrope', sans-serif; font-weight: 900; font-size: 16px;
  position: relative; letter-spacing: -.04em; overflow: hidden; flex-shrink: 0;
}
.brand-mark::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 50%, var(--orange) 50%);
  opacity: .18;
}
.brand-mark::after {
  content: ""; position: absolute; width: 10px; height: 10px;
  background: var(--orange); bottom: -3px; right: -3px; border-radius: 50%;
  border: 3px solid #fff;
}
.brand-mark span { position: relative; z-index: 1; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: 'Manrope', sans-serif; font-weight: 900; font-size: 19px;
  letter-spacing: -.03em; line-height: 1; color: var(--ink);
}
.brand-tag {
  font-size: 10px; color: var(--mute); font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; margin-top: 5px;
}
.nav { display: flex; gap: 6px; font-size: 13px; font-weight: 600; }
.nav a {
  padding: 9px 4px; transition: color .2s; color: var(--ink);
  position: relative; margin: 0 10px;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform .25s;
}
.nav a:hover::after, .nav a.active::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a.active, .nav a[aria-current="page"] { color: var(--orange); }
/* WP nav menu compatibility */
.nav ul, .nav .menu {
  list-style: none; display: flex; gap: 6px; margin: 0; padding: 0;
}
.nav li { display: inline-flex; align-items: center; }
.actions { display: flex; align-items: center; gap: 12px; }
.search {
  display: flex; align-items: center; background: var(--bg); border-radius: 8px;
  padding: 10px 14px; gap: 8px; width: 240px; transition: .2s;
  border: 1px solid transparent;
}
.search:focus-within { border-color: var(--orange); background: #fff; }
.search input, .search-form input[type="search"] {
  background: transparent; border: 0; font-family: inherit; font-size: 13px;
  width: 100%; outline: none; font-weight: 500; color: var(--ink);
}
.btn {
  padding: 11px 20px; background: var(--navy); color: #fff; border-radius: 8px;
  font-weight: 700; font-size: 13px; cursor: pointer; border: 0; transition: .2s;
  font-family: inherit; display: inline-flex; gap: 6px; align-items: center;
  text-decoration: none;
}
.btn:hover { background: var(--orange); }

.menu-burger {
  display: none; padding: 10px 14px; background: transparent;
  border: 1px solid var(--line); border-radius: 8px; font-weight: 700;
  font-family: inherit; cursor: pointer; font-size: 12px; color: var(--ink);
}

/* =============================================================
   PULSE FRENCH TECH STRIP (Brèves + Stats)
   ============================================================= */
.pulse {
  background: var(--navy); color: #fff; padding: 24px 32px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.pulse::before {
  content: ""; position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,107,53,.08), transparent 60%);
  top: -300px; right: 5%; pointer-events: none;
}
.pulse-inner {
  max-width: 1480px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 48px; align-items: center; position: relative;
}
.pulse-label { display: flex; flex-direction: column; gap: 4px; }
.pulse-label .l1 {
  font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; color: var(--orange);
}
.pulse-label .l2 { font-size: 11px; color: rgba(255,255,255,.5); }
.pulse-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; }
.stat {
  padding-left: 18px; border-left: 2px solid rgba(255,255,255,.12);
  position: relative;
}
.stat-val {
  font-family: 'Manrope', sans-serif; font-size: 24px; font-weight: 900;
  letter-spacing: -.02em; display: flex; align-items: baseline; gap: 8px;
}
.stat-up { color: var(--green); font-size: 12px; font-weight: 700; }
.stat-dn { color: var(--orange); font-size: 12px; font-weight: 700; }
.stat-key {
  font-size: 11px; color: rgba(255,255,255,.55); text-transform: uppercase;
  letter-spacing: .06em; margin-top: 6px;
}
.spark { height: 24px; margin-top: 8px; width: 100%; }
.pulse-link {
  color: var(--orange); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
}

/* Brèves ticker (when present) */
.breves {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.breve {
  display: flex; flex-direction: column; gap: 6px; padding-left: 14px;
  border-left: 2px solid rgba(255,255,255,.12);
  transition: border-color .2s;
}
.breve:hover { border-left-color: var(--orange); }
.breve-title {
  font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 700;
  line-height: 1.35; color: #fff;
}
.breve-title a { color: inherit; }
.breve-title a:hover { color: var(--orange); }
.breve-meta {
  font-size: 10.5px; color: rgba(255,255,255,.55);
  text-transform: uppercase; letter-spacing: .06em;
}

/* =============================================================
   MAIN
   ============================================================= */
main.site-main { max-width: 1480px; margin: 0 auto; padding: 56px 32px; }

.mag-bar {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
  flex-wrap: wrap; gap: 12px;
}
.mag-bar .l {
  font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; color: var(--orange);
}
.mag-bar .r { font-size: 12px; color: var(--mute); font-weight: 600; }

/* =============================================================
   HERO MAG
   ============================================================= */
.hero-mag {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; margin-bottom: 64px;
}
.hero-main {
  background: var(--card); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); transition: .3s;
  display: flex; flex-direction: column;
}
.hero-main:hover { box-shadow: 0 24px 48px rgba(10,31,61,.1); }
.hero-img {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 50%, var(--orange) 200%);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 36px;
}
.hero-img::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(255,107,53,.4), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(123,63,228,.3), transparent 50%);
}
.hero-img::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(45deg, transparent 49%, rgba(255,255,255,.04) 49%, rgba(255,255,255,.04) 51%, transparent 51%);
  background-size: 40px 40px;
}
.hero-img--photo { padding: 0; background: var(--navy); }
.hero-img--photo > img {
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
}
.hero-img-tag {
  position: absolute; top: 24px; left: 24px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(10px);
  padding: 8px 14px; border-radius: 6px; font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: #fff;
  border: 1px solid rgba(255,255,255,.15); z-index: 2;
}
.hero-content {
  padding: 36px; display: flex; flex-direction: column; gap: 18px;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  border-radius: 4px; background: var(--orange); color: #fff; width: max-content;
}
.badge.startup { background: var(--green); }
.badge.business { background: var(--navy); }
.badge.mindset { background: var(--purple); }
.badge.idees { background: var(--yellow); color: var(--navy); }
.badge.mkt { background: var(--pink); }
.badge.legal { background: var(--ink); color: #fff; }
.hero-title {
  font-family: 'Manrope', sans-serif; font-size: 42px; font-weight: 900;
  letter-spacing: -.025em; line-height: 1.05; margin: 8px 0; color: var(--ink);
}
.hero-title a, .featured h3 a, .right-card h3 a, .sub-row h3 a, .list-row h3 a, .doss-card h3 a, .trend h4 a, .card-body h3 a {
  color: inherit;
}
.hero-excerpt { color: var(--mute); font-size: 16.5px; line-height: 1.6; }
.hero-meta {
  font-size: 13px; color: var(--mute); display: flex; gap: 14px;
  align-items: center; padding-top: 18px; border-top: 1px solid var(--line);
  margin-top: 8px; flex-wrap: wrap;
}
.author { display: flex; gap: 10px; align-items: center; font-weight: 700; color: var(--ink); }
.av {
  width: 30px; height: 30px; border-radius: 50%; color: #fff;
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
  font-family: 'Manrope', sans-serif; flex-shrink: 0;
}
.av.a1 { background: linear-gradient(135deg, var(--orange), var(--pink)); }
.av.a2 { background: linear-gradient(135deg, var(--purple), var(--navy)); }
.av.a3 { background: linear-gradient(135deg, var(--green), var(--navy-3)); }
.av.a4 { background: linear-gradient(135deg, var(--yellow), var(--orange)); }
.av.a5 { background: linear-gradient(135deg, var(--navy-3), var(--purple)); }

.hero-right { display: grid; grid-template-rows: 1.2fr 1fr 1fr; gap: 24px; }
.right-card {
  background: var(--card); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); display: flex;
  transition: .3s cubic-bezier(.2,.8,.2,1); position: relative;
}
.right-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.8,.2,1); z-index: 3;
}
.right-card:hover::before { transform: scaleX(1); }
.right-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(10,31,61,.1); border-color: transparent; }
.right-card.medium { flex-direction: column; }
.right-card.medium .right-img {
  aspect-ratio: 16/9; width: 100%; display: flex; align-items: flex-end;
  padding: 18px; justify-content: flex-start; font-size: 36px;
}
.right-img {
  width: 120px; flex-shrink: 0; display: grid; place-items: center;
  color: #fff; font-family: 'Manrope', sans-serif; font-weight: 900;
  font-size: 22px; letter-spacing: -.03em; position: relative; overflow: hidden;
  min-height: 120px;
}
.right-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.right-body {
  padding: 18px 22px; flex: 1; display: flex; flex-direction: column;
  gap: 8px; justify-content: center;
}
.right-card.medium .right-body { padding: 22px; }
.right-card h3 {
  font-family: 'Manrope', sans-serif; font-size: 17px; line-height: 1.3;
  font-weight: 800; letter-spacing: -.01em;
}
.right-card.medium h3 { font-size: 21px; }
.right-card .meta { font-size: 11.5px; color: var(--mute); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.right-card .src { font-weight: 700; color: var(--ink); }

/* Gradient palette */
.gr1 { background: linear-gradient(135deg, #FF6B35, #E11D74); }
.gr2 { background: linear-gradient(135deg, #0A1F3D, #7B3FE4); }
.gr3 { background: linear-gradient(135deg, #00C2A8, #0A1F3D); }
.gr4 { background: linear-gradient(135deg, #E8B400, #FF6B35); }
.gr5 { background: linear-gradient(135deg, #142D52, #0A1F3D); }
.gr6 { background: linear-gradient(135deg, #7B3FE4, #E11D74); }
.gr7 { background: linear-gradient(135deg, #FF6B35, #0A1F3D); }
.gr8 { background: linear-gradient(135deg, #00C2A8, #7B3FE4); }

/* Image fallback (when no featured image) */
.thumb-fallback {
  width: 100%; height: 100%;
  display: grid; place-items: center; color: #fff;
  font-family: 'Manrope', sans-serif; font-weight: 900;
  letter-spacing: -.03em; position: absolute; inset: 0;
}
.thumb-fallback__initials { font-size: 48px; }

/* =============================================================
   SECTION HEAD
   ============================================================= */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 18px; border-bottom: 2px solid var(--ink);
  flex-wrap: wrap; gap: 12px;
}
.section-head h2 {
  font-family: 'Manrope', sans-serif; font-size: 32px; font-weight: 900;
  letter-spacing: -.025em; display: flex; align-items: baseline; gap: 14px;
  flex-wrap: wrap;
}
.section-head h2 .num {
  font-size: 14px; font-weight: 700; color: var(--orange);
  font-family: 'Inter', sans-serif; letter-spacing: .08em;
}
.section-head h2 small { font-weight: 600; color: var(--mute); font-size: 18px; }
.section-head .more {
  font-size: 12px; font-weight: 700; color: var(--orange);
  text-transform: uppercase; letter-spacing: .08em;
  display: flex; align-items: center; gap: 6px;
}

.cat-section { margin-bottom: 80px; }

/* =============================================================
   CATEGORY (featured + subgrid)
   ============================================================= */
.cat-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.featured {
  background: var(--card); border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); transition: .3s;
  display: flex; flex-direction: column;
}
.featured:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(10,31,61,.1); }
.featured-img {
  aspect-ratio: 4/3; position: relative; display: flex; align-items: flex-end;
  padding: 28px; color: #fff; overflow: hidden;
}
.featured-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.4));
}
.featured-img-num {
  position: relative; font-family: 'Manrope', sans-serif; font-size: 96px;
  font-weight: 900; letter-spacing: -.05em; line-height: .9; z-index: 2;
}
.featured-body { padding: 28px; }
.featured h3 {
  font-family: 'Manrope', sans-serif; font-size: 28px; line-height: 1.15;
  font-weight: 900; letter-spacing: -.02em; margin: 14px 0 14px;
}
.featured .excerpt { color: var(--mute); font-size: 14.5px; line-height: 1.55; margin-bottom: 16px; }
.featured .meta {
  font-size: 12px; color: var(--mute); display: flex; gap: 10px;
  align-items: center; padding-top: 14px; border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.subgrid { display: flex; flex-direction: column; gap: 20px; }
.sub-row {
  background: var(--card); border-radius: 12px; border: 1px solid var(--line);
  display: grid; grid-template-columns: 140px 1fr; gap: 0;
  transition: .25s; overflow: hidden;
}
.sub-row:hover {
  transform: translateX(4px); box-shadow: 0 12px 24px rgba(10,31,61,.08);
  border-color: transparent;
}
.sub-row .sr-img {
  display: grid; place-items: center; color: #fff; font-family: 'Manrope', sans-serif;
  font-weight: 900; font-size: 20px; letter-spacing: -.03em; position: relative;
  overflow: hidden; min-height: 120px;
}
.sub-row .sr-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.sub-row .sr-body {
  padding: 18px 22px; display: flex; flex-direction: column; gap: 8px;
  justify-content: center;
}
.sub-row h3 {
  font-family: 'Manrope', sans-serif; font-size: 17px; line-height: 1.3;
  font-weight: 800; letter-spacing: -.01em;
}
.sub-row .meta {
  font-size: 11.5px; color: var(--mute); display: flex; gap: 8px;
  align-items: center; margin-top: auto;
}
.sub-row .src { font-weight: 700; color: var(--ink); }

/* =============================================================
   COL2 — list articles + sidebar
   ============================================================= */
.col2 {
  display: grid; grid-template-columns: 1fr 380px; gap: 48px; margin-bottom: 80px;
}
.list-articles { display: flex; flex-direction: column; gap: 0; }
.list-row {
  display: grid; grid-template-columns: 160px 1fr auto; gap: 24px;
  padding: 24px 0; border-bottom: 1px solid var(--line); align-items: center;
  transition: .2s;
}
.list-row:first-child { padding-top: 0; }
.list-row:hover { transform: translateX(6px); }
.list-row:hover h3 { color: var(--orange); }
.list-img {
  aspect-ratio: 16/10; border-radius: 8px; display: grid; place-items: center;
  color: #fff; font-family: 'Manrope', sans-serif; font-weight: 900; font-size: 22px;
  letter-spacing: -.03em; position: relative; overflow: hidden;
}
.list-img img { width: 100%; height: 100%; object-fit: cover; }
.list-content { display: flex; flex-direction: column; gap: 8px; }
.list-row h3 {
  font-family: 'Manrope', sans-serif; font-size: 21px; line-height: 1.25;
  font-weight: 800; letter-spacing: -.015em; transition: color .2s;
}
.list-row .excerpt { font-size: 13.5px; color: var(--mute); line-height: 1.5; }
.list-row .meta {
  font-size: 12px; color: var(--mute); display: flex; gap: 10px;
  align-items: center; font-weight: 500; flex-wrap: wrap;
}
.list-row .src { font-weight: 700; color: var(--ink); }
.list-time {
  font-family: 'Manrope', sans-serif; font-weight: 800; color: var(--orange);
  font-size: 14px; text-align: right; white-space: nowrap;
}
.list-time small {
  display: block; color: var(--mute); font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: .05em; margin-top: 2px;
}

.sidebar { display: flex; flex-direction: column; gap: 24px; }
.box {
  background: var(--card); border-radius: 12px; padding: 26px;
  border: 1px solid var(--line);
}
.box-head {
  font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.box-head::before { content: ""; width: 24px; height: 2px; background: var(--orange); flex-shrink: 0; }
.trend {
  display: grid; grid-template-columns: 34px 1fr; gap: 14px;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.trend:last-child { border: 0; padding-bottom: 0; }
.trend:hover h4 { color: var(--orange); }
.trend-num {
  font-family: 'Manrope', sans-serif; font-size: 26px; font-weight: 900;
  color: var(--orange); line-height: 1; letter-spacing: -.03em;
}
.trend h4 {
  font-family: 'Manrope', sans-serif; font-size: 14px; line-height: 1.35;
  font-weight: 700; letter-spacing: -.01em; margin-bottom: 4px; transition: color .2s;
}
.trend .m { font-size: 11px; color: var(--mute); font-weight: 500; }

/* =============================================================
   NEWSLETTER
   ============================================================= */
.newsletter {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  border-radius: 16px; padding: 56px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px;
  align-items: center; color: #fff; margin-bottom: 64px;
  position: relative; overflow: hidden;
}
.newsletter::after {
  content: ""; position: absolute; width: 500px; height: 500px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.1), transparent 70%);
  top: -200px; right: -100px; pointer-events: none;
}
.newsletter h2 {
  font-family: 'Manrope', sans-serif; font-size: 38px; font-weight: 900;
  letter-spacing: -.025em; line-height: 1.1; position: relative; margin-top: 8px;
}
.newsletter p { opacity: .9; margin: 14px 0 0; font-size: 15px; line-height: 1.6; position: relative; }
.newsletter form { display: flex; gap: 8px; position: relative; flex-direction: column; }
.newsletter input {
  padding: 16px 18px; border: 0; border-radius: 8px;
  font-family: inherit; font-size: 14.5px;
  background: rgba(255,255,255,.15); color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}
.newsletter input::placeholder { color: rgba(255,255,255,.7); }
.newsletter button {
  padding: 16px 24px; background: #fff; color: var(--ink); border: 0;
  border-radius: 8px; font-weight: 800; cursor: pointer;
  font-family: 'Manrope', sans-serif; font-size: 14px; letter-spacing: .02em;
  transition: .2s;
}
.newsletter button:hover { background: var(--navy); color: #fff; }
.nl-trust {
  display: flex; gap: 24px; font-size: 12px; opacity: .75;
  margin-top: 14px; position: relative; flex-wrap: wrap;
}

/* =============================================================
   FOOTER
   ============================================================= */
footer.site-footer {
  background: var(--navy); color: #fff; padding: 64px 32px 32px; position: relative;
}
.footer-inner {
  max-width: 1480px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand .brand-name, .footer-brand .brand-tag { color: #fff; }
.footer-brand .brand-tag { color: rgba(255,255,255,.5); }
.footer-brand p { opacity: .6; font-size: 13px; margin-top: 20px; max-width: 340px; line-height: 1.6; }
.footer-inner h4 {
  font-family: 'Manrope', sans-serif; font-size: 12px; text-transform: uppercase;
  letter-spacing: .12em; margin-bottom: 18px; color: var(--orange);
}
.footer-inner ul { list-style: none; font-size: 14px; line-height: 2.1; opacity: .7; padding: 0; margin: 0; }
.footer-inner li { transition: .2s; }
.footer-inner li:hover, .footer-inner a:hover { color: var(--orange); opacity: 1; }
.footer-inner a { color: inherit; display: block; }
.copy {
  max-width: 1480px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; opacity: .5;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-left: 32px; padding-right: 32px;
}

/* =============================================================
   SINGLE — article page
   ============================================================= */
.single {
  max-width: 1480px; margin: 0 auto; padding: 56px 32px;
}
.single__header { max-width: 880px; margin: 0 auto 32px; }
.single__kicker {
  font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 12px;
}
.single__title {
  font-family: 'Manrope', sans-serif; font-weight: 900;
  letter-spacing: -.025em; line-height: 1.05; color: var(--ink);
  margin: 0 0 18px; font-size: 48px;
}
.single__lede {
  font-size: 19px; line-height: 1.55; color: var(--mute); margin-bottom: 24px;
  font-weight: 500;
}
.single__meta {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  font-size: 13px; color: var(--mute); padding: 16px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.single__meta-key { font-weight: 700; color: var(--ink); margin-right: 4px; }

.single__hero {
  max-width: 1200px; margin: 0 auto 40px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
}
.single__hero img { width: 100%; height: auto; display: block; }
.single__hero-caption {
  font-size: 12px; color: var(--mute); padding: 12px 0; text-align: center;
}

.single__layout {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 240px 1fr; gap: 48px;
  align-items: start;
}
.single__toc-wrap { position: sticky; top: 96px; }
.single__body {
  max-width: 720px; font-size: 17px; line-height: 1.75; color: var(--ink);
}
.single__body h2 {
  font-family: 'Manrope', sans-serif; font-size: 28px; font-weight: 900;
  letter-spacing: -.02em; margin: 48px 0 18px; line-height: 1.2;
}
.single__body h3 {
  font-family: 'Manrope', sans-serif; font-size: 22px; font-weight: 800;
  letter-spacing: -.015em; margin: 36px 0 14px; line-height: 1.25;
}
.single__body p { margin: 0 0 18px; }
.single__body a { color: var(--orange); border-bottom: 1px solid currentColor; }
.single__body a:hover { color: var(--orange-deep); }
.single__body blockquote {
  margin: 28px 0; padding: 22px 26px; background: var(--bg);
  border-left: 3px solid var(--orange); border-radius: 6px;
  font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 18px;
  line-height: 1.45;
}
.single__body ul, .single__body ol { margin: 0 0 18px; padding-left: 22px; }
.single__body li { margin: 6px 0; }
.single__body img { margin: 28px 0; border-radius: 12px; border: 1px solid var(--line); }
.single__body code {
  background: var(--bg-2); padding: 2px 6px; border-radius: 4px;
  font-size: .9em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.single__body pre {
  background: var(--navy); color: #fff; padding: 20px 24px; border-radius: 10px;
  overflow-x: auto; font-size: 13.5px; margin: 28px 0;
}
.single__body pre code { background: transparent; padding: 0; color: inherit; }

.toc {
  font-size: 13px; line-height: 1.6;
  border-left: 2px solid var(--line); padding-left: 16px;
}
.toc__head {
  font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 12px;
}
.toc__list { list-style: none; padding: 0; margin: 0; }
.toc__list li { margin: 6px 0; }
.toc__list a {
  color: var(--mute); transition: color .15s; display: block;
  padding: 4px 0; border-left: 2px solid transparent; padding-left: 8px;
  margin-left: -10px;
}
.toc__list a:hover { color: var(--ink); }
.toc__list a[aria-current="true"] {
  color: var(--orange); border-left-color: var(--orange); font-weight: 700;
}

/* Author box */
.author-box {
  max-width: 1200px; margin: 56px auto;
  display: grid; grid-template-columns: 80px 1fr; gap: 24px;
  background: var(--card); border-radius: 14px; padding: 28px 32px;
  border: 1px solid var(--line); align-items: start;
}
.author-box__avatar { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; }
.author-box__avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box__name {
  display: block; font-family: 'Manrope', sans-serif; font-weight: 900;
  font-size: 20px; letter-spacing: -.01em; margin-bottom: 6px; color: var(--ink);
}
.author-box__role {
  font-size: 12px; color: var(--mute); text-transform: uppercase;
  letter-spacing: .08em; font-weight: 700; margin-bottom: 12px;
}
.author-box__bio { color: var(--mute); font-size: 14.5px; line-height: 1.6; margin-bottom: 14px; }
.author-box__more {
  font-size: 12px; font-weight: 700; color: var(--orange);
  text-transform: uppercase; letter-spacing: .08em;
}

/* Related */
.related { max-width: 1480px; margin: 64px auto; padding: 0 32px; }
.related__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

/* Breadcrumbs */
.breadcrumbs {
  max-width: 1200px; margin: 0 auto 24px; font-size: 12px; color: var(--mute);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.breadcrumbs a { color: var(--mute); }
.breadcrumbs a:hover { color: var(--orange); }
.breadcrumbs__sep { opacity: .4; }
.breadcrumbs__current { color: var(--ink); font-weight: 600; }

/* Pagination */
.pagination {
  max-width: 1200px; margin: 32px auto 64px; display: flex; gap: 8px;
  justify-content: center; align-items: center; flex-wrap: wrap;
  list-style: none; padding: 0;
}
.pagination ul, .pagination .page-numbers { list-style: none; padding: 0; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--card);
  font-weight: 700; color: var(--ink);
}
.pagination .page-numbers.current {
  background: var(--orange); color: #fff; border-color: var(--orange);
}
.pagination .page-numbers:hover { border-color: var(--orange); color: var(--orange); }

/* Archive header */
.archive-header {
  max-width: 1480px; margin: 0 auto 32px; padding-bottom: 24px;
  border-bottom: 2px solid var(--ink);
}
.archive-kicker {
  font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 8px;
}
.archive-title {
  font-family: 'Manrope', sans-serif; font-size: 40px; font-weight: 900;
  letter-spacing: -.025em; line-height: 1.1; color: var(--ink);
}
.archive-desc { color: var(--mute); margin-top: 12px; max-width: 720px; line-height: 1.6; }
.archive-empty {
  text-align: center; padding: 64px 32px; color: var(--mute);
  background: var(--card); border-radius: 14px; border: 1px solid var(--line);
}

/* Card article (used in archives + related) */
.card {
  background: var(--card); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: .25s cubic-bezier(.2,.8,.2,1); position: relative;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.8,.2,1); z-index: 3;
}
.card:hover::before { transform: scaleX(1); }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(10,31,61,.1); }
.card-img {
  aspect-ratio: 16/10; position: relative; overflow: hidden; background: var(--navy);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
}
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 {
  font-family: 'Manrope', sans-serif; font-size: 19px; line-height: 1.3;
  font-weight: 800; letter-spacing: -.015em; color: var(--ink);
}
.card-body .excerpt { font-size: 13.5px; color: var(--mute); line-height: 1.5; flex: 1; }
.card-body .meta {
  font-size: 11.5px; color: var(--mute); display: flex; gap: 8px;
  align-items: center; padding-top: 12px; border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.card-body .src { font-weight: 700; color: var(--ink); }

/* Magazine grid (archives, search) */
.mag-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-bottom: 48px;
}

/* Page (static) */
.page-content {
  max-width: 880px; margin: 0 auto; padding: 56px 32px;
}
.page-content h1 {
  font-family: 'Manrope', sans-serif; font-size: 42px; font-weight: 900;
  letter-spacing: -.025em; margin-bottom: 24px; line-height: 1.1;
}
.page-content h2 {
  font-family: 'Manrope', sans-serif; font-size: 28px; font-weight: 800;
  margin: 36px 0 16px; letter-spacing: -.02em;
}
.page-content p { font-size: 17px; line-height: 1.7; margin: 0 0 18px; color: var(--ink); }
.page-content a { color: var(--orange); border-bottom: 1px solid currentColor; }

/* 404 */
.error-404 {
  max-width: 880px; margin: 0 auto; padding: 96px 32px; text-align: center;
}
.error-404 .code {
  font-family: 'Manrope', sans-serif; font-weight: 900; font-size: 120px;
  color: var(--orange); line-height: 1; letter-spacing: -.05em;
}
.error-404 h1 {
  font-family: 'Manrope', sans-serif; font-weight: 900; font-size: 36px;
  margin: 24px 0 12px; letter-spacing: -.025em;
}
.error-404 p { color: var(--mute); margin-bottom: 28px; font-size: 16px; }
.error-404 .search-form {
  display: flex; gap: 8px; justify-content: center; align-items: center;
  max-width: 480px; margin: 0 auto;
}

/* Search form (default) */
.search-form {
  display: flex; gap: 8px; align-items: center;
}
.search-form input[type="search"] {
  flex: 1; padding: 12px 16px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; font-family: inherit;
}
.search-form button {
  padding: 12px 18px; background: var(--navy); color: #fff;
  border: 0; border-radius: 8px; font-weight: 700; cursor: pointer;
  font-family: inherit;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1100px) {
  .hero-mag, .cat-layout, .col2, .newsletter, .footer-inner {
    grid-template-columns: 1fr;
  }
  .dossier-grid { grid-template-columns: 1fr 1fr; }
  .pulse-grid, .breves { grid-template-columns: 1fr 1fr; }
  .pulse-inner { grid-template-columns: 1fr; gap: 24px; }
  .single__layout { grid-template-columns: 1fr; }
  .single__toc-wrap { position: static; }
  .related__grid, .mag-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-img { padding: 24px; }
}

@media (max-width: 780px) {
  .dossier-grid, .pulse-grid, .breves { grid-template-columns: 1fr; }
  .list-row, .sub-row { grid-template-columns: 1fr; }
  .nav, .search { display: none; }
  .menu-burger { display: inline-flex; }
  .header-inner, .topbar-inner, main.site-main, footer.site-footer, .single, .related, .copy {
    padding-left: 20px; padding-right: 20px;
  }
  .pulse { padding-left: 20px; padding-right: 20px; }
  .hero-title { font-size: 32px; }
  .single__title { font-size: 32px; }
  .newsletter, .dossier { padding: 28px; }
  .section-head h2, .archive-title { font-size: 24px; }
  .featured h3 { font-size: 22px; }
  .related__grid, .mag-grid { grid-template-columns: 1fr; }
  .topbar-right { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
  .topbar-inner { flex-wrap: wrap; }
  .market { display: none; }
  .footer-inner { gap: 32px; }
  .author-box { grid-template-columns: 60px 1fr; padding: 22px; }
  .author-box__avatar { width: 60px; height: 60px; }
  .brand-text { display: none; }
}

/* === FIX v1.1 — contraindre le custom_logo (1024×1024 raw) === */
.brand--custom {
  display: inline-flex;
  align-items: center;
}
.brand--custom .custom-logo-link,
.brand--custom .custom-logo-link img,
.brand--custom .custom-logo {
  display: inline-block;
  height: 36px !important;
  width: auto !important;
  max-width: 200px !important;
  max-height: 48px !important;
  object-fit: contain;
}
@media (max-width: 768px) {
  .brand--custom .custom-logo-link img,
  .brand--custom .custom-logo { height: 28px !important; max-width: 140px !important; }
}



/* === FIX v1.3 — body and direct children flow correctly === */
body {
  display: block;
}
body > .topbar,
body > header.header,
body > main.site-main,
body > footer.site-footer {
  display: block;
  width: auto;
  float: none;
  clear: both;
  position: relative;
}
body > header.header { position: sticky; top: 0; }
main.site-main {
  max-width: 1480px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 56px 32px;
}

/* === FIX v1.4 — nuclear : reset body and main flow === */
html { display: block !important; }
body {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  float: none !important;
  background-attachment: scroll !important;
}
body > * {
  display: block !important;
  float: none !important;
  position: static !important;
  width: auto !important;
}
body > header.header { position: sticky !important; top: 0 !important; }
body > .scroll-progress { position: fixed !important; }
main#main, main.site-main {
  display: block !important;
  max-width: 1480px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: auto !important;
  padding: 56px 32px !important;
  position: static !important;
  float: none !important;
  clear: both !important;
}
