/* ═══════════════════════════════════════════════════════════
   Medicapp Pro — feuille de style partagée
   Aucune dépendance externe. Police système : pas de requête tierce.
   Pour revenir à Open Sans, déposer les fichiers .woff2 dans
   /assets/fonts/ et déclarer un @font-face ici.
   ═══════════════════════════════════════════════════════════ */

:root {
  --ink: #14212e;
  --ink-soft: #1f3140;
  --text: #3d4a57;
  --muted: #6b7885;
  --faint: #97a2ad;
  --line: #e4e8ec;
  --line-soft: #eff2f5;
  --bg: #fbfcfd;
  --bg-tint: #f5f8fa;
  --white: #ffffff;

  --blue: #28a0dc;
  --blue-dark: #1a7fb3;
  --blue-deep: #0f5f89;
  --blue-soft: #eaf6fc;
  --blue-line: #b9e0f3;

  --accent: #f65d83;
  --accent-soft: #fef0f3;

  --ok: #17794f;
  --ok-soft: #eefaf4;
  --warn: #9a6414;
  --warn-soft: #fdf6e9;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(20, 33, 46, .04), 0 8px 28px rgba(20, 33, 46, .05);
  --shadow-lg: 0 2px 4px rgba(20, 33, 46, .04), 0 20px 50px rgba(20, 33, 46, .09);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Open Sans", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --wrap-narrow: 760px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;   /* « clip » plutôt que « hidden » : ne casse pas position:sticky */
  max-width: 100%;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
b, strong { color: var(--ink); font-weight: 650; }

/* Aucun mot long ne doit élargir la page (URL, identifiants, adresses de courriel) */
p, li, dd, td, th, h1, h2, h3, h4, summary { overflow-wrap: break-word; }

/* Code court, employé dans le texte */
:not(pre) > code {
  font-family: var(--mono);
  font-size: .86em;
  background: var(--bg-tint);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Les enfants de grille et de flex ne doivent jamais imposer leur largeur intrinsèque */
.grid > *, .with-aside > *, .doors > *, .plans > *,
.shift > *, .boundary > *, .nav-in > *, .code-head > * { min-width: 0; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
  font-size: .9rem; font-weight: 600;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 24px; }

/* ═══════ TYPOGRAPHIE ═══════ */

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }

h1 { font-size: clamp(2.05rem, 1.35rem + 2.7vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); line-height: 1.18; }
h3 { font-size: clamp(1.12rem, 1rem + .45vw, 1.35rem); line-height: 1.3; letter-spacing: -0.01em; }
h4 { font-size: 1rem; letter-spacing: 0; font-weight: 650; }

.eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  color: var(--blue-dark); margin-bottom: 16px;
}
.eyebrow.muted { color: var(--faint); }

.lead { font-size: clamp(1.02rem, .95rem + .35vw, 1.22rem); color: var(--muted); line-height: 1.6; }
.section-intro { max-width: 640px; margin-bottom: 48px; }
.section-intro.center { margin-left: auto; margin-right: auto; text-align: center; }

p + p { margin-top: 14px; }

/* ═══════ SECTIONS ═══════ */

