/* ==========================================================================
   Hippelia — litière en carton pour chevaux
   Direction artistique : « serre botanique sur parchemin »
   Crème en toile de fond, des pièces vert forêt réchauffées de brun,
   le vert vif réservé à l'action.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --color-bone-linen: #f7f5f2;
  --color-oat-milk: #eae6df;
  --color-driftwood: #d7d2cc;
  --color-ash-mauve: #645757;
  --color-mahogany-hush: #504344;
  --color-obsidian-plum: #2a1a1d;
  --color-lime-pulse: #26d862;
  --color-peacock-teal: #0e634f;

  /* Palette Hippelia : un vert forêt éclairci, réchauffé par des bruns bois et kraft. */
  --color-forest: #2f5a40;
  --color-moss: #4f8059;
  --color-bark: #7a5536;
  --color-walnut: #3b2a1c;
  --color-kraft: #cfa97b;

  /* Dégradé « nature » des grandes surfaces sombres : vert tendre en haut, brun en bas. */
  --gradient-nature:
    radial-gradient(115% 85% at 100% 100%, rgb(128 90 55 / .95) 0%, rgb(128 90 55 / 0) 62%),
    radial-gradient(75% 60% at 0% 100%, rgb(92 64 40 / .7) 0%, rgb(92 64 40 / 0) 65%),
    radial-gradient(95% 80% at 15% 0%, rgb(84 136 96 / .7) 0%, rgb(84 136 96 / 0) 62%),
    var(--color-forest);

  /* Hero : le vert éclairci au maximum, réchauffé en brun carton vers le bas. */
  --gradient-hero:
    radial-gradient(130% 75% at 55% 112%, rgb(190 146 100 / .9) 0%, rgb(190 146 100 / 0) 60%),
    radial-gradient(60% 50% at 100% 100%, rgb(160 116 74 / .5) 0%, rgb(160 116 74 / 0) 70%),
    radial-gradient(90% 75% at 10% 0%, rgb(246 250 242 / .95) 0%, rgb(246 250 242 / 0) 62%),
    #dde9d6;
  --hero-ink: #1f3a2b;
  --hero-ink-soft: rgb(31 58 43 / .8);
  --hero-rule: rgb(31 58 43 / .18);

  --cream-88: rgba(247, 245, 242, .88);
  --cream-72: rgba(247, 245, 242, .72);
  --cream-56: rgba(247, 245, 242, .56);
  --cream-16: rgba(247, 245, 242, .16);

  --font-display: "Instrument Serif", "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-text: "Fraunces", "DM Serif Text", Georgia, "Times New Roman", serif;

  --text-display-xl: clamp(3.5rem, 9.4vw, 8.75rem);
  --text-display: clamp(3.25rem, 7.4vw, 6.5rem);
  --text-heading-lg: clamp(2.125rem, 3.8vw, 3rem);
  --text-heading: clamp(1.625rem, 2.5vw, 2rem);
  --text-heading-sm: clamp(1.375rem, 2vw, 1.625rem);
  --text-body-lg: 1.125rem;
  --text-body: 1rem;
  --text-small: .9375rem;
  --text-label: .8125rem;
  --text-caption: .75rem;

  --gutter: clamp(16px, 5.35vw, 77px);
  --page-max-width: 1200px;
  --section-pad: clamp(32px, 4vw, 56px);
  --radius-sm: 4px;
  --radius: 8px;
  --sheet-radius: clamp(18px, 2.6vw, 36px);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-back: cubic-bezier(.34, 1.5, .64, 1);
}

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

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

html.menu-open { overflow: hidden; }

html { background: linear-gradient(#dde9d8 50%, var(--color-forest) 50%); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-obsidian-plum);
  font-family: var(--font-text);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.01em;
  font-variation-settings: "SOFT" 30, "WONK" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
canvas { display: block; max-width: 100%; }

a { color: inherit; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: italic; }

::selection { background: var(--color-lime-pulse); color: var(--color-obsidian-plum); }

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

.menu :focus-visible,
.usage__panel :focus-visible,
.footer :focus-visible { outline-color: var(--color-bone-linen); }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--color-lime-pulse);
  color: var(--color-obsidian-plum);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .3s var(--ease-out);
}

.skip-link:focus { transform: none; }

.container {
  width: min(var(--page-max-width), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.container--narrow { width: min(800px, 100% - 2 * var(--gutter)); }
.center { text-align: center; }

/* ---------- 3. Typographie ---------- */
.display,
.heading-lg,
.heading-sm {
  font-family: var(--font-display);
  font-weight: 400;
}

.display {
  font-size: var(--text-display);
  line-height: .86;
  letter-spacing: -.03em;
}

.heading-lg {
  font-size: var(--text-heading-lg);
  line-height: .98;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.heading-sm {
  font-size: var(--text-heading-sm);
  line-height: 1.08;
  letter-spacing: -.02em;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: var(--text-caption);
  line-height: 1.18;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--color-ash-mauve);
}

.kicker span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-variant-numeric: tabular-nums;
}

.kicker span::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .5;
}

.kicker--light { color: var(--cream-72); }

/* Mots-clés soulignés : un trait vert fin qui se trace à l'apparition. */
mark {
  --mark-size: .1em;
  color: inherit;
  background-color: transparent;
  background-image: linear-gradient(var(--color-lime-pulse), var(--color-lime-pulse));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% var(--mark-size);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: .04em;
}

.js mark {
  background-size: 0% var(--mark-size);
  transition: background-size 1.1s var(--ease-out);
}

.js [data-split] mark { transition-delay: .65s; }

.js .is-in mark,
.js mark.is-lit { background-size: 100% var(--mark-size); }

/* ---------- 4. Liens, boutons, étiquettes ---------- */
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  text-decoration: none;
  background-image:
    linear-gradient(var(--color-lime-pulse), var(--color-lime-pulse)),
    linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%, 0 100%;
  background-size: 0% 2px, 100% 1px;
  transition: background-size .7s var(--ease-out);
}

.link:focus-visible { background-size: 100% 2px, 100% 1px; }

@media (hover: hover) {
  .link:hover { background-size: 100% 2px, 100% 1px; }
}

