/* ═══════════════════════════════════════════════════════════════
   CrushTracker — Shared Chrome CSS
   Tokens, base typography, nav, footer, lang banner, common UI.
   Référencé par toutes les pages SAUF index.html (qui a son inline).
   ═══════════════════════════════════════════════════════════════ */

/* ─── Nohemi Bold — utilisé uniquement pour les titres (body = Inter via Google Fonts) ─── */
@font-face {
  font-family: 'Nohemi';
  font-style: normal;
  font-weight: 100 900;          /* full range → toujours fichier Bold (titres) */
  font-display: swap;
  src: url('/assets/fonts/Nohemi-Bold.woff2') format('woff2');
}

:root {
  /* Pinks */
  --pink: #FF8FBC;
  --pink-light: #FFB7CB;
  --pink-strong: #FF6BAA;
  --pink-soft: #FFE8F2;
  --pink-bg: #FEF0F6;
  --pink-pale: #FFF5F9;
  --pink-pastel: #FFC5D9;
  --pink-tag-bg: #FFE0EC;
  --pink-tag: #E91E76;

  /* Status */
  --green: #1DB954;
  --green-bg: #E6F7EE;
  --green-dark: #0a6b38;
  --red: #E53E3E;
  --red-bg: #FEE6E8;

  /* Ink / grays */
  --ink: #1A0E1B;
  --ink-soft: #4A2D4A;
  --gray-700: #374151;
  --gray-600: #6B7280;
  --gray-500: #8B8B92;
  --gray-400: #B1B1B6;
  --gray-300: #DEDEE2;
  --gray-200: #EAEAED;
  --gray-100: #F2F2F4;
  --gray-50: #F8F8FA;
  --bg: #FAFAFC;

  /* Accents */
  --gold: #F4C544;

  /* Responsive scale */
  --container-max: 1240px;
  --container-narrow: 880px;
  --container-wide: 1440px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color: var(--ink); background: white; line-height: 1.5; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }

.display { font-family: 'Nohemi', sans-serif; letter-spacing: -0.02em; }
.display em { font-style: italic; color: var(--pink); font-weight: inherit; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.fade-in { animation: fadeInUp 0.6s ease-out backwards; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: 'Inter', sans-serif; font-weight: 700; border-radius: 100px; transition: transform 0.15s ease, box-shadow 0.15s ease; cursor: pointer; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--pink); color: white; padding: 14px 24px; font-size: 14px; box-shadow: 0 4px 14px -4px rgba(255, 107, 170, 0.45); }
.btn-primary:hover { background: var(--pink-strong); box-shadow: 0 8px 20px -4px rgba(255, 107, 170, 0.55); }
.btn-dark { background: var(--ink); color: white; padding: 10px 18px; font-size: 13px; }
.btn-dark:hover { background: #000; }
.btn-sm { padding: 10px 18px; font-size: 12px; }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-outline { background: transparent; border: 1.5px solid var(--gray-300); color: var(--ink); padding: 12px 22px; font-size: 14px; }
.btn-outline:hover { border-color: var(--pink-tag); color: var(--pink-tag); }

/* Layout */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-4); }
.container-narrow { max-width: var(--container-narrow); }
.container-wide { max-width: var(--container-wide); }
@media (min-width: 768px) { .container { padding: 0 var(--space-6); } }

.section { padding: var(--space-7) 0; }
@media (min-width: 768px) { .section { padding: var(--space-9) 0; } }
.section-eyebrow { display: block; font-size: 11px; font-weight: 700; color: var(--pink-tag); letter-spacing: 2.5px; margin-bottom: 12px; text-transform: uppercase; }
.section-title { font-family: 'Nohemi', sans-serif; font-size: clamp(28px, 4vw, 48px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); margin: 0 0 14px; }
.section-title em { font-style: italic; color: var(--pink-tag); font-weight: 700; }
.section-sub { font-size: clamp(15px, 1.5vw, 18px); color: var(--ink-soft); max-width: 640px; line-height: 1.55; font-weight: 500; margin: 0 0 36px; }

