/* =========================================================================
   Baobab Labs — feuille de style institutionnelle
   Palette et typographie conformes à la charte de marque.
   ========================================================================= */

/* ---------- Polices auto-hébergées (sous-ensembles latin / latin-ext) ---- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.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;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/unbounded-latin.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;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/unbounded-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Jetons de design --------------------------------------------- */
:root {
  --indigo-deep: #170B3B;
  --indigo: #2D1B69;
  --lavender: #CFC4F5;
  --gold: #E8B14E;
  --offwhite: #F7F3EC;

  --display: 'Unbounded', 'Space Grotesk', system-ui, sans-serif;
  --body: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --shell: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --band: clamp(5rem, 9vw, 7.25rem);
  --radius: 14px;

  --ease: cubic-bezier(.22, .61, .36, 1);

  /* zone sombre par défaut */
  --bg: var(--indigo-deep);
  --surface: rgba(247, 243, 236, .05);
  --surface-hi: rgba(247, 243, 236, .08);
  --line: rgba(207, 196, 245, .16);
  --line-soft: rgba(207, 196, 245, .09);
  --text: var(--offwhite);
  --muted: rgba(247, 243, 236, .64);
  --faint: rgba(247, 243, 236, .56);
  --accent: var(--lavender);
  color-scheme: dark;
}

[data-zone='light'] {
  --bg: var(--offwhite);
  --surface: #fff;
  --surface-hi: #fff;
  --line: rgba(23, 11, 59, .13);
  --line-soft: rgba(23, 11, 59, .07);
  --text: var(--indigo-deep);
  --muted: rgba(23, 11, 59, .68);
  --faint: rgba(23, 11, 59, .62);
  --accent: var(--indigo);
}

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

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

body {
  margin: 0;
  background: var(--indigo-deep);
  color: var(--offwhite);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--lavender); color: var(--indigo-deep); }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--lavender);
  color: var(--indigo-deep);
  padding: .75rem 1.25rem;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Primitives de mise en page ----------------------------------- */
.zone {
  background: var(--bg);
  color: var(--text);
  position: relative;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: var(--band); }

/* Deux bandes de même teinte qui se suivent : un filet marque la césure
   plutôt qu'un vide de deux fois le rembourrage. */
.zone + .zone.band:not([data-zone]) { border-top: 1px solid var(--line-soft); }
[data-zone='light'] + .zone.band { border-top: 0; }

.rule {
  height: 1px;
  background: var(--line-soft);
  border: 0;
  margin: 0;
}

/* ---------- Typographie -------------------------------------------------- */
h1, h2, h3 { margin: 0; font-weight: 900; }

.display {
  font-family: var(--display);
  font-size: clamp(2.2rem, 1.3rem + 3.5vw, 3.55rem);
  line-height: .99;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 1.05rem + 2.6vw, 2.75rem);
  line-height: 1.06;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.h3 {
  font-family: var(--body);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.eyebrow {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0;
  display: flex;
  align-items: center;
  gap: .7rem;
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: none;
  opacity: .7;
}

.lede {
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
  margin: 0;
}

p { margin: 0; }
.stack > * + * { margin-top: 1.15rem; }

/* ---------- En-tête ------------------------------------------------------ */
.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background .35s var(--ease), border-color .35s var(--ease),
    backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}

.masthead.is-stuck {
  background: rgba(23, 11, 59, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: rgba(207, 196, 245, .13);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--offwhite);
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
  background: var(--lavender);
  -webkit-mask: url('../img/logo-baobab.svg') center / contain no-repeat;
  mask: url('../img/logo-baobab.svg') center / contain no-repeat;
  transition: transform .5s var(--ease);
}

[data-zone='light'] .brand__mark { background: var(--indigo); }

.brand:hover .brand__mark { transform: translateY(-2px) scale(1.03); }

.brand__name {
  font-family: var(--display);
  font-weight: 900;
  font-size: .95rem;
  letter-spacing: -.02em;
  line-height: 1;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.6vw, 2.25rem);
}

.nav__link {
  font-size: .875rem;
  font-weight: 500;
  color: rgba(247, 243, 236, .68);
  text-decoration: none;
  transition: color .25s var(--ease);
}

.nav__link:hover { color: var(--offwhite); }

@media (max-width: 720px) {
  .nav__link[data-optional] { display: none; }
}

