body {
    font-family: 'Manrope', sans-serif;
    overflow: hidden; 
}

.section-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    overflow-y: auto; 
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.section-container.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    z-index: 10;
}

/* Personnalisation des barres de défilement */
.section-container::-webkit-scrollbar { width: 8px; }
.section-container::-webkit-scrollbar-track { background: #111921; }
.section-container::-webkit-scrollbar-thumb { background: #344d65; border-radius: 4px; }
.section-container::-webkit-scrollbar-thumb:hover { background: #1773cf; }

.custom-scrollbar::-webkit-scrollbar { height: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #111921; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #344d65; border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #1773cf; }

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.nav-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background-color: rgba(23, 115, 207, 0.1);
}

.nav-item.active {
    background-color: #1773cf;
}

.nav-item.active p, .nav-item.active span {
    color: white;
}

/* --- UI Components : Modal Overlay --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(17, 25, 33, 0.85); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    perspective: 1200px;
    width: 90vw;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    background-color: #1a2632;
    transform: rotateY(90deg) scale(0.8);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-image { transform: rotateY(0deg) scale(1); }

.close-btn {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: #93adc8;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.2s ease;
    line-height: 1;
}

.close-btn:hover { color: #1773cf; }