/* ==========================================================================
   Essence Maternelle — feuille de style unique.

   Direction éditoriale « mode » : quasi-monochrome, capitales très espacées,
   sérif haute-contraste en display, filets fins, beaucoup d'air.

   Organisation :
     1. Jetons      2. Bases       3. Primitives   4. Boutons
     5. En-tête     6. Pied        7. Sections     8. Composants
     9. Prose      10. Défilement 11. Responsive  12. Mouvement réduit
   ========================================================================== */

/* --------------------------------------------------------------- 1. Jetons */
:root {
  --display: "Bodoni Moda", Didot, Georgia, serif;
  --body:    "Jost", Futura, "Helvetica Neue", Arial, sans-serif;

  /* Palette — ratios mesurés sur papier (#FBF9F6) */
  --ink:        #17130f;   /* 17,6:1 */
  --ink-2:      #2b241e;   /* 15,4:1 */
  --paper:      #fbf9f6;
  --bone:       #f1ece5;
  --greige:     #d9d1c7;
  --stone:      #6e655c;   /*  5,4:1 */
  --mocha:      #7a5c4b;   /*  5,8:1 */
  --mocha-deep: #5f473a;   /*  8,2:1 */
  --powder:     #e8d3cc;
  /* Surface chaude : c'est elle qui empêche le site de virer au froid.
     L'encre y reste à 13,5:1. */
  --blush:      #f6e9e4;

  /* Les sections contrastées sont en terracotta, pas en sombre.
     Sur ce fond, le texte clair tombe à 2,1:1 : on écrit donc TOUJOURS
     en encre foncée (8,25:1) et en encre adoucie (6,83:1). */
  --terracotta:      #d7a18e;
  --on-terracotta:      #17130f;
  --on-terracotta-soft: #2b241e;

  --section: clamp(4.5rem, 10vw, 10rem);
  --gutter:  clamp(1.25rem, 5vw, 4.5rem);
  --measure: 64ch;

  --track-label: .22em;
  --track-caps:  .14em;

  --hair: 1px solid var(--greige);
  --ease: cubic-bezier(.16, 1, .3, 1);

  --header-h: 84px;
}

/* ----------------------------------------------------------- 2. Bases */

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6, .display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.005em;
  color: var(--ink);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5rem); }
h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); }
h4 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

a { color: var(--mocha); text-decoration-thickness: 1px; text-underline-offset: .25em; }
a:hover, a:focus-visible { color: var(--mocha-deep); }

ul, ol { padding-left: 1.2em; }

:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
::selection { background: var(--powder); color: var(--ink); }

hr { border: 0; border-top: var(--hair); margin: 3rem 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Texte qui dépend de la mise en page d'un `.split` : « juste à côté » tant
   que les colonnes sont côte à côte, « juste en dessous » une fois empilées.
   Même seuil que `.split` (900 px), sinon la phrase ment pendant un temps. */
.split-only { display: inline; }
.stack-only { display: none; }
@media (max-width: 900px) {
  .split-only { display: none; }
  .stack-only { display: inline; }
}
.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: var(--paper);
  padding: .8rem 1.4rem; z-index: 200;
  transition: top .2s;
}
.skip:focus { top: 1rem; color: var(--paper); }

/* ------------------------------------------------------ 3. Primitives */

/* Micro-label : le geste le plus « mode » du lot. */
.eyebrow {
  display: block;
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 1rem;
}
.eyebrow--mocha { color: var(--mocha); }

/* Numérotation de chapitre */
.index {
  font-family: var(--body);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--stone);
  font-variant-numeric: tabular-nums;
}

.title-caps {
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
  line-height: 1.12;
}

/* Symbole de marque déposée dans un grand titre.
   À 7rem, un ® au corps du texte fait une tache ; on le réduit et on aligne son
   sommet sur celui des capitales.

   Le calcul, en em du titre : la capitale de Bodoni Moda monte à .75, et le ®
   de Jost à .71 de son propre corps. Pour que les deux sommets coïncident, il
   faut donc remonter la ligne de base du symbole de (.75 - .71 × .22) = .594,
   soit .594 / .22 = 2.7 fois son propre corps.

   `position: relative` est indispensable : `top` n'a aucun effet sur un élément
   non positionné, et un `<sup>` ne l'est pas par défaut — le symbole resterait
   là où `vertical-align: super` l'a laissé, trop bas. Positionner ainsi ne
   déforme pas la ligne : la boîte reste sur la ligne de base, seul le dessin
   remonte, donc l'interligne du titre n'est pas modifié.

   `vertical-align: baseline` neutralise le `super` de la feuille du navigateur,
   qui s'ajouterait au calcul. `letter-spacing: 0` annule l'interlettrage des
   titres en capitales, qui pousserait le symbole loin du mot. */
