/* =============================================================
   AL Technologies v2.0 — Design system
   Épuré, éditorial : ivoire, encre, filets fins, beaucoup d'air.
   Cormorant Garamond (titrage + wordmark) × Inter (texte).
   Le Lambda orange est le logo : la seule touche de couleur vive.
   Polygones et frises en trait fin, jamais en aplat.
   ============================================================= */

@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/cormorant-garamond.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap; src: url('../fonts/cormorant-garamond-italic.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-600.woff2') format('woff2'); }

:root {
  --bg:      #f8f6f1;
  --bg-2:    #f1ede5;
  --ink:     #16130f;
  --text:    #2a2520;
  --muted:   #6e675f;
  --faint:   #9a9288;
  --line:    #e2dcd1;
  --gold:    #a88557;
  --lambda:  #f77b00;
  --live:    #4f8a64;

  --on-ink:   #f3efe8;
  --on-ink-2: rgba(243, 239, 232, .62);
  --line-ink: rgba(243, 239, 232, .12);

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Garamond, Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono:  ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --sec-y: clamp(96px, 13vw, 176px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.75; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 2000; background: var(--ink); color: var(--bg); padding: 10px 16px; }
.skip-link:focus { top: 12px; }

/* ---------- Typographie ---------- */
h1, h2, .display {
  font-family: var(--serif); font-weight: 400; color: var(--ink);
  line-height: 1.02; letter-spacing: -.015em; text-wrap: balance;
}
h1.display { font-size: clamp(48px, 6.4vw, 92px); }
h2.display { font-size: clamp(40px, 5.2vw, 72px); }
.display em, h1 em, h2 em { font-style: italic; font-weight: 400; }
h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.2; color: var(--ink); letter-spacing: -.005em; }
p { text-wrap: pretty; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.75; color: var(--muted); max-width: 58ch; margin-top: 32px; }

