/* ============================================================
   DOAKEN — CSS PARTAGÉ (HEADER / FOOTER / DRAWER / TOKENS)
   ------------------------------------------------------------
   Source de vérité : fr-index.html (home FR, déployée doaken.fr)
   Date d'extraction : 2026-04-08

   USAGE
   -----
   Charger ce fichier dans le <head> de toutes les pages secondaires
   (FR + EN, sauf le blog) AVANT le <style> spécifique à la page :

       <link rel="stylesheet" href="/css/doaken-base.css">
       <style> ... CSS spécifique page ... </style>

   Ce fichier contient UNIQUEMENT :
   - Les @font-face (Mokoto)
   - Les design tokens (les deux :root de la home : Partie 1 + Partie 2)
   - Les resets globaux et helpers (.container, html, body, h1-h3, a, button)
   - Les styles de la <nav> (desktop) + dropdown mega-menu
   - Les styles du menu mobile (.mobile-menu*, .mobile-sticky-cta, .mobile-menu-btn)
   - Les styles du footer (.footer, .footer-inner, .footer-copy, .footer-links)
   - Les styles du floating CTA et du drawer (.floating-cta, .drawer*)
   - Les media queries mobiles correspondantes

   Ce fichier ne contient PAS :
   - Le CSS des sections de contenu de la home (hero, bento, pain, solution,
     method, comparison, waitlist, faq, gradient mesh, blobs, animations 3D,
     workflow, simulator, etc.)
   - Les styles spécifiques au mémoire technique mockup (.blk-*, .hs-*, .doc-*)
   - Les composants chart.js / canvas backgrounds

   Mix de couleurs : conservé tel quel (bleu DOAKEN #0066CC + indigo #4f46e5).
   Ne PAS unifier — c'est le statut quo et la référence en prod.
   ============================================================ */


/* ============================================================
   FONT-FACE
   ============================================================ */
@font-face {
  font-family: 'Mokoto';
  src: url('/mokoto.regular.woff2') format('woff2'),
       url('/mokoto.regular.ttf') format('truetype');
  font-display: swap;
}


/* ============================================================
   DESIGN TOKENS — PARTIE 1 (palette nav, ombres, drapeau France)
   Source : fr-index.html ligne 49
   ============================================================ */
