/* ─────────────────────────────────────────────────────────────────────────
   Nouyon — landing
   Une idée par écran. Peu de mots, beaucoup d'air, un seul bouton.
   Le récit (œuf → poussin → poulet → récolte) est une scène 3D pilotée par
   le défilement (home.js). Sans JS ou sans WebGL, les textes restent lisibles.
   ───────────────────────────────────────────────────────────────────────── */
:root {
  --bg: #FAF8F3;
  --white: #FFFFFF;
  --ink: #1D1D1F;
  --muted: #6E6E73;
  --line: rgba(29, 29, 31, .1);
  --brand: #0E3B3A;
  --teal: #1F7A78;
  --mint: #ADD8D6;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2 { margin: 0; font-weight: 800; letter-spacing: -.04em; line-height: 1.04; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--mint); color: var(--brand); }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

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

/* ── Bouton : un seul style, une seule couleur ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px; border-radius: 999px;
  background: var(--teal); color: #fff;
  font-weight: 700; font-size: 17px; text-decoration: none; white-space: nowrap;
  transition-property: background-color, scale;
  transition-duration: .3s;
  transition-timing-function: var(--ease);
}
.btn:hover { background: var(--brand); }
.btn:active, .nav__cta:active { scale: .96; }
.btn--lg { padding: 18px 38px; font-size: 18px; }
.link { color: var(--teal); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.soon { color: var(--muted); font-size: 15px; }

/* ── Navigation : le nom, et un bouton ─────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 56px;
  display: flex; align-items: center;
  background: rgba(250, 248, 243, .72);
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { border-color: var(--line); }
/* Au-dessus de la fin sombre, la barre passe en sombre elle aussi. */
.nav { transition-property: border-color, background-color, color; transition-duration: .4s; }
.nav.is-dark { background: rgba(8, 35, 34, .78); border-color: rgba(255, 255, 255, .06); color: #fff; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; text-decoration: none; }
.nav__brand img { border-radius: 7px; }
.nav__cta {
  padding: 7px 16px; border-radius: 999px; background: var(--teal); color: #fff;
  font-size: 14px; font-weight: 700; text-decoration: none;
  position: relative; transition-property: background-color, scale; transition-duration: .3s;
}
.nav__cta::after { content: ""; position: absolute; inset: -6px -4px; } /* zone de toucher ≥ 40 px */
.nav__cta:hover { background: var(--brand); }

/* ── LE CYCLE ──────────────────────────────────────────────────────────── */
/* Sans 3D : les quatre phrases se suivent simplement. */
.cycle { padding: 120px 0 40px; }
.cycle__canvas, .cycle__steps, .cycle__hint { display: none; }
.cycle__text { padding: 50px var(--gutter); text-align: center; }
.cycle__text h1, .cycle__text h2 { font-size: clamp(40px, 7vw, 88px); }
.cycle__text p { margin-top: 18px; font-size: clamp(18px, 1.9vw, 23px); color: var(--muted); font-weight: 500; }

/* Avec 3D : une scène fixe, le défilement fait avancer le temps. */
.has-3d .cycle { height: 560vh; padding: 0; }
.has-3d .cycle__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 62%, var(--sky-a, #FFFFFF) 0%, var(--sky-b, var(--bg)) 70%);
}
.has-3d .cycle__canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.has-3d .cycle__texts { position: absolute; inset: 0; pointer-events: none; }
.has-3d .cycle__text {
  position: absolute; left: 0; right: 0; top: clamp(78px, 11vh, 124px);
  padding: 0 var(--gutter); opacity: 0;
}
/* Le titre suit aussi la hauteur de l'écran : il laisse la place au récit. */
.has-3d .cycle__text h1, .has-3d .cycle__text h2 { font-size: clamp(34px, min(6.4vw, 7.6vh), 84px); }
.has-3d .cycle__text p { margin-top: 14px; font-size: clamp(16px, min(1.7vw, 2.4vh), 21px); }
.has-3d .cycle__text[data-i="0"] { opacity: 1; }
.has-3d .cycle__steps {
  display: flex; gap: 26px; position: absolute; left: 50%; bottom: 34px; translate: -50% 0;
  margin: 0; padding: 0; list-style: none;
  font-size: 13px; font-weight: 700; letter-spacing: .02em; color: rgba(29, 29, 31, .3);
}
.cycle__steps li { position: relative; transition: color .5s; }
.cycle__steps li::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px;
  background: var(--teal); transform: scaleX(0); transition: transform .6s var(--ease);
}
.cycle__steps li.is-on { color: var(--ink); }
.cycle__steps li.is-on::after { transform: scaleX(1); }
.has-3d .cycle__hint {
  display: block; position: absolute; left: 50%; bottom: 80px; translate: -50% 0;
  font-size: 13px; color: var(--muted); animation: hint 2.4s var(--ease) infinite;
}
@keyframes hint { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(5px); } }

@media (max-width: 700px) {
  .has-3d .cycle { height: 520vh; }
  .has-3d .cycle__text { top: 86px; }
  .has-3d .cycle__steps { gap: 18px; bottom: 26px; }
  .has-3d .cycle__hint { bottom: 64px; }
}

