/* ============================================
   PMCHS — Styles communs à toutes les pages
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Source Sans 3', sans-serif;
    background: var(--navy);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
  }

body.en .lang-fr { display: none; }

body.en .lang-en { display: block; }

body.fr .lang-en { display: none; }

body.fr .lang-fr { display: block; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

footer a { color: var(--accent); text-decoration: none; }


.nav-link {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    white-space: nowrap;
  }

.nav-link:hover { color: var(--accent-soft); }

.nav-link.active { color: var(--accent); }

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }

.hamburger.open span:nth-child(2) { opacity: 0; }

.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu.open { display: flex; }

.mobile-link {
    font-size: 15px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid rgba(74, 158, 202, 0.1);
    transition: color 0.2s;
  }

.mobile-link:last-child { border-bottom: none; }

.mobile-link:hover { color: var(--accent-soft); }

.mobile-link.active { color: var(--accent); }

/* SOUS-MENU DESKTOP */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-trigger {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-family: 'Source Sans 3', sans-serif;
  padding: 0;
}

.nav-dropdown-trigger:hover,
.nav-dropdown:hover .nav-dropdown-trigger { color: var(--accent-soft); }

.nav-dropdown-trigger .chevron {
  font-size: 15px;
  transition: transform 0.2s;
  display: inline-block;
}

.nav-dropdown:hover 
.chevron { transform: rotate(180deg); }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% - 5px);
  left: 20%;
  background: rgba(13, 27, 46, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(74, 158, 202, 0.2);
  border-radius: 12px;
  padding: 10px 0;
  min-width: 220px;
  z-index: 300;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.nav-dropdown:hover 
.dropdown-menu { display: block; }

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0px;
  left: 16px;
  width: 10px; height: 10px;
  background: rgba(13, 27, 46, 0.98);
  border-left: 1px solid rgba(74, 158, 202, 0.2);
  border-top: 1px solid rgba(74, 158, 202, 0.2);
  transform: rotate(45deg);
}

.dropdown-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(74, 158, 202, 0.5);
  padding: 8px 18px 4px;
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 18px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  gap: 8px;
}

.dropdown-item:hover {
  background: rgba(74, 158, 202, 0.08);
  color: var(--accent-soft);
}

.dropdown-item.active { color: var(--accent); }

.dropdown-item .badge-soon {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(74, 158, 202, 0.4);
  border: 1px solid rgba(74, 158, 202, 0.2);
  border-radius: 4px;
  padding: 1px 5px;
  flex-shrink: 0;
}

.dropdown-item.disabled {
  cursor: default;
  pointer-events: none;
  opacity: 0.5;
}

.dropdown-divider {
  height: 1px;
  background: rgba(74, 158, 202, 0.1);
  margin: 6px 0;
}

.dropdown-item-overview {
  display: flex;
  align-items: center;
  padding: 9px 18px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  transition: background 0.15s;
  font-weight: 500;
}

.dropdown-item-overview:hover { background: rgba(74, 158, 202, 0.08); }

/* SOUS-MENU MOBILE */
.mobile-submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  color: var(--text-muted);
  padding: 10px 0;
  border-bottom: 1px solid rgba(74, 158, 202, 0.1);
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  font-family: 'Source Sans 3', sans-serif;
  text-align: left;
  transition: color 0.2s;
}

.mobile-submenu-toggle:hover { color: var(--accent-soft); }

.mobile-submenu-toggle .chevron-mobile {
  font-size: 11px;
  transition: transform 0.25s;
}

.mobile-submenu-toggle.open .chevron-mobile { transform: rotate(180deg); }

.mobile-submenu {
  display: none;
  flex-direction: column;
  padding-left: 16px;
  border-left: 2px solid rgba(74, 158, 202, 0.15);
  margin-bottom: 4px;
}

.mobile-submenu.open { display: flex; }

.mobile-sublink {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
  border-bottom: 1px solid rgba(74, 158, 202, 0.06);
}

.mobile-sublink:last-child { border-bottom: none; }

.mobile-sublink:hover { color: var(--accent-soft); }

.mobile-sublink.active { color: var(--accent); }

.mobile-sublink.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}

.mobile-sublink .badge-soon {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(74, 158, 202, 0.4);
  border: 1px solid rgba(74, 158, 202, 0.2);
  border-radius: 4px;
  padding: 1px 5px;
}