.label {
  display: block; font-family: var(--sans); font-size: 11.5px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.label b { font-weight: 500; color: var(--gold); margin-right: 14px; }

/* ---------- Mise en page ---------- */
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sec-y); }
.section--rule { border-top: 1px solid var(--line); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section--ink h2, .section--ink h3 { color: var(--on-ink); }
.section--ink .lead, .section--ink p { color: var(--on-ink-2); }
.section--ink .label { color: var(--on-ink-2); }

/* ---------- Liens & boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 50px; padding: 0 28px; background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 500; letter-spacing: .02em; border: 1px solid var(--ink); cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--bg); }
.btn--sm { height: 40px; padding: 0 20px; font-size: 13px; }
.section--ink .btn { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.section--ink .btn:hover { background: transparent; color: var(--on-ink); }

.link {
  display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 4px;
}
.link::after { content: '→'; transition: transform .4s var(--ease); }
.link:hover::after { transform: translateX(4px); }
.section--ink .link { color: var(--on-ink); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; margin-top: 48px; }

/* ---------- Statut ---------- */
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.status--live::before { background: var(--live); box-shadow: 0 0 0 4px rgba(79, 138, 100, .14); }
.status--build::before { background: transparent; box-shadow: inset 0 0 0 1px var(--muted); }

/* ---------- Frise : trait fin en dents de scie ---------- */
.frieze {
  height: 10px; opacity: .85;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10' viewBox='0 0 20 10'%3E%3Cpath d='M0 9.5 5 .5 10 9.5 15 .5 20 9.5' fill='none' stroke='%23a88557' stroke-width='.7'/%3E%3C/svg%3E") repeat-x 0 0 / 20px 10px;
}
.site-footer .frieze { opacity: .45; }
body > .frieze, main > .frieze, article > .frieze { width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wrap) - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Logo : Lambda + « AL Technologies » (une police, une ligne) ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand__lambda { width: auto; height: 22px; flex: none; }
.brand__name { font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1; color: var(--ink); white-space: nowrap; }
.site-footer .brand__name { color: var(--on-ink); }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000; background: rgba(248, 246, 241, .88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .4s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.nav { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav__links { display: flex; align-items: center; gap: 40px; }
.nav__links ul { display: flex; gap: 32px; }
.nav__links ul a { font-size: 13.5px; color: var(--muted); transition: color .3s; }
.nav__links ul a:hover { color: var(--ink); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; cursor: pointer; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 80px 0 auto; flex-direction: column; align-items: flex-start; gap: 28px;
    padding: 12px var(--gutter) 40px; background: var(--bg); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .4s var(--ease);
  }
  .admin-bar .nav__links { top: 126px; }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links ul { flex-direction: column; gap: 0; width: 100%; }
  .nav__links ul li { border-bottom: 1px solid var(--line); }
  .nav__links ul a { display: block; padding: 14px 0; font-family: var(--serif); font-size: 26px; color: var(--ink); }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(150px, 17vw, 200px) 0 0; }
.hero__grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { margin-top: 36px; }
.hero__sub { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.75; color: var(--muted); max-width: 54ch; margin-top: 36px; }
.hero__sign { display: flex; align-items: center; gap: 18px; margin-top: 40px; font-family: var(--serif); font-style: italic; font-size: 23px; color: var(--ink); }
.hero__sign::before { content: ''; width: 40px; height: 1px; background: var(--gold); }
.hero__art { position: relative; aspect-ratio: 1; width: 100%; max-width: 460px; justify-self: end; }
.hero__art canvas { width: 100%; height: 100%; }
.hero__frieze { margin-top: clamp(88px, 10vw, 136px); }
.hero__projects { display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: clamp(24px, 3vw, 40px); }
.hero__projects a { padding: 26px 28px 0 0; display: grid; gap: 10px; align-content: start; transition: opacity .3s; }
.hero__projects a + a { padding-left: 28px; border-left: 1px solid var(--line); }
.hero__projects a:hover { opacity: .6; }
.hero__projects strong { font-family: var(--serif); font-weight: 500; font-size: 25px; color: var(--ink); line-height: 1.2; }
.hero__projects span:last-child { font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 200px; justify-self: start; margin-bottom: -12px; }
  .hero__projects { grid-template-columns: 1fr; }
  .hero__projects a, .hero__projects a + a { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- En-tête de section ---------- */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: clamp(48px, 6vw, 80px); }
.section--ink .sec-head { border-bottom-color: var(--line-ink); }

/* ---------- Mission ---------- */
.mission__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: end; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 56px); margin-top: clamp(80px, 10vw, 128px); }
.principle { border-top: 1px solid var(--ink); padding-top: 26px; }
.principle__num { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold); }
.principle h3 { margin-top: 14px; }
.principle p { color: var(--muted); margin-top: 14px; font-size: 15.5px; }
.facts { border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.facts dt { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.facts dd { font-family: var(--serif); font-size: 20px; line-height: 1.35; color: var(--ink); }
.facts dd a { border-bottom: 1px solid var(--line); transition: border-color .3s; }
.facts dd a:hover { border-color: var(--ink); }
@media (max-width: 900px) { .mission__grid, .principles { grid-template-columns: 1fr; } }

/* ---------- Immersio ---------- */
.product { display: inline-flex; align-items: center; gap: 12px; }
.product__mark { width: 22px; height: 22px; }
.product__name { font-size: 12.5px; font-weight: 600; letter-spacing: .3em; color: var(--ink); }
.immersio__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.immersio__grid h2 { margin-top: 32px; }
.immersio__note a { color: var(--ink); border-bottom: 1px solid var(--line); white-space: nowrap; }
.immersio__note { margin-top: 32px; font-size: 14px; color: var(--muted); max-width: 54ch; line-height: 1.7; }
.branching { width: 100%; }
.branching text { font-family: var(--serif); font-style: italic; font-size: 16px; fill: var(--muted); }
.branching .path-off { stroke: var(--ink); stroke-opacity: .16; }
.branching .path-on { stroke: var(--gold); stroke-dasharray: 700; stroke-dashoffset: 700; }
.branching .node { fill: var(--bg); stroke: var(--ink); stroke-opacity: .35; }
.branching .node--on { fill: var(--ink); stroke: var(--ink); stroke-opacity: 1; }
.is-visible .branching .path-on { transition: stroke-dashoffset 2.6s .3s var(--ease); stroke-dashoffset: 0; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3vw, 48px); margin-top: clamp(88px, 10vw, 136px); }
.feature { border-top: 1px solid var(--ink); padding-top: 26px; }
.feature__num { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--gold); }
.feature h3 { font-size: 23px; margin-top: 12px; }
.feature p { font-size: 15px; color: var(--muted); margin-top: 12px; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 56px; margin-top: clamp(80px, 9vw, 120px); }
.quote blockquote { font-family: var(--serif); font-style: italic; font-size: 27px; line-height: 1.35; color: var(--ink); }
.quote figcaption { margin-top: 18px; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
@media (max-width: 960px) { .immersio__grid { grid-template-columns: 1fr; } .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- Sciences ---------- */
.sciences__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.plot svg { width: 100%; color: var(--ink); }
.plot .plot__poly { stroke-dasharray: 520; stroke-dashoffset: 520; }
.is-visible .plot .plot__poly { transition: stroke-dashoffset 2.8s .2s var(--ease); stroke-dashoffset: 0; }
.plot figcaption { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--muted); margin-top: 18px; }
.disciplines { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(88px, 10vw, 128px); }
.discipline { border-top: 1px solid var(--ink); padding-top: 26px; }
.discipline svg { width: 32px; height: 32px; color: var(--ink); }
.discipline h3 { margin-top: 22px; }
.discipline p { font-size: 15px; color: var(--muted); margin-top: 12px; }
.pledges { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: 72px; }
.pledge h3 { font-size: 23px; }
.pledge p { font-size: 15px; color: var(--muted); margin-top: 10px; max-width: 52ch; }
.pledge a { color: var(--ink); border-bottom: 1px solid var(--line); }
.pilot { margin-top: 80px; padding-top: 44px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.pilot p { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.3; color: var(--ink); max-width: 28ch; }
@media (max-width: 900px) { .sciences__grid, .disciplines, .pledges { grid-template-columns: 1fr; } }

/* ---------- Open source (section sombre) ---------- */
.oss__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.code { border-top: 1px solid var(--on-ink); padding-top: 26px; }
.code__line { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line-ink); }
.code__line code { font-family: var(--mono); font-size: 15px; color: var(--on-ink); white-space: nowrap; overflow-x: auto; }
.code__line code::before { content: '$ '; color: var(--gold); }
.code__copy { flex: none; background: none; border: 0; border-bottom: 1px solid var(--line-ink); color: var(--on-ink-2); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; padding: 2px 0; transition: color .3s; }
.code__copy:hover { color: var(--on-ink); }
.code li { font-size: 14.5px; line-height: 1.6; color: var(--on-ink-2); padding: 12px 0; border-bottom: 1px solid var(--line-ink); }
.code li code { font-family: var(--mono); font-size: 13px; color: var(--on-ink); }
.oss__meta { margin-top: 28px; font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--on-ink-2); }
@media (max-width: 900px) { .oss__grid { grid-template-columns: 1fr; } }

