/* =====================================================================
   FOCUS ISLAND — site teasing (focusisland.fr) · v3 desktop-first
   Palette charte : indigo #372fd0 = action · soleil #f8ee4e = récompense
   (le soleil n'apparaît que sur : le logo, la vague sous « cap »,
   l'état succès du formulaire — les moments dopamine).
   Tout est dimensionné au viewport (vw/vh + clamp) : un 1920 doit être
   aussi habité qu'un 1280 — jamais un layout mobile agrandi.
   ===================================================================== */
*{margin:0;padding:0;box-sizing:border-box}
:root{
  --brand:#372fd0;--brand-deep:#2a23a8;--sun:#f8ee4e;--sun-deep:#e3ce27;
  --ink:#21323c;--ink-soft:#51656f;--foam:#ffffff;
  --sand:#fbf6ec;--sand-deep:#f1e9d8;--night-ink:#0e141e;
}
html{scroll-behavior:smooth}
body{font-family:'Nunito',sans-serif;color:var(--ink);background:var(--sand);
  -webkit-font-smoothing:antialiased;overflow-x:hidden}
h1,h2,h3{font-family:'Fredoka',sans-serif;font-weight:600;line-height:1.1}
img{max-width:100%}
a{color:inherit}
:focus-visible{outline:3px solid var(--brand);outline-offset:2px;border-radius:6px}

/* ---------------------------------------------------------------------
   Scène générative ciel + mer (jour par défaut, .nuit = nuit)
   --------------------------------------------------------------------- */