.link .icon {
  width: 14px;
  height: 14px;
  transition: transform .5s var(--ease-out);
}

@media (hover: hover) {
  .link:hover .icon { transform: translateX(4px); }
}

/* Texte qui « roule » au survol (dupliqué par le JS). */
.roll {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  margin-block: -.14em;
}

.roll__a,
.roll__b {
  display: block;
  padding-block: .14em;
  transition: transform .65s var(--ease-out);
}

.roll__b {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(100%);
}

:is(a, button):focus-visible .roll__a { transform: translateY(-100%); }
:is(a, button):focus-visible .roll__b { transform: translateY(0); }

@media (hover: hover) {
  :is(a, button):hover .roll__a { transform: translateY(-100%); }
  :is(a, button):hover .roll__b { transform: translateY(0); }
}

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--color-obsidian-plum);
  --btn-border: transparent;
  --btn-fill: var(--color-obsidian-plum);
  --btn-fg-hover: var(--color-bone-linen);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-text);
  font-size: var(--text-small);
  line-height: 1;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color .5s var(--ease-out),
    border-color .5s var(--ease-out),
    translate .7s var(--ease-out);
}

/* Remplissage circulaire qui part du point d'entrée du curseur. */
.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: 260%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--btn-fill);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .75s var(--ease-out);
}

.btn:focus-visible { color: var(--btn-fg-hover); }
.btn:focus-visible::before { transform: translate(-50%, -50%) scale(1); }

@media (hover: hover) {
  .btn:hover { color: var(--btn-fg-hover); }
  .btn:hover::before { transform: translate(-50%, -50%) scale(1); }
}

.btn--primary {
  --btn-bg: var(--color-kraft);
  --btn-fg: var(--color-walnut);
  --btn-fill: var(--color-bark);
  --btn-fg-hover: var(--color-bone-linen);
}

.btn--ghost { --btn-border: currentColor; }

.btn--light {
  --btn-fg: var(--color-bone-linen);
  --btn-fill: var(--color-bone-linen);
  --btn-fg-hover: var(--color-forest);
}

.btn--lg {
  height: 60px;
  padding: 0 30px;
  font-size: var(--text-body);
}

.btn__icon {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  overflow: hidden;
}

.btn__icon svg {
  position: absolute;
  inset: 0;
  width: 16px;
  height: 16px;
  transition: transform .6s var(--ease-out);
}

.btn__icon svg:last-child { transform: translateX(-130%); }
@media (hover: hover) {
  .btn:hover .btn__icon svg:first-child { transform: translateX(130%); }
  .btn:hover .btn__icon svg:last-child { transform: translateX(0); }
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--color-forest);
  color: var(--color-bone-linen);
  font-size: var(--text-label);
  line-height: 1;
}

/* ---------- 5. Navigation flottante & menu ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-inline: 16px;
  pointer-events: none;
}

/* La barre reste visible en permanence pendant le défilement. */

.nav__pill {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 6px;
  border: 1px solid rgb(31 58 43 / .1);
  border-radius: 999px;
  background: rgb(221 233 214 / .7);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  color: var(--color-forest);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav__pill { background: #dde9d6; }
}

.nav__side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding-left: 22px;
}

.nav__side--end {
  justify-content: flex-start;
  padding-left: 0;
}

.nav__side--end .nav__toggle { margin-left: auto; }

.nav__link {
  position: relative;
  font-size: var(--text-small);
  text-decoration: none;
  white-space: nowrap;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--color-lime-pulse);
  transform: scale(0);
  transition: transform .5s var(--ease-back);
}

.nav__link[aria-current]::after { transform: scale(1); }

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--hero-ink);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -.02em;
  text-decoration: none;
}

.nav__toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgb(31 58 43 / .25);
  border-radius: 50%;
  color: var(--color-forest);
  transition:
    background-color .4s var(--ease-out),
    border-color .4s var(--ease-out),
    color .4s var(--ease-out);
}

.nav__toggle[aria-expanded="true"] {
  border-color: var(--color-forest);
  background: var(--color-forest);
  color: var(--color-bone-linen);
}

@media (hover: hover) {
  .nav__toggle:hover {
    border-color: var(--color-forest);
    background: var(--color-forest);
    color: var(--color-bone-linen);
  }
}

.nav__dots {
  position: relative;
  width: 18px;
  height: 18px;
}

.nav__dots i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 4px;
  background: currentColor;
  transition:
    transform .55s var(--ease-out),
    width .45s var(--ease-out),
    height .45s var(--ease-out),
    margin .45s var(--ease-out);
}

.nav__dots i:nth-child(1) { transform: translateX(-6px); }
.nav__dots i:nth-child(3) { transform: translateX(6px); }
@media (hover: hover) {
  .nav__toggle:hover .nav__dots i:nth-child(1) { transform: translateX(-7.5px); }
  .nav__toggle:hover .nav__dots i:nth-child(3) { transform: translateX(7.5px); }
}

.nav__toggle[aria-expanded="true"] .nav__dots i {
  width: 18px;
  height: 1.5px;
  margin: -.75px 0 0 -9px;
}

.nav__toggle[aria-expanded="true"] .nav__dots i:nth-child(1) { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__dots i:nth-child(2) { transform: scaleX(0); }
.nav__toggle[aria-expanded="true"] .nav__dots i:nth-child(3) { transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow-y: auto;
  color: var(--color-bone-linen);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .9s var(--ease-in-out);
  background: var(--gradient-nature);
}

.menu.is-open { clip-path: inset(0 0 0 0); }

.menu__inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
  padding-block: 112px 40px;
}

.menu__list li { overflow: hidden; }

.menu__link {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding-block: 2px;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6.4vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  text-decoration: none;
  transform: translateY(110%);
  transition: transform .9s var(--ease-out), opacity .4s;
  transition-delay: calc(.2s + var(--i, 0) * 55ms), 0s;
}

.menu.is-open .menu__link { transform: none; }

.menu__num {
  font-family: var(--font-text);
  font-size: var(--text-caption);
  letter-spacing: .04em;
  color: var(--cream-56);
}

.menu__label {
  display: inline-block;
  transition: transform .6s var(--ease-out);
}