.mark {
  font-family: var(--body);
  font-size: .22em;
  vertical-align: baseline;
  position: relative;
  top: -2.7em;
  letter-spacing: 0;
}

.lead {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1rem + 1.1vw, 1.85rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  max-width: 34ch;
}

.rule {
  display: block; width: 100%; height: 1px;
  margin: 1.75rem 0 2.25rem;
  background: var(--greige);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s var(--ease) .1s;
}
.rule--short { width: 56px; background: var(--ink); }
.rule.is-in, .is-in > .rule { transform: scaleX(1); }

.measure { max-width: var(--measure); }
.center  { text-align: center; margin-inline: auto; }

/* --------------------------------------------------------- 4. Boutons */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body);
  font-size: .72rem; font-weight: 500; line-height: 1;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.25em 2.6em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  cursor: pointer;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn > span { position: relative; z-index: 1; }
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: var(--paper);
  transform: translateY(100%);
  transition: transform .6s var(--ease);
}
.btn:hover, .btn:focus-visible { color: var(--ink); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--paper); }

.btn--sm { padding: 1em 1.8em; font-size: .68rem; }

/* Lien fléché, sans cadre */
.link {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--body);
  font-size: .72rem; font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: .5em;
  border-bottom: 1px solid var(--ink);
}
.link::after { content: "→"; transition: transform .5s var(--ease); }
.link:hover { color: var(--ink); }
.link:hover::after { transform: translateX(6px); }

.actions { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; margin-top: clamp(2rem, 4vw, 3.5rem); }

/* --------------------------------------------------------- 5. En-tête */

.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  transition: border-color .4s, box-shadow .4s;
  border-bottom: 1px solid transparent;
}
body.is-scrolled .header { border-bottom-color: var(--greige); }

.header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: var(--header-h);
  padding-inline: var(--gutter);
  max-width: 1440px; margin-inline: auto;
}
.header__brand { flex: none; line-height: 0; }
.header__brand img { width: 62px; height: auto; }
.header__cta { margin-left: auto; flex: none; }