:root {
  --bg-primary: #FAFBFC;
  --bg-secondary: #F1F5F9;
  --bg-white: #FFFFFF;
  --bg-dark: #0F172A;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --accent-primary: #0066CC;
  --accent-secondary: #004999;
  --accent-gradient: linear-gradient(135deg, #0066CC 0%, #004999 100%);
  --accent-gradient-soft: linear-gradient(135deg, rgba(0,102,204,0.1) 0%, rgba(0,73,153,0.1) 100%);
  --france-blue: #002654;
  --france-red: #CE1126;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
  --shadow-glow: 0 0 60px rgba(0,102,204,0.3);
  --shadow-3d: 0 30px 60px -15px rgba(0,0,0,0.2);
}


/* ============================================================
   DESIGN TOKENS — PARTIE 2 (palette V6 / drawer / sections modernes)
   Source : fr-index.html ligne 150
   NOTE : Le second :root surcharge intentionnellement certaines variables
   de la Partie 1 (ex: --success, --warning, --border, --text-secondary).
   On garde ce comportement à l'identique de la home FR.
   ============================================================ */
:root {
  --bg: #f8f9fb;
  --surface: #f0f1f5;
  --surface-elevated: #fff;
  --foreground: #0a0a0f;
  --text-secondary: #3d3d4a;
  --text-muted: #6a6a7a;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #eef2ff;
  --primary-darkest: #1e1b4b;
  --success: #059669;
  --success-light: #ecfdf5;
  --warning: #d97706;
  --warning-light: #fffbeb;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --border: #d8d9e0;
  --border-light: #e8e9ef;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 36px rgba(0,0,0,.1);
  --shadow-xl: 0 24px 48px rgba(0,0,0,.14);
}


/* ============================================================
   RESETS / GLOBALS
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.1;
  letter-spacing: -.03em;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 3%;
}

/* Focus visible (accessibilité clavier) */
a:focus-visible,
button:focus-visible,
[onclick]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 4px var(--primary-light);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* ============================================================
   NAV — DESKTOP
   Source : fr-index.html lignes 50-77
   ============================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 3%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(250, 251, 252, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
nav.scrolled {
  padding: 0.75rem 3%;
  box-shadow: var(--shadow-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
}
.logo-img {
  height: 56px;
  width: auto;
}
.logo-text {
  font-family: 'Mokoto', sans-serif;
  font-size: 1.8rem;
  font-weight: normal;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}
.nav-links > li {
  position: relative;
  height: 64px;
  display: flex;
  align-items: center;
}
.nav-links > li > a {
  font-family: 'Space Grotesk', sans-serif;
  color: #1e293b;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0 1.15rem;
  height: 64px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  letter-spacing: -0.02em;
}
.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background: transparent;
  transition: all 0.25s ease;
  border-radius: 3px;
}
.nav-links > li:hover > a { color: #0F172A; }
.nav-links > li:hover > a::after {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  opacity: 1;
}
.nav-links > li > a.active {
  color: var(--accent-primary);
  font-weight: 600;
}
.nav-links > li > a.active::after {
  background: var(--accent-primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-cta {
  font-family: 'Space Grotesk', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: white;
  padding: 0.7rem 1.6rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.25s ease;
  letter-spacing: -0.01em;
}
.nav-cta:hover {
  box-shadow: 0 6px 24px rgba(79, 70, 229, 0.35);
  transform: translateY(-2px);
}
.nav-cta svg { width: 14px; height: 14px; }

.nav-flag {
  font-family: 'Space Grotesk', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  padding: 0.4rem 0.9rem;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  border: 1px solid #e2e8f0;
  border-radius: 100px;
  letter-spacing: -0.01em;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  transition: all .2s;
  font-family: "Space Grotesk", sans-serif;
}
.lang-switch:hover {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
}
.nav-flag-icon {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  background: linear-gradient(90deg, #002654 33.33%, #FFFFFF 33.33% 66.66%, #CE1126 66.66%);
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.nav-badge-count {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
  line-height: 1.2;
}
.nav-chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
  opacity: 0.5;
}
.nav-links > li:hover .nav-chevron {
  transform: rotate(180deg);
  opacity: 0.8;
}

/* Soulignement générique des liens nav (déjà couvert plus haut, conservé pour
   les sous-liens éventuels dans le mega-menu) */
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--accent-primary); }


/* ============================================================
   NAV — DROPDOWN MEGA-MENU
   Source : fr-index.html lignes 115-141
   ============================================================ */
.nav-dropdown {
  position: absolute;
  top: 64px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 1.25rem;
  min-width: 560px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14), 0 4px 16px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(.23, 1, .32, 1);
  pointer-events: none;
  z-index: 1001;
}
.nav-links > li:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.dropdown-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.dropdown-item:hover { background: #F8FAFC; }
.dropdown-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dropdown-icon svg { width: 20px; height: 20px; }
.dropdown-icon.blue   { background: #EFF6FF; color: #0066CC; }
.dropdown-icon.green  { background: #ECFDF5; color: #059669; }
.dropdown-icon.orange { background: #FFF7ED; color: #EA580C; }
.dropdown-icon.purple { background: #F5F3FF; color: #7C3AED; }
.dropdown-icon.red    { background: #FEF2F2; color: #DC2626; }
.dropdown-icon.teal   { background: #F0FDFA; color: #0D9488; }
.dropdown-text h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 0.15rem;
}
.dropdown-text p {
  font-size: 0.75rem;
  color: #64748B;
  line-height: 1.4;
}
.dropdown-footer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dropdown-footer a {
  font-size: 0.78rem;
  font-weight: 600;
  color: #0066CC;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.dropdown-footer a:hover { text-decoration: underline; }
.dropdown-footer svg { width: 12px; height: 12px; }

.nav-dropdown.simple {
  min-width: 280px;
  padding: 0.75rem;
}
.dropdown-simple-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s ease;
  color: #0F172A;
}
.dropdown-simple-item:hover { background: #F8FAFC; }
.dropdown-simple-item .label-text { font-size: 0.84rem; font-weight: 500; }
.dropdown-simple-item .label-sub  { font-size: 0.72rem; color: #94A3B8; }
.dropdown-simple-item .mini-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dropdown-simple-item .mini-icon svg { width: 16px; height: 16px; }


/* ============================================================
   NAV — MOBILE MENU
   Source : fr-index.html lignes 94-114
   ============================================================ */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-white);
  z-index: 999;
  padding: 80px 24px 24px;
  flex-direction: column;
  gap: 0;
}
.mobile-menu.active { display: flex; }
.mobile-menu > a,
.mobile-menu > .mobile-submenu-wrap > a {
  display: block;
  padding: 16px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .mobile-cta {
  margin-top: auto;
  padding: 16px 24px;
  background: var(--accent-gradient);
  color: white;
  text-align: center;
  border-radius: 12px;
  font-weight: 600;
  border: none;
}
.mobile-submenu-wrap { border-bottom: 1px solid var(--border); }
.mobile-submenu-wrap > a {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  border-bottom: none !important;
}
.mobile-submenu-wrap > a .mobile-chevron {
  width: 16px;
  height: 16px;
  transition: transform .2s;
  color: var(--text-muted);
}
.mobile-submenu-wrap.open > a .mobile-chevron { transform: rotate(180deg); }
.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.mobile-submenu-wrap.open .mobile-submenu { max-height: 500px; }
.mobile-submenu a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 0 10px 16px !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
  border-bottom: none !important;
}
.mobile-submenu a:last-child { padding-bottom: 16px !important; }
.mobile-submenu-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mobile-submenu-icon svg { width: 16px; height: 16px; }

.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 998;
}
.mobile-sticky-cta a {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: var(--accent-gradient);
  color: white;
  text-align: center;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}


/* ============================================================
   FOOTER
   Source : fr-index.html lignes 707-712
   ============================================================ */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color .2s;
}
.footer-links a:hover { color: var(--foreground); }


/* ============================================================
   FLOATING CTA + DRAWER
   Source : fr-index.html lignes 715-731
   ============================================================ */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: all .2s;
}
.floating-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, .4);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .3);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: var(--surface-elevated);
  z-index: 9999;
  transition: right .35s cubic-bezier(.23, 1, .32, 1);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
}
.drawer.open { right: 0; }
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}
.drawer-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
}
.drawer-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background .2s;
  cursor: pointer;
}
.drawer-close:hover { background: var(--surface); }
.drawer-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}
.drawer-body .form-group { margin-bottom: 20px; }
.drawer-body label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.drawer-body input,
.drawer-body select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--bg);
  color: var(--foreground);
  transition: border-color .2s;
}
.drawer-body input:focus,
.drawer-body select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .08);
}