@media (hover: hover) {
  .menu__link:hover .menu__label {
    transform: translateX(16px);
    font-style: italic;
  }

  .menu__list:hover .menu__link:not(:hover) { opacity: .4; }
}

.menu__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--cream-16);
  color: var(--cream-72);
  opacity: 0;
  transition: opacity .6s;
}

.menu.is-open .menu__foot { opacity: 1; transition-delay: .6s; }

/* ---------- 6. Hero ---------- */
main {
  position: relative;
  z-index: 1;
}

/* Le hero reste épinglé pendant que la feuille de contenu glisse par-dessus.
   S'il dépasse la hauteur de l'écran, le JS décale son point d'accroche
   (--hero-top) pour que tout son contenu reste lisible.
   Fond très clair : un vert tendre qui se réchauffe en brun carton vers le bas. */
.hero {
  position: sticky;
  top: var(--hero-top, 0px);
  z-index: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--gradient-hero);
  color: var(--hero-ink);
}

.hero.is-covered { visibility: hidden; }

/* Ruban : de fines fibres qui teintent le fond, estompées avant la photo. */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, #000 28%, transparent 70%);
  mask-image: linear-gradient(90deg, #000 28%, transparent 70%);
  opacity: calc(1 - var(--hp, 0) * .5);
  transform: translate3d(0, calc(var(--hp, 0) * -16vh), 0);
}

/* La photo, centrée à droite : couleurs d'origine, taille proche de sa
   résolution (moins d'agrandissement sur écran Retina), bords qui ne
   s'estompent que sur quelques pixels. Sa hauteur est plafonnée sur les écrans
   hauts et étroits pour que le cheval reste entier. */
.hero__visual {
  position: absolute;
  top: 50%;
  right: 0;
  width: min(49%, 57rem);
  height: min(66%, 44vw);
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 7%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 7%);
  mask-composite: intersect;
  transform: translate3d(0, calc(-50% + var(--hp, 0) * -7vh), 0) scale(calc(1 + var(--hp, 0) * .05));
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 59% 60%;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: var(--color-walnut);
  opacity: calc(var(--hp, 0) * .32);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  padding-block: 104px 64px;
  transform: translate3d(0, calc(var(--hp, 0) * -8vh), 0) scale(calc(1 - var(--hp, 0) * .06));
  transform-origin: 50% 100%;
}

/* Titre et texte remontés au centre de l'écran, dans la moitié gauche. */
.hero__main {
  align-self: center;
  max-width: 680px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-display-xl);
  font-weight: 400;
  line-height: .86;
  letter-spacing: -.03em;
}

.hero__line {
  display: block;
  overflow: hidden;
  padding: .06em .1em .14em;
  margin: -.06em -.1em -.14em;
}

.hero__line:nth-child(1) { translate: calc(var(--hp, 0) * -6vw) 0; }
.hero__line:nth-child(2) { translate: calc(var(--hp, 0) * -3vw) 0; }

.hero__line--accent { translate: calc(var(--hp, 0) * 6vw) 0; }

.hero__line-i { display: inline-block; }

/* Sur tablette, le texte s'arrête avant la photo centrée à droite. */
.hero__aside {
  max-width: min(440px, 46vw - var(--gutter));
  margin-top: clamp(28px, 3.2vw, 44px);
}

.hero__lead {
  font-size: var(--text-body-lg);
  line-height: 1.5;
  color: var(--hero-ink-soft);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Entrée du hero, déclenchée par le JS une fois les polices prêtes. */
.js .hero__line-i {
  transform: translate3d(0, 112%, 0) rotate(4deg);
  transform-origin: 0 100%;
  transition: transform 1.5s var(--ease-out);
}

.js .hero__line:nth-child(2) .hero__line-i { transition-delay: .1s; }
.js .hero__line--accent .hero__line-i { transition-delay: .2s; }
.is-loaded .hero__line-i { transform: none; }

.js .hero__visual img {
  opacity: 0;
  scale: 1.08;
  transition: opacity 1.8s var(--ease-out) .25s, scale 2.8s var(--ease-out) .25s;
}

.is-loaded .hero__visual img {
  opacity: 1;
  scale: 1;
}

.js [data-hero-fade] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 1.2s var(--ease-out), transform 1.4s var(--ease-out);
  transition-delay: .55s;
}

.js .hero__lead { transition-delay: .8s; }
.js .hero__actions { transition-delay: .92s; }

.is-loaded [data-hero-fade] {
  opacity: 1;
  transform: none;
}

/* Mobile : la photo passe au-dessus du texte et se fond vers le bas. */
@media (max-width: 760px) {
  :root { --text-display-xl: clamp(3.5rem, 18.5vw, 5.5rem); }

  .hero {
    display: flex;
    flex-direction: column;
  }

  /* Sur mobile, la photo suffit : le ruban est masqué (et n'est plus dessiné). */
  .hero__canvas { display: none; }

  .hero__visual {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    transform: translate3d(0, calc(var(--hp, 0) * -7vh), 0) scale(calc(1 + var(--hp, 0) * .05));
    flex: none;
    width: 100%;
    height: auto;
    margin-top: 56px;
    aspect-ratio: 3 / 2;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 88%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 88%, transparent 100%);
    mask-composite: add;
  }

  .hero__visual img { object-position: 50% 55%; }

  .hero__inner {
    flex: 1;
    min-height: 0;
    padding-top: 4px;
  }

  .hero__aside { max-width: 440px; }

}

/* ---------- 7. Feuille de contenu ---------- */
.sheet {
  position: relative;
  z-index: 1;
  border-radius: var(--sheet-radius);
  background: var(--color-bone-linen);
}

.section { padding-block: var(--section-pad); }

.section-head {
  max-width: 820px;
  margin: 0 auto clamp(32px, 4vw, 52px);
}

/* ---------- 8. Hippelia en bref ---------- */
.manifesto { padding-top: clamp(56px, 6vw, 88px); }
.js .fw { opacity: .14; }

