/* Style général */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #111;
    color: #fff;
}

/* En-tête */
header {
    background: #000;
    padding: 15px;
    text-align: center;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

header nav ul li {
    display: inline;
    margin: 0 15px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: #f39c12;
}

/* Slider (Bannière d’accueil) avec effet fade */
.slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.slides img {
    position: absolute;
    width: 100%;
    height: 400px;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* Afficher l'image active */
.slides img.active {
    opacity: 1;
}

/* Section d'accueil */
#welcome-container {
    text-align: center;
    padding: 50px 10%;
    background: linear-gradient(to right, #000000, #333333);
    color: white;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

#welcome-container h1 {
    font-size: 2.5em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #f39c12;
}

.highlight {
    color: #e67e22;
}

.welcome-text {
    font-size: 1.2em;
    margin-top: 15px;
    line-height: 1.6;
}

.welcome-subtext {
    font-size: 1em;
    margin-top: 10px;
    color: #ddd;
    font-style: italic;
}

/* Section Services */
#services {
    padding: 50px 10%;
    background: #f8f8f8;
    text-align: center;
}

.service-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.service {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 300px;
    transition: transform 0.3s ease-in-out;
}

.service img {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    object-fit: cover;
}

.service h3 {
    margin-top: 15px;
    font-size: 1.5em;
    color: #e67e22;
}

.service p {
    font-size: 1em;
    color: #555;
}

.service .btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background: #e67e22;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.service .btn:hover {
    background: #d35400;
}

.service:hover {
    transform: translateY(-5px);
}

/* Pied de page */
footer {
    background: #000;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: 30px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: #e67e22;
    margin-bottom: 10px;
}

.footer-section p, .footer-section a {
    color: #ccc;
    font-size: 14px;
    text-decoration: none;
}

.footer-section a:hover {
    color: #f39c12;
    text-decoration: underline;
}

/* Icônes des réseaux sociaux */
.footer-section a img {
    width: 30px;
    margin: 5px;
    transition: transform 0.3s ease;
}

.footer-section a img:hover {
    transform: scale(1.2);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .service-container {
        flex-direction: column;
        align-items: center;
    }

    .service {
        width: 90%;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .slider {
        height: 250px;
    }

    .slides img {
        height: 250px;
    }
}
/* Styles Généraux */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #111;
    color: #fff;
}

/* Slider avec Effet Fade */
.slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.slides img {
    position: absolute;
    width: 100%;
    height: 400px;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* Afficher l'image active */
.slides img.active {
    opacity: 1;
}
#annonces {
    text-align: center;
    padding: 40px 10%;
    background: #f4f4f4;
}

.annonces-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.annonces-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.annonce {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    width: 30%;
    text-align: center;
}

.annonce h3 {
    font-size: 1.5em;
    color: #dc3545;
}

.annonce p {
    font-size: 1em;
    color: #555;
}

.annonce .categorie {
    display: block;
    font-weight: bold;
    margin-top: 10px;
    color: #007bff;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .annonces-row {
        flex-direction: column;
        align-items: center;
    }

    .annonce {
        width: 90%;
    }
}
#annonces {
    text-align: center;
    padding: 40px 10%;
    background: #f4f4f4;
}

.annonces-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.annonces-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.annonce {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    width: 300px; /* Taille identique aux services */
    height: 300px; /* Ajuste la hauteur */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.annonce h3 {
    font-size: 1.5em;
    color: #dc3545;
}

.annonce p {
    font-size: 1em;
    color: #555;
    flex-grow: 1; /* Fait en sorte que le texte remplisse l'espace */
}

.annonce .categorie {
    font-weight: bold;
    color: #007bff;
    margin-top: 10px;
}

/* Assure une cohérence avec la section services */
.service-container, .annonces-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.service, .annonce {
    width: 300px;
    height: 300px;
    text-align: center;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .annonces-row {
        flex-direction: column;
        align-items: center;
    }

    .annonce {
        width: 90%;
        height: auto; /* Permet aux annonces de s’adapter au texte */
    }
}
.annonce {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    width: 300px;
    height: 400px; /* Augmenté pour l'image */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.annonce img {
    width: 100%;
    height: 150px; /* Taille fixe pour l'image */
    object-fit: cover;
    border-radius: 8px;
}

.annonce h3 {
    font-size: 1.3em;
    color: #dc3545;
    margin: 10px 0;
}

.annonce p {
    font-size: 1em;
    color: #555;
    flex-grow: 1; /* Ajuste la hauteur du texte */
}

.annonce .categorie {
    font-weight: bold;
    color: #007bff;
    margin-top: 10px;
}

/* Style du bouton */
.annonce .btn {
    background: #007bff;
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    transition: background 0.3s ease-in-out;
}

.annonce .btn:hover {
    background: #0056b3;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .annonce {
        width: 90%;
        height: auto;
    }
}
#annonces h2 {
    color: #e67e22; /* Change la couleur du texte */
    font-size: 28px; /* Augmente la taille si nécessaire */
    font-weight: bold; /* Rend le texte plus visible */
    text-transform: uppercase; /* Met en majuscules */
    text-align: center; /* Centre le texte */
    margin-bottom: 20px; /* Ajoute un espace en dessous */
}
