@import url('./nav-dropdown.css');

/* ── UTILITIES ─────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s ease;
  border: none;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(26,111,181,.35);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,111,181,.45); }
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover { background: var(--blue-light); }
.btn-white {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.btn-white:hover { background: var(--blue-light); transform: translateY(-2px); }

.tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--gray);
  max-width: 580px;
  margin-bottom: 48px;
}

/* ── NAV ───────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 800;
  color: var(--blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.logo span { color: var(--dark); }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--blue); }
.nav-cta { margin-left: 0; }

/* Boutons CTA barre nav : même taille (Guide gratuit + Diagnostic) */
.helpe-nav-actions .btn.nav-cta,
.helpe-nav-actions .btn.nav-cta-guides,
.helpe-nav-actions .btn.nav-cta-score {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  flex-shrink: 0;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .3s;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 8px 16px 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a:not(.btn):not(.btn-helpe-formation) {
  text-decoration: none;
  color: var(--dark);
  font-size: 16px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .btn,
.mobile-menu a.btn-helpe-formation {
  display: inline-block;
  margin-top: 10px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  border-bottom: none;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 50px;
  text-decoration: none;
}
.mobile-menu a.btn-primary {
  background: var(--blue);
  color: var(--white) !important;
  border: none;
  box-shadow: 0 4px 16px rgba(26, 111, 181, 0.35);
}
.mobile-menu a.btn-outline {
  background: var(--white);
  color: var(--blue) !important;
  border: 2px solid var(--blue);
}
.mobile-menu a.btn-helpe-formation {
  color: #fff !important;
  background: #17a589;
  border: none;
  box-shadow: 0 4px 14px rgba(23, 165, 137, 0.35);
}

footer {
  background: var(--dark);
  padding: 48px 0 32px;
  color: #94a3b8;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo {
  margin-bottom: 12px;
  display: inline-flex;
  font-size: clamp(17px, 1.8vw, 21px);
  gap: 8px;
  letter-spacing: -0.02em;
}
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #94a3b8; text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.footer-bottom a { color: #94a3b8; text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

.helpe-social {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}
.footer-bottom .helpe-social a {
  color: #94a3b8;
  text-decoration: none;
}
.footer-bottom .helpe-social a:hover { color: var(--white); }

/* HelpE — bouton « Ma formation » (barre de navigation + menus mobiles) */
.helpe-nav-actions {
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

@media (min-width: 769px) {
  .nav-links,
  .helpe-nav-actions {
    display: flex;
  }
  .hamburger {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .helpe-nav-actions {
    display: none !important;
  }
  .hamburger {
    display: flex !important;
  }
  nav {
    padding: 0 16px;
  }
  .nav-inner {
    height: 64px;
    gap: 12px;
  }
  .container {
    padding-left: 16px;
    padding-right: 16px;
    max-width: 100%;
  }
  footer {
    padding-left: 0;
    padding-right: 0;
  }
  footer .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-brand p {
    max-width: none;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

a.btn-helpe-formation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.2;
  color: #fff !important;
  background: #17a589;
  border: none;
  border-radius: 50px;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(23, 165, 137, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

a.btn-helpe-formation:hover {
  background: #139a7a;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(23, 165, 137, 0.45);
}

.mobile-menu a.btn-helpe-formation {
  width: 100%;
}

/* Barres internes (formation / espace membre / démo) */
a.btn-helpe-formation--compact {
  padding: 7px 16px;
  font-size: 13px;
  box-shadow: 0 3px 12px rgba(23, 165, 137, 0.28);
}

/* Page login : entête avec bouton site */
.login-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.login-header-inner .logo {
  flex-shrink: 0;
}
