/* ============================================================
   MEMORI — One-page site
   Editorial, premium, sober. Built on Memori Design System.
   ============================================================ */

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg-1);
  font-family: var(--font-body);
  scroll-behavior: smooth;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; }

:root {
  --density: 1;
  --ruby-presence: 1;
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 64px; }
.section { padding: calc(120px * var(--density)) 0; }
.section-tight { padding: calc(72px * var(--density)) 0; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--fg-3);
}
.eyebrow.no-rule::before { display: none; }

.dot { color: var(--accent); }

.italic { font-style: italic; font-weight: 500; }
.kw { color: var(--accent); font-weight: 600; }
.under { background-image: linear-gradient(var(--accent), var(--accent)); background-position: 0 88%; background-repeat: no-repeat; background-size: 100% 6px; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-display);
  font-weight: 600; font-size: 14px;
  padding: 14px 24px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all 200ms var(--ease-out);
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn-ruby { background: var(--accent); color: var(--accent-fg); }
.btn-ruby:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* Shiny sweep — navbar CTA only */
@keyframes nav-shine {
  0%        { transform: translateX(-120%) skewX(-20deg); opacity: 1; }
  55%       { transform: translateX(240%)  skewX(-20deg); opacity: 1; }
  56%, 100% { transform: translateX(240%)  skewX(-20deg); opacity: 0; }
}
.nav-right .btn-ruby {
  position: relative;
  overflow: hidden;
}
.nav-right .btn-ruby::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 45%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.22) 50%,
    transparent 100%
  );
  animation: nav-shine 3.2s ease-in-out infinite;
  animation-delay: 1.2s;
  pointer-events: none;
}
.btn-dark { background: var(--color-raisin-black); color: var(--color-cultured); }
.btn-dark:hover { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--fg-1); border-color: var(--color-raisin-black); }
.btn-ghost:hover { background: var(--color-raisin-black); color: var(--color-cultured); }
.btn-text { background: transparent; color: var(--fg-1); padding: 14px 4px; border: 0; }
.btn-text:hover { color: var(--accent); }
.btn .arrow { display: inline-block; transition: transform 200ms var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,245,240, 0.86);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: padding 240ms var(--ease-out), border-color 240ms var(--ease-out), background 240ms var(--ease-out);
}
.nav.scrolled {
  padding-block: 0;
  border-bottom-color: var(--border);
  background: rgba(245,245,240, 0.95);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 64px;
  transition: padding 240ms var(--ease-out);
}
.nav.scrolled .nav-inner { padding: 14px 64px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 30px; }
.nav-logo .dot { font-family: var(--font-display); font-weight: 800; color: var(--accent); font-size: 22px; line-height: 1; }
.nav-center { display: flex; gap: 36px; justify-content: center; }
.nav-center a {
  text-decoration: none;
  color: var(--fg-2);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 8px 2px;
  transition: color 160ms var(--ease-out);
}
.nav-center a:hover { color: var(--accent); }
.nav-center a::after {
  content: ""; position: absolute; left: 0; bottom: 4px;
  height: 1px; background: var(--accent);
  width: 0; transition: width 240ms var(--ease-out);
}
.nav-center a:hover::after { width: 100%; }
.nav-right { display: flex; gap: 18px; align-items: center; justify-content: flex-end; }
.nav-newsletter {
  font-size: 13px; color: var(--fg-2); text-decoration: none; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-newsletter:hover { color: var(--accent); }
.nav-newsletter .ext { font-size: 10px; opacity: 0.6; }

/* Nav dropdown */
.nav-dropdown {
  position: relative;
  display: flex; align-items: center;
}
.nav-dropdown-trigger {
  background: none; border: none; cursor: pointer;
  color: var(--fg-2);
  font-size: 14px; font-weight: 500;
  font-family: inherit;
  padding: 8px 2px;
  display: inline-flex; align-items: center; gap: 5px;
  transition: color 160ms var(--ease-out);
  position: relative;
}
.nav-dropdown-trigger::after {
  content: ""; position: absolute; left: 0; bottom: 4px;
  height: 1px; background: var(--accent);
  width: 0; transition: width 240ms var(--ease-out);
}
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown.open .nav-dropdown-trigger { color: var(--accent); }
.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown.open .nav-dropdown-trigger::after { width: 100%; }
.nav-dropdown-caret {
  font-size: 10px; opacity: 0.6;
  display: inline-block;
  transition: transform 200ms var(--ease-out);
}
.nav-dropdown:hover .nav-dropdown-caret,
.nav-dropdown.open .nav-dropdown-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  min-width: 180px;
  padding: 6px;
  opacity: 0; pointer-events: none;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px; font-weight: 500;
  color: var(--fg-2);
  text-decoration: none;
  transition: background 150ms, color 150ms;
}
.nav-dropdown-item:hover {
  background: var(--bg-elev);
  color: var(--fg-1);
}
.nav-dropdown-icon {
  font-size: 10px; opacity: 0.45;
}

