/* ============================================
   DÉCODEUR IA — CSS PARTAGÉ
   Chargé par toutes les pages du site (accueil + /decodages/).
   Contient : variables, reset, nav, menu mobile, boutons de base, footer.
   Le CSS spécifique à chaque page (hero, sections, contenu d'article...)
   reste dans le <style> de la page elle-même.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Poppins:wght@300;400;500;600&display=swap');

:root {
  --blue: #4A90E2;
  --blue-dark: #1E3ABA;
  --orange: #FB923C;
  --orange-dark: #F59E0B;
  --bg: #FFFFFF;
  --bg-light: #F5F7FA;
  --text: #1A1A1A;
  --text-mid: #333333;
  --muted: #6B7280;
  --sep: #E5E7EB;
  --heading: 'Montserrat', -apple-system, 'Segoe UI', sans-serif;
  --body: 'Poppins', -apple-system, 'Segoe UI', sans-serif;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; overflow-wrap: break-word; min-width: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body { font-family: var(--body); background: var(--bg); color: var(--text); line-height: 1.65; overflow-x: hidden; width: 100%; position: relative; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* BASE TYPO / BOUTONS / CONTAINER */
.eyebrow { font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
.section-title { font-family: var(--heading); font-size: clamp(24px, 3vw, 38px); font-weight: 800; color: var(--blue-dark); line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.02em; }
.section-sub { font-size: 16px; color: var(--muted); line-height: 1.75; max-width: 640px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--heading); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 14px 28px; border-radius: 8px; transition: all 0.2s; cursor: pointer; border: none; text-decoration: none; }
.btn-primary { background: var(--blue-dark); color: #fff; box-shadow: 0 4px 20px rgba(30,58,186,0.28); }
.btn-primary:hover { background: var(--blue); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--blue-dark); border: 2px solid var(--blue-dark); }
.btn-outline:hover { background: var(--blue-dark); color: #fff; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; width: 100%; min-width: 0; }
.ia { color: var(--orange); }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,0.97); backdrop-filter: blur(10px); border-bottom: 3px solid var(--orange); height: 68px; display: flex; align-items: center; padding: 0 40px; justify-content: space-between; box-shadow: 0 2px 16px rgba(0,0,0,0.07); gap: 12px; }
nav > a { min-width: 0; overflow: hidden; }
.nav-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { font-family: var(--heading); font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); padding: 7px 13px; border-radius: 6px; transition: all 0.18s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--blue-dark); background: rgba(30,58,186,0.07); }
.nav-sep { width: 1px; height: 22px; background: var(--sep); margin: 0 8px; flex-shrink: 0; }
@media (max-width: 820px) { .nav-links { display: none; } .nav-sep { display: none; } nav { padding: 0 20px; } }

.nav-brand { font-family: var(--heading); font-size: 18px; font-weight: 900; color: var(--blue-dark); letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; }
.nav-brand span { color: var(--orange); }
.nav-slogan { font-family: var(--heading); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.nav-logo-img { border-radius: 50%; display: block; flex-shrink: 0; }
@media (max-width: 560px) { .nav-slogan { display: none; } }
@media (max-width: 480px) { .nav-logo-img { width: 34px; height: 34px; } }

.nav-cta { font-family: var(--heading); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--orange); color: #fff; padding: 9px 20px; border-radius: 6px; box-shadow: 0 3px 12px rgba(251,146,60,0.35); transition: all 0.2s; white-space: nowrap; flex-shrink: 0; }
.nav-cta:hover { background: var(--orange-dark); transform: translateY(-1px); }
@media (max-width: 400px) { .nav-cta { padding: 8px 14px; font-size: 11px; } }

/* NAV MOBILE BURGER */
.nav-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 0; flex-shrink: 0; }
.nav-burger span { display: block; width: 24px; height: 2.5px; background: var(--blue-dark); border-radius: 2px; transition: all 0.25s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (max-width: 820px) { .nav-burger { display: flex; } .nav-cta { display: none; } }

.nav-mobile-panel { position: fixed; top: 68px; right: 0; width: min(78vw, 320px); height: calc(100vh - 68px); background: #fff; box-shadow: -8px 0 30px rgba(0,0,0,0.12); z-index: 99; display: flex; flex-direction: column; padding: 24px 24px 32px; gap: 4px; transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto; }
.nav-mobile-panel.open { transform: translateX(0); }
.nav-mobile-panel a { font-family: var(--heading); font-size: 14px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-mid); padding: 14px 10px; border-radius: 8px; border-bottom: 1px solid var(--sep); transition: all 0.18s; }
.nav-mobile-panel a:hover { color: var(--blue-dark); background: rgba(30,58,186,0.06); }
.nav-mobile-cta { margin-top: 14px; background: var(--blue-dark); color: #fff !important; text-align: center; border-bottom: none !important; border-radius: 8px; padding: 15px !important; }
.nav-mobile-overlay { position: fixed; top: 68px; left: 0; right: 0; bottom: 0; background: rgba(15,23,42,0.4); z-index: 98; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.nav-mobile-overlay.open { opacity: 1; pointer-events: auto; }
@media (min-width: 821px) { .nav-mobile-panel, .nav-mobile-overlay { display: none; } }

/* FOOTER */
footer { background: #0F1F6B; padding: 48px 40px 28px; color: rgba(255,255,255,0.55); font-size: 13px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand-name { font-family: var(--heading); font-size: 20px; font-weight: 900; color: #fff; margin-bottom: 4px; }
.footer-brand-name span { color: var(--orange); }
.footer-logo-img { display: block; margin-bottom: 10px; }
.footer-slogan { font-family: var(--heading); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 10px; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.65; }
.footer-col-title { font-family: var(--heading); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.5); font-size: 13px; transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { max-width: 1100px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-legal { font-size: 11px; color: rgba(255,255,255,0.25); line-height: 1.7; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 11px; color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
}
