/* Container spécifique index - CORRIGÉ pour tenir dans 100vh */
.container {
    height: calc(100vh - var(--nav-height)); /* Soustrait la hauteur de la navigation */
    overflow: hidden;
    position: relative;
}

/* Section VTuber - PROPORTIONS ORIGINALES CONSERVÉES */
.vtuber-section {
    position: absolute;
    top: 0;
    left: 20%;
    width: 30%; 
    height: 100vh; /* GARDE LA HAUTEUR ORIGINALE - ce qui dépasse sera coupé */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; /* PADDING ORIGINAL */
    z-index: 2;
    pointer-events: none;
}

.vtuber-pc {
    display: block;
}

.vtuber-mobile {
    display: none;
}

.vtuber-avatar {
    width: 100%;
    height: 100vh; /* HAUTEUR ORIGINALE CONSERVÉE */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vtuber-avatar img {
    max-width: 100vw; /* TAILLES ORIGINALES CONSERVÉES */
    max-height: 100vh; /* TAILLES ORIGINALES CONSERVÉES */
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.1s ease-out;
    transform: scale(1);
}

/* Section des liens - HAUTEUR ORIGINALE MAIS DANS CONTAINER AJUSTÉ */
.links-section {
    position: absolute;
    top: 0;
    right: 5.5%;
    width: 50%;
    height: 100vh; /* HAUTEUR ORIGINALE - ce qui dépasse le container sera coupé */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* PADDING ORIGINAL */
    z-index: 3;
}

.links-mobile {
    z-index: 5;
}

.links-pc {
    display: flex;
}

.links-mobile {
    display: none;
}

/* Carrousel - TAILLES ORIGINALES */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 12vw; /* TAILLE ORIGINALE */
    height: 12vw; /* TAILLE ORIGINALE */
    background: transparent;
    border: none;
    border-radius: 50%;
    color: #2a2a2a;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    backdrop-filter: none;
}

.carousel-arrow:hover {
    color: #404040;
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow-left {
    left: -7vw; /* POSITION ORIGINALE */
}

.carousel-arrow-right {
    right: -7vw; /* POSITION ORIGINALE */
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 80%; /* HAUTEUR ORIGINALE */
    overflow: hidden;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Groupes de liens - ESPACEMENT ORIGINAL */
.links-group {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px; /* ESPACEMENT ORIGINAL */
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.links-group.active {
    opacity: 1;
    transform: translateX(0);
}

.links-group.prev {
    opacity: 0;
    transform: translateX(-100%);
}

/* Bannières de liens - TAILLES ORIGINALES */
.link-banner {
    position: relative;
    width: 22%;
    aspect-ratio: 1/3;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: var(--accent-gradient);
    box-shadow: var(--shadow-primary);
}

.link-banner:hover {
    transform: translateY(-5px) scale(1.02); /* EFFETS ORIGINAUX */
    box-shadow: var(--shadow-hover);
}

.link-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.link-banner:hover img {
    transform: scale(1.05); /* EFFET ORIGINAL */
}

.link-top {
    align-self: flex-start;
}

.link-bottom {
    align-self: flex-end;
}

/* Overlay des liens - TAILLES ORIGINALES */
.link-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: clamp(10px, 2vw, 25px); /* PADDING ORIGINAL */
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.link-banner:hover .link-overlay {
    transform: translateY(0);
}

.link-overlay h3 {
    font-size: clamp(1rem, 2vw, 1.4rem); /* TAILLES ORIGINALES */
    font-weight: 600;
    margin-bottom: clamp(3px, 0.5vw, 6px);
    color: #fff;
}

.link-overlay p {
    font-size: clamp(0.8rem, 1.5vw, 1.1rem); /* TAILLES ORIGINALES */
    color: #ccc;
}

/* Section mobile - TAILLES ORIGINALES */
.mobile-links-container {
    width: 56vw;
    height: 58vh; /* HAUTEUR ORIGINALE */
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--background-dark);
    border-radius: 0;
    border: 1px solid var(--border-color);
}

.mobile-links-track {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 3vh; /* ESPACEMENT ORIGINAL */
    padding: 4vh 2vw; /* PADDING ORIGINAL */
    scrollbar-width: thin;
    scrollbar-color: rgba(107, 115, 255, 0.8) rgba(255, 255, 255, 0.1);
}

.mobile-links-track::-webkit-scrollbar {
    width: 8px; /* TAILLE ORIGINALE */
}

.mobile-links-track::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.mobile-links-track::-webkit-scrollbar-thumb {
    background: rgba(107, 115, 255, 0.8);
    border-radius: 4px;
}

.mobile-links-track::-webkit-scrollbar-thumb:hover {
    background: rgba(107, 115, 255, 1);
}

.mobile-link-item {
    position: relative;
    width: 80%;
    aspect-ratio: 3/1;
    max-height: 12vh; /* HAUTEUR ORIGINALE */
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: var(--accent-gradient);
    box-shadow: var(--shadow-primary);
    flex-shrink: 0;
}

.mobile-link-item:nth-child(odd) {
    align-self: flex-start;
}

.mobile-link-item:nth-child(even) {
    align-self: flex-end;
}

.mobile-link-item:hover {
    transform: translateY(-0.21vh) scale(1.02); /* EFFET ORIGINAL */
    box-shadow: var(--shadow-hover);
}

.mobile-link-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mobile-link-item:hover img {
    transform: scale(1.05); /* EFFET ORIGINAL */
}

.mobile-link-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: clamp(5px, 1vw, 15px); /* PADDING ORIGINAL */
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-link-item:hover .mobile-link-overlay {
    transform: translateY(0);
}

.mobile-link-overlay h3 {
    font-size: clamp(0.7rem, 1.5vw, 1rem); /* TAILLES ORIGINALES */
    font-weight: 600;
    margin-bottom: clamp(2px, 0.3vw, 4px);
    color: #fff;
}

.mobile-link-overlay p {
    font-size: clamp(0.6rem, 1.2vw, 0.9rem); /* TAILLES ORIGINALES */
    color: #ccc;
}

/* Media queries spécifiques index - PROPORTIONS ORIGINALES CONSERVÉES */
@media (max-aspect-ratio: 1/1) {
    .links-pc {
        display: none;
    }
    
    .links-mobile {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        width: 56vw;
        right: 22vw;
        padding-top: 25vh; /* PADDING-TOP ORIGINAL */
    }
    
    .vtuber-pc {
        display: none;
    }
    
    .vtuber-mobile {
        display: flex;
        left: 50%;
        transform: translateX(-50%);
        width: 40%;
    }
    
    .vtuber-mobile img {
        transform: scale(1) !important;
    }
}

/* Optimisations pour écrans larges - TAILLES ORIGINALES */
@media (min-width: 1920px) {
    .carousel-arrow {
        width: 12vw; /* TAILLE ORIGINALE */
        height: 12vw; /* TAILLE ORIGINALE */
    }
    
    .carousel-arrow-left {
        left: -7vw; /* POSITION ORIGINALE */
    }
    
    .carousel-arrow-right {
        right: -7vw; /* POSITION ORIGINALE */
    }
}