﻿/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   NAVBAR â€” Ã©tat initial (pleine largeur)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  /* Pleine largeur : marges nulles des deux cÃ´tÃ©s */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin-left: 0;
  margin-right: 0;
  padding: 0.85rem 3rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 0.5px solid #e2e8f0;
  border-radius: 0;
  box-shadow: none;
  z-index: 200;
  box-sizing: border-box;
  /* Toutes les propriÃ©tÃ©s animables en mÃªme temps */
  transition:
    top            0.45s cubic-bezier(0.4, 0, 0.2, 1),
    margin-left    0.45s cubic-bezier(0.4, 0, 0.2, 1),
    margin-right   0.45s cubic-bezier(0.4, 0, 0.2, 1),
    padding        0.45s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius  0.45s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow     0.45s cubic-bezier(0.4, 0, 0.2, 1),
    background     0.45s ease,
    border-color   0.45s ease;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   NAVBAR â€” Ã©tat scrollÃ© (pill centrÃ©)
   Le rÃ©trÃ©cissement se fait des deux cÃ´tÃ©s
   simultanÃ©ment via margin-left/right
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
nav.scrolled {
  top: 14px;
  /* Marges symÃ©triques larges â†’ rÃ©trÃ©cissement des deux cÃ´tÃ©s vers le centre */
  margin-left: max(40px, calc((100% - 1100px) / 2));
  margin-right: max(40px, calc((100% - 1100px) / 2));
  padding: 0.6rem 1.75rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10), 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* Compensation du body pour la navbar fixed */
body { padding-top: 70px; }

/* â”€â”€ Marque â”€â”€ */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0d1b2a;
  letter-spacing: -.01em;
  text-decoration: none;
  flex-shrink: 0;
  z-index: 10;
}
.nav-brand img { height: 36px; width: auto; }
.nav-brand span { color: #1a73e8; }

/* â”€â”€ Liens desktop â”€â”€ */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  /* Suppression du positionnement indÃ©pendant (pill fixe sÃ©parÃ©) */
  position: static;
  top: auto;
  left: auto;
  transform: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
  z-index: auto;
}
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #4a5568;
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}
.nav-links a:hover { color: #1a73e8; }

/* â”€â”€ Partie droite (langue + auth) â”€â”€ */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-links-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 14px;
  border-left: 1px solid rgba(0, 135, 202, 0.2);
}

.btn-login-floating,
.btn-signup-floating {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  padding: 6px 14px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-login-floating {
  color: #1a73e8;
  background: transparent;
  border: 1px solid #1a73e8;
}

.btn-login-floating:hover {
  background: rgba(0, 135, 202, 0.08);
  border-color: #1557b0;
  color: #1557b0;
}

.btn-signup-floating {
  color: #fff;
  background: #1a73e8;
}

.btn-signup-floating:hover {
  background: #1557b0;
  box-shadow: 0 2px 8px rgba(0, 135, 202, 0.25);
}

.nav-cta {
  background: #1a73e8;
  color: #fff !important;
  padding: 7px 18px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background .2s, opacity .3s, transform .3s !important;
  animation: fadeInCta .3s ease;
}
.nav-cta:hover { background: #1557b0; color: #fff !important; }

@keyframes fadeInCta {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a73e8;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 16px rgba(26,115,232,0.3);
  z-index: 10;
  margin-left: auto;
  margin-right: 12px;
}
.btn-secondary:hover { background: #1557b0; transform: translateY(-2px); }

/* Auth Buttons */
.nav-auth-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  margin-right: 24px;
}

.btn-login,
.btn-signup {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  padding: 8px 18px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-login {
  color: #1a73e8;
  background: transparent;
  border: 1.5px solid #1a73e8;
}

.btn-login:hover {
  background: rgba(0, 135, 202, 0.08);
  border-color: #1557b0;
  color: #1557b0;
}

.btn-signup {
  color: #fff;
  background: #1a73e8;
}

.btn-signup:hover {
  background: #1557b0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 135, 202, 0.25);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #0d1b2a;
  border-radius: 2px;
  transition: all .3s ease;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Nav Drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  flex-direction: column;
  padding-top: 80px;
  z-index: 109;
  transform: translateX(100%);
  transition: transform .3s ease;
}
.nav-drawer.open {
  transform: translateX(0);
}
.nav-drawer a {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #4a5568;
  text-decoration: none;
  padding: 14px 32px;
  transition: background .2s, color .2s;
  border-left: 3px solid transparent;
}
.nav-drawer a:hover {
  background: #f7fafc;
  color: #1a73e8;
  border-left-color: #1a73e8;
}

.drawer-cta {
  display: inline-flex !important;
  margin: 12px 32px 0;
  padding: 14px 32px !important;
  background: #1a73e8;
  color: #fff !important;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: 15px !important;
  border-left: none !important;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(26,115,232,0.3);
  transition: background .2s !important;
}
.drawer-cta:hover {
  background: #1557b0 !important;
  border-left-color: transparent !important;
}

.drawer-login,
.drawer-signup {
  display: inline-flex !important;
  margin: 12px 32px 0;
  padding: 10px 24px !important;
  border-radius: 6px;
  font-weight: 500 !important;
  font-size: 14px !important;
  border-left: none !important;
  justify-content: center;
  text-decoration: none;
  transition: all .2s !important;
  width: calc(100% - 64px);
}

.drawer-login {
  color: #1a73e8 !important;
  background: transparent !important;
  border: 1.5px solid #1a73e8 !important;
  margin-bottom: 8px;
}

.drawer-login:hover {
  background: rgba(0, 135, 202, 0.08) !important;
  border-color: #1557b0 !important;
  color: #1557b0 !important;
}

.drawer-signup {
  color: #fff !important;
  background: #1a73e8 !important;
  border: none !important;
}

.drawer-signup:hover {
  background: #1557b0 !important;
  box-shadow: 0 4px 12px rgba(0, 135, 202, 0.25) !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   LANGUAGE TOGGLE (desktop)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 10;
}
.lang-sep {
  color: #cbd5e0;
  font-size: 13px;
}
.lang-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #a0aec0;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color .2s, background .2s;
}
.lang-btn.active {
  color: #1a73e8;
  background: rgba(26,115,232,0.08);
}
.lang-btn:hover:not(.active) {
  color: #4a5568;
  background: #f1f5f9;
}

@media (max-width: 860px) {
  .lang-toggle {
    display: none;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   LANGUAGE TOGGLE (mobile drawer)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.drawer-lang-toggle {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 14px 32px;
}

@media (max-width: 860px) {
  .drawer-lang-toggle {
    display: flex;
  }
}
