/* ==========================================================================
   L'Arbre Fruitier — feuille de styles
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-full-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-full-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Couleurs de base */
  --bg: #fbf7ee;
  --bg-2: #f3ecdc;
  --paper: #fffdf8;
  --ink: #15231a;
  --ink-2: #3f4d42;
  --muted: #68746a;
  --forest: #1f5a27;
  --forest-2: #2b7431;
  --forest-deep: #10301a;
  --leaf: #62a83c;
  --leaf-light: #9fd07a;
  --bark: #8a5627;
  --bark-light: #d59c5f;
  --line: rgba(21, 35, 26, 0.12);
  --line-strong: rgba(21, 35, 26, 0.22);

  /* Les neuf fruits du logo */
  --f-logement: #d6313a;
  --f-alimentaire: #eba313;
  --f-education: #ee7e1b;
  --f-justice: #0e8585;
  --f-dialogue: #7a3db0;
  --f-solidarite: #3d983a;
  --f-familles: #f0961e;
  --f-insertion: #1e6bc0;
  --f-enfance: #dd3268;

  /* Typo */
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Mise en page */
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 28px;
  --radius-sm: 16px;
  --header-h: 76px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grain léger pour la matière papier */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Le bandeau incliné déborde volontairement : on coupe tout débordement horizontal
   pour qu'aucun mobile ne puisse faire glisser la page sur le côté. */
main { overflow-x: clip; }

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: var(--leaf); color: #fff; }

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

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

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--forest);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip:focus { transform: none; }

.t-green { color: var(--forest-2); }
.nowrap { white-space: nowrap; }
.t-bark { color: var(--bark); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(96px, 13vw, 180px); }

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest-2);
}
.label::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: currentColor;
}
.label--light { color: var(--leaf-light); }

.h2 {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-variation-settings: "SOFT" 60, "opsz" 144;
  margin-top: 18px;
  text-wrap: balance;
}
.h2 em, .hero__title em, .manifesto em, .help__title em {
  font-style: italic;
  font-weight: 380;
  color: var(--bark);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}

.section-head { max-width: 780px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head__lead {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-2);
  max-width: 580px;
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .section-head__lead { margin-inline: auto; }
.section-head--center .label::after {
  content: "";
  width: 28px;
  height: 1.5px;
  background: currentColor;
}
.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
  gap: 40px;
}

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--forest);
  --btn-fg: #fff;
  --btn-hover: var(--leaf);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: var(--btn-hover);
  border-radius: inherit;
  transform: translateY(102%);
  transition: transform 0.55s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover { border-color: var(--btn-hover); }
