@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* Styles généraux */
body {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    color: #fff; /* Texte blanc */
    background: #f9f9f9;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* En-tête */
header {
    background: #282c34; /* Nouvelle couleur */
    padding: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.header-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 a {
    display: inline-block;
    width: 300px; /* Logo agrandi */
}

header h1 a img {
    width: 100%;
    height: auto;
}

/* Navigation */
.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.menu ul li {
    position: relative;
}

.menu ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: 400;
    transition: background 0.3s;
}

.menu ul li a:hover {
    background: #A92C11;
    border-radius: 5px;
}

.menu ul li ul.submenu {
    display: none;
    position: absolute;
    background: #282c34; /* Nouvelle couleur */
    top: 100%;
    left: 0;
    width: 200px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 1000;
}

.menu ul li:hover ul.submenu {
    display: block;
}

.menu ul li ul.submenu li a {
    padding: 10px 20px;
    font-size: 14px;
}

/* Slider */
.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 400px; /* Hauteur fixe du slider */
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajuste l'image sans déformation */
    object-position: center; /* Centre l'image dans le slider */
}

.slide-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 5px;
}

.slide-content h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Conteneur principal */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Sections */
.services, .additional-services, .news {
    padding: 50px 0;
}

.services h2, .additional-services h2, .news h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #282c34; /* Nouvelle couleur */
}

.service-grid, .news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-box, .news-box {
    background: #282c34; /* Nouvelle couleur */
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-box:hover, .news-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service-box img, .news-box img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.service-box h3, .news-box h3 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.service-box p, .news-box p {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 15px;
}

/* Boîtes Actualités */
.news-box {
    background: #3e3e3e; /* Nouvelle couleur */
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #A92C11;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #8a2410;
}

/* Pied de page */
footer {
    background: #282c34; /* Nouvelle couleur */
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

footer a {
    color: #A92C11;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-grid, .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .service-grid, .news-grid {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        align-items: center;
    }

    .menu ul {
        flex-direction: column;
        gap: 10px;
    }
}