/* Mobile drawer groups */
.mobile-drawer-group {
  display: flex; flex-direction: column;
  border-bottom: 1px solid var(--border);
}
.mobile-drawer-group-label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3);
  padding: 14px 0 4px;
}
.mobile-drawer-group a {
  border-bottom: none;
  font-size: 24px;
  padding: 8px 0 12px;
}

.burger { display: none; background: transparent; border: 0; cursor: pointer; padding: 8px; }
.burger span {
  display: block; width: 22px; height: 1.5px; background: var(--fg-1);
  margin: 5px 0; transition: transform 240ms var(--ease-out), opacity 200ms;
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-drawer {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  padding: 96px 32px 32px;
  z-index: 49;
  transform: translateY(-100%);
  transition: transform 320ms var(--ease-out);
  flex-direction: column; gap: 8px;
}
@media (max-width: 760px) {
  .mobile-drawer { display: flex; }
}
.mobile-drawer.open { transform: translateY(0); }
.mobile-drawer a {
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px;
  letter-spacing: -0.025em;
  color: var(--fg-1);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-drawer a:hover { color: var(--accent); }
.mobile-drawer .btn { margin-top: 20px; align-self: flex-start; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: calc(28px * var(--density)) 0 calc(120px * var(--density));
  overflow: hidden;
}
.hero-meta-top {
  display: flex; gap: 12px; align-items: center; justify-content: center;
  flex-wrap: nowrap;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-3);
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-bottom: 40px;
}
.hero-meta-top span { white-space: nowrap; }
@media (max-width: 480px) {
  .hero-meta-top { font-size: 8.5px; letter-spacing: 0.06em; gap: 6px; }
}
.hero-meta-top i { width: 4px; height: 4px; background: var(--fg-3); border-radius: 999px; font-style: normal; display: inline-block; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 5.8vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 36px;
  max-width: 26ch;
  color: var(--fg-1);
  text-align: center;
  margin-left: auto; margin-right: auto;
}
.hero-title em {
  font-style: italic; font-weight: 500;
  color: var(--fg-1);
}
.hero-title .dot { color: var(--accent); }
.hero-sub {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 56ch;
  margin: 0 auto 44px;
  font-weight: 400;
  text-align: center;
}
.hero-ctas { display: flex; gap: 18px; align-items: center; justify-content: center; margin-bottom: 96px; flex-wrap: wrap; }
.hero-foot {
  display: flex; gap: 32px; align-items: center; justify-content: center;
  border-top: 1px solid var(--border);
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-3);
  flex-wrap: wrap;
}
.hero-foot strong { color: var(--fg-1); font-weight: 500; }

.hero-watermark {
  position: absolute; inset: auto 0 -8% 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(80px, 24vw, 560px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--color-raisin-black);
  opacity: 0.045;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
  overflow: visible;
}

.hero-imprint {
  position: absolute; right: -80px; top: 80px;
  width: 520px; height: 520px;
  pointer-events: none;
  opacity: 0.85;
}

/* ---------- LinkedIn marquee ---------- */
.li-marquee-section {
  padding: calc(40px * var(--density)) 0 calc(40px * var(--density));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg);
}
.li-marquee {
  display: flex; gap: 24px;
  animation: scroll-x var(--marquee-dur, 60s) linear infinite;
  width: max-content;
}
.li-marquee:hover { animation-play-state: paused; }
.li-marquee-section.fast .li-marquee { --marquee-dur: 36s; }
.li-marquee-section.slow .li-marquee { --marquee-dur: 90s; }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.li-card {
  flex: 0 0 360px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 22px;
  font-size: 14px;
  color: var(--fg-1);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.li-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.li-card-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.li-avatar {
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--color-raisin-black);
  color: var(--color-cultured);
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.li-name { font-weight: 600; font-size: 14px; line-height: 1.2; color: var(--fg-1); }
.li-role { font-size: 11px; color: var(--fg-3); margin-top: 3px; line-height: 1.3; }
.li-body { color: var(--fg-1); line-height: 1.5; font-size: 13.5px; min-height: 105px; font-weight: 400; }
.li-body .hl { color: var(--accent); font-weight: 500; }
.li-foot {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border);
  display: flex; gap: 18px;
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-3);
  letter-spacing: 0.04em;
}
.li-foot span strong { color: var(--fg-1); font-weight: 600; }

