/* ═══════════════════════════════════════════════════════════════
   EHPAD PLANNING PRO — VARIANTE « ÉDITORIAL MAGAZINE »
   Serif display XXL · filets fins · numérotation géante · paper
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Encres */
  --ink: #111827;
  --body: #374151;
  --muted: #64748B;

  /* Papier (réinterprétation chaude des fonds de l'app) */
  --paper: #FBFAF5;
  --paper-2: #F4F2EA;
  --white: #FFFFFF;

  /* Marque */
  --indigo: #4F46E5;
  --indigo-dark: #4338CA;
  --indigo-tint: #EEF2FF;
  --grad: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  /* Sémantiques */
  --ok: #10B981;      --ok-bg: #D1FAE5;
  --warn: #B45309;    --warn-bg: #FEF3C7;
  --danger: #B91C1C;  --danger-bg: #FEE2E2;

  /* Pastilles vacations */
  --v1:#4F46E5; --v2:#3b82f6; --v3:#6366f1; --v4:#8b5cf6;
  --v5:#10b981; --v6:#fbbf24; --v7:#f59e0b; --v8:#ec4899;

  /* Filets */
  --hairline: 1px solid rgba(17, 24, 39, .14);
  --hairline-soft: 1px solid rgba(17, 24, 39, .09);

  --shadow-plate: 0 30px 60px -18px rgba(17, 24, 39, .22), 0 10px 15px -3px rgba(0,0,0,.1);
  --radius: .75rem;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--indigo-dark); }

em { font-style: italic; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.section { padding-block: clamp(72px, 10vw, 140px); }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: .5rem;
}
.skip-link:focus { left: 8px; color: #fff; }

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

/* ── Typographie éditoriale ───────────────────────────────────── */
.h2, .h3, .hero__title {
  font-family: var(--serif);
  font-weight: 480;
  color: var(--ink);
  letter-spacing: -0.025em;
  font-variation-settings: 'opsz' 144;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(2.4rem, 5.2vw, 4.25rem);
  line-height: 1.04;
  max-width: 18ch;
}
.h2--smaller { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }

.h2 em, .h3 em, .hero__title em, .compare__transition em, .footer__baseline em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 420;
}

.h3 {
  font-size: clamp(1.9rem, 3.4vw, 2.85rem);
  line-height: 1.08;
  margin-bottom: 1.4rem;
}

.kicker {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--indigo);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.kicker::after {
  content: '';
  flex: 0 0 56px;
  height: 1px;
  background: currentColor;
  opacity: .5;
}
/* Puce pastilles-pixels : fil conducteur du motif signature */
.kicker::before {
  content: '';
  flex: 0 0 7px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--v1);
  box-shadow: 11px 0 0 var(--v5), 22px 0 0 var(--v7), 33px 0 0 var(--v8);
  margin-right: 33px;
}
.kicker--num span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
  border-bottom: var(--hairline);
  padding-bottom: .1rem;
  margin-right: .35rem;
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--body);
  max-width: 58ch;
}

