/* =====================================================
   CONSEIL SNDGK — Design system premium (partagé)
   Style éditorial / cinématique, thème sombre.
   Utilisé par toutes les pages de /premium/.
===================================================== */

:root {
  /* Fonds */
  --bg: #0A0A0B;
  --bg-2: #0E0F12;
  --bg-3: #131419;
  --surface: rgba(255, 255, 255, 0.03);

  /* Textes */
  --fg: #F2F2EF;
  --muted: #8C8C93;
  --muted-2: #5A5A61;

  /* Lignes */
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.06);

  /* Accent */
  --red: #E30613;
  --red-soft: #ff3b46;

  /* Système */
  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
  --maxw: 1240px;
  --header-h: 76px;
  --radius: 14px;
  --radius-lg: 22px;
  --section-y: clamp(5rem, 12vh, 11rem);
}

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

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Typo utilitaires ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.4rem, 4vw, 3.5rem);
}
.wrap--narrow { max-width: 880px; }

.display {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--red);
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 60ch;
}

.text-red { color: var(--red); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Progress bar ---------- */
.progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--red); z-index: 200;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(1.4rem, 4vw, 3.5rem);
  transition: height 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  height: 60px;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line-2);
}

.brand {
  display: flex; align-items: center; gap: 0.65rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; letter-spacing: 0.02em; font-size: 0.95rem;
  color: var(--fg);
}
.brand img { width: 28px; height: 28px; }

.main-nav {
  display: flex; align-items: center; gap: 2rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem; letter-spacing: 0.04em;
}
.main-nav a {
  color: var(--muted);
  transition: color 0.3s;
  position: relative;
  padding: 0.2rem 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.4s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--fg); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.nav-tools { display: flex; align-items: center; gap: 1.4rem; }

.lang-switch {
  display: flex; align-items: center; gap: 0.35rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem; letter-spacing: 0.06em;
}
.lang-switch a { color: var(--muted-2); transition: color 0.3s; }
.lang-switch a.active { color: var(--fg); }
.lang-switch a:hover { color: var(--fg); }
.lang-switch .sep { color: var(--muted-2); }

.nav-cta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem; letter-spacing: 0.04em;
  padding: 0.6rem 1.3rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--fg);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s;
}
.nav-cta:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Hamburger */
.burger {
  display: none; width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer; z-index: 160;
}
.burger span {
  display: block; width: 24px; height: 2px; background: var(--fg);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: flex; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(80vw, 340px); height: 100vh;
    background: rgba(8, 8, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 0.5rem;
    padding: 2rem 2.4rem; font-size: 1.5rem;
    transform: translateX(100%); transition: transform 0.45s var(--ease);
    z-index: 155;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-family: 'Space Grotesk', sans-serif; padding: 0.6rem 0; }
  .nav-tools .nav-cta { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem; letter-spacing: 0.03em;
  padding: 1rem 1.9rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--fg);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s, transform 0.4s var(--ease);
}
.btn .ar { transition: transform 0.4s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .ar { transform: translateX(5px); }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-soft); border-color: var(--red-soft); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--lg { padding: 1.15rem 2.2rem; font-size: 1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: flex-end;
  padding-bottom: clamp(3rem, 7vh, 7rem);
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.18) 0%, rgba(10,10,11,0) 38%, rgba(10,10,11,0.45) 72%, rgba(10,10,11,0.72) 95%, var(--bg) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  background-size: cover, 160px 160px;
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero h1 { font-size: clamp(2.7rem, 8.5vw, 8rem); max-width: 15ch; margin-bottom: 1.8rem; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--muted); }
.hero-sub { max-width: 48ch; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.7; }
.hero-foot {
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--line); padding-top: 1.2rem;
}
.scroll-cue {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: 'Space Grotesk', sans-serif; font-size: 0.74rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue .arrow {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.hero-meta { text-align: right; font-family: 'Space Grotesk', sans-serif; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); line-height: 1.8; }
.hero-meta .clock { color: var(--fg); }

/* Page hero (pages internes, sans vidéo) */
.page-hero {
  position: relative; padding: calc(var(--header-h) + clamp(4rem, 12vh, 9rem)) 0 clamp(3rem, 7vh, 6rem);
  border-bottom: 1px solid var(--line-2);
}
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 6rem); max-width: 18ch; margin: 1.5rem 0 1.5rem; }
.page-hero .lead { margin-top: 0.5rem; }