/* ---------- Clients logo carousel ---------- */
.clients-carousel {
  padding: calc(48px * var(--density)) 0;
  background: var(--bg-inverse);
}
.clients-carousel-label {
  text-align: center;
  margin-bottom: 40px;
}
.clients-track-wrap {
  position: relative;
  overflow: hidden;
}
.clients-fade-left,
.clients-fade-right {
  position: absolute; top: 0; bottom: 0; width: 120px;
  z-index: 2; pointer-events: none;
}
.clients-fade-left  { left: 0;  background: linear-gradient(to right, var(--bg-inverse), transparent); }
.clients-fade-right { right: 0; background: linear-gradient(to left,  var(--bg-inverse), transparent); }
.clients-track {
  display: flex;
  gap: 56px;
  align-items: center;
  width: max-content;
  animation: clients-scroll 48s linear infinite;
}
.clients-track:hover { animation-play-state: paused; }
@keyframes clients-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.clients-logo {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  filter: brightness(0) invert(1);
  opacity: 0.45;
  transition: opacity 280ms var(--ease-out);
  padding: 8px 0;
}
.clients-logo:hover {
  opacity: 0.85;
}
.clients-logo img {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

/* ---------- Constat ---------- */
.constat {
  padding: calc(96px * var(--density)) 0;
  background: var(--bg-inverse);
  color: var(--fg-inverse);
}

.constat .eyebrow {
  margin-bottom: 48px;
  color: rgba(245,245,240,0.45);
}
.constat .eyebrow::before { background: rgba(245,245,240,0.3); }

.constat-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 80px;
  align-items: start;
}

.constat-h {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg-inverse);
  margin-bottom: 28px;
}

.constat-h em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-on-dark);
}

.constat-body {
  font-size: var(--fs-md);
  color: rgba(245,245,240,0.6);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: none;
}

.constat-accent {
  font-size: var(--fs-sm);
  font-style: italic;
  color: rgba(245,245,240,0.65);
  line-height: 1.6;
  max-width: none;
}

.constat-right {
  display: flex;
  flex-direction: column;
}

.constat-problem {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid rgba(245,245,240,0.08);
}

.constat-problem:first-child {
  border-top: 1px solid rgba(245,245,240,0.08);
}

.constat-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--fw-medium);
  color: rgba(245,245,240,0.3);
  letter-spacing: 0.08em;
  padding-top: 4px;
}

.constat-problem-title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-base);
  letter-spacing: var(--tr-heading);
  color: var(--fg-inverse);
  margin-bottom: 8px;
  line-height: 1.3;
}

.constat-problem-desc {
  font-size: var(--fs-sm);
  color: rgba(245,245,240,0.55);
  line-height: 1.65;
  max-width: none;
}

/* ---------- KPIs ---------- */
.kpis {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.kpis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1320px; margin: 0 auto;
}
.kpi {
  padding: calc(72px * var(--density)) 40px;
  border-right: 1px solid var(--border);
  position: relative;
}
.kpi:last-child { border-right: 0; }
.kpi-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(72px, 7.4vw, 124px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--fg-1);
  margin: 0 0 18px;
}
.kpi-num .plus { color: var(--accent); }
.kpi-label {
  font-size: 14px;
  line-height: 1.45;
  color: var(--fg-2);
  max-width: 22ch;
  margin: 0;
}
.kpi-tag {
  position: absolute; top: 24px; left: 40px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3);
}

/* ---------- Section header generic ---------- */
.s-head { margin-bottom: 80px; max-width: 880px; }
.s-head h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 0.95; letter-spacing: -0.035em;
  margin: 18px 0 24px; color: var(--fg-1); max-width: 14ch;
}
.s-head h2 em { font-style: italic; font-weight: 500; }
.s-head .lede {
  font-size: 19px; line-height: 1.55; color: var(--fg-2); max-width: 56ch; margin: 0;
}

/* ---------- Services (Setup & Run) ---------- */
.svc-phase-tag {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 14px;
}

/* Phase 01 — Setup strip */
.svc-setup {
  display: grid;
  grid-template-columns: 240px 1fr;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0;
}
.svc-setup-label {
  background: var(--color-raisin-black);
  padding: 40px 36px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.svc-setup-label .svc-phase-tag { color: var(--accent-on-dark); }
.svc-setup-h {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1; letter-spacing: -0.025em;
  color: var(--color-cultured); margin: 0;
}
.svc-setup-h em { font-style: italic; font-weight: 500; }
.svc-setup-items {
  display: grid; grid-template-columns: 1fr 1fr;
}
.svc-setup-item {
  padding: 36px 36px;
  border-left: 1px solid var(--border);
  display: grid; grid-template-columns: auto 1fr; gap: 14px;
  align-items: start;
}
.svc-setup-item + .svc-setup-item { border-top: none; }
.svc-setup-num {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--fg-3); letter-spacing: 0.06em; padding-top: 3px;
}
.svc-setup-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 15px; letter-spacing: -0.01em;
  color: var(--fg-1); display: block; margin-bottom: 6px;
}
.svc-setup-desc {
  font-size: 13px; line-height: 1.5; color: var(--fg-2); display: block;
}

