/**
 * Home Slider Swiper.js Styles
 * Modern, responsive design with Apple-like bullets
 * TakeOff Médias — 2026-09-24
 * 
 * FEATURES:
 * - Kenburns effect (zoom only, no rotation)
 * - Click/tap on slide → scroll to #realisations
 * - Apple-like bullets (4px × 40px desktop, responsive)
 */

/* ============================
   SWIPER CONTAINER
   ============================ */
.swiper-home {
    position: relative;
    width: 100%;
    height: 66vh; /* 2/3 de l'écran pour laisser voir la section suivante */
    max-height: 66vh;
    overflow: hidden;
    z-index: 3; /* Au-dessus du footer (z-index: 2) */
    margin-top: 0; /* Supprimé l'espace blanc */
}

.swiper-home .swiper-wrapper {
    width: 100%;
    height: 100%;
}

.home-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Slide Background Image */
.slide__bg,
.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-size: cover;
    background-position: center;
    will-change: transform;
    animation: 20s ease-in-out 0s infinite kenburn-zoom;
}

/* Kenburns Effect (zoom only, no rotation) */
@keyframes kenburn-zoom {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Dark Overlay */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 22, 40, 0.65) 0%, rgba(26, 42, 94, 0.65) 50%, rgba(15, 22, 40, 0.65) 100%);
    z-index: 2;
}

/* Slide Content */
.slide__content,
.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 40px;
}

.swiper-slide {
    cursor: pointer; /* Click/tap slide → scroll to #realisations */
}

.slide__text {
    position: relative !important;
    z-index: 100 !important;
    max-width: 650px;
    color: #fff !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: slideInUp 1s ease-out forwards;
}

.slide__text-heading {
    font-family: 'Roboto', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff !important;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.slide__text-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
    color: #fff !important;
    margin-bottom: 32px;
    font-weight: 400;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
    width: 100% !important; /* Prend toute la largeur */
    max-width: 600px; /* Limite la largeur pour la lisibilité */
    float: none !important;
}

/* CTA Button */
.btn-slider-cta {
    display: block; /* Force le bouton sur sa propre ligne */
    width: fit-content; /* Largeur automatique selon le contenu */
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.6);
    color: #1a3ad4 !important;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    margin-top: 20px; /* Petit espace avec le paragraphe */
}

.btn-slider-cta:hover {
    background: #fff;
    color: #1a3ad4 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

/* ========================================
   PAGINATION — APPLE-LIKE BULLETS
   ======================================== */

.swiper-pagination-bullets-home {
    position: absolute;
    bottom: 80px; /* Doublé : 40px → 80px */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center; /* Centre les bullets */
    gap: 12px;
    padding: 0;
    margin: 0;
}

.swiper-pagination-bullet-home {
    width: 60px; /* Rallongé : 40px → 60px */
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0;
    margin: 0;
    border: none;
}

.swiper-pagination-bullet-home:hover {
    background: rgba(255, 255, 255, 0.6);
}

.swiper-pagination-bullet-home-active {
    width: 80px; /* Rallongé : 50px → 80px */
    height: 4px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE — TABLET (max 1250px)
   ======================================== */

@media (max-width: 1250px) {
    .swiper-home {
        height: 90vh;
        min-height: 500px;
    }

    .slide-content {
        padding: 50px 30px;
    }

    .slide__text {
        max-width: 550px;
    }

    .slide__text-heading {
        font-size: 2.4rem;
        margin-bottom: 20px;
    }

    .slide__text-desc {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .btn-slider-cta {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    .swiper-pagination-bullets-home {
        bottom: 30px;
        gap: 10px;
    }

    .swiper-pagination-bullet-home,
    .swiper-pagination-bullet-home-active {
        width: 24px;
        height: 3px;
    }
}

/* ========================================
   RESPONSIVE — MOBILE (max 768px)
   ======================================== */

@media (max-width: 768px) {
    .swiper-home {
        height: 70vh;
        min-height: 400px;
    }

    .slide-content {
        padding: 40px 20px;
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 80px;
    }

    .slide__text {
        max-width: 100%;
    }

    .slide__text-heading {
        font-size: 1.8rem;
        margin-bottom: 16px;
        line-height: 1.1;
    }

    .slide__text-desc {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 20px;
        max-width: 280px;
    }

    .btn-slider-cta {
        padding: 11px 24px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }

    .swiper-pagination-bullets-home {
        bottom: 20px;
        gap: 8px;
    }

    .swiper-pagination-bullet-home,
    .swiper-pagination-bullet-home-active {
        width: 20px;
        height: 3px;
    }
}

/* ========================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ======================================== */

@media (max-width: 480px) {
    .swiper-home {
        height: 60vh;
        min-height: 380px;
    }

    .slide-content {
        padding: 30px 16px;
        padding-top: 70px;
    }

    .slide__text {
        max-width: 100%;
    }

    .slide__text-heading {
        font-size: 1.4rem;
        margin-bottom: 12px;
        line-height: 1;
    }

    .slide__text-desc {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 16px;
        max-width: 100%;
    }

    .btn-slider-cta {
        padding: 10px 20px;
        font-size: 0.85rem;
        width: 100%;
    }

    .swiper-pagination-bullets-home {
        bottom: 15px;
        gap: 6px;
    }

    .swiper-pagination-bullet-home,
    .swiper-pagination-bullet-home-active {
        width: 16px;
        height: 2px;
    }
}

/* ========================================
   FADE TRANSITION (Swiper Built-in)
   ======================================== */

.swiper-fade .swiper-slide {
    pointer-events: none;
    transition-property: opacity;
}

.swiper-fade .swiper-slide-active {
    pointer-events: auto;
}

/* ========================================
   ACCESSIBILITY — Reduced Motion
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .swiper-home,
    .slide__text,
    .swiper-pagination-bullet-home {
        animation: none !important;
        transition: none !important;
    }
}
