/* --------- GLOBAL STYLES --------- */
html {
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: rgb(255, 255, 255);
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Permet au body de prendre toute la hauteur de la page */
}

a {
    text-decoration: none;
    color: black;
    font-size: 1rem;
}

a2 {
    text-decoration: none;
    color: #00adef;
    font-size: 1rem;
    cursor: pointer;
}

a:hover {
    color: #00adef;
}

li {
    list-style-type: none;
}

/* --------- HEADER --------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 2rem;
    background-color: rgba(255, 255, 255, 0.9); /* Légère transparence pour un effet visuel */
    z-index: 1000; /* Assure que l'en-tête reste au-dessus des autres éléments */
}

.navbar {
    width: 100%;
    max-width: 1200px;
    height: 60px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo a2 {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar .links {
    display: flex;
    gap: 2rem;
}

.navbar .button-menu {
    color: black;
    font-size: 1.5rem;
    cursor: pointer;
    display: none; 
}

/* --------- MENU --------- */
.button-menu-ph {
    display: none;
    position: absolute;
    right: 2rem;
    top: 60px;
    width: 200px;
    background: rgba(0, 0, 0, 0.67);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    transition: height 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.button-menu-ph.open {
    display: block;
}

.button-menu-ph li {
    padding: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --------- FOOTER --------- */
.footer {
    padding-block: 5rem;
    background-color: #151823;
    color: #666873;
    margin-top: auto;
}

.footer-container {
    max-width: 116rem;
    margin: auto;
    padding: 0 1rem;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    row-gap: 2rem;
}

.footer-title {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 500;
    margin-bottom: 2rem;
    margin-left: 2rem;
}

.footer-list {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-left: 2rem;
}

.footer-list-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s;
}

.footer-list-link:hover {
    color: #fff;
}

.footer-divider {
    margin-block: 2.5rem;
    border: none;
    border-top: 1px solid rgba(252, 255, 255, 0.1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-bottom .footer-list {
    flex-direction: row;
}




/* --------- RESPONSIVE --------- */
@media screen and (max-width: 768px) {
    .footer {
        width: auto;
    }
    
    header {
        background: none; /* Suppression de l'arrière-plan pour les petits écrans */
    }

    .navbar .links,
    .navbar .action-button {
        display: none; /* Masquer les liens pour les petits écrans */
    }

    .navbar .button-menu {
        display: block; /* Afficher le bouton de menu */
    }

    .button-menu-ph {
    display: none; /* Masqué par défaut */
}

.button-menu-ph.open {
    display: block; /* Affiché lorsque la classe 'open' est ajoutée */
}

}
