/* ==========================================================================
   ciabatti.ch, feuille de style unique.
   Ivoire pour la lecture, marine pour les surfaces d'affichage, laiton en accent.
   Inter auto-hébergée (variable, sous-ensemble latin). Mouvement: docs/motion-system.md.
   ========================================================================== */

@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ivoire: #F6F3EC;
  --ivoire-2: #EFEBE2;
  --marine: #16232F;
  --marine-2: #111C27;
  --texte: #16232F;
  --texte-2: rgba(22, 35, 47, 0.74);
  --texte-3: rgba(22, 35, 47, 0.64);
  --laiton: #9A7B4F;          /* filets, traits, fonds: usage non textuel */
  --laiton-texte: #76592F;    /* texte sur ivoire, 5.85:1 */
  --laiton-clair: #C1A26F;    /* texte sur marine, 6.59:1 */
  --trait: rgba(22, 35, 47, 0.14);

  --d-fast: 240ms;
  --d-slow: 900ms;
  --e-out: cubic-bezier(0.22, 1, 0.36, 1);
  --e-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --e-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gutter: clamp(20px, 5vw, 72px);
  --font: "Inter", system-ui, sans-serif;
}

.surface--dark {
  --ivoire: #16232F;
  --ivoire-2: #111C27;
  --texte: #F6F3EC;
  --texte-2: rgba(246, 243, 236, 0.76);
  --texte-3: rgba(246, 243, 236, 0.62);
  --laiton-texte: #C1A26F;
  --trait: rgba(246, 243, 236, 0.14);
  background: var(--ivoire); color: var(--texte);
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ivoire); scroll-padding-top: 84px; }
body { margin: 0; background: var(--ivoire); color: var(--texte); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 700; color: var(--texte); letter-spacing: -0.025em; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl { margin: 0; }
img { display: block; max-width: 100%; }
::selection { background: var(--laiton); color: #fff; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; background: var(--marine); color: #fff; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--laiton-texte); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 16px var(--gutter);
  background: color-mix(in srgb, var(--ivoire) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color var(--d-fast) var(--e-out);
}
.nav.is-scrolled { border-color: var(--trait); }
.nav__brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; view-transition-name: brand; }
.nav__mark { width: 26px; height: 26px; color: var(--laiton); flex: none; }
.nav__name { font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--texte); }
.nav__links { display: flex; gap: 26px; justify-content: center; font-size: 15px; }
.nav__links a { text-decoration: none; color: var(--texte-2); transition: color var(--d-fast) var(--e-out); white-space: nowrap; }
.nav__links a:hover, .nav__links a.is-current { color: var(--texte); }
.nav__links .nav__contact { color: var(--laiton-texte); font-weight: 500; }
.nav__side { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.nav__lang { display: flex; gap: 8px; }
.nav__lang a { text-decoration: none; color: var(--texte-3); }
.nav__lang a.is-current { color: var(--texte); font-weight: 500; }
.nav__menu { display: none; position: relative; }
.nav__menu summary { list-style: none; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--texte); padding: 6px 0; }
.nav__menu summary::-webkit-details-marker { display: none; }
.nav__menu ul { position: fixed; left: var(--gutter); right: var(--gutter); top: 64px; background: var(--ivoire); border: 1px solid var(--trait); padding: 8px 0; display: grid; box-shadow: 0 12px 32px rgba(22,35,47,0.12); }
.nav__menu li a { display: block; padding: 11px 18px; text-decoration: none; color: var(--texte); font-size: 15px; }
.nav__menu li a.is-current { color: var(--laiton-texte); }

