/* ============================================================
   770LAB — le site 3D au scroll : les styles.
   Nuit profonde comme la scène, blanc cassé pour lire, le dégradé
   770LAB (vert → bleu → violet) pour la marque et les boutons pleins.
   Jamais d'italique. 3 boutons par rangée au plus sur téléphone.
   ============================================================ */
:root {
  --nuit: #06080f;
  --nuit-2: #0b0f1a;
  --encre: #eef2f7;
  --doux: #9fb0c8;
  --ligne: rgba(255, 255, 255, .12);
  --vert: #10b981;
  --bleu: #3b82f6;
  --violet: #8b5cf6;
  --degrade: linear-gradient(135deg, #10b981 0%, #3b82f6 50%, #8b5cf6 100%);
  --chaud: #ffd39a;
  --texte: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gouttiere: max(18px, env(safe-area-inset-left, 0px));
  --gouttiere-d: max(18px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; font-style: normal !important; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--nuit); color: var(--encre); font-family: var(--texte); font-size: 17px; line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- la barre du haut ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px var(--gouttiere-d) 14px var(--gouttiere); transition: background .3s, backdrop-filter .3s; }
.nav.is-scrolled { background: rgba(6, 8, 15, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: -.5px; font-size: 20px; }
.brand img { width: 34px; height: 21px; }
.brand span { background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-liens { display: none; gap: 22px; font-size: 14px; color: var(--doux); }
.nav-liens a { text-decoration: none; }
.nav-liens a:hover { color: var(--encre); }
@media (min-width: 760px) { .nav-liens { display: flex; } }
.pilule { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--ligne);
  background: rgba(255, 255, 255, .06); color: var(--encre); text-decoration: none; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: transform .15s, background .2s; }
.pilule:hover { background: rgba(255, 255, 255, .12); transform: translateY(-1px); }
.pilule--plein { border: 0; background: var(--degrade); color: #fff; }
.pilule--plein:hover { filter: brightness(1.08); }

/* ---------- l'expérience épinglée ---------- */
.exp { position: relative; height: 1200vh; }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--nuit); }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.voile { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 60%, transparent 40%, rgba(6, 8, 15, .55) 100%); }