/* ---------- Fondements ---------- */
.research__intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: end; }
.findings { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(72px, 9vw, 112px); }
.finding { border-top: 1px solid var(--ink); padding-top: 28px; }
.finding__num { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: clamp(40px, 4vw, 56px); line-height: 1; color: var(--ink); white-space: nowrap; }
.finding__label { margin-top: 22px; font-size: 15.5px; color: var(--text); }
.finding__source { margin-top: 16px; font-family: var(--serif); font-style: italic; font-size: 16.5px; color: var(--muted); line-height: 1.45; }
.loop { margin-top: clamp(88px, 10vw, 128px); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 0; font-family: var(--serif); font-size: clamp(24px, 3vw, 38px); color: var(--ink); }
.loop li { display: flex; align-items: center; }
.loop li + li::before { content: ''; width: clamp(24px, 5vw, 72px); height: 1px; background: var(--gold); opacity: .6; margin: 0 clamp(14px, 2vw, 26px); }
.loop li:last-child { font-style: italic; }
@media (max-width: 900px) { .research__intro, .findings { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .loop { flex-direction: column; } .loop li + li::before { display: none; } }

/* ---------- À propos ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.about__grid--solo { grid-template-columns: 1fr; max-width: 780px; }
.about__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); }
.about__copy h2 { margin-bottom: 40px; }
.about__copy p { color: var(--muted); margin-top: 20px; max-width: 62ch; }
.about__copy strong { color: var(--ink); font-weight: 500; }
.about__closing { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.6vw, 34px) !important; line-height: 1.3; color: var(--ink) !important; margin-top: 48px !important; }
.about__sign { font-size: 13px !important; letter-spacing: .06em; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } .about__photo { max-width: 320px; } }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__list { border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 24px 0; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: clamp(21px, 2vw, 24px); }
.faq__icon { flex: none; width: 13px; height: 13px; position: relative; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--ink); transition: transform .4s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__item p { padding: 0 48px 28px 0; color: var(--muted); font-size: 15.5px; max-width: 70ch; }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; } .faq__item p { padding-right: 0; } }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.contact__links { margin-top: 48px; display: grid; gap: 20px; justify-items: start; }
.form { display: grid; gap: 30px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.field { display: grid; gap: 4px; }
.field label { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.field__opt { text-transform: none; letter-spacing: 0; color: var(--faint); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 10px 0 12px; font-size: 16px; color: var(--ink); transition: border-color .3s;
}
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2316130f'/%3E%3C/svg%3E") no-repeat right 2px center; padding-right: 24px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form__legal { font-size: 12.5px; color: var(--faint); }
.form__error { font-size: 14px; color: #9b2c1f; border-left: 1px solid #9b2c1f; padding-left: 14px; }
.form__success { font-family: var(--serif); font-style: italic; font-size: 32px; line-height: 1.3; color: var(--ink); padding: 24px 0; }
@media (max-width: 900px) { .contact__grid, .form__row { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-2); padding: clamp(88px, 11vw, 144px) 0 40px; }
.footer__slogan { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(52px, 9vw, 136px); line-height: .98; letter-spacing: -.02em; color: var(--on-ink); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-top: clamp(80px, 10vw, 128px); padding-top: 48px; border-top: 1px solid var(--line-ink); }
.footer__brand p { font-size: 14px; margin-top: 20px; max-width: 34ch; line-height: 1.7; }
.footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer__col a { transition: color .3s; }
.footer__col a:hover { color: var(--on-ink); }
.footer__title { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(243, 239, 232, .4); margin-bottom: 6px; }
.footer__copy { margin-top: 80px; font-size: 12.5px; color: rgba(243, 239, 232, .4); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- Pages internes ---------- */
.page-hero { padding: clamp(150px, 18vw, 200px) 0 clamp(56px, 7vw, 88px); }
.page-hero h1 { font-size: clamp(44px, 6.4vw, 84px); max-width: 16ch; margin-top: 28px; }
.page-hero p { color: var(--muted); margin-top: 24px; max-width: 58ch; font-size: 18px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; letter-spacing: .04em; color: var(--faint) !important; }
.page-hero .meta-line { margin-top: 32px; }

.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 72px 48px; }
.post-card { border-top: 1px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.post-card__thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 8px; }
.post-card__cat { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.post-card__title { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.15; color: var(--ink); }
.post-card__title a { transition: opacity .3s; }
.post-card__title a:hover { opacity: .6; }
.post-card__excerpt { color: var(--muted); font-size: 15px; }
.pagination, .nav-links { display: flex; justify-content: center; gap: 6px; margin-top: 80px; flex-wrap: wrap; }
.page-numbers { min-width: 40px; height: 40px; padding: 0 10px; display: inline-grid; place-items: center; font-size: 14px; color: var(--muted); border-bottom: 1px solid transparent; }
.page-numbers.current { color: var(--ink); border-bottom-color: var(--ink); }
.empty { color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 22px; }

.article-cover { margin-bottom: 72px; }
.article-cover img { width: 100%; max-height: 620px; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: 200px minmax(0, 700px); gap: 80px; justify-content: center; }
.toc { position: sticky; top: 120px; align-self: start; font-size: 13.5px; }
.toc__title { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.toc li { padding: 6px 0; }
.toc li.is-sub { padding-left: 14px; }
.toc a { color: var(--muted); transition: color .3s; }
.toc a:hover { color: var(--ink); }
.toc[hidden] { display: none; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; gap: 40px; } .toc { position: static; } }

.entry-content { font-size: 18px; line-height: 1.8; color: var(--text); }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2 { font-size: clamp(32px, 3.6vw, 44px); margin-top: 1.8em; }
.entry-content h3 { font-size: 26px; margin-top: 1.6em; }
.entry-content a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.entry-content a:hover { text-decoration-color: var(--ink); }
.entry-content ul { padding-left: 0; }
.entry-content ul li { position: relative; padding-left: 26px; }
.entry-content ul li + li { margin-top: .5em; }
.entry-content ul li::before { content: ''; position: absolute; left: 0; top: .9em; width: 12px; height: 1px; background: var(--gold); }
.entry-content ol { list-style: decimal; padding-left: 1.4em; }
.entry-content blockquote { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1.35; color: var(--ink); padding-left: 28px; border-left: 1px solid var(--gold); }
.entry-content figcaption { font-size: 13.5px; color: var(--faint); margin-top: 10px; }
.entry-content code { font-family: var(--mono); font-size: .86em; background: var(--bg-2); padding: 2px 6px; }
.entry-content pre { background: var(--ink); color: var(--on-ink); padding: 24px; overflow-x: auto; font-size: 14px; }
.entry-content pre code { background: none; padding: 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 12px 8px; text-align: left; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.post-nav a { display: grid; gap: 10px; border-top: 1px solid var(--ink); padding-top: 22px; transition: opacity .3s; }
.post-nav a:hover { opacity: .6; }
.post-nav span { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.post-nav strong { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.2; color: var(--ink); }
.post-nav .is-next { text-align: right; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav .is-next { text-align: left; } }

.cta-band { margin-top: clamp(80px, 10vw, 128px); padding-top: 56px; border-top: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(34px, 4vw, 52px); }
.cta-band p { color: var(--muted); margin-top: 14px; max-width: 48ch; }

/* ---------- Landing page ---------- */
.lp-points { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 40px; font-size: 13.5px; color: var(--muted); }
.lp-points li::before { content: '—  '; color: var(--gold); }

/* =============================================================
   Formations & bilan de compétences
   Même grammaire que le reste du site : filets fins, serif en titrage,
   une seule couleur d'accent (l'or) ; aucune ombre, aucun aplat criard.
   ============================================================= */
.f-hero { padding-bottom: clamp(48px, 6vw, 72px); }
.f-hero .label a { border-bottom: 1px solid var(--line); transition: border-color .3s; }
.f-hero .label a:hover { border-color: var(--ink); }
.f-hero .label span { margin: 0 8px; color: var(--faint); }
.page-hero h1.f-hero__title { font-size: clamp(40px, 5.4vw, 72px); max-width: 20ch; margin-top: 28px; }
.page-hero p.label { font-size: 11.5px; margin-top: 0; }
.page-hero .f-hero__tagline, .f-hero__tagline { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.3; color: var(--ink); margin-top: 20px; }
.f-hero__tagline em { font-style: italic; }
.page-hero p.f-hero__intro { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.75; max-width: 64ch; }
.f-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--ink); }
.f-facts div { padding: 18px 24px 0 0; }
.f-facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.f-facts dt { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.f-facts dd { font-family: var(--serif); font-size: 21px; line-height: 1.3; color: var(--ink); margin-top: 8px; }
@media (max-width: 720px) { .f-facts div + div { padding-left: 0; border-left: 0; } .f-facts div { border-bottom: 1px solid var(--line); padding: 14px 0; } }

.f-h2.display { font-size: clamp(34px, 4vw, 56px); }
.f-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.f-split--head { align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.f-split--head .lead { margin-top: 0; font-size: 16px; }
.f-objectives { border-top: 1px solid var(--ink); }
.f-objectives li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--text); }
.f-objectives__n { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--gold); line-height: 1.5; }
.f-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 5vw, 80px); }
.f-cols--3 { grid-template-columns: repeat(3, 1fr); }
.f-cols h3 { border-top: 1px solid var(--ink); padding-top: 22px; margin-bottom: 16px; }
.f-list li { position: relative; padding-left: 24px; color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.f-list li + li { margin-top: 10px; }
.f-list li::before { content: ''; position: absolute; left: 0; top: .85em; width: 12px; height: 1px; background: var(--gold); }
.f-ethics { margin-top: clamp(48px, 6vw, 72px); padding: 28px 0 0; border-top: 1px solid var(--line); font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 24px); line-height: 1.45; color: var(--ink); max-width: 62ch; }
@media (max-width: 900px) { .f-split, .f-cols, .f-cols--3 { grid-template-columns: 1fr; } }

