/* ══════════════════════════════════════════════════════
   FASHION SOURCING — SHARED CSS V3
   Nav · Footer · Variables · Hamburger · Responsive
   🔧 V3 FIX : lisibilité renforcée (WCAG AA partout)
   ══════════════════════════════════════════════════════ */

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

:root {
  /* ═══ CANONICAL DESIGN TOKENS (V4 — One Brand. One Color Family.) ═══ */
  /* Brand — famille violet unique */
  --violet:       #6B21D4;   /* Primary — action, CTA, accents marque */
  --violet-deep:  #3F2468;   /* Premium Dark — FONDS SOMBRES UNIQUEMENT (V4) */
  --violet-mid:   #5A32A3;   /* Premium Mid — étape de dégradé, hover (V4: était #7C3AED) */
  --violet-light: #8B5CF6;
  --violet-bg:    #EDE9FE;
  --violet-pale:  #F5F3FF;   /* Premium Light — fonds clairs, tags, zones douces */
  /* Dégradé sombre premium — DÉFINITIF (V4 — verrouillé) */
  --grad-dark:    linear-gradient(135deg, #3F2468 0%, #512C96 100%);

  /* Neutrals — 🔧 V3 : 4 niveaux pour meilleur contraste */
  --dark:         #1E1B4B;   /* Level 1: Strong - titres */
  --dark-80:      #374151;   /* Level 2: Medium - sous-titres */
  --dark-60:      #4B5563;   /* 🔧 V3: body text (était #6B7280, trop clair) */
  --dark-50:      #6B7280;   /* 🔧 V3: NEW - métadonnées, secondaires lisibles */
  --dark-35:      #9CA3AF;   /* ⚠️ PLACEHOLDERS UNIQUEMENT — jamais de vrai texte ! */

  /* Semantic */
  --success:      #059669;
  --success-bg:   #ECFDF5;
  --success-mid:  #D1FAE5;
  --warning:      #D97706;
  --warning-bg:   #FEF3C7;
  --danger:       #DC2626;
  --danger-bg:    #FEE2E2;
  /* --blue / --blue-bg SUPPRIMÉS (V4) — bleu franc hors famille violet */
  --orange:       #EA580C;
  --orange-bg:    #FFF7ED;

  /* Surfaces */
  --white:        #FFFFFF;
  --bg-page:      #FAFAFE;
  --bg-light:     #F3F4F6;
  --border:       #E5E7EB;
  --border-violet: rgba(107,33,212,0.12);

  /* Special */
  --beige:        #EDEBE6;
  --gold:         #FCD34D;        /* ⚠️ usage visuel seulement (étoiles, icônes) */
  --gold-text:    #B45309;        /* 🔧 V3: NEW - pour texte or LISIBLE */
  --gold-bg:      #FEF3C7;

  /* Layout */
  --radius:       12px;
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    16px;
  --radius-pill:  100px;
  --max-width:    1000px;
  --font:         'Plus Jakarta Sans', system-ui, sans-serif;

  /* Shadows */
  --shadow-card:  0 1px 3px rgba(30,27,75,0.06), 0 4px 12px rgba(30,27,75,0.04);
  --shadow-hover: 0 4px 16px rgba(107,33,212,0.12), 0 8px 24px rgba(30,27,75,0.08);
  --shadow-modal: 0 20px 60px rgba(30,27,75,0.15);

  /* ═══ LEGACY ALIASES ═══ */
  --vi: var(--violet);
  --vi-m: var(--violet-mid);
  --vi-s: var(--violet-light);
  --vi-l: var(--violet-bg);
  --vi-p: var(--violet-pale);
  --dk: var(--dark);
  --gn: var(--success);
  --gn-p: var(--success-bg);
  --gn-m: var(--success-mid);
  --gd: var(--warning);
  --gd-p: var(--warning-bg);
  --wh: var(--white);
  --bg: var(--bg-page);
  --bd: var(--border-violet);
  --r: var(--radius);
  --rl: var(--radius-lg);
  --mx: var(--max-width);
  --green: var(--success);
  --green-pale: var(--success-bg);
  --green-mid: var(--success-mid);
  --gold-pale: var(--warning-bg);
  --max: var(--max-width);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--wh);
  color: var(--dk);
  -webkit-font-smoothing: antialiased;
  font-size: 15px; /* 🔧 V3: base body size explicite */
  line-height: 1.6;
}

