/* Pages satellites par profession — réutilisable */
@import url('./nav-dropdown.css');

:root {
  --blue: #1a6fb5;
  --blue-dark: #134f85;
  --blue-light: #e8f2fb;
  --dark: #1a1f2e;
  --gray: #64748b;
  --border: #e2e8f0;
  --white: #fff;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

.container { max-width: 900px; margin: 0 auto; padding: 0 24px; }

nav.pro-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;
}
.pro-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 78px;
}
.pro-nav .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;
  flex-shrink: 0;
}
.pro-nav .logo span { color: var(--dark); }
.pro-nav-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  text-decoration: none;
  white-space: nowrap;
  padding: 0 4px;
}
.pro-nav-text:hover { color: var(--blue); }
.pro-nav-links {
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

nav.pro-nav .hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  flex-shrink: 0;
  margin-left: auto;
}

nav.pro-nav .hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
}

nav.pro-nav .mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 8px 16px 20px;
}

nav.pro-nav .mobile-menu.open {
  display: flex;
}

nav.pro-nav .mobile-menu a:not(.btn):not(.btn-helpe-formation) {
  text-decoration: none;
  color: var(--dark);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

nav.pro-nav .mobile-menu .btn,
nav.pro-nav .mobile-menu a.btn-helpe-formation {
  display: inline-block;
  width: 100%;
  margin-top: 10px;
  text-align: center;
  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;
}

nav.pro-nav .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);
}

nav.pro-nav .mobile-menu a.btn-outline {
  background: var(--white);
  color: var(--blue) !important;
  border: 2px solid var(--blue);
}

nav.pro-nav .mobile-menu a.btn-helpe-formation {
  color: #fff !important;
  background: #17a589;
  border: none;
  box-shadow: 0 4px 14px rgba(23, 165, 137, 0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(26,111,181,.35);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover {
  background: var(--blue-light);
}
.pro-nav-links .btn.nav-cta,
.pro-nav-links .btn.nav-cta-guides {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.pro-breadcrumb {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 20px;
}
.pro-breadcrumb a { color: var(--blue); text-decoration: none; }
.pro-breadcrumb a:hover { text-decoration: underline; }

.pro-hero {
  padding: 48px 0 40px;
}
.pro-hero h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.pro-hero h1 em {
  font-style: normal;
  color: var(--blue);
}
.pro-lead {
  font-size: 17px;
  color: var(--gray);
  max-width: 640px;
  margin-bottom: 24px;
}
.pro-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.pro-note {
  font-size: 14px;
  color: var(--gray);
}

.pro-section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.pro-section h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
}
.pro-section p { margin-bottom: 14px; color: #374151; font-size: 15px; }

.pro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.pro-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--blue-light);
}
.pro-card strong { display: block; margin-bottom: 8px; font-size: 15px; color: var(--dark); }

.pro-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.pro-links-row a {
  font-size: 14px;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.pro-links-row a:hover { text-decoration: underline; }

.pro-def-box {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  padding: 18px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 20px;
  font-size: 15px;
  color: #374151;
}
.pro-def-box strong { color: var(--dark); }

.pro-guide-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.pro-guide-list li {
  margin-bottom: 12px;
  padding-left: 0;
}
.pro-guide-list a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.pro-guide-list a:hover { text-decoration: underline; }
.pro-guide-list span {
  display: block;
  font-size: 14px;
  color: var(--gray);
  font-weight: 400;
  margin-top: 4px;
}

.pro-faq { margin-top: 8px; }
.pro-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.pro-faq-q {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 600;
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  color: var(--dark);
}
.pro-faq-icon { font-size: 20px; color: var(--blue); font-weight: 400; }
.pro-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.pro-faq-item.open .pro-faq-a { max-height: 400px; }
.pro-faq-a p {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--gray);
  margin: 0;
}

.pro-updated {
  font-size: 13px;
  color: var(--gray);
  margin-top: 8px;
}

footer.pro-footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 40px 24px 28px;
  margin-top: 48px;
}
.pro-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.pro-footer a { color: #94a3b8; text-decoration: none; }
.pro-footer a:hover { color: var(--white); }
.pro-footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

.helpe-social {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}
.pro-footer .helpe-social a {
  color: #94a3b8;
  text-decoration: none;
}
.pro-footer .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;
}

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%;
  margin-top: 8px;
  box-sizing: border-box;
}

/* 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;
}

@media (min-width: 769px) {
  .pro-nav-links {
    display: flex;
  }
}

@media (max-width: 768px) {
  nav.pro-nav {
    padding: 0 16px;
  }
  .pro-nav-inner {
    flex-wrap: nowrap;
    min-height: 64px;
  }
  .pro-nav-links {
    display: none !important;
  }
  nav.pro-nav .hamburger {
    display: flex !important;
  }
  .container {
    padding-left: 16px;
    padding-right: 16px;
    max-width: 100%;
  }
  .pro-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .pro-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