/* Carte aux coins arrondis : la photo du sac à gauche, le texte à droite. */
.intro-card {
  --card-radius: clamp(18px, 2.4vw, 32px);
  --card-pad: clamp(12px, 1.6vw, 20px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding: var(--card-pad);
  border-radius: var(--card-radius);
  background: var(--color-oat-milk);
}

.intro-card__photo {
  aspect-ratio: 3 / 2;
  border-radius: calc(var(--card-radius) - var(--card-pad));
}

.intro-card__content { padding: clamp(8px, 2vw, 32px) clamp(8px, 2.4vw, 40px) clamp(8px, 2vw, 32px) 0; }

.intro-card .statement {
  font-size: clamp(1.75rem, 2.7vw, 2.5rem);
  line-height: 1.02;
}

.manifesto__text {
  max-width: 460px;
  margin: 24px 0 20px;
  color: var(--color-ash-mauve);
  text-wrap: pretty;
}

@media (max-width: 900px) {
  .intro-card { grid-template-columns: minmax(0, 1fr); }
  .intro-card__content { padding: 8px 8px 20px; }
}

/* ---------- 8b. Photos ---------- */
/* Photos : cadre arrondi, apparition par le bas, légère parallaxe interne. */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.photo__media {
  position: absolute;
  inset: -8% 0;
}

.photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

@media (hover: hover) {
  .photo:hover img { transform: scale(1.05); }
}

/* On masque le média et non le cadre observé : un élément entièrement masqué
   par clip-path est considéré comme invisible par l'IntersectionObserver. */
.js .photo__media {
  clip-path: inset(100% 0 0 0);
  scale: 1.2;
  transition: clip-path 1.4s var(--ease-out), scale 1.9s var(--ease-out);
}

.js .photo.is-in .photo__media {
  clip-path: inset(0);
  scale: 1;
}

/* ---------- 9. Chiffres ---------- */
.stats { padding-bottom: var(--section-pad); }
.stats .kicker { margin-bottom: 20px; }

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 228px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--color-oat-milk);
  transition: background-color .6s var(--ease-out);
}

.stat::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 2px;
  background: var(--color-peacock-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease-out);
}

@media (hover: hover) {
  .stat:hover { background: #e2ddd5; }
  .stat:hover::after { transform: scaleX(1); }
}

.stat__num {
  display: flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 5.4vw, 4.75rem);
  line-height: .9;
  letter-spacing: -.03em;
  color: var(--color-peacock-teal);
  font-variant-numeric: tabular-nums;
}

.stat__unit {
  font-size: .5em;
  font-style: italic;
  letter-spacing: -.01em;
  white-space: nowrap;
}

/* Chiffres en rouleaux (construits par le JS) : ils défilent jusqu'à leur
   valeur à l'apparition, puis refont un tour au survol sur ordinateur.
   Le chiffre final invisible donne la largeur et la ligne de base ; la
   fenêtre est coupée à la hauteur de la ligne, où tiennent les chiffres. */
.odo__digit {
  position: relative;
  display: inline-block;
  clip-path: inset(0 -.2em);
}

.odo__final { visibility: hidden; }

.odo__reel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate3d(0, calc(var(--k, 0) * -.9em), 0);
  transition: transform var(--dur, 1.8s) cubic-bezier(.2, .8, .2, 1) var(--delay, 0s);
}

.odo__reel > span {
  display: block;
  height: .9em;
  line-height: .9;
}

.odo__reel.is-reset { transition: none; }

.stat__label {
  max-width: 22em;
  font-size: var(--text-small);
  line-height: 1.5;
  color: var(--color-ash-mauve);
}

.stats__note {
  margin-top: 20px;
  font-size: var(--text-caption);
  color: var(--color-ash-mauve);
}

/* ---------- 10. Bandeau typographique ---------- */
.band {
  overflow: hidden;
  padding-block: clamp(14px, 2.2vw, 28px);
  border-block: 1px solid var(--color-driftwood);
}

.band__row {
  display: flex;
  white-space: nowrap;
}

.band__track {
  display: flex;
  flex: none;
  align-items: center;
  will-change: transform;
}

.band__item {
  padding-inline: .2em;
  font-family: var(--font-display);
  font-size: var(--text-display);
  line-height: 1.04;
  letter-spacing: -.03em;
}

.band__row--alt .band__item { color: var(--color-ash-mauve); }

.band__sep {
  flex: none;
  width: clamp(28px, 3.4vw, 48px);
  height: clamp(14px, 1.7vw, 24px);
  color: var(--color-mahogany-hush);
}

/* ---------- 11. La matière (spécimens) ---------- */
.specimens {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.specimen:nth-child(even) { margin-top: clamp(28px, 5vw, 80px); }

.specimen__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background: var(--color-oat-milk);
}

.specimen__media {
  position: absolute;
  inset: 0;
}

.specimen__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(1.04);
  transition: transform 1.2s var(--ease-out);
}

@media (hover: hover) {
  .specimen:hover .specimen__img { transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(1.1); }
}

.specimen__cap {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  row-gap: 4px;
  padding-top: 16px;
}

.specimen__num {
  grid-row: span 2;
  padding-top: .5em;
  font-size: var(--text-caption);
  color: var(--color-ash-mauve);
  font-variant-numeric: tabular-nums;
}

.specimen__title {
  font-family: var(--font-display);
  font-size: var(--text-heading-sm);
  line-height: 1.08;
  letter-spacing: -.02em;
}

@media (hover: hover) {
  .specimen:hover .specimen__title { font-style: italic; }
}

.specimen__text {
  font-size: var(--text-label);
  line-height: 1.5;
  color: var(--color-ash-mauve);
}

.js .specimen__frame {
  clip-path: inset(100% 0 0 0 round var(--radius));
  transition: clip-path 1.4s var(--ease-out) calc(var(--i, 0) * 110ms);
}

.js .specimen.is-in .specimen__frame { clip-path: inset(0 0 0 0 round var(--radius)); }

.js .specimen__media {
  transform: scale(1.28);
  transition: transform 1.9s var(--ease-out) calc(var(--i, 0) * 110ms);
}

.js .specimen.is-in .specimen__media { transform: none; }

.js .specimen__cap {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 1s var(--ease-out) calc(var(--i, 0) * 110ms + .35s),
    transform 1.1s var(--ease-out) calc(var(--i, 0) * 110ms + .35s);
}

.js .specimen.is-in .specimen__cap {
  opacity: 1;
  transform: none;
}

