/* ============================================================
   ★NOM★ — site marketing (lot M2)
   Design : « papeterie de maison de soins » — Encre & Or.
   L'encre agit, l'or distingue, le crème respire.
   Vanilla CSS, mobile-first, zéro dépendance.
   ============================================================ */

/* ---------- Fontes (self-host, subset latin) ---------- */
@font-face {
  font-family: "DM Serif Display";
  src: url("../fonts/dm-serif-display.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Display";
  src: url("../fonts/dm-serif-display-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-var.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light; /* site volontairement clair — verrouille les form controls/scrollbars */
  --bg: #faf7f2;
  --fg: #1f1916;
  --card: #ffffff;
  --ink: #0e1a2e;
  --ink-2: #1f3458;
  --ink-fg: #f5f1ea;
  --gold: #c7a573;
  --gold-deep: #a8834d; /* usage GRAPHIQUE (coches, filets) : ≥ 3:1 — pas pour du petit texte */
  --gold-text: #85683b; /* or accessible en petit texte : 4.86:1 sur crème, 5.20:1 sur blanc */
  --sand: #efe9de;
  --border: #d9cdb6;
  --muted: #6b5d4f;
  --success: #166534;
  --serif: "DM Serif Display", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --w: 1120px;
  --r: 14px;
  --shadow: 0 24px 60px -24px rgb(31 25 22 / 0.22);
  --shadow-soft: 0 10px 30px -12px rgb(31 25 22 / 0.14);
  --grain: 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.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
::selection {
  background: var(--gold);
  color: var(--ink);
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.005em;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Sur les fonds encre, l'outline encre serait invisible (1:1) — crème 15.5:1 */
.calc :focus-visible,
.final :focus-visible,
.footer :focus-visible {
  outline-color: var(--ink-fg);
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--ink-fg);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ---------- Primitives ---------- */
.container {
  max-width: var(--w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}
h2.eyebrow,
h3.eyebrow {
  font-family: var(--sans); /* un heading-eyebrow garde la voix petites-caps */
  line-height: 1.5;
}
.sec {
  padding-block: 4.5rem;
}
.sec-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}
.sec-head .eyebrow {
  display: block;
  margin-bottom: 0.9rem;
}
.sec-head .eyebrow::before {
  content: "";
  display: inline-block;
  width: 2.2rem;
  height: 2px;
  background: var(--gold);
  vertical-align: 0.22em;
  margin-right: 0.7rem;
}
.sec-head h2 {
  font-size: clamp(1.75rem, 4.2vw, 2.5rem);
  text-wrap: balance;
}
.sec-head .lead {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Listes à coches — la puce or est un trait de plume */
.checks {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.checks li {
  position: relative;
  padding-left: 1.75rem;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.52em;
  width: 0.95rem;
  height: 0.5rem;
  border-left: 2px solid var(--gold-deep);
  border-bottom: 2px solid var(--gold-deep);
  transform: rotate(-48deg);
  border-radius: 1px;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font: 600 1rem/1 var(--sans);
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}
.btn:active {
  transform: scale(0.98);
}
.btn-ink {
  background: linear-gradient(135deg, var(--ink), var(--ink-2));
  color: var(--ink-fg);
  box-shadow: 0 10px 24px -10px rgb(14 26 46 / 0.55);
}
.btn-ink::after {
  content: "→";
  font-weight: 400;
  color: var(--gold);
  transition: transform 0.18s ease;
}
.btn-ink:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgb(14 26 46 / 0.6);
}
.btn-ink:hover::after {
  transform: translateX(3px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--ink-fg);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(250 247 242 / 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  min-height: 4.25rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.brand .star {
  color: var(--gold-deep);
}
/* Monogramme « éclat » à côté du wordmark (logo.svg, décoratif : alt="") */
.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  flex: none;
}
.footer .brand-mark {
  width: 1.35rem;
  height: 1.35rem;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 1.6rem;
  margin-left: auto;
}
.nav-links a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  position: relative;
  padding-block: 0.3rem;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav-links a:not(.btn):hover::after {
  transform: scaleX(1);
}
.nav .btn {
  padding: 0.7rem 1.25rem;
  font-size: 0.95rem;
}
.burger {
  margin-left: auto;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  display: grid;
  place-items: center;
  /* Sans align-content, les pistes auto s'étirent (défaut grid) et le pas
     entre barres devient ~14 px au lieu de 7 px — le ✕ ouvert partait en chevron */
  align-content: center;
  gap: 0;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  margin-block: 2.5px;
  transition: 0.2s ease;
}
.nav.open .burger span:nth-child(1) {
  /* pas vertical réel d'une barre à l'autre : 2 px de trait + 2×2.5 px de marge = 7 px */
  transform: translateY(7px) rotate(45deg);
}
.nav.open .burger span:nth-child(2) {
  opacity: 0;
}
.nav.open .burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.25rem 1.75rem;
}
.nav.open .mobile-menu {
  display: grid;
  gap: 0.4rem;
}
.mobile-menu a:not(.btn) {
  font-family: var(--serif);
  font-size: 1.7rem;
  text-decoration: none;
  padding-block: 0.45rem;
  border-bottom: 1px solid var(--sand);
}
.mobile-menu .btn {
  margin-top: 1rem;
  justify-self: start;
}
@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
  .burger,
  .mobile-menu {
    display: none !important;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden; /* fallback Safari < 16 */
  overflow: clip;
  background:
    var(--grain),
    radial-gradient(
      58rem 34rem at 88% -12%,
      rgb(199 165 115 / 0.16),
      transparent 60%
    ),
    var(--bg);
  padding-block: 3.5rem 4.5rem;
}
.hero-grid {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.35rem, 6vw, 3.55rem);
  text-wrap: balance;
}
.hero .lead {
  margin-top: 1.1rem;
  font-size: 1.16rem;
  color: var(--muted);
  max-width: 34rem;
}
.hero .checks {
  margin-top: 1.5rem;
}
.hero-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}
.hero-fig {
  position: relative;
}
.hero-fig figcaption {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}
@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 30rem) minmax(0, 1fr);
    gap: 3.5rem;
  }
  .hero-fig {
    margin-right: clamp(-9rem, -6vw, -2rem); /* la capture respire hors cadre */
  }
}

