/* ============================================
   DLM · Derrière les mots — feuille de style partagée
   Papier, encre, filets, accent doré-brun.
   Polices hébergées sur le site.
   ============================================ */

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #F4F2EC;
  --paper-raised: #FBFAF7;
  --paper-sunken: #ECE9E1;
  --ink: #16181A;
  --ink-soft: #4B4F52;
  --ink-faint: #62656A;
  --rule: #DAD5CA;
  --rule-strong: #BDB6A7;
  --accent: #8A5A24;
  --accent-soft: #F1E9DC;
  --error: #A3322A;
  --valid: #2F5D46;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --gutter: 1.25rem;
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  /* Grain de papier très léger */
  background-image: 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--paper); }

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

h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- En-tête et pied ---------- */

.masthead,
.colophon {
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.masthead { border-bottom: 1px solid var(--rule); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: -0.2rem;
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  transition: transform .4s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0.02em;
}
.brand-sub {
  padding-left: 0.6rem;
  border-left: 1px solid var(--rule-strong);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.1;
  color: var(--ink-soft);
}
@media (max-width: 380px) { .brand-sub { display: none; } }

.masthead-note {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-align: right;
}

.status-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--valid);
  box-shadow: 0 0 0 3px rgba(47, 93, 70, 0.15);
}

.colophon {
  margin-top: auto;
  padding-top: 1.25rem;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--ink-faint);
}
.colophon a { display: inline-block; padding: 0.3rem 0; text-decoration: none; }
.colophon a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Typo commune ---------- */

h1 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 3.6vw + 1.3rem, 4rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 em { font-style: italic; color: var(--accent); }

.lede {
  margin-top: 1.1rem;
  max-width: 38ch;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0;
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow span + span::before {
  content: "";
  display: inline-block;
  width: 0.9rem;
  height: 1px;
  margin: 0 0.5rem;
  vertical-align: middle;
  background: var(--rule-strong);
}
.eyebrow .tag {
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.section-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.6vw + 1.2rem, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
  text-wrap: balance;
  margin-bottom: 0.75rem;
}

.body-text {
  font-size: 1.04rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 38rem;
}
.body-text + .body-text { margin-top: 0.8rem; }
.body-text strong { color: var(--ink); font-weight: 600; }

/* ---------- Boutons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.3rem;
  padding: 0 1.5rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font: 600 1.02rem/1 var(--sans);
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 0 #000, 0 10px 22px -12px rgba(22, 24, 26, 0.7);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .2s var(--ease);
}
.btn::after { /* éclat qui traverse au survol */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: skewX(-18deg);
  z-index: -1;
  pointer-events: none;
}
.btn:hover { background: #000; }
.btn:hover::after { animation: shine .9s var(--ease); }
.btn:active {
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 #000, 0 4px 10px -8px rgba(22, 24, 26, 0.7);
}
.btn-block { width: 100%; }

.btn-arrow {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  transition: transform .25s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(3px); }

@keyframes shine {
  from { left: -60%; }
  to { left: 130%; }
}

/* ---------- Bloc outil + contact (tout en haut à gauche) ---------- */

.topbar { width: 100%; }

.tool-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0.9rem 0.85rem 1rem;
  border-radius: 10px;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(22, 24, 26, 0.03), 0 12px 28px -22px rgba(22, 24, 26, 0.45);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease);
}
.tool-link:hover {
  border-color: var(--rule-strong);
  border-left-color: var(--accent);
  box-shadow: 0 1px 0 rgba(22, 24, 26, 0.03), 0 16px 32px -20px rgba(22, 24, 26, 0.5);
}
.tool-link:active { transform: translateY(1px); }

.tool-link-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.tool-link-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}
.tool-link-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.tool-link-line {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
.tool-link-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 0 #000;
}
.tool-link-cta svg {
  width: 1rem;
  height: 1rem;
  transition: transform .25s var(--ease);
}
.tool-link:hover .tool-link-cta svg { transform: translate(2px, -2px); }

