/* ==========================================================================
   pH neutre — Pierrick Halflants
   Charte : quasi noir & blanc, très aérée, la couleur vient des photographies.
   Une seule feuille de style, organisée par blocs.
   ========================================================================== */

:root {
  /* --- Encre et gris ---------------------------------------------------- */
  --ink: #0e100f;
  --ink-2: #2b2f2c;   /* texte courant */
  --ink-3: #5f6562;   /* texte secondaire */
  --ink-4: #8d928f;   /* légendes, surtitres */

  --line: #e3e2dd;    /* filets */
  --line-strong: #c9c8c1;

  --paper: #ffffff;
  --paper-2: #f7f6f3;  /* sections alternées */
  --paper-3: #efeee9;

  /* Unique touche colorée, réservée aux boutons et aux liens */
  --accent: #14231b;
  --accent-hover: #000000;

  /* --- Typographie ------------------------------------------------------ */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia,
    "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* --- Mesures ---------------------------------------------------------- */
  --wrap: 1280px;
  --wrap-text: 700px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --header-h: 78px;

  --section-y: clamp(4.5rem, 11vw, 9.5rem);
  --radius: 2px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------- Base ---- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--ink);
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s var(--ease), color 0.2s var(--ease);
}

a:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.85rem, 3.9vw, 3rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.12rem, 1.6vw, 1.32rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1.35em;
  text-wrap: pretty;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: clamp(3rem, 7vw, 5.5rem) 0;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 1.4rem;
  z-index: 300;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------- Structure ---- */

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

.wrap--narrow { max-width: 820px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section--sand { background: var(--paper-2); }

.section--forest {
  background: var(--ink);
  color: #d8dad8;
}
.section--forest h2,
.section--forest h3 { color: #fff; }
.section--forest a { color: #fff; text-decoration-color: rgba(255,255,255,.4); }
.section--forest .lead { color: #b9bdba; }
.section--forest .eyebrow { color: #8b918d; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 1.4rem;
}

.lead {
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  line-height: 1.6;
  color: var(--ink-3);
  font-weight: 300;
}

.measure { max-width: 58ch; }

/* ------------------------------------------------------------ Boutons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 1.05rem 1.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn--primary,
.btn--accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover,
.btn--accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.section--forest .btn--ghost,
.hero .btn--ghost,
.cta-band .btn--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.section--forest .btn--ghost:hover,
.hero .btn--ghost:hover,
.cta-band .btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cta-band .btn--accent,
.hero .btn--accent {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.cta-band .btn--accent:hover,
.hero .btn--accent:hover {
  background: transparent;
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.5rem;
}

/* ----------------------------------------------------------- En-tête ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

/* En-tête posé sur la photo, sur les pages qui ont un grand visuel */
body.has-hero .site-header {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

body.has-hero .site-header .brand,
body.has-hero .site-header .nav a,
body.has-hero .site-header .nav-toggle {
  color: #fff;
}
body.has-hero .site-header .brand__sub {
  color: rgba(255, 255, 255, 0.75);
  border-left-color: rgba(255, 255, 255, 0.35);
}
body.has-hero .site-header .brand__mark { filter: brightness(0) invert(1); }
body.has-hero .site-header .nav__lang { border-color: rgba(255, 255, 255, 0.45); }
body.has-hero .site-header .nav-toggle { border-color: rgba(255, 255, 255, 0.45); }
body.has-hero .site-header .nav a:hover { background: rgba(255, 255, 255, 0.14); }
body.has-hero .site-header .nav a[aria-current="page"] {
  background: transparent;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.75);
}
body.has-hero .site-header .nav__cta {
  background: #fff;
  color: var(--ink) !important;
  border-color: #fff;
}

/* …puis l'en-tête redevient blanc dès qu'on défile */
body.has-hero .site-header.is-scrolled {
  background: #ffffff;
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--line);
}
body.has-hero .site-header.is-scrolled .brand,
body.has-hero .site-header.is-scrolled .nav a,
body.has-hero .site-header.is-scrolled .nav-toggle { color: var(--ink); }
body.has-hero .site-header.is-scrolled .brand__sub {
  color: var(--ink-4);
  border-left-color: var(--line-strong);
}
body.has-hero .site-header.is-scrolled .brand__mark { filter: none; }
body.has-hero .site-header.is-scrolled .nav__lang,
body.has-hero .site-header.is-scrolled .nav-toggle { border-color: var(--line-strong); }
body.has-hero .site-header.is-scrolled .nav a:hover { background: var(--paper-2); }
body.has-hero .site-header.is-scrolled .nav a[aria-current="page"] {
  box-shadow: inset 0 -1px 0 var(--ink);
}
body.has-hero .site-header.is-scrolled .nav__cta {
  background: var(--accent);
  color: #fff !important;
  border-color: var(--accent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.35s var(--ease);
}

/* Le logotype « pH / neutre » */
.brand__mark {
  width: auto;
  height: 32px;
  flex: 0 0 auto;
  transition: filter 0.35s var(--ease);
}

.brand__sub {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding-left: 0.9rem;
  border-left: 1px solid var(--line-strong);
  line-height: 1.2;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}

@media (max-width: 460px) {
  .brand__sub { display: none; }
  .brand__mark { height: 28px; }
}

.nav { display: flex; align-items: center; gap: 0.15rem; }

.nav a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink-2);
  text-decoration: none;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.nav a:hover { background: var(--paper-2); color: var(--ink); }

.nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--ink);
}

.nav__lang {
  margin-left: 0.5rem;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em;
  border: 1px solid var(--line-strong);
  padding: 0.5rem 0.7rem !important;
}
.nav__lang[aria-current], .nav__lang:hover { box-shadow: none !important; }

.nav__cta {
  margin-left: 0.6rem;
  padding: 0.8rem 1.35rem !important;
  font-size: 0.85rem !important;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  width: 46px; height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem var(--gutter) 1.75rem;
    transform: translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  /* Dans le menu déroulant, on repasse toujours en texte foncé */
  body.has-hero .site-header .nav a,
  body.has-hero .site-header.is-scrolled .nav a { color: var(--ink-2); }
  .nav a {
    padding: 1rem 0.2rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none !important;
  }
  .nav__lang, .nav__cta {
    margin: 1.1rem 0 0;
    text-align: center;
    justify-content: center;
    border-bottom: 0;
  }
  body.has-hero .site-header .nav__cta,
  body.has-hero .site-header.is-scrolled .nav__cta {
    background: var(--accent);
    color: #fff !important;
    border-color: var(--accent);
  }
  body.has-hero .site-header .nav__lang { border-color: var(--line-strong); }
}

/* -------------------------------------------------------------- Héros ---- */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: flex-end;
  min-height: min(92svh, 900px);
  padding-top: var(--header-h);
}