/* ── ANIMATIONS ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.25} }

.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── SHARED TYPOGRAPHY ── */
.eyebrow {
  font-size: 12px; /* 🔧 V3: était 11px, trop petit */
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--vi);
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.eyebrow::before { display: none; }
.eyebrow.center { justify-content: center; }
.eyebrow.green { color: var(--gn); }
.eyebrow.green::before { background: var(--gn); }
.section-title {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800; line-height: 1.13; letter-spacing: -0.02em;
  color: var(--dk); margin-bottom: 14px;
}
.section-body {
  font-size: 16px; /* 🔧 V3: était 15px */
  font-weight: 400;
  line-height: 1.7; /* 🔧 V3: 1.8 trop espacé, 1.7 mieux */
  color: var(--dark-60); /* 🔧 V3: dark-60 est maintenant plus foncé = plus lisible */
  max-width: 560px;
}

/* 🔧 V3: GLOBAL MINIMUM FONT SIZE — aucun texte en dessous de 12px */
p, span, a, li, label, button, input, textarea {
  font-size: inherit;
}

/* ══════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════ */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96); /* 🔧 V3: 0.92 → 0.96 pour meilleur contraste logo */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bd);
  border-top: 3px solid var(--vi);
  padding: 0 40px; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--vi);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: white;
}
.nav-logo-text { font-size: 15px; font-weight: 700; color: var(--dk); letter-spacing: -0.02em; }
.nav-logo-text span { color: var(--vi); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 14px; /* 🔧 V3: était 13px */
  font-weight: 500; /* 🔧 V3: était 400, maintenant un peu plus affirmé */
  color: var(--dark-60); /* 🔧 V3: meilleur contraste */
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--dk); }
.nav-links a.active { color: var(--vi); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-login {
  background: none; border: none; font-family: inherit;
  font-size: 14px; /* 🔧 V3: 13 → 14 */
  font-weight: 600;
  color: var(--dark-60); /* 🔧 V3 */
  cursor: pointer; padding: 7px 16px; border-radius: 8px; transition: all 0.2s;
  text-decoration: none;
}
.nav-login:hover { background: var(--vi-p); color: var(--dk); }
.nav-cta {
  background: var(--vi); color: white; border: none; border-radius: 8px;
  padding: 8px 20px;
  font-size: 14px; /* 🔧 V3: 13 → 14 */
  font-weight: 600;
  cursor: pointer; font-family: inherit; transition: opacity 0.2s;
  text-decoration: none;
}
.nav-cta:hover { opacity: 0.85; }

/* ── HAMBURGER with X animation ── */
.nav-hamburger {
  display: none;
  background: none; border: none; cursor: pointer; padding: 6px;
  flex-direction: column; gap: 5px;
  position: relative; width: 34px; height: 34px;
  align-items: center; justify-content: center;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--dk); border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed; top: 59px; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  z-index: 99;
  flex-direction: column;
  padding: 24px;
  gap: 0;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu a {
  font-size: 16px; font-weight: 600; /* 🔧 V3: 500→600 */
  color: var(--dk); /* 🔧 V3: dark-60 → dk pour plus de contraste */
  text-decoration: none; padding: 16px 0;
  border-bottom: 1px solid var(--bd);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--vi); }