.nav { margin-inline: auto; }
.nav__list { display: flex; gap: clamp(.8rem, 1.8vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative;
  display: block; padding: .5rem 0;
  font-size: .72rem; font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .15rem;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__link--star { color: var(--mocha); }
.nav__link--star::before {
  content: ""; display: inline-block;
  width: 4px; height: 4px; margin-right: .6em;
  background: var(--mocha); vertical-align: middle;
}

.nav__toggle { display: none; }

/* ------------------------------------------------------------ 6. Pied */

.footer {
  border-top: var(--hair);
  padding: var(--section) var(--gutter) 3rem;
  background: var(--bone);
}
.footer__inner {
  max-width: 1240px; margin-inline: auto;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}
.footer__wordmark {
  font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
  margin: 0 0 1rem;
}
.footer__baseline { color: var(--stone); font-size: .95rem; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer__links a {
  font-size: .9rem; color: var(--ink-2); text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.footer__links a:hover { border-bottom-color: var(--mocha); color: var(--mocha); }

.footer__note,
.footer__legal {
  max-width: 1240px; margin: 3rem auto 0;
  font-size: .78rem; color: var(--stone);
}
.footer__note { padding-top: 2rem; border-top: var(--hair); }
.footer__legal { margin-top: .8rem; letter-spacing: .06em; text-transform: uppercase; font-size: .68rem; }

/* Crédit de conception. Un lien moka souligné crierait sur cette ligne grise :
   on garde la couleur du texte, et le moka n'apparaît qu'au survol — comme les
   liens des colonnes du pied de page juste au-dessus. */
.footer__credit {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color .3s, color .3s;
}
.footer__credit:hover,
.footer__credit:focus-visible { color: var(--mocha); border-bottom-color: var(--mocha); }

/* -------------------------------------------------------- 7. Sections */

.section { padding: var(--section) var(--gutter); }
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }
.wrap { max-width: 1240px; margin-inline: auto; }
.wrap--narrow { max-width: 780px; margin-inline: auto; }

.section--bone   { background: var(--bone); }
.section--powder { background: var(--powder); }
.section--blush  { background: var(--blush); }
/* Section contrastée : terracotta, texte à l'encre. */
.section--terracotta { background: var(--terracotta); color: var(--on-terracotta); }

.section--terracotta h1, .section--terracotta h2, .section--terracotta h3,
.section--terracotta h4, .section--terracotta .lead { color: var(--on-terracotta); }
.section--terracotta p, .section--terracotta li { color: var(--on-terracotta-soft); }
.section--terracotta .eyebrow, .section--terracotta .index { color: var(--on-terracotta-soft); }
.section--terracotta .rule { background: rgb(23 19 15 / 28%); }
/* `:not(.btn)` est indispensable : sans lui, cette règle (0,1,1) l'emporte sur
   `.btn` (0,1,0) et le libellé du bouton passe en encre sur fond encre —
   invisible tant qu'on ne survole pas. */
.section--terracotta a:not(.btn) { color: var(--on-terracotta); }

/* Le bouton garde son aplat d'encre : 17,6:1 à l'intérieur, et il ressort. */
.section--terracotta .btn { color: var(--paper); }
.section--terracotta .btn:hover,
.section--terracotta .btn:focus-visible { color: var(--ink); }
.section--terracotta .btn--ghost { background: transparent; color: var(--on-terracotta); border-color: var(--on-terracotta); }
.section--terracotta .btn--ghost::before { background: var(--ink); }
.section--terracotta .btn--ghost:hover { color: var(--paper); }
.section--terracotta .link { color: var(--on-terracotta); border-color: var(--on-terracotta); }

/* En-tête de section : index à gauche, label à droite */
.section__head {
  display: grid; grid-template-columns: auto 1fr;
  gap: 2rem; align-items: baseline;
  margin-bottom: 1.5rem;
}
.section__head .eyebrow { margin: 0; }

/* ------------------------------------------------------ 8. Composants */

/* --- Héros simple (pages intérieures) --- */
.hero { padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(4rem, 9vw, 8rem); }
.hero__inner { max-width: 1240px; margin-inline: auto; }
.hero__title { font-size: clamp(3rem, 1.6rem + 6vw, 7rem); line-height: .98; margin: 0; }
.hero__title em { font-style: italic; }
.hero__lead { margin-top: 2rem; max-width: 46ch; font-size: 1.05rem; color: var(--ink-2); }

/* --- Héros d'accueil : l'image doit accrocher avant la première seconde.
       Texte à gauche sur surface chaude, photo qui déborde à droite.       --- */
.hero-split {
  display: grid;
  grid-template-columns: 1.12fr 44%;
  min-height: min(86vh, 800px);
  background: var(--blush);
  align-items: center;
}
.hero-split__text {
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.25rem, 3.5vw, 4rem);
  max-width: 46rem;
  margin-left: auto;
}
/* Taille calée pour que « Partir sereine. » tienne sur une ligne :
   au-delà, le titre se casse en quatre et perd tout son impact. */
.hero-split__title {
  font-size: clamp(2.6rem, 1.1rem + 3.9vw, 4.6rem);
  line-height: 1.02;
  margin: 0 0 1.5rem;
}
.hero-split__lead { max-width: 38ch; color: var(--ink-2); }
.hero-split__media { position: relative; overflow: hidden; height: 100%; min-height: 380px; }
.hero-split__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }

/* Bandeau de réassurance : les titres et la preuve, tout de suite sous le héros */
.proof {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(.8rem, 2.5vw, 2.5rem);
  padding: 1.1rem var(--gutter);
  border-bottom: var(--hair);
  background: var(--paper);
}
.proof__item {
  font-family: var(--body);
  font-size: .68rem; font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--stone);
  white-space: nowrap;
}
.proof__item strong { color: var(--ink); font-weight: 500; }
.proof__sep { color: var(--greige); }

/* Indicateur de défilement */
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.5rem;
  transform: translateX(-50%);
  display: grid; justify-items: center; gap: .6rem;
  font-family: var(--body); font-size: .62rem; font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--stone);
}
.scroll-cue::after {
  content: ""; width: 1px; height: 38px;
  background: linear-gradient(var(--ink), transparent);
  animation: cue 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue {
  0%   { transform: scaleY(0); opacity: 0; }
  35%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(38px); opacity: 0; }
}