/* Cadre navigateur — la vitrine du produit */
.browser {
  background: var(--ink);
  border-radius: calc(var(--r) + 2px);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgb(14 26 46 / 0.35);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.65rem 1rem;
}
.browser-dots {
  display: flex;
  gap: 0.38rem;
}
.browser-dots i {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: rgb(245 241 234 / 0.28);
}
.browser-dots i:first-child {
  background: var(--gold);
}
.browser-url {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(245 241 234 / 0.66);
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser img {
  width: 100%;
  background: var(--card);
}
/* Cadre tablette (iPad cabine), chevauchant */
.tablet {
  background: var(--ink);
  border-radius: 1.35rem;
  padding: 0.55rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  width: min(14.5rem, 46%);
}
.tablet img {
  border-radius: 0.9rem;
}
.fig-overlap .tablet {
  position: absolute;
  right: -0.5rem;
  bottom: -1.9rem;
  border: 1px solid rgb(245 241 234 / 0.16);
}

/* Cadre téléphone, chevauchant */
.phone {
  background: var(--ink);
  border-radius: 1.6rem;
  padding: 0.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  width: min(11.5rem, 42%);
}
.phone img {
  border-radius: 1.15rem;
}
.fig-overlap {
  position: relative;
  margin-bottom: 2.6rem; /* le téléphone déborde dans cette marge, pas sur la légende */
}
.fig-overlap .phone {
  position: absolute;
  right: -0.5rem;
  bottom: -1.9rem;
  border: 1px solid rgb(245 241 234 / 0.16);
  width: min(
    10rem,
    38%
  ); /* plafonné : à 42 % il mordait le texte vers 480 px */
}

/* ---------- Bandeau confiance ---------- */
.trust {
  border-block: 1px solid var(--border);
  background: var(--card);
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1.1rem;
  padding-block: 1.05rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.trust-inner .dot {
  color: var(--gold);
  font-size: 1rem;
}

/* ---------- Avant / avec ---------- */
.duals {
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 760px) {
  .duals {
    grid-template-columns: 1fr 1fr;
  }
}
.dual {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.dual:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.dual .before {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--muted);
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px dashed var(--border);
}
.dual .after {
  position: relative;
  padding-left: 1.7rem;
}
.dual .after::before {
  content: "";
  position: absolute;
  left: 0.05rem;
  top: 0.5em;
  width: 0.9rem;
  height: 0.48rem;
  border-left: 2px solid var(--gold-deep);
  border-bottom: 2px solid var(--gold-deep);
  transform: rotate(-48deg);
}
.dual .after b {
  font-weight: 600;
}

/* ---------- Calculateur (le moment d'encre) ---------- */
.calc {
  background:
    var(--grain),
    radial-gradient(
      50rem 30rem at 12% 0%,
      rgb(199 165 115 / 0.14),
      transparent 55%
    ),
    linear-gradient(160deg, var(--ink) 0%, #16233c 100%);
  color: var(--ink-fg);
  border-radius: calc(var(--r) + 6px);
  padding: clamp(1.75rem, 4.5vw, 3.25rem);
  box-shadow: var(--shadow);
}
.calc .eyebrow {
  color: var(--gold);
}
.calc h2 {
  font-size: clamp(1.6rem, 3.8vw, 2.3rem);
  max-width: 24ch;
}
.calc-grid {
  display: grid;
  gap: 2.25rem;
  margin-top: 2rem;
}
@media (min-width: 900px) {
  .calc-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
  }
}
.calc label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.95rem;
  color: rgb(245 241 234 / 0.82);
  margin-bottom: 0.45rem;
}
.calc output {
  font-weight: 700;
  color: var(--ink-fg);
  font-variant-numeric: tabular-nums;
}
.calc input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
  margin-bottom: 1.5rem;
  cursor: pointer;
}
.calc-result {
  border-top: 1px solid rgb(199 165 115 / 0.35);
  padding-top: 1.35rem;
  margin-top: 0.25rem;
}
.calc-result .num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 4rem);
  color: var(--gold);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.calc-result .num small {
  font-size: 0.42em;
  letter-spacing: 0.04em;
}
.calc-result .per {
  color: rgb(245 241 234 / 0.72);
  margin-top: 0.2rem;
}
.calc-note {
  font-size: 0.82rem;
  color: rgb(245 241 234 / 0.55);
  margin-top: 0.9rem;
  max-width: 30rem;
}
.calc-panel {
  background: rgb(250 247 242 / 0.06);
  border: 1px solid rgb(199 165 115 / 0.3);
  border-radius: var(--r);
  padding: 1.5rem 1.6rem;
  align-self: start;
}
.calc-panel h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--ink-fg);
}
.calc-panel .checks li::before {
  border-color: var(--gold);
}
.calc-panel .checks {
  gap: 0.8rem;
}