/* ---------- Hero d'accueil ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: repeat(12, 1fr);
  grid-template-areas: "t t t t t t t t t t t t" "b b b b b b f f f f f f";
  column-gap: 24px; row-gap: clamp(28px, 4vw, 48px);
  min-height: calc(100vh - 72px); padding: clamp(40px, 6vh, 72px) var(--gutter) 56px;
}
.hero__title { grid-area: t; font-size: clamp(46px, 8.2vw, 118px); line-height: 0.98; letter-spacing: -0.035em; }
.line { display: block; overflow: hidden; padding: 0.14em 0 0.06em; margin-top: -0.14em; }
.line__in { display: block; }
.hero__body { grid-area: b; align-self: end; max-width: 560px; }
.hero__lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--texte-2); }
.hero__cta { display: flex; align-items: center; gap: 28px; margin-top: 32px; flex-wrap: wrap; }
.hero__figure { grid-area: f; margin: 0; justify-self: end; align-self: end; width: fit-content; }
.hero__caption { margin-top: 12px; font-size: 14px; color: var(--texte-3); }
.hero__scroll { position: absolute; left: var(--gutter); bottom: 20px; font-size: 13px; color: var(--texte-3); }

/* Portrait: cadre marine, halo laiton à l'épaule, silhouette à remplacer par la photographie */
.portrait { position: relative; overflow: hidden; background: var(--marine-2); height: min(44vh, 480px); width: auto; aspect-ratio: 4 / 5; }
.portrait--tall { height: min(60vh, 640px); }
.portrait__halo { position: absolute; inset: -20%; background: radial-gradient(38% 34% at 62% 68%, rgba(154,123,79,0.55) 0%, rgba(154,123,79,0.18) 40%, transparent 72%); }
.portrait__silhouette {
  position: absolute; left: 22%; right: 12%; top: 18%; bottom: 0;
  background: radial-gradient(28% 22% at 50% 12%, rgba(246,243,236,0.46) 0 98%, transparent 100%), radial-gradient(70% 40% at 52% 62%, rgba(246,243,236,0.46) 0 98%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%); mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
}
.portrait__note { position: absolute; left: 18px; bottom: 16px; font-size: 12px; color: rgba(246,243,236,0.62); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pages intérieures: en-tête ---------- */
.page-head { padding: clamp(56px, 9vh, 110px) var(--gutter) clamp(40px, 6vh, 72px); display: grid; grid-template-columns: 7fr 5fr; gap: 24px 48px; align-items: end; }
.page-head h1 { font-size: clamp(40px, 6vw, 84px); letter-spacing: -0.035em; line-height: 1.0; }
.page-head__lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--texte-2); max-width: 46ch; }

/* ---------- Boutons et liens ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 26px; border: 0; border-radius: 2px; font: 500 16px/1 var(--font); text-decoration: none; cursor: pointer; transition: background-color var(--d-fast) var(--e-out), color var(--d-fast), transform 600ms var(--e-spring); }
.btn:active { transform: scale(0.97); transition-duration: var(--d-fast), var(--d-fast), 100ms; }
.btn--primary { background: var(--marine); color: #F6F3EC; }
.btn--primary:hover { background: var(--laiton-texte); color: #F6F3EC; }
.surface--dark .btn--primary { background: #F6F3EC; color: #16232F; }
.surface--dark .btn--primary:hover { background: var(--laiton-clair); color: #16232F; }
.btn[data-magnetic] { transition: background-color var(--d-fast) var(--e-out), color var(--d-fast), transform 350ms var(--e-out); }
.link { position: relative; display: inline-flex; align-items: baseline; gap: 6px; font-weight: 500; text-decoration: none; color: var(--texte); padding-bottom: 3px; }
.link::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%; background: var(--laiton); transform-origin: left; transform: scaleX(0.35); transition: transform var(--d-fast) var(--e-out); }
.link__arrow { display: inline-block; transition: transform var(--d-fast) var(--e-out); font-size: 1.15em; line-height: 1; }
@media (pointer: fine) { .link:hover::after { transform: scaleX(1); } .link:hover .link__arrow { transform: translateX(4px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vh, 140px) var(--gutter); border-top: 1px solid var(--trait); }
.section h2 { font-size: clamp(30px, 3.8vw, 52px); line-height: 1.04; max-width: 16ch; }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: 56px; }
.section__head p { max-width: 48ch; color: var(--texte-2); font-size: 18px; }
.section__foot { margin-top: 48px; }

/* Liste éditoriale */
.rows { display: grid; }
.row { display: grid; grid-template-columns: 160px 1fr 240px; gap: 32px; align-items: start; padding: 40px 0; border-top: 1px solid var(--trait); }
.row:last-child { border-bottom: 1px solid var(--trait); }
.row__index { display: inline-flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; color: var(--laiton-texte); text-transform: uppercase; letter-spacing: 0.08em; padding-top: 6px; }
.row__index::after { content: ""; width: 24px; height: 1.5px; background: var(--laiton); }
.row .row__title { font-size: clamp(21px, 2vw, 26px); letter-spacing: -0.015em; line-height: 1.2; max-width: 24ch; }
.row p { margin-top: 14px; color: var(--texte-2); max-width: 58ch; }
.row p + p { margin-top: 10px; }
.row .link { margin-top: 18px; }
.row__meta { display: grid; gap: 14px; padding-top: 6px; font-size: 14px; }
.row__meta dt { color: var(--texte-3); }
.row__meta dd { margin: 2px 0 0; color: var(--texte); }

