/* ============================================================
   ColorQuest.io — Landing Page — Style responsive mobile-first
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Fredoka+One&display=swap');

/* ── Variables ───────────────────────────────────────────── */
:root {
  --orange:  #E8820A;
  --green:   #2E8B57;
  --blue:    #2A3FD4;
  --red:     #D42B2B;
  --teal:    #1A9485;
  --purple:  #7C3AED;
  --bg:      #F5EFE4;
  --dark:    #1A1A2E;
  --text:    #2C2C3A;
  --muted:   #6B6B80;
  --white:   #FFFFFF;
  --card-bg: #FFFFFF;

  --font-display: 'Fredoka One', cursive;
  --font-body:    'Nunito', sans-serif;

  --radius:    14px;
  --radius-lg: 24px;
  --shadow:    0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  inset-block-start: 0; inset-inline: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  background: rgba(245,239,228,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1.5px solid rgba(232,130,10,0.12);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.10); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.nav-logo img {
  width: 38px; height: 38px;
  border-radius: 9px;
  object-fit: cover;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--dark);
  white-space: nowrap;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-center a {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.nav-center a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transition: width 0.25s;
}
.nav-center a:hover { color: var(--orange); }
.nav-center a:hover::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Lang switcher */
.lang-switcher {
  display: flex;
  background: var(--dark);
  border-radius: 50px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.45);
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 50px;
  transition: all 0.2s;
  font-family: var(--font-body);
  letter-spacing: 0.5px;
}
.lang-btn.active { background: var(--orange); color: #fff; }
.lang-btn:hover:not(.active) { color: #fff; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.nav-mobile.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--dark);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--orange); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  padding: 6rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative floating shapes */
.deco-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.deco-shape {
  position: absolute;
  opacity: 0.13;
  animation: floatDeco 10s ease-in-out infinite;
}
.deco-shape:nth-child(2) { animation-delay: -3s; animation-duration: 13s; }
.deco-shape:nth-child(3) { animation-delay: -6s; animation-duration: 9s; }
.deco-shape:nth-child(4) { animation-delay: -1.5s; animation-duration: 14s; }
.deco-shape:nth-child(5) { animation-delay: -8s; animation-duration: 11s; }

@keyframes floatDeco {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(6deg); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  width: 100%;
}

.hero-logo {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  margin: 0 auto 1.25rem;
  object-fit: cover;
  box-shadow: var(--shadow-lg), 0 0 0 5px rgba(232,130,10,0.15);
  animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%,100% { box-shadow: var(--shadow-lg), 0 0 0 5px rgba(232,130,10,0.15); }
  50%      { box-shadow: var(--shadow-lg), 0 0 0 14px rgba(232,130,10,0.07); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  color: var(--dark);
  line-height: 1.08;
  margin-bottom: 0.4rem;
  word-break: break-word;
}
.hero h1 .accent { color: var(--orange); }

.hero-tagline {
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 600;
  width: 100%;
  max-width: 520px;
  margin: 0.9rem auto 2rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(232,130,10,0.38);
  white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(232,130,10,0.48); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  color: var(--dark);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  border: 2px solid var(--dark);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-secondary:hover { background: var(--dark); color: #fff; transform: translateY(-3px); }

/* ── HERO SCREENSHOTS ROW ────────────────────────────────── */
.hero-screens {
  display: flex;
  flex-direction: column;        /* toujours en colonne */
  gap: 1rem;
  align-items: center;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
}
.hero-screens .screen-item {
  width: 100%;
}
.hero-screens .screen-item img {
  width: 100%;
  height: auto;                  /* hauteur automatique — jamais coupée */
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s;
  display: block;
  object-fit: cover;
}
.hero-screens .screen-item:hover img { transform: scale(1.02); }

/* ── SECTION BASE ────────────────────────────────────────── */
.section-pad { padding: clamp(3rem, 8vw, 5.5rem) clamp(1rem, 5vw, 2rem); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  text-align: center;
  color: var(--dark);
  margin-bottom: 2.5rem;
}
.section-title.light { color: #fff; }

/* ── DESCRIPTION ─────────────────────────────────────────── */
.description {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.description::before,
.description::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.description::before {
  width: clamp(200px,30vw,340px); height: clamp(200px,30vw,340px);
  top: -80px; left: -80px;
  background: var(--blue); opacity: 0.08;
}
.description::after {
  width: clamp(160px,25vw,280px); height: clamp(160px,25vw,280px);
  bottom: -60px; right: -60px;
  background: var(--orange); opacity: 0.09;
}
.description-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.description h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: #fff;
  margin-bottom: 1rem;
}
.description p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.72);
  font-weight: 600;
  line-height: 1.8;
}

/* ── FEATURES ────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  max-width: 960px;
  gap: 1.25rem;
  margin: 0 auto;
}
.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.feature-card:nth-child(1)::before { background: var(--orange); }
.feature-card:nth-child(2)::before { background: var(--blue); }
.feature-card:nth-child(3)::before { background: var(--red); }
.feature-card:nth-child(4)::before { background: var(--green); }
.feature-card:nth-child(5)::before { background: var(--teal); }
.feature-card:nth-child(6)::before { background: var(--purple); }
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange);
}
.feature-icon { font-size: 2.2rem; margin-bottom: 0.85rem; }
.feature-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--dark); margin-bottom: 0.4rem; }
.feature-card p  { font-size: 0.92rem; color: var(--muted); font-weight: 600; line-height: 1.6; }

/* ── SAFETY ──────────────────────────────────────────────── */
.safety {
  background: linear-gradient(135deg, #0f3d2a 0%, #1a5c3a 100%);
  position: relative;
  overflow: hidden;
}
.safety::before {
  content: '';
  position: absolute;
  width: clamp(200px,35vw,400px); height: clamp(200px,35vw,400px);
  top: -100px; right: -100px;
  background: var(--green); opacity: 0.08;
  border-radius: 50%;
  pointer-events: none;
}
.safety-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.safety .section-title { color: #fff; }
.safety-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.68);
  font-weight: 600;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}
.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 1.25rem;
}
.safety-badge {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  transition: transform 0.25s, background 0.25s, border-color 0.25s;
}
.safety-badge:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.11);
  border-color: rgba(255,255,255,0.22);
}
.safety-icon { font-size: 2.4rem; margin-bottom: 0.75rem; }
.safety-badge h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
}
.safety-badge p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.62);
  font-weight: 600;
  line-height: 1.6;
}