.btn .icon { transition: transform 0.45s var(--ease-out); }
.btn:hover .icon { transform: translateX(3px) rotate(-8deg); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-hover: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { color: var(--bg); }
.btn--sm { padding: 11px 18px; font-size: 0.9rem; gap: 8px; }
.btn--sm .icon { width: 1.05em; height: 1.05em; }

/* ---------- Loader ---------- */
.loader { display: none; }
.motion .loader {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  background: var(--bg);
}
.loader__inner { display: grid; justify-items: center; gap: 18px; }
.loader__tree { width: clamp(120px, 16vw, 180px); }
.loader__word {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.loader__bar {
  width: 160px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.loader__bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--f-solidarite), var(--f-alimentaire), var(--f-logement));
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Barre de progression ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: 3px;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg,
    var(--f-solidarite), var(--f-education), var(--f-alimentaire),
    var(--f-logement), var(--f-dialogue), var(--f-justice), var(--f-insertion));
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 100;
  padding-inline: var(--gutter);
  transition: transform 0.6s var(--ease-out);
}
.header.is-hidden { transform: translateY(calc(-100% - 20px)); }
.header__inner {
  max-width: var(--container);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 12px 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.5s var(--ease-out), border-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), height 0.5s var(--ease-out);
}
.header.is-scrolled .header__inner {
  height: 64px;
  background: rgba(251, 247, 238, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-color: var(--line);
  box-shadow: 0 10px 40px -18px rgba(16, 48, 26, 0.25);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.brand__mark { width: 46px; transition: transform 0.6s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
.brand__name {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.nav ul { display: flex; gap: 6px; list-style: none; padding: 0; }
.nav a {
  position: relative;
  display: block;
  padding: 8px 12px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.3s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1.5px;
  background: var(--forest-2);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.burger {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}
.burger span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 1.8px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out);
}
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 27px; }
.burger[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }

/* ---------- Menu mobile ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
  background: var(--forest-deep);
  color: var(--bg);
  clip-path: circle(0% at calc(100% - 50px) 50px);
  transition: clip-path 0.8s var(--ease-in-out);
}
.menu[hidden] { display: flex; visibility: hidden; }
.menu.is-open { clip-path: circle(150% at calc(100% - 50px) 50px); visibility: visible; }
.menu__list { list-style: none; padding: 0; display: grid; gap: 6px; }
.menu__list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  line-height: 1.15;
  text-decoration: none;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), color 0.3s;
}
.menu__list a span { font-family: var(--sans); font-size: 0.85rem; color: var(--leaf-light); }
.menu__list a:hover { color: var(--leaf-light); }
.menu.is-open .menu__list a { opacity: 1; transform: none; }
.menu.is-open .menu__list li:nth-child(1) a { transition-delay: 0.25s; }
.menu.is-open .menu__list li:nth-child(2) a { transition-delay: 0.31s; }
.menu.is-open .menu__list li:nth-child(3) a { transition-delay: 0.37s; }
.menu.is-open .menu__list li:nth-child(4) a { transition-delay: 0.43s; }
.menu.is-open .menu__list li:nth-child(5) a { transition-delay: 0.49s; }
.menu__foot { margin-top: 48px; font-size: 0.9rem; color: rgba(251, 247, 238, 0.6); }
body.menu-open .header .brand__name .t-green { color: var(--leaf-light); }
body.menu-open .header .brand__name .t-bark { color: var(--bark-light); }
body.menu-open .header.is-scrolled .header__inner { background: transparent; border-color: transparent; box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 96px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: drift 18s var(--ease-in-out) infinite alternate;
}
.blob--1 { width: 46vw; height: 46vw; right: -8vw; top: -10vw; background: radial-gradient(circle, rgba(159, 208, 122, 0.75), transparent 70%); }
.blob--2 { width: 30vw; height: 30vw; right: 22vw; bottom: -10vw; background: radial-gradient(circle, rgba(235, 163, 19, 0.45), transparent 70%); animation-duration: 22s; }
.blob--3 { width: 26vw; height: 26vw; left: -8vw; top: 30%; background: radial-gradient(circle, rgba(221, 50, 104, 0.22), transparent 70%); animation-duration: 26s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-4vw, 3vw, 0) scale(1.12); }
}
.hero__leaves { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.6);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
}
.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 4px rgba(98, 168, 60, 0.2);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 50% { box-shadow: 0 0 0 7px rgba(98, 168, 60, 0.05); } }

.hero__title {
  margin-top: 28px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 6.8vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-variation-settings: "SOFT" 50, "opsz" 144;
  text-wrap: balance;
}
.hero__title em { color: var(--forest-2); }
.hero__lead {
  margin-top: 28px;
  max-width: 540px;
  font-size: clamp(1.06rem, 1.35vw, 1.22rem);
  color: var(--ink-2);
}
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__visual { position: relative; }
.tree {
  position: relative;
  width: min(100%, 620px);
  margin-inline: auto;
  aspect-ratio: 1;
}
.tree__img {
  width: 100%;
  filter: drop-shadow(0 40px 50px rgba(31, 90, 39, 0.14));
  user-select: none;
  -webkit-user-drag: none;
}

.fruit {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 13%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
  -webkit-tap-highlight-color: transparent;
}
.fruit::before,
.fruit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.fruit::before {
  inset: -7%;
  border: 2px solid var(--c);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.fruit::after {
  animation: fruit-pulse 4.5s var(--ease-out) infinite;
  animation-delay: var(--d, 0s);
}
@keyframes fruit-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 55%, transparent); }
  22%, 100% { box-shadow: 0 0 0 22px color-mix(in srgb, var(--c) 0%, transparent); }
}
.fruit:hover::before,
.fruit:focus-visible::before,
.fruit.is-active::before { opacity: 1; transform: scale(1); }
.fruit:focus-visible { outline: none; }
.fruit__tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  z-index: 2;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(var(--tip-x, -50%), 8px);
  transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out);
}
/* Fruits au bord de l'arbre : l'infobulle s'ouvre vers l'intérieur pour ne jamais sortir de l'écran */
.fruit--left .fruit__tip { --tip-x: -18px; }
.fruit--right .fruit__tip { left: auto; right: 50%; --tip-x: 18px; }
.fruit--left .fruit__tip::after { left: 18px; }
.fruit--right .fruit__tip::after { left: auto; right: 18px; transform: translate(50%, -50%) rotate(45deg); }
.fruit__tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: inherit;
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 2px;
  z-index: -1;
}
.fruit__tip::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--c);
  vertical-align: 1px;
}
.fruit:hover .fruit__tip,
.fruit:focus-visible .fruit__tip,
.fruit.is-active .fruit__tip { opacity: 1; transform: translate(var(--tip-x, -50%), 0); }