/* Grille de cartes sobres */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 48px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.cell { border-top: 1px solid var(--laiton); padding-top: 22px; }
.cell .cell__title { font-size: 21px; letter-spacing: -0.015em; line-height: 1.2; }
.cell p { margin-top: 12px; color: var(--texte-2); max-width: 44ch; }
.cell .link { margin-top: 16px; }

/* Preuve d'œuvre */
.proof { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 64px; align-items: start; }
.proof h2 { max-width: 14ch; }
.proof__list { display: grid; }
.proof__item { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--trait); font-size: 16px; }
.proof__item:last-child { border-bottom: 1px solid var(--trait); }
.proof__kind { color: var(--laiton-clair); font-size: 14px; font-weight: 500; padding-top: 3px; }
.proof__item p { color: var(--texte-2); margin-top: 4px; }
.proof__item strong { font-weight: 600; color: var(--texte); }

/* Fondateur et prose */
.founder { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 64px; align-items: start; }
.founder .portrait { justify-self: start; }
.prose { max-width: 62ch; font-size: 18px; line-height: 1.65; }
.prose p + p { margin-top: 20px; }
.prose h2 + p, .prose h3 + p { margin-top: 16px; }
.prose h2 { font-size: 22px; margin-top: 40px; }
.prose ul { list-style: disc; padding-left: 1.2em; margin-top: 12px; }
.prose li + li { margin-top: 6px; }
.legal { padding: clamp(40px, 6vh, 72px) var(--gutter) clamp(72px, 11vh, 140px); }
.legal .prose h2 { font-size: 24px; }

/* Appel final */
.cta-band { display: grid; grid-template-columns: 7fr 5fr; gap: 24px 48px; align-items: end; }
.cta-band p { color: var(--texte-2); font-size: 18px; max-width: 46ch; margin-top: 16px; }

/* Formulaire */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; align-items: end; max-width: 720px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--texte-2); }
.field--wide { grid-column: 1 / -1; }
.field input, .field textarea { font: 400 16px/1.4 var(--font); padding: 14px; border-radius: 2px; resize: vertical; border: 1px solid var(--trait); background: #fff; color: var(--marine); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--laiton-texte); outline-offset: 0; border-color: transparent; }
.field__hint { color: var(--texte-3); }
.field--hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form__note { grid-column: 1 / -1; font-size: 14px; color: var(--texte-3); max-width: 60ch; }
.form__error { grid-column: 1 / -1; font-size: 15px; color: #8A2E2E; display: none; }
.form.is-error .form__error { display: block; }
.form .btn { grid-column: 1; justify-self: start; }
.btn--state { position: relative; min-width: 190px; }
.btn--state .btn__label { display: none; }
.btn--state[data-state="idle"] [data-idle], .btn--state[data-state="busy"] [data-busy], .btn--state[data-state="done"] [data-done] { display: inline; }
.btn--state[data-state="busy"] { background: var(--texte-3); cursor: progress; }
.btn--state[data-state="done"] { background: transparent; color: var(--texte); box-shadow: inset 0 0 0 1.5px var(--laiton); }

/* Pied de page */
.footer { padding: 48px var(--gutter) 32px; border-top: 1px solid var(--trait); display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px 48px; font-size: 14px; color: var(--texte-2); }
.footer__brand { display: flex; flex-direction: column; gap: 10px; }
.footer__sig { font-style: italic; color: var(--texte-3); }
.footer__head { margin: 0 0 10px; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--texte-3); }
.footer ul { display: grid; gap: 8px; }
.footer a { text-decoration: none; color: var(--texte-2); }
.footer a:hover { color: var(--texte); }
.footer__legal { grid-column: 1 / -1; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--trait); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--texte-3); }
.footer__legal a { color: var(--texte-3); }