.hero__media { position: absolute; inset: 0; z-index: -2; }

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

/* Voile discret : sombre en haut pour l'en-tête, sombre en bas pour le texte */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(14, 16, 15, 0.55) 0%, rgba(14, 16, 15, 0) 26%),
    linear-gradient(to top, rgba(14, 16, 15, 0.78) 0%, rgba(14, 16, 15, 0.34) 45%, rgba(14, 16, 15, 0) 78%);
}

.hero__inner {
  padding-block: clamp(3.5rem, 9vw, 7rem);
  max-width: 54rem;
}

.hero h1 { color: #fff; margin-bottom: 1.4rem; }

.hero__eyebrow { color: rgba(255, 255, 255, 0.72); }

.hero__lead {
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.62;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.86);
  max-width: 42rem;
}

/* Variante pages intérieures : plus basse */
.hero--page { min-height: min(66svh, 620px); }
.hero--page .hero__inner { padding-block: clamp(3rem, 7vw, 5rem); }

/* ------------------------------------------------- Bandeau panoramique --- */

.band {
  position: relative;
  width: 100%;
  background: var(--paper-3);
  overflow: hidden;
}

.band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 21 / 9;
}

@media (max-width: 700px) {
  .band img { aspect-ratio: 4 / 3; }
}

.band--tall img { aspect-ratio: 16 / 9; }

.band__caption {
  margin: 0;
  padding: 1rem var(--gutter) 0;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--ink-4);
  max-width: var(--wrap);
  margin-inline: auto;
}

/* Bandeau avec une phrase posée dessus */
.band--quote { background: var(--ink); }

.band--quote img { opacity: 0.55; }

.band__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--gutter);
}

.band__overlay p {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.4rem, 3.4vw, 2.7rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 24ch;
  margin: 0;
  text-shadow: 0 1px 30px rgba(0, 0, 0, 0.45);
}

/* --------------------------------------------------------- Statistiques -- */