.topbar-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.4rem;
  margin-top: 0.6rem;
  padding-left: 0.1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.email-plain {
  font-weight: 600;
  color: var(--ink);
  -webkit-user-select: all;
  user-select: all;
  word-break: break-all;
}
.copy-mini {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.copy-mini svg { width: 1rem; height: 1rem; }
.copy-mini .ic-check { display: none; }
.copy-mini.is-done .ic-copy { display: none; }
.copy-mini.is-done .ic-check { display: block; }
.copy-mini:hover { border-color: var(--ink); color: var(--ink); }
.copy-mini:active { transform: scale(0.94); }
.copy-mini.is-done { background: var(--valid); border-color: var(--valid); color: #fff; }

/* ============================================
   Page 1 — capture
   ============================================ */

.capture {
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
  padding: 1.25rem var(--gutter) 3.5rem;
  display: grid;
  gap: 2.25rem;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "top"
    "hero"
    "form"
    "eq"
    "sig"
    "video"
    "toolsec"
    "prog"
    "contact";
}

.capture .topbar { grid-area: top; }
.hero { grid-area: hero; }
.form-card { grid-area: form; }
.equation-section { grid-area: eq; }
.signature { grid-area: sig; }
.video-section { grid-area: video; }
.tool-section { grid-area: toolsec; }
.programme { grid-area: prog; }
.capture .contact-card { grid-area: contact; }

.hero { padding-top: 0.5rem; }

/* Livre ouvert animé (dlm-book.js) : au-dessus du titre sur téléphone, à droite sur grand écran.
   La plume peut dépasser du cadre : pas de défilement horizontal pour autant. */
html { overflow-x: clip; }
.dlm-stage {
  position: relative;
  width: 11rem;
  aspect-ratio: 1;
  margin: -0.75rem auto 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.book {
  position: absolute;
  inset: 0;
  perspective: 40rem;
  perspective-origin: 50% 15%;
}
.book-plane {
  position: absolute;
  left: 7%;
  top: 40%;
  width: 86%;
  aspect-ratio: 5 / 3;
  transform-style: preserve-3d;
  transform: rotateX(56deg) rotateZ(-4deg);
}
.book-shadow {
  position: absolute;
  inset: 2% -8% -14%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(22, 24, 26, 0.3), rgba(22, 24, 26, 0));
  transform: translateZ(-6px);
}
.book-cover {
  position: absolute;
  inset: -4% -2.5%;
  border-radius: 4px;
  background: #2B2622;
  box-shadow: 0 3px 0 #1B1815;
  transform: translateZ(-3px);
}
.ribbon {
  position: absolute;
  left: 48.6%;
  top: 70%;
  width: 2.8%;
  height: 42%;
  background: #A8885F;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 86%, 0 100%);
  transform: translateZ(-1px);
}
.page {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  transform-style: preserve-3d;
  box-shadow: 0 1.5px 0 #E6DECF, 0 3px 0 #D6CAB4;
}
.page-left {
  left: 0;
  border-radius: 3px 0 0 3px;
  transform-origin: 100% 50%;
  transform: rotateY(8deg);
  background: linear-gradient(to left, rgba(22, 24, 26, 0.13), rgba(22, 24, 26, 0) 24%), #FBFAF7;
}
.page-right {
  left: 50%;
  border-radius: 0 3px 3px 0;
  transform-origin: 0 50%;
  transform: rotateY(-8deg);
  background: linear-gradient(to right, rgba(22, 24, 26, 0.13), rgba(22, 24, 26, 0) 24%), #FBFAF7;
}
.leaf {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: 0 50%;
}
.leaf-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(to right, rgba(22, 24, 26, 0.13), rgba(22, 24, 26, 0) 24%), #FBFAF7;
}
.leaf-back {
  border-radius: 3px 0 0 3px;
  transform: rotateY(180deg);
  background: linear-gradient(to left, rgba(22, 24, 26, 0.13), rgba(22, 24, 26, 0) 24%), #FBFAF7;
}
.ink {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #2A2D30;
  stroke-width: 0.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feather {
  position: absolute;
  left: 0;
  top: 0;
  width: 34%;
  height: auto;
  aspect-ratio: 60 / 200;
  transform-origin: 50% 100%;
  transform: translate3d(60%, -190%, 12px) rotateX(-56deg) rotateZ(24deg);
}
.feather svg { display: block; width: 100%; height: 100%; overflow: visible; }
.feather-shadow {
  position: absolute;
  left: 0;
  top: 0;
  width: 16%;
  height: 6%;
  margin: -3% 0 0 -8%;
  border-radius: 50%;
  background: rgba(22, 24, 26, 0.5);
  filter: blur(2px);
  opacity: 0;
}
.dlm-stage.is-live .feather-shadow { opacity: 0.3; }
@media (hover: hover) and (pointer: fine) {
  .dlm-stage { cursor: pointer; }
}
@media (min-width: 700px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(11rem, 20vw, 14rem);
    column-gap: 1.25rem;
    align-items: start;
  }
  .hero > * { grid-column: 1; }
  .hero > .dlm-stage {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    width: 100%;
    margin: 0;
  }
}

/* Carte formulaire */
.form-card {
  position: relative;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.6rem 1.15rem 1.35rem;
  box-shadow: 0 1px 0 rgba(22, 24, 26, 0.03), 0 24px 48px -30px rgba(22, 24, 26, 0.4);
}

.form-card h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.form-sub {
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.form { margin-top: 1.35rem; }

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.field input {
  width: 100%;
  height: 3.25rem;
  padding: 0 0.95rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: 400 1rem var(--sans); /* 16px minimum : pas de zoom automatique sur iPhone */
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder { color: #A5A7A3; }
.field input:hover { border-color: var(--ink-faint); }
.field input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(22, 24, 26, 0.1);
}

.field.is-invalid input {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(163, 50, 42, 0.1);
}
.field.is-valid:not(.has-suggest) input {
  border-color: var(--valid);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5 8.5 14 15 6.5' fill='none' stroke='%232F5D46' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.1rem;
  padding-right: 2.5rem;
}

.hint,
.error,
.suggest {
  font-size: 0.83rem;
  line-height: 1.4;
}
.hint { margin-top: 0.4rem; color: var(--ink-faint); }
.error { color: var(--error); font-weight: 500; }
.error:not(:empty) { margin-top: 0.4rem; }
.field.is-invalid .hint { display: none; }

.suggest { margin-top: 0.4rem; color: var(--ink-soft); }
.suggest button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.form .btn { margin-top: 0.5rem; }
.form.is-sending .btn { opacity: 0.8; pointer-events: none; }

.fine-print {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
  text-align: center;
}
.fine-print strong { color: var(--ink); font-weight: 600; }

.consent {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--ink-faint);
  text-align: center;
}
.consent a { display: inline-block; padding: 0.2rem 0; text-underline-offset: 2px; }
.consent a:hover { color: var(--ink); }

.form-alert {
  margin-top: 1rem;
  padding: 0.7rem 0.85rem;
  border-left: 2px solid var(--error);
  border-radius: 0 6px 6px 0;
  background: rgba(163, 50, 42, 0.06);
  color: var(--error);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Champ piège : hors écran, jamais visible */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- L'équation ---------- */

.equation-section {
  padding-top: 2rem;
  border-top: 1px solid var(--ink);
}
.market {
  margin-top: 0.6rem;
  font-size: 1.04rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 38rem;
}
.market-source {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--ink-faint);
}
.market-source a { display: inline-block; padding: 0.3rem 0; text-underline-offset: 2px; }

.equation {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin: 1.5rem 0 1.25rem;
  padding: 1.1rem;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 24px 50px -30px rgba(22, 24, 26, 0.8);
}
.eq-term {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.3;
}
.eq-num {
  display: inline-flex;
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  font-weight: 600;
}
.eq-term-1 { box-shadow: inset 0 0 0 1.5px #C9A26B; }
.eq-term-1 .eq-num { background: #C9A26B; color: var(--ink); }
.eq-op {
  justify-self: center;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  color: rgba(244, 242, 236, 0.5);
}
.eq-result {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.4rem;
  text-align: center;
}
@media (min-width: 480px) {
  .equation {
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    padding: 1.25rem;
  }
  .eq-op { align-self: center; }
  .equation > .eq-op:nth-of-type(2),
  .eq-op + .eq-result { grid-column: 1 / -1; }
}

/* ---------- Signature ---------- */

.signature {
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  line-height: 1.05;
}
.signature span {
  display: block;
  font-size: 1.25rem;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}
.signature strong {
  display: block;
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw + 1rem, 3.6rem);
  letter-spacing: -0.028em;
}
.signature strong em { font-style: italic; color: var(--accent); }

/* ---------- Vidéo + outil ---------- */

.tool-section {
  padding: 1.35rem 1.15rem;
  border-radius: 12px;
  background: var(--accent-soft);
}
.tool-section .body-text { color: #3d3a33; }
.disclosure {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-faint);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.text-link:hover { color: var(--accent); }

/* ---------- Programme ---------- */

.toc {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}
.toc li {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}
.toc-time {
  flex: none;
  font-size: 0.85rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}
.toc-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.3;
}

/* ---------- Contact ---------- */

.contact-card {
  padding: 1.35rem 1.15rem;
  border-radius: 12px;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
}
.contact-card h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}
.contact-card p { color: var(--ink-soft); font-size: 0.95rem; }

.contact-actions {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: 1rem;
}
.contact-mail {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 0.9rem;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--rule-strong);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-user-select: all;
  user-select: all;
  transition: box-shadow .15s;
}
.contact-mail:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.copy-btn {
  flex: none;
  min-width: 5.5rem;
  min-height: 3rem;
  padding: 0 1rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font: 600 0.88rem var(--sans);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color .2s var(--ease), transform .15s var(--ease);
}
.copy-btn:active { transform: translateY(1px); }
.copy-btn.is-done { background: var(--valid); }

.final-cta { width: 100%; margin-top: 1.25rem; }

/* ---------- Barre d'action mobile ---------- */

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(244, 242, 236, 0.88);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
  border-top: 1px solid var(--rule);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .35s var(--ease), visibility 0s linear .35s;
}
.mobile-bar.is-visible {
  transform: none;
  visibility: visible;
  transition: transform .35s var(--ease), visibility 0s;
}
.mobile-bar .btn { min-height: 3.15rem; }