/* ---------- Mouvement (CSS, activé par la classe motion-ok posée par le script) ---------- */
@keyframes rise { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes lift { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.motion-ok .line__in { animation: rise var(--d-slow) var(--e-out) both; }
.motion-ok .line:nth-child(2) .line__in { animation-delay: 80ms; }
.motion-ok .line:nth-child(3) .line__in { animation-delay: 160ms; }
.motion-ok .hero__body, .motion-ok .page-head__lead { animation: lift var(--d-slow) var(--e-out) 350ms both; }
.motion-ok .hero .portrait { animation: unveil 1100ms var(--e-inout) 500ms both; }
.motion-ok .hero__caption, .motion-ok .hero__scroll { animation: fade 600ms var(--e-out) 1300ms both; }

.motion-ok .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--d-slow) var(--e-out), transform var(--d-slow) var(--e-out); }
.motion-ok .reveal.is-in { opacity: 1; transform: none; }
.motion-ok .reveal.is-in:nth-child(2) { transition-delay: 80ms; }
.motion-ok .reveal.is-in:nth-child(3) { transition-delay: 160ms; }
.motion-ok .reveal.is-in:nth-child(4) { transition-delay: 240ms; }

/* Parallaxe du portrait, pilotée par le défilement quand le navigateur le sait */
@supports (animation-timeline: scroll()) {
  @keyframes drift { to { transform: translateY(-12%); } }
  .motion-ok .hero__figure { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { grid-template-columns: auto 1fr auto; gap: 12px; }
  .nav__links { display: none; }
  .nav__menu { display: block; }
  .hero { grid-template-areas: "t t t t t t t t t t t t" "f f f f f f f f f f f f" "b b b b b b b b b b b b"; min-height: 0; row-gap: 36px; }
  .hero__figure { justify-self: start; }
  .portrait, .portrait--tall { height: auto; width: min(100%, 320px); }
  .hero__scroll { display: none; }
  .page-head, .section__head, .grid, .grid--3, .proof, .founder, .cta-band, .form { grid-template-columns: 1fr; }
  .section__head { margin-bottom: 40px; }
  .row { grid-template-columns: 1fr; gap: 14px; padding: 32px 0; }
  .row__meta { grid-template-columns: 1fr 1fr; }
  .proof__item { grid-template-columns: 1fr; gap: 6px; }
  .footer { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; } }

/* ---------- Ajouts: classes sans style en ligne, documents, cibles tactiles ---------- */
.proof__lead { margin-top: 16px; color: var(--texte-2); }
.grid--spaced { margin-top: 72px; }
.prose .prose__first { margin-top: 0; }
.h1--doc { font-size: clamp(32px, 4.6vw, 64px) !important; letter-spacing: -0.03em !important; line-height: 1.05 !important; }
.doc__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 32px 64px; align-items: start; }
.doc__meta { font-size: 15px; }
.doc__actions { display: grid; gap: 22px; justify-items: start; }
.doc__cite { font-size: 14px; color: var(--texte-3); max-width: 60ch; line-height: 1.5; }
.doc__cite span { color: var(--texte-2); font-weight: 500; }
.admin { padding: clamp(40px, 6vh, 72px) var(--gutter) clamp(72px, 11vh, 140px); max-width: 860px; }
.admin .form { max-width: none; }
.admin__list { margin-top: 56px; }
.admin__item { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--trait); font-size: 15px; }
.admin__item small { display: block; color: var(--texte-3); }
.admin__ok { margin-top: 24px; padding: 18px; border: 1px solid var(--laiton); font-size: 15px; word-break: break-all; display: none; }
.admin.is-done .admin__ok { display: block; }
.btn--ghost { background: transparent; color: var(--texte); box-shadow: inset 0 0 0 1.5px var(--trait); padding: 10px 14px; font-size: 14px; }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--laiton); }
@media (max-width: 900px) {
  .doc__grid { grid-template-columns: 1fr; }
  .nav__lang a, .footer a, .footer__legal a { display: inline-block; padding: 10px 6px; margin: -10px -6px; min-height: 44px; line-height: 24px; }
  .footer ul { gap: 4px; }
}
.admin .page-head { padding-left: 0; padding-right: 0; } .admin__h2 { font-size: 22px; }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; }
.faq__item { border-top: 1px solid var(--laiton); padding-top: 18px; }
.faq__q { font-size: 19px; letter-spacing: -0.01em; line-height: 1.25; }
.faq__a { margin-top: 10px; color: var(--texte-2); max-width: 52ch; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }
.form__done { max-width: 620px; margin-top: 32px; padding: 32px 0 8px; border-top: 1px solid var(--laiton); outline: none; }
.form__done-mark { display: block; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--laiton); position: relative; margin-bottom: 20px; }
.form__done-mark::after { content: ""; position: absolute; left: 15px; top: 10px; width: 10px; height: 18px; border: solid var(--laiton-texte); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.form__done h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; }
.form__done p { margin-top: 14px; color: var(--texte-2); max-width: 56ch; }
.form__done .link { margin-top: 8px; }
.form[hidden] { display: none; }
/* Ajouts ponctuels; concaténés à base.css par build.sh pour former site.css. */