/* ---------- Boutons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background .25s var(--ease), border-color .25s var(--ease),
    color .25s var(--ease), transform .25s var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn svg { width: 14px; height: 14px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--solid { background: var(--lavender); color: var(--indigo-deep); font-weight: 700; }
.btn--solid:hover { background: #ded6f8; }

.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); background: var(--surface-hi); }

[data-zone='light'] .btn--solid { background: var(--indigo); color: var(--offwhite); }
[data-zone='light'] .btn--solid:hover { background: #3b2585; }

/* ---------- Hero --------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(8.5rem, 16vh, 11.5rem);
  padding-bottom: clamp(5.5rem, 11vh, 8rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: .55;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 46% at 18% 8%, rgba(45, 27, 105, .85), transparent 68%),
    radial-gradient(46% 40% at 88% 26%, rgba(207, 196, 245, .1), transparent 70%),
    linear-gradient(180deg, transparent 55%, var(--indigo-deep) 100%);
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
}

@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.hero__title { margin-top: 1.6rem; }

.hero__title em {
  font-style: normal;
  color: var(--lavender);
}

.hero__lede { margin-top: 1.75rem; }

.hero__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.hero__art {
  position: relative;
  display: grid;
  place-items: center;
}

.hero__art .mark-xl {
  width: min(100%, 360px);
  aspect-ratio: 1;
  background: var(--lavender);
  -webkit-mask: url('../img/logo-baobab.svg') center / contain no-repeat;
  mask: url('../img/logo-baobab.svg') center / contain no-repeat;
  opacity: .9;
  filter: drop-shadow(0 26px 64px rgba(207, 196, 245, .18));
}

@media (max-width: 940px) {
  .hero__art { margin-top: 1rem; }
  .hero__art .mark-xl { width: min(62%, 220px); opacity: .8; }
}

.mark-sm {
  width: 30px;
  height: 30px;
  flex: none;
  background: currentColor;
  -webkit-mask: url('../img/logo-baobab.svg') center / contain no-repeat;
  mask: url('../img/logo-baobab.svg') center / contain no-repeat;
}

/* ---------- Bandeau de repères ------------------------------------------- */
.facts {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 860px) { .facts__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .facts__grid { grid-template-columns: 1fr; } }

.fact {
  padding: 1.9rem clamp(1rem, 2.4vw, 1.75rem);
  border-left: 1px solid var(--line-soft);
}

.fact:first-child { border-left: 0; padding-left: 0; }

@media (max-width: 860px) {
  .fact { border-left: 0; border-top: 1px solid var(--line-soft); padding-left: 0; }
  .fact:first-child, .fact:nth-child(2) { border-top: 0; }
  .fact:nth-child(-n+2) { padding-top: 0; }
}
@media (max-width: 460px) {
  .fact:nth-child(2) { border-top: 1px solid var(--line-soft); padding-top: 1.9rem; }
}

.fact__label {
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 .6rem;
}

.fact__value {
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--text);
  margin: 0;
  font-weight: 500;
}

.fact__value small {
  display: block;
  font-size: .8125rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .01em;
  margin-top: .25rem;
}

/* ---------- Grille de section -------------------------------------------- */
.section-head {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr);
  align-items: start;
}

@media (max-width: 780px) { .section-head { grid-template-columns: 1fr; } }

.section-head .eyebrow { padding-top: .55rem; }

/* ---------- Principes ---------------------------------------------------- */
.principles {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

.principle {
  background: var(--surface-hi);
  padding: clamp(1.75rem, 3.4vw, 2.5rem);
  transition: background .3s var(--ease);
}

[data-zone='light'] .principle { background: #fff; }
.principle:hover { background: var(--surface); }
[data-zone='light'] .principle:hover { background: #fffdf9; }

.principle__no {
  font-family: var(--display);
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--accent);
  opacity: .85;
  margin: 0 0 1.1rem;
}

.principle .h3 { margin-bottom: .75rem; }

.principle p {
  color: var(--muted);
  font-size: .9688rem;
  line-height: 1.6;
}

/* ---------- Domaines d'ingénierie ---------------------------------------- */
.domains {
  margin-top: clamp(3rem, 6vw, 4rem);
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.domain {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.domain h3 {
  font-family: var(--body);
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: -.005em;
  margin-bottom: .4rem;
}

.domain p {
  font-size: .875rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Produits ----------------------------------------------------- */
.products {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  display: grid;
  gap: clamp(1.25rem, 2.6vw, 1.75rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) { .products { grid-template-columns: 1fr; } }

.product {
  --tint: var(--indigo);
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3.4vw, 2.5rem);
  overflow: hidden;
  transition: border-color .35s var(--ease), transform .35s var(--ease),
    box-shadow .35s var(--ease);
}

.product::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--tint);
}

.product::after {
  content: '';
  position: absolute;
  right: -30%;
  top: -40%;
  width: 62%;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--tint), transparent 68%);
  opacity: .13;
  pointer-events: none;
  transition: opacity .45s var(--ease);
}

.product:hover {
  border-color: color-mix(in srgb, var(--tint) 55%, transparent);
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -22px color-mix(in srgb, var(--tint) 55%, transparent);
}

.product:hover::after { opacity: .22; }

.product--vendly { --tint: var(--gold); }
.product--muna { --tint: var(--lavender); }

.product__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.product__tag {
  font-size: .6875rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}

.product__status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .3rem .7rem;
}

.product__status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tint);
}

.product__name {
  font-family: var(--display);
  font-size: clamp(1.9rem, 1.3rem + 1.9vw, 2.6rem);
  line-height: 1;
  letter-spacing: -.035em;
  margin: 0 0 1rem;
}

.product__desc {
  color: var(--muted);
  font-size: .9688rem;
  line-height: 1.62;
  margin: 0;
}

.product__list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: .7rem;
}

