@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

* {
    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; /* marge globale gauche/droite */
}

/* === INTRO === */

.index-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 2rem;
    gap: 4rem;
}

.intro-section {
    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;
}

.domaines {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #f0f0f0;
}

.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;
    box-shadow: 0 0 10px transparent;
}

.carousel-control:hover {
    background-color: rgba(0, 255, 170, 0.3);
    box-shadow: 0 0 15px #00ffaa, 0 0 20px #00ffaa;
    color: #00ffaa;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 0.5rem;
}

.carousel-control.next {
    right: 0.5rem;
}

/* === FOOTER ICONES === */
.footer-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    text-align: center;
    margin-top: 2rem;
}
.footer-icons a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #f0f0f0;
    text-decoration: none;
    font-size: 0.9rem;
}
.footer-icons img {
    width: 32px;
    max-width: 8vw;
    height: auto;
    filter: drop-shadow(0 0 5px #00ff88);
    transition: transform 0.3s ease;
}
.footer-icons img:hover {
    transform: scale(1.1);
}

/* === MENU BURGER === */
.menu-toggle {
    display: none;
    padding: 0.4rem 0.7rem;
    font-size: 1.2rem;
    background-color: #00ff88;
    color: black;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 8px #00ffaa;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

/* === RESPONSIVE MOBILE === */
@media (max-width: 768px) {

    html, body {
        padding-inline: 1rem;
    }

    .main-header {
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .logo {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        text-align: center;
    }

    .logo img {
        height: 40px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .nav-links.active {
        display: flex;
    }

    .carousel {
        width: 100%;
        padding: 1.5rem 1rem 2rem 1rem;
    }

    .carousel-title {
        font-size: 1.4rem;
    }

    .carousel-item img {
        max-height: 250px;
        min-height: 250px;
    }

    .footer-icons img {
        max-width: 12vw;
    }

    .index-container,
    .carousel-section,
    .intro-section {
        padding-left: 0;
        padding-right: 0;
    }
}

/* === RESPONSIVE DESKTOP === */
@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }

    .nav-links {
        display: flex !important;
        flex-direction: row;
        gap: 2rem;
    }
}

/* === ANIMATION LED === */
@keyframes neonBlink {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 6px #00ffaa, 0 0 12px #00ffcc;
    }
    50% {
        opacity: 0.85;
        text-shadow: 0 0 2px #00ffaa, 0 0 4px #00ffcc;
    }
}
