/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Services section */
.services-overview {
    width: 100%;
    padding: 40px 0;
    background-color: #f8f9fa;
    position: relative;
}

.services-overview h2 {
    text-align: center;
    color: #A0153E;
    font-size: 32px;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

/* Ajout d'une ligne rouge sous le titre principal également */
.services-overview h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px; /* Ligne plus large que celle des cartes */
    height: 2px;
    background-color: #A0153E;
}

/* Services boxes container */
.services-boxes {
    width: 100%;
    position: relative;
    padding: 0;
    overflow: visible;
    max-width: 1200px;
    margin: 0 auto;
}

/* Viewport qui masque le contenu hors champ */
.services-boxes-viewport {
    overflow: hidden;
    width: 100%;
}

/* Wrapper pour le sliding */
.services-boxes-wrapper {
    display: flex;
    gap: 30px;
    transition: transform 0.3s ease-out;
    will-change: transform;
    padding: 10px 0;
}

/* Individual box */
.box {
    flex: 0 0 auto;
    min-height: 280px;
    background-color: white;
    border-radius: 8px;
    padding: 20px 30px 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

/* Style pour la box active */
.services-boxes .box.active {
    background-color: #A0153E;
    color: white;
    pointer-events: none;
}

.services-boxes .box.active h3,
.services-boxes .box.active p,
.services-boxes .box.active a {
    color: white;
}

.services-boxes .box.active .icon img {
    filter: brightness(0) invert(1);
}

.services-boxes .box.active h3:after {
    background-color: white;
}

.services-boxes .box.active a {
    pointer-events: auto;
}

/* Box content */
.icon {
    margin-bottom: 20px;
    color: #A0153E;
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

.icon img {
    width: 50px;
    height: 60px;
    display: block;
    filter: invert(11%) sepia(82%) saturate(2285%) hue-rotate(325deg) brightness(89%) contrast(98%);
}

/* Titre de la box et trait de séparation */
.box h3 {
    color: #A0153E;
    font-size: 24px;
    margin-top: 10px;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
    min-height: 80px; /* Assure une hauteur uniforme pour tous les titres */
    display: flex;
    align-items: center;
    justify-content: center;
}

.box h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px; /* Augmentation de la largeur du trait */
    height: 2px;
    background-color: #A0153E;
}

/* Ajustement de l'espacement après le trait */
.box p {
    margin-top: 20px; /* Augmenté pour plus d'espace après le trait */
    color: #666;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.box a {
    color: #A0153E;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.box a:after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
}

/* Navigation arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

/* Style spécifique pour le bouton gauche (inversé) */
.nav-arrow.prev {
    left: -44px;
    border-radius: 4px 0 0 4px;
    background: rgba(255, 255, 255, 0.7); /* Blanc avec 70% d'opacité */
    color: #A0153E;
}

.nav-arrow.prev:hover {
    background: rgba(255, 255, 255, 0.9); /* Plus opaque au survol */
}

/* Style pour le bouton droit (normal) */
.nav-arrow.next {
    right: -44px;
    border-radius: 0 4px 4px 0;
    background: rgba(160, 21, 62, 0.7); /* #A0153E avec 70% d'opacité */
    color: white;
}

.nav-arrow.next:hover {
    background: rgba(160, 21, 62, 0.9); /* Plus opaque au survol */
}

/* Suppression du style hover général */
.nav-arrow:hover {
    background: none; /* Supprimé car géré individuellement */
}

/* Responsive */
@media (max-width: 768px) {
    .services-boxes-viewport {
        overflow: visible;
    }

    .services-boxes-wrapper {
        flex-direction: column;
        padding: 0;
    }

    .services-boxes {
        padding: 0 20px;
    }

    .box {
        width: 100% !important;
        flex: 0 0 auto !important;
        min-height: auto;
    }

    .nav-arrow {
        display: none;
    }
}

.services-slider {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    min-height: 400px;
    background: #f5f5f5;
}

.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 0 20px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 300%;
    height: 100%;
}

.slide {
    min-width: 33.333%;
    padding: 0 15px;
    box-sizing: border-box;
    height: 100%;
}

.slider-arrow {
    background: #144673;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 2;
    font-size: 24px;
    transition: background-color 0.3s;
}

.slider-arrow:hover {
    background: #1a5c9a;
}

.prev-arrow {
    left: 0;
}

.next-arrow {
    right: 0;
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
    position: relative;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background: #144673;
}

/* Swiper specific fixes */
.swiper-slide {
    height: auto;
    display: flex;
}

#services-slider {
    width: 100%;
    min-height: 200px;
}

.swiper {
    width: 100%;
    height: 100%;
    padding: 20px 40px;
}

.swiper-wrapper {
    padding: 20px 0;
}

.swiper-slide {
    height: auto;
    display: flex;
}

/* Styles pour les sections de contenu */
.bilan-section,
.protection-section,
.accessoires-section,
.reparation-section,
.sav-section,
.certification-section,
.engagement-section,
.bilan-section h2,
.accessoires-section h2,
.sav-section h2,
.engagement-section h2,
.protection-section h2,
.reparation-section h2,
.certification-section h2,
.bilan-section h2:after,
.protection-section h2:after,
.accessoires-section h2:after,
.reparation-section h2:after,
.sav-section h2:after,
.certification-section h2:after,
.engagement-section h2:after {
    /* Supprimer tous les styles ajoutés */
}

/* Titres des sections sur fond blanc */
.accessoires-section h2 {
    color: #A0153E;
}

.bilan-section h2,
.accessoires-section h2,
.sav-section h2,
.engagement-section h2 {
    color: #A0153E;
}

.partners-slider .slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Styles pour le slider des partenaires */
.partners-banner {
    width: 100%;
    background: #A0153E;
    padding: 30px 0;
    overflow: hidden;
}

.partners-slider {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.slide-track {
    display: flex;
    animation: scroll 10s linear infinite;
    width: calc(70px * 12);
}

.partners-slider .slide {
    flex: 0 0 70px;
    width: 70px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-70px * 6));
    }
}

.partners-slider:hover .slide-track {
    animation-play-state: paused;
} 