/* 1. Style de base du header (quand on est tout en haut) */
.d1m-header {
  position: fixed;
  /* Pour qu'il reste visible pendant le défilement */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  transition: all 0.4s ease-in-out;
  /* Transition fluide */
  background-color: transparent;
  /* Fond transparent au départ */
  padding: 30px 40px;
  /* Hauteur initiale confortable */
}

.d1m-logo img {
  height: 90px;
  width: auto;
  transition: 0.4s ease;
  filter: contrast(1.05);
}

.d1m-header.scrolled .d1m-logo img {
  width: 90px;
  height: auto;
}

.d1m-nav {
  display: flex;
  gap: 25px;
}

.d1m-nav a {
  font-size: 14px;
  letter-spacing: 1px;
}

.d1m-header.scrolled {
  background: #F5F2EB;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 12px 40px
}