/* ---------- Petits écrans ---------- */

@media (max-width: 420px) {
  .tool-link-line { display: none; }
  .contact-actions { flex-wrap: wrap; }
  .contact-mail { flex: 1 1 100%; justify-content: center; }
  .copy-btn { flex: 1 1 100%; }
}

@media (max-width: 359px) {
  .tool-link { flex-wrap: wrap; }
  .tool-link-side { width: 100%; }
  .tool-link-cta { width: 100%; justify-content: center; }
}

@media (min-width: 640px) {
  .capture { padding-top: 1.75rem; gap: 2.5rem; }
  .form-card { padding: 2rem 1.75rem 1.6rem; }
  .tool-section { padding: 1.6rem 1.75rem; }
  .contact-card { padding: 1.5rem; }
  .final-cta { width: auto; }
}

@media (min-width: 960px) {
  .capture {
    padding-top: 2rem;
    padding-bottom: 5.5rem;
    column-gap: 4.5rem;
    row-gap: 2.75rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    grid-template-areas:
      "top     form"
      "hero    form"
      "eq      form"
      "sig     form"
      "video   form"
      "toolsec form"
      "prog    form"
      "contact form";
    align-items: start;
  }
  .capture .topbar { max-width: 34rem; }
  .form-card {
    position: sticky;
    top: 1.5rem;
    margin-top: 0.25rem;
  }
  .lede { font-size: 1.2rem; }
  .mobile-bar { display: none; }
}