/* ---------- Blocs bénéfices ---------- */
.feature {
  display: grid;
  gap: 1.9rem;
  align-items: center;
  padding-block: 2.6rem;
}
.feature + .feature {
  border-top: 1px solid var(--sand);
}
@media (min-width: 940px) {
  .feature {
    grid-template-columns: minmax(0, 25rem) minmax(0, 1fr);
    gap: 3.2rem;
    padding-block: 3.4rem;
  }
  /* nth-of-type, pas nth-child : le .mid-cta inséré entre les blocs 03 et 04
     ne doit pas décaler l'alternance texte/capture */
  .feature:nth-of-type(odd) .feature-txt {
    order: 2;
  }
}
.feature-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(
    --gold-deep
  ); /* 3.27:1, ≥ 3:1 grand texte — --gold échouait (2.17:1) */
  line-height: 1;
}
.feature-num::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 2px;
  background: var(--gold);
  margin-top: 0.55rem;
  opacity: 0.55;
}
.feature h3 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin-block: 0.9rem 1.1rem;
  text-wrap: balance;
}
.feature .checks {
  font-size: 0.99rem;
}
.feature figcaption {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}
.med-tag {
  margin-top: 1.3rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  background: var(--card);
  border-radius: 0 10px 10px 0;
  padding: 0.95rem 1.1rem;
}
.med-tag .eyebrow {
  display: block;
  margin-bottom: 0.5rem;
}
.med-tag ul {
  font-size: 0.93rem;
  gap: 0.45rem;
}

