/* ---------------------
   Menu flottant à gauche
   --------------------- */
.floating-nav {
  background-color: #fff;
  border: 2px solid #e67e22;
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-family: sans-serif;
  z-index: 2000;
}

.floating-nav.floating-left {
  position: fixed;
  top: 150px;         /* Distance par rapport au haut */
  left: 40px;         /* Distance par rapport au bord gauche */
  width: 200px;
}

.floating-nav a {
  display: block;
  margin: 8px 0;
  text-decoration: none;
  color: #e67e22;
  font-weight: bold;
  font-size: 15px;
  transition: color 0.2s ease;
}

.floating-nav a:hover {
  color: #d35400;
}

/* Cacher sur mobile */
@media screen and (max-width: 768px) {
  .floating-nav {
    display: none;
  }
}



/* Header height you want to clear */
:root {
  --header-offset: 200px;       /* tweak to your header height */
  --gap-below-header: 24px;     /* extra breathing room */
}

/* Default position (desktop) */
.floating-nav.floating-left {
  top: calc(var(--header-offset) + var(--gap-below-header));
}

/* If the Drupal admin toolbar is visible, add its height */
body.toolbar-horizontal .floating-nav.floating-left,
body.toolbar-vertical .floating-nav.floating-left,
body.toolbar-fixed .floating-nav.floating-left {
  /* Drupal toolbar is ~39–72px depending on state; adjust as needed */
  top: calc(var(--header-offset) + var(--gap-below-header) + 72px);
}

/* Optional: slightly lower on very small laptops to avoid nav overlap */
@media (max-width: 1280px) {
  .floating-nav.floating-left {
    top: calc(var(--header-offset) + var(--gap-below-header) + 12px);
  }
}

/* Mobile: usually hidden, but if you keep it, push even further */
@media (max-width: 768px) {
  /* .floating-nav.floating-left { display: none; }  <- keep hidden
     or, if visible: */
  /* .floating-nav.floating-left {
       top: calc(var(--header-offset) + 56px);
     } */
}
