body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.header_haut {
    text-align: center;
    
    background-color: rgba(255, 255, 255, 0.8); /* Couleur de fond avec transparence pour le texte */
    color: white;
    padding: 20px;
    /*background-image: url('/assets/img/maire/flag.jpg');  Chemin vers l'image */
    background-size: cover; /* Ajuste l'image pour couvrir tout l'en-tête */
    background-position: center; /* Centre l'image */
}

.mayor {
    margin-bottom: 20px;
}

.mayor-photo {
    width: 300px; /* Ajustez selon vos besoins */
    border-radius: 18%;
}

.members {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    /*display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;*/
}

.member {
    flex: 1 1 calc(25% - 20px); /* Quatre colonnes avec espace */
    margin: 10px;
    text-align: center;
    /*background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);*/
}

.member-photo {
    width: 100%;
    height: auto;
    border-radius: 18%;
    margin-bottom: 10px;
}

.member h4 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap; /* Empêche le texte de se diviser sur plusieurs lignes */
}

.member p {
    font-size: 14px;
}

@media (max-width: 992px) {
    .member {
        flex: 1 1 calc(33.33% - 20px); /* Trois colonnes sur écrans moyens */
    }
}

@media (max-width: 768px) {
    .member {
        flex: 1 1 calc(50% - 20px); /* Deux colonnes sur écrans petits */
    }
}

@media (max-width: 576px) {
    .member {
        flex: 1 1 100%; /* Une colonne sur écrans très petits */
    }
}

.containerr {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne si l'espace est insuffisant */
}
.description {
    width: 70%;
}
.maire {
    width: 25%;
    text-align: center;
    order: 0; /* Ordre par défaut : image avant le texte */
}
.maire img {
    width: 100%;
    max-width: 300px; /* Limiter la taille maximale de l'image */
    border-radius: 10px;
}
h1 {
    color: #ffd737;
}
 /* Media Query pour les écrans de moins de 768px (tablettes et téléphones) */
 @media screen and (max-width: 768px) {
    .containerr {
        flex-direction: column; /* Empile les éléments */
    }
    .maire {
        order: -1; /* Priorité plus élevée : l'image sera affichée en premier sur mobile */
        width: 100%; /* L'image occupe toute la largeur */
    }
    .description {
        width: 100%; /* Le texte prend aussi toute la largeur */
    }
    .maire img {
        margin-bottom: 20px; /* Espace entre l'image et le texte */
    }
}