.product__list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: .9063rem;
  line-height: 1.5;
  color: var(--text);
}

.product__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tint);
}

.product__foot { margin-top: auto; padding-top: 2rem; }

.product__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .9375rem;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid color-mix(in srgb, var(--tint) 60%, transparent);
  padding-bottom: .2rem;
  transition: gap .3s var(--ease), border-color .3s var(--ease);
}

.product__link:hover { gap: .8rem; border-bottom-color: var(--tint); }
.product__link svg { width: 14px; height: 14px; }

/* ---------- Contact ------------------------------------------------------ */
.contact__grid {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: start;
}

@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

.channels { display: grid; gap: 1px; background: var(--line-soft); border-block: 1px solid var(--line-soft); }

.channel {
  position: relative;
  background: var(--bg);
  display: grid;
  gap: .35rem;
  padding: 1.4rem 0;
  text-decoration: none;
  color: var(--text);
  transition: padding-inline .35s var(--ease);
}

a.channel:hover { padding-inline: .65rem; }

.channel__label {
  font-size: .6875rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--faint);
}

.channel__value {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -.01em;
  word-break: break-word;
}

.channel__value small {
  display: block;
  font-size: .8125rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: .15rem;
}

.channel__arrow {
  position: absolute;
  right: 0;
  top: 1.7rem;
  width: 14px;
  height: 14px;
  color: var(--faint);
  transition: transform .3s var(--ease), color .3s var(--ease);
}

a.channel:hover .channel__arrow { transform: translate(2px, -2px); color: var(--accent); }

/* ---------- Formulaire --------------------------------------------------- */
.form {
  display: grid;
  gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.2vw, 2.25rem);
}

.form__row { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: .45rem; }

.field label {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field textarea {
  font: inherit;
  font-size: .9375rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: .75rem .9rem;
  width: 100%;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}

.field textarea { resize: vertical; min-height: 8rem; }

.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-hi);
}

.form__hp { position: absolute; left: -9999px; }

.form__note { font-size: .8125rem; color: var(--faint); line-height: 1.5; }

.form__submit { justify-self: start; }

/* ---------- Pied de page ------------------------------------------------- */
.footer { border-top: 1px solid var(--line-soft); padding-block: clamp(3.5rem, 7vw, 5rem) 2.5rem; }

.footer__top {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, .9fr));
}

@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }

.footer__intro p {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: .9063rem;
  max-width: 34ch;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.6rem;
}

.social a {
  display: inline-flex;
  align-items: center;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .42rem .9rem;
  transition: color .25s var(--ease), border-color .25s var(--ease),
    background .25s var(--ease);
}

.social a:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--surface-hi);
}

.footer__colhead {
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 1.1rem;
  font-weight: 500;
}

.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }

.footer__list a {
  font-size: .9063rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .25s var(--ease);
}

.footer__list a:hover { color: var(--text); }

.legal {
  margin-top: clamp(3rem, 6vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}

.legal__id {
  font-size: .8125rem;
  line-height: 1.75;
  color: var(--muted);
  font-style: normal;
  margin: 0;
}

.legal__id strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  letter-spacing: .01em;
  margin-bottom: .2rem;
}

.legal__id span { display: block; }

.legal__meta { font-size: .8125rem; color: var(--muted); text-align: right; line-height: 1.75; }
@media (max-width: 560px) { .legal__meta { text-align: left; } }

/* ---------- Pages de contenu (mentions, confidentialité, merci) ---------- */
.page { padding-top: clamp(8rem, 15vh, 10.5rem); }

.prose { max-width: 68ch; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.prose h2 { font-family: var(--display); font-size: 1.375rem; letter-spacing: -.025em; margin: 2.75rem 0 .9rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--body); font-size: 1rem; font-weight: 700; margin: 1.75rem 0 .5rem; }
.prose p, .prose li { color: var(--muted); font-size: .9688rem; line-height: 1.7; }
.prose p + p { margin-top: 1rem; }
.prose ul { margin: .9rem 0; padding-left: 1.2rem; display: grid; gap: .5rem; }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.prose a:hover { text-decoration-color: currentColor; }
.prose dl { margin: 1rem 0 0; display: grid; gap: .6rem; }
.prose dt { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.prose dd { margin: 0 0 .6rem; color: var(--text); font-size: .9688rem; font-weight: 500; }

.thanks { text-align: center; display: grid; place-items: center; min-height: 62vh; align-content: center; gap: 1.5rem; }
.thanks .lede { text-align: center; }
.thanks .eyebrow { justify-content: center; }
.thanks__mark { width: 56px; height: 56px; color: var(--lavender); }

/* ---------- Animations d'entrée ------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

[data-reveal].is-in { opacity: 1; transform: none; }

/* Échelonnement — piloté par un attribut plutôt qu'un style inline,
   ce qui permet une Content-Security-Policy sans 'unsafe-inline'. */
[data-i='1'] { --i: 1; }
[data-i='2'] { --i: 2; }
[data-i='3'] { --i: 3; }
[data-i='4'] { --i: 4; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .masthead, .hero__canvas, .form { display: none; }
  body { background: #fff; color: #000; }
}