/* ---------- Accueil: amorce, bandeau défilant, questions ---------- */
.hero { min-height: 0; grid-template-areas: "k k k k k k k k k k k k" "t t t t t t t t t t t t" "b b b b b b f f f f f f"; row-gap: clamp(20px, 3vw, 36px); padding-bottom: 72px; }
.hero__kicker { grid-area: k; display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--laiton-texte); }
.hero__kicker-rule { display: inline-block; width: 34px; height: 1.5px; background: var(--laiton); }
.hero__body { align-self: center; }
.motion-ok .hero__kicker { animation: fade 600ms var(--e-out) 200ms both; }
.motion-ok .hero__kicker-rule { transform-origin: left; animation: growx 900ms var(--e-out) 250ms both; }
@keyframes growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.ticker { overflow: hidden; border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); padding: 14px 0; white-space: nowrap; }
.ticker__track { display: inline-flex; align-items: center; gap: 28px; padding-left: 28px; font-size: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--texte-2); }
.ticker__track i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--laiton); }
.motion-ok .ticker__track { animation: ticker 48s linear infinite; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker:hover .ticker__track { animation-play-state: paused; }

.questions .section__head { margin-bottom: 40px; }
.qlist { display: grid; }
.qlist__item { display: grid; grid-template-columns: 72px 1fr; gap: 24px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--trait); }
.qlist__item:last-child { border-bottom: 1px solid var(--trait); }
.qlist__n { font-size: 13px; font-weight: 500; letter-spacing: 0.12em; color: var(--laiton-clair); }
.qlist__item p { margin: 0; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.25; letter-spacing: -0.015em; color: var(--texte); max-width: 30ch; }

