/* =========================================
   HERO SLIDER - DIAPORAMA MARITIME PROFESSIONNEL
   Nouvelle Leader Mar - Shipchandling & Shipagency
   ========================================= */

.hero-slider {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 450px;
    max-height: 750px;
    overflow: hidden;
    margin-top: 80px;
}

/* Slider Wrapper */
.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Slides */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay dégradé optimisé pour lisibilité */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 51, 204, 0.75) 0%,
        rgba(0, 191, 204, 0.65) 50%,
        rgba(93, 231, 240, 0.5) 100%
    );
    z-index: 1;
}

/* Contenu central - Texte + CTA */
.hero-slider .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 90%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Titre principal */
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

/* Sous-titre */
.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--color-white);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* CTA Buttons Container */
.hero-cta {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* CTA Principal (Orange) */
.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-white);
    background: linear-gradient(90deg, #F97316 0%, #EA580C 100%);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition-base);
    box-shadow: 0 8px 16px rgba(249, 115, 22, 0.35);
    cursor: pointer;
}

.btn-cta-primary:hover {
    background: linear-gradient(90deg, #EA580C 0%, #DC2626 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.45);
}

.btn-cta-primary svg {
    transition: var(--transition-fast);
}

.btn-cta-primary:hover svg {
    transform: translateX(4px);
}

/* CTA Secondaire (Outline Bleu) */
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-white);
    background: transparent;
    border: 2px solid var(--color-white);
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.btn-cta-secondary:hover {
    background: var(--color-white);
    color: var(--color-primary-700);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.3);
}

.btn-cta-secondary svg {
    transition: var(--transition-fast);
}

.btn-cta-secondary:hover svg {
    transform: scale(1.1);
}

/* Navigation Slider (Prev/Next) */
.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 15;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}

.slider-btn {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.slider-btn:active {
    transform: scale(0.95);
}

/* Indicateurs (dots) */
.slider-indicators {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    gap: 1rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.indicator.active {
    background: var(--color-white);
    width: 32px;
    border-radius: 6px;
}

/* Scroll Indicator */
.hero-slider .scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    animation: bounce 2s infinite;
}

.hero-slider .scroll-indicator svg {
    color: var(--color-white);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* ===== RESPONSIVE ===== */

/* Tablette (768px - 991px) */
@media (max-width: 991px) {
    .hero-slider {
        height: 60vh;
        min-height: 400px;
        max-height: 650px;
        margin-top: 80px;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
        margin-bottom: 1.25rem;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 2vw, 1.25rem);
        margin-bottom: 2rem;
    }

    .hero-cta {
        gap: 1rem;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }

    .slider-nav {
        padding: 0 1rem;
    }

    .slider-btn {
        width: 48px;
        height: 48px;
    }

    .slider-indicators {
        bottom: 2.5rem;
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    .hero-slider {
        height: 55vh;
        min-height: 500px;
        max-height: 600px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: clamp(0.9375rem, 3vw, 1.125rem);
        margin-bottom: 1.75rem;
        max-width: 90%;
    }

    /* CTA empilés en colonne sur mobile */
    .hero-cta {
        flex-direction: column;
        gap: 0.875rem;
        width: 100%;
        max-width: 320px;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .slider-btn svg {
        width: 20px;
        height: 20px;
    }

    .slider-indicators {
        bottom: 2rem;
        gap: 0.75rem;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .indicator.active {
        width: 24px;
    }

    .hero-slider .scroll-indicator {
        display: none; /* Masqué sur mobile pour libérer espace */
    }
}

/* Très petits écrans (< 480px) */
@media (max-width: 480px) {
    .hero-slider {
        min-height: 450px;
    }

    .hero-title {
        font-size: 1.625rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .slider-nav {
        padding: 0 0.5rem;
    }
}