.f-phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); margin: clamp(48px, 6vw, 72px) 0 clamp(56px, 7vw, 88px); }
.f-phases li { border-top: 1px solid var(--ink); padding-top: 24px; }
.f-phases__n { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold); }
.f-phases h3 { margin-top: 12px; }
.f-phases p { color: var(--muted); font-size: 15.5px; margin-top: 12px; }
.f-modules { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--ink); }
.f-module { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 5vw, 80px); padding: 28px 0; border-bottom: 1px solid var(--line); }
.f-module__head { display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; align-content: start; }
.f-module__n { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--gold); line-height: 1.3; }
.f-module h3 { font-size: 24px; }
.f-module__dur { grid-column: 2; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }
@media (max-width: 900px) { .f-phases, .f-module { grid-template-columns: 1fr; } }

/* ---- Formules ---- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.plans--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--bg); padding: clamp(28px, 3.4vw, 44px); }
.plan--featured { border-color: var(--ink); }
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.plan__name { font-size: clamp(28px, 2.6vw, 34px); font-weight: 400; }
.plan__badge { display: inline-block; font-family: var(--sans); font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); border: 1px solid currentColor; padding: 5px 10px; line-height: 1; white-space: nowrap; }
.plan__summary { color: var(--muted); font-size: 15.5px; margin-top: 12px; min-height: 3.3em; }
.plan__price { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.plan__amount { font-family: var(--serif); font-size: clamp(44px, 4.4vw, 60px); line-height: 1; color: var(--ink); font-variant-numeric: lining-nums; letter-spacing: -.01em; }
.plan__amount--quote { font-size: clamp(34px, 3.4vw, 44px); font-style: italic; }
.plan__tax { font-size: 13px; font-weight: 500; letter-spacing: .12em; color: var(--muted); margin-left: 4px; }
.plan__alt { font-size: 13px; color: var(--faint); margin-top: 8px; }
.plan__duration { margin-top: 20px; font-size: 13.5px; color: var(--ink); font-weight: 500; }
.plan__features { margin: 20px 0 32px; flex: 1; }
.plan__features li { position: relative; padding: 10px 0 10px 26px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.55; color: var(--text); }
.plan__features li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 9px; height: 5px; border-left: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: rotate(-45deg); }
.plan__cta { width: 100%; }
@media (max-width: 900px) { .plans, .plans--3 { grid-template-columns: 1fr; } .plan__summary { min-height: 0; } }

.compare-wrap { margin-top: clamp(56px, 7vw, 88px); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.compare thead th { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--ink); text-align: center; padding: 0 12px 16px; border-bottom: 1px solid var(--ink); }
.compare tbody th { text-align: left; font-weight: 400; color: var(--text); padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); }
.compare td { text-align: center; padding: 14px 12px; border-bottom: 1px solid var(--line); color: var(--ink); width: 22%; }
.compare__yes { color: var(--gold); font-size: 17px; }
.compare__no { color: var(--faint); }

.f-sessions { margin-top: clamp(56px, 7vw, 88px); padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px clamp(40px, 6vw, 96px); }
.f-sessions h3 { grid-row: span 3; }
.f-sessions ul li { font-family: var(--serif); font-size: 21px; color: var(--ink); padding: 6px 0; }
.f-sessions p { color: var(--muted); font-size: 15px; }
.f-note { font-size: 13.5px !important; color: var(--faint) !important; }
@media (max-width: 900px) { .f-sessions { grid-template-columns: 1fr; } .f-sessions h3 { grid-row: auto; } }

.f-practical { border-top: 1px solid var(--ink); }
.f-practical div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.f-practical dt { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); padding-top: 4px; }
.f-practical dd { color: var(--text); max-width: 72ch; font-size: 15.5px; }
@media (max-width: 720px) { .f-practical div { grid-template-columns: 1fr; gap: 6px; } }

/* ---- Catalogue ---- */
.catalog-bilan { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: end; }
.catalog-bilan h2 a { transition: opacity .3s; }
.catalog-bilan h2 a:hover { opacity: .6; }
.catalog-formulas { border-top: 1px solid var(--ink); }
.catalog-formulas a { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease); }
.catalog-formulas a:hover { padding-left: 8px; }
.catalog-formulas__name { font-family: var(--serif); font-size: 28px; color: var(--ink); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.catalog-formulas__meta { grid-column: 1; font-size: 13.5px; color: var(--muted); }
.catalog-formulas__price { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--serif); font-size: 26px; color: var(--ink); white-space: nowrap; }
.catalog { margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--ink); }
.catalog__item a { display: grid; grid-template-columns: 56px minmax(0, 1fr) 220px 24px; gap: 24px; align-items: start; padding: 32px 0; border-bottom: 1px solid var(--line); transition: background .4s var(--ease); }
.catalog__item a:hover { background: var(--bg-2); }
.catalog__item a:hover .catalog__arrow { transform: translateX(4px); }
.catalog__n { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold); padding-left: 4px; }
.catalog__body { display: grid; gap: 8px; }
.catalog__kicker { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.catalog__title { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; color: var(--ink); }
.catalog__excerpt { color: var(--muted); font-size: 15px; max-width: 62ch; }
.catalog__meta { display: grid; gap: 6px; font-size: 13.5px; color: var(--text); padding-top: 4px; }
.catalog__meta small { color: var(--faint); font-size: 12px; }
.catalog__arrow { font-size: 18px; color: var(--ink); padding-top: 2px; transition: transform .4s var(--ease); }
@media (max-width: 900px) {
  .catalog-bilan { grid-template-columns: 1fr; }
  .catalog__item a { grid-template-columns: 40px minmax(0, 1fr); }
  .catalog__meta { grid-column: 2; }
  .catalog__arrow { display: none; }
}

/* ---- Inscription ---- */
.order-hero { padding-bottom: clamp(24px, 3vw, 40px); }
.order-section { padding-top: clamp(32px, 4vw, 56px); }
.order { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.order__form { gap: 0; }
.order__block { border: 0; border-top: 1px solid var(--ink); padding: 26px 0 40px; display: grid; gap: 26px; min-width: 0; }
.order__legend { float: left; width: 100%; font-family: var(--serif); font-size: 26px; color: var(--ink); display: flex; align-items: baseline; gap: 14px; }
.order__form { counter-reset: step; }
.order__block { counter-increment: step; }
.order__legend::before { content: counter(step) '.'; font-style: italic; font-size: 19px; color: var(--gold); min-width: 18px; }
.order__legend + * { clear: both; }
.form__row--3 { grid-template-columns: 1fr 1.4fr 1fr; }
.field__err { font-size: 13px; color: #9b2c1f; margin-top: 4px; }
.field [aria-invalid="true"] { border-bottom-color: #9b2c1f; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choices--stack { grid-template-columns: 1fr; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.choice__body { display: grid; gap: 4px; height: 100%; padding: 18px 20px 18px 50px; border: 1px solid var(--line); transition: border-color .3s var(--ease), background .3s var(--ease); position: relative; }
.choice__body::before { content: ''; position: absolute; left: 20px; top: 22px; width: 14px; height: 14px; border: 1px solid var(--muted); border-radius: 50%; }
.choice__body strong { font-weight: 500; color: var(--ink); font-size: 15.5px; }
.choice__body span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.choice:hover .choice__body { border-color: var(--muted); }
.choice input:checked + .choice__body { border-color: var(--ink); background: var(--bg-2); }
.choice input:checked + .choice__body::before { border-color: var(--ink); box-shadow: inset 0 0 0 3px var(--bg-2), inset 0 0 0 8px var(--ink); }
.choice input:focus-visible + .choice__body { outline: 1px solid var(--ink); outline-offset: 3px; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: start; font-size: 14.5px; color: var(--text); line-height: 1.6; cursor: pointer; }
.check input { appearance: none; width: 18px; height: 18px; margin-top: 3px; border: 1px solid var(--muted); background: transparent; cursor: pointer; display: grid; place-items: center; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ''; width: 8px; height: 4px; border-left: 1.5px solid var(--bg); border-bottom: 1.5px solid var(--bg); transform: translateY(-1px) rotate(-45deg); }
.check input[aria-invalid="true"] { border-color: #9b2c1f; }
.check a { color: var(--ink); border-bottom: 1px solid var(--line); }
.order__info { display: grid; gap: 20px; }
.order__info p { font-size: 15px; color: var(--muted); line-height: 1.7; }
.order__info strong { color: var(--ink); font-weight: 500; }
.order__consent { border-top: 1px solid var(--ink); padding-top: 26px; display: grid; gap: 8px; }
.order__form .order__submit { justify-self: stretch; width: 100%; margin-top: 32px; height: 56px; }
.order__form .form__legal { margin-top: 18px; }
.order__form .form__legal a { border-bottom: 1px solid var(--line); }
.order__form > .form__error { margin-bottom: 32px; }
.order__summary { position: sticky; top: 112px; }
/* Particulier / entreprise : bascule en CSS pur (fonctionne sans JavaScript) */
.order:has(input[name="buyer"][value="particulier"]:checked) [data-for="entreprise"],
.order:has(input[name="buyer"][value="entreprise"]:checked) [data-for="particulier"] { display: none; }
@media (max-width: 960px) { .order { grid-template-columns: 1fr; } .order__summary { position: static; order: -1; } }
@media (max-width: 640px) { .choices, .form__row--3 { grid-template-columns: 1fr; } }

.summary { border: 1px solid var(--line); padding: clamp(24px, 3vw, 36px); background: var(--bg); }
.summary__title { font-family: var(--serif); font-size: 28px; line-height: 1.2; color: var(--ink); margin-top: 16px; }
.summary__formula { font-size: 14px; color: var(--muted); margin-top: 6px; }
.summary__lines { margin-top: 24px; border-top: 1px solid var(--line); }
.summary__lines div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary__lines dt { color: var(--muted); }
.summary__lines dd { color: var(--ink); text-align: right; }
.summary__lines small { color: var(--faint); }
.summary__lines div[hidden] { display: none; }
.summary__total { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 16px; padding: 20px 0 8px; }
.summary__total span { font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.summary__total strong { font-family: var(--serif); font-weight: 400; font-size: 34px; color: var(--ink); white-space: nowrap; }
.summary__total small { grid-column: 2; text-align: right; font-size: 12.5px; color: var(--faint); }
.summary__steps { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); counter-reset: st; display: grid; gap: 10px; }
.summary__steps li { counter-increment: st; display: grid; grid-template-columns: 26px 1fr; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.summary__steps li::before { content: counter(st) '.'; font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 16px; line-height: 1.3; }
.summary__foot { margin-top: 24px; }

/* ---- Confirmation ---- */
.thanks__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.thanks__h2 { font-family: var(--sans); font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 48px; }
.thanks__steps { margin-top: 16px; border-top: 1px solid var(--ink); counter-reset: st; }
.thanks__steps li { counter-increment: st; display: grid; grid-template-columns: 40px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15.5px; }
.thanks__steps li::before { content: counter(st, lower-roman) '.'; font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 18px; }
.thanks__steps strong { color: var(--ink); font-weight: 500; }
.thanks__steps a { color: var(--ink); border-bottom: 1px solid var(--line); }
@media (max-width: 960px) { .thanks__grid { grid-template-columns: 1fr; } }

/* ---- Document contractuel (écran + impression) ---- */
.doc-body { background: var(--bg-2); }
.doc { max-width: 860px; margin: 0 auto; padding: 32px var(--gutter) 96px; background: var(--bg); color: var(--text); font-size: 14.5px; line-height: 1.65; }
.doc__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.doc__head { padding: 40px 0 24px; }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; color: var(--ink); margin-top: 16px; }
.doc__basis { color: var(--muted); margin-top: 10px; font-size: 13.5px; }
.doc__parties { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 24px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.doc h3 { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.doc__role { font-style: italic; color: var(--faint); margin-top: 6px; }
.doc h2 { font-family: var(--serif); font-weight: 500; font-size: 21px; color: var(--ink); margin: 28px 0 8px; }
.doc p + p { margin-top: 8px; }
.doc a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); word-break: break-word; }
.doc__offer { font-size: 16px; margin-top: 8px; }
.doc__table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.doc__table th { width: 180px; text-align: left; vertical-align: top; font-weight: 500; color: var(--ink); padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); }
.doc__table td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.doc__table ul { list-style: disc; padding-left: 18px; }
.doc__missing { background: #fbe9c8; color: #7a4b00; padding: 0 4px; }
.doc__sign { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--ink); }
.doc__sigbox { height: 90px; border: 1px dashed var(--line); margin-top: 8px; }
.doc__meta { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
@media (max-width: 640px) { .doc__parties { grid-template-columns: 1fr; } .doc__table th { width: 120px; } }
@media print {
  @page { size: A4; margin: 16mm 14mm; }
  .doc-body { background: #fff; }
  .doc { padding: 0; max-width: none; font-size: 10.5pt; }
  .doc__bar .btn, #wpadminbar { display: none !important; }
  .doc h2 { break-after: avoid; }
  .doc__table tr, .doc__sign { break-inside: avoid; }
  .doc__missing { background: none; }
  .doc a { text-decoration: none; }
}

/* ---------- Apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .branching .path-on, .plot .plot__poly { stroke-dashoffset: 0 !important; }
}

/* ---------- WordPress ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.alignwide { margin-inline: calc(-1 * clamp(0px, 6vw, 80px)); }
.alignfull { margin-inline: calc(50% - 50vw); }
.wp-caption-text { font-size: 13.5px; color: var(--faint); }