section { padding: clamp(56px, 7vw, 104px) 0; }
.sec-tint { background: var(--bg-tint); }
.sec-bg { background: var(--bg); }
.sec-dark { background: var(--ink); color: rgba(255, 255, 255, .72); }
.sec-dark h2, .sec-dark h3, .sec-dark h4, .sec-dark strong { color: #fff; }
.sec-dark .lead { color: rgba(255, 255, 255, .6); }
.sec-dark .eyebrow { color: var(--blue); }
.sec-tight { padding-top: clamp(36px, 4vw, 56px); }

/* ═══════ NAVIGATION ═══════ */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  height: 66px; display: flex; align-items: center; gap: 28px;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 4px; }
.nav-links a {
  font-size: .92rem; font-weight: 500; color: var(--text); text-decoration: none;
  padding: 8px 13px; border-radius: 8px; transition: background .18s, color .18s;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--bg-tint); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--blue-deep); font-weight: 650; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-lang {
  display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex-shrink: 0;
}
.nav-lang a {
  padding: 5px 9px; font-size: .74rem; font-weight: 650; color: var(--muted);
  text-decoration: none; line-height: 1.5;
}
.nav-lang a[aria-current] { background: var(--ink); color: #fff; }
.nav-signin { font-size: .9rem; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav-signin:hover { color: var(--ink); }
/* Entrées reprises dans le menu déroulant sur petit écran */
.nav-links .only-mobile { display: none; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 9px;
  width: 40px; height: 40px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 17px; height: 1.5px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 17px; height: 1.5px; background: var(--ink);
}
.nav-toggle span::before { top: -5.5px; } .nav-toggle span::after { top: 5.5px; }

/* ═══════ BOUTONS ═══════ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-size: .95rem; font-weight: 650; line-height: 1;
  padding: 14px 24px; border-radius: 10px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(40, 160, 220, .28); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); transform: translateY(-1px); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); background: var(--bg-tint); }
.btn-onDark { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn-onDark:hover { background: rgba(255, 255, 255, .17); }
.btn-sm { padding: 10px 17px; font-size: .87rem; border-radius: 9px; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 650; font-size: .95rem; color: var(--blue-dark); text-decoration: none;
}
.link-arrow::after { content: '→'; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ═══════ HERO ═══════ */

.hero { padding: clamp(52px, 6vw, 88px) 0 clamp(44px, 5vw, 72px); background: var(--white); position: relative; }
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 50% at 15% 0%, rgba(40, 160, 220, .055), transparent 70%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; margin-bottom: 22px; }
.hero .lead { max-width: 60ch; margin-bottom: 32px; }
.hero-cta { margin-bottom: 14px; }
.hero-note { font-size: .85rem; color: var(--faint); }

/* ═══════ FRISE DE PARCOURS ═══════ */

.frieze { margin-top: clamp(40px, 5vw, 64px); }
.frieze-track {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 0;
  border-top: 1px solid var(--line); padding-top: 0;
}
.frieze-step { position: relative; padding: 22px 10px 0 0; }
.frieze-step::before {
  content: ''; position: absolute; top: -4px; left: 0; width: 7px; height: 7px;
  border-radius: 50%; background: var(--blue-line);
}
.frieze-step .n { font-size: .68rem; font-weight: 700; color: var(--faint); letter-spacing: .08em; }
.frieze-step .t { font-size: .82rem; font-weight: 600; color: var(--text); line-height: 1.35; margin-top: 3px; }
.frieze-step.is-human::before { background: var(--accent); width: 11px; height: 11px; top: -6px; }
.frieze-step.is-human { border-top: 2px solid var(--accent); margin-top: -1px; }
.frieze-step.is-human .t { color: var(--ink); font-weight: 700; }
.frieze-step.is-human .n { color: var(--accent); }
.frieze-legend { margin-top: 22px; font-size: .84rem; color: var(--muted); display: flex; align-items: center; gap: 9px; }
.frieze-legend .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ═══════ BANDEAU DE CONFIANCE ═══════ */

.trustbar { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--bg); }
.trustbar .wrap { display: flex; flex-wrap: wrap; gap: 14px 36px; padding-top: 18px; padding-bottom: 18px; align-items: center; }
.trustbar span, .trustbar a { font-size: .86rem; color: var(--muted); text-decoration: none; }
.trustbar a:hover { color: var(--blue-dark); }

/* ═══════ CONSTATS ═══════ */

.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { list-style: none; padding: 22px 0; border-bottom: 1px solid var(--line-soft); display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: start; }
.facts li .num { font-size: .78rem; font-weight: 700; color: var(--blue); letter-spacing: .05em; padding-top: 3px; }
.facts li p { margin: 0; }

/* ═══════ AVANT / AVEC ═══════ */

