/* ============================================
   DOAKEN — NAV HEADER + FOOTER PARTAGÉS
   Source de vérité : extraits de fr-index.html (landing-v1 validé)
   Consommé par : fr-index.html, fonctionnalites/*.html, solutions.html,
   exemple/index.html, logiciel-*/index.html
   ============================================ */

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

/* ============ NAVBAR ============ */
.navbar {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 26, 61, 0.06);
}
.nav-logo {
  font-family: 'Mokoto', 'Geist', sans-serif !important;
  font-weight: normal;
  font-size: 26px;
  color: var(--text-h1, #001A3D);
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-logo:hover { color: var(--accent, #FF6B35); transition: color .2s ease; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-sub, #475569);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color .2s ease;
  text-decoration: none;
}
.nav-links a:hover { color: var(--text-h1, #001A3D); }
.nav-links .nav-item { position: relative; }
.nav-links .nav-item > a { display: inline-flex; align-items: center; gap: 4px; }
.nav-links .nav-chevron { width: 12px; height: 12px; transition: transform .2s ease; opacity: 0.6; }
.nav-links .nav-item:hover .nav-chevron { transform: rotate(180deg); opacity: 1; }

/* Zone tampon invisible qui maintient le hover entre menu et dropdown */
.nav-links .nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -16px; right: -16px;
  height: 16px;
  pointer-events: none;
}
.nav-links .nav-item:hover::after { pointer-events: auto; }

/* Dropdown Anchor-style : mini-illustration iso + nom seul */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: white;
  border-radius: 16px;
  padding: 12px;
  min-width: 280px;
  box-shadow: 0 20px 50px -16px rgba(0, 26, 61, 0.18), 0 6px 16px -6px rgba(0, 26, 61, 0.08);
  border: 1px solid rgba(0, 26, 61, 0.06);
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  pointer-events: none;
  z-index: 100;
}
.nav-links .nav-item:hover .nav-dropdown {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-h1, #001A3D);
  letter-spacing: -0.005em;
  transition: background .15s ease;
}
.nav-dropdown a:hover { background: var(--bg-section, #EAF1F8); color: var(--text-h1, #001A3D); }
.nav-dropdown a:hover img { transform: scale(1.06) rotate(-2deg); }
.nav-dropdown a img {
  width: 36px; height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform .25s cubic-bezier(.4, 0, .2, 1);
  background: var(--bg-section, #EAF1F8);
}

.nav-right { display: flex; align-items: center; gap: 20px; }

/* ============ COUNTRY SELECTOR ============ */
.country-selector,
.country-selector *,
.country-menu,
.country-menu * { display: none !important; visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; position: absolute !important; left: -9999px !important; width: 0 !important; height: 0 !important; overflow: hidden !important; }
.country-selector button {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226,232,240,0.95);
  border-radius: 100px;
  padding: 5px 11px;
  font-size: 1.05rem;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.country-selector button::after {
  content: '▾';
  font-size: 0.55rem;
  opacity: 0.45;
  margin-left: 2px;
  font-family: system-ui, sans-serif;
}
.country-selector button:hover {
  background: rgba(0,26,61,0.07);
  border-color: rgba(0,26,61,0.3);
  box-shadow: 0 2px 8px rgba(0,26,61,0.12);
}
.country-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
  padding: 6px;
  min-width: 200px;
  z-index: 2000;
}
.country-menu.open { display: flex; flex-direction: column; }
.country-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.country-menu a:hover { background: #F1F5F9; color: #0F172A; }
.country-menu a.active-lang { background: var(--bg-section, #EAF1F8); color: var(--text-h1, #001A3D); font-weight: 700; }
@media (max-width: 900px) { .country-selector { display: none; } }

.nav-signin {
  color: var(--text-h1, #001A3D);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.nav-cta {
  background: var(--text-h1, #001A3D);
  color: white;
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s ease, transform .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.nav-cta:hover { background: #000B1F; transform: translateY(-1px); }
.nav-cta svg { width: 14px; height: 14px; }

/* Badge "Solution française" (drapeau FR) — pattern du LIVE */
.nav-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body, 'Geist', sans-serif);
  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;
}
.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);
}
@media (max-width: 900px) {
  .nav-flag { display: none; }
}

/* Alias .logo-text → mêmes styles que .nav-logo (compatibilité LIVE) */
.logo-text {
  font-family: 'Mokoto', 'Geist', sans-serif;
  font-weight: normal;
  font-size: 26px;
  color: var(--text-h1, #001A3D);
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.logo-text:hover { color: var(--accent, #FF6B35); transition: color .2s ease; }

/* ============ MOBILE BURGER + MENU OVERLAY ============ */
.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav-mobile-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-h1, #001A3D);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-mobile-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-mobile-btn.active span:nth-child(2) { opacity: 0; }
.nav-mobile-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile-menu {
  position: fixed;
  top: 64px;
  left: 0; right: 0; bottom: 0;
  background: white;
  z-index: 49;
  padding: 24px 28px 32px;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid rgba(0, 26, 61, 0.06);
}
.nav-mobile-menu.active { display: flex; }
.nav-mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-h1, #001A3D);
  border-bottom: 1px solid rgba(0, 26, 61, 0.07);
  text-decoration: none;
}
.nav-mobile-section {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, #94A3B8);
  margin-top: 4px;
  margin-bottom: 4px;
  padding: 8px 0 4px;
}
.nav-mobile-divider {
  height: 12px;
}
.nav-mobile-cta {
  margin-top: 20px;
  text-align: center;
  background: var(--text-h1, #001A3D) !important;
  color: white !important;
  border-radius: 100px;
  padding: 14px 24px !important;
  border-bottom: none !important;
  font-weight: 600 !important;
}

@media (max-width: 900px) {
  .navbar { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-signin { display: none; }
  .nav-mobile-btn { display: flex; }
}

/* ============ FOOTER ============ */
.footer {
  background: #000B1F;
  color: rgba(255,255,255,0.7);
  padding: 64px 64px 0;
  position: relative;
  overflow: hidden;
}
.footer-inner { max-width: 1440px; margin: 0 auto; position: relative; z-index: 2; }
.footer-wordmark {
  position: absolute;
  bottom: -36px; left: 50%; transform: translateX(-50%);
  font-family: 'Sentient', 'Geist', serif;
  font-size: clamp(140px, 22vw, 280px);
  font-weight: 500;
  color: rgba(255,255,255,0.04);
  letter-spacing: -0.04em;
  z-index: 1;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
  text-transform: lowercase;
}
.footer-grid { display: grid; grid-template-columns: 280px 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand .ftr-logo { display: inline-flex; align-items: center; font-family: 'Mokoto', 'Geist', sans-serif !important; font-size: 28px; font-weight: normal; color: white; margin-bottom: 16px; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-brand p { font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,0.55); max-width: 240px; }
.ftr-col h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin-bottom: 18px; }
.ftr-col ul { list-style: none; padding: 0; margin: 0; }
.ftr-col li { margin-bottom: 10px; }
.ftr-col a { font-size: 14px; color: rgba(255,255,255,0.75); text-decoration: none; }
.ftr-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; padding-bottom: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-bottom-links a:hover { color: white; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); font-size: 14px; transition: background .2s ease, color .2s ease; }
.footer-social a:hover { background: rgba(255,255,255,0.15); color: white; }

@media (max-width: 900px) {
  .footer { padding: 48px 24px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-wordmark { font-size: clamp(80px, 30vw, 140px); bottom: -20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}