/* ============================================
   Page 2 — accès débloqué
   ============================================ */

.unlocked {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.25rem var(--gutter) 3.5rem;
}
.unlocked .topbar { margin-bottom: 2rem; }
.unlocked-intro { margin-bottom: 1.5rem; }
.unlocked h1 { font-size: clamp(2.2rem, 3vw + 1.3rem, 3.4rem); }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 50px -30px rgba(22, 24, 26, 0.6);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.chapters { margin-top: 2.5rem; }

.chapter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}
.chapter-list li { border-bottom: 1px solid var(--rule); }

.chapter {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0.9rem;
  width: 100%;
  padding: 1.05rem 0.35rem;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  border-radius: 6px;
  transition: background-color .2s var(--ease);
}
.chapter:hover { background: var(--paper-sunken); }
.chapter:active,
.chapter[aria-current] { background: var(--accent-soft); }
.chapter[aria-current] .chapter-time { color: var(--accent); }
.chapter[aria-current] .chapter-time::before { content: "▶ "; font-size: 0.7em; }

.chapter-time {
  padding-top: 0.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
  white-space: nowrap;
}
.chapter-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.3;
}
.chapter-text {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-wide { margin-top: 2.5rem; }

@media (min-width: 640px) {
  .unlocked { padding-top: 1.75rem; }
  .contact-wide {
    display: grid;
    grid-template-columns: 1fr minmax(0, 21rem);
    align-items: center;
    gap: 1.5rem;
    padding: 1.6rem 1.75rem;
  }
  .contact-wide .contact-actions { margin-top: 0; }
}

/* ============================================
   Pages texte — confidentialité, 404
   ============================================ */

.prose-page {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 4rem;
}
.prose-page h1 { font-size: clamp(2rem, 2.5vw + 1.3rem, 3rem); margin-bottom: 1rem; }
.prose-page .lede { margin: 0 0 2.25rem; }
.prose-page h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 2.25rem 0 0.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.prose-page p,
.prose-page li { color: var(--ink-soft); }
.prose-page p + p { margin-top: 0.8rem; }
.prose-page ul { margin: 0.6rem 0 0; padding-left: 1.1rem; }
.prose-page li + li { margin-top: 0.35rem; }
.prose-page strong { color: var(--ink); font-weight: 600; }
.prose-page a { text-underline-offset: 3px; }
.prose-page a.btn { color: var(--paper); }
.prose-page .btn { margin-top: 2rem; }

/* ---------- Mouvement ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.capture .topbar,
.hero,
.unlocked > * {
  animation: rise .7s var(--ease) both;
}
.hero,
.unlocked > :nth-child(2) { animation-delay: .08s; }
.unlocked > :nth-child(3) { animation-delay: .16s; }

/* Apparition au défilement (activée seulement si le JS tourne) */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

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

/* Mention d'affiliation minimale, juste sous le bouton de l'outil (obligation de transparence) */
.tool-link-side {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.aff-tag {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Façade vidéo : vignette locale, YouTube ne se charge qu'au clic */
.video-facade {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  touch-action: manipulation;
}
.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), opacity .3s var(--ease);
}
.video-facade:hover img { transform: scale(1.02); opacity: 0.92; }
.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.5rem;
  height: 4.5rem;
  margin: -2.25rem 0 0 -2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(22, 24, 26, 0.82);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: transform .25s var(--ease), background-color .2s var(--ease);
}
.play-badge svg { width: 1.7rem; height: 1.7rem; margin-left: 0.2rem; }
.video-facade:hover .play-badge,
.video-facade:focus-visible .play-badge { transform: scale(1.07); background: var(--ink); }
.video-note {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(22, 24, 26, 0.78);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 500;
}
.video-facade:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

