/* ============================================================
   Calame — Site vitrine
   Direction "Encre & silicium" : encre profonde, papier ivoire,
   accent cuivre oxydé, vert d'eau silicium. Typographie Newsreader
   avec chiffres elzéviriens et petites capitales.
   ============================================================ */

:root {
  /* Encre & papier */
  --paper:        #f5efe2;
  --paper-soft:   #ebe1cf;
  --paper-deep:   #ddd1b9;
  --ink:          #0a1f2c;
  --ink-soft:     #1d3548;
  --ink-mid:      #3e5667;
  --ink-light:    #7a8a99;

  /* Calame (cuivre oxydé) */
  --calame:       #a8623f;
  --calame-dark:  #7a4426;
  --calame-soft:  #e9d8c0;
  --calame-wash:  #ebe1cf;

  /* Silicium (rare, ponctuel — pour les éléments "outil moderne") */
  --silicon:      #6b8a99;
  --silicon-soft: #cfdde2;

  /* Sémantique (rare) */
  --vermillon:    #c44141;
  --vermillon-s:  #f1d6d6;
  --olive:        #6b7a3e;
  --olive-soft:   #dde4c8;

  --rule:         rgba(10, 31, 44, 0.14);
  --rule-strong:  rgba(10, 31, 44, 0.36);
  --ink-2pt:      #0a1f2c;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  --serif: 'Newsreader', 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Variables typographiques */
  --osf: "onum" on, "kern" on, "liga" on;     /* oldstyle figures */
  --smcp: "smcp" on, "onum" on, "kern" on;    /* small caps */
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
::selection { background: var(--calame-soft); color: var(--ink); }

/* Texture papier discrète */
body {
  margin: 0;
  font-family: var(--serif);
  background: var(--paper);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.04  0 0 0 0 0.10  0 0 0 0 0.16  0 0 0 0.022 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
  background-attachment: fixed;
  color: var(--ink);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  font-feature-settings: var(--osf);
}

p, li, td, dd, .body-text {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: var(--osf);
}

a {
  color: var(--calame-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--calame-soft);
  transition: border-color 0.2s, color 0.2s;
}
a:hover { color: var(--ink); border-bottom-color: var(--ink); }
a.bare, .nav-links a, .footer-grid a, .btn, .brand { border-bottom: none; }

img, svg { display: block; max-width: 100%; }

/* ===== Détail-signature : trait du calame ===== */

.calame-stroke {
  display: inline-block;
  width: 64px;
  height: 1.5px;
  background: linear-gradient(110deg,
    transparent 0%,
    var(--calame) 18%,
    var(--calame-dark) 50%,
    var(--calame) 82%,
    transparent 100%);
  transform: rotate(-1.5deg);
  margin-bottom: 18px;
  border-radius: 1px;
}
.calame-stroke--lg { width: 96px; height: 2px; }
.calame-stroke--center { margin-left: auto; margin-right: auto; display: block; }

/* Animation de tracé (pour le souligné du hero) */
@keyframes draw-stroke {
  from { transform: scaleX(0) rotate(-1.5deg); transform-origin: left center; }
  to   { transform: scaleX(1) rotate(-1.5deg); transform-origin: left center; }
}

/* ===== Reveal au scroll ===== */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(.2,.8,.2,1), transform 0.7s cubic-bezier(.2,.8,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ===== Layout ===== */

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow { max-width: 760px; }

/* ===== Header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 226, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}
.brand-text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.005em;
  line-height: 1;
  font-style: italic;
  font-feature-settings: "onum" 1, "liga" 1, "calt" 1;
}
.brand-text .bt-medi { color: var(--ink); }
.brand-text .bt-calame { color: var(--calame); }

/* Wordmark image (PNG transparent, "Medi" en blanc + "Calame" en marron clair) */
.brand-img {
  height: clamp(22px, 2.4vw, 32px);
  width: auto;
  display: block;
}
.site-footer .brand-img { height: clamp(20px, 2.2vw, 30px); }

/* Le calame biseauté qui tient lieu d'accent aigu sur le « e » de Médi.
   Barre horizontale en cuivre + pointe taillée à droite, légèrement skewée
   pour suivre l'inclinaison de l'italique. C'est LE mark MédiCalame :
   non descriptif, non décoratif, structurellement intégré à la lecture du nom. */
.brand-text .bt-e {
  position: relative;
  display: inline-block;
}
.brand-text .bt-e::before {
  content: "";
  position: absolute;
  /* Au-dessus de l'x-height du e, à la place de l'accent aigu */
  top: -0.34em;
  left: 50%;
  /* Centrage + skew italique. La pointe biseautée pèse à droite,
     on rééquilibre vers la gauche pour centrer optiquement sur le « e ». */
  transform: translateX(-50%) skewX(-14deg);
  width: 0.78em;
  height: 0.13em;
  background: var(--calame);
  /* Le calame en plan : 50% corps rectangulaire, 50% biseau triangulaire.
     La pointe est franche, lisible même à 18px. */
  clip-path: polygon(0 0, 50% 0, 100% 50%, 50% 100%, 0 100%);
  border-radius: 0.5px 0 0 0.5px;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  font-feature-settings: var(--smcp);
  letter-spacing: 0.02em;
}
.nav-links a {
  color: var(--ink-soft);
  text-transform: lowercase; /* small-caps va majoriser */
}
.nav-links a:not(.cta-link):hover { color: var(--calame-dark); }
.nav-links .cta-link {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.2s;
  font-feature-settings: "smcp" on;
}
.nav-links .cta-link:hover { background: var(--calame-dark); }

/* ===== Boutons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  font-feature-settings: var(--osf);
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(.2,.8,.2,1);
  text-decoration: none;
  border-bottom: none;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--calame-dark);
  color: var(--paper);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-large { padding: 16px 30px; font-size: 15px; }

/* ===== Typographie ===== */

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ===== Eyebrow (small caps serif) ===== */

.eyebrow {
  display: inline-block;
  font-family: var(--serif);
  font-feature-settings: var(--smcp);
  font-size: 16px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.06em;
  color: var(--calame-dark);
  text-transform: lowercase;
  margin: 0 0 14px;
}

/* Numéro de chapitre romain */
.chapter-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 64px;
  color: var(--calame);
  line-height: 1;
  letter-spacing: 0.02em;
  display: inline-block;
  position: relative;
}
.chapter-num::before {
  content: "";
  display: inline-block;
  width: 56px;
  height: 1px;
  background: var(--calame);
  vertical-align: 0.45em;
  margin-right: 16px;
  opacity: 0.6;
}

/* Lettrine (drop cap) */
.dropcap::first-letter {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 4.6em;
  float: left;
  line-height: 0.85;
  margin: 0.08em 0.08em 0 -0.04em;
  color: var(--calame-dark);
  padding-top: 4px;
}

/* ===== Hero ===== */

.hero {
  position: relative;
  padding: 96px 0 132px;
  background:
    radial-gradient(ellipse 60% 40% at 88% 18%, var(--calame-soft) 0%, transparent 70%),
    linear-gradient(180deg, var(--paper-soft) 0%, var(--paper) 70%);
  overflow: hidden;
}
.hero::after {
  /* filet horizontal très fin en bas, façon ouvrage */
  content: "";
  position: absolute;
  left: 32px; right: 32px; bottom: 0;
  height: 1px;
  background: var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: 58fr 38fr;
  gap: 4%;
  align-items: end; /* asymétrie : carnet plus bas */
}
.hero-text {
  padding-bottom: 24px;
}
.hero-eyebrow {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.hero-eyebrow .eyebrow { margin: 0; }

.hero h1 {
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: 1.02;
  font-weight: 500;
  margin: 0 0 32px;
  letter-spacing: -0.018em;
}
.hero h1 em {
  font-style: italic;
  color: var(--calame-dark);
  font-weight: 500;
  position: relative;
  display: inline-block;
  opacity: 0;
  animation: fade-in-italic 0.9s cubic-bezier(.2,.8,.2,1) 0.5s forwards;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.05em;
  height: 2px;
  background: linear-gradient(110deg,
    transparent 0%,
    var(--calame) 12%,
    var(--calame-dark) 50%,
    var(--calame) 88%,
    transparent 100%);
  transform: scaleX(0) rotate(-0.6deg);
  transform-origin: left center;
  animation: draw-stroke 1.4s cubic-bezier(.5,.05,.2,1) 1.2s forwards;
}
@keyframes fade-in-italic {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.hero-lead {
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 36px;
  max-width: 540px;
  font-feature-settings: var(--osf);
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mid);
  font-feature-settings: var(--osf);
}
.trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 4px var(--olive-soft);
}

/* ===== Hero shots : 3 captures app en boucle ===== */

.hero-visual {
  display: flex;
  justify-content: flex-end;
  margin-bottom: -40px;
  padding-top: 40px;
}

.shots {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 3.6;
}

/* Une capture (shot) — empilées, une visible à la fois */
.shot {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  animation: shot-cycle 24s linear infinite;
}
.shot.sa { animation-delay: 0s; }
.shot.sb { animation-delay: -16s; }
.shot.sc { animation-delay: -8s; }

@keyframes shot-cycle {
  0%   { opacity: 0; transform: translateX(14px); }
  2%   { opacity: 0; transform: translateX(14px); }
  6%   { opacity: 1; transform: translateX(0); }
  30%  { opacity: 1; transform: translateX(0); }
  33%  { opacity: 0; transform: translateX(-12px); }
  100% { opacity: 0; transform: translateX(-12px); }
}

/* Cadre type capture d'écran : image + ombre + légère rotation */
.shot__frame {
  flex: 1;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 1px 0 var(--paper-deep),
    0 24px 50px -16px rgba(10, 31, 44, 0.18),
    0 56px 96px -40px rgba(10, 31, 44, 0.12);
  transform: rotate(-0.4deg);
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.shot__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.shot__caption {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 16px 4px 0;
  padding-left: 18px;
  border-left: 2px solid var(--calame);
  font-weight: 500;
}
.shot__caption em {
  font-style: italic;
  color: var(--calame-dark);
}

/* Accessibilité : pause animation pour utilisateurs sensibles */
@media (prefers-reduced-motion: reduce) {
  .shot { animation: none !important; }
  .shot.sa { opacity: 1; }
  .shot.sb, .shot.sc { display: none; }
}

/* ===== Captures éditoriales dans les sections (en complément du carrousel hero) ===== */

.section-shot {
  margin: 56px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--rule);
  box-shadow:
    0 1px 0 var(--paper-deep),
    0 24px 50px -16px rgba(10, 31, 44, 0.18),
    0 56px 96px -40px rgba(10, 31, 44, 0.12);
  transform: rotate(-0.3deg);
}

.section-shot figcaption {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 8px 4px 0;
  padding-left: 18px;
  border-left: 2px solid var(--calame);
  font-weight: 500;
  max-width: 640px;
}
.section-shot figcaption em {
  font-style: italic;
  color: var(--calame-dark);
}

/* Variante large : largeur maximale au sein du container */
.section-shot--wide {
  margin-top: 64px;
}
.section-shot--wide img {
  /* déjà géré : full width */
}

/* Paire de captures côte à côte */
.section-shots-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 56px 0 0;
}
.section-shots-pair .section-shot {
  margin: 0;
}
.section-shots-pair .section-shot:nth-child(2) img {
  transform: rotate(0.4deg);
}