/* ---------- Différenciation ---------- */
.diff {
  background: var(--sand);
  border-block: 1px solid var(--border);
}
.diff-cards {
  display: grid;
  gap: 1.1rem;
  margin-top: 2.2rem;
}
@media (min-width: 860px) {
  .diff-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
.diff-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
}
.diff-card .k {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--ink);
  display: block;
}
.diff-card .k::after {
  content: "";
  display: block;
  width: 1.9rem;
  height: 2px;
  background: var(--gold);
  margin-block: 0.6rem 0.8rem;
}
.diff-card p {
  font-size: 0.97rem;
  color: var(--muted);
}
.diff-model {
  margin-top: 1.8rem;
  text-align: center;
  font-size: 1.12rem;
}
.diff-model b {
  font-weight: 700;
}

/* ---------- Sécurité ---------- */
.security-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .security-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 3.5rem;
  }
}
.vault {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 1.05rem;
}
.vault-row {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.vault-row + .vault-row {
  border-top: 1px solid var(--sand);
  padding-top: 1.05rem;
}
.vault-ico {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--gold);
  display: grid;
  place-items: center;
}
.vault-ico svg {
  width: 1.15rem;
  height: 1.15rem;
}
.vault-row b {
  display: block;
  font-size: 0.98rem;
}
.vault-row span {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Témoignage ---------- */
.quote {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
  position: relative;
  padding-top: 2.4rem;
}
.quote::before {
  content: "“";
  position: absolute;
  top: -0.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 5.5rem;
  color: var(--gold);
  line-height: 1;
}
.quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1.4;
  color: var(--fg);
}
.quote figcaption {
  margin-top: 1.3rem;
  font-size: 0.92rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Tarifs ---------- */
.pricing {
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
}
.pricing h2 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
}
.pricing p {
  margin-block: 1.1rem 1.7rem;
  color: var(--muted);
  font-size: 1.08rem;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 46rem;
  margin-inline: auto;
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.15rem;
  font-weight: 600;
  font-size: 1.04rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold-deep);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding-bottom: 1.2rem;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- CTA final ---------- */
.final {
  background:
    var(--grain),
    radial-gradient(
      52rem 30rem at 85% 110%,
      rgb(199 165 115 / 0.16),
      transparent 60%
    ),
    linear-gradient(200deg, var(--ink) 0%, #101f38 100%);
  color: var(--ink-fg);
}
.final-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 940px) {
  .final-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 4rem;
  }
}
.final h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  text-wrap: balance;
}
.final .lead {
  margin-top: 1rem;
  color: rgb(245 241 234 / 0.78);
  max-width: 32rem;
}
.final .eyebrow {
  color: var(--gold);
}
.demo-form {
  background: var(--bg);
  color: var(--fg);
  border-radius: calc(var(--r) + 4px);
  padding: 1.9rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}
