/* Styles pour l'image de fond de la carte */
.placeholder-map {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Animation pour les éléments au défilement */
.role-card, .timeline-item, .project-text h3, .territory-text h3 {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.role-card.animate, .timeline-item.animate, .project-text h3.animate, .territory-text h3.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Styles pour le header au défilement */
header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Styles pour les formulaires */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(220, 10, 45, 0.2);
}

/* Styles pour les boutons de formulaire */
button[type="submit"] {
    cursor: pointer;
}

/* Styles pour les messages de confirmation */
.form-message {
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Styles pour la carte interactive */
#map-container {
    position: relative;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.map-overlay p {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
}

/* Amélioration de l'accessibilité */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
