/* ==============================================
   SWOOP — Shared Design Tokens & Base Styles
   Used by: landing/index.html, my/public/index.html
   ============================================== */

/* ── Self-hosted fonts (avoid corporate proxy blocking Google Fonts) ── */

/* Outfit — headings */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/outfit-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/outfit-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/outfit-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/outfit-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/outfit-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/outfit-latin-800-normal.woff2') format('woff2'); }

/* DM Sans — body */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/dm-sans-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/dm-sans-latin-600-normal.woff2') format('woff2'); }

/* Shantell Sans — accent (gradient text) */
@font-face { font-family: 'Shantell Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/shantell-sans-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Shantell Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/shantell-sans-latin-400-normal.woff2') format('woff2'); }

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

/* ── Design Tokens ── */
:root {
  --teal: #2A9D8F;
  --teal-dark: #1E7A6E;
  --teal-light: #3DC4B4;
  --dark: #1A2332;
  --dark-soft: #263244;
  --cream: #F8F6F1;
  --cream-dark: #EDE9E0;
  --warm-white: #FFFDF9;
  --text: #2C3E50;
  --text-soft: #5A6B7D;
  --accent-coral: #E8805A;
  --accent-gold: #D4A843;
  --font-accent: 'Shantell Sans', cursive;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 4px 24px rgba(26,35,50,0.06);
  --shadow-card: 0 8px 40px rgba(26,35,50,0.08);
  --shadow-elevated: 0 16px 64px rgba(26,35,50,0.12);
}

/* ── Base ── */
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--warm-white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; line-height: 1.15; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── Language toggle ── */
[data-lang="fr"] [data-en] { display: none !important; }
[data-lang="en"] [data-fr] { display: none !important; }

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,253,249,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(42,157,143,0.08);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: var(--shadow-soft); }
nav .nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1180px; margin: 0 auto;
}
.logo-area { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-text { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.35rem; color: var(--dark); letter-spacing: -0.5px; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ── Nav buttons (shared primary + secondary) ── */
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal); color: white; border: 1.5px solid var(--teal);
  padding: 8px 20px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.85rem; line-height: 1;
  cursor: pointer; font-family: 'Outfit', sans-serif;
  text-decoration: none; white-space: nowrap;
  transition: all 0.25s; letter-spacing: -0.2px;
}
.nav-cta:hover { background: var(--teal-dark); border-color: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(42,157,143,0.3); }
.nav-cta.secondary {
  background: transparent; color: var(--teal); border-color: var(--teal);
}
.nav-cta.secondary:hover {
  background: rgba(42,157,143,0.06); box-shadow: none; transform: none;
}

/* Legacy pill toggle (kept for backwards compat) */
.lang-switch {
  display: flex; background: var(--cream); border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(42,157,143,0.12);
}
.lang-btn {
  padding: 6px 14px; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  border: none; background: transparent; color: var(--text-soft);
  font-family: 'Outfit', sans-serif; transition: all 0.25s;
}
.lang-btn.active { background: var(--teal); color: white; }

/* ── Flag-based language selector (light theme) ── */
.lang-selector { position: relative; }
.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  background: var(--cream); border: 1px solid rgba(42,157,143,0.12);
  border-radius: 10px; padding: 6px 10px; cursor: pointer;
  color: var(--text-soft); transition: border-color 0.2s, background 0.2s;
  font-family: 'Outfit', sans-serif;
}
.lang-toggle:hover { border-color: var(--teal); background: rgba(42,157,143,0.06); }
.lang-toggle .lang-flag { font-size: 18px; line-height: 1; }
.lang-toggle svg { transition: transform 0.2s; }
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: white; border: 1px solid rgba(42,157,143,0.1);
  border-radius: 14px; padding: 6px; min-width: 175px;
  box-shadow: var(--shadow-elevated); z-index: 200;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.lang-dropdown.open {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}
.lang-option {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 12px; border: none; background: none;
  border-radius: 10px; font-size: 0.9rem; font-weight: 500;
  color: var(--text); cursor: pointer; transition: background 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.lang-option:hover { background: var(--cream); }
.lang-option .lang-flag { font-size: 20px; line-height: 1; }
.lang-option .lang-check { display: none; margin-left: auto; color: var(--teal); flex-shrink: 0; }
.lang-option.active .lang-check { display: block; }
.lang-option.active { color: var(--teal); font-weight: 600; }

/* ── Responsive collapse: lang first, CTA next, avatar stays ── */
.footer-lang-slot { display: none; }
/* Narrow: hide header lang, show footer lang */
@media (max-width: 560px) {
  .nav-lang-slot { display: none; }
  .footer-lang-slot { display: block; }
}
/* Very narrow: also hide CTA button */
@media (max-width: 400px) {
  .nav-cta-hide-mobile { display: none; }
}

/* ── Footer ── */
footer {
  padding: 40px 0; background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  flex-wrap: wrap; gap: 12px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-logo .logo-text { color: white; font-size: 1.1rem; }
footer p { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
footer .strikethrough { text-decoration: line-through; opacity: 0.55; }

/* ── Gradient text ── */
.gradient-text {
  font-family: var(--font-accent);
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Footer lang-switch (dark variant) ── */
footer .lang-switch { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15); }
footer .lang-btn { color: rgba(255,255,255,0.45); }
footer .lang-btn.active { background: var(--teal); color: white; }
/* Footer flag selector (dark variant) */
footer .lang-toggle { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.6); }
footer .lang-toggle:hover { border-color: var(--teal); background: rgba(255,255,255,0.15); }
footer .lang-dropdown { background: var(--dark); border-color: rgba(255,255,255,0.1); }
footer .lang-option { color: rgba(255,255,255,0.75); }
footer .lang-option:hover { background: rgba(255,255,255,0.08); }
footer .lang-option.active { color: var(--teal-light); }

/* ── Section headings ── */
section { padding: 100px 0; }
.section-label {
  display: inline-block; font-family: 'Outfit', sans-serif; font-weight: 600;
  font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 800;
  color: var(--dark); letter-spacing: -1px; margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem; color: var(--text-soft); max-width: 560px; line-height: 1.7;
}

/* ── Form base ── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 0.82rem; font-weight: 600; color: var(--text);
  margin-bottom: 7px; font-family: 'Outfit', sans-serif;
}
.form-input {
  width: 100%; padding: 13px 16px;
  border: 2px solid var(--cream-dark); border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; color: var(--text);
  background: white; transition: border-color 0.25s, box-shadow 0.25s; outline: none;
}
.form-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(42,157,143,0.1); }
.form-input::placeholder { color: #A0ADB8; }

/* ── Button primary ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 24px;
  background: var(--teal); color: white; border: none;
  border-radius: var(--radius-sm); font-family: 'Outfit', sans-serif;
  font-weight: 700; font-size: 0.95rem; cursor: pointer;
  transition: all 0.3s; letter-spacing: -0.2px;
}
.btn-primary:hover:not(:disabled) {
  background: var(--teal-dark); transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(42,157,143,0.35);
}
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }

/* ── Spinner ── */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 38px; height: 38px;
  border: 3px solid var(--cream-dark); border-top-color: var(--teal);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Shared animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