/* ---------- 12. Avantages ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.benefits > li { display: flex; }

.benefit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--color-oat-milk);
  transition: color .6s var(--ease-out);
}

.benefit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gradient-nature);
  transform: translateY(101%);
  transition: transform .8s var(--ease-out);
}

@media (hover: hover) {
  .benefit:hover { color: var(--color-bone-linen); }
  .benefit:hover::before { transform: none; }
}

.benefit__icon {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit__title {
  margin-top: 88px;
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.02em;
}

.benefit__text {
  font-size: var(--text-small);
  line-height: 1.5;
  color: var(--color-ash-mauve);
  transition: color .6s var(--ease-out);
}

@media (hover: hover) {
  .benefit:hover .benefit__text { color: var(--cream-72); }
}

.js .benefit__icon path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.8s var(--ease-out) calc(var(--i, 0) * 90ms + .3s);
}

.js .is-in .benefit__icon path { stroke-dashoffset: 0; }
@media (hover: hover) {
  .benefit:hover .benefit__icon path { animation: redraw 1.3s var(--ease-out); }
}

@keyframes redraw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

/* Comparatif */
.compare {
  margin-top: clamp(36px, 4.5vw, 60px);
  padding: clamp(20px, 3vw, 40px);
  border: 1px solid var(--color-driftwood);
  border-radius: var(--radius);
}

.compare__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
  margin-bottom: 24px;
}

.compare__note {
  font-size: var(--text-label);
  color: var(--color-ash-mauve);
}

.compare__table {
  width: 100%;
  border-collapse: collapse;
}

.compare__table th,
.compare__table td {
  padding: 16px 12px;
  border-top: 1px solid var(--color-driftwood);
  font-weight: 400;
  text-align: left;
  vertical-align: middle;
}

.compare__table thead th {
  padding-top: 0;
  border-top: 0;
  font-size: var(--text-label);
  color: var(--color-ash-mauve);
}

.compare__table tbody th {
  font-family: var(--font-display);
  font-size: var(--text-heading-sm);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.compare__table tbody tr { transition: background-color .4s var(--ease-out); }
@media (hover: hover) {
  .compare__table tbody tr:hover { background: var(--color-oat-milk); }
}
.compare__table tbody tr:nth-child(2) { --r: 1; }
.compare__table tbody tr:nth-child(3) { --r: 2; }
.compare__table tbody tr:nth-child(4) { --r: 3; }
.compare__table tbody tr:nth-child(5) { --r: 4; }

.rating {
  display: inline-flex;
  gap: 4px;
  vertical-align: middle;
}

.rating i {
  position: relative;
  overflow: hidden;
  width: 22px;
  height: 6px;
  border-radius: 3px;
  background: var(--color-driftwood);
}

.rating i:nth-child(2) { --c: 1; }
.rating i:nth-child(3) { --c: 2; }
.rating i:nth-child(4) { --c: 3; }
.rating i:nth-child(5) { --c: 4; }

.rating i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-mahogany-hush);
  transform: scaleX(var(--on, 0));
  transform-origin: left;
  transition: transform .6s var(--ease-out);
  transition-delay: calc(var(--r, 0) * 90ms + var(--c, 0) * 60ms + .25s);
}

.is-us .rating i::after { background: var(--color-peacock-teal); }

.rating[data-v="1"] i:nth-child(-n + 1)::after,
.rating[data-v="2"] i:nth-child(-n + 2)::after,
.rating[data-v="3"] i:nth-child(-n + 3)::after,
.rating[data-v="4"] i:nth-child(-n + 4)::after,
.rating[data-v="5"] i::after { --on: 1; }

.js .compare:not(.is-in) .rating i::after { transform: scaleX(0); }

/* ---------- 13. Mode d'emploi ---------- */
.usage__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 64px);
  border-radius: var(--radius);
  background: var(--gradient-nature);
  color: var(--color-bone-linen);
}

.usage__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(32px, 5vw, 72px);
  margin-bottom: clamp(36px, 5vw, 64px);
}

.usage__photo { aspect-ratio: 4 / 3; }
.usage__head .display em,
.cta .display em { display: block; }

.usage__body { position: relative; }

.usage__track {
  position: relative;
  height: 1px;
  margin-bottom: 40px;
  background: var(--cream-16);
}

.usage__fill {
  position: absolute;
  inset: 0;
  background: var(--color-bone-linen);
  transform: scaleX(var(--p, 1));
  transform-origin: left;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.step { position: relative; }

.step::before {
  content: "";
  position: absolute;
  top: -45px;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1px solid var(--cream-56);
  border-radius: 50%;
  background: var(--color-forest);
  transition: background-color .5s var(--ease-out), border-color .5s var(--ease-out), transform .5s var(--ease-back);
}

.step.is-active::before {
  border-color: var(--color-bone-linen);
  background: var(--color-bone-linen);
  transform: scale(1.3);
}

.step__num {
  display: block;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: var(--text-display);
  line-height: .9;
  letter-spacing: -.03em;
  color: transparent;
  -webkit-text-stroke: 1px var(--cream-56);
  transition: color .8s var(--ease-out), -webkit-text-stroke-color .8s var(--ease-out);
}

.step.is-active .step__num {
  color: var(--color-bone-linen);
  -webkit-text-stroke-color: var(--color-bone-linen);
}

.step__title {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.step__text {
  max-width: 30em;
  font-size: var(--text-small);
  color: var(--cream-72);
}

.js .step {
  opacity: .4;
  transition: opacity .8s var(--ease-out);
}

.js .step.is-active { opacity: 1; }

/* ---------- 14. Pour qui ---------- */
.audience__list { border-bottom: 1px solid var(--color-driftwood); }

.audience__item {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 330px);
  align-items: center;
  gap: 24px;
  padding: 28px 20px;
  border-top: 1px solid var(--color-driftwood);
}

.audience__item::before {
  content: "";
  position: absolute;
  inset: -1px 0 0;
  z-index: -1;
  border-radius: var(--radius);
  background: var(--gradient-nature);
  transform: scaleY(0);
  transform-origin: 50% var(--o, 100%);
  transition: transform .6s var(--ease-out);
}

@media (hover: hover) {
  .audience__item:hover::before { transform: scaleY(1); }
}

.audience__num {
  font-size: var(--text-caption);
  color: var(--color-ash-mauve);
  font-variant-numeric: tabular-nums;
  transition: color .5s, opacity .5s;
}

.audience__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.6vw, 4rem);
  line-height: .95;
  letter-spacing: -.03em;
  transition: transform .7s var(--ease-out), color .5s, opacity .5s;
}

