/* ─────────────────────────────────────────────
   FluidBody+ · landing page
   Palette : navy #021222 · turquoise #3A7E8E · lime #AEEF4D · cassé #F5F7F9
   ───────────────────────────────────────────── */

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--lime);
  color: var(--navy);
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.15s var(--easing);
}
.skip-link:focus { top: 16px; outline: 2px solid var(--cream); outline-offset: 2px; }

:root {
  --navy: #021222;
  --navy-2: #07203a;
  --turq: #3A7E8E;
  --lime: #AEEF4D;
  --cream: #F5F7F9;
  --white-12: rgba(255, 255, 255, 0.12);
  --white-20: rgba(255, 255, 255, 0.20);
  --white-50: rgba(255, 255, 255, 0.50);
  --white-70: rgba(255, 255, 255, 0.70);
  --max: 1180px;
  --radius: 18px;
  --easing: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
               'Segoe UI', system-ui, sans-serif;
  background: var(--navy);
  color: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.lime { color: var(--lime); }

/* Headings */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.4em; letter-spacing: -0.035em; }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

.eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--lime);
  font-weight: 600;
  margin-bottom: 1rem;
}
.lead { font-size: 1.1rem; color: var(--white-70); max-width: 640px; margin: 0 auto 2.5rem; }

/* ─────────────────────────────────────────────
   NAV
   ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(2, 18, 34, 0);
  backdrop-filter: blur(0);
  transition: background 0.4s var(--easing), backdrop-filter 0.4s var(--easing), padding 0.3s var(--easing);
}
.nav.scrolled {
  background: rgba(2, 18, 34, 0.78);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  padding: 12px 32px;
  border-bottom: 1px solid var(--white-12);
}
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 28px; align-items: center; }
.nav__links a {
  font-size: 0.92rem;
  color: var(--white-70);
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--cream); }
.nav__cta {
  padding: 8px 18px;
  background: var(--lime);
  color: var(--navy) !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem !important;
  transition: transform 0.25s var(--easing), box-shadow 0.25s ease;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(174, 239, 77, 0.35); }

@media (max-width: 640px) {
  .nav { padding: 14px 18px; }
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ─────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
  background: linear-gradient(180deg, var(--navy) 0%, #0a2238 38%, #1d4f60 72%, var(--turq) 100%);
  overflow: hidden;
}

.hero__bubbles {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 78%, rgba(174,239,77,0.06) 0, transparent 12%),
    radial-gradient(circle at 88% 38%, rgba(0,189,208,0.10) 0, transparent 18%),
    radial-gradient(circle at 50% 92%, rgba(255,255,255,0.04) 0, transparent 22%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  text-align: center;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.meduse {
  width: 260px;
  height: 460px;
  margin-bottom: -40px;
  animation: floatY 6s ease-in-out infinite;
  filter: drop-shadow(0 30px 60px rgba(0, 230, 255, 0.25));
}
.meduse img,
.meduse svg { width: 100%; height: 100%; display: block; }

/* Note : la méduse centrale du hero reste inlinée en SVG (avec ses classes
   .medusa-tentacles / .medusa-tentacles-inner / .medusa-bell) au cas où on
   voudrait réactiver des animations plus tard, mais aucune animation n'y
   est appliquée. Le seul mouvement de la méduse centrale est le floatY
   vertical hérité du parent .meduse. */

@keyframes floatY {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-18px) scale(1.04); }
}

.hero__title {
  font-size: clamp(3.2rem, 9vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
  margin-bottom: 0.4rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.hero__subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 500;
  color: var(--cream);
  opacity: 0.85;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.hero__pitch {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--white-70);
  margin-bottom: 2.5rem;
  max-width: 560px;
  line-height: 1.6;
}

.hero__scroll {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 2px solid var(--white-50);
  border-radius: 12px;
  opacity: 0.6;
}
.hero__scroll span {
  display: block;
  width: 3px;
  height: 8px;
  background: var(--cream);
  border-radius: 2px;
  margin: 6px auto 0;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%      { transform: translateY(12px); opacity: 1; }
}

/* App Store badge */
.app-store-badge {
  display: inline-block;
  transition: transform 0.3s var(--easing), filter 0.3s ease;
}
.app-store-badge:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.1); }
.app-store-badge img { width: 220px; height: auto; }
.app-store-badge--lg img { width: 260px; }

