/* 
 * IMAGES HEADER CAROUSEL - INTÉGRATION CSS
 * Landing Page Mariage Coline - Emotion Prestige
 */

/* Carrousel Hero avec images rotatives */
.hero-carousel {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #AA7B4C 0%, #722F37 100%);
}

/* Container des slides */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Slides individuels */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
    z-index: 1;
}

/* Slide actif */
.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Overlay pour améliorer la lisibilité du texte */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(10, 10, 10, 0.3) 0%,
        rgba(170, 123, 76, 0.2) 50%,
        rgba(114, 47, 55, 0.3) 100%
    );
    z-index: 3;
}

/* Système de grille d'images défilantes comme dans le projet principal */
.portfolio-slider {
    width: 300%;
    height: 100%;
    display: flex;
    animation: portfolioSlide 60s linear infinite;
}

.portfolio-slide {
    width: 33.333%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-row {
    height: 50%;
    display: flex;
}

.portfolio-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    filter: blur(0.5px) brightness(0.8);
    opacity: 0;
    transition: opacity 0.8s ease-out;
    animation: subtleFloat 15s ease-in-out infinite;
}

@keyframes portfolioSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

@keyframes subtleFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    25% {
        transform: translateY(-5px) scale(1.01);
    }
    50% {
        transform: translateY(3px) scale(1.02);
    }
    75% {
        transform: translateY(-2px) scale(1.01);
    }
}

/* Contenu du header par-dessus le carrousel */
.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 2rem;
}

/* Titre principal */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

/* Sous-titre */
.hero-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

/* Date du mariage */
.hero-date {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    background: rgba(170, 123, 76, 0.9);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-shadow: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Indicateurs de pagination (optionnels) */
.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.indicator.active {
    background: rgba(170, 123, 76, 0.9);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(170, 123, 76, 0.5);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Images du carrousel - amélioration de l'affichage */
.row-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    transition: transform 0.3s ease !important;
    /* Suppression des sous-titres/overlays */
    display: block !important;
}

.row-item img:hover {
    transform: scale(1.02) !important;
}

/* Supprimer tous les overlays et sous-titres */
.carousel-slide::after,
.row-item::after,
.portfolio-image::after {
    display: none !important;
}

/* Désactiver les overlays de texte */
.image-overlay,
.subtitle-overlay,
.text-overlay {
    display: none !important;
}

/* Configuration des rangées pour un meilleur affichage */
.row-track {
    height: 33.33vh;
    display: flex;
    gap: 10px;
    overflow: hidden;
}

.row-item {
    min-width: 250px;
    height: 100%;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

/* Animation plus fluide pour les rangées */
.three-rows-carousel {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    box-sizing: border-box;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .hero-carousel {
        height: 100vh;
    }
    
    .carousel-slide {
        background-position: center center;
        background-size: cover;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.5rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-date {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
        padding: 0.6rem 1.5rem;
    }
    
    .carousel-indicators {
        bottom: 1rem;
        gap: 0.6rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* Animation d'entrée pour le contenu */
.hero-content > * {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-subtitle {
    animation-delay: 0.8s;
}

.hero-date {
    animation-delay: 1.1s;
}

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

/* Effet de parallaxe subtil (optionnel) */
@media (min-width: 1024px) {
    .carousel-slide {
        background-attachment: fixed;
    }
}
