a {
    color: #E94E1B; /* Orange vif (repère du logo) */
    text-decoration: none;
}

a:hover {
    color: #C53E16; /* Orange foncé au survol */
    text-decoration: none;
}

/* Liens de fiches – territoire */
.link-fiche {
  color: var(--territoire-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.link-fiche:hover {
  color: var(--territoire-primary);
  text-decoration: underline;
}


.link-header {
    color: #0D1B2A; /* Bleu très foncé */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.75rem; /* Taille titre */
    transition: color 0.3s ease;
}

.link-header:hover {
    color: #E94E1B; /* Orange vif au hover */
    text-decoration: none;
}

/* Bouton d'action (search, etc.) */
.btn-action {
    background-color: #E94E1B; /* Orange vif */
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease;
    font-weight: 500;
    display: inline-block;
    text-align: center;
}

.btn-action:hover {
    background-color: #C53E16; /* Orange foncé */
}


#suggestions {
    position: absolute;
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
    width: calc(100% - 2rem);
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    margin-top: 10px;
    padding: 0.5rem;
    cursor: pointer;
}

#suggestions div {
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: #0D1B2A; /* Texte suggestions en bleu foncé */
}

#suggestions div:hover {
    background-color: #f0f4f8;
}

#suggestions div:active {
    background-color: #e0e7ff;
}

#map {
    height: 400px;
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.toggle-status {
    background: none;
    border: none;
    padding: 0;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
    color: #0D1B2A; /* Icône en bleu foncé */
}

.toggle-status:hover {
    transform: scale(1.2);
    color: #E94E1B; /* Passe en orange au survol */
}

/* Assure que le conteneur du logo a une hauteur et aligne le visuel */
header .link-header {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Forcer l’affichage et la taille du logo, qu’il soit territoire ou défaut */
header .link-header img {
  display: block;        /* évite le collapse inline */
  height: 40px;          /* adapte si besoin */
  width: auto;           /* respecte les proportions */
  max-width: none;       /* au cas où un reset global limite à 100% d’un conteneur trop petit */
  visibility: visible;   /* neutralise un éventuel reset aggressif */
  opacity: 1;            /* idem */
}
.btn-territoire {
  background-color: var(--territoire-primary);
  color: #fff;
}

.btn-territoire:hover {
  filter: brightness(0.92);
}

.link-fiche {
  color: var(--territoire-primary);
}

.page-territoire a:hover {
  color: inherit;
}
