/* Style général du body */
body {
    font-family: 'Arial', sans-serif;
    background-color: #303030;
    color: #333;
    padding: 20px;
    max-width: 75%;
    margin: auto;
    position: relative; /* Permet le positionnement relatif */
    min-height: 100vh; /* Assure que le body prend au moins la hauteur de la fenêtre */
}

#header_style {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 2rem;
}


/* Style pour la navigation */
.nav {
    background-color: #444; /* Couleur de fond pour la navigation */
    color: white;
    padding: 10px;
    position: fixed; /* Fixe la nav en haut */
    top: 0;
    left: 0;
    width: 100%; /* Prend toute la largeur de la fenêtre */
    z-index: 1000; /* S'assure que la nav soit au-dessus des autres éléments */
    display: flex; /* Utilise Flexbox pour aligner les éléments */
    align-items: center; /* Centre verticalement */
}

/* Style pour l'image de présentation */
#presentation-image-nav {
    width: 6vw; /* Largeur de l'image */
    height: 6vw; /* Hauteur de l'image */
    border-radius: 50%; /* Forme ronde */
    margin-right: 10vw; /* Espace à droite de l'image */
    display: block; /* Assure que l'image s'affiche correctement */
    object-fit: cover; /* Maintient les proportions sans déformation */
}


/* Style pour les boutons de navigation */
button {
    background-color: #28a745;
    border: none;
    color: white;
    padding: 12px 25px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    margin-right: 15px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #218838;
}

/* Style pour le switcher de langue */
.lang-switch {
    margin-left: auto; /* Aligne le switcher à droite */
}

.lang-switch button {
    background-color: #007bff;
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

.lang-switch button:hover {
    background-color: #0056b3;
}



/* Style pour le contenu */
#content {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    padding-bottom: 80px; /* Ajoute de l'espace pour le footer */
    margin-top: 70px; /* Ajoute une marge en haut pour compenser la nav */
}


/* Style pour les titres */
#content h1 {
    font-size: 32px;
    color: #343a40;
}

/* Style pour les paragraphes */
#content p {
    font-size: 20px;
    line-height: 1.8;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    position: fixed; /* Fixe le footer en bas */
    bottom: 0;
    left: 0;
    width: 100%; /* Prend toute la largeur de la fenêtre */
    height: 60px; /* Hauteur du footer */
    padding: 10px 0;
    box-sizing: border-box; /* Pour inclure le padding dans la hauteur totale */
}

footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

footer .footer-content .socials a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
}

footer .footer-content .socials a:hover {
    text-decoration: underline;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


/* ============================================ */
/* RESPONSIVE DESIGN - TÉLÉPHONE (< 768px)     */
/* ============================================ */

@media (max-width: 768px) {
    /* Ajuste le body pour mobile */
    body {
        padding: 10px;
        max-width: 100%;
        margin: 0;
    }

    /* Réduit les marges du header */
    #header_style {
        padding: 2rem 0;
        margin-bottom: 1rem;
    }

    /* Navigation adaptée au mobile */
    .nav {
        flex-wrap: wrap; /* Permet au contenu de passer à la ligne */
        padding: 8px;
    }

    /* Image de présentation plus petite */
    #presentation-image-nav {
        width: 40px;
        height: 40px;
        margin-right: 15px;
    }

    /* Boutons de navigation plus compacts */
    button {
        padding: 8px 12px;
        font-size: 14px;
        margin-right: 8px;
        margin-bottom: 5px;
    }

    /* Switcher de langue sur sa propre ligne si nécessaire */
    .lang-switch {
        margin-left: 0;
        width: 100%;
        margin-top: 8px;
        display: flex;
        justify-content: center;
    }

    .lang-switch button {
        padding: 8px 15px;
        font-size: 14px;
        margin: 0 5px;
    }

    /* Contenu adapté au mobile */
    #content {
        padding: 20px;
        padding-bottom: 80px;
        margin-top: 120px; /* Augmente car la nav peut être plus haute */
        border-radius: 5px;
        font-size: 16px;
    }

    /* Titres plus petits sur mobile */
    #content h1 {
        font-size: 24px;
        margin-top: 0;
    }

    /* Paragraphes adaptés */
    #content p {
        font-size: 16px;
        line-height: 1.6;
    }

    /* MASQUER LE FOOTER SUR MOBILE */
    footer {
        display: none;
    }
}


/* ============================================ */
/* RESPONSIVE DESIGN - PETIT TÉLÉPHONE (< 480px) */
/* ============================================ */

@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    .nav {
        padding: 5px;
    }

    #presentation-image-nav {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }

    button {
        padding: 6px 10px;
        font-size: 12px;
        margin-right: 5px;
    }

    .lang-switch button {
        padding: 6px 12px;
        font-size: 12px;
        margin: 0 3px;
    }

    #content {
        padding: 15px;
        padding-bottom: 80px;
        margin-top: 100px;
        font-size: 14px;
    }

    #content h1 {
        font-size: 20px;
    }

    #content p {
        font-size: 14px;
    }

    /* MASQUER LE FOOTER SUR PETIT TÉLÉPHONE */
    footer {
        display: none;
    }
}