/* ==========================================================================
   WARDOGS FRANCE BY MPX — DESIGN SYSTEM V9.1 (FULL TACTICAL + MOTION)
   ========================================================================== */

:root {
  /* Palette Sombre Tactique */
  --bg: #07090c;
  --bg2: #0c1117;
  --bg-darker: #050709;
  --panel: #0f151c;
  --panel2: #131b24;
  --panel-hover: #17222e;

  /* Bordures et Séparateurs */
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --line-orange: rgba(255, 106, 0, 0.35);

  /* Typographie */
  --text: #f1f4f6;
  --muted: #a3afbb;
  --soft: #d5dbe1;
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Couleurs d'Accentuation (Orange Tactique) */
  --orange: #ff6a00;
  --orange2: #ff963b;
  --orange-glow: rgba(255, 106, 0, 0.24);

  /* Layout & Effets */
  --max: 1220px;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
  --cut: 18px;
  --transition-speed: 0.22s;
}

/* Reset & Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 106, 0, 0.10), transparent 22%),
    radial-gradient(circle at 88% 30%, rgba(255, 150, 59, 0.04), transparent 30%),
    linear-gradient(180deg, #07090c, #090d11 22%, #07090c 100%);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Layout Containers */
.wrap {
  width: min(calc(100% - 32px), var(--max));
  margin: auto;
}

.narrow {
  width: min(calc(100% - 32px), 840px);
  margin: auto;
}

/* Topbar Tactique */
.topbar {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-bottom: 1px solid var(--line);
  color: #ced6de;
  background: rgba(6, 8, 10, 0.88);
  backdrop-filter: blur(10px);
  z-index: 25;
}

.topbar .wrap {
  width: 100%;
  max-width: 100%;
  padding: 8px 32px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.topbar .live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar .live-indicator::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
}

/* Header & Navigation Sticky Full Width */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 9, 12, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  width: 100%;
}

.nav {
  width: 100% !important;
  max-width: 100% !important;
  padding: 10px 32px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-sizing: border-box;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.brand strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 900;
}

.brand span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.links {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.links a {
  font-weight: 700;
  font-size: 0.92rem;
  color: #d0d6dc;
  position: relative;
  padding-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-speed) ease;
}

.links a.active,
.links a:hover {
  color: #fff;
}

.links a.active::after,
.links a:hover::after {
  transform: scaleX(1);
}

.cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.menu {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: #fff;
  padding: 10px 14px;
  font-size: 1.1rem;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

/* Boutons Tactiques Chanfreinés */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-weight: 800;
  font-size: 0.88rem;
  border: 1px solid transparent;
  transition: all var(--transition-speed) ease;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.btn.primary {
  background: linear-gradient(180deg, var(--orange2), var(--orange));
  color: #fff;
  box-shadow: 0 10px 28px var(--orange-glow);
}

.btn.primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 12px 32px rgba(255, 106, 0, 0.4);
}

.btn.secondary {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 12, 0.96), rgba(7, 9, 12, 0.78) 45%, rgba(7, 9, 12, 0.86)),
    linear-gradient(180deg, rgba(7, 9, 12, 0.12), rgba(7, 9, 12, 0.98)),
    url('/assets/hero-bg.jpg') center/cover no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0, transparent 159px, rgba(255, 255, 255, 0.02) 160px);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  padding: 110px 0 72px;
  z-index: 2;
}

.eyebrow,
.kicker {
  display: inline-block;
  color: var(--orange2);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.section-title {
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: 0.18em 0 0.22em;
  font-weight: 900;
  max-width: 12ch;
}

.hero p {
  max-width: 680px;
  color: #d0d7de;
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 36px;
  max-width: 860px;
}

/* Cartes & Modules Angulaires */
.metric,
.story-card,
.guide-card,
.aside-box,
.info-card,
.news-row,
.feature-main {
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-speed) ease, border-color var(--transition-speed) ease, background var(--transition-speed) ease;
}

.metric::before,
.story-card::before,
.guide-card::before,
.aside-box::before,
.info-card::before,
.news-row::before,
.feature-main::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.metric {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.metric::before {
  background:
    linear-gradient(135deg, rgba(255, 106, 0, 0.45) 0 10px, transparent 10px),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.12) 0 8px, transparent 8px);
  background-size: 14px 14px, 12px 12px;
  background-repeat: no-repeat;
  background-position: left top, right bottom;
}