/* btn-primary utilisé par le bouton submit du drawer */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all .25s ease;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: #4338ca;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, .35);
}
.btn-primary svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}


/* ============================================================
   SCROLL PROGRESS BAR (utilisée par la home, conservée car
   #scroll-progress est inséré juste après <body> par le JS partagé)
   Source : fr-index.html ligne 202
   ============================================================ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), #7c3aed);
  width: 0;
  z-index: 10001;
  transition: width .1s linear;
}


/* ============================================================
   MEDIA QUERIES — MOBILE (extraits header/footer/drawer)
   Source : fr-index.html ligne 142 (grande media query) +
            lignes 893-908 (media query secondaire)
   ============================================================ */
@media (max-width: 768px) {
  /* NAV : on cache la version desktop, on affiche le burger */
  .nav-dropdown,
  .nav-dropdown.simple { display: none !important; }
  .nav-right { display: none !important; }
  .mobile-menu-btn { display: flex; }
  .mobile-sticky-cta {
    display: block;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s, transform 0.3s;
  }
  .mobile-sticky-cta.visible {
    opacity: 1;
    transform: translateY(0);
  }
  body { padding-bottom: 70px; }
  .nav-links { display: none; }
  nav .btn-primary { display: none; }
  nav { padding: 0.75rem 5%; }
  .logo { font-size: 1rem; }

  /* FOOTER : empilage vertical */
  footer { padding: 2rem 5% 5rem; }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  /* DRAWER plein écran + masquage du floating CTA sur mobile/tablette */
  .floating-cta { display: none; }
  .drawer {
    width: 100vw;
    max-width: 100vw;
  }
  .drawer-body { padding: 16px; }
}
