/* ============================================================
   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: var(--font-body, 'Geist', -apple-system, BlinkMacSystemFont, sans-serif);
  background: var(--bg);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--font-display, 'Sentient', 'Geist', 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:not(.navbar):not(.dk-breadcrumb) {
  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:not(.navbar).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;
}

/* CSS legacy nav-* / dropdown-* / nav-flag* / lang-switch supprimé 2026-05-18.
   La nav header est désormais stylée exclusivement par /css/doaken-nav-footer.css
   (source de vérité unique). Pour les pages qui chargent doaken-base.css ET
   doaken-nav-footer.css, ce dernier prend le relais sans conflit.
   Voir commit history pour le contenu retiré. */
.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: var(--font-display, 'Sentient', 'Geist', 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;
}


/* Lang picker — hamburger overlay (mobile) */
.lang-picker-section{padding:12px 0 10px;border-bottom:1px solid #E2E8F0;margin-bottom:8px}
.lang-picker-label{display:flex;align-items:center;gap:5px;font-size:0.58rem;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;color:#94A3B8;margin-bottom:10px}
.lang-picker-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}
.lang-pill{display:flex;align-items:center;justify-content:center;padding:7px 3px;background:#F8FAFC;border:1px solid #E2E8F0;border-radius:8px;font-size:0.68rem;font-weight:600;color:#475569;text-decoration:none;transition:all 0.15s;text-align:center;gap:3px}
.lang-pill:hover,.lang-pill:active{background:#EFF6FF;border-color:#BFDBFE;color:#0066CC}
.lang-pill-active{background:#EFF6FF!important;border-color:#BFDBFE!important;color:#0066CC!important;font-weight:700!important}

/* ============================================================
   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: flex !important; align-items: center; gap: 0.5rem; transition: opacity 0.2s ease, transform 0.2s ease; }
  nav:not(.navbar).scrolled .nav-right { opacity: 0; transform: scale(0.8); pointer-events: none; }
  .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:not(.navbar):not(.dk-breadcrumb) { 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; }
}