/* ---------- Section base ---------- */
section.block { position: relative; padding: var(--section-y) 0; border-top: 1px solid var(--line-2); }
.block--tight { padding: clamp(3.5rem, 8vh, 7rem) 0; }
.sec-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: clamp(2.2rem, 5vw, 4rem); }
.sec-head h2 { font-size: clamp(2rem, 5vw, 3.6rem); max-width: 20ch; }
.sec-intro { color: var(--muted); max-width: 60ch; margin-top: 1rem; font-size: 1.1rem; }

/* ---------- Manifesto (pinned) ---------- */
.manifesto { min-height: 100vh; display: flex; align-items: center; }
.manifesto .wrap { width: 100%; }
.manifest-lines {
  font-family: 'Space Grotesk', sans-serif; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.08;
  font-size: clamp(1.7rem, 5vw, 4.4rem); max-width: 19ch;
}
.manifest-line { opacity: 0.16; transition: opacity 0.2s linear; }
.manifest-line em { font-style: normal; color: var(--red); }
.manifesto .tagline { margin-top: 2.5rem; font-family: 'Space Grotesk', sans-serif; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.8rem; color: var(--muted); }

/* ---------- Steps (liste numérotée) ---------- */
.steps { border-top: 1px solid var(--line); }
.step {
  display: grid; grid-template-columns: 90px 1fr; gap: clamp(1rem, 4vw, 4rem);
  align-items: baseline; padding: clamp(1.6rem, 3.5vw, 2.6rem) 0;
  border-bottom: 1px solid var(--line); transition: padding-left 0.5s var(--ease);
}
.step:hover { padding-left: 1.1rem; }
.step .num { font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; color: var(--red); font-weight: 600; }
.step .body h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: clamp(1.3rem, 2.6vw, 2rem); letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.step .body p { color: var(--muted); max-width: 52ch; }

/* ---------- Cards (services / features) ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem;
}
.card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3vw, 2.6rem); position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.card .card-num { font-family: 'Space Grotesk', sans-serif; font-size: 0.8rem; color: var(--red); letter-spacing: 0.1em; }
.card h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 1.35rem; letter-spacing: -0.01em; margin: 0.9rem 0 0.7rem; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card ul { list-style: none; margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.card ul li { color: var(--muted); font-size: 0.92rem; padding-left: 1.2rem; position: relative; }
.card ul li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 1px; background: var(--red); transform: rotate(45deg); }
.card--accent { border-color: rgba(227,6,19,0.3); }
.card-link { margin-top: 1.2rem; display: inline-flex; align-items: center; gap: 0.5rem; font-family: 'Space Grotesk', sans-serif; font-size: 0.85rem; color: var(--fg); }
.card-link .ar { transition: transform 0.3s var(--ease); }
.card:hover .card-link .ar { transform: translateX(4px); }

/* ---------- Stat row (crédibilité) ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(2rem,4vw,3rem) 0; }
.stat .n { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -0.02em; }
.stat .n em { font-style: normal; color: var(--red); }
.stat .t { color: var(--muted); font-size: 0.92rem; margin-top: 0.3rem; }

/* ---------- Split (texte + media) ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 820px) { .split, .split--reverse { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }
.media-frame { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-3); aspect-ratio: 16 / 11; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Bandeau image pleine largeur (ex. « Ancré au Québec ») */
.image-band {
  position: relative; min-height: clamp(320px, 48vh, 560px);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; align-items: flex-end;
}
.image-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 11, 0.6), rgba(10, 10, 11, 0.1) 55%, rgba(10, 10, 11, 0) 80%); }
.image-band .band-content { position: relative; z-index: 1; padding: clamp(1.6rem, 4vw, 3.2rem); color: #F4F4F1; max-width: 30ch; }
.image-band .band-content h2 { color: #F4F4F1; font-size: clamp(1.8rem, 4vw, 3rem); }
.image-band .band-content p { color: rgba(244, 244, 241, 0.8); margin-top: 0.8rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.4rem 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: clamp(1.05rem, 2vw, 1.3rem);
  transition: color 0.3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; font-weight: 300; color: var(--red); transition: transform 0.3s var(--ease); flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--red); }
.faq .faq-a { color: var(--muted); padding: 0 0 1.5rem; max-width: 70ch; }

/* ---------- Contact form ---------- */
.form-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.3rem; }
.field label { font-family: 'Space Grotesk', sans-serif; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px;
  padding: 0.9rem 1rem; color: var(--fg); font-family: inherit; font-size: 1rem; outline: none;
  transition: border-color 0.3s, background 0.3s;
}
.field input:focus, .field textarea:focus { border-color: var(--red); background: var(--bg-3); box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.08); }
/* Neutraliser le fond bleuté de l'auto-remplissage des navigateurs */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--bg-3) inset;
  -webkit-text-fill-color: var(--fg);
  caret-color: var(--fg);
}
.field textarea { resize: vertical; min-height: 150px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.contact-aside { display: flex; flex-direction: column; gap: 1.6rem; }
.contact-aside .item .k { font-family: 'Space Grotesk', sans-serif; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.contact-aside .item .v { font-size: 1.05rem; }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--muted); font-size: 0.88rem; margin-bottom: 1.3rem; }
.consent input { margin-top: 0.25rem; accent-color: var(--red); }