/* Case de consentement aux emails (non cochée par défaut, facultative) */
.optin {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0.25rem 0 0.9rem;
  padding: 0.75rem 0.8rem;
  border-radius: var(--radius);
  background: var(--paper-sunken);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
.optin input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.optin-box {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.05rem;
  border: 1.5px solid var(--ink-faint);
  border-radius: 5px;
  background: #fff;
  color: transparent;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.optin-box svg { width: 1rem; height: 1rem; }
.optin input:checked + .optin-box {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.optin input:focus-visible + .optin-box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.optin:hover .optin-box { border-color: var(--ink); }
.optin-text {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
/* Case non cochée au premier clic : recommandation en jaune (la case reste facultative) */
.optin.is-nudged {
  background: #FCEFC2;
  box-shadow: inset 0 0 0 1.5px #D9A21B;
  animation: nudge .5s var(--ease);
}
.optin.is-nudged .optin-box { border-color: #9A6B00; }
.optin.is-nudged .optin-text { color: var(--ink); font-weight: 500; }
.optin-nudge {
  margin: -0.45rem 0 0.9rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #6E4E00;
}
@keyframes nudge {
  0%, 100% { transform: none; }
  25% { transform: translateX(-4px); }
  60% { transform: translateX(3px); }
}

/* ============================================
   Page de désinscription : une carte façon fenêtre
   ============================================ */
.unsub-stage {
  flex: 1;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 2.5rem var(--gutter) 3.5rem;
  background: radial-gradient(120% 80% at 50% 0%, rgba(22, 24, 26, 0.04), transparent 70%);
}
.unsub-card {
  width: 100%;
  max-width: 26rem;
  min-height: 21rem;
  display: grid;
  align-content: center;
  padding: 1.9rem 1.4rem 1.6rem;
  border-radius: 16px;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(22, 24, 26, 0.04), 0 30px 60px -30px rgba(22, 24, 26, 0.45);
  text-align: center;
  animation: rise .5s var(--ease) both;
}
.unsub-card h1 {
  font-size: clamp(1.7rem, 3vw + 1rem, 2.1rem);
  line-height: 1.12;
  outline: none;
}
.unsub-kicker { color: var(--ink-soft); }
.unsub-card [data-state="loading"]:not([hidden]) { display: grid; place-items: center; }
.unsub-resub { margin-top: 1.4rem; }
.unsub-text {
  margin-top: 0.8rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}
.unsub-text strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.unsub-small { margin-top: 1.2rem; font-size: 0.85rem; color: var(--ink-faint); }
.unsub-small a { color: var(--ink); text-underline-offset: 3px; }
.unsub-mail { margin-top: 1rem; }
.unsub-actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.unsub-card [data-state] > .btn { margin-top: 1.4rem; }
.btn-quiet {
  min-height: 3.1rem;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font: 600 1rem var(--sans);
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.btn-quiet:hover { border-color: var(--ink); background: var(--paper); }
.btn[disabled], .btn-quiet[disabled] { opacity: 0.6; pointer-events: none; }
.nowrap { white-space: nowrap; }
.unsub-resub + .unsub-small { margin-top: 0.6rem; }
.unsub-icon {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--valid);
  color: #fff;
}
.unsub-icon svg { width: 1.3rem; height: 1.3rem; }
.unsub-card .form-alert { text-align: left; }