/* les textes des scènes */
.ov { position: absolute; left: var(--gouttiere); right: var(--gouttiere-d); bottom: max(28px, env(safe-area-inset-bottom, 0px)); max-width: 560px; opacity: 0; transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease; pointer-events: none; }
.ov.is-on { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 900px) { .ov { bottom: 64px; left: 6vw; max-width: 640px; } }
.ov.ov--centre { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -46%); text-align: center; width: min(92vw, 820px); max-width: none; }
.ov.ov--centre.is-on { transform: translate(-50%, -50%); }
.ov.ov--haut { bottom: auto; top: calc(78px + env(safe-area-inset-top, 0px)); }
.ov.ov--droite { left: auto; right: var(--gouttiere-d); text-align: right; }
@media (min-width: 900px) { .ov.ov--droite { right: 6vw; left: auto; } }
.sur { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--vert); margin: 0 0 10px; }
.ov h1, .ov h2 { margin: 0 0 12px; font-weight: 900; letter-spacing: -1.5px; line-height: .98; text-wrap: balance; }
.ov h1 { font-size: clamp(38px, 9vw, 92px); }
.ov h1, .ov h2 { text-shadow: 0 2px 28px rgba(6, 8, 15, .75), 0 0 2px rgba(6, 8, 15, .5); }
.ov p, .ov .sur { text-shadow: 0 1px 14px rgba(6, 8, 15, .85); }
.ov h2 { font-size: clamp(30px, 6vw, 64px); }
.ov p { margin: 0 0 16px; font-size: clamp(16px, 2.1vw, 20px); color: var(--doux); max-width: 56ch; }
.ov--centre p { margin-left: auto; margin-right: auto; }
.ov--droite p { margin-left: auto; }
.grad { background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.boutons { display: flex; gap: 10px; flex-wrap: wrap; }
.ov--centre .boutons { justify-content: center; }
.ov--droite .boutons { justify-content: flex-end; }
.indice { position: absolute; left: 50%; bottom: max(14px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--doux); opacity: .8; display: flex; align-items: center; gap: 8px; transition: opacity .4s; }
.indice i { display: block; width: 1px; height: 26px; background: linear-gradient(var(--doux), transparent); animation: descend 1.6s ease-in-out infinite; }
@keyframes descend { 0% { transform: scaleY(0); transform-origin: top } 50% { transform: scaleY(1); transform-origin: top } 51% { transform-origin: bottom } 100% { transform: scaleY(0); transform-origin: bottom } }
html[data-scene]:not([data-scene="rue"]) .indice { opacity: 0; }

/* le compteur de scènes */
.repere { position: absolute; right: var(--gouttiere-d); top: 50%; transform: translateY(-50%); display: none; flex-direction: column; gap: 10px; z-index: 3; }
@media (min-width: 900px) { .repere { display: flex; } }
.repere a { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .25); display: block; transition: background .3s, transform .3s; }
.repere a.is-on { background: #fff; transform: scale(1.4); }

/* ---------- la suite de la page (après l'expérience) ---------- */
.suite { position: relative; background: var(--nuit-2); padding-block: 72px 40px; padding-left: var(--gouttiere); padding-right: var(--gouttiere-d); }
.col { max-width: 1040px; margin: 0 auto; }
.titre { font-weight: 900; letter-spacing: -1.2px; line-height: 1.02; font-size: clamp(30px, 5.4vw, 56px); margin: 0 0 10px; text-wrap: balance; }
.sous { color: var(--doux); font-size: clamp(16px, 2vw, 19px); margin: 0 0 30px; max-width: 60ch; }

/* les offres */
.offres { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.offre { position: relative; border: 1px solid var(--ligne); border-radius: 18px; padding: 24px 22px; background: rgba(255, 255, 255, .03); min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.offre--star { border-color: transparent; background: linear-gradient(var(--nuit-2), var(--nuit-2)) padding-box, var(--degrade) border-box; }
.offre .nom { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--doux); }
.offre .prix { font-size: 40px; font-weight: 900; letter-spacing: -1.5px; line-height: 1; }
.offre .prix small { font-size: 14px; font-weight: 600; color: var(--doux); letter-spacing: 0; margin-left: 6px; }
.offre .des { color: var(--doux); font-size: 15px; margin: 0; }
.offre ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.offre li { padding-left: 22px; position: relative; }
.offre li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 2px; background: var(--degrade); }
.offre .pilule { margin-top: auto; }
.etiquette { position: absolute; top: -12px; right: 18px; background: var(--degrade); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.note { color: var(--doux); font-size: 14px; margin: 18px 0 0; }

/* le formulaire WhatsApp */
.tfm { display: grid; gap: 28px; align-items: start; }
@media (min-width: 860px) { .tfm { grid-template-columns: 1fr 1fr; gap: 48px; } }
.tfm-form { display: grid; gap: 14px; }
.tfm-form label { display: grid; gap: 6px; font-size: 13px; color: var(--doux); font-weight: 600; letter-spacing: .3px; }
.tfm-form input { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--ligne); background: rgba(255, 255, 255, .05); color: var(--encre); font: inherit; min-width: 0; }
.tfm-form input::placeholder { color: rgba(159, 176, 200, .6); }
.tfm-form input:focus { border-color: var(--bleu); outline: none; box-shadow: 0 0 0 3px rgba(59, 130, 246, .25); }
.tfm-ok { display: none; font-size: 14px; color: var(--vert); margin: 0; }
.tfm-ok.on { display: block; }
.tfm-ok a { color: var(--encre); }
.tfm-note { font-size: 14px; color: var(--doux); margin: 0; }

/* le pied */
.pied { padding-block: 40px 30px; padding-left: var(--gouttiere); padding-right: var(--gouttiere-d); border-top: 1px solid var(--ligne); color: var(--doux); font-size: 14px; background: var(--nuit); }
.pied .col { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--encre); }

/* ---------- sans WebGL / mouvement réduit : la page plate ---------- */
html.no-gl .exp { height: auto; }
html.no-gl .pin { position: relative; height: auto; overflow: visible; padding-block: 90px 40px; }
html.no-gl #gl, html.no-gl .voile, html.no-gl .indice, html.no-gl .repere { display: none; }
html.no-gl .ov { position: relative; opacity: 1; transform: none; left: auto; right: auto; top: auto; bottom: auto; max-width: 720px; margin: 0 auto 56px; padding: 0 var(--gouttiere); pointer-events: auto; text-align: left; width: auto; }
html.no-gl .ov--centre { text-align: center; }
html.no-gl .ov--droite { text-align: left; }
html.no-gl .ov--droite .boutons, html.no-gl .ov--centre .boutons { justify-content: flex-start; }
@media (prefers-reduced-motion: reduce) {
  .ov { transition: none; }
  .indice i { animation: none; }
}

