/* ================================================================
   ██████ NAVIGATION MÉTÉO, HEURE & BOUTON TOGGLE ██████
   ================================================================= */

/* --- Widget météo toujours en superposition, jamais dans le flux --- */
.nav-meteo-heure,
.nav-meteo-heure--fixe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  z-index: 1055 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
  background: #fff !important;
  transition: all 0.3s ease !important;
}

/* --- Supprimer tout espace ajouté par le body ou le header --- */
body,
body.widget-visible,
.en-tete,
.navigation-principale {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Widget caché */
.nav-meteo-heure--cache {
  transform: translateY(-100%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Widget visible */
.nav-meteo-heure:not(.nav-meteo-heure--cache) {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* ========================== CONTENU DU WIDGET ========================== */
.widget-meteo-heure {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 50px;
  background-color: transparent;
  border: none;
  box-shadow: none;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #007bff;
  margin: 5px auto 0;
  width: fit-content;
  max-width: 100%;
}

.widget-meteo-heure:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* >>> Ligne 1 : Météo & Heure <<< */
.ligne-meteo-heure {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  width: 100%;
  margin-bottom: 10px;
}

/* Bloc Météo */
.widget-meteo i {
  margin-right: 10px;
  animation: pulsation 1.5s infinite;
  transition: color 0.3s ease;
}
.ville-pays {
  font-weight: bold;
  font-size: 16px;
  margin-right: 15px;
}

/* Bloc Date & Heure */
.widget-date-heure {
  display: flex;
  align-items: center;
}
.widget-date {
  font-size: 14px;
  margin-right: 5px;
}
.widget-heure {
  font-weight: bold;
  font-size: 14px;
}
.separateur {
  margin: 0 5px;
}

/* >>> Ligne 2 : Actualités <<< */
.ligne-actualites {
  width: 100%;
}
.widget-actualites {
  width: 100%;
}

#fil-actualites {
  white-space: nowrap;
  display: inline-block;
}

/* ========================== BOUTON TOGGLE FLOTTANT ========================== */
.bouton-toggle-widget {
  cursor: pointer;
  background-color: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  z-index: 1000;
  margin: 0;
  padding: 5px 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  outline: none;
}

/* Icône du bouton toggle */
.bouton-toggle-widget i {
  font-size: 18px;
  color: #007bff;
  transition: transform 0.2s ease;
}

/* ========================== ANIMATION ICÔNES MÉTÉO ========================== */
@keyframes pulsation {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ========================== RESPONSIVE ========================== */
@media (max-width: 768px) {
  .nav-meteo-heure,
  .nav-meteo-heure--fixe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    z-index: 1055 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .bouton-toggle-widget {
    width: 30px;
    height: 30px;
    position: relative;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    border: none;
  }

  .widget-meteo-heure {
    font-size: 12px;
    margin: 3px auto 0;
  }

  .ligne-meteo-heure, .ligne-actualites {
    gap: 3px;
    margin-bottom: 5px;
  }

  .ligne-bouton-toggle {
    position: relative;
    z-index: 1001;
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    padding: 5px 0;
    margin: 0;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }

  .nav-meteo-heure {
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    color: white;
    padding: 8px 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-meteo-heure.widget-visible {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .nav-meteo-heure.widget-visible .widget-meteo-heure {
    color: white;
    font-size: 12px;
  }

  .widget-meteo-heure .ligne-meteo-heure {
    gap: 8px;
    margin-bottom: 8px;
  }

  .widget-meteo-heure .ligne-actualites {
    font-size: 11px;
    line-height: 1.3;
  }

  .navigation-principale {
    margin-top: 0 !important;
    padding-top: 10px !important;
  }

  .bouton-toggle-widget {
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
  }

  .bouton-toggle-widget:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
  }

  .bouton-toggle-widget i {
    color: white;
    font-size: 16px;
  }

  body.widget-visible .bouton-toggle-widget {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
  }

  body.widget-visible .bouton-toggle-widget i {
    transform: rotate(180deg);
  }

  .barre-recherche {
    margin-top: 10px;
  }

  .ligne-bouton-toggle .bouton-toggle-widget {
    position: relative;
    z-index: 1002;
  }

  .navigation-secondaire.mobile-only {
    margin-top: 0;
  }

  .bouton-menu-mobile {
    margin-top: 5px;
  }

  body.widget-visible .en-tete {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body.menu-mobile-ouvert .bouton-toggle-widget {
    z-index: 1003;
  }
}