/* Responsive */
@media (max-width: 980px) {
  .section-shots-pair {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .section-shot { margin-top: 40px; }
  .section-shot img { transform: none; }
}

/* ===== Sections génériques ===== */

.section { padding: 140px 0; position: relative; }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 28px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head .chapter-num { flex-shrink: 0; }
.section-head-text { flex: 1; min-width: 260px; }
.section-head-text .eyebrow { display: block; margin-bottom: 6px; }

.section h2 {
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.08;
  font-weight: 500;
  margin: 0;
  max-width: 820px;
  letter-spacing: -0.012em;
}
.section h2 em { font-style: italic; color: var(--calame-dark); }

.section-lead {
  font-family: var(--sans);
  font-size: 18px;
  color: var(--ink-mid);
  max-width: 680px;
  margin: 24px 0 0;
  line-height: 1.6;
  font-feature-settings: var(--osf);
}

/* ===== Section "Manifeste" — citation roseau avec C en filigrane ===== */

.section-roseau {
  background: var(--calame-wash);
  position: relative;
  overflow: hidden;
}
.section-roseau::before {
  /* Le grand C en filigrane */
  content: "C";
  position: absolute;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 720px;
  line-height: 0.85;
  color: var(--calame);
  opacity: 0.075;
  top: -80px;
  right: -60px;
  pointer-events: none;
  user-select: none;
}
.roseau-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.roseau-attrib-col {
  position: sticky;
  top: 100px;
}
.roseau-attrib-col .eyebrow { display: block; margin-bottom: 14px; }
.roseau-attrib-col h2 {
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.12;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.roseau-attrib-col p {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 380px;
  line-height: 1.6;
}

.roseau-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 36px;
  padding-left: 28px;
  border-left: 2px solid var(--calame);
  font-weight: 500;
  margin-left: -40px;
}
.roseau-quote strong {
  font-style: normal;
  font-weight: 500;
  color: var(--calame-dark);
  background: linear-gradient(transparent 60%, var(--calame-soft) 60%);
  padding: 0 2px;
}
.roseau-text {
  font-family: var(--sans);
  font-size: 16.5px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 18px;
  max-width: 580px;
  font-feature-settings: var(--osf);
}
.roseau-text strong {
  font-weight: 600;
  color: var(--ink);
}

/* ===== Constat ===== */

.section-problem { background: var(--paper); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 24px 0 24px;
}
.stat-card {
  border-top: 1px solid var(--rule);
  padding: 28px 0 0;
  position: relative;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 28px;
  height: 1px;
  background: var(--calame);
}
.stat-value {
  font-family: var(--serif);
  font-style: italic;
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
  font-feature-settings: var(--osf);
}
.stat-label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-top: 14px;
  line-height: 1.5;
  font-feature-settings: var(--osf);
}
.stat-source {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-light);
  margin-top: 12px;
  font-feature-settings: var(--osf);
}
.stat-card.stat-warn .stat-value { color: var(--vermillon); }
.problem-conclusion {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2vw, 28px);
  color: var(--ink-soft);
  max-width: 780px;
  margin: 56px 0 0;
  line-height: 1.45;
  font-weight: 500;
  border-left: 2px solid var(--calame);
  padding-left: 24px;
}

