html {
  scroll-padding-top: 80px; /* hauteur du menu fixe */
}

/* --- HEADER --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 95px;
  background: #F7F7F7;
  border-bottom: 1px solid #eee;
  z-index: 1000;
  align-content: center;
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: auto;
  padding: 15px 30px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 18px;
}

.logo img {
  height: 65px;
  margin-right: 10px;
}

/* Navbar */
.navbar ul {
  display: flex;
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.navbar ul li a {
  text-decoration: none;
  font-weight: 500;
  color: #333;
  transition: color 0.3s;
}

.navbar ul li a:hover {
  color: #173F73;
}

/* Actions */
.actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.actions .btn-primary {
  
  color: #fff;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

.actions .btn-primary:hover {
  background: #e89e00;
}

.actions .login {
  color: #00c48c;
  font-weight: bold;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    display: none; /* tu peux rajouter un menu burger plus tard */
  }
}


/* --- Partenaires --- */
.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 24px;
  height: 120px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(23, 63, 115, 0.18);
}

.partner-card img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  
}





/* Décalage pour éviter que le header masque les sections */
section {
  padding-top: 80px;
}


.navbar ul li a:hover {
  color: #173F73;
}

/* --- Dropdown --- */
.navbar .dropdown {
  position: relative;
}

.navbar .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  color: #333;
  padding: 0;
  transition: color 0.3s;
}

.navbar .dropdown-toggle:hover {
  color: #173F73;
}

.dropdown-caret {
  font-size: 0.7em;
  transition: transform 0.3s;
}

/* Rotation de la flèche quand le menu est ouvert */
.navbar .dropdown.open .dropdown-caret {
  transform: rotate(180deg);
}

.navbar .dropdown-menu {
  display: none;           /* caché par défaut */
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 230px;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  z-index: 1100;
}

/* Affiché quand le <li> a la classe .open (ajoutée en JS) */
.navbar .dropdown.open .dropdown-menu {
  display: flex;
}

.navbar .dropdown-menu li {
  width: 100%;
}

.navbar .dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 1rem;
  color: #333;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.navbar .dropdown-menu li a:hover {
  background: #F1F5FB;
  color: #173F73;
}
