/* Lifoody — site vitrine. Sombre, vert lumineux, comme la vidéo. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url(../assets/fonts/jakarta-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url(../assets/fonts/jakarta-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #020504; --bg2: #06110b; --card: rgba(10, 26, 17, 0.72); --card-solid: #0a1a11;
  --text: #F2FFF5; --muted: rgba(205, 240, 215, 0.72); --faint: rgba(205, 240, 215, 0.5);
  --green: #7CFFA8; --green2: #3FD47A; --deep: #1FA654; --line: rgba(150, 255, 190, 0.16); --line2: rgba(150, 255, 190, 0.32);
  --glow: 0 0 34px rgba(80, 230, 130, 0.55);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --stage-h: 100vh;
  color-scheme: dark;
}
@supports (height: 100svh) { :root { --stage-h: 100svh; } }

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-weight: 500; line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* ---------- barre du haut ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: calc(env(safe-area-inset-top) + 14px) var(--gutter) 14px; transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(2, 6, 4, 0.82); border-color: var(--line); }   /* pas de flou d'arrière-plan : coûteux au-dessus de la 3D */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; filter: drop-shadow(0 0 8px rgba(90, 240, 140, 0.6)); }
.brand .leaf { fill: var(--green2); } .brand .vein { fill: #F4FFF7; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { color: var(--muted); font-weight: 600; font-size: 15px; }
.nav nav a:hover { color: var(--text); text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; color: #04160b;
  background: linear-gradient(180deg, #8DFFB5, #3FD47A); box-shadow: 0 0 0 1px rgba(170, 255, 210, 0.6) inset, 0 8px 30px rgba(60, 220, 120, 0.35); transition: transform .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(200, 255, 225, 0.9) inset, 0 10px 40px rgba(60, 220, 120, 0.5); }
.btn-small { padding: 9px 16px; font-size: 14px; }
@media (max-width: 760px) { .nav nav { display: none; } .nav .btn-small { margin-left: auto; } }

/* ---------- le voyage ---------- */
#journey { position: relative; height: 1150vh; }
.stage { position: sticky; top: 0; height: var(--stage-h); width: 100%; overflow: hidden; background: radial-gradient(120% 90% at 50% 40%, #071a0f 0%, var(--bg) 70%); }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s; }
#gl.on { opacity: 1; }
.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%); }
.grain { position: absolute; inset: -50%; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay; background-size: 256px 256px; animation: grain 1s steps(6) infinite; }
@media (pointer: coarse) { .grain { display: none; } }   /* téléphones : pas de grain (mélange de calques coûteux) */
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-37px, 61px); } 40% { transform: translate(74px, -22px); } 60% { transform: translate(-11px, -83px); } 80% { transform: translate(48px, 35px); } }
.flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: #fff; }
.scrim { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(90deg, rgba(1,6,3,0.72) 0%, rgba(1,6,3,0.35) 34%, rgba(1,6,3,0) 52%); }
.loader { position: absolute; left: 50%; bottom: 14vh; width: 120px; height: 2px; margin-left: -60px; background: var(--line); border-radius: 2px; overflow: hidden; transition: opacity .6s; }
.loader span { position: absolute; inset: 0; width: 40%; background: var(--green); box-shadow: var(--glow); animation: load 1.1s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.loader.done { opacity: 0; }

/* accueil (par-dessus la feuille dessinée en 3D) */
.hero { position: absolute; left: 0; right: 0; bottom: max(7vh, 40px); display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 var(--gutter); opacity: 0; }
.hero-tag { margin: 0; font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.hero-sub { margin: 10px 0 0; color: var(--muted); font-size: clamp(15px, 1.4vw, 18px); }
.pill-soon { display: inline-flex; align-items: center; gap: 10px; margin: 22px 0 0; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 15px;
  background: rgba(30, 130, 70, 0.32); border: 1px solid rgba(170, 255, 210, 0.55); box-shadow: 0 0 28px rgba(80, 230, 130, 0.28); color: var(--text); }
.pill-soon .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.pill-soon.big { font-size: 17px; padding: 13px 22px; margin: 0; }
.scroll-cue { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--faint); font-size: 13px; }
.scroll-cue:hover { text-decoration: none; color: var(--muted); }
.mouse { width: 22px; height: 34px; border: 2px solid rgba(205, 240, 215, 0.45); border-radius: 12px; position: relative; margin-bottom: 4px; }
.mouse span { position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--green); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }
.cue-text { color: var(--muted); font-weight: 600; }
.cue-skip { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(205, 240, 215, 0.3); }