.proof {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.proof__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.proof__item {
  padding: 0.5rem clamp(1rem, 2.5vw, 2rem);
  border-left: 1px solid var(--line);
}
.proof__item:first-child { border-left: 0; padding-left: 0; }

@media (max-width: 780px) {
  .proof__item { border-left: 0; padding-left: 0; padding-block: 1rem; }
}

.proof__item strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.proof__item span {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-3);
  display: block;
}

/* ------------------------------------------------------------ Grilles ---- */

.grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }

.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 780px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

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

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: clamp(2rem, 6vw, 3rem); }
}

/* -------------------------------------------------------------- Blocs ---- */
/* Plus de cartes encadrées : un filet en haut, de l'air, c'est tout. */

.card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--ink);
  border-radius: 0;
  padding: 1.75rem 0 0;
  box-shadow: none;
  height: 100%;
}

.card:hover { transform: none; box-shadow: none; }

.card__icon {
  width: 30px;
  height: 30px;
  margin-bottom: 1.5rem;
  color: var(--ink);
  stroke-width: 1.2;
}

.card h3 { margin-bottom: 0.65rem; }

.card p { color: var(--ink-2); }
.card p:last-child { margin-bottom: 0; }

.card__list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-3);
}

.card__list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 1px;
  background: var(--ink-4);
}

/* Étapes numérotées */
.steps {
  counter-reset: step;
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 2.6rem;
  border-top: 1px solid currentColor;
  opacity: 1;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0.85rem;
  left: 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: inherit;
  opacity: 0.55;
}

.steps h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.steps p { font-size: 0.95rem; margin: 0; color: inherit; opacity: 0.82; }

.section--forest .steps li { border-top-color: rgba(255, 255, 255, 0.28); }

/* Frise chronologique */
.timeline {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
}

.timeline li {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 2rem;
}

@media (max-width: 780px) {
  .timeline li { grid-template-columns: 1fr; gap: 0.5rem; }
}

.timeline__period {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding-top: 0.35rem;
}

.timeline__role {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: block;
  line-height: 1.25;
  grid-column: 2;
}

.timeline__org {
  display: block;
  font-size: 0.92rem;
  color: var(--ink-4);
  margin-bottom: 0.85rem;
  grid-column: 2;
}

.timeline p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-3);
  grid-column: 2;
}

@media (max-width: 780px) {
  .timeline__role, .timeline__org, .timeline p { grid-column: 1; }
}

/* Étiquettes */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.tags li {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-3);
}

.section--forest .tags li {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
}

/* Citation */
.quote {
  border: 0;
  border-top: 1px solid var(--ink);
  padding: 2rem 0 0;
  margin: 3rem 0 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section--forest .quote { color: #fff; border-top-color: rgba(255,255,255,.35); }

/* Images encadrées */
.figure {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  background: var(--paper-3);
  margin: 0;
}

.figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.figure--portrait {
  max-width: none;
  margin-inline: 0;
}
.figure--portrait img { aspect-ratio: 3 / 4; }

.figure figcaption {
  font-size: 0.82rem;
  color: var(--ink-4);
  padding: 0.85rem 0 0;
  background: transparent;
}

/* --------------------------------------------------------------- Blog ---- */

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem) clamp(1.75rem, 3.5vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.post-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  height: 100%;
}

.post-card:hover { transform: none; box-shadow: none; }

.post-card__media {
  aspect-ratio: 3 / 2;
  background: var(--paper-3);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.post-card:hover .post-card__media img { transform: scale(1.03); }

.post-card__body {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__meta {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 0.85rem;
}

.post-card h3 {
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}

.post-card h3 a { text-decoration: none; color: inherit; }
.post-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--line-strong); }

.post-card p {
  font-size: 0.97rem;
  color: var(--ink-3);
  flex: 1;
  margin-bottom: 1rem;
}

.post-card__more {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  align-self: flex-start;
}
.post-card__more:hover { border-bottom-color: var(--ink); }
.post-card__more::after { content: ""; }

/* Article */
.prose {
  max-width: 68ch;
  margin-inline: auto;
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--ink-2);
}

.prose h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  margin-top: 3.2rem;
  margin-bottom: 1rem;
}

.prose h3 { font-size: 1.22rem; margin-top: 2.4rem; }

.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1.6rem; }
.prose li { margin-bottom: 0.7rem; }