.audience__desc {
  font-size: var(--text-small);
  color: var(--color-ash-mauve);
  transition: color .5s, opacity .5s;
}

.audience__hint {
  display: block;
  margin-top: .5em;
  font-family: var(--font-text);
  font-size: max(.8125rem, .28em);
  font-style: normal;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--color-ash-mauve);
  transition: color .5s;
}

@media (hover: hover) {
  .audience__item:hover .audience__title {
    color: var(--color-bone-linen);
    font-style: italic;
    transform: translateX(20px);
  }

  .audience__item:hover .audience__num,
  .audience__item:hover .audience__desc,
  .audience__item:hover .audience__hint { color: var(--cream-72); }

  .audience__list:hover .audience__item:not(:hover) > * { opacity: .35; }
}

/* ---------- 15. FAQ ---------- */
.faq__list { border-bottom: 1px solid var(--color-driftwood); }
.faq__item { border-top: 1px solid var(--color-driftwood); }
.faq__h { font-weight: 400; }

.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  font-family: var(--font-display);
  font-size: var(--text-heading);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-align: left;
}

.faq__q > span:first-child { transition: transform .6s var(--ease-out); }
@media (hover: hover) {
  .faq__q:hover > span:first-child { transform: translateX(10px); }
}

.faq__icon {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-driftwood);
  border-radius: var(--radius-sm);
  transition: background-color .5s var(--ease-out), border-color .5s var(--ease-out), color .5s var(--ease-out);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.2px;
  margin: -.6px 0 0 -7px;
  background: currentColor;
  transition: transform .6s var(--ease-out);
}

.faq__icon::after { transform: rotate(90deg); }
@media (hover: hover) {
  .faq__q:hover .faq__icon { border-color: var(--color-obsidian-plum); }
}

.faq__q[aria-expanded="true"] .faq__icon {
  border-color: var(--color-forest);
  background: var(--color-forest);
  color: var(--color-bone-linen);
}

.faq__q[aria-expanded="true"] .faq__icon::before { transform: rotate(180deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(180deg); }

.faq__a {
  display: grid;
  grid-template-rows: 1fr;
}

.faq__a-inner { overflow: hidden; }

.faq__a p {
  max-width: 640px;
  padding: 0 64px 28px 0;
  color: var(--color-ash-mauve);
}

.js .faq__a {
  grid-template-rows: 0fr;
  transition: grid-template-rows .7s var(--ease-out);
}

.js .faq__item.is-open .faq__a { grid-template-rows: 1fr; }

.js .faq__a p {
  opacity: 0;
  transform: translate3d(0, -8px, 0);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
}

.js .faq__item.is-open .faq__a p {
  opacity: 1;
  transform: none;
  transition-delay: .15s;
}

/* ---------- 16. Appel à l'action ---------- */
.cta { padding-block: clamp(48px, 5vw, 80px); }

.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.cta__photo { aspect-ratio: 4 / 5; }

.cta__text {
  max-width: 460px;
  margin: 32px 0 40px;
  font-size: var(--text-body-lg);
  color: var(--color-ash-mauve);
  text-wrap: pretty;
}

.cta__small {
  margin-top: 24px;
  font-size: var(--text-small);
  color: var(--color-ash-mauve);
}

/* ---------- 17. Pied de page ---------- */
.footer {
  position: relative;
  z-index: 0;
  overflow: hidden;
  background: var(--gradient-nature);
  color: var(--color-bone-linen);
}

.footer__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.footer__inner {
  position: relative;
  padding-top: clamp(64px, 8vw, 112px);
  transform: translate3d(0, calc((1 - var(--fp, 1)) * -22%), 0);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer__intro {
  display: grid;
  align-content: start;
  gap: clamp(14px, 1.6vw, 22px);
}

.footer__tagline {
  font-family: var(--font-display);
  font-size: var(--text-heading-lg);
  line-height: .98;
  letter-spacing: -.025em;
}

.footer__label {
  margin-bottom: 16px;
  font-size: var(--text-caption);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--cream-56);
}

.footer__col li + li { margin-top: 8px; }

.footer__col a {
  font-size: var(--text-small);
  text-decoration: none;
}

/* « Hippelia » en signature, sous le slogan. */
.footer__brand {
  overflow: hidden;
  padding-block: .06em .22em;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6.25rem);
  line-height: .85;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.footer__brand .ch {
  display: inline-block;
  transition:
    transform 1.3s var(--ease-out) calc(var(--ci, 0) * 70ms),
    translate .6s var(--ease-out);
}

@media (hover: hover) {
  .footer__brand .ch:hover { translate: 0 -7%; }
}
.js .footer__brand .ch { transform: translate3d(0, 135%, 0); }
.js .footer.is-in .footer__brand .ch { transform: none; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  margin-top: clamp(40px, 5vw, 72px);
  padding-block: 20px 24px;
  border-top: 1px solid var(--cream-16);
  font-size: var(--text-label);
  color: var(--cream-56);
}

.footer__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer__bottom a {
  text-decoration: none;
  transition: color .4s;
}

.footer__bottom a:hover { color: var(--color-bone-linen); }

/* Le pied de page se dévoile sous la feuille de contenu (grands écrans). */
@media (min-width: 768px) {
  .footer {
    position: sticky;
    bottom: 0;
  }

  .footer.is-static { position: relative; }
}

/* ---------- 18. Apparitions au défilement (JS) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}

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

.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: .08em .06em .16em;
  margin: -.08em -.06em -.16em;
}

.w__i { display: inline-block; }

.js [data-split] .w__i {
  transform: translate3d(0, 112%, 0) rotate(3deg);
  transform-origin: 0 100%;
  transition: transform 1.2s var(--ease-out);
  transition-delay: calc(var(--wi, 0) * 45ms);
}

.js [data-split].is-in .w__i { transform: none; }

/* ---------- 18b. Pages intérieures ---------- */
/* En-tête des pages : le même dégradé que l'accueil, la feuille de contenu
   vient mordre sur son bas avec ses coins arrondis. */
.page-hero {
  position: relative;
  z-index: 0;
  padding: clamp(120px, 14vw, 168px) 0 calc(clamp(48px, 6vw, 88px) + var(--sheet-radius));
  background: var(--gradient-hero);
  color: var(--hero-ink);
}

.page-hero--full {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
}

.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.page-hero__inner--solo { grid-template-columns: minmax(0, 860px); }
.page-hero .kicker { color: var(--hero-ink-soft); }
.page-hero__title em { display: block; }

.page-hero__lead {
  max-width: 520px;
  margin-top: 28px;
  font-size: var(--text-body-lg);
  color: var(--hero-ink-soft);
  text-wrap: pretty;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.page-hero__photo { aspect-ratio: 4 / 3; }
.sheet--page { margin-top: calc(-1 * var(--sheet-radius)); }
.usage__intro--solo { grid-template-columns: minmax(0, 1fr); }

/* Fiche produit */
.specs {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 80px);
}

.specs__text {
  max-width: 440px;
  margin-top: 24px;
  color: var(--color-ash-mauve);
  text-wrap: pretty;
}

.spec-list {
  margin: 0;
  border-top: 1px solid var(--color-driftwood);
}

.spec-list > div {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-driftwood);
  transition: padding .5s var(--ease-out);
}

