/* Media Page Styles */

/* --- CONTAINER --- */
.carousel-container {
    perspective: 1800px;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 600px;
    /* Augmenté pour desktop */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8rem 0;
    /* Plus de padding sur desktop */
    margin: 3rem 0;
    z-index: 10;
    /* Z-index inférieur à la vision section sur desktop */
}

/* --- CAROUSEL STYLE STORY INSTAGRAM MAIS EN 3D --- */
.carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    /* centrage */
    transform-style: preserve-3d;
    transition: transform 1s ease;
    height: 100%;
    width: 100%;
}

/* --- CARDS --- */
.carousel-item {
    position: absolute;
    width: 240px;
    /* Réduit de 280px à 240px */
    height: 320px;
    /* Réduit de 460px à 320px */
    border-radius: 20px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    opacity: 0.3;
    transform: scale(0.6);
    transition: all 0.8s ease;
    /* Réduit de 1s à 0.8s pour plus de fluidité */
    cursor: pointer;
}

/* carte active */
.carousel-item.active {
    opacity: 1;
    transform: scale(1) translateZ(300px);
    z-index: 3;
    box-shadow: 0 25px 60px -10px rgba(253, 209, 0, 0.6);
}

/* gauche / droite */
.carousel-item.left {
    opacity: 0.7;
    transform: scale(0.8) translateX(-200px) rotateY(25deg);
    /* Réduit de -250px à -200px */
    z-index: 2;
}

.carousel-item.right {
    opacity: 0.7;
    transform: scale(0.8) translateX(200px) rotateY(-25deg);
    /* Réduit de 250px à 200px */
    z-index: 2;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.carousel-item.active img {
    transform: scale(1.05);
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 16px;
}

.carousel-content h3 {
    font-size: 1.2rem;
    font-weight: bold;
}

/* --- NAV BUTTONS --- */
.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 5;
}

.carousel-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.carousel-button:hover {
    background: #fdd100;
    color: black;
    box-shadow: 0 10px 25px rgba(253, 209, 0, 0.4);
}

/* --- DESCRIPTION ZONE --- */
#card-detail {
    text-align: center;
    margin-top: 5rem;
    position: relative;
}

#detail-title {
    font-size: 2rem;
    font-weight: bold;
    color: #fdd100;
    margin-bottom: 1rem;
}

#detail-desc {
    font-size: 1.1rem;
    color: white;
    white-space: pre-wrap;
    display: inline-block;
}

/* --- LINE CONNECTOR --- */
#line-connector {
    position: absolute;
    top: -200px;
    left: 50%;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, #fdd100, transparent);
    transform: translateX(-50%);
    border-radius: 9999px;
    transition: height 1s ease;
}

/* --- Typing animation --- */
.typing span {
    opacity: 0;
    animation: fadeIn 0.05s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .carousel-container {
        height: 450px;
        padding: 3rem 1.5rem;
    }

    .detail-container {
        padding: 0 1rem;
    }

    .detail-title {
        font-size: 2rem;
    }

    .detail-description {
        font-size: 1.1rem;
        padding: 1.5rem;
    }
}

.vision-section {
    position: relative;
    z-index: 20;
    /* Augmente le z-index sur desktop */
    padding: 10rem 0;
    /* Plus de padding sur desktop */
}

.card-detail-section {
    position: relative;
    padding: 4rem 2rem;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.card-detail-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.detail-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.connector-line {
    position: absolute;
    top: -150px;
    left: 50%;
    width: 2px;
    height: 0;
    background: linear-gradient(180deg, #fdd100 0%, rgba(253, 209, 0, 0.2) 100%);
    transform: translateX(-50%);
    transition: height 0.8s ease;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fdd100;
    margin-bottom: 1.5rem;
    position: relative;
}

.detail-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(253, 209, 0, 0.2);
    backdrop-filter: blur(10px);
}

.vision-section {
    position: relative;
}

.vision-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, black);
    pointer-events: none;
}

.stat-card {
    transform: translateY(0);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(253, 209, 0, 0.4);
    box-shadow: 0 10px 30px -10px rgba(253, 209, 0, 0.3);
}

@media (max-width: 768px) {
    .vision-section {
        padding: 4rem 0;
        /* Maintient le padding actuel sur mobile */
        z-index: 10;
        /* Z-index inférieur sur mobile */
    }

    .carousel-container {
        padding: 3rem 1.5rem;
        /* Maintient le padding actuel sur mobile */
        z-index: 20;
        /* Z-index supérieur sur mobile */
    }

    .stats-grid {
        margin-top: 2rem;
    }
}

/* Styles pour le carrousel discothèque */
.disco-lights {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(253, 209, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(0, 255, 255, 0.3) 0%, transparent 50%);
    animation: discoLights 4s ease-in-out infinite alternate;
}

@keyframes discoLights {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.disco-item {
    position: absolute;
    width: 300px;
    height: 400px;
    opacity: 0;
    transform: scale(0.8) translateX(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.disco-item.active {
    opacity: 1;
    transform: scale(1) translateX(0);
    z-index: 3;
}

.disco-item.prev {
    opacity: 0.6;
    transform: scale(0.9) translateX(-200px);
    z-index: 2;
}

.disco-item.next {
    opacity: 0.6;
    transform: scale(0.9) translateX(200px);
    z-index: 2;
}

.disco-card {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.disco-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(253, 209, 0, 0.2);
}

.disco-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.disco-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.disco-card:hover .disco-image img {
    transform: scale(1.1);
}

.disco-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.disco-card:hover .disco-overlay {
    opacity: 1;
}

.disco-content {
    color: white;
    text-align: center;
    width: 100%;
}

.disco-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #fdd100;
}

.disco-desc {
    font-size: 0.9rem;
    margin-bottom: 16px;
    opacity: 0.9;
}

.disco-btn {
    background: linear-gradient(45deg, #fdd100, #ffed4e);
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
    cursor: pointer;
}

.disco-btn:hover {
    background: linear-gradient(45deg, #ffed4e, #fdd100);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(253, 209, 0, 0.3);
}

.disco-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #fdd100;
    color: #fdd100;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.disco-nav:hover {
    background: #fdd100;
    color: black;
    transform: translateY(-50%) scale(1.1);
}

.disco-nav-prev {
    left: 20px;
}

.disco-nav-next {
    right: 20px;
}

.disco-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.disco-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.disco-dot.active {
    background: #fdd100;
    transform: scale(1.2);
}

.disco-dot:hover {
    background: rgba(253, 209, 0, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .disco-item {
        width: 250px;
        height: 350px;
    }

    .disco-nav {
        width: 40px;
        height: 40px;
    }

    .disco-nav-prev {
        left: 10px;
    }

    .disco-nav-next {
        right: 10px;
    }
}