/* ── Boutons & liens ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
  white-space: nowrap;
}
/* Une seule couleur d'action primaire : encre (alignée sur la nav) */
.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(17, 24, 39, .28);
}
.btn--primary:hover {
  background: #000;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 24px -6px rgba(17, 24, 39, .32);
}
.btn--nav { background: var(--ink); color: #fff; padding: .6rem 1.25rem; font-size: .875rem; }
.btn--nav:hover { background: #000; color: #fff; transform: translateY(-1px); }
.btn--ink {
  background: var(--ink); color: #fff; width: 100%;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1);
}
.btn--ink:hover { background: #000; color: #fff; transform: translateY(-2px); }

.link-arrow {
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  border-bottom: 1px solid rgba(17,24,39,.35);
  padding-bottom: .15rem;
  transition: border-color .2s ease, color .2s ease;
}
.link-arrow::after { content: ' →'; }
.link-arrow:hover { color: var(--indigo); border-color: var(--indigo); }

/* ── Badges ───────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.3;
  padding: .42rem .85rem;
  border-radius: 999px;
  white-space: nowrap;
}
.badge--ok     { background: var(--ok-bg);     color: #065F46; }
.badge--warn   { background: var(--warn-bg);   color: var(--warn); }
.badge--danger { background: var(--danger-bg); color: var(--danger); }

/* ── Pastilles (motif signature planning) ─────────────────────── */
.pastilles { display: inline-flex; gap: 7px; }
.pastilles i {
  width: 13px; height: 13px; border-radius: 4px; display: block;
}
.pastilles i:nth-child(1){background:var(--v1)}
.pastilles i:nth-child(2){background:var(--v2)}
.pastilles i:nth-child(3){background:var(--v3)}
.pastilles i:nth-child(4){background:var(--v4)}
.pastilles i:nth-child(5){background:var(--v5)}
.pastilles i:nth-child(6){background:var(--v6)}
.pastilles i:nth-child(7){background:var(--v7)}
.pastilles i:nth-child(8){background:var(--v8)}
.pastilles--sm i { width: 9px; height: 9px; border-radius: 3px; }
.pastilles--light i { opacity: .85; }

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding-block: .5rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  max-width: 340px;
  height: 1px;
  background: rgba(17,24,39,.14);
}

/* ── Navigation ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 245, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.nav.is-scrolled { border-bottom: var(--hairline-soft); background: rgba(251, 250, 245, .92); }

.nav__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 9px);
  gap: 3px;
}
.brand-mark i { width: 9px; height: 9px; border-radius: 3px; display: block; }
.brand-mark i:nth-child(1){background:var(--v1)}
.brand-mark i:nth-child(2){background:var(--v5)}
.brand-mark i:nth-child(3){background:var(--v7)}
.brand-mark i:nth-child(4){background:var(--v8)}
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-name em { font-weight: 420; }

.nav__links {
  display: flex;
  gap: 1.9rem;
  margin-left: auto;
}
.nav__links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--body);
  transition: color .2s ease;
}
.nav__links a:hover { color: var(--ink); }

.nav__burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
}
.nav__burger span {
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.4rem clamp(20px, 4vw, 40px) 2rem;
  border-top: var(--hairline-soft);
  background: var(--paper);
}
.nav__mobile a {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
}
.nav__mobile .btn { font-family: var(--sans); font-size: 1rem; color: #fff; align-self: flex-start; margin-top: .4rem; }
.nav__mobile:not([hidden]) { display: flex; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  padding-top: calc(var(--nav-h) + clamp(20px, 2.5vw, 36px));
  overflow: clip;
}

.hero__rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--ink);
  padding-top: .8rem;
  margin-bottom: clamp(1.2rem, 2vw, 1.6rem);
}
.hero__folio {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__folio sup { text-transform: none; }

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.hero__title {
  font-size: clamp(3rem, 7vw, 5.75rem);
  line-height: .97;
  font-weight: 500;
}
.hero__title .line { display: block; }
.hero__title .line--italic em { font-weight: 380; }
.hero__title .dot-ink { color: var(--indigo); }

.hero__aside { padding-bottom: 0; padding-top: .35rem; }

/* Fig. 01 — preuve produit dans la colonne droite du hero */
.hero__fig { margin-bottom: 1.3rem; }
.hero__fig .browser {
  box-shadow: 0 16px 32px -14px rgba(17, 24, 39, .22), 0 6px 10px -4px rgba(0,0,0,.08);
}
.hero__fig-crop {
  aspect-ratio: 21 / 8;
  overflow: hidden;
}
.hero__fig-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero__fig .plate__caption { margin-top: .65rem; padding-top: .5rem; font-size: .76rem; }

.hero__sub {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.6;
  border-top: var(--hairline);
  padding-top: 1rem;
  margin-bottom: 1.3rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem 1.4rem;
}

/* Scène du hero */
.hero__stage {
  position: relative;
  margin-top: clamp(1.25rem, 1.8vw, 1.5rem);
  padding-bottom: clamp(3rem, 5vw, 5rem);
}

/* Gestion du pli : le hero occupe exactement le viewport desktop,
   la grande capture est recadrée pour affleurer le bas de l'écran */
@media (min-width: 861px) {
  .hero {
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 780px;
  }
  .hero__stage {
    flex: 1;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
  }
  .plate--hero {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .plate--hero .tilt {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .plate--hero .tilt img {
    flex: 1;
    min-height: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 32%;
  }
  .plate--hero .plate__caption { flex: 0 0 auto; }
}
.hero__grid-bg {
  position: absolute;
  inset: -8% -10% 0;
  background-image:
    linear-gradient(rgba(79,70,229,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,70,229,.07) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 75% 90% at 50% 15%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 90% at 50% 15%, #000 30%, transparent 75%);
  pointer-events: none;
}

/* ── Cadre navigateur & planches ──────────────────────────────── */
.plate { position: relative; }

.browser {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-plate);
  outline: 1px solid rgba(17, 24, 39, .1);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: linear-gradient(#FAFAF8, #F1F0EA);
  border-bottom: 1px solid rgba(17,24,39,.07);
}
.browser__bar i { width: 11px; height: 11px; border-radius: 50%; }
.browser__bar i:nth-child(1){ background: #FF5F57; }
.browser__bar i:nth-child(2){ background: #FEBC2E; }
.browser__bar i:nth-child(3){ background: #28C840; }
.browser__url {
  margin-inline: auto;
  font-size: .72rem;
  color: var(--muted);
  background: rgba(17,24,39,.05);
  border-radius: 6px;
  padding: .2rem .9rem;
}

.tilt {
  transform: perspective(1600px) rotateX(5deg) rotateY(-1.5deg);
  transform-origin: 50% 0;
  transition: transform .8s cubic-bezier(.22,.8,.3,1);
}
.plate--hero:hover .tilt { transform: perspective(1600px) rotateX(1.5deg) rotateY(0deg); }

.plate__caption {
  font-size: .8rem;
  color: var(--muted);
  border-top: var(--hairline-soft);
  margin-top: 1.1rem;
  padding-top: .7rem;
  letter-spacing: .02em;
}

/* Badges flottants du hero */
.hero-badge {
  position: absolute;
  z-index: 3;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.12);
  font-size: .87rem;
  padding: .55rem 1.05rem;
  opacity: 0;
  transform: translateY(14px) scale(.92);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.9,.3,1.3);
}
.hero-badge[data-badge="1"] { top: 9%; left: -1.5%; transition-delay: .55s; }
.hero-badge[data-badge="2"] { top: 34%; right: -2%; transition-delay: .95s; }
.hero-badge[data-badge="3"] { bottom: 16%; left: 5%; transition-delay: 1.35s; }
.plate--hero.is-in .hero-badge { opacity: 1; transform: translateY(0) scale(1); }

/* ── Bandeau réassurance ──────────────────────────────────────── */
.reassure {
  border-top: var(--hairline);
  border-bottom: var(--hairline);
  background: var(--paper);
}
.reassure__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .8rem 2.5rem;
  padding-block: 1.35rem;
}
.reassure__list li {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: .7rem;
}
.reassure__list li::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 3px;
  background: var(--indigo);
}
.reassure__list li:nth-child(2)::before { background: var(--v5); }
.reassure__list li:nth-child(3)::before { background: var(--v7); }
.reassure__list li:nth-child(4)::before { background: var(--v8); }

/* ── Le constat ───────────────────────────────────────────────── */
.constat__head { max-width: 900px; }
.constat__head .lede { margin-top: 1.6rem; }

.figures {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}
.figure {
  padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1.2rem, 2.5vw, 2.2rem) 0 0;
}
.figure + .figure { border-left: var(--hairline-soft); padding-left: clamp(1.2rem, 2.5vw, 2.2rem); }
.figure__num {
  font-family: var(--serif);
  font-weight: 430;
  font-style: italic;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144;
  white-space: nowrap;
}
.figure__desc {
  margin-top: 1rem;
  font-size: .95rem;
  color: var(--muted);
  max-width: 30ch;
}

/* ── Piliers ──────────────────────────────────────────────────── */
.piliers {
  display: flex;
  flex-direction: column;
  gap: clamp(88px, 12vw, 170px);
  overflow: clip;
}

.pilier {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.pilier--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.pilier--flip .pilier__text { order: 2; }
.pilier--flip .pilier__visual { order: 1; }

.pilier__ghost {
  position: absolute;
  top: -.18em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(11rem, 24vw, 22rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(79, 70, 229, .16);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
@supports not (-webkit-text-stroke: 1px black) {
  .pilier__ghost { color: rgba(79, 70, 229, .07); }
}
.pilier:not(.pilier--flip) .pilier__ghost { right: -1%; }
.pilier--flip .pilier__ghost { left: -1%; }

.pilier__text { position: relative; z-index: 1; }
.pilier__text > p { max-width: 54ch; }

.bullets {
  list-style: none;
  margin-top: 1.8rem;
  border-top: var(--hairline);
}
.bullets li {
  display: flex;
  gap: .9rem;
  align-items: baseline;
  padding-block: .85rem;
  border-bottom: var(--hairline-soft);
  font-size: .97rem;
  color: var(--ink);
}
.bullets li::before {
  content: '';
  flex: 0 0 9px;
  width: 9px; height: 9px;
  border-radius: 3px;
  background: var(--indigo);
  transform: translateY(-1px);
}
.bullets li:nth-child(2)::before { background: var(--v5); }
.bullets li:nth-child(3)::before { background: var(--v7); }

.pilier__visual { position: relative; z-index: 1; }

/* Crop ciblé : cartes de règles avec badges « Bloquant » */
.crop {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
}
.crop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 88%;
  transform: scale(1.45);
  transform-origin: 72% 88%;
}

/* Empilement compteurs + dashboard */
.pilier__visual--stack .browser--mini {
  position: relative;
  width: 56%;
  margin-left: auto;
  margin-top: -16%;
  margin-right: -2%;
  z-index: 2;
  box-shadow: 0 24px 48px -12px rgba(17,24,39,.3), 0 10px 15px -3px rgba(0,0,0,.1);
}
.browser--mini .browser__bar { padding: 8px 12px; }
.browser--mini .browser__bar i { width: 8px; height: 8px; }

/* ── Mockup Remplacements ─────────────────────────────────────── */
.mockup {
  padding: clamp(1.2rem, 2.4vw, 2rem);
  background:
    linear-gradient(rgba(79,70,229,.04), transparent 42%),
    #fff;
}
.mockup__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.1rem;
  border-bottom: var(--hairline-soft);
}
.mockup__title {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 560;
  color: var(--ink);
  line-height: 1.25;
}
.mockup__meta { font-size: .82rem; color: var(--muted); margin-top: .3rem; }

.mockup__list { list-style: none; }
.mockup__row {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding-block: 1rem;
  border-bottom: var(--hairline-soft);
}
.mockup__avatar {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--av, var(--indigo));
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.mockup__name {
  font-weight: 600;
  color: var(--ink);
  font-size: .95rem;
  flex: 0 0 auto;
  min-width: 88px;
}
.mockup__score {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
}
.mockup__score i {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(17,24,39,.08);
  position: relative;
  overflow: hidden;
  min-width: 34px;
}
.mockup__score i::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 50%);
  border-radius: inherit;
  background: var(--bar, var(--indigo));
}
.mockup__score b {
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.mockup__btn { width: 100%; margin-top: 1.4rem; }

/* ── Avant / Après ────────────────────────────────────────────── */
.apres { background: var(--paper-2); border-block: var(--hairline-soft); }

.compare {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.compare__label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: .6rem;
  margin-bottom: .4rem;
}
.compare__list { list-style: none; }
.compare__list li {
  display: flex;
  gap: .85rem;
  align-items: baseline;
  padding-block: 1.05rem;
  border-bottom: var(--hairline-soft);
  font-size: .98rem;
}
.compare__col--before .compare__list li { color: var(--muted); }
.compare__col--before .compare__list li::before {
  content: '✕';
  font-size: .8rem;
  color: #DC2626;
  opacity: .75;
  flex: 0 0 auto;
}
.compare__col--after .compare__list li { color: var(--ink); font-weight: 500; }
.compare__col--after .compare__list li::before {
  content: '✓';
  font-size: .85rem;
  font-weight: 700;
  color: var(--ok);
  flex: 0 0 auto;
}
.compare__col--after {
  background: #fff;
  outline: var(--hairline-soft);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1);
}
.plate--compare { margin-top: 1.8rem; }
.plate--compare .browser { box-shadow: 0 18px 36px -14px rgba(17,24,39,.25); }

.compare__transition {
  margin-top: clamp(2.8rem, 5vw, 4.2rem);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  font-weight: 450;
  line-height: 1.35;
  color: var(--ink);
  text-align: center;
  max-width: 32ch;
  margin-inline: auto;
  text-wrap: balance;
}

/* ── Grille fonctionnalités ───────────────────────────────────── */
.features__grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-left: var(--hairline-soft);
}
.feature {
  position: relative;
  border-right: var(--hairline-soft);
  border-bottom: var(--hairline-soft);
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.3rem, 2.5vw, 2rem);
  background: var(--paper);
  transition: background-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
/* Hover : liseré pastilles-pixels (fil conducteur) */
.feature::after {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--v1), var(--v3), var(--v4), var(--v5), var(--v6), var(--v7), var(--v8));
  opacity: 0;
  transition: opacity .3s ease;
}
.feature:hover {
  background: #fff;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1);
  transform: translateY(-3px);
}
.feature:hover::after { opacity: 1; }
.feature__index {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  font-weight: 350;
  color: rgba(79,70,229,.45);
  margin-bottom: 1.6rem;
  line-height: 1;
}
.feature h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 560;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: .7rem;
}
.feature p { font-size: .93rem; line-height: 1.65; color: var(--body); }