/* ===== Méthode (4 piliers) — grille décalée ===== */

.section-methode { background: var(--paper); }
.section-methode::before {
  /* léger fond ivoire en arrière */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-soft) 100%);
  z-index: 0;
}
.section-methode > .container { position: relative; z-index: 1; }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 60px;
  margin-top: 32px;
}
.pillar {
  padding: 32px 0 28px;
  border-top: 1px solid var(--rule);
  position: relative;
}
.pillar:nth-child(2) { margin-top: 56px; }
.pillar:nth-child(4) { margin-top: 56px; }
.pillar::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 36px;
  height: 1.5px;
  background: var(--calame);
}
.pillar-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--calame);
  margin-bottom: 14px;
  font-feature-settings: var(--osf);
}
.pillar h3 {
  font-size: 28px;
  margin: 0 0 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.pillar h3 em { font-style: italic; color: var(--calame-dark); }
.pillar p {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 460px;
  font-feature-settings: var(--osf);
}

/* ===== Comment ça marche — trois temps ===== */

.section-comment { background: var(--calame-wash); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 32px;
}
.step-card {
  padding: 0;
  position: relative;
}
.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 48px;
  font-weight: 500;
  color: var(--calame);
  line-height: 1;
  margin-bottom: 18px;
  font-feature-settings: var(--osf);
  display: block;
}
.step-num::after {
  content: "";
  display: block;
  margin-top: 10px;
  width: 28px;
  height: 1.5px;
  background: var(--calame);
}
.step-card h3 {
  font-size: 24px;
  margin: 0 0 12px;
  font-weight: 500;
}
.step-card p {
  margin: 0;
  font-family: var(--sans);
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.65;
  font-feature-settings: var(--osf);
}