/* Actions sous la preuve d'œuvre */
.section__foot--actions { display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; }
.btn--outline { background: transparent; color: var(--texte); box-shadow: inset 0 0 0 1.5px var(--laiton); }
.btn--outline:hover { background: var(--laiton); color: #16232F; }

@media (max-width: 900px) {
  .hero { grid-template-areas: "k k k k k k k k k k k k" "t t t t t t t t t t t t" "f f f f f f f f f f f f" "b b b b b b b b b b b b"; padding-bottom: 48px; }
  .hero__title { font-size: clamp(44px, 12.5vw, 64px); }
  .portrait, .portrait--tall { width: min(100%, 360px); }
  .hero__cta { gap: 16px 24px; }
  .hero__cta .btn { width: 100%; }
  .ticker__track { font-size: 12px; }
  .qlist__item { grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; }
  .qlist__item p { font-size: 19px; }
  .section__foot--actions .btn { width: 100%; }
}

/* Portrait: l'image remplit toujours son cadre, même quand la hauteur vient du rapport 4:5 */
.portrait picture { position: absolute; inset: 0; display: block; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Pas de parallaxe du portrait sur petit écran: la figure ne doit jamais chevaucher le titre */
@media (max-width: 900px) { .motion-ok .hero__figure { animation: none; } }
@media (max-width: 900px) {
  .hero__figure { width: 100%; }
  .hero .portrait { width: 100%; max-width: none; height: auto; }
  .founder .portrait { width: 100%; height: auto; }
}

/* Navigation mobile: menu et langues alignés à droite, le logo respire */
@media (max-width: 900px) {
  .nav { grid-template-columns: auto 1fr; }
  .nav__side { grid-column: 2; justify-self: end; gap: 22px; }
}

/* Bouton de menu mobile: icône à deux traits laiton devant le mot, qui se croise à l'ouverture */
.nav__menu summary { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0 8px 2px; min-height: 44px; }
.nav__menu summary::before, .nav__menu summary::after { content: ""; display: block; width: 22px; height: 2px; background: var(--laiton); border-radius: 1px; transition: transform var(--d-fast) var(--e-out); }
.nav__menu summary::before { transform: translateY(-4px); }
.nav__menu summary::after { position: absolute; left: 2px; transform: translateY(4px); }
.nav__menu { position: relative; }
.nav__menu summary { position: relative; padding-left: 32px; }
.nav__menu summary::before, .nav__menu summary::after { position: absolute; left: 2px; top: 50%; margin-top: -1px; }
.nav__menu[open] summary::before { transform: rotate(45deg); }
.nav__menu[open] summary::after { transform: rotate(-45deg); }

/* Questions fréquentes en page dédiée: titres de question à taille de lecture, quel que soit leur niveau */
.section .faq__q { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; max-width: none; }

/* Pages de fond: prose large avec encart latéral collant */
.article__grid { display: grid; grid-template-columns: minmax(0, 68ch) 1fr; gap: 32px 72px; align-items: start; }
.prose--article { max-width: 68ch; font-size: 18px; }
.prose--article h2 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; margin-top: 48px; max-width: none; letter-spacing: -0.02em; }
.prose--article h2:first-child { margin-top: 0; }
.prose--article h2 + p { margin-top: 16px; }
.prose--article p + p { margin-top: 18px; }
.article__aside { position: sticky; top: 96px; border-top: 1px solid var(--laiton); padding-top: 18px; font-size: 15px; color: var(--texte-2); max-width: 34ch; }
.article__aside h3 { font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--laiton-texte); margin: 0 0 10px; }
.article__aside p + p { margin-top: 10px; }
.article__aside .btn { margin-top: 16px; }
@media (max-width: 900px) { .article__grid { grid-template-columns: 1fr; } .article__aside { position: static; max-width: none; } }

/* Glossaire: liste d'entrées */
.glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.glossary__item a { display: block; padding: 18px 0; border-top: 1px solid var(--trait); text-decoration: none; color: var(--texte); }
.glossary__item strong { display: block; font-size: 20px; letter-spacing: -0.01em; }
.glossary__item span { display: block; margin-top: 6px; color: var(--texte-2); font-size: 15px; }
.glossary__item a:hover strong { color: var(--laiton-texte); }
@media (max-width: 900px) { .glossary { grid-template-columns: 1fr; } }

/* Presse: portraits téléchargeables */
.press__portraits { grid-template-columns: repeat(2, minmax(0, 360px)); }
.portrait--press { height: auto; width: 100%; max-width: 360px; margin-bottom: 18px; }

/* Errata */
.errata__doc + .errata__doc { margin-top: 56px; }
.errata__v { border-top: 1px solid var(--trait); padding-top: 16px; margin-top: 20px; }
.errata__v h3 { font-size: 16px; font-weight: 600; margin: 0; }
.errata__date { font-weight: 400; color: var(--texte-3); margin-left: 8px; }
.errata__v ul { margin-top: 8px; }