@media (hover: hover) {
  .spec-list > div:hover { padding-left: 12px; }
}

.spec-list dt {
  padding-top: .45em;
  font-size: var(--text-caption);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--color-ash-mauve);
}

.spec-list dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-heading-sm);
  line-height: 1.15;
  letter-spacing: -.02em;
}

/* Cartes « animaux » (page NAC) */
.animals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.animals > li { display: flex; }
.animals .benefit { min-height: 260px; }

.benefit__num {
  font-size: var(--text-caption);
  letter-spacing: .09em;
  color: var(--color-ash-mauve);
  transition: color .6s var(--ease-out);
}

@media (hover: hover) {
  .benefit:hover .benefit__num { color: var(--cream-72); }
}
.animals .benefit__title { margin-top: 64px; }

/* Choix sous forme de pastilles (estimateur, formulaire) */
.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice { position: relative; }

.choice input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--color-driftwood);
  border-radius: var(--radius-sm);
  background: var(--color-bone-linen);
  font-size: var(--text-small);
  transition:
    background-color .4s var(--ease-out),
    border-color .4s var(--ease-out),
    color .4s var(--ease-out);
}

.choice:hover span { border-color: var(--color-ash-mauve); }

.choice input:checked + span {
  border-color: var(--color-forest);
  background: var(--color-forest);
  color: var(--color-bone-linen);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--color-obsidian-plum);
  outline-offset: 2px;
}

/* Estimateur de quantités */
.estimator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius);
  background: var(--color-oat-milk);
}

.estimator__controls {
  display: grid;
  align-content: start;
  gap: 36px;
}

.estimator__field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.estimator__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
  padding: 0;
  font-family: var(--font-display);
  font-size: var(--text-heading-sm);
  letter-spacing: -.02em;
}

.estimator__value {
  font-size: var(--text-heading-lg);
  line-height: 1;
  color: var(--color-forest);
}

.estimator__range {
  width: 100%;
  accent-color: var(--color-bark);
  cursor: pointer;
}

.estimator__results {
  display: grid;
  align-content: start;
  gap: 12px;
}

.result {
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--color-bone-linen);
}

.result__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--color-peacock-teal);
  font-variant-numeric: tabular-nums;
}

.result__num.is-bump { animation: bump .5s var(--ease-out); }

@keyframes bump {
  from { opacity: .35; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.result__label {
  margin-top: 8px;
  font-size: var(--text-small);
  color: var(--color-ash-mauve);
}

.estimator__note {
  grid-column: 1 / -1;
  font-size: var(--text-caption);
  color: var(--color-ash-mauve);
}

/* Bloc d'appel à l'action des pages */
.page-cta {
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 64px);
  border-radius: var(--radius);
  background: var(--gradient-hero);
  color: var(--hero-ink);
  text-align: center;
}

.page-cta .kicker { color: var(--hero-ink-soft); }
.page-cta .display em { display: block; }

.page-cta__text {
  max-width: 460px;
  margin: 24px auto 32px;
  color: var(--hero-ink-soft);
}

.page-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Contact et formulaire de devis */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr);
  align-items: start;
  gap: clamp(32px, 5vw, 80px);
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field--full { grid-column: 1 / -1; }

.field__label {
  padding: 0;
  font-size: var(--text-small);
  color: var(--color-mahogany-hush);
}

.field__label abbr {
  color: var(--color-bark);
  text-decoration: none;
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--color-driftwood);
  border-radius: var(--radius);
  background: #fbfaf8;
  color: var(--color-obsidian-plum);
  font: inherit;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}

.input:hover { border-color: var(--color-ash-mauve); }

.input:focus {
  outline: none;
  border-color: var(--color-forest);
  box-shadow: 0 0 0 3px rgb(47 90 64 / .16);
}

.input[aria-invalid="true"] { border-color: #a23a26; }

textarea.input {
  min-height: 140px;
  resize: vertical;
}

select.input {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%232a1a1d' stroke-width='1.4'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.field__error {
  min-height: 1.2em;
  font-size: var(--text-caption);
  color: #a23a26;
}

.field__error:empty { min-height: 0; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--text-small);
  color: var(--color-ash-mauve);
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--color-forest);
}

.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 8px;
}

.form__status {
  font-size: var(--text-small);
  color: var(--color-forest);
}

.form__status.is-error { color: #a23a26; }

.contact__aside {
  display: grid;
  gap: 16px;
}

.contact-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--color-oat-milk);
}

.contact-card__title {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: var(--text-heading-sm);
  font-weight: 400;
  letter-spacing: -.02em;
}

.contact-card p { color: var(--color-ash-mauve); }
.contact-card__list li + li { margin-top: 8px; }

