/* Cierge — landing page. Palette reprise de la charte de l'app. */
:root {
  --bg: #161020;
  --bg2: #1c1529;
  --surface: #251c34;
  --gold: #d8b368;
  --gold-soft: #ecd79e;
  --amber: #f0b45e;
  --wine: #9c5a6e;
  --cream: #f3ecdf;
  --muted: #9c90b2;
  --line: rgba(216, 179, 104, 0.18);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

/* ---------- Language switcher ---------- */
.lang-switch {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(22, 16, 32, 0.72);
  border: 1px solid rgba(216, 179, 104, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lang-switch .lang-globe { font-size: 0.95rem; line-height: 1; }
.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M1 3l4 4 4-4' fill='none' stroke='%23d8b368' stroke-width='1.4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1px center;
  border: 0;
  color: var(--cream);
  font: inherit;
  font-size: 0.9rem;
  padding: 2px 16px 2px 2px;
  cursor: pointer;
}
.lang-switch select:focus-visible { outline: 2px solid var(--gold); border-radius: 6px; }
.lang-switch option { color: #161020; background: #f3ecdf; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--cream);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: var(--amber); }

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

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 96px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -160px; left: 50%;
  width: 640px; height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(240, 180, 94, 0.20) 0%, rgba(240, 180, 94, 0) 62%);
  pointer-events: none;
}
.hero-icon {
  width: 108px; height: 108px;
  border-radius: 26px;
  margin: 0 auto 24px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 8vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--gold-soft);
  margin-bottom: 6px;
}
.tagline {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 26px;
}
.hero p.lead {
  max-width: 620px;
  margin: 0 auto 34px;
  font-size: 1.18rem;
  color: var(--cream);
}
.badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--line);
}
.badge.primary {
  background: linear-gradient(180deg, var(--amber), var(--gold));
  color: #2a1c22;
  border-color: transparent;
}
.badge.ghost { color: var(--gold-soft); background: rgba(255, 255, 255, 0.02); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.72rem;
  color: var(--amber);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--serif);
  text-align: center;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 48px;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  background: linear-gradient(180deg, rgba(240, 180, 94, 0.05), var(--surface));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
}
.card .ico { font-size: 1.6rem; margin-bottom: 12px; }
.card h3 {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--gold-soft);
  margin-bottom: 8px;
}
.card p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Screenshots ---------- */
.shots {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}
.shots figure { width: 260px; max-width: 76vw; }
.shots img {
  width: 100%;
  border-radius: 30px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.shots figcaption {
  text-align: center;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Languages ---------- */
.langs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chip {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--gold-soft);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- Privacy strip ---------- */
.privacy-strip {
  background: linear-gradient(180deg, var(--bg2), var(--bg));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.privacy-strip .big {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--gold-soft);
  margin-bottom: 14px;
}
.privacy-strip p { max-width: 640px; margin: 0 auto; color: var(--cream); }

/* ---------- Footer ---------- */
footer {
  padding: 48px 0 60px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
footer .flinks { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
footer .brand { font-family: var(--serif); color: var(--gold-soft); font-size: 1.1rem; margin-bottom: 6px; }

/* ---------- Legal pages ---------- */
.legal { padding: 72px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal a.back { display: inline-block; margin-bottom: 28px; font-size: 0.9rem; }
.legal h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.6rem);
  color: var(--gold-soft);
  margin-bottom: 6px;
}
.legal .updated { color: var(--muted); font-size: 0.88rem; margin-bottom: 34px; }
.legal h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--cream);
  margin: 34px 0 12px;
}
.legal p, .legal li { color: var(--cream); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 520px) {
  .hero { padding: 72px 0 56px; }
  section { padding: 48px 0; }
}