/* Chiffre mis en avant */
.stat { display: grid; gap: .4rem; }
.stat__num {
  font-family: var(--display);
  font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
  line-height: .9;
  color: var(--ink);
}
.stat__label {
  font-family: var(--body); font-size: .68rem; font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--stone);
  max-width: 18ch;
}
.section--terracotta .stat__num { color: var(--on-terracotta); }
.section--terracotta .stat__label { color: var(--on-terracotta-soft); }

/* --- Témoignages --- */
.reviews {
  columns: 3;
  column-gap: clamp(1rem, 2.5vw, 2rem);
}
.review {
  break-inside: avoid;
  margin-bottom: clamp(1rem, 2.5vw, 2rem);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--paper);
  border: var(--hair);
}
.section--blush .review { border-color: rgb(23 19 15 / 10%); }
.review p {
  font-family: var(--display);
  font-size: 1.05rem; font-style: italic; line-height: 1.5;
  color: var(--ink); margin: 0 0 1.2rem;
}
.review footer {
  font-family: var(--body); font-size: .68rem; font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--stone);
}
.review footer b { display: block; color: var(--mocha); font-weight: 500; margin-bottom: .3em; }

/* --- Grille média + texte --- */
.split {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 6vw, 6rem); align-items: center;
}
.split--reverse > :first-child { order: 2; }
.split__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media--wide { aspect-ratio: 3 / 2; }
/* Portrait de Mélanie : reste vertical sur mobile, sinon le passage en 3:2
   rogne le visage. Cadrage calé vers le haut pour garder la tête entière. */
.split__media--portrait img { object-position: 50% 20%; }

/* --- Cartes à filets --- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: var(--hair); }
.card {
  padding: clamp(1.8rem, 3vw, 2.8rem) clamp(1.2rem, 2.5vw, 2.2rem);
  border-bottom: var(--hair); border-right: var(--hair);
  transition: background-color .6s var(--ease);
}
.card:last-child { border-right: 0; }
.card:hover { background: var(--bone); }
.card h3 {
  font-family: var(--body);
  font-size: .8rem; font-weight: 500;
  letter-spacing: var(--track-caps); text-transform: uppercase;
  margin: 1.2rem 0 .8rem; color: var(--ink);
}
.card p { font-size: .95rem; color: var(--stone); margin: 0; }
.section--terracotta .cards, .section--terracotta .card { border-color: rgb(23 19 15 / 18%); }
.section--terracotta .card:hover { background: rgb(23 19 15 / 5%); }
.section--terracotta .card h3 { color: var(--on-terracotta); }
.section--terracotta .card p { color: var(--on-terracotta-soft); }

/* --- Liste d'arguments numérotés --- */
.args { list-style: none; margin: 0; padding: 0; }
.args li {
  display: grid; grid-template-columns: 3.2rem 1fr; gap: 1.4rem;
  padding: 1.5rem 0; border-top: var(--hair); align-items: start;
}
.args li:last-child { border-bottom: var(--hair); }
.args .index { padding-top: .35em; }
.args b {
  display: block; font-family: var(--body);
  font-size: .78rem; font-weight: 500;
  letter-spacing: var(--track-caps); text-transform: uppercase;
  margin-bottom: .5em; color: var(--ink);
}
.args p { font-size: .95rem; line-height: 1.7; margin: 0; color: var(--stone); }
.section--terracotta .args li { border-color: rgb(23 19 15 / 18%); }
.section--terracotta .args b { color: var(--on-terracotta); }
.section--terracotta .args p { color: var(--on-terracotta-soft); }

/* --- Liste de prestations --- */
.services { list-style: none; margin: 0; padding: 0; border-top: var(--hair); }
.services__item { border-bottom: var(--hair); }
.services__link {
  display: grid; grid-template-columns: auto 1fr auto auto;
  gap: clamp(1rem, 3vw, 2.5rem); align-items: baseline;
  padding: clamp(1.4rem, 2.6vw, 2.2rem) 0;
  text-decoration: none; color: inherit;
  transition: padding-inline .5s var(--ease), color .4s;
}
.services__link:hover { padding-inline: .8rem; color: var(--mocha); }
.services__name { font-family: var(--display); font-size: clamp(1.3rem, 1rem + 1.4vw, 2.1rem); line-height: 1.1; }
.services__desc { font-size: .92rem; color: var(--stone); }
.services__price { font-family: var(--display); font-size: 1.2rem; white-space: nowrap; }
.services__arrow { transition: transform .5s var(--ease); }
.services__link:hover .services__arrow { transform: translateX(8px); }