/* ===== "Ce qu'on n'est pas" ===== */

.section-not { background: var(--paper); }
.not-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 56px;
}
.not-list li {
  padding: 22px 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  line-height: 1.35;
  border-top: 1px solid var(--rule);
  position: relative;
}
.not-list li::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 24px;
  height: 1.5px;
  background: var(--vermillon);
}
.not-list small {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 14.5px;
  font-weight: 400;
  color: var(--ink-mid);
  margin-top: 8px;
  line-height: 1.55;
  font-feature-settings: var(--osf);
}

/* ===== Pour le cabinet (Calame Secrétariat) ===== */

.section-cabinet {
  background: var(--paper);
  position: relative;
}
.section-cabinet::before {
  /* trait calame en haut gauche, signature de section */
  content: "";
  position: absolute;
  top: 0; left: 32px;
  width: 96px; height: 1.5px;
  background: linear-gradient(110deg, transparent, var(--calame) 30%, var(--calame-dark) 70%, transparent);
  transform: rotate(-1deg);
}

/* ===== Pour la main (Apple) ===== */

.section-instrument {
  background: var(--paper-soft);
  position: relative;
}
.section-instrument::after {
  /* léger trait diagonal silicium qui suggère un MagSafe */
  content: "";
  position: absolute;
  top: 60px; right: 0;
  width: 280px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--silicon) 40%, var(--silicon-soft) 100%);
  opacity: 0.6;
}

