/* Header */
.header {
    position: fixed;
    height: 45px;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(139, 0, 139, 0.9) 0%, rgba(245, 237, 226, 0) 100%);
    z-index: 1000;
}

.header-item.header-left {
    font-size: 20px;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: bold;
    letter-spacing: 3px;
    color: #F5EDE2;
}

.header-left-link {
    font-size: 30px;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: bold;
    letter-spacing: 3px;
    color: #F5EDE2;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.header-left-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: #FFFF00;
    transition: width 0.3s ease;
}

.header-left-link:hover {
    color: #FFFF00;
}

.header-left-link:hover::after {
    width: 100%;
}

.header-item.header-right {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    font-size: 30px;
    font-family: 'Bebas Neue', sans-serif;
}

.header-item.header-right a {
    color: #F5EDE2;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.header-item.header-right a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: #FFFF00;
    transition: width 0.3s ease;
}

.header-item.header-right a:hover {
    color: #FFFF00;
}

.header-item.header-right a:hover::after {
    width: 100%;
}

/* Section étude de cas */
.case-section {
    padding: 120px 80px;
    background-color: #F5EDE2;
}

/* Titre et sous-titre */
.case-title {
    font-size: 30px;
    font-weight: bold;
    color: #8B008B;
    text-align: right;
    margin-bottom: -20px;
    font-family: 'Bebas Neue', sans-serif;
}

.case-subtitle {
    font-size: 18px;
    color: #8B008B;
    text-align: right;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 40px;
}

/* Colonnes texte / images */
.case-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 150px;
}

/* Colonne gauche : texte */
.case-text-left p {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: #8B008B;
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Colonne droite : images interactives en quinconce */
.case-text-right {
    position: relative;
    width: 100%;
    min-height: 600px;
}

/* Images */
.case-image {
    width: 300px;
    border-radius: 10px;
    cursor: pointer;
    position: absolute; /* pour superposition */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Zoom + rotation au survol */
.case-image:hover {
    transform: scale(1.05) rotate(-1deg);
    z-index: 10;
    box-shadow: 0 15px 25px rgba(0,0,0,0.3);
}

/* Position quinconce des 5 images */
.case-image:nth-child(1) { top: 0;    left: 0;    transform: rotate(-2deg); }
.case-image:nth-child(2) { top: 90px; left: 70px; transform: rotate(2deg); }
.case-image:nth-child(3) { top: 190px; left: 140px; transform: rotate(-1deg); }
.case-image:nth-child(4) { top: 310px; left: 40px; transform: rotate(1deg); }
.case-image:nth-child(5) { top: 450px; left: 120px; transform: rotate(-3deg); }
.case-image:nth-child(6) { top: 600px; left: 180px; transform: rotate(2deg); }
.case-image:nth-child(7) { top: 960px; left: -20px; transform: rotate(-10deg); }

/* Responsive */
/* Responsive avec carousel */
@media (max-width: 900px) {
    .case-columns {
        grid-template-columns: 1fr;
    }

    .case-title, .case-subtitle {
        text-align: left;
    }

    .case-text-right {
        position: relative;
        width: 100%;
        min-height: 400px;
        overflow: hidden;
    }

    .case-image {
        position: absolute;
        width: 90%;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        opacity: 0;
        transition: opacity 0.5s ease, transform 0.5s ease;
        pointer-events: none;
    }

    .case-image.active {
        opacity: 1;
        pointer-events: auto;
        z-index: 2;
    }

    /* Boutons de navigation du carousel */
    .carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(139, 0, 139, 0.7);
        color: #F5EDE2;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 20px;
        cursor: pointer;
        z-index: 3;
        transition: background-color 0.3s ease;
    }

    .carousel-btn:hover {
        background-color: rgba(139, 0, 139, 0.9);
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    /* Indicateurs du carousel */
    .carousel-indicators {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 10px;
        z-index: 3;
    }

    .carousel-indicator {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: rgba(139, 0, 139, 0.3);
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .carousel-indicator.active {
        background-color: #8B008B;
    }
}