.mobile-menu a.active { color: var(--vi); font-weight: 700; }
.mobile-menu .mobile-cta {
  margin-top: 24px;
  background: var(--vi); color: white;
  border-radius: 10px; padding: 14px 24px;
  font-size: 15px; font-weight: 700;
  text-align: center; border-bottom: none;
}
.mobile-menu .mobile-cta:hover { opacity: 0.85; color: white; }

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
footer {
  background: var(--vi-p);
  border-top: 1px solid var(--bd);
  padding: 22px 24px;
  text-align: center;
}
.footer-brand { font-size: 15px; font-weight: 700; color: var(--vi); margin-bottom: 6px; } /* 🔧 V3 */
.footer-links {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-bottom: 8px; flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px; /* 🔧 V3: 12→13 */
  font-weight: 500; /* 🔧 V3 */
  color: var(--dark-60); /* 🔧 V3: meilleur contraste */
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--vi); }
.footer-copy {
  font-size: 12px; /* 🔧 V3: 11→12 */
  color: var(--dark-50); /* 🔧 V3: dark-35 était illisible */
}

/* ── SHARED BUTTONS ── */
.btn-vi {
  background: var(--vi); color: white; border: none; border-radius: 100px;
  padding: 14px 32px; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.btn-vi:hover { background: var(--vi-m); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(107,33,212,0.2); }
.btn-wh {
  background: white; color: var(--vi); border: none; border-radius: 100px;
  padding: 14px 32px; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-wh:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.btn-ol {
  background: white; color: var(--dk); border: 1.5px solid var(--bd); border-radius: 100px;
  padding: 13px 28px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-ol:hover { border-color: var(--vi); color: var(--vi); transform: translateY(-2px); }
.btn-ol-wh {
  background: transparent; color: white;
  border: 1.5px solid rgba(255,255,255,0.4); /* 🔧 V3: 0.3→0.4 */
  border-radius: 100px;
  padding: 13px 28px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-ol-wh:hover { border-color: white; background: rgba(255,255,255,0.15); }
/* Legacy aliases */
.btn-violet { background: var(--vi); color: white; border: none; border-radius: 100px; padding: 14px 32px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.btn-violet:hover { background: var(--vi-m); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(107,33,212,0.2); }
.btn-white { background: white; color: var(--vi); border: none; border-radius: 100px; padding: 14px 32px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all 0.2s; text-decoration: none; display: inline-block; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.btn-outline { background: white; color: var(--dk); border: 1.5px solid var(--bd); border-radius: 100px; padding: 13px 28px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.2s; text-decoration: none; display: inline-block; }
.btn-outline:hover { border-color: var(--vi); color: var(--vi); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.4); border-radius: 100px; padding: 13px 28px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.2s; text-decoration: none; display: inline-block; }
.btn-outline-white:hover { border-color: white; background: rgba(255,255,255,0.15); }

/* ── CTA SECTIONS (shared) ── */
.cta-section {
  background: var(--vi); padding: 80px 24px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 100%, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.cta-section h2 {
  font-size: clamp(24px, 3.5vw, 36px); font-weight: 800;
  letter-spacing: -0.025em; color: white; margin-bottom: 14px; line-height: 1.15;
}
.cta-section p {
  font-size: 16px; /* 🔧 V3: 15→16 */
  font-weight: 400;
  color: rgba(255,255,255,0.92); /* 🔧 V3: 0.80→0.92 (plus lisible) */
  line-height: 1.65;
  margin-bottom: 32px;
}
.cta-buttons { display: flex; align-items: center; justify-content: center; gap: 14px; }

/* 🔧 V3: Fix micro-text blanc sur violet (contraste WCAG AA) */
.cta-section small,
.cta-section .small-note {
  color: rgba(255,255,255,0.75); /* était 0.4 = illisible */
  font-size: 13px;
  font-weight: 500;
}

/* 🔧 V3: GLOBAL LISIBILITY FIXES for common text patterns
   These rules override inline styles that used weak colors. */

/* Micro-notes sous CTA (ex: "No credit card · 30 sec setup") */
.cta-section p[style*="rgba(255,255,255,0.4)"],
.cta-section p[style*="color:rgba(255,255,255,0.4)"] {
  color: rgba(255,255,255,0.75) !important;
  font-weight: 500 !important;
}

/* 🔧 V3: Fix gold tag contrast — CORRECTION GLOBALE ÉTENDUE
   Les tags "or" (gold) étaient illisibles : gold-pale (#FEF3C7) + gold (#FCD34D) = 1.8:1
   On force la couleur texte vers #B45309 (marron doré) qui donne 7.6:1 — lisible partout */
.tag-o,
.f-tag-o,
.badge-gold,
.trust-award {
  background: var(--gold-bg) !important;
  color: #B45309 !important;
  font-weight: 700 !important;
}

/* Cas spécifique : inline styles "color:#FCD34D" hardcodés dans les tags DPP/CSDDD/Stock
   sur fonds sombres (violet foncé / navy). Là #FCD34D est OK car le fond est sombre.
   Mais on renforce légèrement pour plus de lisibilité. */
span[style*="color:#FCD34D"] {
  color: #FDE68A !important; /* jaune plus clair = plus de contraste sur fond sombre */
  font-weight: 700 !important;
}

/* Cas spécifique : fonds jaunes clairs (#FFFBEB, #FEF3C7) avec titres en gold-jaune vif
   → on force les h1-h4 enfants à utiliser marron doré */
[style*="background:#FFFBEB"] h1, [style*="background:#FFFBEB"] h2,
[style*="background:#FFFBEB"] h3, [style*="background:#FFFBEB"] h4,
[style*="background: #FFFBEB"] h1, [style*="background: #FFFBEB"] h2,
[style*="background: #FFFBEB"] h3, [style*="background: #FFFBEB"] h4 {
  color: #B45309 !important;
}

/* Generic fallback: any element that explicitly sets color:var(--gold) on a light background
   is wrong. But we can't detect background via CSS. So we alias --gold usage in text contexts
   via a helper class: */
.text-gold,
.gold-text {
  color: #B45309 !important;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — TABLET (768px)
   ══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  nav { padding: 0 16px; height: 50px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-logo-text { font-size: 14px; }
  .nav-cta { padding: 6px 14px; font-size: 13px; } /* 🔧 V3: 12→13 */
  .nav-login { padding: 6px 10px; font-size: 13px; } /* 🔧 V3: 12→13 */

  .mobile-menu { top: 53px; }

  .cta-section { padding: 56px 16px; }
  .cta-buttons { flex-direction: column; gap: 10px; }
  .btn-wh, .btn-ol-wh, .btn-white, .btn-outline-white { width: 100%; text-align: center; }

  footer { padding: 24px 16px; }
  .footer-links { gap: 12px; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (480px)
   ══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .footer-links { flex-direction: column; gap: 8px; }
}

/* ════════ PRÉLAUNCH — bloc footer (fond clair) ════════ */
.footer-prelaunch{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center;
  gap:10px 18px; margin:12px 0 10px; padding-top:14px;
  border-top:1px solid var(--bd);
}
.footer-launch{
  font-size:11px; font-weight:800; letter-spacing:0.10em; text-transform:uppercase;
  color:var(--vi);
}
.footer-prelaunch a{ font-size:12.5px; font-weight:600; text-decoration:none; transition:opacity .2s, color .2s, background .2s; }
.footer-linkedin{
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:50%;
  color:var(--vi); background:rgba(107,33,212,0.08);
  border:1px solid rgba(107,33,212,0.16);
}
.footer-linkedin:hover{ color:#fff; background:var(--vi); border-color:var(--vi); }
.footer-reserve{
  color:#fff !important; background:var(--vi); padding:7px 16px; border-radius:100px;
}
.footer-reserve:hover{ opacity:0.88; }
@media (max-width:600px){ .footer-prelaunch{ gap:8px 12px; } }