/* ─────────────────────────────────────────────
   SABRINA
   ───────────────────────────────────────────── */
.sabrina {
  background: linear-gradient(180deg, var(--turq) 0%, #1d4256 50%, var(--navy) 100%);
  padding: 120px 0;
}
.sabrina__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.sabrina__photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  transform: perspective(1200px) rotateY(-3deg);
  transition: transform 0.6s var(--easing);
}
.sabrina__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(174,239,77,0.10));
}
.sabrina__photo img { width: 100%; height: 100%; object-fit: cover; }
.sabrina__photo:hover { transform: perspective(1200px) rotateY(0deg); }

.sabrina__text p { color: var(--white-70); margin-bottom: 1.2rem; font-size: 1.05rem; }
.sabrina__text strong { color: var(--cream); font-weight: 600; }
.sabrina__text em { color: var(--lime); font-style: normal; }

.stats { display: flex; gap: 32px; margin-top: 2.5rem; flex-wrap: wrap; }
.stat { border-top: 1px solid var(--white-20); padding-top: 1rem; flex: 1; min-width: 110px; }
.stat__num {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.stat__num .lime { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.05em; }
.stat__lbl { font-size: 0.85rem; color: var(--white-50); margin-top: 4px; }

@media (max-width: 860px) {
  .sabrina { padding: 80px 0; }
  .sabrina__grid { grid-template-columns: 1fr; gap: 50px; }
  .sabrina__photo { max-width: 420px; margin: 0 auto; transform: none; }
}

/* ─────────────────────────────────────────────
   PILIERS
   ───────────────────────────────────────────── */
.piliers { padding: 120px 0; background: var(--navy); position: relative; }
.piliers::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(58,126,142,0.15), transparent 60%);
  pointer-events: none;
}
.piliers .container { position: relative; }

.piliers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 3rem;
}
.card {
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--white-12);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.4s var(--easing), border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.card h3 { margin-bottom: 0.6rem; color: var(--cream); }
.card p { color: var(--white-70); font-size: 0.95rem; line-height: 1.5; }
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(174, 239, 77, 0.45);
  background: linear-gradient(160deg, rgba(174,239,77,0.06), rgba(255,255,255,0.02));
  box-shadow: 0 20px 50px rgba(174, 239, 77, 0.08);
}

@media (max-width: 860px) { .piliers__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .piliers__grid { grid-template-columns: 1fr; } .piliers { padding: 80px 0; } }

/* ─────────────────────────────────────────────
   POURQUOI
   ───────────────────────────────────────────── */
.pourquoi {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--navy) 0%, #051a30 100%);
}
.pourquoi__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 3rem;
}
.prop {
  text-align: center;
  padding: 24px;
}
.prop__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(174, 239, 77, 0.08);
  border: 1px solid rgba(174, 239, 77, 0.25);
}
.prop h3 { margin-bottom: 0.8rem; }
.prop p { color: var(--white-70); font-size: 0.98rem; }

@media (max-width: 860px) {
  .pourquoi { padding: 80px 0; }
  .pourquoi__grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ─────────────────────────────────────────────
   CTA FINAL
   ───────────────────────────────────────────── */
.cta {
  position: relative;
  padding: 140px 0;
  background: linear-gradient(180deg, #051a30, var(--navy));
  overflow: hidden;
  text-align: center;
}
.cta__bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.08;
  pointer-events: none;
  filter: blur(2px);
}
.cta__bg img {
  width: 600px;
  max-width: 90%;
  height: auto;
  animation: floatY 8s ease-in-out infinite;
}
.cta__inner { position: relative; }
.cta .app-store-badge { margin-top: 2.5rem; }
.cta__note {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--white-50);
}