/* ---------- la ligne de vie : ce que la spec ajoute ---------- */
:root { --pouls: 0; }
.ov h1, .ov h2, .titre, .offre .prix, .carte3 .prix, .mot-geant { font-family: 'Inter Tight', 'Inter', system-ui, sans-serif; letter-spacing: -.02em; }
.pilule--wa { background: #25d366; border: 0; color: #06230f; font-weight: 700; transform: scale(calc(1 + .03 * var(--pouls))); }
.pilule--wa:hover { background: #2ee07a; }
.pilule--wa svg { flex: none; }
.pilule--grande { padding: 14px 24px; font-size: 16px; }
@media (max-width: 480px) { .nav .pilule--wa span { display: none; } .nav .pilule--wa { padding: 11px 12px; } }
.chips { gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--ligne); background: rgba(255, 255, 255, .06); color: var(--encre); text-decoration: none; font-weight: 600; font-size: 14px; }
.chip.is-on { background: var(--degrade); border-color: transparent; color: #fff; }
.cote { font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--doux); margin-top: 6px; }
.compteur { position: absolute; left: var(--gouttiere); bottom: max(14px, env(safe-area-inset-bottom, 0px)); font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--doux); font-variant-numeric: tabular-nums; opacity: .8; z-index: 3; pointer-events: none; }
html[data-scene="pouls"] .compteur, html[data-scene=""] .compteur { left: auto; right: var(--gouttiere-d); }
.mot-geant { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 28vw; font-weight: 900; line-height: 1; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0; transition: opacity .8s; pointer-events: none; white-space: nowrap; max-width: 100vw; overflow: hidden; }
.mot-geant.is-on { opacity: .18; }
@media (max-width: 700px) { .mot-geant { font-size: 34vw; } }
html.is-clair .mot-geant { background: none; color: var(--encre-jour, #0b0b14); -webkit-text-fill-color: initial; }
html.is-clair .mot-geant.is-on { opacity: .06; }
/* les cartes d'offres, posées sur les trois toits */
.ov--offres { left: var(--gouttiere); right: var(--gouttiere-d); bottom: max(20px, env(safe-area-inset-bottom, 0px)); max-width: none; }
@media (min-width: 900px) { .ov.ov--offres { left: 6vw; right: 6vw; max-width: none; } }
.cartes3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 10px; }
@media (max-width: 700px) { .cartes3 { grid-template-columns: 1fr; gap: 8px; } }
.carte3 { position: relative; display: grid; gap: 4px; padding: 14px 14px 12px; border-radius: 14px; border: 1px solid var(--ligne); background: rgba(6, 8, 15, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--encre); text-decoration: none; min-width: 0; font-size: 14px; }
.carte3 b { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--doux); }
.carte3 .prix { font-size: 26px; font-weight: 900; letter-spacing: -1px; line-height: 1; }
.carte3 .prix small { font-size: 12px; font-weight: 600; color: var(--doux); margin-left: 6px; }
.carte3 > span:last-child { color: var(--doux); }
.carte3--star { border-color: transparent; background: linear-gradient(rgba(6, 8, 15, .78), rgba(6, 8, 15, .78)) padding-box, var(--degrade) border-box; transform: scale(calc(1 + .02 * var(--pouls))); }
.carte3 i { position: absolute; top: -11px; right: 12px; background: var(--degrade); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
@media (max-width: 700px) { .carte3 { padding: 10px 12px; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; } .carte3 > span:last-child { display: none; } .carte3 .prix { font-size: 20px; } }
.note-ov { font-size: 13px; color: var(--doux); margin: 0; }
/* la glissière avant / après */
.glissiere { display: block; margin-top: 14px; max-width: 360px; }
.ov--droite .glissiere { margin-left: auto; }
.glissiere input { width: 100%; touch-action: none; accent-color: #fff; }
.gl-leg { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--doux); }
/* le jour : les textes passent à l'encre */
html.is-clair .pin { --encre: #0b0b14; --doux: #3d4660; --ligne: rgba(11, 11, 20, .14); }
html.is-clair .ov h1, html.is-clair .ov h2 { text-shadow: 0 2px 28px rgba(236, 239, 246, .9); }
html.is-clair .ov p, html.is-clair .ov .sur { text-shadow: 0 1px 14px rgba(236, 239, 246, .9); }
html.is-clair .pilule { background: rgba(11, 11, 20, .06); border-color: rgba(11, 11, 20, .18); }
html.is-clair .pilule--plein, html.is-clair .pilule--wa { color: #fff; }
html.is-clair .pilule--wa { color: #06230f; }
html.is-clair .carte3 { background: rgba(236, 239, 246, .8); }
html.is-clair .carte3--star { background: linear-gradient(rgba(236, 239, 246, .9), rgba(236, 239, 246, .9)) padding-box, var(--degrade) border-box; }
html.is-clair .voile { background: radial-gradient(ellipse at 50% 60%, transparent 40%, rgba(236, 239, 246, .55) 100%); }
html.is-clair .compteur, html.is-clair .indice { color: #3d4660; }
html.is-clair .repere a { background: rgba(11, 11, 20, .25); }
html.is-clair .repere a.is-on { background: #0b0b14; }