.instrument-narrative {
  font-family: var(--serif);
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1.55;
  color: var(--ink);
  max-width: 780px;
  margin: 0 0 28px;
  font-weight: 500;
}
.instrument-narrative em {
  font-style: italic;
  color: var(--calame-dark);
}
.instrument-narrative strong {
  font-style: normal;
  font-weight: 500;
  background: linear-gradient(transparent 65%, var(--calame-soft) 65%);
  padding: 0 2px;
}

.instrument-features {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 48px;
}
.feature {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.feature::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 24px;
  height: 1.5px;
  background: var(--silicon);
}
.feature-tag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--silicon);
  margin-bottom: 10px;
}
.feature h4 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0 0 10px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.feature h4 em { font-style: italic; color: var(--calame-dark); }
.feature p {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  font-feature-settings: var(--osf);
}

/* Tableau de coûts iPad */
.cost-table {
  margin-top: 80px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}
.cost-table-head {
  padding: 24px 32px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-soft);
}
.cost-table-head h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  font-style: italic;
  color: var(--ink);
}
.cost-table-head p {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink-mid);
  margin: 6px 0 0;
  font-feature-settings: var(--osf);
}
.cost-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 18px 32px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-soft);
  align-items: baseline;
  font-feature-settings: var(--osf);
}
.cost-row:last-of-type { border-bottom: none; }
.cost-row .label { color: var(--ink); }
.cost-row .label em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-light);
  font-size: 14px;
  margin-left: 8px;
}
.cost-row .price { text-align: right; font-feature-settings: var(--osf); color: var(--ink-soft); }
.cost-row .month { text-align: right; font-weight: 600; color: var(--ink); font-feature-settings: var(--osf); }
.cost-row.total {
  background: var(--calame-wash);
  border-top: 2px solid var(--calame);
  border-bottom: none;
}
.cost-row.total .label { font-weight: 600; color: var(--ink); }
.cost-row.total .month { color: var(--calame-dark); font-weight: 700; }
.cost-foot {
  padding: 18px 32px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mid);
  background: var(--paper-soft);
  border-top: 1px solid var(--rule);
}

.instrument-disclaimer {
  margin-top: 36px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-mid);
  font-style: italic;
  max-width: 700px;
  line-height: 1.6;
  font-feature-settings: var(--osf);
}

/* ===== Science (santé publique) ===== */

.section-science {
  background: var(--ink);
  color: var(--paper);
  position: relative;
}
.section-science::before {
  /* trait calame en haut */
  content: "";
  position: absolute;
  top: 0; left: 32px;
  width: 96px; height: 1.5px;
  background: var(--calame);
  transform: rotate(-1deg);
}
.section-science .eyebrow { color: var(--calame-soft); }
.section-science h2 { color: var(--paper); }
.section-science h2 em { color: var(--calame-soft); }
.section-science .chapter-num { color: var(--calame-soft); }
.section-science .chapter-num::before { background: var(--calame-soft); opacity: 0.7; }
.section-science .section-lead { color: rgba(245, 239, 226, 0.72); }

.science-narrative {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.45;
  color: rgba(245, 239, 226, 0.92);
  max-width: 800px;
  margin: 0 0 28px;
  font-weight: 500;
}
.science-narrative em {
  font-style: italic;
  color: var(--calame-soft);
}
.science-narrative strong {
  font-style: normal;
  font-weight: 500;
  color: var(--paper);
  border-bottom: 1.5px solid var(--calame);
}
.science-frame {
  background: rgba(245, 239, 226, 0.04);
  border: 1px solid rgba(245, 239, 226, 0.14);
  border-radius: var(--r-md);
  padding: 36px 40px;
  max-width: 820px;
  margin-top: 40px;
}
.science-frame h4 {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  font-feature-settings: var(--smcp);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--calame-soft);
  margin: 0 0 22px;
}
.science-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.science-list li {
  padding: 14px 0 14px 32px;
  position: relative;
  color: rgba(245, 239, 226, 0.85);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  border-bottom: 1px solid rgba(245, 239, 226, 0.08);
  font-feature-settings: var(--osf);
}
.science-list li:last-child { border: none; }
.science-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--calame-soft);
  font-weight: 500;
}
.science-list strong {
  color: var(--paper);
  font-weight: 600;
}
.science-disclaimer {
  margin-top: 32px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: rgba(245, 239, 226, 0.7);
  max-width: 760px;
  line-height: 1.55;
}