@media (max-width: 640px) { .cta { padding: 90px 0; } }

/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */
.footer {
  padding: 60px 0 40px;
  background: #010a14;
  border-top: 1px solid var(--white-12);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.footer__brand img { height: 26px; width: auto; margin-bottom: 6px; }
.footer__brand p { font-size: 0.85rem; color: var(--white-50); }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer__links a {
  font-size: 0.88rem;
  color: var(--white-50);
  transition: color 0.2s ease;
}
.footer__links a:hover { color: var(--lime); }
.footer__copy {
  font-size: 0.82rem;
  color: var(--white-50);
  text-align: right;
}

@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__brand img { margin: 0 auto 6px; }
  .footer__copy { text-align: center; }
}

/* ─────────────────────────────────────────────
   FADE-IN ON SCROLL
   ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--easing), transform 0.9s var(--easing);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .meduse, .cta__bg img, .hero__scroll span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ─────────────────────────────────────────────
   AQUATIC BG — méduses + bulles ambiantes
   Couche fixe sur tout le viewport, illumine les sections via screen blend.
   ───────────────────────────────────────────── */
.aquatic-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
  mix-blend-mode: screen;
}

/* Sections / main / footer passent en stacking context z-index:1 → en dessous
   du blend de l'aquatic-bg mais conservent leurs fonds opaques. La nav garde
   sa propre règle (z-index 100) car .nav est plus spécifique que body > header. */
body > section,
body > main,
body > footer { position: relative; z-index: 1; }

.medusa {
  position: absolute;
  opacity: var(--medusa-o, 0.55);
  will-change: transform;
  animation: medusaDrift ease-in-out infinite alternate;
}
.medusa__sway {
  will-change: transform, opacity;
  animation:
    medusaSway  ease-in-out infinite alternate,
    medusaPulse ease-in-out infinite;
}
.medusa img {
  display: block;
  width: 100%;
  height: auto;
  /* Effet néon LIME (#AEEF4D) : sepia force la base en brun monochrome,
     puis hue-rotate la bascule en vert-jaune. Sans sepia, hue-rotate sur
     du quasi-blanc ne change presque rien. */
  filter:
    brightness(1.35)
    saturate(2.4)
    sepia(0.8)
    hue-rotate(35deg)
    drop-shadow(0 0 14px rgba(174, 239, 77, 0.75))
    drop-shadow(0 0 32px rgba(174, 239, 77, 0.45));
}

/* Drift vertical large : ~36vh d'amplitude → ~300px sur écran standard,
   parfaitement visible. */
@keyframes medusaDrift {
  from { transform: translateY(-18vh); }
  to   { transform: translateY(18vh); }
}
/* Sway combine translateX + rotation pendulaire (±12°) → mouvement
   organique de méduse qui penche en dérivant. */
@keyframes medusaSway {
  from { transform: translateX(-50px) rotate(-12deg); }
  to   { transform: translateX(50px)  rotate(12deg); }
}
/* Pulse bioluminescent : applied on inner wrapper → multiplie l'opacité de
   base (.medusa) sans la remplacer, donc la variation par méduse est
   préservée. */
@keyframes medusaPulse {
  0%, 100% { opacity: 0.78; }
  50%      { opacity: 1; }
}

.bubble {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.85), rgba(184,232,247,0.35) 60%, rgba(184,232,247,0) 100%);
  border: 1px solid rgba(255,255,255,0.35);
  will-change: transform, opacity;
  opacity: 0;
  animation: bubbleUp linear infinite;
}

@keyframes bubbleUp {
  0%   { transform: translateY(0);      opacity: 0; }
  6%   { opacity: 0.55; }
  90%  { opacity: 0.40; }
  100% { transform: translateY(-105vh); opacity: 0; }
}

/* Mobile : densité réduite + opacité atténuée (multiplie la base par ~0.7)
   pour ne pas overcharger sur petits écrans. */