/* Connecteur */
.svc-connector {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-3);
}
.svc-connector-line {
  flex: 1; height: 1px; background: var(--border);
}

/* Phase 02 — Run mensuel */
.svc-run {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.svc-run-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 36px 44px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  gap: 24px;
}
.svc-run-h {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1; letter-spacing: -0.025em;
  color: var(--fg-1); margin: 0;
}
.svc-run-h em { font-style: italic; font-weight: 500; }
.svc-time-badge {
  display: flex; align-items: center; gap: 14px;
  background: var(--color-raisin-black);
  padding: 16px 22px; border-radius: 4px;
  flex-shrink: 0;
}
.svc-time-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: 38px; letter-spacing: -0.04em;
  color: var(--accent-on-dark); line-height: 1;
}
.svc-time-label {
  font-size: 12px; line-height: 1.45;
  color: rgba(255,255,255,0.5);
}

/* Accordion groups */
.svc-group { border-bottom: 1px solid var(--border); }
.svc-group:last-child { border-bottom: none; }
.svc-group-label {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 13px; color: var(--accent);
  padding: 18px 44px 10px;
  letter-spacing: -0.005em;
}
.svc-acc-item { border-top: 1px solid var(--border); }
.svc-acc-trigger {
  width: 100%; background: none; border: none; cursor: pointer;
  display: grid; grid-template-columns: 28px 1fr 28px;
  gap: 16px; align-items: center;
  padding: 18px 44px;
  text-align: left;
  transition: background 150ms;
  font-family: inherit;
}
.svc-acc-trigger:hover { background: var(--bg-elev); }
.svc-acc-num {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--fg-3); letter-spacing: 0.06em;
}
.svc-acc-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 15px; letter-spacing: -0.01em; color: var(--fg-1);
}
.svc-acc-icon {
  width: 20px; height: 20px;
  border: 1px solid var(--border); border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
  transition: background 200ms, border-color 200ms;
}
.svc-acc-icon::before,
.svc-acc-icon::after {
  content: ''; position: absolute;
  background: var(--fg-2); border-radius: 1px;
  transition: transform 220ms var(--ease-out), opacity 200ms;
}
.svc-acc-icon::before { width: 8px; height: 1.5px; }
.svc-acc-icon::after  { width: 1.5px; height: 8px; }
.svc-acc-item.open .svc-acc-icon { background: var(--color-raisin-black); border-color: var(--color-raisin-black); }
.svc-acc-item.open .svc-acc-icon::before,
.svc-acc-item.open .svc-acc-icon::after { background: #fff; }
.svc-acc-item.open .svc-acc-icon::after { transform: rotate(90deg); opacity: 0; }
.svc-acc-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 320ms var(--ease-out);
}
.svc-acc-item.open .svc-acc-body { max-height: 300px; }
.svc-acc-desc {
  padding: 4px 44px 22px calc(44px + 28px + 16px);
  font-size: 14px; line-height: 1.6; color: var(--fg-2); margin: 0;
}

/* ---------- T.A.P.I. ---------- */
.tapi {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.tapi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  margin-top: 64px;
}
.tapi-pillar {
  padding: 56px 36px 64px;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background 280ms var(--ease-out);
}
.tapi-pillar:last-child { border-right: 0; }
.tapi-pillar:hover { background: var(--bg); }
.tapi-letter {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(120px, 12vw, 180px);
  line-height: 0.8; letter-spacing: -0.06em;
  color: var(--color-raisin-black);
  margin: 0 0 16px;
  display: block;
  transition: color 200ms;
}
.tapi-pillar:hover .tapi-letter { color: var(--accent); }
.tapi-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; letter-spacing: -0.02em;
  color: var(--fg-1);
  margin: 0 0 4px;
}
.tapi-q {
  font-family: var(--font-display); font-style: italic;
  font-size: 14px; color: var(--accent);
  margin: 0 0 16px; font-weight: 500;
}
.tapi-d {
  font-size: 14px; line-height: 1.55; color: var(--fg-2);
  margin: 0; max-width: 28ch;
}

/* ---------- Section dark ---------- */
.section-dark {
  background: var(--bg-inverse);
  color: var(--fg-inverse);
}
.section-dark .eyebrow { color: rgba(245,245,240,0.45); }
.section-dark .eyebrow::before { background: rgba(245,245,240,0.3); }
.section-dark .s-head h2 { color: var(--fg-inverse); }
.section-dark .s-head h2 em { color: var(--accent-on-dark); }
.section-dark .lede { color: rgba(245,245,240,0.55); }

