/* ===== THEME VARIABLES ===== */
:root {
  --bg: #0E1A2B;
  --surface: #1C2A3A;
  --surface-secondary: #243447;
  --primary: #8FB3FF;
  --smile: #F4B740;
  --text: #F2F4F8;
  --text-secondary: #A0ADBF;
  --muted: #6B7C93;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F6F2EC;
    --surface: #EBE6DE;
    --surface-secondary: #FFFCF7;
    --primary: #1F3A5F;
    --smile: #F4B740;
    --text: #2A2118;
    --text-secondary: #635850;
    --muted: #8C7F74;
  }
}

[data-theme="light"] {
  --bg: #F6F2EC;
  --surface: #EBE6DE;
  --surface-secondary: #FFFCF7;
  --primary: #1F3A5F;
  --smile: #F4B740;
  --text: #2A2118;
  --text-secondary: #635850;
  --muted: #8C7F74;
}

/* ===== TOOLBAR BUTTONS ===== */
.theme-toggle,
.lang-toggle {
  position: fixed;
  top: 20px;
  z-index: 100;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--muted);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.theme-toggle { right: 20px; }
.lang-toggle  { right: 74px; font-size: 20px; }

.theme-toggle:hover,
.lang-toggle:hover {
  background: var(--surface-secondary);
}

/* ===== LANGUAGE VISIBILITY ===== */
[data-lang="en"] .lang-fr { display: none; }
[data-lang="fr"] .lang-en { display: none; }

/* ===== SMOOTH SCROLL ===== */
html {
  scroll-behavior: smooth;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--primary);
}

/* ===== CONTAINER ===== */
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* ===== HERO ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 100px 0;
}

.hero-text {
  max-width: 500px;
}

.hero-title-section {
  display: flex;
  align-items: center;
  max-width: 500px;
  margin-bottom: 30px;
}

.hero-title-section img {
  margin-right: 15px;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.hero p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.hero-title-section p {
  font-size: 30px;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--smile);
  color: #0E1A2B;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.3s;
}

.btn:hover {
  opacity: 0.85;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.appstore-badge {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s;
}

.appstore-badge:hover {
  opacity: 0.85;
}

.android-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 1.5px solid var(--text);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.android-btn:hover {
  opacity: 0.7;
}

/* ===== USE CASES ===== */
.use-cases {
  background: var(--surface);
  border-radius: 80px;
  padding: 80px 0;
  text-align: center;
}

.use-cases h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.use-case-card {
  background: var(--surface-secondary);
  border-radius: 20px;
  padding: 32px 20px;
  text-align: center;
}

.use-case-emoji {
  font-size: 36px;
  display: block;
  margin-bottom: 14px;
}

.use-case-card h3 {
  font-size: 1.1em;
  color: var(--smile);
  margin-bottom: 10px;
}

.use-case-card p {
  color: var(--text-secondary);
  font-size: 0.9em;
  line-height: 1.5;
}

/* ===== FEATURES ===== */
.features {
  padding: 80px 0;
}

.features .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.features h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.features p {
  color: var(--text-secondary);
  font-size: 1.05em;
}

.feature-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 70px;
  margin-top: 60px;
}

.feature {
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.feature img {
  width: 200px;
}

.feature h3 {
  margin-top: 5px;
  font-size: 1.5em;
  color: var(--smile);
}

/* ===== DAILY SMILE ===== */
.daily-smile {
  margin-top: 80px;
  padding: 80px 0;
  text-align: center;
  background: var(--surface);
  border-radius: 80px;
}

.daily-smile .container {
  max-width: 640px;
}

.daily-smile-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 20px;
}

.daily-smile h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.daily-smile p {
  color: var(--text-secondary);
  font-size: 1.1em;
  line-height: 1.7;
}

/* ===== FAQ ===== */
.faq {
  padding: 80px 0;
}

.faq .container {
  max-width: 720px;
}

.faq h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 40px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  font-size: 1.05em;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4em;
  font-weight: 300;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== BIG MESSAGE ===== */
.big-message {
  background: var(--surface);
  border-radius: 80px;
  margin-top: 80px;
  padding: 100px 60px;
  font-size: 45px;
  font-weight: bold;
  text-align: center;
}

.highlight {
  color: var(--smile);
}

/* ===== ANDROID WAITLIST ===== */
.android-waitlist {
  text-align: center;
  padding: 80px 0;
}

.android-waitlist h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.android-waitlist p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.05em;
}

/* ===== LEGAL PAGES ===== */
.legal {
  max-width: 800px;
  margin: auto;
  padding: 40px 0 100px;
}

.legal h1 {
  margin-bottom: 30px;
}

.legal h2 {
  margin-top: 40px;
  margin-bottom: 10px;
}

.legal p,
.legal li {
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.legal a {
  color: var(--primary);
}

ul {
  padding-left: 20px;
}

/* ===== FOOTER ===== */
footer {
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: var(--surface);
  color: var(--text);
  padding: 30px 0;
  text-align: center;
}

footer div {
  display: flex;
  justify-content: space-between;
  margin: 0 40px;
}

footer a {
  margin: 0 10px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.footer-tiktok {
  vertical-align: middle;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-title-section {
    justify-content: center;
  }

  .hero > img {
    margin-top: 40px;
    width: 250px;
  }

  .big-message {
    font-size: 32px;
  }

  .use-case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .use-case-grid {
    grid-template-columns: 1fr;
  }
}