/* ── LE NOM ────────────────────────────────────────────────────────────── */
.reveal { padding: clamp(120px, 16vw, 200px) 0 0; text-align: center; background: var(--white); overflow: hidden; }
.reveal__kicker { margin: 0 0 22px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.reveal__name { font-size: clamp(64px, 13vw, 168px); font-weight: 800; letter-spacing: -.06em; line-height: .95; }
.reveal__line { margin-top: 18px; font-size: clamp(22px, 3vw, 36px); font-weight: 600; letter-spacing: -.025em; color: var(--muted); }
.reveal__ctas { margin-top: 40px; }
.reveal__phone { display: flex; justify-content: center; margin-top: clamp(70px, 9vw, 110px); }
.reveal { padding-bottom: clamp(90px, 12vw, 150px); }
.reveal__phone .phone { width: min(340px, 72vw); }

/* ── Téléphone (cadre commun) ──────────────────────────────────────────── */
.phone {
  position: relative;
  border-radius: 48px; padding: 11px;   /* rayon intérieur 37 + bordure 11 */
  background: #1D1D1F;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12), 0 50px 100px -40px rgba(14, 59, 58, .45);
}
.phone img { width: 100%; height: auto; border-radius: 37px; outline: 1px solid rgba(0, 0, 0, .1); outline-offset: -1px; } /* l'image donne la hauteur : rien n'est rogné */

/* ── TROIS IDÉES ───────────────────────────────────────────────────────── */
.idea { padding: clamp(110px, 14vw, 180px) 0; background: var(--bg); overflow: hidden; }
.idea--flip { background: var(--white); }
.idea__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.idea--flip .idea__copy { order: 2; }
.idea__copy h2 { font-size: clamp(44px, 6.4vw, 84px); }
.idea__copy p { margin-top: 26px; max-width: 24em; font-size: clamp(19px, 1.7vw, 22px); color: var(--muted); font-weight: 500; }
.idea__phone { display: flex; justify-content: center; }
.idea__phone .phone { width: min(330px, 72vw); }
@media (max-width: 820px) {
  .idea__grid { grid-template-columns: 1fr; gap: 64px; text-align: center; }
  .idea--flip .idea__copy { order: 0; }
  .idea__copy p { margin-left: auto; margin-right: auto; }
}

/* ── POUR LE TERRAIN ───────────────────────────────────────────────────── */
.field { padding: clamp(110px, 14vw, 170px) 0; background: var(--white); text-align: center; }
.field__title { font-size: clamp(40px, 5.6vw, 72px); }
.field__lead { margin-top: 18px; font-size: clamp(18px, 1.8vw, 22px); color: var(--muted); font-weight: 500; }
.field__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin: 80px 0 0; padding: 0; list-style: none; }
.field__list svg { width: 40px; height: 40px; margin: 0 auto 22px; fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.field__list strong { display: block; font-size: 22px; letter-spacing: -.02em; }
.field__list span { display: block; margin-top: 6px; color: var(--muted); font-size: 17px; }
@media (max-width: 760px) { .field__list { grid-template-columns: 1fr; gap: 56px; } }

/* ── PRIX ──────────────────────────────────────────────────────────────── */
.price { padding: clamp(120px, 15vw, 190px) 0; text-align: center; background: var(--bg); }
.price__title { font-size: clamp(60px, 10vw, 136px); letter-spacing: -.055em; line-height: .98; }
.price__title span { color: var(--teal); }
.price__line { margin-top: 34px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; letter-spacing: -.015em; }
.price__small { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* ── APPEL FINAL ───────────────────────────────────────────────────────── */
.final { padding: clamp(130px, 16vw, 210px) 0; text-align: center; background: var(--brand); color: #fff; }
.final__title { font-size: clamp(38px, 6vw, 80px); }
.final__ctas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 30px; margin-top: 50px; }
.final .btn { background: #fff; color: var(--brand); }
.final .btn:hover { background: var(--mint); }
.final .link { color: var(--mint); }
.final .soon { color: rgba(255, 255, 255, .6); }
.final__contact { margin-top: 44px; font-size: 15px; color: rgba(255, 255, 255, .65); }
.final__contact a { color: #fff; }

/* ── PIED DE PAGE ──────────────────────────────────────────────────────── */
/* Sombre et discret : il prolonge l'appel final sans attirer l'œil. */
.footer { padding: 34px 0 calc(30px + env(safe-area-inset-bottom)); background: #082322; color: rgba(255, 255, 255, .42); font-size: 13px; }
.footer a { color: rgba(255, 255, 255, .6); text-decoration: none; transition-property: color; transition-duration: .2s; }
.footer a:hover { color: #fff; }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer__brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.footer__brand img { border-radius: 6px; opacity: .85; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 12px; color: rgba(255, 255, 255, .32);
}
.footer__bottom p { max-width: 46em; }
@media (max-width: 700px) {
  .footer nav { gap: 10px 20px; }
}

/* ── Astuce iPhone (installation de la PWA) ────────────────────────────── */
#iosPwaHint {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 80;
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px;
  background: rgba(14, 59, 58, .95); color: #fff; font-size: 14px; line-height: 1.45;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .35);
}
#iosPwaHint strong { color: var(--mint); }
#iosPwaHint button { flex-shrink: 0; background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; opacity: .7; }

/* ── Entrées (préparées en JS ; sans JS tout est visible) ──────────────── */
.js [data-rise] { opacity: 0; transform: translateY(36px); }

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