/* ===== Sécurité ===== */

.section-securite { background: var(--paper); }
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 48px;
  margin-top: 32px;
}
.sec-card {
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  position: relative;
}
.sec-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 24px;
  height: 1.5px;
  background: var(--calame);
}
.sec-card h4 {
  font-family: var(--serif);
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.sec-card h4 em { font-style: italic; color: var(--calame-dark); }
.sec-card p {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 460px;
  font-feature-settings: var(--osf);
}

/* ===== Tarifs ===== */

.section-tarifs { background: var(--calame-wash); }
.pricing-wrap {
  max-width: 760px;
  margin: 32px auto 0;
}
.price-card-solo {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 56px 56px 48px;
  position: relative;
  text-align: center;
}
.price-card-solo .calame-stroke { margin: 0 auto 24px; }
.price-amount-big {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(72px, 9vw, 100px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  margin: 8px 0 8px;
  letter-spacing: -0.03em;
  font-feature-settings: var(--osf);
}
.price-amount-big .currency {
  font-size: 0.55em;
  vertical-align: 0.5em;
  margin-right: 2px;
  color: var(--calame-dark);
  font-style: normal;
  font-weight: 500;
}
.price-amount-big .period {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-mid);
  margin-top: 14px;
  letter-spacing: 0;
  font-feature-settings: var(--osf);
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 32px 0;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 36px;
}
.price-features li {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-soft);
  padding-left: 24px;
  position: relative;
  font-feature-settings: var(--osf);
}
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--olive);
  font-weight: 500;
}
.price-not {
  list-style: none;
  padding: 18px 0 0;
  margin: 0 0 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-light);
  text-align: center;
}
.pricing-note {
  margin-top: 20px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-mid);
  text-align: center;
}

/* ===== Roadmap ===== */

.section-roadmap { background: var(--paper); }
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 48px;
  margin-top: 32px;
}
.rm-col {
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  position: relative;
}
.rm-col::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 24px;
  height: 1.5px;
  background: var(--olive);
}
.rm-col.rm-soon::before { background: var(--calame); }
.rm-col.rm-future::before { background: var(--ink-light); }
.rm-col h3 {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  font-feature-settings: var(--smcp);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--olive);
  margin: 0 0 18px;
  font-style: italic;
}
.rm-col.rm-soon h3 { color: var(--calame-dark); }
.rm-col.rm-future h3 { color: var(--ink-light); }
.rm-col ul { list-style: none; padding: 0; margin: 0; }
.rm-col li {
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
  line-height: 1.5;
  font-feature-settings: var(--osf);
}
.rm-col li:last-child { border: none; }
.rm-col li em { font-family: var(--serif); font-style: italic; color: var(--ink-light); }

/* ===== Formulaire bêta ===== */

.section-form { background: var(--paper-soft); }
.form-wrap { max-width: 720px; margin: 0 auto; }
.form-intro {
  text-align: center;
  margin-bottom: 36px;
}
.form-intro .calame-stroke { margin: 0 auto 18px; }
.form-intro h2 { margin: 0 auto 18px; }
.form-intro .section-lead { margin: 0 auto; }

