/* POLICE ÉCRITURE */
@import url('https://fonts.googleapis.com/css2?family=Jacquard+12&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&display=swap');

* {
    font-family: "Jacquard 12", serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* GLOBAL */
body {
    margin: 0 auto;
    overflow-x: hidden; /* Évite le scroll horizontal */
}

/* SECTION TOP-PAGE */
section.top-page {
    background: url('../images/background.top-page.jpg') center/cover no-repeat;
    height: 80vh;
    padding: 25px;
}

/* HEADER */
header.header-top-page {
    display: flex;
    flex-direction: column; /* Empile le logo et le menu */
    align-items: center; /* Centre horizontalement */
    text-align: center;
    padding: 10px 0;
}

/* LOGO */
header.header-top-page img {
    width: 120px;
}

/* NAVIGATION */
nav.nav-home-page {
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

nav.nav-home-page.active {
    visibility: visible; /* Menu visible lorsqu'on clique */
    opacity: 1;
}
nav.nav-home-page ul {
    display: flex;
    gap: 20px;
    list-style: none;
    justify-content: center; /* Centre les éléments */
    padding: 0;
}

nav.nav-home-page li a {
    color: rgba(215, 38, 38, 0.904);
    text-decoration: none;
    font-size: 18px;
}

/* MENU BURGER POUR MOBILE */
.menu-toggle {
    display: none; /* Caché sur desktop */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: rgba(215, 38, 38, 0.904);
}

/* LANDING PAGE */
.landing-page {
    text-align: center;
    padding: 10px 5%;
}

.home-title {
    color: rgba(215, 38, 38, 0.904);
    font-size: 50px;
    font-family: "Cinzel", serif;
    font-weight: 600;
    margin: 20px auto;
    white-space: nowrap;
}

.slogan-home-page {
    color: rgba(215, 38, 38, 0.904);
    text-align: center;
}

/* BOUTON SCROLL */
.scrolldown-home {
    color: white;
    text-decoration: none;
    position: absolute;
    bottom: 160px;
    font-size: 20px;
    font-family: "Cinzel", serif;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

/* MEDIA QUERIES POUR RESPONSIVE */
@media (max-width: 768px) {
    /* NAVIGATION ADAPTÉE */
    nav.nav-home-page {
        visibility: hidden; /* Menu caché par défaut */
        opacity: 0; /* Masque également l'opacité */
        position: fixed;
        top: 70px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        background: rgba(0, 0, 0, 0.8);
        text-align: center;
        padding: 20px 0;
        gap: 20px;
        list-style: none;
        z-index: 100;
        transition: opacity 0.3s ease;
    }

   /* MENU BURGER POUR MOBILE */
.menu-toggle {
    display: none; /* Caché sur desktop */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: rgba(215, 38, 38, 0.904);
}

    /* NAVIGATION ADAPTÉE */
    nav.nav-home-page {
        display: none; /* Caché par défaut */
        flex-direction: column;
        background: rgba(0, 0, 0, 0.8);
        position: absolute;
        top: 70px;
        left: 50%;
        transform: translateX(-50%); /* Centre le menu */
        width: 100%;
        text-align: center;
        padding: 20px 0;
        gap: 20px;
        list-style: none;
    }

    nav.nav-home-page.active {
        display: flex; /* Affiché lorsqu'on clique sur le menu */
    }

    nav.nav-home-page ul {
        flex-direction: column;
        gap: 10px;
        display: flex;
        list-style: none;
        justify-content: center;
        padding: 0;
    }

    /* AJUSTEMENT DES TEXTES */
    .landing-page {
        padding: 10px 20px;
    }

    .home-title {
        font-size: 35px;
        white-space: normal;
    }

    .scrolldown-home {
        bottom: 100px;
    }
}