.demo-form .field {
  display: grid;
  gap: 0.35rem;
  /* Sans ça, deux champs côte à côte partagent la hauteur de rangée : le
     texte d'aide sous le téléphone étirait l'email d'autant (constaté
     2026-09-01). Les lignes se calent en haut, le champ garde sa hauteur. */
  align-content: start;
}
.demo-form label {
  font-size: 0.88rem;
  font-weight: 600;
}
.demo-form label .opt {
  font-weight: 400;
  color: var(--muted);
}
.demo-form input,
.demo-form select,
.demo-form textarea {
  font: inherit;
  padding: 0.78rem 0.95rem;
  border: 1.5px solid #a08b6f;
  border-radius: 10px;
  background: var(--card);
  color: var(--fg);
  width: 100%;
}
.demo-form textarea {
  resize: vertical;
  min-height: 6.5rem;
  line-height: 1.5;
}
.demo-form input:focus-visible,
.demo-form select:focus-visible,
.demo-form textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
.demo-form input::placeholder,
.demo-form textarea::placeholder {
  color: var(--muted); /* 6.36:1 — la couleur UA (~2.4:1) échouait */
  opacity: 1;
}
.demo-form .btn {
  width: 100%;
  margin-top: 0.3rem;
}
/* Pendant l'envoi vers le relais (Worker) : retour visuel + anti double-clic */
.demo-form .btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
/* Honeypot anti-bot : invisible et hors focus, mais présent dans le DOM */
.hp-field {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.demo-form .reassure {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.1rem;
}
@media (min-width: 560px) {
  .demo-form .row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgb(245 241 234 / 0.78);
  border-top: 3px solid var(--gold);
}
.footer-inner {
  padding-block: 2.6rem;
  display: grid;
  gap: 1.6rem;
}
.footer .brand {
  color: var(--ink-fg);
}
.footer-base {
  font-family: var(--serif);
  font-style: italic;
  color: rgb(245 241 234 / 0.85);
  font-size: 1.05rem;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  font-size: 0.92rem;
}
.footer nav a {
  text-decoration: none;
  display: inline-block;
  padding-block: 0.2rem;
}
.footer nav a:hover {
  color: var(--gold);
}
.footer-legal {
  font-size: 0.82rem;
  color: rgb(245 241 234 / 0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  border-top: 1px solid rgb(245 241 234 / 0.14);
  padding-top: 1.4rem;
}
.footer-legal a {
  text-decoration: none;
  display: inline-block;
  padding-block: 0.2rem; /* cible ≥ 24 px (WCAG 2.2 §2.5.8) */
}
.footer-legal a:hover {
  color: var(--gold);
}

/* ---------- Reveal au scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* opt-in par .js (posée en tête de main.js) : sans JavaScript, tout reste visible */
  .js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 0.6s ease,
      transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
  }
  .js .reveal.in {
    opacity: 1;
    transform: none;
  }
  /* Décalage en cascade : --i est posé par main.js sur les seuls éléments
     qui franchissent le seuil DANS LE MÊME MOUVEMENT (même lot d'entrées,
     mêmes frères) ; un bloc qui arrive seul démarre sans délai.
     Remplace `:nth-child(2|3|4)`, qui comptait tous les frères — y compris
     les non-révélés : dans #modules, .sec-head et .toc décalaient les deux
     premiers blocs de 160 et 240 ms alors qu'ils arrivent seuls, un par
     écran, pendant que les quatre suivants partaient sans délai. */
  .js .reveal {
    transition-delay: calc(var(--i, 0) * 70ms);
  }
}

/* ---------- Pages secondaires (socle) ---------- */
.page-head {
  padding-block: 3.5rem 1rem;
}
.page-head h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  text-wrap: balance;
}
.page-head .lead {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 46rem;
  font-size: 1.1rem;
}
.prose {
  max-width: 46rem;
}
.prose h2 {
  font-size: 1.6rem;
  margin: 2.4rem 0 0.8rem;
}
.prose p {
  margin-bottom: 1rem;
}
.prose ul {
  margin: 0.6rem 0 1.2rem;
}

/* ============================================================
   Revue UX 2026-08-28 — conversion mobile & scannabilité
   ============================================================ */