.scene{position:absolute;inset:0;z-index:0;overflow:hidden;
  --haze:rgba(228,245,250,.5);
  --sky-a:#9edcef;--sky-b:#e9f8fc;--sea-a:#5fc0d6;--sea-b:#3d9cb8;
  --orb:#ffd84d;--orb-glow:rgba(255,216,77,.5);--orb-o:1;
  --cloud:#fff;--cloud-o:.4;--stars-o:0}
.scene .sky,.scene .sea,.scene .orb,.scene .cloud,.scene .stars{transition:all .8s ease}
.scene .sky{position:absolute;left:0;right:0;top:0;height:62%;
  background:linear-gradient(180deg,var(--sky-a),var(--sky-b))}
.scene .sea{position:absolute;left:0;right:0;top:62%;bottom:0;
  background:linear-gradient(180deg,var(--sea-a),var(--sea-b))}
.scene .orb{position:absolute;top:11%;right:13%;width:clamp(72px,9vw,150px);height:clamp(72px,9vw,150px);
  border-radius:50%;background:var(--orb);box-shadow:0 0 110px 30px var(--orb-glow);opacity:var(--orb-o)}
.scene .cloud{position:absolute;height:clamp(28px,2.4vw,44px);border-radius:40px;background:var(--cloud);
  opacity:var(--cloud-o);filter:blur(1px)}
.scene .cloud::before{content:"";position:absolute;top:-50%;left:22%;width:44%;height:100%;
  border-radius:50%;background:inherit}
.scene .c1{width:clamp(130px,12vw,230px);top:5%;left:42%;animation:cloudDrift 34s linear infinite}
.scene .c2{width:clamp(90px,8vw,160px);top:9%;left:62%;animation:cloudDrift 46s linear infinite reverse}
.scene .c3{width:clamp(105px,10vw,190px);top:24%;left:84%;animation:cloudDrift 40s linear infinite}
@keyframes cloudDrift{50%{transform:translateX(clamp(26px,3vw,56px))}}
.scene .stars{position:absolute;left:0;right:0;top:0;height:56%;opacity:var(--stars-o);
  background-image:radial-gradient(2px 2px at 14% 22%,#fff 50%,transparent 51%),
    radial-gradient(1.6px 1.6px at 34% 11%,#fff 50%,transparent 51%),
    radial-gradient(2.2px 2.2px at 57% 30%,#fff 50%,transparent 51%),
    radial-gradient(1.5px 1.5px at 72% 14%,#fff 50%,transparent 51%),
    radial-gradient(1.8px 1.8px at 88% 34%,#fff 50%,transparent 51%),
    radial-gradient(1.6px 1.6px at 45% 42%,#fff 50%,transparent 51%),
    radial-gradient(2px 2px at 8% 44%,#fff 50%,transparent 51%),
    radial-gradient(1.4px 1.4px at 24% 36%,#fff 50%,transparent 51%),
    radial-gradient(1.7px 1.7px at 64% 6%,#fff 50%,transparent 51%)}
.scene .stars.twinkle{animation:twinkle 5s ease-in-out infinite alternate}
@keyframes twinkle{from{opacity:calc(var(--stars-o) * .65)}to{opacity:var(--stars-o)}}
.scene .swell{position:absolute;left:0;right:0;top:60%;width:100%;height:clamp(44px,4.5vw,72px)}
.scene .haze{position:absolute;left:0;bottom:0;width:60%;height:58%;transition:all .8s ease;
  background:radial-gradient(118% 128% at 5% 100%,var(--haze) 0%,transparent 64%)}
.scene.nuit{--haze:rgba(13,21,44,.55);--sky-a:#1d2b57;--sky-b:#3d5187;--sea-a:#27466a;--sea-b:#182f4a;
  --orb:#f2eed9;--orb-glow:rgba(242,238,217,.35);--cloud-o:.16;--stars-o:1}

/* ---------------------------------------------------------------------
   Section 1 — héros : copie à gauche, l'app plantée sur l'horizon à droite
   --------------------------------------------------------------------- */
.hero{position:relative;min-height:100svh;display:flex;flex-direction:column;overflow:hidden}
.topbar{position:relative;z-index:5;padding:clamp(22px,3vh,34px) clamp(20px,5vw,96px) 0}
.brand{display:inline-flex;align-items:center;gap:11px;font-family:'Fredoka',sans-serif;
  font-weight:600;font-size:clamp(20px,1.4vw,25px);color:var(--ink)}
.brand-sun{width:clamp(24px,1.7vw,31px);height:clamp(24px,1.7vw,31px);color:#e8b93b}

.hero-grid{position:relative;z-index:4;flex:1;display:grid;
  grid-template-columns:minmax(0,56fr) minmax(0,44fr);
  padding:0 clamp(20px,5vw,96px);column-gap:clamp(16px,3vw,64px)}
.hero-copy{align-self:start;padding-top:clamp(14px,6vh,84px);max-width:760px}
.hero h1{font-size:clamp(40px,4.9vw,96px);color:var(--ink);letter-spacing:-.5px}
.cap{position:relative;display:inline-block}
.cap-wave{position:absolute;left:-2%;bottom:-.14em;width:104%;height:.2em;color:var(--sun-deep)}
.lede{margin-top:clamp(16px,2.4vh,26px);font-size:clamp(16px,1.25vw,21px);font-weight:700;
  color:var(--ink-soft);max-width:34em;line-height:1.55}
.fineprint{margin-top:14px;font-size:clamp(13px,.85vw,15px);font-weight:700;color:var(--ink-soft)}
/* comment ça marche : 3 étapes plates, elles habitent le bas du ciel */
.steps{margin-top:clamp(24px,4.6vh,52px);display:flex;flex-direction:column;
  gap:clamp(10px,1.7vh,17px);list-style:none}
.steps li{display:flex;align-items:center;gap:10px;
  font-size:clamp(13.5px,.95vw,16.5px);font-weight:800;color:#3c505c}
.step-n{flex:0 0 auto;width:clamp(26px,1.8vw,32px);height:clamp(26px,1.8vw,32px);border-radius:50%;
  border:2.5px solid rgba(33,50,60,.3);display:grid;place-items:center;
  font-family:'Fredoka',sans-serif;font-weight:600;font-size:clamp(13px,.9vw,16px);color:var(--ink)}
/* la nuit, textes clairs */
.hero.nuit .brand,.hero.nuit h1{color:#fff}
.hero.nuit .lede,.hero.nuit .fineprint{color:rgba(255,255,255,.85)}
.hero.nuit .steps li{color:rgba(255,255,255,.95);text-shadow:0 1px 9px rgba(8,15,35,.55)}
.hero.nuit .step-n{border-color:rgba(255,255,255,.42);color:#fff}
.hero.nuit .brand-sun,.hero.nuit .cap-wave{color:var(--sun)}

/* l'app : téléphone planté sur la ligne d'eau, reflet dans la mer */
.hero-stage{position:relative;min-height:340px}
.hero-boat{position:absolute;z-index:1;left:-3%;bottom:35.6%;width:clamp(105px,9.6vw,178px);
  filter:drop-shadow(0 12px 12px rgba(15,55,70,.28));animation:boatBob 4.6s ease-in-out infinite}
@keyframes boatBob{50%{transform:translateY(-6px)}}
.hero-phone{position:absolute;z-index:2;left:57%;bottom:calc(38% - clamp(44px,4.6vh,64px));
  transform:translateX(-50%);width:clamp(220px,16vw,308px);
  animation:phoneFloat 6s ease-in-out infinite}
@keyframes phoneFloat{50%{transform:translateX(-50%) translateY(-8px)}}
.hero-phone > img{display:block;width:100%;
  filter:drop-shadow(0 40px 46px rgba(10,40,60,.42))}
.phone-reflect{position:absolute;top:99.5%;left:0;width:100%;transform:scaleY(-1);
  opacity:.22;filter:blur(2.5px);
  -webkit-mask-image:linear-gradient(0deg,transparent 62%,#000 100%);
  mask-image:linear-gradient(0deg,transparent 62%,#000 100%)}
.hero .swell-front{position:absolute;left:0;right:0;top:calc(62% - 8px);height:clamp(40px,4vw,64px);
  z-index:3;pointer-events:none;
  -webkit-mask-image:linear-gradient(90deg,transparent 0 30%,#000 52%);
  mask-image:linear-gradient(90deg,transparent 0 30%,#000 52%)}
.hero .scene .swell{-webkit-mask-image:linear-gradient(90deg,transparent 0 30%,#000 52%);
  mask-image:linear-gradient(90deg,transparent 0 30%,#000 52%)}
/* la plage : vague de sable qui recouvre le bas de la mer */
.shore{position:absolute;left:0;right:0;bottom:-2px;height:clamp(48px,7vh,100px);width:100%;z-index:4}

/* ---------------------------------------------------------------------
   Formulaire liste d'attente (héros + CTA final)
   --------------------------------------------------------------------- */
.wl-form{margin-top:clamp(24px,3.4vh,36px);display:flex;flex-wrap:wrap;gap:12px;max-width:620px}
.wl-form input[type=email]{flex:1 1 250px;height:clamp(56px,5.6vh,64px);padding:0 24px;border-radius:999px;
  border:2px solid rgba(33,50,60,.14);background:rgba(255,255,255,.94);
  font:700 clamp(15.5px,1vw,17.5px) 'Nunito',sans-serif;color:var(--ink)}
.wl-form input[type=email]::placeholder{color:#9aabb4;font-weight:700}
.wl-form input[type=email]:focus{border-color:var(--brand);outline:none}
.wl-form button{height:clamp(56px,5.6vh,64px);padding:0 clamp(26px,2.4vw,40px);border:none;
  border-radius:999px;cursor:pointer;
  background:var(--brand);color:#fff;font:800 clamp(16px,1.05vw,18px) 'Nunito',sans-serif;
  box-shadow:0 10px 22px -8px rgba(55,47,208,.55);transition:.16s}
.wl-form button:hover{background:var(--brand-deep);transform:translateY(-1px)}
.wl-form button:disabled{opacity:.6;cursor:default;transform:none}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.wl-note{width:100%;font-size:15px;font-weight:800;min-height:0}
.wl-note.ok{color:#2e6b60;background:linear-gradient(90deg,rgba(248,238,78,.55),rgba(248,238,78,0) 70%);
  border-radius:10px;padding:8px 12px}
.cta-final .wl-note.ok{color:var(--sun);background:none;padding:0}
.wl-note.err{color:#b3564b}
.cta-final .wl-note.err{color:#ffb3a8}

/* ---------------------------------------------------------------------
   Section 2 — la plage : ce qui t'attend
   --------------------------------------------------------------------- */
.expect{background:var(--sand);padding:clamp(48px,7vh,96px) clamp(20px,4vw,64px) clamp(64px,9vh,130px)}
.expect .wrap{max-width:1360px;margin:0 auto;text-align:center}
.eyebrow{font-size:clamp(12.5px,.85vw,15px);font-weight:800;letter-spacing:.14em;
  text-transform:uppercase;color:var(--brand)}
.expect h2{margin-top:12px;font-size:clamp(28px,2.9vw,54px)}
.fleet{position:relative;margin-top:clamp(32px,6vh,72px);display:flex;justify-content:space-between;
  align-items:flex-end;gap:12px;max-width:920px;margin-left:auto;margin-right:auto}
.fleet-line{position:absolute;left:4%;right:4%;bottom:clamp(50px,5vh,62px);width:92%;height:40px;z-index:0}
.fleet figure{position:relative;z-index:1;flex:1;display:flex;flex-direction:column;align-items:center;
  gap:clamp(10px,1.6vh,18px)}
.fleet img{filter:drop-shadow(0 10px 10px rgba(15,55,70,.18))}
.fleet figure:nth-child(2) img{height:clamp(56px,6vw,86px);width:auto}
.fleet figure:nth-child(3) img{height:clamp(78px,8.4vw,120px);width:auto}
.fleet figure:nth-child(4) img{height:clamp(112px,12vw,172px);width:auto}
.fleet figcaption{font-size:clamp(13.5px,1vw,16.5px);font-weight:800;color:var(--ink-soft)}

/* galerie : 3 écrans du prototype, légèrement en éventail */
.gallery{margin-top:clamp(48px,9vh,110px);display:grid;grid-template-columns:repeat(3,1fr);
  gap:clamp(20px,3.5vw,72px);align-items:start}
.shot{display:flex;flex-direction:column;gap:clamp(18px,3vh,30px)}
.shot > img{display:block;width:min(100%,clamp(252px,17.5vw,336px));margin:0 auto;
  filter:drop-shadow(0 30px 34px rgba(15,45,65,.3));transition:transform .35s ease}
.shot.s1 > img{transform:rotate(-4deg)}
.shot.s3 > img{transform:rotate(4deg)}
.shot:hover > img{transform:rotate(0) translateY(-10px)}
.shot figcaption h3{font-size:clamp(19px,1.5vw,26px);color:var(--ink)}
.shot figcaption p{margin:9px auto 0;font-size:clamp(14.5px,1.05vw,17px);font-weight:600;
  color:var(--ink-soft);line-height:1.6;max-width:24em}
.trust{margin:clamp(48px,9vh,100px) auto 0;max-width:46em;font-size:clamp(14px,1vw,16.5px);
  font-weight:700;color:var(--ink-soft);line-height:1.65}
.trust svg{display:block;width:44px;height:14px;margin:0 auto 12px;color:var(--brand)}

/* apparition douce au scroll — uniquement si le JS est là (html.js) */
html.js .reveal{opacity:0;transform:translateY(18px);transition:opacity .7s ease,transform .7s ease}
html.js .reveal.in{opacity:1;transform:none}
html.js .shot.reveal{transition-delay:.05s}
html.js .shot.s2.reveal{transition-delay:.15s}
html.js .shot.s3.reveal{transition-delay:.25s}

/* ---------------------------------------------------------------------
   Section 3 — CTA final, nuit en mer
   --------------------------------------------------------------------- */
.cta-final{position:relative;padding:clamp(80px,14vh,170px) 20px clamp(120px,20vh,230px);overflow:hidden}
.cta-final .scene .sky{height:74%}
.cta-final .scene .sea{top:74%}
.cta-final .scene .swell{top:72%}
.cta-final .scene .orb{top:13%;right:11%;width:clamp(52px,4.4vw,86px);height:clamp(52px,4.4vw,86px)}
.moon-streak{position:absolute;top:74%;right:calc(11% + 6px);width:clamp(44px,3.8vw,74px);height:26%;
  background:linear-gradient(180deg,rgba(242,238,217,.28),rgba(242,238,217,0));
  filter:blur(6px);transform:skewX(-4deg)}
.cta-boat{position:absolute;left:11%;bottom:calc(26% - 14px);width:clamp(96px,9vw,168px);
  filter:brightness(.32) saturate(.6) drop-shadow(0 8px 10px rgba(0,0,10,.5));
  animation:boatBob 5.4s ease-in-out infinite}
.lantern{position:absolute;left:calc(11% + clamp(54px,5vw,94px));bottom:calc(26% + clamp(22px,2.4vw,42px));
  width:10px;height:10px;
  border-radius:50%;background:#ffd84d;box-shadow:0 0 22px 9px rgba(255,216,77,.45);
  animation:lanternGlow 3.2s ease-in-out infinite alternate}
@keyframes lanternGlow{from{box-shadow:0 0 18px 7px rgba(255,216,77,.38)}
  to{box-shadow:0 0 26px 11px rgba(255,216,77,.55)}}
.cta-inner{position:relative;z-index:5;max-width:780px;margin:0 auto;text-align:center;color:#fff}
.cta-final h2{font-size:clamp(30px,3.2vw,58px)}
.cta-lede{margin-top:16px;font-size:clamp(15.5px,1.15vw,19.5px);font-weight:700;
  color:rgba(255,255,255,.85);line-height:1.55}
.cta-final .wl-form{margin:clamp(28px,4vh,40px) auto 0;justify-content:center}
.cta-final .wl-note{text-align:center}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
footer{background:var(--night-ink);color:rgba(255,255,255,.66);font-size:13.5px;font-weight:700;
  display:flex;flex-wrap:wrap;gap:10px 26px;justify-content:center;align-items:center;
  padding:26px 20px}
footer a{color:rgba(255,255,255,.85)}

/* ---------------------------------------------------------------------
   Page confidentialité
   --------------------------------------------------------------------- */
.legal{max-width:680px;margin:0 auto;padding:56px 22px 80px}
.legal h1{font-size:32px}
.legal h2{margin-top:34px;font-size:21px}
.legal p{margin-top:12px;font-weight:600;color:var(--ink-soft);line-height:1.65}
.legal .back{display:inline-block;margin-bottom:28px;font-weight:800;color:var(--brand);text-decoration:none}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width:880px){
  .hero{min-height:auto}
  .scene .orb{top:2.5%;right:-6%;width:92px;height:92px}
  .scene .haze{display:none}
  .hero-grid{grid-template-columns:1fr;column-gap:0}
  .hero-copy{max-width:none;text-align:center;padding-top:3vh;margin:0 auto}
  .lede{margin-left:auto;margin-right:auto}
  .wl-form{justify-content:center;margin-left:auto;margin-right:auto}
  .wl-form button{flex:1 1 100%}
  .steps{justify-content:center;gap:12px;margin-top:26px}
  .steps li{font-size:13.5px}
  .hero-stage{min-height:0;margin-top:1vh;padding-bottom:34px}
  .hero-phone{position:static;transform:none;margin:18px auto 0;width:230px;animation:none}
  .phone-reflect{display:none}
  .hero-boat{display:none}
  .fleet figure:nth-child(2) img{height:52px}
  .fleet figure:nth-child(3) img{height:72px}
  .fleet figure:nth-child(4) img{height:104px}
  .fleet-line{bottom:44px}
  .gallery{grid-template-columns:1fr;gap:44px}
  .shot.s1 > img,.shot.s3 > img{transform:none}
}

/* écrans peu hauts (laptops 768p) : resserrer la colonne texte */
@media (min-width:881px) and (max-height:860px){
  .topbar{padding-top:18px}
  .steps{display:none}
  .hero-copy{padding-top:2vh}
  .hero h1{font-size:clamp(34px,7vh,64px)}
  .lede{margin-top:12px}
  .wl-form{margin-top:16px}
  .wl-form input[type=email],.wl-form button{height:54px}
  .fineprint{margin-top:10px}
  .steps{margin-top:4vh}
  .hero-phone{width:clamp(200px,17vw,300px)}
}

/* hook de capture (vérification headless) : héros à hauteur fixe */
.capture .hero{min-height:900px;max-height:900px}

@media (prefers-reduced-motion:reduce){
  .scene .cloud,.hero-boat,.hero-phone,.cta-boat,.lantern,.scene .stars.twinkle{animation:none}
  html.js .reveal{opacity:1;transform:none;transition:none}
  .shot > img{transition:none}
  html{scroll-behavior:auto}
}