.tree__hint {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}
.tree__hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--f-education);
}

.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.scroll-cue__line {
  position: relative;
  width: 1.5px;
  height: 44px;
  background: var(--line);
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--forest-2);
  animation: cue 2.2s var(--ease-in-out) infinite;
}
@keyframes cue {
  from { transform: translateY(-100%); }
  to { transform: translateY(260%); }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 26px;
  background: var(--forest-deep);
  color: var(--bg);
  transform: rotate(-1.2deg) scale(1.02);
  margin-block: 0 -10px;
  z-index: 2;
}
.marquee__track { display: flex; width: max-content; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 40px);
  padding-right: clamp(22px, 3vw, 40px);
  flex: none;
}
.marquee span {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 350;
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  line-height: 1;
  white-space: nowrap;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.marquee i {
  width: clamp(14px, 1.4vw, 20px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--c);
  flex: none;
}
html:not(.motion) .marquee__track { animation: marquee 40s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- À propos ---------- */
.about { position: relative; }
.manifesto {
  margin-top: 32px;
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(1.9rem, 4vw, 3.7rem);
  line-height: 1.14;
  letter-spacing: -0.022em;
  font-variation-settings: "SOFT" 40, "opsz" 144;
  max-width: 1150px;
  text-wrap: pretty;
}
.manifesto em { color: var(--forest-2); }

.pillars {
  margin-top: clamp(64px, 8vw, 110px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
.pillar { padding-top: 28px; border-top: 1px solid var(--line-strong); }
.pillar__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bark);
}
.pillar__title {
  margin-top: 16px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.pillar p { margin-top: 12px; color: var(--ink-2); }

.facts {
  margin-top: clamp(64px, 8vw, 110px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
}
.fact {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 8px;
  padding: clamp(24px, 3vw, 40px);
}
.fact + .fact { border-left: 1px solid var(--line); }
.fact dt { font-size: 0.92rem; color: var(--muted); font-weight: 600; }
.fact dd {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--forest);
  font-variant-numeric: tabular-nums lining-nums;
}
.fact__small { font-size: 0.4em; letter-spacing: 0; color: var(--bark); font-style: italic; }

/* ---------- Missions ---------- */
.missions { background: var(--bg); }
.mgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  list-style: none;
  padding: 0;
}
.mcard {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: clamp(26px, 2.6vw, 36px);
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  scroll-margin-top: 120px;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), color 0.45s var(--ease-out), border-color 0.45s;
}
.mcard__fill {
  position: absolute;
  left: var(--mx, 50%);
  top: var(--my, 50%);
  z-index: -1;
  width: 300%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--c);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.8s var(--ease-out);
  pointer-events: none;
}
.mcard:hover, .mcard.is-flash, .mcard.is-lit {
  color: var(--on);
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--c) 80%, #000);
}
.mcard:hover .mcard__fill, .mcard.is-flash .mcard__fill, .mcard.is-lit .mcard__fill { transform: translate(-50%, -50%) scale(1); }

