/* Réinitialisation globale */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corps général du site */
html, body {
    height: 100%;
    overflow-y: auto;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f7;
    color: #333;
    text-align: center;
    line-height: 1.6;
    padding-top: 20px;  /* Garde la taille normale sur PC */
}

/* Barre de navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.1rem 2%;  /* Taille normale pour PC */
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;  /* Taille normale sur PC */
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

/* Logo en taille normale sur PC */
.logo a {
    font-size: 2rem;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    padding: 1px 1px;
    margin-left: 20%;
}

/* Responsive Design */
/* Tablettes et écrans moyens */
@media (max-width: 1024px) {
    .navbar {
        padding: 0.5rem 5%;
    }

    .logo a {
        font-size: 1.2rem;  /* Logo plus petit */
    }

    .nav-links {
        gap: 10px;  /* Réduction légère de l'espacement */
    }
}

/* Mobiles et petits écrans */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row;  /* Reste horizontal */
        justify-content: space-between;
        padding: 0.3rem 5%;
    }

    .nav-links {
        gap: 8px;
        font-size: 0.5rem;  /* Taille des liens réduite */
    }

    .logo a {
        font-size: 1rem;  /* Logo réduit sur mobile */
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .logo a {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 8px;
        font-size: 0.70rem;
    }
}