/* titres des scènes */
.scenes { position: absolute; inset: 0; pointer-events: none; }
.scene { position: absolute; left: var(--gutter); top: 0; bottom: 0; width: min(42vw, 640px); display: flex; align-items: center; visibility: hidden; }
.scene .inner { will-change: transform, opacity; }
.kick { margin: 0 0 14px; font-size: 14px; font-weight: 800; letter-spacing: 0.26em; text-transform: uppercase; color: var(--green); }
.scene h2 { margin: 0; font-size: clamp(38px, 4.6vw, 80px); line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.scene h2 .wm { display: inline-block; clip-path: inset(-40% -30% -2% -30%); vertical-align: bottom; }
.scene h2 .w { display: inline-block; will-change: transform; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5); }
.scene h2 .pu { margin-left: -0.09em; }
.scene h2 .hl { color: var(--green); text-shadow: 0 0 34px rgba(80, 230, 130, 0.75); }
.scene .sub { margin: 18px 0 0; color: var(--muted); font-size: clamp(16px, 1.45vw, 21px); max-width: 30ch; font-weight: 600; }
.scene.center { left: 0; right: 0; width: auto; align-items: flex-start; justify-content: center; padding-top: calc(env(safe-area-inset-top) + 13vh); text-align: center; }
.scene .shot-fb { display: none; }
.scene.end { padding-top: 0; align-items: flex-end; padding-bottom: 16vh; }
.scene.end .sub { margin: 14px auto 0; max-width: none; }

/* chapitres et progression */
.rail { position: absolute; right: clamp(14px, 2.4vw, 34px); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; opacity: 0; transition: opacity .5s; }
.rail.on { opacity: 1; }
.rail a { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 12px; color: var(--faint); font-size: 13px; font-weight: 700; pointer-events: auto; }
.rail a:hover { text-decoration: none; color: var(--text); }
.rail a span { opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; white-space: nowrap; }
.rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: none; }
.rail a i { width: 8px; height: 8px; border-radius: 50%; background: rgba(205, 240, 215, 0.3); transition: background .3s, box-shadow .3s, transform .3s; }
.rail a.on { color: var(--text); }
.rail a.on i { background: var(--green); box-shadow: 0 0 12px var(--green); transform: scale(1.35); }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(150, 255, 190, 0.08); }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--deep), var(--green)); box-shadow: var(--glow); }

/* téléphone en portrait : titres en haut, comme le Short */
@media (max-aspect-ratio: 4/5) {
  .scene { left: var(--gutter); right: var(--gutter); width: auto; align-items: flex-start; padding-top: calc(env(safe-area-inset-top) + 84px); }
  .scene h2 { font-size: clamp(34px, 9.4vw, 60px); }
  .scene .sub { font-size: 16px; margin-top: 12px; }
  .kick { font-size: 12px; margin-bottom: 10px; }
  .scrim { background: linear-gradient(180deg, rgba(1,6,3,0.9) 0%, rgba(1,6,3,0.7) 24%, rgba(1,6,3,0) 46%); }
  .rail { display: none; }
  .scene.center { padding-top: calc(env(safe-area-inset-top) + 96px); }
}

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(80px, 12vw, 150px) 0; }
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.wrap.narrow { width: min(780px, 100% - 2 * var(--gutter)); }
.wrap.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow { margin: 0 0 16px; color: var(--green); font-weight: 800; font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase; }
.h-sec { margin: 0 0 clamp(36px, 5vw, 64px); font-size: clamp(34px, 4.6vw, 64px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; max-width: 18ch; }
.h-sec em { font-style: normal; color: var(--green); text-shadow: 0 0 30px rgba(80, 230, 130, 0.5); }
#features { background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%); }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(250px, auto); gap: 16px; grid-auto-flow: dense; }
.card { position: relative; overflow: hidden; border-radius: 26px; padding: 26px; background: var(--card); border: 1px solid var(--line);
  transition: border-color .3s, transform .3s, box-shadow .3s; isolation: isolate; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(90, 240, 140, 0.16), transparent 60%); }
