@font-face {
    font-family: myFirstFont;
    src: url(Batuphat\ Script.otf);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
}

body {
    font-family: "Hammersmith One", Arial, Helvetica, sans-serif;
    background-color: #fedbc5;
    background-attachment: fixed;
    margin-top: 150px;
}

.rect {
    background-color: #c0a633;
    border: solid #fedbc5 2px;
    box-shadow: -10px 5px 0px #0e6052;
    border-radius: 12px;
}

.sous-rect {
    background-color: #e65c2d;
    border: solid #c0a633 2px;
    box-shadow: -10px 5px 0px #0e6052;
    border-radius: 12px;
}

.header {
    position: fixed;
    background-color: #e65c2d;
    border: solid #fedbc5 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 10px 40px;
    top: 0px;
    height: 50px;
    left: 48px;
    right: 48px;
    z-index: 1000;
}

#logo {
    color: #0e6052;
    font-family: myFirstFont, Arial, Helvetica, sans-serif;
    font-size: 50px;
    padding-top: 10px;
}

#burger-menu {
    display: none;
    font-size: 30px;
    cursor: pointer;
}

#navBar a {
    display: inline-block;
    margin-left: 20px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    padding: 5px;
    background-color: #e65c2d;
}

#navBar a:hover {
    border-radius: 5px;
    background-color: #fedbc5;
    box-shadow: -5px 5px 0px #0e6052;
    transform: translateY(-5px);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.window {
    margin: 50px 40px;
    padding: 20px;
}

.sous-window {
    margin: 10px 10px;
    padding: 20px;
    min-width: 250px;
    display: grid;
    grid-template-areas: 
        "titre"
        "image"
        "technologie"
        "description"
        "objectif"
        "bouton";
    grid-template-rows: repeat(5, auto) 34px;
    justify-content: space-between;
}

.flexbox {
    overflow-x: auto;
    display: flex;
    white-space: wrap;
}

.flexbox::-webkit-scrollbar {
    display: none;
}

.flexbox:active {
    cursor: grabbing;
    user-select: none;
}

.window a {
    display: inline-block;
    background-color: #fedbc5;
    padding: 5px;
    border: solid 2px #fedbc5;
    border-radius: 5px;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    grid-area: bouton;
}

.window a:hover {
    border-radius: 5px;
    background-color: #fedbc5;
    box-shadow: -5px 5px 0px #0e6052;
    transform: translateY(-5px);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

h4 {
    text-align: center;
    grid-area: titre;
}

img {
    border-radius: 12px;
    border: solid 5px #fedbc5;
    width: 70%;
    justify-self: center;
    grid-area: image;
}

.techno {
    grid-area: technologie;
}

.desc {
    grid-area: description;
}

.objectif {
    grid-area: objectif;
}

#mail {
    background-color: #e65c2d;
    padding: 5px 20px;
    border-radius: 12px;
}

#adMail {
    word-break: break-word;
    overflow-wrap: break-word;
}

.contactFlexbox {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    padding-bottom: 40px;
    text-align: center;
}

.contactFlexbox a {
    width: 250px;
}

.logo {
    border: none;
    width: 50px;
}

#jeuSerieux img, #librairie img {
    width: 32%;
    min-width: 280px;
}

#librairie img {
    width: 40%;
    min-width: 280px;
}

@media (max-width: 900px) {
    #logo {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .header {
        left: 20px;
        right: 15px;
    }

    #logo {
        font-size: 25px;
    }

    #navBar {
        display: none;
        flex-direction: column;
        background-color: #e65c2d;
        width: 100%;
        max-height: 0;
        text-align: center;
        padding: 10px 0;
        position: absolute;
        top: 60px;
        left: 0;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
        box-shadow: -10px 5px 0px #0e6052;
        transition: max-height 0.3s ease-in-out;
    }

    #burger-menu {
        display: block;
    }

    #navBar.active {
        display: flex;
        max-height: 120px;
    }

    .window {
        margin: 30px 10px;
        padding: 15px;
    }

    .window a {
        align-self: center;
    }

    .sous-window {
        min-width: 0px;
        grid-template-rows: repeat(5, auto) 50px;
    }

    .flexbox {
        display: block;
    }

    .contactFlexbox {
        display: block;
    }

    .contactFlexbox a {
        margin-top: 20px;
        min-width: -webkit-fill-available;
        width: 0px;
    }

    #jeuSerieux img, #librairie img {
        min-width: 240px;
    }
}