/* ---------- Bouton or (sur fond encre : btn-ink y serait invisible) ---------- */
.btn-gold {
  background: linear-gradient(135deg, #dcc09a, var(--gold));
  color: var(--ink);
  box-shadow: 0 10px 24px -10px rgb(199 165 115 / 0.55);
}
.btn-gold::after {
  content: "→";
  font-weight: 400;
  transition: transform 0.18s ease;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgb(199 165 115 / 0.6);
}
.btn-gold:hover::after {
  transform: translateX(3px);
}
/* Le calculateur est le moment émotionnel de la page : il débouche sur un CTA */
.calc-cta {
  margin-top: 1.7rem;
}

/* ---------- Sommaire des six blocs (chips ancrées) ---------- */
.toc {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin: -1.1rem 0 0.4rem;
  scrollbar-width: thin;
}
.toc a {
  flex: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  background: var(--card);
  transition:
    color 0.18s ease,
    border-color 0.18s ease;
}
.toc a:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.toc a .n {
  font-family: var(--serif);
  color: var(--gold-deep);
  margin-right: 0.35rem;
}
/* Chantier en cours (classe posée par main.js) : même traitement que le
   survol, plus le fond de carte — la barre sert de repère de progression,
   sans quoi dix chips identiques n'orientent personne. */
.toc a.is-current {
  color: var(--ink-fg);
  background: var(--ink);
  border-color: var(--ink);
}
/* Retour 2026-09-01 : « le cercle qui entoure l'onglet est peu visible ».
   Un filet encre = le simple survol ; l'actif passe en PLEIN encre, même
   grammaire que la pastille active de la démo du hero (et que la sidebar
   du produit). Le numéro garde l'or : `--gold` sur encre = 7.51:1. */
.toc a.is-current .n {
  color: var(--gold);
}
/* ---------- Sommaire épinglé pendant #modules ---------- */
.toc-bar {
  position: sticky;
  /* = min-height de .nav-inner (3.9rem, linear.css) : la barre se pose
     exactement sous la nav, elle-même sticky à 0. */
  top: 3.9rem;
  z-index: 30; /* sous la nav (50), au-dessus des captures */
  background: rgb(250 247 242 / 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  margin-bottom: 1.6rem;
  transition: border-color 0.18s ease;
}
/* Le trait n'apparaît qu'une fois la barre décollée de sa place (main.js) :
   au repos elle fait partie de l'en-tête de section, pas d'une barre d'outils. */
.toc-bar.is-pinned {
  border-bottom-color: var(--border);
}
.toc-bar-inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.toc-title {
  display: none;
}
@media (min-width: 1180px) {
  .toc-title {
    display: block;
    flex: none;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
  }
}
.toc-bar .toc {
  margin: 0;
  padding-block: 0.75rem 0.85rem;
}
/* Repère de défilement des dix chips (2026-09-01) — même grammaire que le
   bandeau de modules du hero : un enfant STICKY du scroller (posé par
   main.js) porte le fondu de bord ET le chevron « ça continue à droite »,
   et les chips défilent dessous. Sans media query : il se tait de lui-même
   dès que les dix chips tiennent en entier (`is-scroll-end` posé quand il
   n'y a rien à faire défiler) — donc visible sur mobile, et sur les écrans
   étroits de bureau où la barre déborde aussi. */
.toc-edge {
  position: sticky;
  right: 0;
  z-index: 1;
  flex: 0 0 3rem;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* Hors barre épinglée (suisse, variantes de nom), le sommaire est posé
     à même la page : le fondu va au fond de page. */
  background: linear-gradient(
    to left,
    var(--bg) 0,
    var(--bg) 45%,
    rgb(250 247 242 / 0) 100%
  );
  color: var(--gold-deep);
  pointer-events: none; /* décor : on fait glisser la barre, pas ça */
  transition: opacity 0.22s ease;
}
/* Dans la barre épinglée, le fond n'est pas celui de la page : la barre a
   le sien, translucide (0.92) sur `backdrop-filter`. Le fondu va au MÊME
   crème, opaque — 8 % d'écart sur les derniers pixels, invisible, et ça
   évite d'avoir à échantillonner un flou d'arrière-plan. */
.toc-bar .toc-edge {
  background: linear-gradient(
    to left,
    rgb(250 247 242) 0,
    rgb(250 247 242) 45%,
    rgb(250 247 242 / 0) 100%
  );
}
.toc-edge svg {
  width: 1rem;
  height: 1rem;
}
.toc.is-scroll-end .toc-edge {
  opacity: 0;
}
/* Symétrique à gauche dès qu'on a fait glisser. Masque plutôt qu'un 2ᵉ
   élément : le dégradé de droite reste opaque au-delà de 1.5rem, les deux
   cohabitent — et un masque n'a aucune couleur à accorder au fond. */
.toc.is-scrolled {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 1.5rem,
    #000 100%
  );
  mask-image: linear-gradient(to right, transparent 0, #000 1.5rem, #000 100%);
}
/* Les ancres des dix blocs passent maintenant sous DEUX barres empilées */
#modules .feature[id] {
  scroll-margin-top: 8.8rem;
}
/* Les ancres (blocs et sections) ne doivent pas passer sous la nav sticky —
   #faq n'a que 1rem de padding-top, le titre atterrissait sous la nav */
.feature[id],
.sec[id] {
  scroll-margin-top: 5.2rem;
}

/* ---------- CTA intermédiaire entre les blocs 03 et 04 ---------- */
.mid-cta {
  margin-block: 1.4rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-soft);
  padding: 1.7rem 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.6rem;
}
.mid-cta p {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.4;
  max-width: 34rem;
}