.metric strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Sections Globales */
.section {
  padding: 76px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: flex-end;
  margin-bottom: 32px;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  max-width: unset;
  margin: 0.1em 0;
}

.section-intro p {
  color: var(--muted);
  max-width: 720px;
  margin: 0;
  font-size: 1.05rem;
}

.section-link {
  font-weight: 800;
  white-space: nowrap;
  color: var(--orange2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section-link:hover {
  color: #fff;
  transform: translateX(4px);
}

/* Feature Grid (A la Une) */
.feature-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}

.feature-main {
  min-height: 440px;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.feature-main::before {
  background:
    linear-gradient(180deg, transparent 20%, rgba(7, 9, 12, 0.95) 100%),
    linear-gradient(110deg, rgba(255, 106, 0, 0.12), transparent 35%);
  opacity: 0.8;
  transition: opacity var(--transition-speed) ease, transform 0.4s ease;
}

/* Quand l'article a une image de couverture (background-image inline sur l'élément) */
.feature-main[style*="background-image"]::before {
  background:
    linear-gradient(180deg, transparent 10%, rgba(7, 9, 12, 0.82) 55%, rgba(7, 9, 12, 0.98) 100%),
    linear-gradient(110deg, rgba(255, 106, 0, 0.08), transparent 35%);
  opacity: 1;
}

.feature-main:hover::before {
  opacity: 0.9;
  transform: scale(1.02);
}

.feature-main::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--orange), transparent 55%);
  opacity: 0.8;
}

.feature-main>* {
  position: relative;
  z-index: 1;
}

.feature-main h3 {
  font-size: 2.1rem;
  line-height: 1.05;
  max-width: 14ch;
  margin: 0.45em 0 0.35em;
  color: #fff;
}

.feature-main p {
  color: #ccd4dc;
  max-width: 58ch;
  font-size: 1rem;
}

.meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.feature-side {
  display: grid;
  gap: 16px;
}

/* Story Cards */
.story-card {
  padding: 0;
  background: linear-gradient(180deg, rgba(19, 27, 36, 0.95), rgba(15, 21, 28, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  overflow: hidden;
}

.story-card-cover {
  width: 100%;
  height: 140px;
  overflow: hidden;
  position: relative;
}

.story-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.story-card:hover .story-card-cover img {
  transform: scale(1.04);
}

.story-card-body {
  padding: 20px 24px 24px;
}

/* Compatibilité : story-card sans image (ancien style) */
.story-card > .eyebrow,
.story-card > h3,
.story-card > p,
.story-card > a,
.story-card > span {
  padding-left: 24px;
  padding-right: 24px;
}
.story-card > .eyebrow { padding-top: 20px; }
.story-card > p:last-child,
.story-card > a:last-child { padding-bottom: 24px; }

.story-card::before {
  background:
    linear-gradient(90deg, var(--orange), var(--orange)) left 0 top 0 / 42px 2px no-repeat,
    linear-gradient(90deg, var(--orange), transparent) left 0 bottom 0 / 76px 1px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

.story-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 106, 0, 0.3);
  background: linear-gradient(180deg, rgba(25, 36, 48, 0.98), rgba(19, 27, 36, 0.98));
}

.story-card h3 {
  font-size: 1.28rem;
  line-height: 1.18;
  margin: 0.35em 0;
  color: #fff;
}

.story-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* News List & Rows */
.news-list {
  display: grid;
  gap: 14px;
}

.news-row-body {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.news-row-thumb {
  width: 72px;
  min-width: 72px;
  height: 52px;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  flex-shrink: 0;
}

.news-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.news-row:hover .news-row-thumb img {
  transform: scale(1.06);
}


.news-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 120px;
  gap: 18px;
  align-items: start;
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(17, 24, 32, 0.92), rgba(12, 17, 23, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.07);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  box-shadow: var(--shadow);
}

.news-row::before {
  background:
    linear-gradient(90deg, var(--orange), var(--orange)) left 0 top 0 / 38px 2px no-repeat,
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent) left 0 bottom 0 / 100% 1px no-repeat;
}

.news-row:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 106, 0, 0.35);
  background: linear-gradient(180deg, rgba(23, 33, 44, 0.95), rgba(17, 24, 32, 0.96));
}

.news-row .type,
.news-row .date {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #c5ccd4;
  font-weight: 700;
}

.news-row h3 {
  margin: 0 0 6px;
  font-size: 1.28rem;
  line-height: 1.15;
  color: #fff;
}

