/**
 * Fichier: css/communes.css
 * Ajouté le: 2026-01-21 06:23:36
 */

/* Styles pour la page des communes */

/* Hero section */
.hero-section {
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Animation texte */
.text-reveal {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section de filtres */
.filter-section {
    padding: 2rem 0;
    background-color: #f9f9f9;
}

.filter-container {
    text-align: center;
}

.filter-container h2 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: #333;
}

.filter-container h2 i {
    color: #4CAF50;
    margin-right: 0.5rem;
}

.filter-container select {
    padding: 0.75rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    min-width: 250px;
    margin-bottom: 1rem;
}

/* Section des communes */
.communes-section {
    padding: 3rem 0;
}

.communes-section h2 {
    margin-bottom: 2rem;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    text-align: center;
    font-size: 2rem;
}

.communes-section h2 i {
    margin-right: 0.5rem;
    color: #4CAF50;
}

.communes-section h2 span {
    color: #4CAF50;
}

/* Cartes des communes */
.communes-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.commune-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.commune-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.commune-image {
    height: 200px;
    overflow: hidden;
}

.commune-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.commune-card:hover .commune-image img {
    transform: scale(1.05);
}

.commune-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.commune-name {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    padding-bottom: 0.8rem;
}

.commune-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #4CAF50;
}

.commune-details {
    margin-bottom: 1.5rem;
}

.commune-details p {
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.95rem;
}

.commune-details p i {
    width: 20px;
    color: #4CAF50;
    margin-right: 0.5rem;
}

.commune-description {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1;
}

.commune-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn-view {
    background-color: #4CAF50;
    color: white;
    padding: 0.7rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    flex: 1;
    text-align: center;
}

.btn-view:hover {
    background-color: #388E3C;
}

.btn-details {
    background-color: #f1f1f1;
    color: #333;
    padding: 0.7rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    flex: 1;
    text-align: center;
}

.btn-details:hover {
    background-color: #e0e0e0;
}

/* Message aucun résultat */
.no-results {
    text-align: center;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin-top: 1rem;
}

.no-results p {
    margin-bottom: 1rem;
    color: #555;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #388E3C;
}

/* Animation d'apparition */
.to-animate {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Délai d'animation pour chaque carte */
.commune-card:nth-child(1) { animation-delay: 0.1s; }
.commune-card:nth-child(2) { animation-delay: 0.2s; }
.commune-card:nth-child(3) { animation-delay: 0.3s; }
.commune-card:nth-child(4) { animation-delay: 0.4s; }
.commune-card:nth-child(5) { animation-delay: 0.5s; }
.commune-card:nth-child(6) { animation-delay: 0.6s; }
.commune-card:nth-child(7) { animation-delay: 0.7s; }
.commune-card:nth-child(8) { animation-delay: 0.8s; }
.commune-card:nth-child(9) { animation-delay: 0.9s; }

/* Responsive */
@media (max-width: 768px) {
    .communes-cards-container {
        grid-template-columns: 1fr;
    }
    
    .commune-actions {
        flex-direction: column;
    }
    
    .filter-container select {
        width: 100%;
    }
}


.hero-section.communes-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1)), url('../images/communes-banner.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1.5rem;
}

.hero-section.communes-hero .hero-content {
    width: 100%;
    max-width: 800px;
    text-align: center;
}