/* ---------- Mots-clés en tête de puce : la liste redevient scannable ---------- */
.feature .checks b,
.calc-panel .checks b {
  font-weight: 600;
  color: var(--ink);
}
.calc-panel .checks b {
  color: var(--ink-fg);
}

/* ---------- Bandeau confiance : compact sur petit écran ---------- */
@media (max-width: 560px) {
  .trust-inner {
    gap: 0.4rem 0.7rem;
    padding-block: 0.8rem;
    font-size: 0.72rem;
    letter-spacing: 0.09em;
  }
}

/* ---------- Menu mobile : fond opaque + ombre (le flou laissait tout transparaître) ---------- */
.nav.open {
  background: var(--bg);
}
.nav.open .mobile-menu {
  box-shadow: 0 30px 36px -26px rgb(31 25 22 / 0.4);
}

/* ---------- Confirmation après envoi du formulaire (mailto sans feedback) ---------- */
.form-sent {
  border: 1px solid var(--border);
  border-left: 3px solid var(--success);
  background: var(--card);
  border-radius: 10px;
  padding: 0.95rem 1.1rem;
  font-size: 0.92rem;
}
.form-sent p + p {
  margin-top: 0.45rem;
}
.form-sent a {
  color: var(--ink);
  font-weight: 600;
}
.copy-btn {
  font: 600 0.82rem/1 var(--sans);
  color: var(--ink);
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  cursor: pointer;
  margin-left: 0.35rem;
  transition: background 0.18s ease;
}
.copy-btn:hover {
  background: var(--border);
}

/* ---------- Barre CTA sticky mobile (la cible lit sur téléphone) ---------- */
.mobile-cta {
  display: none;
}
@media (max-width: 859px) {
  .mobile-cta {
    display: flex;
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: calc(0.85rem + env(safe-area-inset-bottom));
    z-index: 60;
    box-shadow: 0 16px 36px -12px rgb(14 26 46 / 0.65);
  }
  /* La barre ne masque jamais le pied de page */
  body:has(> .mobile-cta) {
    padding-bottom: 4.6rem;
  }
  /* Menu ouvert : la barre s'efface (mobile-cta est sibling direct de header.nav) */
  .nav.open ~ .mobile-cta,
  .mobile-cta.is-hidden {
    opacity: 0;
    transform: translateY(140%);
    pointer-events: none;
  }
}
@media (max-width: 859px) and (prefers-reduced-motion: no-preference) {
  .mobile-cta {
    transition:
      transform 0.25s ease,
      opacity 0.25s ease;
  }
}

/* ---------- Barre d'onglets mobile (pages une-page : accueil, suisse) ---------- */
/* Remplace la .mobile-cta sur ces deux pages (2026-11-04) : les sections sous
   le pouce, « Démo » en or pour garder l'appel à l'action. Fond = l'encre de
   la page (noir pur sous THEME=bandeau, marine au crème). Toujours visible :
   c'est la navigation du téléphone, elle ne s'efface pas au formulaire. */
