/* =============================================================
   Paris Water Map — charte bleu / blanc
   Palette dérivée de l'icône de l'app (#1C80C7 + #F8F7F5)
   ============================================================= */

:root {
  --brand:      #1c80c7;
  --brand-600:  #1569a6;
  --brand-700:  #114f7f;
  --brand-300:  #64b4e9;
  --sky:        #e9f4fd;
  --wave-mid:   #c5e3f8;
  --cream:      #f6fafd;
  --ink:        #0f2c44;
  --muted:      #557089;
  --card:       #ffffff;
  --line:       rgba(15, 44, 68, .09);
  --shadow:     0 18px 40px -18px rgba(17, 79, 127, .35);
  --shadow-sm:  0 8px 20px -12px rgba(17, 79, 127, .30);
  --radius:     20px;
  --maxw:       1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--cream);
  color: var(--ink);
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----------------------------- Header ----------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 250, 253, .82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.brand strong { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }

.header-nav { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; gap: 6px; font-size: .82rem; font-weight: 700; }
.lang-switch a {
  padding: 4px 9px; border-radius: 999px; color: var(--muted);
  border: 1px solid transparent; transition: .18s;
}
.lang-switch a.active { color: var(--brand-700); background: var(--sky); }
.lang-switch a:hover { color: var(--brand-700); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 700; font-size: .9rem;
  background: var(--brand); color: #fff;
  box-shadow: var(--shadow-sm); transition: transform .18s, background .18s;
}
.btn:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); }
.header-nav .btn { padding: 8px 16px; }
@media (max-width: 560px) { .header-nav .btn { display: none; } }

/* ------------------------------ Hero ------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 72px 0 150px;
  background:
    radial-gradient(1100px 520px at 50% -8%, var(--sky) 0%, rgba(233,244,253,0) 62%),
    linear-gradient(180deg, #fff 0%, var(--cream) 100%);
}
.hero .container { position: relative; z-index: 2; }

.app-icon {
  width: 132px; height: 132px; margin: 0 auto 26px;
  border-radius: 30px;
  box-shadow: 0 30px 55px -20px rgba(17, 79, 127, .5);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-600); background: var(--sky);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}

.hero h1 {
  margin: 0 auto 14px;
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.08;
  max-width: 12ch;
}
.hero .lede {
  margin: 0 auto 34px;
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  color: var(--muted); max-width: 46ch;
}

/* ------------------------- Store badges --------------------------- */
.store-badges {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px; border-radius: 16px;
  background: var(--ink); color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s;
}
.badge:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.badge svg { width: 26px; height: 26px; flex: none; }
.badge .badge-txt { text-align: left; line-height: 1.15; }
.badge .badge-txt small { display: block; font-size: .68rem; opacity: .82; font-weight: 500; }
.badge .badge-txt b { font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; }

/* ------------------------- Waves (bottom) ------------------------- */
.hero-waves {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1;
  width: 100%; height: 140px; pointer-events: none;
}

/* ---------------------------- Features ---------------------------- */
.features { padding: 74px 0 20px; }
.features h2 {
  text-align: center; font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800; letter-spacing: -.02em; margin: 0 0 42px;
}
.feature-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 820px) { .feature-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

.feature-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-ic {
  width: 54px; height: 54px; border-radius: 15px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: var(--sky); color: var(--brand-600);
}
.feature-ic svg { width: 28px; height: 28px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.16rem; font-weight: 800; letter-spacing: -.01em; }
.feature-card p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ------------------------------ CTA ------------------------------- */
.cta-band {
  margin: 70px 0 10px; padding: 52px 30px; text-align: center;
  border-radius: 28px; color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  box-shadow: var(--shadow);
}
.cta-band h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; }
.cta-band p { margin: 0 0 26px; opacity: .9; }
.cta-band .store-badges .badge { background: rgba(255,255,255,.14); backdrop-filter: blur(4px); }
.cta-band .store-badges .badge:hover { background: rgba(255,255,255,.24); }

/* ----------------------------- Terms ------------------------------ */
.page-terms { padding: 56px 0 40px; }
.terms-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  max-width: 800px; margin: 0 auto; padding: 44px clamp(24px, 5vw, 56px);
}
.terms-card h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; }
.terms-card .cgu { color: var(--ink); }
.terms-card .cgu h2 { font-size: 1.2rem; margin: 30px 0 8px; }
.terms-card .cgu h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.terms-card .cgu p, .terms-card .cgu li { color: var(--muted); }
.terms-card .cgu a { color: var(--brand-600); }

/* ----------------------------- Footer ----------------------------- */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 40px 0;
}
.site-footer .container {
  display: flex; flex-wrap: wrap; gap: 18px 32px;
  align-items: center; justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.footer-brand img { width: 28px; height: 28px; border-radius: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: .92rem; }
.footer-links a { color: var(--muted); font-weight: 600; }
.footer-links a:hover { color: var(--brand-700); }
.footer-copy { width: 100%; color: var(--muted); font-size: .82rem; padding-top: 6px; }

/* -------------------------- Entrance anim ------------------------- */
.reveal { opacity: 0; transform: translateY(16px); animation: reveal .7s ease forwards; }
.reveal.d1 { animation-delay: .08s; }
.reveal.d2 { animation-delay: .16s; }
.reveal.d3 { animation-delay: .24s; }
@keyframes reveal { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .app-icon { animation: none; }
  .reveal { opacity: 1; transform: none; animation: none; }
  html { scroll-behavior: auto; }
}