/* Pied de page: ligne sur l'absence de traceurs; formulaire en trois questions */
.footer__trust { grid-column: 1 / -1; font-size: 13px; color: var(--texte-3); margin: 0; padding-top: 8px; border-top: 1px solid var(--trait); }

/* Repères du fondateur */
.prose .marks, .marks { list-style: none; padding-left: 0; margin: 12px 0 0; }
.prose .marks li { margin: 0; }
.marks li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid var(--trait); }
.marks li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 1.5px; background: var(--laiton); }

/* Figures de méthode */
.fig { margin: 40px 0 8px; }
.fig figcaption { margin-top: 12px; font-size: 13px; color: var(--texte-3); }
.fig-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--laiton); border-bottom: 1px solid var(--trait); }
.fig-steps__item { padding: 18px 18px 18px 0; display: grid; gap: 6px; position: relative; }
.fig-steps__item + .fig-steps__item { padding-left: 18px; border-left: 1px solid var(--trait); }
.fig-steps__item + .fig-steps__item::before { content: "\203A"; position: absolute; left: -5px; top: 16px; color: var(--laiton); font-size: 18px; background: var(--ivoire); line-height: 1; }
.fig-steps__n { font-size: 12px; letter-spacing: 0.12em; color: var(--laiton-texte); }
.fig-steps__item strong { font-size: 18px; letter-spacing: -0.01em; }
.fig-steps__out { font-size: 14px; color: var(--texte-2); }
.fig-matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--laiton); }
.fig-matrix__col { padding: 18px 18px 18px 0; }
.fig-matrix__col + .fig-matrix__col { padding-left: 18px; border-left: 1px solid var(--trait); }
.fig-matrix__col strong { display: block; font-size: 17px; margin-bottom: 8px; }
.fig-matrix__col p, .fig-matrix__foot p { margin: 0; font-size: 14px; color: var(--texte-2); }
.fig-matrix__foot { grid-column: 1 / -1; border-top: 1px solid var(--trait); padding: 16px 0; }
.fig-matrix__foot strong { display: block; font-size: 15px; margin-bottom: 6px; }
.fig-matrix__rule { grid-column: 1 / -1; margin: 0; padding: 12px 0; border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); font-size: 14px; color: var(--laiton-texte); }
.fig-scroll { overflow-x: auto; }
.fig-table { width: 100%; border-collapse: collapse; font-size: 14px; border-top: 1px solid var(--laiton); }
.fig-table th, .fig-table td { padding: 12px 14px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--trait); }
.fig-table thead th { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--laiton-texte); font-weight: 500; }
.fig-table tbody th { font-weight: 600; width: 26%; padding-right: 18px; }
.fig-table td + td, .fig-table th + th { padding-left: 14px; }
.fig-table--center td { text-align: center; color: var(--texte-2); }
.fig-table--center td.is-d { color: var(--texte); font-weight: 600; }
.fig-blocs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--trait); border: 1px solid var(--trait); }
.fig-blocs__item { background: var(--ivoire); padding: 16px; display: grid; gap: 4px; font-size: 13px; color: var(--texte-2); min-height: 118px; }
.fig-blocs__n { font-size: 12px; letter-spacing: 0.12em; color: var(--laiton-texte); }
.fig-blocs__item strong { font-size: 15px; color: var(--texte); }
@media (max-width: 900px) {
  .fig-steps, .fig-matrix { grid-template-columns: 1fr; }
  .fig-steps__item + .fig-steps__item, .fig-matrix__col + .fig-matrix__col { padding-left: 0; border-left: 0; border-top: 1px solid var(--trait); }
  .fig-steps__item + .fig-steps__item::before { display: none; }
  .fig-blocs { grid-template-columns: 1fr 1fr; }
  .fig-table { min-width: 560px; }
}

/* Situations types */
.case__steps { display: grid; gap: 14px; margin-top: 12px; }
.case__steps dt { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--laiton-texte); margin-bottom: 4px; }
.case__steps dd { margin: 0; color: var(--texte-2); }
.cases .row__title { margin-bottom: 4px; }
