@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

/* === LOADER STYLE === */
body.loading {
    overflow: hidden; /* Bloque le scroll pendant le loader */
}

#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #0d0d0d;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Au dessus de tout le reste */
    transition: opacity 0.5s ease-out;
}

lottie-player {
    filter: drop-shadow(0 0 15px #00ffaa); /* Effet néon vert */
}

/* === STYLE DU LOADER ADAPTATIF === */

#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #0d0d0d;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out;
}

/* Taille par défaut (Mobile) */
.main-lottie {
    width: 250px;  /* Garde cette taille sur mobile */
    height: 250px;
    filter: drop-shadow(0 0 15px #00ffaa);
    transition: all 0.3s ease; /* Transition douce si on redimensionne la fenêtre */
}

/* Taille pour Desktop (écrans supérieurs à 768px) */
@media (min-width: 769px) {
    .main-lottie {
        width: 500px; /* Plus grand sur ordinateur */
        height: 500px;
    }
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    overflow-x: hidden;
    font-family: 'Orbitron', sans-serif;
    background-color: #0d0d0d;
    color: #f0f0f0;
    padding-inline: 1rem;
}

/* === INTRO === */
.index-container {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    gap: 4rem;
}

.intro-section {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    text-align: center;
    padding: 2rem;
}

.intro-left {
    width: 100%;
    max-width: 600px;
}

.led-strong {
    font-size: 3rem;
    color: #00ff88;
    text-shadow:
            0 0 4px #00ff88,
            0 0 8px #00ffaa,
            0 0 12px #00ffcc,
            1px 1px 2px #000;
    animation: neonBlink 4s infinite;
    margin-bottom: 1.5rem;
}

.intro-text {
    color: #cccccc;
    font-size: 1rem;
    padding: 0 1rem;
    text-align: center;
}

/* === CARROUSEL === */
.carousel-section {
    background-color: #0d0d0d;
    padding: 4rem 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 1000px;
    background-color: #111;
    border: 2px solid #00ffaa;
    box-shadow: 0 0 20px #00ffaa;
    border-radius: 20px;
    overflow: hidden;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.carousel-title {
    text-align: center;
    color: #00ffaa;
    font-size: 1.8rem;
    text-shadow: 0 0 8px #00ffaa;
    font-weight: bold;
    letter-spacing: 1px;
    animation: neonBlink 4s infinite;
}

.carousel-item {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-item.active {
    display: block;
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    max-height: 450px;
    min-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: rgba(0, 255, 136, 0.2);
    color: white;
    font-size: 2rem;
    border: 1px solid #00ffaa;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background-color: rgba(0, 255, 170, 0.3);
    box-shadow: 0 0 15px #00ffaa;
    color: #00ffaa;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev { left: 0.5rem; }
.carousel-control.next { right: 0.5rem; }

/* === BANDEAU DÉFILANT (MARQUEE) === */
.marquee-container {
    width: 100vw;
    overflow: hidden;
    white-space: nowrap;
    position: absolute;
    top: 100px;
    background: transparent;
    padding: 1rem 0;
    z-index: 1;
}

.marquee-content {
    display: inline-block;
    animation: marquee-scroll 25s linear infinite;
}

.marquee-content a {
    text-decoration: none;
    font-size: 6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
    margin-right: 5rem;
    letter-spacing: 15px;
    transition: all 0.4s ease;
    display: inline-block;
}

.marquee-content a:hover {
    color: #00ff88;
    text-shadow: 0 0 20px #00ff88;
    transform: scale(1.1);
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === ANIMATIONS & RESPONSIVE === */
@keyframes neonBlink {
    0%, 100% { opacity: 1; text-shadow: 0 0 6px #00ffaa; }
    50% { opacity: 0.85; text-shadow: 0 0 2px #00ffaa; }
}

@media (max-width: 768px) {
    .led-strong { font-size: 2rem; }
    .marquee-content a { font-size: 3rem; margin-right: 3rem; }
    .carousel-item img { max-height: 250px; min-height: 250px; }
}