/**
 * SAINT-ANDRÉ DES ARTS - SPLIT SLIDER HOME
 * Styles pour le slider côte à côte de la page d'accueil
 */

/* Split Slider */
.split-slider {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    display: flex;
    overflow: hidden;
    gap: 5px;
}

.half {
    flex: 1;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.5s ease-in-out;
}

.half.fade {
    opacity: 0;
}

/* Email Icon */
.email-icon {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: transparent;
    transition: transform 0.3s ease;
    border-radius: 50%;
    z-index: 10;
}

.email-icon:hover {
    background-color: transparent;
    transform: scale(1.1);
}

.email-icon:hover img {
    transform: scale(1.1);
}

.email-icon img {
    width: 24px;
    height: auto;
    transition: transform 0.3s ease;
}

#left-half {
    background-image: url('/images/slider-left.jpg');
    object-position: center 70%;
}

#right-half {
    background-image: url('/images/slider-right.jpg');
}

.single-image-mobile {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 70%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.5s ease-in-out;
}

.single-image-mobile.fade {
    opacity: 0;
}

.padding-col {
    padding: 2rem 0;
}

.description-hotel h1 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--sa-green-dark);
    font-family: var(--sa-font-heading);
}

.description-hotel h2 {
    font-size: 1.5rem;
    color: var(--sa-orange);
    margin-bottom: 1.5rem;
    font-weight: 400;
    font-family: var(--sa-font-heading);
}

.description-hotel p {
    font-family: var(--sa-font-body);
    font-weight: 300;
    font-size: 16px;
    line-height: normal;
    color: rgb(0, 0, 1);
}

/* Croquis animé */
.croquis-anime {
    animation: float 3s ease-in-out infinite;
    max-width: 100%;
    height: auto;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateZ(0);
    }
    50% {
        transform: translateY(-10px) translateZ(0);
    }
}

/* Boutons */
.d-flex.gap-3 {
    gap: 1rem;
}

/* Images des sections - Styles gérés par .section-image dans home.twig */

/* Section CTA */
.section-cta {
    background: var(--sa-green-dark);
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.section-cta h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--sa-font-heading);
}

.section-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--sa-beige);
    font-family: var(--sa-font-body);
}

/* Responsive */
@media (max-width: 768px) {
    .split-slider {
        height: 60vh;
        min-height: 400px;
    }
    
    .half {
        display: none;
    }
    
    .single-image-mobile {
        display: block;
    }
    
    .email-icon img {
        display: none;
    }
    
    .section-hotel,
    .section-room,
    .section-wellness,
    .section-services {
        padding: 2rem 0;
    }
    
    .padding-col {
        padding: 1rem 0;
    }
    
    .description-hotel h1 {
        font-size: 2rem;
    }
    
    .description-hotel h2 {
        font-size: 1.25rem;
    }
    
    .description-hotel p {
        font-size: 1rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
    }
    
    .d-flex.gap-3 .sa-btn {
        width: 100%;
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .split-slider {
        height: 70vh;
    }
    
    .description-hotel h1 {
        font-size: 2.25rem;
    }
}
