/* ===========================================
   Un Autre Regard — Site officiel
   Palette inspirée de l'univers de l'app
   =========================================== */

:root {
  --navy-deep: #0a2342;
  --navy: #142f5c;
  --teal: #2eb8b3;
  --teal-light: #5eead4;
  --cyan-soft: #c5f0ee;
  --bg-soft: #f4fbfb;
  --bg-warm: #fefdf9;
  --text: #1a2b3c;
  --text-soft: #4a5a6a;
  --text-muted: #7a8896;
  --border: #e3edee;
  --shadow-soft: 0 4px 20px rgba(10, 35, 66, 0.06);
  --shadow-card: 0 8px 30px rgba(10, 35, 66, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-warm);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--teal); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.75; }

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

/* ─── Layout ─── */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Navigation ─── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254, 253, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--navy-deep);
  font-size: 1.05rem;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-menu a:hover { color: var(--navy-deep); opacity: 1; }

.lang-switch {
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft) !important;
}

.lang-switch:hover { background: var(--cyan-soft); border-color: var(--teal); }

/* ─── Hero ─── */

.hero {
  padding: 5rem 1.5rem 4rem;
  background:
    linear-gradient(180deg, rgba(244, 251, 251, 0) 0%, var(--bg-warm) 100%),
    radial-gradient(ellipse at top, var(--cyan-soft) 0%, transparent 70%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background-image: url('../images/mandala.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  margin: 0 auto 2rem;
  box-shadow: var(--shadow-card);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-soft);
  margin-bottom: 2.5rem;
  line-height: 1.55;
}

/* ─── Buttons ─── */

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  background: var(--navy-deep);
  color: white;
  border-radius: 12px;
  font-weight: 500;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-soft);
}

.btn-store:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 35, 66, 0.18);
}

.btn-store-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.btn-store-label small { font-size: 0.7rem; opacity: 0.8; font-weight: 400; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.6rem;
  background: white;
  color: var(--navy-deep);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s;
}

.btn-secondary:hover { background: var(--cyan-soft); border-color: var(--teal); opacity: 1; }

/* ─── Sections ─── */

section {
  padding: 4rem 0;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--navy-deep);
  text-align: center;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-soft);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

/* ─── Features ─── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.feature-card h3 {
  font-size: 1.15rem;
  color: var(--navy-deep);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

.feature-bullet {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* ─── About / Bandeau ─── */

.about-band {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/mandala.png');
  background-size: 600px;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.08;
}

.about-band-content { position: relative; z-index: 1; }

.about-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.about-band p {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
  opacity: 0.92;
  line-height: 1.7;
}

/* ─── Pages textuelles (privacy, support) ─── */

.page-header {
  padding: 3.5rem 1.5rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--cyan-soft) 0%, var(--bg-warm) 100%);
}

.page-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--navy-deep);
  letter-spacing: -0.015em;
}

.page-header .last-update {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.legal-content {
  padding: 3rem 0 5rem;
}

.legal-content h2 {
  font-size: 1.45rem;
  color: var(--navy-deep);
  margin: 2.5rem 0 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin: 1.5rem 0 0.75rem;
  font-weight: 600;
}

.legal-content p { margin-bottom: 1rem; color: var(--text); }

.legal-content ul {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--text);
}

.legal-content li { margin-bottom: 0.5rem; line-height: 1.6; }

.legal-content strong { color: var(--navy-deep); }

.legal-content a { color: var(--teal); text-decoration: underline; }

.info-box {
  background: var(--cyan-soft);
  border-left: 3px solid var(--teal);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  color: var(--navy-deep);
  font-size: 0.95rem;
}

.contact-block {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.contact-block strong { display: block; margin-bottom: 0.4rem; color: var(--navy-deep); }

/* ─── Footer ─── */

.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  margin-bottom: 1rem;
}

.footer-brand strong {
  color: white;
  font-size: 1rem;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand p { line-height: 1.6; max-width: 280px; }

.footer h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.footer ul { list-style: none; }

.footer li { margin-bottom: 0.55rem; }

.footer a { color: rgba(255, 255, 255, 0.75); }
.footer a:hover { color: white; opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

/* ─── Responsive ─── */

@media (max-width: 720px) {
  .nav-menu { gap: 1rem; }
  .nav-menu a { font-size: 0.9rem; }
  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero { padding: 3.5rem 1.5rem 3rem; }
  .hero-icon { width: 96px; height: 96px; }
  section { padding: 3rem 0; }
}

@media (max-width: 480px) {
  .nav-menu { display: none; }
  .nav-menu.show { display: flex; flex-direction: column; gap: 0.5rem; }
}
