:root {
    --primary-green: #2d5016;
    --light-green: #5a8f3a;
    --accent-gold: #d4a574;
    --text-dark: #1a1a1a;
    --text-light: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 
   Conteneur parent qui définit la zone de la section.
*/
.horizontal-section-container {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Container principal */
.horizontal-scroll-wrapper {
    width: 100%;
    height: 100%;
}

/* Container des sections - 4 sections */
.horizontal-scroll-container {
    display: flex;
    flex-wrap: nowrap;
    will-change: transform;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    width: 400%; /* 4 sections de 100% chacune */
}

/* Chaque section prend 1/4 de la largeur */
.scroll-item {
    width: 25%; /* 100% / 4 */
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Image de fond */
.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    transition: transform 0.7s ease;
}

.scroll-item.active .bg-image {
    transform: scale(1.02);
}

/* Overlay avec dégradé */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Contenu texte à gauche */
.content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem;
    padding-left: 5rem;
}

.text-content {
    text-align: left;
    color: var(--text-light);
    max-width: 700px;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.2s;
}

.scroll-item.active .text-content {
    opacity: 1;
    transform: translateY(0);
}

.text-content h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: -1px;
    line-height: 1.2;
}

.text-content p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Badge décoratif */
.badge-decorator {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--text-dark);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Bouton CTA */
.cta-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 1.2rem 3rem;
    background: #fff;
    color: var(--primary-green);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

.cta-button:hover {
    background: var(--accent-gold);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Indicateurs de navigation */
.scroll-navigation {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 1rem;
}

.nav-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.nav-dot.active {
    background: #fff;
    transform: scale(1.4);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
}

.nav-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* Flèches de navigation */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    font-size: 2rem;
    user-select: none;
    font-weight: 300;
}

.scroll-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.scroll-arrow.left {
    left: 2.5rem;
}

.scroll-arrow.right {
    right: 2.5rem;
}

.scroll-arrow.disabled {
    opacity: 0.2;
    pointer-events: none;
}

/* Variations de couleur pour chaque section */
.scroll-item:nth-child(1) .overlay {
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.88) 0%, rgba(90, 143, 58, 0.78) 100%);
}

.scroll-item:nth-child(2) .overlay {
    background: linear-gradient(135deg, rgba(76, 129, 46, 0.88) 0%, rgba(129, 178, 85, 0.78) 100%);
}

.scroll-item:nth-child(3) .overlay {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.88) 0%, rgba(173, 113, 50, 0.78) 100%);
}

.scroll-item:nth-child(4) .overlay {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.88) 0%, rgba(160, 82, 45, 0.78) 100%);
}

/* Compteur de section */
.section-counter {
    position: absolute;
    top: 2.5rem;
    right: 3rem;
    z-index: 10;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    padding: 1rem 1.8rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .content-wrapper {
        padding-left: 2rem;
    }

    .text-content {
        padding: 1.5rem;
    }

    .text-content h2 {
        margin-bottom: 1rem;
    }

    .text-content p {
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 1rem 2.5rem;
    }

    .scroll-arrow {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }

    .scroll-arrow.left {
        left: 1.5rem;
    }

    .scroll-arrow.right {
        right: 1.5rem;
    }

    .section-counter {
        top: 1.5rem;
        right: 1.5rem;
        font-size: 1.1rem;
        padding: 0.8rem 1.4rem;
    }

    .scroll-navigation {
        bottom: 2rem;
        gap: 0.8rem;
    }

    .nav-dot {
        width: 12px;
        height: 12px;
    }

    .badge-decorator {
        padding: 0.5rem 1.4rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .scroll-arrow.left {
        left: 1rem;
    }

    .scroll-arrow.right {
        right: 1rem;
    }

    .section-counter {
        top: 1rem;
        right: 1rem;
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }

    .scroll-navigation {
        bottom: 1.5rem;
    }
}

/* Animation de chargement */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}