/* =====================================================================
   BANNIÈRE D'ANNONCE ET RAPPEL DE MAINTENANCE (en haut de l'accueil)
   ===================================================================== */

.annonces { position: relative; z-index: 60; }

.annonce {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.55rem 3rem 0.55rem 1rem;
  position: relative;
  font-size: 0.9rem;
  text-align: center;
  border-bottom: 1px solid var(--bordure);
  background: color-mix(in srgb, var(--fond) 80%, var(--accent) 20%);
  color: var(--texte);
  animation: annonce-arrivee 0.6s ease both;
}

.annonce a { color: inherit; font-weight: 600; text-underline-offset: 3px; }
.annonce-important { background: var(--accent); color: var(--fond); border-bottom-color: var(--accent); }
.annonce-admin { background: color-mix(in srgb, #f3c969 22%, var(--fond)); font-size: 0.82rem; padding-right: 1rem; }

.annonce-fermer {
  position: absolute;
  right: 0.6rem; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.8;
}

.annonce-fermer:hover { opacity: 1; background: color-mix(in srgb, currentColor 15%, transparent); }

@keyframes annonce-arrivee { from { opacity: 0; transform: translateY(-100%); } }

/* L'en-tête du site (position absolue) se place sous les bannières */
.entete { top: var(--hauteur-annonces, 0px); }
