/* ================= GENERAL STYLES ================= */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #111;
    color: #fff;
}

h2 {
    font-size: 28px;
    color: #f39c12;
    text-align: center;
    margin-bottom: 20px;
}

p {
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

/* ================= HEADER ================= */
#header {
    background: #000;
    color: #fff;
    padding: 15px;
    text-align: center;
}

#header .logo {
    font-size: 24px;
    font-weight: bold;
}

/* ================= NAVIGATION MENU ================= */
nav {
    background: #222;
    padding: 10px;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

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

nav ul li a:hover {
    color: #f39c12;
}

/* ================= BANNER SLIDER ================= */
.banner-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.slides {
    display: flex;
    width: 300%;
    animation: slide 9s infinite;
}

.slide {
    width: 100%;
    flex-shrink: 0;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes slide {
    0% { transform: translateX(0); }
    33% { transform: translateX(-100%); }
    66% { transform: translateX(-200%); }
    100% { transform: translateX(0); }
}

/* ================= SERVICES SECTION ================= */
.services-doublage {
    text-align: center;
    padding: 50px 20px;
}

.service-box {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.service-item {
    width: 30%;
    padding: 15px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.service-item:hover {
    transform: translateY(-10px);
    background: #fff5f5;
}

.service-item img {
    width: 80px;
    height: 80px;
}

.service-item p {
    color: #333;
    font-size: 16px;
    font-weight: 400;
}

/* ================= TESTIMONIALS ================= */
.testimonials {
    background: #f8f8f8;
    padding: 40px;
    text-align: center;
}

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

.testimonial {
    width: 40%;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* ================= DEVIS FORM ================= */
.devis {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.devis form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.devis input,
.devis textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    color: #333;
}

.devis button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
}

.devis button:hover {
    background-color: #0056b3;
}

/* ================= FOOTER ================= */
footer {
    background: #000;
    color: #aaa;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
}

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

.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;
}

.footer-section a img {
    width: 30px;
    margin: 5px;
    transition: transform 0.3s ease;
}

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

/* ================= RESPONSIVE ================= */
@media screen and (max-width: 768px) {
    .service-box {
        flex-direction: column;
        align-items: center;
    }
    .service-item {
        width: 90%;
    }
    .testimonial-container {
        flex-direction: column;
        align-items: center;
    }
    .banner-slider {
        height: 250px;
    }
    .slides img {
        height: 250px;
    }
}
/* Bannière avec effet fade */
.banner-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

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

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