/* SPP — site vitrine. Couleurs alignées sur l'app (front/src/styles/globals.css) */

:root {
  --brand:       #3b87c2;
  --brand-dark:  #0d2460;
  --bg:          #e8f3fa;
  --bg-card:     #ffffff;
  --text:        #0d2460;
  --text-soft:   #3a5a8a;
  --border:      rgba(13, 36, 96, 0.08);
  --header-h:    56px;
  --radius:      20px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ── En-tête fixe (identique à la bannière de l'app) ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-h);
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(13, 36, 96, 0.15);
}
.site-header img { height: 35px; width: auto; display: block; }

/* ── Ruban 1 : logo + slogan, stores, compteur ── */
.hero {
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 40px 0 64px;
}
.hero-logo { width: 100%; max-width: 340px; height: auto; }

.countdown { margin-top: 32px; }
.countdown-label { font-weight: 600; opacity: 0.9; margin-bottom: 12px; }
.countdown-grid {
  display: inline-flex;
  gap: 12px;
}
.countdown-cell {
  min-width: 76px;
  padding: 12px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.countdown-value { display: block; font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.countdown-unit  { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.85; }
.countdown-soon  { font-size: 1.3rem; font-weight: 700; }

.stores {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  padding: 10px 20px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  text-decoration: none;
  text-align: left;
  line-height: 1.2;
}
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-btn small { display: block; font-size: 0.7rem; opacity: 0.8; }
.store-btn strong { font-size: 1.1rem; }
.store-btn[aria-disabled="true"] { opacity: 0.55; cursor: default; }
.store-btn:not([aria-disabled="true"]):hover { opacity: 0.85; }

/* ── Ruban 2 : 4 écrans ── */
.features { padding: 64px 0; }
.features h2 {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 40px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.phone {
  width: 100%;
  max-width: 230px;
  aspect-ratio: 536 / 1096;  /* captures de l'app (site/screens/) */
  /* small radius: a large one crops the corners of the app's bottom tab bar */
  border-radius: 18px;
  border: 6px solid var(--brand-dark);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 16px 40px rgba(13, 36, 96, 0.18);
}
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature h3 { font-size: 1.1rem; }
.feature p  { color: var(--text-soft); font-size: 0.95rem; max-width: 260px; }

/* ── Ruban 3 : pied de page ── */
.site-footer {
  background: var(--brand-dark);
  color: #fff;
  padding: 40px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.footer-col h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-bottom: 8px;
}
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
}
.footer-col a:hover { text-decoration: underline; }
.footer-col svg { width: 18px; height: 18px; }
.copyright { text-align: center; font-size: 0.8rem; opacity: 0.6; margin-top: 32px; }

/* ── Page politique de données ── */
.legal { padding: 48px 0 64px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 1.6rem; margin-bottom: 24px; }
.legal h2 { font-size: 1.05rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--text-soft); }
.legal ul { padding-left: 20px; display: grid; gap: 4px; }
.legal strong { color: var(--text); }
.legal .legal-updated { margin-top: -16px; font-size: 0.85rem; }
.back-link { display: inline-block; margin-bottom: 20px; font-weight: 600; color: var(--brand); text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }
  .hero-logo     { max-width: 260px; }
  .countdown-cell { min-width: 64px; }
  .countdown-value { font-size: 1.5rem; }
  .countdown-grid { gap: 8px; }
}