/* Pages légales */
.legal {
  max-width: 760px;
  margin-inline: auto;
}

.legal h2 {
  margin: 48px 0 16px;
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.legal h2:first-child { margin-top: 0; }
.legal p,
.legal li { color: var(--color-mahogany-hush); }
.legal p + p { margin-top: 12px; }

.legal ul {
  margin: 12px 0;
  padding-left: 1.2em;
  list-style: disc;
}

.legal li + li { margin-top: 6px; }

/* Informations à compléter avant la mise en ligne : bien visibles. */
.todo {
  padding: 0 .25em;
  border-radius: 2px;
  background: rgb(207 169 123 / .35);
}

@media (max-width: 900px) {
  .page-hero__inner,
  .specs,
  .estimator,
  .contact { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .form { grid-template-columns: minmax(0, 1fr); }
  .spec-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* ---------- 18c. Grille tarifaire ---------- */
/* Cadre kraft aux coins arrondis (même teinte que les boutons). */
.pricing {
  --pricing-line: rgb(59 42 28 / .2);
  --pricing-pad: clamp(20px, 3.4vw, 48px);
  overflow: hidden;
  padding-block: clamp(8px, 1.2vw, 16px) clamp(20px, 2.4vw, 32px);
  border-radius: clamp(18px, 2.4vw, 32px);
  background: var(--color-kraft);
  color: var(--color-walnut);
}

.pricing__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-text);
  font-variant-numeric: lining-nums tabular-nums;
}

.pricing__table th,
.pricing__table td {
  padding: clamp(16px, 1.8vw, 22px) clamp(16px, 3vw, 48px);
  border-top: 1px solid var(--pricing-line);
  font-weight: 400;
  text-align: left;
  vertical-align: middle;
}

.pricing__table :is(th, td):first-child { padding-left: var(--pricing-pad); }
.pricing__table :is(th, td):last-child { padding-right: var(--pricing-pad); }

/* Colonnes de prix : ajustées à leur contenu, chiffres alignés à droite. */
.pricing__table :is(th, td):not(:first-child) {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

.pricing__table thead th {
  padding-block: clamp(18px, 2vw, 24px) 14px;
  border-top: 0;
  font-size: var(--text-small);
  font-weight: 500;
}

.pricing__table tbody tr:first-child > * { border-top-color: rgb(59 42 28 / .38); }
.pricing__table abbr { text-decoration: none; }

.pricing__table tbody th {
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.3;
}

.pricing__table td {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 500;
  line-height: 1.2;
}

.pricing__table tbody tr { transition: background-color .4s var(--ease-out); }
@media (hover: hover) {
  .pricing__table tbody tr:hover { background: rgb(247 245 242 / .2); }
}
.pricing__table tbody tr.is-best { background: rgb(247 245 242 / .36); }

.pricing .tag {
  margin-left: 10px;
  background: var(--color-walnut);
  color: var(--color-bone-linen);
  vertical-align: middle;
}

.pricing__note {
  margin-top: 16px;
  padding-inline: var(--pricing-pad);
  font-size: var(--text-caption);
}

/* Sur mobile, chaque ligne devient une petite carte. */
@media (max-width: 720px) {
  .pricing__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .pricing__table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    padding: 18px var(--pricing-pad);
    border-top: 1px solid var(--pricing-line);
  }

  .pricing__table tbody tr:first-child { border-top: 0; }

  .pricing__table :is(th, td),
  .pricing__table :is(th, td):first-child,
  .pricing__table :is(th, td):last-child,
  .pricing__table :is(th, td):not(:first-child) {
    width: auto;
    padding: 0;
    border: 0;
    text-align: left;
  }

  .pricing__table tbody th { grid-column: 1 / -1; }

  .pricing .tag {
    display: flex;
    width: fit-content;
    margin: 8px 0 0;
  }

  .pricing__table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: var(--text-caption);
    font-weight: 400;
  }
}

/* ---------- 19. Responsive ---------- */
@media (max-width: 1100px) {
  .stats__grid,
  .specimens,
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__intro { grid-column: 1 / -1; margin-bottom: 16px; }
}

@media (max-width: 900px) {
  .usage__intro,
  .cta__grid { grid-template-columns: minmax(0, 1fr); }

  .cta__photo { max-width: 520px; }
}

@media (max-width: 760px) {
  .nav__side .nav__link,
  .nav__side:first-child { display: none; }

  .nav__pill {
    grid-template-columns: auto auto;
    gap: 20px;
    padding-left: 22px;
  }

  .audience__item {
    grid-template-columns: 36px minmax(0, 1fr);
    row-gap: 8px;
    padding-inline: 12px;
  }

  .audience__desc { grid-column: 2; }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-left: 36px;
  }

  .usage__track {
    position: absolute;
    top: 6px;
    bottom: 0;
    left: 4px;
    width: 1px;
    height: auto;
    margin: 0;
  }

  .usage__fill {
    transform: scaleY(var(--p, 1));
    transform-origin: top;
  }

  .step::before {
    top: 6px;
    left: -36px;
  }

  .step__num { margin-bottom: 12px; }

  .compare { padding: 20px 14px; }

  .compare__table th,
  .compare__table td { padding: 14px 4px; }

  .compare__table thead th { font-size: var(--text-caption); }
  .compare__table tbody th { font-size: 1.0625rem; }
  .rating { gap: 2px; }
  .rating i { width: 9px; height: 5px; }

  .faq__a p { padding-right: 0; }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .stats__grid { grid-template-columns: minmax(0, 1fr); }
  .stat { min-height: 0; }
  .benefits { grid-template-columns: minmax(0, 1fr); }
  .benefit { min-height: 0; }
  .benefit__title { margin-top: 32px; }
  .specimens { gap: 12px; }
  .specimen__text { display: none; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* ---------- 20. Réduction des animations ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal],
  .js [data-hero-fade],
  .js .hero__line-i,
  .js [data-split] .w__i,
  .js .specimen__media,
  .js .specimen__cap,
  .js .footer__brand .ch {
    opacity: 1;
    transform: none;
  }

  .js .specimen__frame,
  .js .photo__media { clip-path: none; }

  .js .photo__media { scale: 1; }
}
