/* Global */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0b1220;
  color: #e5e7eb;
}

/* Container */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: #111827;
  padding: 6px 0;
  position: sticky;
  top: 0;
  overflow: visible;
  z-index: 9999;
}

.site-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  overflow: visible;
}

/* Logo */
.logo {
  display: block;
  width: 360px;
  height: 90px;
  text-decoration: none;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* NAVBAR */
.navbar {
  width: 100%;
  position: relative;
  z-index: 10000;
  overflow: visible;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.menu > li {
  position: relative;
}

/* Top links */
.menu > li > a {
  display: block;
  padding: 10px 12px;
  color: #9ca3af;
  text-decoration: none;
  font-size: 14px;
}

.menu > li > a:hover {
  color: #ffffff;
}

/* Submenu niveau 1 */
.submenu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 210px;
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  display: none;
  z-index: 20000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.submenu li {
  position: relative;
}

.submenu a {
  display: block;
  padding: 10px 12px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.submenu a:hover {
  background: rgba(255,255,255,0.06);
  color: #ffffff;
}

/* Sous-menu niveau 2 (à droite) */
.submenu-right {
  top: 0;
  left: 100%;
  margin-left: -1px; /* chevauche pour éviter le trou */
}

/* OUVERTURE hover + clic */
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu {
  display: block;
}

/* Pont invisible entre menu et sous-menu vertical */
.has-submenu > .submenu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
}

/* Pont invisible horizontal pour sous-menu droit */
.submenu li.has-submenu::after {
  content: "";
  position: absolute;
  top: 0;
  right: -14px;
  width: 14px;
  height: 100%;
}

/* Garder ouvert sur le pont */
.submenu li.has-submenu:hover > .submenu,
.submenu li.has-submenu:focus-within > .submenu {
  display: block;
}

/* Main content */
main {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Footer */
.site-footer {
  background: #111827;
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
  color: #9ca3af;
}