.mcard__top { display: flex; align-items: flex-start; justify-content: space-between; }
.mcard__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.12), inset 0 6px 10px rgba(255, 255, 255, 0.25);
  transition: transform 0.6s var(--ease-out), background 0.45s, color 0.45s;
}
.mcard__icon .icon { width: 28px; height: 28px; }
.mcard:hover .mcard__icon, .mcard.is-flash .mcard__icon, .mcard.is-lit .mcard__icon {
  background: var(--on);
  color: var(--c);
  transform: rotate(-10deg) scale(1.06);
}
.mcard__n {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--muted);
  transition: color 0.45s;
}
.mcard:hover .mcard__n, .mcard.is-flash .mcard__n, .mcard.is-lit .mcard__n { color: inherit; opacity: 0.8; }
.mcard__title {
  margin-top: auto;
  padding-top: 40px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.mcard__text { margin-top: 12px; font-size: 0.98rem; color: var(--ink-2); transition: color 0.45s; }
.mcard:hover .mcard__text, .mcard.is-flash .mcard__text, .mcard.is-lit .mcard__text { color: inherit; opacity: 0.9; }
.mcard__tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.mcard__tags li {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.78rem;
  font-weight: 600;
  transition: border-color 0.45s;
}
.mcard:hover .mcard__tags li, .mcard.is-flash .mcard__tags li, .mcard.is-lit .mcard__tags li { border-color: color-mix(in srgb, var(--on) 40%, transparent); }

/* ---------- Démarche ---------- */
.approach {
  position: relative;
  background: var(--bg-2);
  border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
  overflow: hidden;
}
.approach__pin {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(40px, 6vh, 72px);
  padding-block: clamp(72px, 10vh, 130px);
}
.approach__head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
  gap: 40px;
}
.approach__intro { color: var(--ink-2); font-size: 1.12rem; max-width: 440px; }
.approach__viewport { overflow: hidden; }
/* Sans animation (ou sans JS), la frise se fait défiler à la main */
html:not(.motion) .approach__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
html:not(.motion) .step { scroll-snap-align: center; }
.approach__track {
  position: relative;
  display: flex;
  gap: clamp(18px, 2vw, 28px);
  width: max-content;
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
  padding-block: 24px;
}
.approach__vine {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 120px;
  transform: translateY(-50%);
  z-index: 0;
  overflow: visible;
}
.approach__vine path {
  fill: none;
  stroke: var(--leaf);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  opacity: 0.6;
}
.step {
  position: relative;
  z-index: 1;
  flex: none;
  width: clamp(300px, 36vw, 540px);
  min-height: clamp(320px, 46vh, 420px);
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 44px);
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(16, 48, 26, 0.35);
}
.step__n {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(4.5rem, 7vw, 6.5rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--line-strong);
}
.step__icon {
  position: absolute;
  top: clamp(28px, 3vw, 44px);
  right: clamp(28px, 3vw, 44px);
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  color: var(--c);
}
.step__icon .icon { width: 26px; height: 26px; }
.step__title {
  margin-top: auto;
  padding-top: 36px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
  letter-spacing: -0.02em;
}
.step p { margin-top: 12px; color: var(--ink-2); }