.tab-bar {
  display: none;
}
@media (max-width: 859px) {
  .tab-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.15rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60; /* sous la visionneuse (80) */
    padding: 0.3rem 0.35rem calc(0.3rem + env(safe-area-inset-bottom));
    background: var(--ink);
    border-top: 1px solid rgb(255 255 255 / 0.1);
    box-shadow: 0 -12px 28px -16px rgb(0 0 0 / 0.5);
  }
  .tab-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 3rem; /* cible tactile ≥ 44 px */
    padding: 0.3rem 0.1rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.01em;
    color: rgb(245 241 234 / 0.7);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .tab-bar svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .tab-bar a.active {
    color: #fff;
    background: rgb(255 255 255 / 0.1);
  }
  .tab-bar a.tab-demo {
    color: var(--gold);
    font-weight: 600;
  }
  .tab-bar a.tab-demo.active {
    background: rgb(199 165 115 / 0.16);
  }
  .tab-bar a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
  }
  /* La barre ne masque jamais le pied de page. La place se réserve DANS le
     pied (même encre que la barre), pas sous le body : une marge du body
     laissait une bande crème entre le pied noir et la barre noire. */
  body:has(> .tab-bar) > .footer {
    padding-bottom: calc(3.9rem + env(safe-area-inset-bottom));
  }
}
@media (max-width: 859px) and (prefers-reduced-motion: no-preference) {
  .tab-bar a {
    transition:
      color 0.18s ease,
      background-color 0.18s ease;
  }
}

/* ---------- Page France (lot M5) ---------- */
/* Nav réduite (.nav--slim) : logo + CTA seul, pas de burger. Aucun override :
   .nav-links n'apparaît qu'à >= 860px (règle de base) — sous ce seuil la
   barre d'onglets du bas (.tab-bar, ex-.mobile-cta) prend le relais, ce qui évite deux CTA identiques à
   l'écran et un bouton qui wrappe sur petit mobile (revue UI M5). */
/* Ligne d'entrée discrète vers /france (home, sous la ligne modèle). */
.fr-note {
  margin-top: 1.1rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Scène « trois écrans » (solution complète) : cascade en diagonale à
   tailles lisibles (vitrine et portail ~55-62 % du container, comme les
   figures des blocs), tablette en avant-plan. Chaque capture s'ouvre en
   grand au clic (ancre .shot-zoom). */
.shot-zoom {
  display: block;
  cursor: zoom-in;
}
.trio-stage {
  position: relative;
  margin-top: 2.4rem;
}
.trio-stage .browser {
  box-shadow: var(--shadow);
}
.trio-stage .shot-site {
  width: 56%;
  position: relative;
  z-index: 1;
}
.trio-stage .shot-admin {
  width: 62%;
  margin-left: auto;
  margin-top: -14%;
  position: relative;
  z-index: 2;
}
.trio-stage .tablet {
  position: absolute;
  left: 4%;
  bottom: -2.2rem;
  width: min(15rem, 26%);
  z-index: 3;
  border: 1px solid rgb(245 241 234 / 0.16);
}
.trio-legend {
  display: grid;
  gap: 1.1rem;
  margin-top: 4.6rem;
}
@media (min-width: 860px) {
  .trio-legend {
    grid-template-columns: repeat(3, 1fr);
  }
}
.trio-item b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}
.trio-item p {
  font-size: 0.93rem;
  color: var(--muted);
}
@media (max-width: 859px) {
  .trio-stage .shot-site,
  .trio-stage .shot-admin {
    width: 100%;
    margin: 0 0 1rem;
  }
  .trio-stage .tablet {
    position: static;
    display: block;
    margin-inline: auto;
    width: 13rem;
  }
  .trio-legend {
    margin-top: 2rem;
  }
}

/* Visionneuse des captures (clic sur une ancre .shot-zoom, main.js) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgb(14 26 46 / 0.82);
  cursor: zoom-out;
}
.lightbox[hidden] {
  display: none;
}
.lightbox img {
  max-width: min(94vw, 100rem);
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
  background: var(--card);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.14);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-open,
.lightbox-open body {
  overflow: hidden;
}
