
/* fonts ------------------------------ */
@font-face {
    font-family: 'GothamBold';
    src: url('/assets/fonts/Gotham/Gotham-Bold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* base styles ------------------------ */
body {
    margin: 0;
    font-family: 'GothamBold', sans-serif;
    background-color: #FFF9F4;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

main {
    flex: 1;
}

/* header ----------------------------- */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFC30D;
    width: 100%;
    padding: 0;
    min-height: 70px;
    box-sizing: border-box;
    position: relative;
    z-index: 1000;
}

.logo {
    max-width: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    width: 70%;
    height: auto;
}
.fas.fa-info-circle {
    margin-right: 6px; 
}

/* navigation ------------------------- */
header nav {
    width: 100%;
    height: 100%;
}

header nav ul {
    display: flex;
    align-items: center;
    padding: 0;
    list-style: none;
    margin: 0;
    height: 100%;
    width: 100%;
}

header nav ul li {
    flex-grow: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

header nav ul a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    color: #000000;
    text-decoration: none;
    font-size: 160%;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    width: 100%;
    border-left: 2px solid #e8b313;
    border-radius: 0%;
    height: 100%;
}

header nav ul a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: 5px;
}

header nav ul a:hover::after {
    opacity: 1;
}

/* footer ----------------------------- */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    box-sizing: border-box;
}

/* responsive ------------------------- */
.burger {
    position: relative;
    width: 30px;
    height: 24px;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.burger span {
    position: absolute;
    width: 100%;
    height: 4px;
    background: #000;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger span:nth-child(1) {
    top: 0;
}

.burger span:nth-child(3) {
    bottom: 0;
}

/* Animation quand le burger est actif */
.burger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}



.logo-mobile {
    display: none;
}

@media (max-width: 900px) {
    .burger {
        display: flex;
        z-index: 9999;
        width: 33px;
    }

    #nav {
        opacity: 0;
    }

    #nav.active {
        opacity: 1;
    }

    header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0 1em;
    }

    header nav {
        display: block;
        flex-direction: column;
        background-color: #FFC30D;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        padding: 1em;
        box-sizing:border-box;
        height: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.1s ease-in-out;
    }

    header nav.active {
        display: flex;
        max-height: 300px;
        box-shadow: 0px 12px 10px -10px rgba(0 , 0, 0, 0.2);
    }

    header nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    header nav ul li {
        width: 100%;
        margin: 8px 0;
        border-left: none;
        justify-content: flex-start;
    }

    header nav ul a {
        justify-content: flex-start;
        padding-left: 1em;
        border-left: 0;
    }
    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: block;
        max-width: 300px;
        margin-left: 0; 
    }

    .logo {
        max-width: unset;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    header nav ul a::after {
    content: '';
    position: absolute;
    top: 0;;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.25s ease;
    }

    header nav ul a:hover::after {
        opacity: 1;
    }
}