/* ---------- Cases / Réalisations — Option C éditoriale ---------- */
.cases-editorial {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(245,245,240,0.1);
}

.case-editorial {
  display: grid;
  grid-template-columns: 300px 1px 1fr;
  gap: 0;
  padding: 56px 0;
  border-bottom: 1px solid rgba(245,245,240,0.1);
  align-items: start;
}

/* Colonne gauche */
.case-ed-left {
  padding-right: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case-ed-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-ed-id {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,245,240,0.35);
}

.case-ed-logo {
  height: 24px;
  max-width: 140px;
  object-fit: contain;
  object-position: left;
  filter: grayscale(1) contrast(0.7);
  opacity: 0.8;
}

/* Stat cards */
.case-ed-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-stat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 20px;
  border: 1px solid rgba(245,245,240,0.1);
  border-radius: var(--r-lg);
  background: rgba(245,245,240,0.05);
  transition: background 220ms var(--ease-out),
              border-color 220ms var(--ease-out),
              transform 220ms var(--ease-out),
              box-shadow 220ms var(--ease-out);
  cursor: default;
}

.case-stat-card:hover {
  background: rgba(245,245,240,0.1);
  border-color: rgba(245,245,240,0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.case-stat-card-num {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: rgba(245,245,240,0.92);
}

.case-stat-card-label {
  font-size: 13px;
  color: rgba(245,245,240,0.45);
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.case-ed-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,245,240,0.6);
  margin-top: auto;
}

.case-ed-tag::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Séparateur vertical */
.case-ed-sep {
  background: var(--border);
  align-self: stretch;
  margin: 0 48px;
}

/* Colonne droite — posts */
.case-ed-right {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: start;
}

.case-ed-post {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-ed-post-img-wrap {
  width: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  transition: box-shadow var(--dur-base) var(--ease-out);
}

.case-ed-post-img-wrap:hover {
  box-shadow: var(--sh-3);
}

.case-ed-post-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s var(--ease-out);
}

.case-ed-post-img-wrap:hover img {
  transform: scale(1.02);
}

.case-ed-post-likes {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(245,245,240,0.4);
  text-align: center;
}

/* CTA bas de section */
.cases-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  margin-top: 64px;
  padding: 48px 56px;
  border: 1px solid rgba(245,245,240,0.1);
  border-radius: var(--r-lg);
  background: rgba(245,245,240,0.05);
}

.cases-cta-h {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-xl);
  letter-spacing: var(--tr-heading);
  color: var(--fg-inverse);
  margin: 8px 0 0;
}

.cases-cta-h em {
  font-style: italic;
  color: var(--accent-on-dark);
}