/* ---------- Valeurs (section sombre) ---------- */
.section--dark {
  background: var(--forest-deep);
  color: var(--bg);
}
.section--dark .section-head__lead { color: rgba(251, 247, 238, 0.72); }
.section--dark .h2 em { color: var(--bark-light); }
.vgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 36px);
}
.value {
  padding-top: 26px;
  border-top: 1px solid rgba(251, 247, 238, 0.2);
}
.value__n {
  font-family: var(--serif);
  font-style: italic;
  color: var(--leaf-light);
  font-size: 1.1rem;
}
.value__title {
  margin-top: 14px;
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  letter-spacing: -0.02em;
}
.value p { margin-top: 12px; color: rgba(251, 247, 238, 0.72); font-size: 0.98rem; }

.quote {
  position: relative;
  margin-top: clamp(96px, 12vw, 160px);
  max-width: 1080px;
  margin-inline: auto;
  text-align: center;
}
.quote__leaf {
  width: 44px;
  height: 44px;
  margin: 0 auto 28px;
  color: var(--leaf-light);
  stroke-width: 1.4;
}
.quote blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 330;
  font-size: clamp(1.9rem, 4.2vw, 3.8rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  text-wrap: balance;
}
.quote figcaption {
  margin-top: 28px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 247, 238, 0.6);
}

/* ---------- Agir ---------- */
.egrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  align-items: stretch;
}
.ecard {
  --c: var(--leaf);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: clamp(28px, 3vw, 44px);
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.ecard::after {
  content: "";
  position: absolute;
  right: -30%;
  bottom: -30%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out);
  pointer-events: none;
}
.ecard:hover { transform: translateY(-8px); box-shadow: 0 40px 70px -40px rgba(16, 48, 26, 0.45); }
.ecard:hover::after { opacity: 1; transform: scale(1); }
.ecard__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  color: var(--c);
  transition: transform 0.6s var(--ease-out);
}
.ecard__icon .icon { width: 28px; height: 28px; }
.ecard:hover .ecard__icon { transform: rotate(-8deg) scale(1.08); }
.ecard__title {
  margin-top: auto;
  padding-top: 48px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 2.4vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.ecard p { margin-top: 14px; color: var(--ink-2); }
.ecard__cta {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--forest);
}
.ecard__cta .icon { transition: transform 0.45s var(--ease-out); }
.ecard:hover .ecard__cta .icon { transform: translateX(6px); }

.ecard--featured {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--bg);
}
.ecard--featured p { color: rgba(251, 247, 238, 0.78); }
.ecard--featured .ecard__cta { color: var(--leaf-light); }
.ecard--featured .ecard__icon { background: var(--c); color: var(--forest-deep); }

/* ---------- Besoin d'aide ---------- */
.help { padding-bottom: clamp(40px, 6vw, 80px); }
.help__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(32px, 5vw, 72px);
  border-radius: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(circle at 100% 0%, rgba(221, 50, 104, 0.12), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(235, 163, 19, 0.14), transparent 50%),
    var(--bg-2);
}
.help__title {
  margin-top: 16px;
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.help__title em { color: var(--f-enfance); }
.help__text > p:not(.label) { margin-top: 18px; color: var(--ink-2); max-width: 560px; }
.help__text .btn { margin-top: 30px; }
.help__numbers {
  align-self: center;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}
.help__numbers-title { font-weight: 700; }
.help__numbers ul { margin-top: 14px; list-style: none; padding: 0; }
.help__numbers li + li { border-top: 1px solid var(--line); }
.help__numbers a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  text-decoration: none;
  transition: transform 0.4s var(--ease-out);
}
.help__numbers a:hover { transform: translateX(6px); }
.help__numbers strong {
  min-width: 78px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--f-logement);
}
.help__numbers span { color: var(--ink-2); font-size: 0.95rem; }
.help__note { margin-top: 12px; font-size: 0.82rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact__lead { margin-top: 22px; color: var(--ink-2); font-size: 1.1rem; max-width: 460px; }
.contact__list { margin-top: 40px; display: grid; gap: 22px; list-style: none; padding: 0; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--forest-2);
}
.contact__list strong { display: block; font-weight: 700; }
.contact__list span { color: var(--ink-2); }

