:root {
  --ocean-deep: #062e53;
  --ocean-mid: #0d5a83;
  --ocean-light: #1c84a8;
  --foam: #46afc7;
  --coral: #f26c4f;
  --sunset: #f5b75a;
  --sand: #f6d38b;
  --cream: #f1eeea;
  --night: #082741;
  --text: var(--night);
  --muted: rgba(8, 39, 65, 0.72);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --radius: 20px;
  --shadow: 0 20px 50px rgba(6, 46, 83, 0.18);
  --flowax-navy: #051126;
  --flowax-blue: #0056b3;
  --flowax-cyan: #00aaff;
  --flowax-gradient: linear-gradient(135deg, var(--flowax-blue), var(--flowax-cyan));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

a {
  color: var(--ocean-mid);
  font-weight: 600;
}

.container {
  width: min(1080px, 92vw);
  margin-inline: auto;
}

.narrow {
  width: min(680px, 92vw);
}

.centered {
  text-align: center;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 238, 234, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 90, 131, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-icon {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
}

.logo-wordmark {
  display: block;
  height: 1.35rem;
  width: auto;
  max-width: min(118px, 30vw);
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 1.2rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--ocean-deep);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(13, 90, 131, 0.2);
  background: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  cursor: pointer;
  color: var(--night);
}

/* Hero */
.hero {
  position: relative;
  padding: 4rem 0 3.5rem;
  overflow: hidden;
}

.hero-waves {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, var(--ocean-deep) 0%, var(--ocean-mid) 42%, var(--foam) 100%);
  clip-path: ellipse(120% 85% at 50% 0%);
  opacity: 0.95;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy {
  color: #fff;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sunset);
  margin: 0 0 0.85rem;
}

h1 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  font-weight: 800;
}

.accent {
  color: var(--sunset);
}

.lead {
  font-size: 1.08rem;
  opacity: 0.92;
  max-width: 32rem;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

.btn {
  display: inline-flex;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-coral {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 28px rgba(242, 108, 79, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-night {
  background: var(--night);
  color: #fff;
}

/* Phone mock */
.phone-mock {
  display: flex;
  justify-content: center;
  filter: drop-shadow(0 28px 48px rgba(6, 46, 83, 0.45));
}

.phone-frame {
  position: relative;
  width: min(280px, 72vw);
  padding: 10px;
  border-radius: 38px;
  background: linear-gradient(160deg, #fff 0%, var(--sand) 100%);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.5),
    var(--shadow);
}

.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: var(--ocean-deep);
  line-height: 0;
}

.phone-screen img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
}

/* App intro */
.app-intro {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.brand-showcase {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.35rem 1.5rem 1.1rem;
  border-radius: 24px;
  background: linear-gradient(
    165deg,
    var(--ocean-deep) 0%,
    var(--ocean-mid) 55%,
    var(--foam) 100%
  );
  box-shadow: var(--shadow);
}

.brand-showcase-icon {
  width: min(100px, 22vw);
  height: auto;
  object-fit: contain;
}

.brand-showcase-wordmark {
  width: min(180px, 38vw);
  height: auto;
  object-fit: contain;
}

.app-intro h2 {
  margin-top: 0;
}

.brand-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.brand-stack-icon {
  width: 4rem;
  height: auto;
  object-fit: contain;
}

.brand-stack-wordmark {
  width: min(150px, 32vw);
  height: auto;
  object-fit: contain;
}

/* Gallery */
.section-gallery {
  background: #fff;
}

.gallery-lead {
  max-width: 36rem;
  margin: 0 auto 2rem;
  color: var(--muted);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.shot-card {
  margin: 0;
}

.shot-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 22px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--cream);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shot-trigger:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(6, 46, 83, 0.22);
}

.shot-trigger:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.shot-trigger img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
}

.shot-featured .shot-trigger {
  border: 2px solid var(--foam);
}

.shot-card figcaption {
  margin-top: 0.55rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ocean-mid);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(6, 46, 83, 0.88);
  backdrop-filter: blur(8px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-inner {
  margin: 0;
  max-width: min(420px, 92vw);
  text-align: center;
}

.lightbox-inner img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-inner figcaption {
  margin-top: 0.85rem;
  color: #fff;
  font-size: 0.95rem;
}


/* Sections */
.section {
  padding: 4rem 0;
}

.section-sand {
  background: linear-gradient(180deg, #fff 0%, var(--sand) 120%);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  color: var(--night);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.feature {
  padding: 1.35rem;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(13, 90, 131, 0.08);
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--ocean-deep);
}

.feature p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.audience-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(13, 90, 131, 0.1);
}

.audience-card h3 {
  margin: 0 0 0.5rem;
  color: var(--ocean-mid);
}

.audience-pro {
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-mid));
  color: #fff;
  border: none;
}

.audience-pro h3 {
  color: var(--sunset);
}

.audience-pro p {
  opacity: 0.9;
}

/* Flowax (palette éditeur) */
.section-flowax {
  padding-bottom: 4.5rem;
}

.flowax-box {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.25rem;
  border-radius: 24px;
  background: var(--white, #fff);
  border: 1px solid rgba(0, 86, 179, 0.14);
  box-shadow: 0 20px 48px rgba(5, 17, 38, 0.08);
}

.flowax-brand {
  text-decoration: none;
}

.flowax-brand img {
  display: block;
  width: min(260px, 42vw);
  height: auto;
  object-fit: contain;
}

.flowax-eyebrow {
  color: var(--flowax-cyan) !important;
}

.flowax-copy p {
  margin: 0 0 1rem;
  color: var(--flowax-navy);
  max-width: 28rem;
}

.flowax-copy strong {
  color: var(--flowax-blue);
}

.btn-flowax {
  display: inline-flex;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  background: var(--flowax-gradient);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 86, 179, 0.25);
}

.btn-flowax:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}

.footer-flowax img {
  height: 1.75rem;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

.footer-flowax a:hover {
  text-decoration: none;
  opacity: 1;
}

.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(13, 90, 131, 0.12);
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .phone-mock {
    order: -1;
  }

  .screenshot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-featured {
    grid-column: 1 / -1;
  }

  .shot-featured .shot-trigger img {
    max-height: 420px;
    margin-inline: auto;
    width: auto;
    max-width: 100%;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .audience {
    grid-template-columns: 1fr;
  }

  .flowax-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .flowax-brand {
    margin-inline: auto;
  }

  .flowax-copy p {
    margin-inline: auto;
  }

  .brand-showcase {
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .screenshot-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 4vw;
    flex-direction: column;
    background: #fff;
    padding: 1rem;
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }
}