.cases-cta-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.cases-cta-meta {
  font-size: 11px;
  color: rgba(245,245,240,0.35);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Responsive ── */
@media (max-width: 1080px) {
  .case-editorial { grid-template-columns: 260px 1px 1fr; }
  .case-ed-sep { margin: 0 32px; }
  .case-ed-left { padding-right: 32px; }
}

@media (max-width: 760px) {
  .case-editorial {
    grid-template-columns: 1fr;
    padding: 40px 0;
    gap: 32px;
  }
  .case-ed-sep { display: none; }
  .case-ed-left { padding-right: 0; }
  .case-ed-stats { grid-template-columns: 1fr 1fr; }
  .case-ed-right { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cases-cta-row { flex-direction: column; align-items: flex-start; gap: 28px; padding: 32px 24px; }
  .cases-cta-actions { align-items: flex-start; }
}

/* ---------- Testimonials ---------- */
.testimonials { padding: calc(120px * var(--density)) 0; }
.t-star {
  max-width: 1000px;
  margin: 0 auto 96px;
  text-align: left;
  padding: 0 64px;
}
.t-mark {
  font-family: var(--font-display); font-weight: 800;
  font-size: 96px; color: var(--accent);
  line-height: 0.6; margin-bottom: 8px;
  display: block;
}
.t-quote {
  font-family: var(--font-display);
  font-weight: 400; font-style: italic;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.25; letter-spacing: -0.02em;
  color: var(--fg-1);
  margin: 0 0 40px;
}
.t-quote strong { font-weight: 600; font-style: normal; color: var(--fg-1); }
.t-attr {
  display: flex; align-items: center; gap: 18px;
  margin-top: 32px;
}
.t-avatar {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--color-raisin-black);
  color: var(--color-cultured);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 18px; letter-spacing: -0.02em;
  overflow: hidden; flex-shrink: 0;
}
.t-avatar img { width: 100%; height: 100%; object-fit: cover; }
.t-attr-text { line-height: 1.4; }
.t-attr-text .name { font-weight: 600; color: var(--fg-1); font-size: 15px; display: block; }
.t-attr-text .role { font-size: 13px; color: var(--fg-3); margin-top: 2px; }
.t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.t-card {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column;
  background: var(--bg);
}
.t-card-q {
  font-family: var(--font-display); font-style: italic;
  font-size: 16px; line-height: 1.5;
  color: var(--fg-1);
  margin: 0 0 24px;
  flex: 1;
  font-weight: 400;
}
.t-card-attr {
  display: flex; gap: 12px; align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.t-card-avatar {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--color-raisin-black);
  color: var(--color-cultured);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  flex-shrink: 0;
  overflow: hidden;
}
.t-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.t-card-name { font-weight: 600; color: var(--fg-1); font-size: 13px; }
.t-card-role { font-size: 11px; color: var(--fg-3); margin-top: 2px; line-height: 1.3; }

/* ---------- CTA intermediate banner ---------- */
.cta-banner {
  background: var(--color-raisin-black);
  color: var(--color-cultured);
  padding: calc(80px * var(--density)) 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner.ruby { background: var(--accent); }
.cta-banner-h {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1; letter-spacing: -0.035em;
  color: var(--color-cultured);
  margin: 0 0 32px;
  max-width: 22ch;
  margin-left: auto; margin-right: auto;
}
.cta-banner-h em { font-style: italic; font-weight: 500; }
.cta-banner .btn-light {
  background: var(--color-cultured); color: var(--color-raisin-black);
  border-color: var(--color-cultured);
}
.cta-banner .btn-light:hover { background: var(--accent); color: var(--color-cultured); border-color: var(--accent); }

/* ---------- FAQ ---------- */
.faq-list {
  margin-top: 64px;
  border-top: 1px solid var(--color-raisin-black);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 28px 0;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 24px;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--fg-1);
  transition: color 200ms;
}
.faq-q:hover { color: var(--accent); }
.faq-num {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; color: var(--fg-3);
  font-weight: 400;
}
.faq-icon {
  width: 20px; height: 20px; position: relative;
  flex-shrink: 0;
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute;
  background: var(--fg-1);
  transition: transform 280ms var(--ease-out), background 200ms;
}
.faq-icon::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.faq-icon::after { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
.faq-item.open .faq-icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-item.open .faq-q { color: var(--accent); }
.faq-item.open .faq-icon::before { background: var(--accent); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 360ms var(--ease-out);
}
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner {
  padding: 0 0 32px 60px;
  font-size: 16px; line-height: 1.65;
  color: var(--fg-2);
  max-width: 70ch;
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding: calc(180px * var(--density)) 64px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.final-cta .eyebrow { justify-content: center; margin-bottom: 28px; }
.final-cta .eyebrow::before { display: none; }
.final-cta-h {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(56px, 8.4vw, 144px);
  line-height: 0.92; letter-spacing: -0.04em;
  color: var(--fg-1);
  margin: 0 0 32px;
  max-width: 14ch;
  margin-left: auto; margin-right: auto;
}
.final-cta-h em { font-style: italic; font-weight: 500; }
.final-cta-h .dot { color: var(--accent); }
.final-cta-sub {
  font-size: 19px; line-height: 1.5;
  color: var(--fg-2);
  max-width: 50ch;
  margin: 0 auto 48px;
}
.final-cta .btn-ruby { font-size: 16px; padding: 18px 32px; }
.final-cta-meta {
  margin-top: 56px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-3);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--color-raisin-black);
  color: var(--color-cultured);
  padding: 96px 64px 0;
  position: relative;
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(245,245,240, 0.12);
}
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-brand-mark { display: flex; align-items: center; gap: 10px; }
.footer-brand-mark img { height: 22px; }
.footer-tag {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 18px; line-height: 1.4;
  color: rgba(245,245,240, 0.82);
  margin: 0; max-width: 28ch;
}
.footer-tag .kw { color: var(--accent-on-dark); font-weight: 600; }
.footer-col-h {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(245,245,240, 0.5);
  margin: 0 0 18px;
}
.footer-col a, .footer-col span {
  display: block;
  color: var(--color-cultured);
  text-decoration: none;
  font-size: 14px;
  padding: 5px 0;
  transition: color 160ms;
  cursor: pointer;
}
.footer-col a:hover { color: #e89aa3; }
.footer-mid {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 0;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(245,245,240, 0.55);
  border-bottom: 1px solid rgba(245,245,240, 0.12);
}
.footer-mid .stamp { color: #e89aa3; }

/* XXL wordmark */
.footer-xxl {
  position: relative;
  padding: 60px 0 28px;
  text-align: center;
  line-height: 0.78;
  margin-left: -64px;
  margin-right: -64px;
  overflow: hidden;
}
.footer-xxl-word {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(60px, 24vw, 560px);
  letter-spacing: -0.06em;
  line-height: 0.78;
  color: var(--color-cultured);
  margin: 0;
  white-space: nowrap;
  overflow: visible;
  display: block;
  user-select: none;
}
.footer-xxl-word.outlined {
  -webkit-text-stroke: 1.5px var(--color-cultured);
  color: transparent;
}
.footer-xxl-word .dot { color: var(--accent-on-dark); }
.footer-xxl.grain::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0.96 0 0 0 0 0.96 0 0 0 0 0.94 0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.18;
  pointer-events: none;
}
.footer-base {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0 32px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(245,245,240, 0.55);
  border-top: 1px solid rgba(245,245,240, 0.12);
}
.footer-base .be { color: var(--color-cultured); font-weight: 500; }

/* ---------- Dark editorial mode toggle ---------- */
body.dark-editorial .tapi {
  background: var(--color-raisin-black);
  border-top-color: rgba(245,245,240, 0.12);
  border-bottom-color: rgba(245,245,240, 0.12);
  color: var(--color-cultured);
}
body.dark-editorial .tapi .s-head h2 { color: var(--color-cultured); }
body.dark-editorial .tapi .s-head .lede { color: rgba(245,245,240, 0.7); }
body.dark-editorial .tapi .s-head .eyebrow { color: rgba(245,245,240, 0.5); }
body.dark-editorial .tapi .s-head .eyebrow::before { background: rgba(245,245,240, 0.4); }
body.dark-editorial .tapi-grid { border-top-color: rgba(245,245,240, 0.18); }
body.dark-editorial .tapi-pillar { border-right-color: rgba(245,245,240, 0.12); }
body.dark-editorial .tapi-pillar:hover { background: rgba(245,245,240, 0.04); }
body.dark-editorial .tapi-letter { color: var(--color-cultured); }
body.dark-editorial .tapi-pillar:hover .tapi-letter { color: var(--accent); }
body.dark-editorial .tapi-name { color: var(--color-cultured); }
body.dark-editorial .tapi-d { color: rgba(245,245,240, 0.7); }
body.dark-editorial .tapi-q { color: #e89aa3; }

/* low-ruby intensity */
body.ruby-low .kpi-num .plus,
body.ruby-low .case-tag::before,
body.ruby-low .footer-tag .kw,
body.ruby-low .footer-xxl-word .dot,
body.ruby-low .hero-title .dot,
body.ruby-low .final-cta-h .dot,
body.ruby-low .case-stat .x { color: var(--fg-1); background: var(--fg-1); }
body.ruby-low .nav-center a::after { background: var(--fg-1); }
body.ruby-low .case-tag::before { background: var(--fg-1); }
body.ruby-low .svc-phase, body.ruby-low .svc-sub { color: var(--fg-2); }
body.ruby-low .t-mark { color: var(--fg-3); }

/* high-ruby intensity */
body.ruby-high .case-stat,
body.ruby-high .kpi-num { color: var(--accent); }
body.ruby-high .tapi-letter { color: var(--accent); }

/* density variants */
body.density-tight { --density: 0.82; }
body.density-normal { --density: 1; }
body.density-airy { --density: 1.32; }

/* ---------- Animations: fade-up on scroll ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  will-change: opacity, transform;
}
.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .wrap, .nav-inner, .manifesto-inner, .t-star, .footer { padding-left: 40px; padding-right: 40px; }
  .constat-grid { gap: 48px; }
  .nav-inner { padding: 18px 32px; }
  .clients-grid { grid-template-columns: repeat(4, 1fr); }
  .tapi-grid { grid-template-columns: repeat(2, 1fr); }
  .tapi-pillar:nth-child(2) { border-right: 0; }
  .tapi-pillar:nth-child(1), .tapi-pillar:nth-child(2) { border-bottom: 1px solid var(--border); }
  .kpis-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(2) { border-right: 0; }
  .kpi:nth-child(1), .kpi:nth-child(2) { border-bottom: 1px solid var(--border); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .footer-xxl { margin-left: -40px; margin-right: -40px; }
}

@media (max-width: 760px) {
  .wrap, .nav-inner, .manifesto-inner, .t-star { padding-left: 24px; padding-right: 24px; }
  .nav-inner { padding: 16px 24px; grid-template-columns: 1fr auto; }
  .nav-center { display: none; }
  .nav-right .nav-newsletter { display: none; }
  .nav-right .btn:not(.burger) { display: none; }
  .burger { display: block; }
  .hero { padding: 24px 0 64px; }
  .hero-title { font-size: clamp(34px, 9.5vw, 44px); max-width: none; }
  .hero-ctas { gap: 12px; }
  .hero-foot { gap: 16px; font-size: 10px; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .tapi-grid { grid-template-columns: 1fr; }
  .tapi-pillar { border-right: 0; border-bottom: 1px solid var(--border); }
  .tapi-pillar:last-child { border-bottom: 0; }
  .kpis-grid { grid-template-columns: 1fr; }
  .kpi { border-right: 0; border-bottom: 1px solid var(--border); padding: 56px 32px; }
  .kpi:last-child { border-bottom: 0; }
  .svc-setup { grid-template-columns: 1fr; }
  .svc-setup-label { padding: 28px 28px 24px; justify-content: flex-start; }
  .svc-setup-items { grid-template-columns: 1fr; }
  .svc-setup-item { padding: 24px 28px; }
  .svc-run-header { padding: 28px; flex-direction: column; align-items: flex-start; }
  .svc-time-badge { align-self: stretch; }
  .svc-group-label { padding: 14px 28px 8px; }
  .svc-acc-trigger { padding: 16px 28px; }
  .svc-acc-desc { padding: 0 28px 18px calc(28px + 28px + 16px); }
  .t-grid { grid-template-columns: 1fr; }
  .constat-grid { grid-template-columns: 1fr; gap: 40px; }
  .constat-h { font-size: clamp(28px, 7vw, 40px); }
  .constat-problem { padding: 24px 0; }
  .footer { padding: 56px 24px 0; }
  .footer-xxl { margin-left: -24px; margin-right: -24px; }
  .footer-top { grid-template-columns: 1fr; padding-bottom: 48px; }
  .footer-brand { grid-column: auto; }
  .footer-base { flex-direction: column; gap: 12px; align-items: flex-start; }
  .t-star { padding: 0 24px; margin-bottom: 64px; }
  .faq-q { grid-template-columns: 28px 1fr auto; gap: 16px; font-size: 16px; padding: 20px 0; }
  .faq-a-inner { padding-left: 44px; }
  .section { padding: calc(72px * var(--density)) 0; }
  .s-head { margin-bottom: 48px; }
}

/* ============================================================
   Mentions Légales — Modal overlay
   ============================================================ */

.ml-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(34, 34, 34, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  animation: ml-fade-in 0.25s var(--ease-out) both;
}

@keyframes ml-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ml-panel {
  width: min(680px, 100vw);
  height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: ml-slide-in 0.32s var(--ease-out) both;
  box-shadow: -24px 0 64px rgba(34,34,34,0.12);
}

@keyframes ml-slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* Header */
.ml-header {
  flex-shrink: 0;
  padding: 40px 56px 32px;
  border-bottom: 1px solid var(--border);
}

.ml-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ml-title {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
  letter-spacing: var(--tr-display);
  color: var(--fg-1);
  margin: 0;
}

.ml-title em {
  font-style: italic;
  font-weight: var(--fw-black);
  color: var(--accent);
}

.ml-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg-2);
  font-size: 14px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  flex-shrink: 0;
}

.ml-close:hover {
  background: var(--fg-1);
  color: var(--fg-inverse);
  border-color: var(--fg-1);
}

/* Body */
.ml-body {
  flex: 1;
  overflow-y: auto;
  padding: 48px 56px 64px;
  scroll-behavior: smooth;
}

.ml-body::-webkit-scrollbar { width: 4px; }
.ml-body::-webkit-scrollbar-track { background: transparent; }
.ml-body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }

.ml-intro {
  font-size: var(--fs-sm);
  color: var(--fg-3);
  line-height: var(--lh-sm);
  border-left: 2px solid var(--border);
  padding-left: 16px;
  margin-bottom: 48px;
  max-width: none;
}

.ml-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.ml-section:last-of-type {
  border-bottom: none;
}

.ml-section-h {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
  color: var(--fg-1);
  letter-spacing: var(--tr-heading);
  margin-bottom: 20px;
}

.ml-num {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--accent);
  letter-spacing: var(--tr-caps);
  font-family: var(--font-display);
  flex-shrink: 0;
}

.ml-section p {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--fg-2);
  margin-bottom: 12px;
  max-width: none;
}

.ml-section p:last-child { margin-bottom: 0; }

.ml-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.ml-section a:hover { color: var(--accent-hover); }

.ml-block {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin-top: 12px;
}

.ml-block p {
  font-size: var(--fs-sm);
  color: var(--fg-2);
  margin-bottom: 6px;
  line-height: 1.6;
}

.ml-block p:last-child { margin-bottom: 0; }

.ml-list {
  margin: 12px 0 12px 0;
  padding-left: 20px;
  list-style: none;
}

.ml-list li {
  position: relative;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--fg-2);
  margin-bottom: 8px;
  padding-left: 12px;
}

.ml-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.ml-footer {
  font-size: var(--fs-xs);
  color: var(--fg-3);
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

@media (max-width: 640px) {
  .ml-header { padding: 28px 24px 24px; }
  .ml-body   { padding: 32px 24px 48px; }
  .ml-panel  { width: 100vw; }
}