/* --- Prix --- */
.price {
  display: flex; align-items: baseline; gap: .9rem;
  font-family: var(--display);
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); line-height: 1;
  color: var(--ink);
}
.price small {
  font-family: var(--body); font-size: .68rem; font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--stone);
}
.section--terracotta .price { color: var(--on-terracotta); }
.section--terracotta .price small { color: var(--on-terracotta-soft); }

/* --- Encadré de vigilance --- */
.notice {
  border-left: 2px solid var(--mocha);
  padding: 1.2rem 0 1.2rem 1.5rem;
  margin: 2.5rem 0;
  font-size: .95rem; color: var(--stone);
}
.notice b { display: block; font-family: var(--body); font-size: .72rem; font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink); margin-bottom: .5em; }

/* --- Encadré d'inscription dans un article ---
   Placé juste après le geste offert dans le texte : c'est le moment où la
   lectrice vient d'en essayer un et où « les deux autres » ont le plus de
   valeur. Un seul par article, avec un seul bouton. */
.optin {
  background: var(--blush);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  margin: 2.5rem 0;
}
.optin b { display: block; font-family: var(--body); font-size: .72rem; font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--mocha); margin-bottom: .6em; }
.optin p { color: var(--ink); margin: 0 0 1.4rem; }
.optin small { display: block; margin-top: 1rem; font-size: .8rem; color: var(--stone); }

/* --- Bandeau défilant --- */
.marquee { overflow: hidden; border-block: var(--hair); padding-block: 1.1rem; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 3.5rem; will-change: transform; transform: translate3d(var(--marquee, 0px), 0, 0); }
.marquee__item { font-family: var(--display); font-size: clamp(1.1rem, .9rem + .8vw, 1.6rem); font-style: italic; color: var(--stone); }
.marquee__item::after { content: "·"; margin-left: 3.5rem; color: var(--greige); font-style: normal; }

/* --- Articles du blog --- */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.post-card { text-decoration: none; color: inherit; display: block; }
/* Toutes les images du blog au carré : c'est ce qui rend la grille régulière.
   `display:block` est indispensable — le conteneur est un <span>, donc inline
   par défaut, et `aspect-ratio` ne s'applique pas à un élément inline : c'est
   alors l'image qui impose sa hauteur, d'où des vignettes de formats différents. */
.post-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: 1.2rem;
  background: var(--bone);
}
.post-card__media img {
  display: block;
  width: 100%; height: 100%;
  aspect-ratio: 1 / 1;      /* neutralise les attributs width/height du HTML */
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.post-card p { font-size: .92rem; color: var(--stone); margin: 0; }

/* --- Témoignage --- */
.quote {
  border-top: var(--hair); border-bottom: var(--hair);
  padding: clamp(2rem, 4vw, 3rem) 0; margin: 0;
  text-align: center;
}
.quote blockquote {
  margin: 0 auto; max-width: 30ch;
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.3;
  color: var(--ink);
}
.quote figcaption { margin-top: 1.5rem; }

/* --- Formulaire --- */
.form { display: grid; gap: 1.4rem; max-width: 560px; }
.form__row { display: grid; gap: 1.4rem; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: .5rem; }
.field label {
  font-family: var(--body); font-size: .7rem; font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--stone);
}
.field input, .field textarea {
  font-family: var(--body); font-size: 1rem;
  padding: .9rem 1rem;
  border: var(--hair); border-radius: 0;
  background: var(--paper); color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 1px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.field textarea { min-height: 160px; resize: vertical; }

/* ----------------------------------------------------------- 9. Prose */

.prose { max-width: var(--measure); margin-inline: auto; }
.prose h2 { margin-top: 2.4em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { margin: 0 0 1.4em; }
.prose li { margin-bottom: .5em; }
.prose blockquote {
  border: 0; border-block: var(--hair);
  padding: 1.8rem 0; margin: 2.5rem 0;
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); line-height: 1.35;
  color: var(--ink); text-align: center;
}
.prose img { margin: 2.5rem 0; }

/* Visuel d'en-tête d'article, au carré comme les vignettes du journal. */
.post-hero {
  max-width: 620px;
  margin: 0 auto 3.5rem;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bone);
}
.post-hero img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }

.progress {
  position: fixed; top: 0; left: 0; height: 1px; width: 100%;
  transform: scaleX(0); transform-origin: left;
  background: var(--ink); z-index: 200;
}

/* ------------------------------------------------------ 10. Défilement */