.form {
  padding: clamp(28px, 4vw, 52px);
  border-radius: clamp(28px, 3vw, 40px);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -50px rgba(16, 48, 26, 0.35);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.field { position: relative; margin-bottom: 22px; }
.field label { display: block; font-size: 0.88rem; font-weight: 700; margin-bottom: 6px; }
.field abbr { text-decoration: none; color: var(--f-logement); }
.field__opt { font-weight: 500; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 2px;
  border: 0;
  border-bottom: 1.5px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  font-size: 1rem;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2315231a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 28px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--forest-2); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { box-shadow: 0 2px 0 0 var(--forest-2); }
.field.has-error input,
.field.has-error textarea { border-bottom-color: var(--f-logement); }
.field__error { min-height: 0; font-size: 0.8rem; color: var(--f-logement); margin-top: 6px; }
.field__error:empty { display: none; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.field--check input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  padding: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.3s, border-color 0.3s;
}
.field--check input::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  margin-top: -2px;
  transition: transform 0.3s var(--ease-out);
}
.field--check input:checked { background: var(--forest-2); border-color: var(--forest-2); }
.field--check input:checked::after { transform: rotate(-45deg) scale(1); }
.field--check label { font-weight: 500; font-size: 0.9rem; color: var(--ink-2); margin: 0; }
.field--check .field__error { grid-column: 2; margin-top: 0; }
.form__foot { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form__status { font-size: 0.92rem; font-weight: 600; }
.form__status.is-success { color: var(--forest-2); }
.form__status.is-error { color: var(--f-logement); }
.form.is-sending button[type="submit"] { opacity: 0.6; pointer-events: none; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  padding-top: clamp(80px, 10vw, 130px);
  background: var(--forest-deep);
  color: rgba(251, 247, 238, 0.78);
  border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
  overflow: hidden;
}
/* Le logo texte du footer se dimensionne sur la largeur de ce conteneur */
.footer > .container { container-type: inline-size; }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer__brand img { width: 88px; }
.footer__brand p { margin-top: 18px; max-width: 360px; }
.footer__title {
  margin-bottom: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf-light);
}
.footer__nav ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; transition: color 0.3s; }
.footer a:hover { color: #fff; }
.footer address { font-style: normal; }
.footer__legal { margin-top: 16px; font-size: 0.88rem; color: rgba(251, 247, 238, 0.55); }

.footer__word {
  margin-top: clamp(60px, 8vw, 100px);
  font-family: var(--serif);
  font-weight: 500;
  /* Le mot mesure ~4,65 × la taille de police : 18cqi ≈ 84 % de la largeur du conteneur,
     il tient donc toujours en entier, quel que soit l'écran ou le zoom. */
  font-size: clamp(3.2rem, 13vw, 15rem); /* repli pour les navigateurs sans unités de conteneur */
  font-size: 18cqi;
  line-height: 0.82;
  letter-spacing: -0.045em;
  white-space: nowrap;
  text-align: center;
  font-variation-settings: "SOFT" 50, "opsz" 144;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.footer__word .w1 { color: var(--leaf-light); }
.footer__word .w2 { color: var(--bark-light); font-style: italic; font-weight: 400; }
.footer__word .char { display: inline-block; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  padding-block: 28px 32px;
  margin-top: 28px;
  border-top: 1px solid rgba(251, 247, 238, 0.14);
  font-size: 0.88rem;
}
.footer__bottom > span { margin-right: auto; }
.footer__top-link { display: inline-flex; align-items: center; gap: 6px; }
.footer--slim { padding-top: 8px; border-radius: 0; }
.footer--slim .footer__bottom { border-top: 0; margin-top: 0; }

/* ---------- États d'animation initiaux (JS actif uniquement) ----------
   Masqués tant que le script ne les a pas pris en charge (.is-in). */
.motion [data-reveal]:not(.is-in),
.motion [data-hero-fade]:not(.is-in),
.motion .mcard:not(.is-in),
.motion .tree:not(.is-in) { opacity: 0; }
.motion [data-hero-title]:not(.is-in),
.motion [data-split]:not(.is-in),
.motion [data-split-quote]:not(.is-in) { visibility: hidden; }
/* Marge autour des masques de ligne pour ne pas rogner accents et jambages */
.split-line-mask { padding-block: 0.1em 0.16em; margin-block: -0.1em -0.16em; }

/* ---------- Pages secondaires (mentions légales) ---------- */
.page { padding-top: calc(var(--header-h) + 90px); padding-bottom: 120px; }
.page .motion [data-reveal] { opacity: 1; transform: none; }
.legal { max-width: 820px; }
.legal h1 {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-top: 18px;
}
.legal h2 {
  margin-top: 56px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.015em;
  scroll-margin-top: 110px;
}
.legal p, .legal ul { margin-top: 14px; color: var(--ink-2); }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--forest-2); }
.legal .back { display: inline-flex; align-items: center; gap: 8px; margin-top: 48px; font-weight: 700; text-decoration: none; }
.legal .back .icon { transform: rotate(180deg); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__inner { gap: 12px; }
  .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .hero { padding-top: calc(var(--header-h) + 36px); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .tree { width: min(86vw, 460px); }
  .hero__title { margin-top: 22px; }
  .scroll-cue { display: none; }
  .section-head--split,
  .approach__head { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .pillars { grid-template-columns: 1fr; }
  .egrid { grid-template-columns: 1fr; }
  .ecard { min-height: 0; }
  .help__inner { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

}

/* Écrans étroits ou peu hauts : pas d'épinglage, la démarche passe en grille */
@media (max-width: 900px), (max-height: 699px) {
  .approach__pin { min-height: 0; }
  .approach__viewport { overflow: visible; }
  .approach__track {
    width: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    padding-inline: var(--gutter);
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
  }
  .approach__vine { display: none; }
  .step { width: 100%; min-height: 0; }
  .step__title { padding-top: 24px; }
}

body.menu-open { overflow: hidden; }

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .header { top: 10px; }
  .header__cta { display: none; }
  .brand__mark { width: 40px; }
  .brand__name { font-size: 1.2rem; }
  .mgrid { grid-template-columns: 1fr; }
  .mcard { min-height: 0; }
  .mcard__title { padding-top: 28px; }
  .vgrid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .fruit__tip { font-size: 0.72rem; padding: 6px 10px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__bottom > span { margin-right: 0; width: 100%; }
  .marquee { padding-block: 18px; }

  /* Héros : arbre plus compact pour que le titre arrive dans le premier écran */
  .hero { padding-top: calc(var(--header-h) + 16px); }
  .hero__grid { gap: 18px; }
  .tree { width: min(72vw, 320px); }
  .tree__hint { margin-top: 2px; font-size: 0.8rem; }
  .hero__title { margin-top: 18px; }
}

/* Petits téléphones (iPhone SE…) : arbre encore plus compact */
@media (max-width: 640px) and (max-height: 700px) {
  .tree { width: min(60vw, 250px); }
}

/* Mobiles en paysage : héros sur deux colonnes, arbre limité par la hauteur */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: 0;
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 48px;
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 28px;
  }
  .hero__visual { order: 0; }
  .tree { width: min(38vw, calc(100svh - 110px)); }
  .tree__hint { display: none; }
  .hero__title { margin-top: 14px; font-size: clamp(2rem, 5vw, 3rem); }
  .hero__lead { margin-top: 14px; font-size: 0.98rem; }
  .hero__actions { margin-top: 22px; }
  .hero__actions .btn { width: auto; }
  .scroll-cue { display: none; }

  /* Menu : liens plus petits et défilables si la hauteur manque */
  .menu { justify-content: flex-start; overflow-y: auto; padding-top: calc(var(--header-h) + 28px); }
  .menu__list a { font-size: 1.75rem; }
  .menu__foot { margin-top: 20px; }
}

@media (hover: none) {
  .mcard:hover:not(.is-lit) { transform: none; }
}

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