﻿/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
}

main {
    top: 250px;
    position: relative;
}

section ul li, section p {
    text-align: justify;
    margin-bottom: 15px;
}

img {
    width: 100%;
    height: auto;
}

desc {
    text-align: center;
    display: block;
    font-style: italic;
}

h4 {
    font-weight: bolder;
    text-decoration: underline;
}

/* Styles pour les sous-menus */
.submenu {
    display: none; /* Cache le sous-menu par défaut */
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li:hover {
    background-color: #eee;
    border: solid #007bff 2px;
    border-radius: 10px;
}

.menu li:hover .submenu {
    display: block;
    position: relative;
    margin: 10px;
    top: 0;
    left: 0;
    background-color: #eee;
}

.submenu li {
    padding: 8px 10px;
}

    .submenu li a {
        color: #007bff;
        text-decoration: none;
    }

        .submenu li a:hover {
            color: #2575fc;
        }


/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    border: 4px solid transparent;
    border-top: 4px solid #2575fc;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Header Styles */
.hero {
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    color: white;
    text-align: center;
    padding: 30px 0px;
    position: fixed;
    width: 100%;
    display: flex;
    margin: 0px 0px;
    top: 0;
    left: 0;
    z-index: 255;
    flex-direction: column;
    align-items: center;
}


    .hero h1 {
        font-size: 2.5em;
        margin: 0;
    }

    .hero p {
        font-size: 1.2em;
        margin: 10px 0 40px;
    }

/* Navbar Styles */
.navbar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    padding: 5px 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
    width: auto;
    border-radius: 10px;
}

.navbar-icon {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    color: #007bff;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .navbar-icon:hover {
        color: #2575fc;
    }

.navbar p {
    display: none;
    position: fixed;
    font-size: 30px;
    color: #007bff;
    width: 100%;
    margin: 15px 0;
    height: inherit;
    max-width: 1200px;
    left: 50%;
    text-align: center;
    vertical-align: middle;
    transform: translateX(-50%);
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

.menu {
    list-style: none;
    margin: -10px;
    padding: 10px;
    display: flex;
    gap: 20px;
}

    .menu li {
        transition: transform 0.3s ease;
        padding: 10px;
    }

        .menu li a {
            text-decoration: none;
            color: #007bff;
            font-weight: bold;
            transition: color 0.3s ease;
        }

            .menu li a:hover {
                color: #2575fc;
            }

@media screen and (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #f8f9fa;
        width: 100%;
        padding: 10px 0;
    }

    .hero {
        align-items: stretch;
    }

    .menu.show {
        display: flex;
    }

    .navbar {
        justify-content: space-between;
    }
    
    .navbar-icon {
        display: block;
    }

    .navbar p {
        display: block;
    }
    
    .navbar-icon.active {
        transform: rotate(90deg);
    }
}

/* Sections Styles */
.section {
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    background: #eee;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.subsection {
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

/* Footer Styles */
.footer {
    text-align: center;
    background: #f8f9fa;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    color: #666;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}