.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal.is-instant { transition: none; }

/* Le masque rogne les jambages : Bodoni dépasse largement sa hauteur de
   ligne. On agrandit la boîte de débordement sans toucher à la mise en page. */
.lines .line {
  display: block;
  overflow: hidden;
  padding-block: .22em;
  margin-block: -.22em;
}
.lines .line > span {
  display: block; transform: translateY(105%);
  transition: transform 1.15s var(--ease);
  transition-delay: calc(var(--line-i, 0) * 95ms);
}
.lines.is-in .line > span { transform: none; }

.curtain { position: relative; overflow: hidden; }
.curtain::after {
  content: ""; position: absolute; inset: 0;
  background: var(--bone); transform-origin: bottom;
  transition: transform 1.3s var(--ease); z-index: 2;
}
.curtain.is-in::after { transform: scaleY(0); }
.curtain img { transform: scale(1.14); transition: transform 1.8s var(--ease); }
.curtain.is-in img { transform: scale(1); }

.parallax > img, img.parallax { transform: translate3d(0, var(--par, 0px), 0) scale(1.12); will-change: transform; }

/* ----------------------------------------------------- 11. Responsive */

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

@media (max-width: 1080px) {
  .reviews { columns: 2; }
}

@media (max-width: 900px) {
  /* Le héros passe en pile : image d'abord, elle doit accrocher avant le texte. */
  .hero-split { grid-template-columns: 1fr; min-height: 0; }
  .hero-split__media { order: -1; aspect-ratio: 5 / 4; min-height: 0; }
  .hero-split__text { margin-left: 0; padding-block: clamp(2rem, 8vw, 3rem) clamp(2.5rem, 9vw, 3.5rem); }
  .proof { gap: .5rem 1rem; }
  .proof__sep { display: none; }
  /* Sur mobile l'image ne fait que 300 px : l'indicateur y est à l'étroit
     et n'apporte rien, le pouce sait déjà défiler. */
  .scroll-cue { display: none; }
  .reviews { columns: 1; }

  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .split__media { aspect-ratio: 3 / 2; }
  .split__media--portrait { aspect-ratio: 4 / 5; }
  .cards { grid-template-columns: 1fr; }
  .card { border-right: 0; }
  .section__head { grid-template-columns: 1fr; gap: .6rem; }
  .services__link { grid-template-columns: 1fr auto; gap: .6rem 1.5rem; }
  .services__desc { grid-column: 1 / -1; }
  .form__row { grid-template-columns: 1fr; }
}

/* Menu replié. Logo + menu complet + bouton demandent environ 1 100 px :
   en dessous, le bouton sortait de l'écran et, sur un téléphone en « version
   pour ordinateur » (980 px), toute la page dézoomait. Entre 900 et 1 120 px
   le bouton reste visible, le menu passe derrière le burger. */
@media (max-width: 1120px) {
  .nav { margin: 0; order: 3; }
  .nav__toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    background: none; border: 0; padding: 0; cursor: pointer;
  }
  .nav__toggle-bar, .nav__toggle-bar::before, .nav__toggle-bar::after {
    content: ""; display: block; width: 22px; height: 1px; background: var(--ink);
    transition: transform .4s var(--ease), opacity .3s;
  }
  .nav__toggle-bar::before { transform: translateY(-7px); }
  .nav__toggle-bar::after  { transform: translateY(6px); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bar { background: transparent; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bar::before { transform: rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bar::after  { transform: rotate(-45deg); }

  .nav__list {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--paper);
    border-bottom: var(--hair);
    padding: 1rem var(--gutter) 2rem;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  .nav__list.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { padding: .9rem 0; font-size: .8rem; border-bottom: var(--hair); }
  .nav__link::after { display: none; }
}

@media (max-width: 900px) {
  .nav { margin-left: auto; }
  .header__cta { display: none; }
  .header__inner { gap: .5rem; }
}

@media (max-width: 560px) {
  .footer__inner { grid-template-columns: 1fr; }
  .args li { grid-template-columns: 1fr; gap: .4rem; }
  .actions { gap: 1rem; }
  .btn { width: 100%; }
}

/* ------------------------------------------------ 12. Mouvement réduit */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .rule { transform: scaleX(1); transition: none; }
  .lines .line > span { transform: none; transition: none; }
  .curtain::after { display: none; }
  .curtain img { transform: none; transition: none; }
  .parallax > img, img.parallax { transform: none; }
  .marquee__track { transform: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
