@font-face {
    font-family: 'CooperBT';
    src: url('Fonts/CooperBlkBT-Regular.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'CooperBT';
    src: url('Fonts/CooperBlkBT-Italic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
}

@font-face {
    font-family: 'CooperBT';
    src: url('Fonts/CooperLtBT-Regular.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'CooperBT';
    src: url('Fonts/CooperLtBT-Italic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'CooperBT';
    src: url('Fonts/CooperLtBT-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'CooperBT';
    src: url('Fonts/CooperMdBT-Regular.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'CooperBT';
    src: url('Fonts/CooperMdBT-Italic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

/* --- HEADER --- */
#header {
    background-color: white;
    color: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9000;
    box-shadow: 0px 4px 6px #beade6;
    padding: 0 40px;
    height: 60px;
    font-family: 'CooperBT', sans-serif;
}

#logo img {
    max-height: 50px;
    width: auto;
}

/* --- MENU --- */
#menu {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-right: 100px;
}

.menu-link {
    position: relative;
    font-family: 'CooperBT', sans-serif;
    text-transform: uppercase;
    font-size: 14px;
    color: black;
    text-decoration: none;
    letter-spacing: 1px;
    padding: 5px 0;
    transition: color 0.3s ease;
}

/* --- Effet surlignage --- */
.menu-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: #beade6; /* ton violet */
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.menu-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-link:hover {
    color: #beade6;
}

/* --- BURGER --- */
#burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    width: 30px;
    height: 25px;
    gap: 5px;
    z-index: 10000;
}

#burger span {
    height: 3px;
    width: 100%;
    background: #beade6;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animation du burger */
#burger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
#burger.open span:nth-child(2) {
    opacity: 0;
}
#burger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Responsive --- */
@media screen and (max-width: 768px) {
    #burger {
        display: flex;
    }

    #menu {
        position: fixed;
        top: 60px;
        right: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
        box-shadow: 0 8px 10px rgba(190, 173, 230, 0.3);
    }

    #menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .menu-link {
        font-size: 18px;
        padding: 10px;
    }

    #menu::after {
        display: none;
    }

    #header {
        padding: 0 20px;
    }

    #logo img {
        max-height: 45px;
    }
}
