/* css/main.css - Styles principaux */

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    font-family: 'Roboto', sans-serif;
    background-color:black;
    cursor: pointer;
    overflow-x: hidden;
}

body {
    overflow-y: auto;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 1000;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    color: #fff;
}

.splash-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: splash-spin 1s ease-in-out infinite;
    margin: 0 auto 20px;
}

@keyframes splash-spin {
    to {
        transform: rotate(360deg);
    }
}

.splash-text {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

canvas#pixel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: auto;
    z-index: 1000;
}

.click-to-start {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    text-align: center;
    z-index: 120;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: opacity 0.5s ease;
}

.click-to-start.hidden {
    opacity: 0;
}

.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.2rem;
    z-index: 20;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
}

/* ==================================================
   SOLUTION AVEC IMAGE FIXE EN ARRIÈRE-PLAN
   ================================================== */
.main-container {
    position: relative;
    width: 100%;
}

/* Conteneur fixe pour l'image */
.fixed-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    background-color: #000;
}

.fixed-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Première section - deux colonnes */
.section-1 {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background-color: transparent;
    position: relative;
    z-index: 1;
}

/* Colonne de gauche - vide */
.left-column {
    width: 50%;
    flex-shrink: 0;
}

/* Colonne de droite - contenu défilant */
.right-column {
    width: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

.right-content {
    padding: 40px;
}

.right-content h1 {
    margin-bottom: 30px;
}

.right-content h1 img {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    max-width: 100%;
}

.right-content p {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 18px;
    color: #333;
}

/* Deuxième section - avec fond qui recouvre l'image */
.section-2 {
    width: 100%;
    min-height: 100vh;
    background: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
} 

.full-width-content {
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 40px;
    margin-bottom: 40px; 
}

.full-width-content h2 {
    font-size: 48px;
    margin-bottom: 30px;
    font-weight: 700;
}

.full-width-content p {
    font-size: 24px;
    line-height: 1.6;
    opacity: 0.9;
}

/* Timeline avec Owl Carousel */
.timeline-section {
    width: 100%;
    max-width: 92vw;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
}

.timeline-title {
    text-align: center;
    color: #fff;
    font-size: 32px;
    margin-bottom: 50px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

/* Items du timeline */
.timeline-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    height: 100%;
}

.timeline-item:hover {
    transform: translateY(-10px) scale(0.95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.timeline-item:active {
    transform: translateY(-5px) scale(1.01);
}

.timeline-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.timeline-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s ease;
}

.timeline-item:hover .timeline-image {
    transform: scale(1.05);
}

.timeline-year {
    text-align: center;
    padding: 20px 20px 5px;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.timeline-name {
    text-align: center;
    padding: 20px 20px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
    text-transform: uppercase;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation du timeline */
.timeline-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.timeline-prev,
.timeline-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.timeline-prev:hover,
.timeline-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.timeline-prev:active,
.timeline-next:active {
    transform: scale(0.95);
}

.timeline-prev.disabled,
.timeline-next.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Personnalisation des dots Owl */
.owl-theme .owl-dots {
    margin-top: 30px;
}

.owl-theme .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    margin: 5px;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.owl-theme .owl-dots .owl-dot.active span {
    background: #fff;
    transform: scale(1.2);
}

.owl-theme .owl-dots .owl-dot:hover span {
    background: rgba(255, 255, 255, 0.8);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
}
.back-to-top img {
    width: 90%;
}
.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .fixed-image-container {
        width: 100%;
        height: 50vh;
    }
    
    .section-1 {
        flex-direction: column;
    }
    
    .left-column {
        display: none;
    }
    
    .right-column {
        width: 100%;
        margin-top: 50vh;
        background-color: rgba(255, 255, 255, 0.98);
    }
    
    .right-content {
        padding: 20px;
    }
    
    .right-content p {
        font-size: 16px;
    }
    
    .section-2 {
        /*! min-height: auto; */
        padding: 40px 10px;
    }
    
    .full-width-content h2 {
        font-size: 36px;
    }
    
    .full-width-content p {
        font-size: 18px;
    }
    
    .timeline-title {
        font-size: 24px;
        margin-bottom: 40px;
    }
    
    .timeline-image {
        height: 200px;
    }
    
    .timeline-year {
        font-size: 22px;
        padding: 15px 15px 5px;
    }
    
    .timeline-name {
        font-size: 12px;
        padding: 5px 15px 15px;
    }
    
    .timeline-prev,
    .timeline-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .timeline-title {
    font-size: 18px;
}
    .timeline-section {
        padding: 20px 10px;
    }
    
    .timeline-image {
        height: 180px;
    }
    
    .timeline-year {
        font-size: 20px;
    }
}