/* ---------- Legal content ---------- */
.legal { max-width: 800px; margin: 0 auto; }
.legal h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 1.4rem; letter-spacing: -0.01em; margin: 2.6rem 0 0.9rem; }
.legal p, .legal ul { color: var(--muted); margin-bottom: 1rem; line-height: 1.8; }
.legal ul { padding-left: 1.3rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--red-soft); }
.legal .updated, .legal .legal-updated { color: var(--muted-2); font-size: 0.9rem; }
.legal .highlight { color: var(--red); }
.legal strong { color: var(--fg); }

/* ---------- Closing CTA ---------- */
.closing { text-align: center; padding: clamp(6rem, 18vh, 14rem) 0; }
.closing h2 { font-size: clamp(2.4rem, 8vw, 6.5rem); margin-bottom: 2.5rem; }

/* Fond atmosphérique abstrait (texture, pas une « photo ») */
.closing--bg { position: relative; overflow: hidden; }
.closing-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; opacity: 0.16; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 45%, #000 12%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 80% at 50% 45%, #000 12%, transparent 78%);
}
.closing--bg .wrap { position: relative; z-index: 1; }

/* ---------- Blog / Ressources ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.post-card { display: flex; flex-direction: column; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 22px 54px rgba(30, 22, 14, 0.12); }
.post-thumb { aspect-ratio: 16 / 10; background: linear-gradient(135deg, #EBE5D9, #DAD3C5); position: relative; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.post-date { font-family: 'Space Grotesk', sans-serif; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.post-card h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 1.18rem; line-height: 1.25; letter-spacing: -0.01em; }
.post-card p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.post-more { font-family: 'Space Grotesk', sans-serif; font-size: 0.82rem; color: var(--red); }
.post-card:hover .post-more { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Études de cas ---------- */
.case { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.6rem; }
.case-card { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.8rem, 3vw, 2.6rem); transition: border-color 0.3s; }
.case-card:hover { border-color: rgba(227, 6, 19, 0.3); }
.case-badge { display: inline-block; font-family: 'Space Grotesk', sans-serif; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); background: rgba(227, 6, 19, 0.08); padding: 0.3rem 0.75rem; border-radius: 999px; margin-bottom: 1rem; }
.case-card h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: clamp(1.3rem, 2.6vw, 1.8rem); letter-spacing: -0.01em; line-height: 1.25; }
.case-meta { color: var(--muted-2); font-size: 0.85rem; margin: 0.4rem 0 1.4rem; }
.case-block-title { font-family: 'Space Grotesk', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin: 1.4rem 0 0.4rem; }
.case-card p { color: var(--muted); line-height: 1.7; }
.case-card p strong { color: var(--fg); font-weight: 600; }
.case-card a { color: var(--red); }
.case-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.8rem; margin-top: 1.2rem; }
.case-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; text-align: center; }
.case-stat .v { font-family: 'Space Grotesk', sans-serif; color: var(--red); font-size: 1.5rem; font-weight: 600; display: block; }
.case-stat .l { color: var(--muted); font-size: 0.72rem; margin-top: 0.3rem; display: block; line-height: 1.3; }
.case-disclaimer { color: var(--muted-2); font-size: 0.8rem; font-style: italic; text-align: center; }

