/* === HERO BANNER === */
.itineraire-hero {
    width: 100%;
    max-width: 1440px;
    height: 622px;
    margin: 0 auto;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    color: #fff;
    font-family: 'Roboto', sans-serif;
}

.itineraire-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.itineraire-hero .hero-content {
    position: relative;
    z-index: 2;
    padding: 60px;
    max-width: 600px;
}

.itineraire-hero .hero-content h1 {
    font-size: 50px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
    white-space: nowrap;
}

.itineraire-hero .hero-content p {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 25px;
    line-height: 1.5;
}

.itineraire-hero .hero-btn {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid #05D9C4;
    color: #fff;
    background: transparent;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
}

.itineraire-hero .hero-btn:hover {
    background-color: #05D9C4;
    color: #000;
}

/* === SECTION NOIRE AVEC SLIDER CENTRÉ === */
.itineraire-black-section {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 900px;
    padding: 0 20px;
}

.itineraire-slider-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
    position: relative;
}

.itineraire-slider {
    position: relative;
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.slider-item {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slider-item.active {
    opacity: 1;
    transform: scale(1);
}

.slider-item img {
    width: auto;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Flèches navigation */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 200; /* au-dessus des slides */
}

.slider-prev svg,
.slider-next svg {
    width: 20px;
    height: 20px;
}

.slider-prev { left: 15px; }
.slider-next { right: 15px; }

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* === BOUTON SOUS SLIDER === */
.itineraire-black-section .slider-button-wrapper {
    position: absolute;
    bottom: -70px; /* légèrement sous la section */
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    text-align: center;
}

.itineraire-black-section .slider-button-wrapper .slider-btn {
    display: inline-block;
    padding: 8px 20px;
    text-decoration: none;
    color: #fff;
    border: 2px solid #05D9C4;
    border-radius: 0;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    background: transparent;
    font-size: 14px;
    transition: all 0.3s ease;
}

.itineraire-black-section .slider-button-wrapper .slider-btn:hover {
    background-color: #05D9C4;
    color: #000;
}

.hero-green-bar {
    width: 100%;
    max-width: 1440px;
    height: 21px;
    background-color: #05D9C4;
    margin: 0 auto;
}

/* === MEDIA QUERIES RESPONSIVE === */

/* Tablette */
@media (max-width: 1024px) {
    .itineraire-hero {
        height: 500px;
    }
    .itineraire-hero .hero-content {
        padding: 40px;
        max-width: 80%;
    }
    .itineraire-hero .hero-content h1 {
        font-size: 40px;
        white-space: normal;
    }
    .itineraire-hero .hero-content p {
        font-size: 18px;
    }
    .itineraire-black-section {
        min-height: 700px;
    }
    .itineraire-black-section .slider-button-wrapper {
        bottom: -50px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .itineraire-hero {
        height: 400px;
        align-items: center;
        justify-content: center;
    }
    .itineraire-hero .hero-content {
        padding: 20px;
        max-width: 90%;
        text-align: center;
    }
    .itineraire-hero .hero-content h1 {
        font-size: 28px;
    }
    .itineraire-hero .hero-content p {
        font-size: 16px;
    }

    .itineraire-black-section {
        min-height: 500px;
        flex-direction: column;
        padding: 20px 10px;
    }

    /* Bouton sous slider */
    .itineraire-black-section .slider-button-wrapper {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 20px;
        text-align: center;
    }
    .itineraire-black-section .slider-button-wrapper .slider-btn {
        width: 80%;
        font-size: 14px;
        padding: 10px 0;
    }

    /* Flèches slider visibles sur mobile */
    .slider-prev,
    .slider-next {
        width: 44px;
        height: 44px;
        background: rgba(0, 0, 0, 0.4); /* contraste */
        z-index: 200;
    }
    .slider-prev svg,
    .slider-next svg {
        width: 18px;
        height: 18px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .itineraire-hero {
        height: 400px;
        align-items: center;
        justify-content: center;
    }
    .itineraire-hero .hero-content {
        padding: 20px;
        max-width: 90%;
        text-align: center;
    }
    .itineraire-hero .hero-content h1 {
        font-size: 28px;
    }
    .itineraire-hero .hero-content p {
        font-size: 16px;
    }

    .itineraire-black-section {
        min-height: 500px;
        flex-direction: column;
        padding: 20px 10px;
    }

    /* Bouton sous slider */
    .itineraire-black-section .slider-button-wrapper {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 20px;
        text-align: center;
    }
    .itineraire-black-section .slider-button-wrapper .slider-btn {
        width: 80%;
        font-size: 14px;
        padding: 10px 0;
    }

    /* Flèches slider réduites */
    .slider-prev,
    .slider-next {
        width: 30px;   /* réduit par rapport à 44px */
        height: 30px;  /* réduit par rapport à 44px */
        background: rgba(0, 0, 0, 0.4);
        z-index: 200;
    }
    .slider-prev svg,
    .slider-next svg {
        width: 12px;   /* réduit par rapport à 18px */
        height: 12px;  /* réduit par rapport à 18px */
    }
}
/* Mobile */
@media (max-width: 768px) {
    .slider-prev,
    .slider-next {
        width: 30px;
        height: 30px;
        background: rgba(0, 0, 0, 0.4);
        z-index: 200;
    }
    .slider-prev svg,
    .slider-next svg {
        width: 12px;
        height: 12px;
    }

    /* Décalage vers l’extérieur */
    .slider-prev {
        left: 5px;   /* un peu plus à gauche */
    }
    .slider-next {
        right: 5px;  /* un peu plus à droite */
    }
}