.news-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Guides Grid & Cards */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.guide-card::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    linear-gradient(90deg, var(--orange), transparent 55%) left 0 top 0 / 72px 2px no-repeat,
    linear-gradient(180deg, var(--orange), transparent 60%) right 0 bottom 0 / 2px 60px no-repeat;
}

.guide-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 106, 0, 0.35);
  background: linear-gradient(180deg, #182330, #131b24);
}

.guide-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.guide-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--orange2);
  font-weight: 800;
}

.guide-level {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #cbd2d8;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 700;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.guide-card h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.guide-points {
  padding-left: 18px;
  margin: 4px 0;
  color: #d6dce2;
}

.guide-points li {
  margin: 6px 0;
  font-size: 0.92rem;
}

.guide-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.readmore {
  font-weight: 800;
  color: var(--orange2);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.time {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

/* Encarts et Sidebar */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 26px;
}

.aside-box,
.info-card {
  padding: 24px;
  background: linear-gradient(180deg, rgba(16, 22, 29, 0.96), rgba(11, 15, 20, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.07);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.aside-box::before,
.info-card::before {
  background:
    linear-gradient(90deg, var(--orange), transparent) left 0 top 0 / 54px 2px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

.aside-box h3,
.info-card h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
}

.aside-box p,
.aside-box li,
.info-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Page Hero */
.page-hero {
  padding: 64px 0 24px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  max-width: 14ch;
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.breadcrumbs {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #a0aab4;
  font-weight: 700;
  display: flex;
  gap: 8px;
  align-items: center;
}

.breadcrumbs a {
  color: var(--orange2);
}

.subnav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.subnav a {
  font-size: 0.86rem;
  color: #dce1e5;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.subnav a.active,
.subnav a:hover {
  color: #fff;
  border-bottom-color: var(--orange);
}

/* Layout Article & Editorial */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 42px;
}

.article-body {
  min-width: 0;
}

.article-body .intro {
  font-size: 1.2rem;
  color: #d5dbe2;
  line-height: 1.7;
}

.article-body h2 {
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-top: 1.8em;
  color: #fff;
}

.article-body p,
.article-body li {
  color: #c6ced7;
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-body blockquote {
  margin: 32px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--orange);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  color: #eef3f6;
  font-weight: 700;
  font-size: 1.1rem;
}

.article-body figure {
  margin: 30px 0;
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  border: 1px solid var(--line);
}

.toc {
  position: sticky;
  top: 100px;
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.toc h3 {
  margin-top: 0;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--orange2);
}

.toc a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color var(--transition-speed);
}

.toc a:hover {
  color: #fff;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* Footer Tactique Full Width */
.footer {
  padding: 60px 0 24px;
  border-top: 1px solid var(--line);
  background: #06080a;
  margin-top: auto;
  width: 100%;
}

.footer .wrap {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 32px !important;
  box-sizing: border-box;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-brand img {
  width: 130px;
  min-width: 130px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6));
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

.footer h4 {
  margin: 0 0 14px;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--orange2);
}

.footer a {
  display: block;
  padding: 6px 0;
  color: #d1d6db;
  font-size: 0.92rem;
}

.footer a:hover {
  color: #fff;
}

.legal {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #8f99a4;
  font-size: 0.84rem;
}

/* Barre de progression de lecture */
.progress {
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), #fff);
  width: 0%;
  z-index: 50;
  transition: width 0.05s ease;
}

/* Accessibilité & Responsive */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1080px) {

  .feature-grid,
  .content-grid,
  .article-layout,
  .mini-grid,
  .guide-grid,
  .section-intro {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-intro {
    gap: 14px;
  }

  .toc {
    position: static;
    border-left: 0;
    padding-left: 0;
    margin-bottom: 24px;
  }

  .news-row {
    grid-template-columns: 1fr;
  }

  .news-row .date {
    text-align: left;
  }

  .hero-metrics {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .links {
    display: none;
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    background: #0b0e12;
    border: 1px solid var(--line);
    padding: 20px;
    box-shadow: var(--shadow);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    z-index: 30;
  }

  .links.open {
    display: flex;
  }

  .menu {
    display: inline-flex;
  }

  .cta .btn {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
  }

  .hero .wrap {
    padding: 84px 0 58px;
  }

  .hero h1,
  .page-hero h1,
  .section-title {
    font-size: 2.4rem;
    line-height: 1;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .topbar .wrap {
    justify-content: center;
  }
}