/* landing.css - AAQ landing « océan », thèmes clair/sombre, fond animé. */

:root,
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: #f1f9fd;
  --card: #ffffff;
  --ink: #07314c;
  --ink-soft: #527386;
  --brand: #0a93c9;
  --brand-2: #00b4d8;
  --brand-deep: #045b86;
  --tint: #e3f5fc;
  --line: #d8e9f2;
  --shadow: 0 18px 50px -28px rgba(7, 49, 76, 0.45);
  --nav-bg: rgba(255, 255, 255, 0.72);
  --star: #f4a52b;
}

:root[data-theme="dark"] {
  --bg: #04101a;
  --bg-soft: #08202f;
  --card: #0a2032;
  --ink: #e9f5fc;
  --ink-soft: #9dc1d6;
  --brand: #2bb6e8;
  --brand-2: #54d6f6;
  --brand-deep: #0a93c9;
  --tint: #0e2a3d;
  --line: #16384f;
  --shadow: 0 22px 60px -30px rgba(0, 0, 0, 0.8);
  --nav-bg: rgba(6, 20, 31, 0.66);
  --star: #f4b942;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}

.font-display {
  font-family: "Bricolage Grotesque", "Hanken Grotesk", sans-serif;
  letter-spacing: -0.02em;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.wrap {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.85rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.25rem;
}
.brand .drop {
  width: 28px;
  height: 28px;
}
.nav-links {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a:hover {
  color: var(--brand);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
#theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
#theme-toggle:hover {
  transform: rotate(20deg);
  border-color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 12px 26px -12px var(--brand);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -14px var(--brand);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.btn-lg {
  padding: 0.95rem 1.7rem;
  font-size: 1.05rem;
}

/* ── Hero ────────────────────────────────────────────────────────────── */
section {
  position: relative;
  z-index: 1;
}
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  padding: 4.5rem 0 3.5rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: var(--tint);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  line-height: 1.05;
  margin: 1.1rem 0 0.4rem;
}
.hero h1 .ink-accent {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34ch;
}
.hero-cta {
  display: flex;
  gap: 0.8rem;
  margin: 1.6rem 0 1.2rem;
  flex-wrap: wrap;
}
.trust {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  list-style: none;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.trust .ti {
  color: var(--brand);
  font-size: 1.05rem;
}
ul.trust {
  padding: 0;
  margin: 0.4rem 0 0;
}

/* ── Hero visual : mockup produit animé ──────────────────────────────── */
.hero-visual {
  position: relative;
  min-height: 400px;
}
.mock {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  will-change: transform;
}
.mock-front {
  width: min(430px, 88%);
  right: 0;
  top: 34px;
  z-index: 2;
  animation: floaty 7s ease-in-out infinite;
}
.mock-back {
  width: min(260px, 62%);
  left: 0;
  top: 0;
  z-index: 1;
  animation: floaty 8.4s ease-in-out infinite reverse;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-13px); }
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.mock-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.mock-bar i:nth-child(1) { background: #ff5f57; }
.mock-bar i:nth-child(2) { background: #febc2e; }
.mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar em {
  margin-left: 8px;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.mock-body { padding: 16px; }
.mock-shot-wrap { max-height: 360px; overflow: hidden; background: var(--bg-soft); }
.mock-shot { width: 100%; display: block; }
.mock-mini { padding: 14px; }
.mm-title { margin: 0 0 10px; font-size: 0.9rem; }
.mm-line { height: 9px; border-radius: 6px; background: var(--tint); margin: 7px 0; }
.mm-pill {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.68rem;
  font-family: ui-monospace, monospace;
  color: var(--brand-deep);
  background: var(--tint);
  padding: 3px 7px;
  border-radius: 6px;
}
.w50 { width: 50%; } .w55 { width: 55%; } .w60 { width: 60%; }
.w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; }
.mock-score { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.mock-donut { width: 58px; height: 58px; transform: rotate(-90deg); }
.mock-score-txt strong { display: block; font-size: 1rem; color: var(--brand-deep); }
.mock-score-txt small { color: var(--ink-soft); font-size: 0.8rem; }
.mock-rows { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 9px; }
.mock-rows li { display: flex; align-items: center; gap: 10px; }
.pill {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  flex: 0 0 auto;
}
.pill.ok { background: #1f9d57; }
.pill.warn { background: #e0922f; }
.mock-line { height: 9px; border-radius: 6px; background: var(--tint); }
.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 72px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}
.mock-bars span { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--brand-2), var(--brand)); }
.fx-badge {
  position: absolute;
  top: 6px;
  right: -8px;
  z-index: 3;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  animation: floaty 6s ease-in-out infinite;
}
.fx-dot,
.fx-star { position: absolute; z-index: 0; animation: floaty 9s ease-in-out infinite; }
.fx-dot { width: 14px; height: 14px; border-radius: 50%; }
.fx-star { font-size: 1.2rem; line-height: 1; }
.c-brand { background: var(--brand); }
.fx-star.c-brand { background: none; color: var(--brand); }
.c-amber { background: #f4a52b; }
.fx-star.c-amber { background: none; color: #f4a52b; }
.c-teal { background: #1fb6c9; }
.c-red { background: #ef6f5e; }
.fx1 { top: 6%; right: 20%; }
.fx2 { top: 38%; right: -2%; }
.fx3 { top: 12%; right: 4%; }
.fx4 { bottom: 12%; left: 6%; }
.fx5 { bottom: 26%; right: 32%; }
.fx6 { bottom: 2%; right: 16%; }

/* ── Kali : assistant flottant (bulle propre) ────────────────────────── */
.kali-chip {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: min(330px, 78vw);
}
.kali-mascot {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 14px rgba(10, 147, 201, 0.35));
  animation: bob 4.5s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-5px) rotate(1.5deg); }
}
.kali-mascot .kali-eyes { animation: blink 5.5s infinite; transform-origin: 32px 31px; }
@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.12); }
}
.mascot-bubble {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 14px 14px 4px 14px;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.mascot-bubble.fading { opacity: 0; transform: translateY(6px); }

/* ── Bande « premier du marché » ─────────────────────────────────────── */
.first {
  text-align: center;
  padding: 2.6rem 0;
  margin: 1rem 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.first .tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.first h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  margin: 0.6rem 0 0;
  line-height: 1.15;
}
.first-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 2.2rem;
  align-items: center;
}
.first-text { text-align: left; }
.first-img {
  width: 100%;
  max-width: 380px;
  justify-self: center;
  filter: drop-shadow(0 16px 34px rgba(11, 46, 138, 0.28));
  animation: floaty 7s ease-in-out infinite;
}
@media (max-width: 760px) {
  .first-grid { grid-template-columns: 1fr; }
  .first-text { text-align: center; }
  .first-img { max-width: 260px; }
}

/* ── Sections génériques ─────────────────────────────────────────────── */
.section {
  padding: 4.5rem 0;
}
.section-head {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 2.6rem;
}
.section-head .tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin: 0.5rem 0 0.4rem;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ── Features ────────────────────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}
.feature-hot {
  border-color: var(--brand);
  background: linear-gradient(180deg, var(--tint), var(--card));
}
.feature-ico {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--tint);
  color: var(--brand-deep);
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
}
.feature-title {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}
.feature-text {
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin: 0;
}

/* ── Accordéon référentiel ───────────────────────────────────────────── */
.accordion {
  display: grid;
  gap: 0.6rem;
  max-width: 820px;
  margin: 0 auto;
}
.acc-group {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
}
.acc-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 1rem 1.2rem;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  font-size: 1rem;
  text-align: left;
}
.acc-crit {
  font-weight: 700;
  color: var(--brand-deep);
  background: var(--tint);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  white-space: nowrap;
}
.acc-title {
  font-weight: 600;
  flex: 1;
}
.acc-count {
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.acc-chevron {
  font-size: 1.3rem;
  color: var(--brand);
  transition: transform 0.25s ease;
}
.acc-group.open .acc-chevron {
  transform: rotate(45deg);
}
.acc-body {
  list-style: none;
  margin: 0;
  padding: 0 1.2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.acc-group.open .acc-body {
  max-height: 460px;
  padding: 0 1.2rem 1rem;
}
.acc-indicator {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
  border-top: 1px dashed var(--line);
}
.acc-num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--tint);
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ── Parcours (steps) ────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
}
.step-n {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.8rem;
}
.step-title {
  font-size: 1.15rem;
  margin: 0 0 0.3rem;
}
.step-text {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

/* ── Témoignages ─────────────────────────────────────────────────────── */
.testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  max-width: 980px;
  margin: 0 auto;
}
.quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem;
  margin: 0;
}
.quote-stars {
  color: var(--star);
  letter-spacing: 0.12em;
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
}
.quote blockquote {
  margin: 0 0 1.1rem;
  font-size: 1.02rem;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.quote-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}