@media (max-width: 640px) {
  .aquatic-bg .medusa:nth-child(n+4) { display: none; }
  .aquatic-bg .bubble:nth-child(n+10) { display: none; }
  .medusa { opacity: calc(var(--medusa-o, 0.55) * 0.72); }
  .medusa img {
    /* Halo réduit sur mobile pour économiser le GPU */
    filter:
      brightness(1.3)
      saturate(2.2)
      sepia(0.8)
      hue-rotate(35deg)
      drop-shadow(0 0 10px rgba(174, 239, 77, 0.7));
  }
}

@media (prefers-reduced-motion: reduce) {
  .medusa, .medusa__sway, .bubble { animation: none; }
  .bubble { opacity: 0.4; bottom: auto; top: 50%; }
}

/* ─────────────────────────────────────────────
   LEGAL PAGES (privacy.html, terms.html)
   ───────────────────────────────────────────── */
.legal-page {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(174,239,77,0.08) 0%, transparent 60%),
    linear-gradient(180deg, #021222 0%, #07203a 35%, #021222 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

.legal__hero {
  padding: 140px 0 50px;
  text-align: center;
  border-bottom: 1px solid var(--white-12);
  position: relative;
}
.legal__hero::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(174,239,77,0.4), transparent);
}
.legal__hero .eyebrow { margin-bottom: 1.2rem; }
.legal__hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.035em;
  margin-bottom: 1rem;
}
.legal__hero .lead { margin-bottom: 0; }

.lang-switch {
  display: inline-flex;
  margin-top: 2rem;
  padding: 4px;
  background: rgba(10, 20, 35, 0.7);
  border: 1px solid var(--white-20);
  border-radius: 999px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.lang-switch button {
  background: transparent;
  border: 0;
  color: var(--white-50);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-switch button:hover { color: var(--cream); }
.lang-switch button.active {
  background: var(--lime);
  color: var(--navy);
  box-shadow: 0 0 16px rgba(174, 239, 77, 0.35);
}

.legal {
  max-width: 780px;
  padding: 50px 24px 100px;
}
.legal__article[hidden] { display: none; }
.legal__article .updated {
  font-size: 0.88rem;
  color: var(--white-50);
  margin-bottom: 2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--white-12);
}
.legal__article p {
  color: rgba(245, 247, 249, 0.86);
  margin-bottom: 1rem;
  font-size: 1.02rem;
  line-height: 1.7;
}
.legal__article h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2.6rem 0 1rem;
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--cream);
}
.legal__article h2::before {
  content: "";
  width: 4px; height: 18px;
  background: var(--lime);
  border-radius: 2px;
  flex-shrink: 0;
  align-self: center;
}
.legal__article ul {
  margin: 0 0 1.2rem;
  padding-left: 20px;
}
.legal__article li {
  margin-bottom: 0.65rem;
  color: rgba(245, 247, 249, 0.86);
  line-height: 1.65;
}
.legal__article li::marker { color: var(--lime); }
.legal__article strong { color: var(--cream); font-weight: 600; }
.legal__article em { color: var(--lime); font-style: normal; font-weight: 500; }
.legal__article code {
  background: rgba(174, 239, 77, 0.10);
  color: var(--lime);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
}
.legal__article a {
  color: var(--lime);
  border-bottom: 1px solid rgba(174, 239, 77, 0.35);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.legal__article a:hover {
  color: #c4f570;
  border-bottom-color: var(--lime);
}

.legal__contact {
  margin-top: 2rem;
  padding: 24px 26px;
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--white-12);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.legal__contact strong {
  display: block;
  margin-bottom: 10px;
  color: var(--lime);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.legal__contact a {
  font-size: 1.05rem;
  font-weight: 600;
  display: inline-block;
}
.legal__contact span {
  display: block;
  margin-top: 10px;
  color: var(--white-50);
  font-size: 0.88rem;
}

@media (max-width: 540px) {
  .legal__hero { padding: 110px 0 36px; }
  .legal { padding: 36px 20px 72px; }
  .legal__article p, .legal__article li { font-size: 0.98rem; }
  .legal__article h2 { font-size: 1.2rem; margin-top: 2rem; }
}