/* ── SCREENSHOTS ─────────────────────────────────────────── */
.screenshots {
  background: linear-gradient(135deg, var(--dark) 0%, #1e1260 100%);
}
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}
.screenshot-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  position: relative;
  background: rgba(255,255,255,0.04);
  transition: transform 0.3s;
}
.screenshot-card:hover { transform: scale(1.03); }
.screenshot-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.4s;
}
.screenshot-card:hover img { transform: scale(1.04); }
.screenshot-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 1.2rem 1rem 0.7rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.screenshot-card:hover .screenshot-caption { opacity: 1; }

/* ── DOWNLOAD ────────────────────────────────────────────── */
.download { text-align: center; }
.download h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: var(--dark);
  margin-bottom: 0.4rem;
}
.download-subtitle {
  color: var(--muted);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 2.5rem;
}
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
.store-btn {
  display: inline-flex;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.store-btn:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.store-btn img { height: 52px; width: auto; display: block; }

.store-btn-soon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  background: rgba(0,0,0,0.04);
  border: 2px dashed rgba(0,0,0,0.15);
  border-radius: var(--radius);
  padding: 0.7rem 1.6rem;
  cursor: default;
  min-height: 52px;
  min-width: 150px;
}
.store-btn-soon .soon-store {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--dark);
}
.store-btn-soon .soon-label {
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--dark);
  padding: clamp(2rem, 4vw, 3rem) 1.25rem;
  text-align: center;
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer-logo { height: 40px; width: auto; opacity: 0.85; }
.footer-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}
.footer-text a { color: var(--orange); font-weight: 700; }

/* ── CONSENT BANNER ──────────────────────────────────────── */
.consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--dark);
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(.22,.68,0,1.2);
}
.consent-banner.visible { transform: translateY(0); }
.consent-text {
  flex: 1;
  min-width: 200px;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}
.consent-text a { color: var(--orange); text-decoration: underline; }
.consent-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.consent-accept {
  background: var(--green); color: #fff;
  border: none; border-radius: 50px;
  padding: 0.5rem 1.3rem;
  font-weight: 800; font-size: 0.88rem;
  cursor: pointer; font-family: var(--font-body);
  transition: opacity 0.2s;
}
.consent-accept:hover { opacity: 0.85; }
.consent-decline {
  background: transparent; color: rgba(255,255,255,0.5);
  border: 1.5px solid rgba(255,255,255,0.22); border-radius: 50px;
  padding: 0.5rem 1.1rem;
  font-weight: 700; font-size: 0.88rem;
  cursor: pointer; font-family: var(--font-body);
  transition: color 0.2s, border-color 0.2s;
}
.consent-decline:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

/* ── LIGHTBOX ────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(95vw, 1200px);
  max-height: 90svh;
  border-radius: var(--radius);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  background: rgba(255,255,255,0.1); border: none;
  color: #fff; font-size: 1.6rem;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }

/* ── REVEAL ANIMATION ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE BREAKPOINTS ──────────────────────────────── */

/* Desktop : images héro côte à côte */
@media (min-width: 820px) {
  .hero-screens {
    flex-direction: row;
    align-items: flex-end;
  }
  .hero-screens .screen-item {
    flex: 1;
    max-width: 340px;
  }
  .hero-screens .screen-item:nth-child(2) img { transform: scale(1.07); }
  .hero-screens .screen-item:nth-child(2):hover img { transform: scale(1.1); }
}

/* Tablette : hamburger, images héro sur 2 colonnes */
@media (max-width: 819px) {
  .nav-center { display: none; }
  .nav-toggle  { display: flex; }

  .hero-screens {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  /* 3e image prend toute la largeur */
  .hero-screens .screen-item:last-child {
    grid-column: 1 / -1;
  }
}

/* Mobile : tout en colonne, 1 seule image */
@media (max-width: 560px) {
  .hero { padding-top: 5.5rem; padding-bottom: 2rem; }

  .hero-screens {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  /* Afficher seulement la 1re image en hero sur petit écran */
  .hero-screens .screen-item:nth-child(n+2) { display: none; }

  .hero-tagline { font-size: 1rem; }

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

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
  }

  .consent-banner   { flex-direction: column; align-items: flex-start; }
  .consent-actions  { width: 100%; justify-content: flex-end; }

  .store-btn img    { height: 44px; }
  .store-buttons    { flex-direction: column; align-items: stretch; }
  .store-btn,
  .store-btn-soon   { width: 100%; justify-content: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .deco-shape, .hero-logo { animation: none; }
  .reveal { transition: none; }
}