.prospect-form {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 44px;
  border: 1px solid var(--rule);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.prospect-form label { display: block; }
.prospect-form label > span {
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 8px;
}
.prospect-form input,
.prospect-form select,
.prospect-form textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 15px;
  font-family: var(--sans);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--paper-soft);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  font-feature-settings: var(--osf);
}
.prospect-form input:focus,
.prospect-form select:focus,
.prospect-form textarea:focus {
  border-color: var(--ink);
  background: var(--paper);
}
.prospect-form textarea { resize: vertical; min-height: 110px; }
.form-full { margin-bottom: 22px; }
.form-consent {
  display: flex;
  gap: 12px;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink-mid);
  margin-bottom: 22px;
  align-items: flex-start;
  line-height: 1.55;
  font-feature-settings: var(--osf);
}
.form-consent input {
  width: auto;
  margin-top: 3px;
  accent-color: var(--ink);
}
.form-foot {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-light);
  margin: 14px 0 0;
}
.btn[type="submit"] { width: 100%; }
.hp-field {
  position: absolute;
  left: -10000px;
  top: -10000px;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* ===== Page merci ===== */

.section-merci { padding: 100px 0; }
.merci-card {
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 64px 48px 56px;
  text-align: center;
}
.merci-card .calame-stroke { margin: 0 auto 24px; }
.merci-card h1 {
  font-family: var(--serif);
  font-size: 48px;
  font-style: italic;
  font-weight: 500;
  margin: 0 0 18px;
  letter-spacing: -0.012em;
}
.merci-card .lead { color: var(--ink-soft); margin: 0 auto 28px; max-width: 540px; font-size: 17px; font-family: var(--sans); font-feature-settings: var(--osf); }
.merci-list { list-style: none; padding: 0; margin: 0; font-family: var(--sans); font-size: 16px; }
.merci-list li { padding: 10px 0; }

/* ===== Pages légales sobres ===== */

.page-legal h1 {
  font-family: var(--serif);
  font-size: 48px;
  font-style: italic;
  font-weight: 500;
  margin: 0 0 36px;
}
.page-legal h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  font-style: italic;
  margin: 40px 0 14px;
  color: var(--calame-dark);
}
.page-legal p, .page-legal li {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
  font-feature-settings: var(--osf);
}
.page-legal ul { padding-left: 22px; }

/* ===== Footer ===== */

.site-footer {
  background: var(--ink);
  color: rgba(245, 239, 226, 0.72);
  padding: 80px 0 40px;
  margin-top: 0;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 32px;
  width: 96px; height: 1.5px;
  background: var(--calame);
  transform: rotate(-1deg);
}
.site-footer .brand { color: var(--paper); }
.site-footer .brand-text { color: var(--paper); }
.site-footer .brand-text .bt-medi { color: var(--paper); }
.site-footer .brand-text .bt-calame { color: var(--calame); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: rgba(245, 239, 226, 0.85);
  margin: 18px 0 12px;
  line-height: 1.5;
}
.footer-mini {
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(245, 239, 226, 0.5);
  margin: 0;
  line-height: 1.55;
  font-feature-settings: var(--osf);
}
.footer-title {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  font-style: italic;
  font-feature-settings: var(--smcp);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--calame-soft);
  margin-bottom: 18px;
}
.footer-grid a {
  display: block;
  padding: 6px 0;
  font-family: var(--sans);
  font-size: 14px;
  color: rgba(245, 239, 226, 0.65);
  transition: color 0.2s;
  font-feature-settings: var(--osf);
}
.footer-grid a:hover { color: var(--calame-soft); }
.footer-bottom {
  border-top: 1px solid rgba(245, 239, 226, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: rgba(245, 239, 226, 0.5);
}

/* ===== Responsive ===== */

@media (max-width: 980px) {
  body { font-size: 16px; }
  .hero { padding: 60px 0 80px; }
  .hero-grid,
  .roseau-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual { order: -1; margin-bottom: 0; padding-top: 0; }
  .roseau-attrib-col { position: static; }
  .roseau-quote { margin-left: 0; }
  .section-roseau::before { font-size: 360px; top: -20px; right: -40px; }
  .stats-grid,
  .pillars-grid,
  .steps-grid,
  .roadmap-grid,
  .security-grid,
  .not-list,
  .form-row,
  .footer-grid,
  .instrument-features { grid-template-columns: 1fr; gap: 28px; }
  .pillar:nth-child(2),
  .pillar:nth-child(4) { margin-top: 0; }
  .price-features { grid-template-columns: 1fr; }
  .nav-links a:not(.cta-link) { display: none; }
  .section { padding: 80px 0; }
  .price-card-solo { padding: 32px 24px; }
  .prospect-form { padding: 24px; }
  .cost-row { grid-template-columns: 2fr 1fr; padding: 14px 20px; font-size: 14px; }
  .cost-row .price { display: none; }
  .cost-table-head, .cost-foot { padding: 18px 20px; }
  .section-head { gap: 16px; }
  .chapter-num { font-size: 44px; }
}

@media (max-width: 540px) {
  .container { padding: 0 22px; }
  .hero h1 { font-size: 40px; }
  .stat-value { font-size: 44px; }
  .price-amount-big { font-size: 64px; }
}