.card:hover { border-color: var(--line2); transform: translateY(-3px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); }
.card:hover::before { opacity: 1; }
.card h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -0.02em; font-weight: 800; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(60, 200, 110, 0.14); border: 1px solid var(--line2); }
.card .ico svg { width: 24px; height: 24px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card .ico svg .fill { fill: var(--green); stroke: none; }
.card .card-txt { position: relative; z-index: 1; }
/* captures : un vrai téléphone, coupé par le bord de la carte */
.card .shot { position: absolute; z-index: 0; height: auto; border-radius: 26px; border: 6px solid #0d1712; background: #0d1712;
  box-shadow: 0 0 0 1px rgba(200, 220, 210, 0.25), 0 24px 60px rgba(0, 0, 0, 0.6); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card.big { grid-column: span 2; grid-row: span 2; }
.card.big .card-txt { max-width: calc(50% - 50px); position: absolute; left: 34px; bottom: 34px; }
.card.big h3 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; }
.card.big .shot { width: 43%; right: 5%; top: 34px; transform: rotate(4deg); }
.card.big:hover .shot { transform: rotate(2deg) translateY(-6px); }
.card.tall { grid-row: span 2; }
.card.tall .shot { width: 74%; left: 13%; top: 172px; }
.card.tall:hover .shot { transform: translateY(-8px); }
.card.wide { grid-column: span 2; }
.card.wide .card-txt { max-width: 47%; }
.card.wide .shot { width: 30%; right: 7%; top: 28px; transform: rotate(-5deg); }
.card.wide:hover .shot { transform: rotate(-3deg) translateY(-6px); }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .bento { gap: 12px; grid-auto-rows: minmax(236px, auto); }
  .card { padding: 20px; border-radius: 22px; }
  .card h3 { font-size: 18px; } .card p { font-size: 14.5px; }
  .card .ico { width: 40px; height: 40px; margin-bottom: 14px; }
  .card.big .card-txt { max-width: none; left: 20px; right: 20px; bottom: 22px; }
  .card.big .shot { width: 44%; right: 28%; top: 22px; }
  .card.big { grid-row: span 2; min-height: 540px; }
  .card.tall .shot { width: 80%; left: 10%; top: 180px; }
  .card.tall .card-txt { max-width: none; }
  .card.wide { min-height: 300px; }
  .card.wide .card-txt { max-width: 58%; }
  .card.wide .shot { width: 36%; right: 5%; top: 24px; }
}

.privacy { background: radial-gradient(60% 50% at 50% 0%, rgba(30, 120, 65, 0.25), transparent 70%), var(--bg); text-align: center; }
.privacy .wrap { display: flex; flex-direction: column; align-items: center; }
.privacy .h-sec { max-width: 16ch; }
.lockmark svg { width: 74px; height: 74px; margin-bottom: 22px; fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; filter: drop-shadow(0 0 14px rgba(80, 230, 130, 0.7)); }
.claims { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: 100%; text-align: left; }
.claim { padding: 26px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.claim h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.claim h3::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); margin: 0 10px 2px 0; }
.claim p { margin: 0; color: var(--muted); font-size: 15px; }
.more { margin: 34px 0 0; font-weight: 700; }
@media (max-width: 1000px) { .claims { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .claims { grid-template-columns: 1fr; } }

details { border-bottom: 1px solid var(--line); }
details summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: clamp(18px, 2vw, 22px); font-weight: 700; position: relative; letter-spacing: -0.01em; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--green); font-size: 28px; font-weight: 500; transition: transform .3s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: -6px 0 24px; color: var(--muted); max-width: 62ch; }

.final { background: radial-gradient(50% 60% at 50% 40%, rgba(30, 130, 70, 0.3), transparent 70%), var(--bg); padding-bottom: clamp(100px, 14vw, 170px); }
.final-leaf { width: clamp(90px, 12vw, 140px); filter: drop-shadow(0 0 30px rgba(90, 240, 140, 0.7)); margin-bottom: 20px; }
.h-final { margin: 0; font-size: clamp(40px, 6vw, 84px); letter-spacing: -0.035em; line-height: 1.04; font-weight: 800; }
.lead { color: var(--muted); font-size: clamp(18px, 2vw, 22px); margin: 16px 0 34px; font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }

.footer { border-top: 1px solid var(--line); padding: 46px 0 calc(env(safe-area-inset-bottom) + 46px); background: #010302; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer nav a { color: var(--muted); font-weight: 600; font-size: 15px; }
.fine { color: var(--faint); font-size: 13.5px; margin: 0 0 10px; max-width: 90ch; }

/* apparition au défilement */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* sans 3D (ou en cas de problème) : les scènes s'affichent simplement, avec une capture */
.no3d #journey { height: auto; }
.no3d .stage { position: relative; height: auto; overflow: visible; background: var(--bg); padding: 120px 0 40px; }
.no3d #gl, .no3d .scrim, .no3d .vignette, .no3d .grain, .no3d .flash, .no3d .loader, .no3d .rail, .no3d .progress { display: none; }
.no3d .hero { position: relative; opacity: 1; bottom: auto; padding-bottom: 60px; }
.no3d .hero::before { content: ""; width: 120px; height: 120px; margin-bottom: 20px; background: url(../assets/favicon.svg) center / contain no-repeat; filter: drop-shadow(0 0 30px rgba(90, 240, 140, 0.5)); }
.no3d .scenes { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px; width: min(1180px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.no3d .scene { position: relative; visibility: visible; left: auto; right: auto; width: auto; padding: 0; display: block; }
.no3d .scene h2 { font-size: 34px; }
.no3d .scene .shot-fb { display: block; width: 62%; margin-top: 22px; border-radius: 20px; border: 5px solid #0d1712; box-shadow: 0 0 0 1px rgba(200, 220, 210, 0.25); }
.no3d .scene.center { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .pill-soon .dot, .mouse span { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