/* ---------- Article (lecture longue) ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif; font-size: 0.82rem;
  letter-spacing: 0.04em; color: var(--red);
}
.article-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.article-meta {
  font-family: 'Space Grotesk', sans-serif; font-size: 0.8rem;
  letter-spacing: 0.04em; color: var(--muted); margin-top: 1.2rem;
}
.article-meta a { color: var(--red); }
.article-body { font-size: 1.03rem; line-height: 1.85; color: #3D3B36; margin-top: 2.5rem; }
.article-body p { margin-bottom: 1.25rem; }
.article-body h2 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem); letter-spacing: -0.01em;
  color: var(--fg); margin: 2.8rem 0 1rem; line-height: 1.25;
}
.article-body h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 1.15rem; color: var(--fg); margin: 2rem 0 0.7rem; }
.article-body ul, .article-body ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { color: var(--fg); font-weight: 600; }
.article-body a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--red-soft); }
.article-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }

/* ---------- Bandeau de consentement (Loi 25) ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 400;
  max-width: 540px; margin-inline: auto;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(20, 16, 10, 0.22);
  padding: 1.4rem 1.6rem;
  animation: cookieIn 0.5s var(--ease) both;
}
@keyframes cookieIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.cookie-banner h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 1.02rem; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.cookie-banner p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
.cookie-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.1rem; }
.cookie-actions .btn { padding: 0.65rem 1.3rem; font-size: 0.84rem; }
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }

/* ---------- Pages d'erreur (404 / oups) ---------- */
.error-hero {
  min-height: 88vh; display: flex; align-items: center;
  border-bottom: none; position: relative; overflow: hidden;
}
.error-ghost {
  position: absolute; right: -3%; top: 50%;
  transform: translateY(-50%) rotate(2deg);
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(11rem, 34vw, 30rem); line-height: 0.8; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 2px rgba(24, 24, 27, 0.08);
  user-select: none; pointer-events: none; white-space: nowrap; z-index: 0;
}
.error-hero .wrap { position: relative; z-index: 1; }
.error-note {
  color: var(--muted-2); font-size: 0.9rem; font-style: italic;
  margin-top: 2.2rem; max-width: 52ch;
}
@media (max-width: 700px) {
  .error-ghost { font-size: 10rem; right: -14%; top: 24%; opacity: 0.7; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 5rem) 0 2.5rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 3.5rem; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 2.5rem; } }
.footer-brand-tag { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.4rem, 3.5vw, 2.2rem); letter-spacing: -0.02em; max-width: 18ch; }
.footer-col h4 { font-family: 'Space Grotesk', sans-serif; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.footer-col a { display: block; color: var(--fg); padding: 0.35rem 0; transition: color 0.3s; }
.footer-col a:hover { color: var(--red); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 1.6rem; color: var(--muted); font-size: 0.85rem; }
.footer-bottom .legal-links { display: flex; gap: 1.4rem; }
.footer-bottom a:hover { color: var(--fg); }

/* ---------- Reveal animations (JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); will-change: transform, opacity; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Focus visible ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px;
}