.prose blockquote {
  margin: 2.75rem 0;
  padding: 1.75rem 0 0;
  border: 0;
  border-top: 1px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.45rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.prose blockquote p:last-child { margin-bottom: 0; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.5rem 0;
  font-size: 0.95rem;
}

.prose th, .prose td {
  text-align: left;
  padding: 0.85rem 1rem 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.prose th {
  background: transparent;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.post-header {
  text-align: center;
  max-width: 50rem;
  margin-inline: auto;
}

.post-header h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }

.post-header__meta {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 1.5rem;
}

.post-footer {
  max-width: 68ch;
  margin: 4rem auto 0;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------- Formulaire ---- */

.form-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.field { margin-bottom: 1.75rem; }

.field > label,
.fieldset__legend {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 0.7rem;
}

.field__hint {
  display: block;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-4);
  margin-top: 0.35rem;
  margin-bottom: 0.6rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1.02rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 0.7rem 0;
  transition: border-color 0.2s var(--ease);
}

.field textarea { min-height: 150px; resize: vertical; }

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
  box-shadow: none;
}

.field input:user-invalid,
.field textarea:user-invalid { border-bottom-color: #a8412c; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* Indicatif pays + numéro */
.field__group {
  display: grid;
  grid-template-columns: minmax(10.5rem, 15rem) 1fr;
  gap: 1rem;
  align-items: end;
}

.field__group select { min-width: 0; }

@media (max-width: 560px) {
  .field__group { grid-template-columns: 1fr; gap: 0; }
}

.consent--inline {
  margin: -0.75rem 0 1.5rem;
  font-size: 0.95rem;
}

[data-whatsapp-block][hidden] { display: none; }

/* Choix en pastilles */
.chips { border: 0; padding: 0; margin: 0 0 2.25rem; }

.chips__options { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.chip { position: relative; }

.chip input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}

.chip span {
  display: block;
  padding: 0.6rem 1.05rem;
  font-size: 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-3);
  transition: all 0.18s var(--ease);
  user-select: none;
}

.chip input:hover + span { border-color: var(--ink-3); color: var(--ink); }

.chip input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.consent {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-3);
  margin-bottom: 2rem;
}

.consent input {
  margin-top: 0.32rem;
  width: 17px; height: 17px;
  accent-color: var(--ink);
  flex: 0 0 17px;
}

.form-note {
  font-size: 0.86rem;
  color: var(--ink-4);
  margin-top: 1.5rem;
}

.honeypot {
  position: absolute !important;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Coordonnées */
.contact-direct { list-style: none; padding: 0; margin: 2.25rem 0 0; }

.contact-direct li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-direct svg {
  width: 19px; height: 19px;
  color: var(--ink-4);
  flex: 0 0 19px;
  margin-top: 0.35rem;
}

.contact-direct strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 0.2rem;
}

.contact-direct a {
  font-size: 1.02rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}
.contact-direct a:hover { border-bottom-color: var(--ink); }

/* Page de remerciement */
.thanks {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
  padding-block: clamp(5rem, 14vw, 9rem);
}

.thanks__mark {
  width: 64px; height: 64px;
  margin: 0 auto 2rem;
  color: var(--ink);
  stroke-width: 1;
}

/* ---------------------------------------------------------------- CTA ---- */

.cta-band {
  position: relative;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  overflow: hidden;
  isolation: isolate;
}

.cta-band__ridge {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  z-index: -1;
}

.cta-band__inner {
  padding-block: clamp(4.5rem, 11vw, 8rem);
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.cta-band h2 { color: #fff; }
.cta-band .eyebrow { color: rgba(255, 255, 255, 0.6); }
.cta-band p { color: rgba(255, 255, 255, 0.82); }
.cta-band .btn-row { justify-content: center; }

/* ----------------------------------------------------------- Bas de page - */

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.92rem;
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.25rem;
}

.site-footer a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-footer a:hover { color: var(--ink); border-bottom-color: var(--line-strong); }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (max-width: 820px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 1.1rem;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.65rem; line-height: 1.55; }

.site-footer__brand {
  margin-bottom: 1.5rem;
}

.site-footer__brand img {
  width: auto;
  height: 42px;
}

.site-footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-4);
}

/* ---------------------------------------------------------- Animations --- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------- Impression ---- */

@media print {
  .site-header, .cta-band, .site-footer, .btn-row, .band { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: 0; padding-top: 0; }
}
