/* Histoire Carousel - Double Carousel Synchronisé */

.histoire-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
}

/* Carousel de contenu (gauche - 50%) */
.histoire-content-carousel {
    position: relative;
    width: 50%;
    height: 100%;
    background: #0C0C0C;
    overflow: hidden;
}

.histoire-content-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.histoire-content-slide.active {
    /* On ne met pas opacity: 1 ici, c'est l'animation JS qui le fera */
    visibility: visible;
    z-index: 1;
}

.histoire-content-inner {
    padding: 80px 100px;
    max-width: 800px;
    width: 100%;
}

.histoire-title {
    font-size: 64px;
    font-weight: 300;
    margin: 0 0 40px 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-family: Cormorant Garamond;
    color: #fff;
}

.histoire-subtitle {
    font-size: 20px;
    font-weight: 400;
    margin: -20px 0 40px 0;
    font-family: Geist;
    font-size: 11px;
    font-weight: 400;
	letter-spacing: 1.4px;
	text-transform: uppercase;
    color: #fff;
}

.histoire-text {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.457);
    font-family: Geist;
}

/* Styles pour le contenu HTML WYSIWYG */
.histoire-text p {
    margin: 0 0 1.2em 0;
}

.histoire-text p:last-child {
    margin-bottom: 0;
}

.histoire-text strong,
.histoire-text b {
    font-weight: 700;
    color: #fff;
}

.histoire-text em,
.histoire-text i {
    font-style: italic;
}

.histoire-text ul,
.histoire-text ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

.histoire-text li {
    margin-bottom: 0.5em;
}

.histoire-text a {
    color: #fff;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.histoire-text a:hover {
    opacity: 0.7;
}

.histoire-text blockquote {
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    padding-left: 20px;
    margin: 1.5em 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

/* Classes SplitText pour animations ligne par ligne */
.split-parent {
    overflow: hidden;
    display: block;
}

.split-line {
    display: block;
    overflow: visible;
}

/* Animation optimization pour SplitText */
.histoire-title .split-line,
.histoire-subtitle .split-line,
.histoire-text .split-line {
    will-change: transform, opacity;
}

/* Carousel d'images (droite - 50%) */
.histoire-image-carousel {
    position: relative;
    width: 50%;
    height: 100%;
    background: #101010;
    overflow: hidden;
}

.histoire-image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
}

.histoire-image-slide.active {
    /* On ne met pas opacity: 1 ici, c'est l'animation JS qui le fera */
    visibility: visible;
    z-index: 1;
}

.histoire-image-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Navigation */
.histoire-navigation {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 50px;
}

.histoire-nav {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.histoire-nav svg {
    width: 20px;
    height: 20px;
    display: block;
    position: relative;
    top: -1px;
}

.histoire-nav:hover {
    border-color: rgba(255, 255, 255, 0.6);
}

.histoire-nav:active {
    transform: scale(0.95);
}

.histoire-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.histoire-nav:disabled:hover {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1);
}

.histoire-counter {
    font-family: Geist;
    font-size: 11px;
    font-weight: 400;
	letter-spacing: 1.4px;
	text-transform: uppercase;
    color: #fff;
    min-width: 60px;
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .histoire-content-inner {
        padding: 60px 60px;
    }
    
    .histoire-title {
        font-size: 48px;
    }
    
    .histoire-subtitle {
        font-size: 18px;
        margin: -20px 0 25px 0;
    }
    
    .histoire-text {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .histoire-carousel-wrapper {
        flex-direction: column;
    }
    
    .histoire-content-carousel,
    .histoire-image-carousel {
        width: 100%;
        height: 50%;
    }

    .histoire-content-slide {
        align-items: end;
    }
    
    .histoire-content-inner {
        padding: 40px 30px;
    }
    
    .histoire-title {
        font-size: 36px;
        margin-bottom: 20px;
    }
    
    .histoire-subtitle {
        font-size: 16px;
        margin: -15px 0 20px 0;
    }
    
    .histoire-text {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .histoire-navigation {
        bottom: 30px;
        padding: 12px;
        gap: 10px;
    }
    
    .histoire-nav {
        width: 44px;
        height: 44px;
    }

    .histoire-nav svg {
        width: 26px;
        height: 26px;
    }

    .histoire-counter {
        font-size: 11px;
        min-width: 50px;
    }
}

@media (max-width: 480px) {
    .histoire-content-inner {
        padding: 30px 20px;
    }
    
    .histoire-title {
        font-size: 28px;
    }
    
    .histoire-subtitle {
        font-size: 14px;
        margin: -12px 0 16px 0;
    }
    
    .histoire-text {
        font-size: 14px;
    }
}

/* Optimisations performances */
.histoire-content-slide,
.histoire-image-slide {
    will-change: opacity, visibility;
}

.histoire-content-inner {
    will-change: transform, opacity;
}

.histoire-image-slide img {
    will-change: transform, opacity;
}