/* ── CTA final — pleine page éditoriale crème / encre ─────────── */
.cta {
  position: relative;
  background: var(--paper-2);
  color: var(--body);
  border-top: 1px solid var(--ink);
  padding-block: clamp(72px, 9vw, 120px);
  overflow: clip;
}
.cta__pastilles {
  position: absolute;
  top: 1.9rem;
  left: 50%;
  transform: translateX(-50%);
}

/* Bande de réassurance factuelle, avant le formulaire */
.cta__garanties {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .8rem 2.2rem;
  border-bottom: var(--hairline);
  padding-bottom: 1.25rem;
  margin-bottom: clamp(2.6rem, 5vw, 4.2rem);
}
.cta__garanties li {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: .7rem;
}
.cta__garanties li::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 3px;
  background: var(--v1);
}
.cta__garanties li:nth-child(2)::before { background: var(--v5); }
.cta__garanties li:nth-child(3)::before { background: var(--v7); }
.cta__garanties li:nth-child(4)::before { background: var(--v8); }

.cta__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.cta .h2 { color: var(--ink); }
.cta__sub {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--body);
  border-top: var(--hairline);
  padding-top: 1.3rem;
  max-width: 42ch;
}

.demo-form {
  background: var(--white);
  border-radius: 1rem;
  outline: var(--hairline-soft);
  padding: clamp(1.6rem, 3vw, 2.5rem);
  box-shadow: 0 24px 48px -20px rgba(17, 24, 39, .22);
}
.field { margin-bottom: 1.5rem; }
.field label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: .45rem;
}
.field input {
  width: 100%;
  font-family: var(--sans);
  font-size: 1.02rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(17,24,39,.28);
  border-radius: .5rem;
  padding: .65rem .8rem;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.field input::placeholder { color: #6B7280; font-style: italic; }
.field input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.field input:user-invalid { border-color: #EF4444; }

.demo-form__rgpd {
  margin-top: 1.2rem;
  font-size: .76rem;
  line-height: 1.55;
  color: var(--muted);
}
.demo-form__success {
  margin-top: 1.2rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: #065F46;
  background: var(--ok-bg);
  border-radius: .5rem;
  padding: .9rem 1.1rem;
}
.demo-form__error {
  margin-top: 1.2rem;
  font-size: .95rem;
  color: var(--danger);
  background: var(--danger-bg);
  border-radius: .5rem;
  padding: .9rem 1.1rem;
}
.demo-form__error a { color: var(--danger); text-decoration: underline; }
.demo-form.is-sent .field,
.demo-form.is-sent .btn { display: none; }

/* ── FAQ (SEO) ────────────────────────────────────────────────── */
.faq { background: var(--paper); border-top: var(--hairline-soft); }
.container--narrow { max-width: 860px; }
.faq__title { margin-bottom: clamp(2rem, 4vw, 3rem); }
.faq__item { border-bottom: var(--hairline-soft); }
.faq__item:first-of-type { border-top: 1px solid var(--ink); }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  display: flex;
  align-items: baseline;
  gap: .85rem;
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  font-weight: 540;
  color: var(--ink);
  line-height: 1.35;
  padding: 1.15rem 2.4rem 1.15rem 0;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before {
  content: '';
  flex: 0 0 9px;
  width: 9px; height: 9px;
  border-radius: 3px;
  background: var(--v1);
  transform: translateY(-1px);
}
.faq__item:nth-of-type(2) summary::before { background: var(--v5); }
.faq__item:nth-of-type(3) summary::before { background: var(--v7); }
.faq__item:nth-of-type(4) summary::before { background: var(--v8); }
.faq__item:nth-of-type(5) summary::before { background: var(--v4); }
.faq__item summary::after {
  content: '+';
  position: absolute;
  right: .2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform .25s ease;
}
.faq__item[open] summary::after { content: '−'; color: var(--ink); }
.faq__item summary:hover { color: var(--indigo-dark); }
.faq__item > p {
  color: var(--body);
  font-size: .97rem;
  line-height: 1.7;
  max-width: 68ch;
  padding: 0 0 1.35rem 1.55rem;
}

/* ── Accessibilité : titre sémantique invisible ───────────────── */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  border-top: var(--hairline);
  background: var(--paper);
  padding-block: 2.6rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 3rem;
  align-items: start;
}
.footer__brandline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .7rem;
}
.footer__baseline {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
}
.footer__tagline {
  font-size: .92rem;
  color: var(--muted);
  max-width: 30ch;
}
.footer__label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: .8rem;
}
.footer__address {
  font-style: normal;
  font-size: .92rem;
  line-height: 1.8;
  color: var(--body);
}
.footer__address a { color: var(--body); }
.footer__address a:hover { color: var(--indigo); }
.footer__legal { font-size: .8rem; color: var(--muted); }
.footer__bottom {
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: var(--hairline-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2.5rem;
}
.footer__copy { font-size: .85rem; color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.8rem; }
.footer__links a {
  font-size: .88rem;
  color: var(--muted);
  transition: color .2s ease;
}
.footer__links a:hover { color: var(--indigo); }

/* ── Révélations au scroll ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease var(--d, 0s), transform .8s cubic-bezier(.2,.75,.3,1) var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ── Reduced motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .reveal, .hero-badge { opacity: 1; transform: none; }
  .tilt { transform: none; }
}

/* ═══════════════ RESPONSIVE ═══════════════ */

@media (max-width: 1080px) {
  .pilier { grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
  .pilier--flip .pilier__text { order: 1; }
  .pilier--flip .pilier__visual { order: 2; }
  .pilier__ghost { font-size: clamp(9rem, 22vw, 14rem); top: -.3em; }
  .pilier:not(.pilier--flip) .pilier__ghost { right: 0; }
  .pilier--flip .pilier__ghost { left: auto; right: 0; }
  .cta__layout { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav__links, .nav .btn--nav { display: none; }
  .nav__burger { display: flex; }

  .hero__layout { grid-template-columns: 1fr; align-items: start; }
  .hero__title { font-size: clamp(2.9rem, 12.5vw, 5.2rem); }
  .hero__aside { max-width: 560px; }

  .tilt { transform: none; }
  .plate--hero:hover .tilt { transform: none; }

  .hero-badge { position: static; transform: none; }
  .plate--hero {
    display: flex;
    flex-direction: column;
  }
  .plate--hero .hero-badge {
    order: 2;
    align-self: flex-start;
    margin-top: .8rem;
    opacity: 0;
    transform: translateY(10px);
  }
  .plate--hero.is-in .hero-badge { opacity: 1; transform: none; }
  .plate--hero .plate__caption { order: 3; }

  .figures { grid-template-columns: 1fr; }
  .figure { padding-right: 0; }
  .figure + .figure {
    border-left: none;
    border-top: var(--hairline-soft);
    padding-left: 0;
    margin-top: 1.6rem;
  }

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

  .pilier__visual--stack .browser--mini { width: 68%; margin-right: 0; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .section { padding-block: 64px; }

  .kicker::after { display: none; }
  .cta__garanties { justify-content: flex-start; }

  .hero__rule { flex-direction: column; align-items: flex-start; gap: .7rem; }

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

  .mockup__row { flex-wrap: wrap; }
  .mockup__name { min-width: 0; }
  .mockup__score { flex-basis: 100%; order: 3; }

  .reassure__list { justify-content: flex-start; }

  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .compare__col--after { padding: 1.2rem; }
}