.shift { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.shift-col { padding: 30px 30px 34px; }
.shift-col + .shift-col { border-left: 1px solid var(--line); background: var(--blue-soft); }
.shift-head { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; color: var(--faint); margin-bottom: 20px; }
.shift-col + .shift-col .shift-head { color: var(--blue-deep); }
.shift ul { list-style: none; }
.shift li { font-size: .93rem; padding: 11px 0 11px 26px; position: relative; border-bottom: 1px solid var(--line-soft); line-height: 1.5; }
.shift li:last-child { border-bottom: none; }
.shift-col + .shift-col li { border-bottom-color: rgba(26, 127, 179, .12); color: var(--ink); }
.shift li::before { content: '·'; position: absolute; left: 6px; top: 9px; color: var(--faint); font-size: 1.3rem; line-height: 1; }
.shift-col + .shift-col li::before { content: '✓'; font-size: .8rem; top: 12px; color: var(--blue); font-weight: 700; }

/* ═══════ LIMITE (décision humaine) ═══════ */

.boundary { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 38px; }
.boundary-card { border-radius: var(--radius); padding: 26px 28px; }
.boundary-card.machine { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.boundary-card.human { background: var(--white); }
.boundary-card.human h3, .boundary-card.human li { color: var(--ink); }
.boundary-card h3 { font-size: 1.02rem; margin-bottom: 16px; }
.boundary-card ul { list-style: none; }
.boundary-card li { font-size: .92rem; padding: 7px 0 7px 20px; position: relative; line-height: 1.5; }
.boundary-card li::before { content: '—'; position: absolute; left: 0; opacity: .45; }
.boundary-card.human li::before { color: var(--accent); opacity: 1; }

/* ═══════ CHAÎNE DU MODÈLE MÉTIER ═══════ */

.chain { max-width: 720px; margin: 0 auto; }
.chain-line {
  position: relative; padding: 0 0 0 34px; margin: 0;
  font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); line-height: 1.5; color: var(--muted);
  border-left: 1px solid var(--line); padding-bottom: 22px; padding-top: 2px;
}
.sec-dark .chain-line { border-left-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .55); }
.chain-line::before {
  content: ''; position: absolute; left: -4px; top: 12px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--line);
}
.sec-dark .chain-line::before { background: rgba(255, 255, 255, .2); }
.chain-line:last-child { border-left-color: transparent; padding-bottom: 0; }
.chain-line b { font-weight: 700; }
.sec-dark .chain-line b { color: #fff; }
.chain-line.is-key::before { background: var(--blue); width: 11px; height: 11px; left: -6px; top: 10px; }
.chain-line.is-final::before { background: var(--accent); width: 11px; height: 11px; left: -6px; top: 10px; }
.chain-line.is-final { color: var(--ink); font-weight: 600; }
.sec-dark .chain-line.is-final { color: #fff; }
.chain-note { margin-top: 26px; padding-left: 34px; font-size: .92rem; color: var(--faint); }
.sec-dark .chain-note { color: rgba(255, 255, 255, .42); }

/* ═══════ CARTES ═══════ */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 28px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { border-color: var(--blue-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .93rem; }
.card .k { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: 12px; }

/* Capacité : problème → réponse → résultat */
.cap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.cap h3 { font-size: 1.05rem; margin-bottom: 14px; }
.cap dl { display: grid; gap: 12px; }
.cap dt { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: 2px; }
.cap dd { font-size: .92rem; line-height: 1.55; }
.cap .res { color: var(--ink); font-weight: 600; }
.cap-obj { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: .8rem; color: var(--faint); }
.cap-obj b { color: var(--blue-dark); font-weight: 650; }

/* ═══════ CAS D'USAGE ═══════ */

.uc { border-top: 1px solid var(--line); padding-top: 38px; margin-top: 46px; scroll-margin-top: 92px; }
.uc:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.uc-head { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; margin-bottom: 26px; }
.uc-steps { list-style: none; counter-reset: s; display: grid; gap: 2px; margin: 22px 0; }
.uc-steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr 132px; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); align-items: baseline; font-size: .93rem; }
.uc-steps li::before { content: counter(s); font-size: .74rem; font-weight: 700; color: var(--faint); }
.actor { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; padding: 3px 8px; border-radius: 5px; justify-self: start; white-space: nowrap; }
.actor-soft { background: var(--bg-tint); color: var(--muted); }
.actor-sys { background: var(--blue-soft); color: var(--blue-deep); }
.actor-human { background: var(--accent-soft); color: #c2325a; }

/* ═══════ ENCARTS ═══════ */

.note { border-left: 3px solid var(--line); padding: 4px 0 4px 20px; font-size: .93rem; color: var(--muted); margin: 20px 0; }
.note.blue { border-color: var(--blue); }
.note.accent { border-color: var(--accent); }
.note b { color: var(--ink); }

.verbatim {
  background: var(--bg-tint); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin: 22px 0; font-size: .87rem; color: var(--muted); font-family: var(--mono);
}
.verbatim b { color: var(--warn); font-family: var(--font); }

.callout { background: var(--blue-soft); border-radius: var(--radius); padding: 26px 28px; }
.callout h3 { margin-bottom: 8px; }

/* ═══════ TABLEAUX ═══════ */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; padding: 13px 16px; background: var(--bg-tint); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tr:last-child td { border-bottom: none; }

/* ═══════ ÉTATS API ═══════ */

.state { display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; padding: 4px 9px; border-radius: 5px; white-space: nowrap; }
.state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.state-ok { background: var(--ok-soft); color: var(--ok); }
.state-ok::before { background: var(--ok); }
.state-wip { background: var(--warn-soft); color: var(--warn); }
.state-wip::before { background: var(--warn); }
.state-ask { background: var(--bg-tint); color: var(--muted); }
.state-ask::before { background: var(--faint); }

/* ═══════ CODE ═══════ */

.code {
  background: #10202c; border-radius: var(--radius); overflow: hidden; margin: 16px 0;
  border: 1px solid rgba(255, 255, 255, .07); max-width: 100%;
}
.code-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.code-head .m { font-size: .68rem; font-weight: 700; letter-spacing: .08em; padding: 3px 7px; border-radius: 4px; background: rgba(40, 160, 220, .18); color: #6ec5ec; flex-shrink: 0; }
.code-head .p { font-family: var(--mono); font-size: .78rem; color: rgba(255, 255, 255, .55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-head .copy { flex-shrink: 0; }
.code-head .copy { margin-left: auto; background: none; border: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .6); font-size: .7rem; font-family: inherit; padding: 4px 10px; border-radius: 6px; cursor: pointer; }
.code-head .copy:hover { color: #fff; border-color: rgba(255, 255, 255, .35); }
.code pre { padding: 16px 18px; overflow-x: auto; margin: 0; }
.code code { font-family: var(--mono); font-size: .8rem; line-height: 1.7; color: #d6e3ec; white-space: pre; }
.code .s { color: #93d2a3; }
.code .k { color: #7cc7ea; }
.code .c { color: #6b8296; }
.code .n { color: #e0b877; }

/* ═══════ SOMMAIRE LATÉRAL ═══════ */

.with-aside { display: grid; grid-template-columns: 208px 1fr; gap: 52px; align-items: start; }
.aside-nav { position: sticky; top: 92px; }
.aside-nav .t { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: 12px; }
.aside-nav ul { list-style: none; }
.aside-nav a { display: block; font-size: .88rem; color: var(--muted); text-decoration: none; padding: 7px 0 7px 13px; border-left: 2px solid var(--line-soft); transition: all .18s; }
.aside-nav a:hover { color: var(--ink); border-left-color: var(--line); }
.aside-nav a.active { color: var(--blue-deep); font-weight: 650; border-left-color: var(--blue); }

/* ═══════ TARIFS ═══════ */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px 32px; }
.plan.feat { border-color: var(--blue); box-shadow: var(--shadow); position: relative; }
.plan.feat::before { content: 'Le plus choisi'; position: absolute; top: -11px; left: 28px; background: var(--blue); color: #fff; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 4px 11px; border-radius: 5px; }
.plan .who { font-size: .93rem; color: var(--muted); min-height: 76px; margin-bottom: 20px; }
.plan .price { font-size: 2.3rem; font-weight: 700; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.plan .price small { font-size: .95rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan .sub { font-size: .82rem; color: var(--faint); margin: 6px 0 22px; }
.plan ul { list-style: none; margin-bottom: 26px; }
.plan li { font-size: .9rem; padding: 8px 0 8px 22px; position: relative; border-bottom: 1px solid var(--line-soft); }
.plan li:last-child { border-bottom: none; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-size: .8rem; font-weight: 700; top: 10px; }

/* ═══════ FAQ ═══════ */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary { padding: 18px 34px 18px 0; cursor: pointer; font-weight: 650; color: var(--ink); font-size: 1rem; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 15px; font-size: 1.4rem; font-weight: 300; color: var(--faint); }
.faq details[open] summary::after { content: '−'; }
.faq .a { padding: 0 40px 20px 0; font-size: .95rem; color: var(--muted); }

/* ═══════ CONVERSION ═══════ */

.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.doors-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-left: auto; margin-right: auto; }
.door { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 26px 24px 28px; display: flex; flex-direction: column; }
.door h3 { font-size: 1.05rem; margin-bottom: 9px; }
.door p { font-size: .9rem; color: rgba(255, 255, 255, .58); margin-bottom: 22px; flex: 1; }
.door .btn { width: 100%; }

/* ═══════ FORMULAIRE ═══════ */

.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 650; color: var(--ink); margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--faint); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: .95rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--white);
  transition: border-color .18s;
}
.field textarea { min-height: 108px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(40, 160, 220, .12); }

/* ═══════ PIED DE PAGE ═══════ */

.foot { background: var(--ink); color: rgba(255, 255, 255, .55); padding: 56px 0 26px; font-size: .89rem; }
.foot-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.foot-brand img { height: 30px; filter: brightness(0) invert(1); opacity: .85; margin-bottom: 16px; }
.foot-brand p { font-size: .88rem; color: rgba(255, 255, 255, .42); max-width: 32ch; line-height: 1.6; }
.foot-col .t { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .3); margin-bottom: 14px; }
.foot-col ul { list-style: none; display: grid; gap: 9px; }
.foot-col a { color: rgba(255, 255, 255, .58); text-decoration: none; font-size: .89rem; }
.foot-col a:hover { color: #fff; }
.foot-bot { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; padding-top: 22px; font-size: .8rem; color: rgba(255, 255, 255, .3); }
.foot-bot a { color: rgba(255, 255, 255, .3); text-decoration: none; }
.foot-bot a:hover { color: rgba(255, 255, 255, .6); }

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

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-signin { display: none; }           /* repris dans le menu déroulant */
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; position: absolute;
    top: 66px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line);
    padding: 12px 18px 18px; gap: 2px; box-shadow: var(--shadow);
  }
  .nav.open .nav-links a { padding: 12px 10px; font-size: 1rem; }
  .nav.open .nav-links .only-mobile {
    display: block; color: var(--muted); font-weight: 500;
    border-top: 1px solid var(--line-soft); margin-top: 6px; padding-top: 14px;
  }
  .nav.open .nav-links .only-mobile + .only-mobile { border-top: none; margin-top: 0; padding-top: 4px; }
  .with-aside { grid-template-columns: 1fr; gap: 0; }
  .aside-nav { position: static; margin-bottom: 34px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .aside-nav ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .aside-nav a { border: 1px solid var(--line); border-radius: 20px; padding: 6px 14px; font-size: .82rem; }
  .aside-nav a.active { background: var(--blue-soft); border-color: var(--blue-line); }
  .frieze-track { grid-template-columns: repeat(4, 1fr); row-gap: 20px; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .doors, .doors-2, .plans, .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .wrap, .wrap-narrow, .nav-in { padding-left: 18px; padding-right: 18px; }

  .grid-2, .grid-3, .grid-4, .doors, .doors-2, .plans, .boundary, .form-row { grid-template-columns: 1fr; }
  .shift { grid-template-columns: 1fr; }
  .shift-col + .shift-col { border-left: none; border-top: 1px solid var(--line); }
  .shift-col { padding: 24px 22px 26px; }
  .frieze-track { grid-template-columns: repeat(2, 1fr); }
  .uc-head { grid-template-columns: 1fr; }
  .uc-steps li { grid-template-columns: 24px 1fr; gap: 10px; }
  .uc-steps .actor { grid-column: 2; margin-top: 4px; }
  .foot-top { grid-template-columns: 1fr; gap: 28px; }
  .plan .who { min-height: 0; }
  .card, .cap, .plan, .callout { padding-left: 22px; padding-right: 22px; }

  /* Les appels à l'action s'empilent et occupent toute la largeur.
     La barre de navigation n'est pas concernée : son bouton reste compact. */
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .btn-row .link-arrow { padding-left: 0 !important; justify-content: flex-start; }
  .chain-note { padding-left: 0; }
  .code code { font-size: .74rem; }
}

@media (max-width: 460px) {
  .nav-in { gap: 10px; }
  .nav-logo img { height: 28px; }
  .nav-lang { display: none; }             /* repris dans le menu déroulant */
  .nav-right .btn-sm { padding: 9px 12px; font-size: .78rem; }
  .frieze-track { grid-template-columns: 1fr 1fr; }
  .aside-nav a { font-size: .78rem; padding: 5px 11px; }
  .wrap, .wrap-narrow, .nav-in { padding-left: 16px; padding-right: 16px; }
  .card, .cap, .plan, .callout, .door { padding-left: 20px; padding-right: 20px; }
  .code pre { padding: 14px; }
}

/* Code court sur fond sombre */
.sec-dark :not(pre) > code, .door :not(pre) > code {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .16);
  color: #9fdcbb;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .nav, .foot, .btn, .aside-nav { display: none; }
}
