@font-face {
    font-family: 'BBB';
    src: url('Fonts/bbb-sprat-main/BBBSprat-ExtendedRegular.woff2') format('woff2');
    src: url('Fonts/bbb-sprat-main/BBBSprat-ExtendedRegular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: #FBFCFA;
    font-family: 'BBB';
    margin: 0;
    display: flex;
    flex-direction: column;
}

h1 {
    text-align: center;
    font-size: 1.5em;
    position: absolute;
    top: 1em;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

img {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    align-self: center;
    width: 50%;
}

a {
    color: black;
    text-decoration: none;
    text-align: left;
    padding: 0;
}

.espace {
    color: #FBFCFA;
}

.contact {
    position: absolute;
    top: 1.5em;
    font-size: 1em;
    right: 1.5em;
}

.navbar {
    position: absolute;
    top: 1.5em;
    left: 1em;
    z-index: 30;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    width: 30px; 
    height: 20px;
}

.menu-toggle span {
    display: block;
    background-color: #333; 
    height: 3px; 
    width: 100%; 
    border-radius: 3px; 
    transition: all 0.3s ease; 
}

.nav-list {
    list-style: none;
    display: none;
    flex-direction: column;
    position: fixed; 
    top: 3%;
    left: 0;
    width: 25%; 
    height: 100%;
    background-color: rgba(51, 51, 51, 0.8);
    padding: 2rem 0;
    z-index: 20; 
}

.nav-list.active {
    display: flex;
}

.nav-list li {
    margin: 1rem 0;
    text-align: center; 
}

.nav-list li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
}

.menu-toggle:hover span {
    background-color: #555; 
}

@media (max-width: 768px) {

    h1 {
        top: 5em;
        font-size: 1em;
    }

    .contact {
        font-size: 0.5em;
    }

    img {
        width: 80%;
    }

    .nav-list {
        width: 85%;
    }
}