.quote figcaption strong {
  display: block;
  font-size: 0.97rem;
}
.quote figcaption small {
  color: var(--ink-soft);
}

/* ── Pricing ─────────────────────────────────────────────────────────── */
.pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.7rem 1.4rem;
  display: flex;
  flex-direction: column;
}
.price-card-hot {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}
.pr-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
}
.pr-name {
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}
.pr-price {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--brand-deep);
}
.pr-period {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.pr-tagline {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0.3rem 0 1rem;
  min-height: 2.4em;
}
.pr-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.3rem;
  display: grid;
  gap: 0.55rem;
  flex: 1;
}
.pr-list li {
  display: flex;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--ink);
}
.pr-dot {
  color: var(--brand);
}
.pr-cta {
  justify-content: center;
}

/* ── CTA band + footer ───────────────────────────────────────────────── */
.cta-band {
  text-align: center;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff;
  border-radius: 26px;
  padding: 3rem 1.5rem;
  margin: 1rem 0 3rem;
}
.cta-band h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin: 0 0 0.6rem;
}
.cta-band p {
  opacity: 0.9;
  margin: 0 0 1.5rem;
}
.cta-band .btn-primary {
  background: #fff;
  color: var(--brand-deep);
}
.cta-band ul.trust {
  display: inline-grid;
  text-align: left;
  margin-top: 1.3rem;
}
.cta-band .trust li,
.cta-band .trust .ti {
  color: #eaf8ff;
}
.disclaimer {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.86rem;
  max-width: 70ch;
  margin: 0 auto 2.5rem;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
}

/* ── Reveal ──────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: 320px;
    order: -1;
  }
  .features,
  .steps,
  .pricing {
    grid-template-columns: 1fr 1fr;
  }
  .testimonials {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}
@media (max-width: 560px) {
  .features,
  .steps,
  .pricing {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mock-front,
  .mock-back,
  .fx-badge,
  .fx-dot,
  .fx-star,
  .kali-mascot,
  .reveal {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}