/* ─── NAV ─── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 227, 238, 0.85); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid rgba(255, 200, 220, 0.4); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 36px; height: 36px; background: white; border-radius: 11px; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,0.08); font-size: 18px; }
.logo-text { font-family: 'Nohemi', sans-serif; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; color: var(--ink); }
.logo-img { display: block; height: 38px; width: auto; }
@media (max-width: 640px) { .logo-img { height: 32px; } }

.lang-switch { display: flex; align-items: center; gap: 8px; }
.lang-pill { font-size: 12px; font-weight: 600; color: var(--ink-soft); padding: 6px 10px; border-radius: 100px; background: rgba(255, 255, 255, 0.6); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; transition: background 0.15s; }
.lang-pill:hover { background: white; }
.lang-pill .flag { font-size: 14px; }

/* ─── PAGE HEADER (used by simple pages) ─── */
.page-header { background: linear-gradient(180deg, #FFE3EE 0%, #FFD0DD 100%); padding: var(--space-7) 0 var(--space-6); position: relative; overflow: hidden; }
.page-header::before { content: ""; position: absolute; top: -120px; right: -120px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, transparent 60%); pointer-events: none; }
.page-header-eyebrow { display: inline-block; font-size: 11px; font-weight: 800; color: var(--pink-tag); letter-spacing: 2.5px; margin-bottom: 14px; text-transform: uppercase; background: white; padding: 6px 12px; border-radius: 100px; }
.page-header h1 { font-family: 'Nohemi', sans-serif; font-weight: 700; font-size: clamp(34px, 5.6vw, 64px); line-height: 1.05; letter-spacing: -0.025em; color: var(--ink); margin: 0 0 16px; max-width: 820px; }
.page-header h1 em { font-style: italic; color: var(--pink-tag); font-weight: 700; }
.page-header-sub { font-size: clamp(15px, 1.6vw, 19px); color: var(--ink-soft); max-width: 640px; line-height: 1.5; font-weight: 500; margin: 0; }

/* ─── PROSE (legal/long-form pages) ─── */
.prose { max-width: 760px; margin: 0 auto; font-size: 15px; color: var(--ink-soft); line-height: 1.7; }
.prose h2 { font-family: 'Nohemi', sans-serif; font-weight: 700; font-size: 24px; color: var(--ink); margin: 36px 0 12px; letter-spacing: -0.015em; }
.prose h3 { font-family: 'Nohemi', sans-serif; font-weight: 700; font-size: 17px; color: var(--ink); margin: 24px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--pink-tag); text-decoration: underline; text-underline-offset: 2px; }
.prose-placeholder { padding: 14px 18px; background: var(--pink-pale); border-left: 3px solid var(--pink-tag); border-radius: 8px; color: var(--ink-soft); font-size: 13px; font-style: italic; margin: 0 0 14px; }

/* ─── FOOTER ─── */
footer { background: var(--ink); color: white; padding: var(--space-7) 0 var(--space-5); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); margin-bottom: var(--space-6); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { max-width: 320px; }
.footer-brand .logo-mark { background: linear-gradient(135deg, var(--pink), var(--pink-light)); }
.footer-brand .logo-text { color: white; }
.footer-logo-img { height: 36px; width: auto; display: block; }
.footer-tag { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.5; margin: 14px 0 18px; }
.footer-socials { display: flex; gap: 8px; }
.footer-socials a { width: 36px; height: 36px; background: rgba(255,255,255,0.08); border-radius: 10px; display: grid; place-items: center; transition: background 0.15s; }
.footer-socials a:hover { background: rgba(255,255,255,0.16); }
.footer-col-title { font-size: 11px; font-weight: 800; color: rgba(255,255,255,0.5); letter-spacing: 1.5px; margin-bottom: 12px; text-transform: uppercase; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.8); transition: color 0.15s; }
.footer-links a:hover { color: white; }
.footer-bottom { padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,0.1); font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* ─── LANG BANNER ─── */
.lang-banner { position: fixed; bottom: 16px; left: 16px; right: 16px; background: var(--ink); color: white; padding: 14px 18px; border-radius: 16px; display: flex; align-items: center; gap: 12px; z-index: 100; box-shadow: 0 12px 32px -8px rgba(0,0,0,0.3); transform: translateY(150%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); max-width: 480px; margin: 0 auto; }
.lang-banner.visible { transform: translateY(0); }
.lang-banner-text { flex: 1; font-size: 13px; line-height: 1.4; }
.lang-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }
.lang-banner button { font-size: 12px; font-weight: 700; padding: 8px 12px; border-radius: 100px; cursor: pointer; transition: background 0.15s; }
.lang-banner .accept { background: var(--pink); color: white; }
.lang-banner .accept:hover { background: var(--pink-strong); }
.lang-banner .dismiss { background: transparent; color: rgba(255,255,255,0.7); }
.lang-banner .dismiss:hover { color: white; }

/* ─── FINAL CTA (reused on all pages) ─── */
.cta-final { background: linear-gradient(180deg, #FFE3EE 0%, #FFC8DC 100%); padding: var(--space-9) 0; text-align: center; position: relative; overflow: hidden; }
.cta-final::before { content: ""; position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 60%); pointer-events: none; }
.cta-final-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; padding: 0 var(--space-4); }
.cta-final h2 { font-family: 'Nohemi', sans-serif; font-size: clamp(32px, 4vw, 52px); font-weight: 700; line-height: 1.1; color: var(--ink); margin: 0 0 14px; letter-spacing: -0.025em; }
.cta-final h2 em { font-style: italic; color: var(--pink-tag); font-weight: 700; }
.cta-final p { font-size: clamp(15px, 1.5vw, 17px); color: var(--ink-soft); margin: 0 0 30px; line-height: 1.5; }

/* ─── INPUT ZOOM FIX (iOS Safari) ─── */
/* iOS Safari zoome automatiquement les <input>/<textarea>/<select> dont la
   font-size est < 16px au focus. On force 16px min sur mobile partout. */
@media (max-width: 640px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
  textarea, select { font-size: 16px !important; }
}

/* ─── UTILITIES ─── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.text-muted { color: var(--ink-soft); }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 32px; } .mt-8 { margin-top: 48px; }
