* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* Police par défaut du document */
body {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: rgb(80, 126, 255);
}

/* Enlever le souligné pour tous les liens */
a,
a:hover,
a:visited,
a:link,
a:focus,
a:active {
    text-decoration: none;
}

/* Grille de base du site commence ici */
.wrapper {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    width: 100vw;
    height: 100vh;
}

header {
    width: 100%;
    height: 500px;
    grid-row-start: 1;
    grid-row-end: 2;
    grid-column-start: 1;
    grid-column-end: 10;
    border: none;
    margin: 0;
    padding: 0;
    background-image: url(images/logo-funky.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

header:hover {
    animation: wave 2s alternate;
}

@keyframes wave {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(5deg);
    }

    75% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

main {
    grid-row-start: 3;
    grid-row-end: 10;
    grid-column-start: 2;
    grid-column-end: 9;
    padding: 0px 100px 0px 100px;
}

nav {
    position: sticky;
    top: 0;
    align-items: start;
    width: 100%;
    background-color: white;
    z-index: 1;
}

nav a:hover {
    text-decoration: none;
    color: rgb(183, 206, 195);
}

nav.sticky {
    position: fixed;
    top: 0;
}

.close-menu {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 2em;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.entete img {
    width: 60%;
    object-fit: contain;
}

.menu1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 2em;
}

.menu1 a {
    text-decoration: none;
    color: rgb(80, 126, 255);
    text-align: center;
}

.logo img {
    width: 700px;
}

.nav-logo img {
    width: 4em;
    margin: 1em 0em 0em 0em;
}

h1 {
    text-align: left;
    font-size: 3em;
    margin-bottom: 100px;
    font-weight: 700;
}

h2 {
    text-align: left;
    font-size: 2em;
    margin: 4em 0 1em 0;
    font-weight: 200;
}

.images_recettes img {
    margin-top: 50px;
    width: 100%;
}

.entete {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.grille_images {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 10px;
    padding: 10px;
    overflow: hidden;
}

.grille_projets {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 10px;
    padding: 10px;
    overflow: hidden;
}

.grille_projets p {
    margin-bottom: 20px;
    font-weight: 100;
    text-align: left;
}

.grille_projets h2 {
    margin-bottom: 20px;
    text-align: right;
}

.grille_projets h3 {
    margin-bottom: 20px;
}

.grille_projets small {
    display: block;
    text-align: right;
    margin-top: 30px;
    color: lightgray;
}

.grille_images img {
    width: 100%;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.grille_images figure:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

.im {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-sizing: border-box;
    display: block;
}

.vinyle {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-sizing: border-box;
    display: block;
    padding: 12em 0 0 0;
}

.im1 {
    grid-column: 7/12;
    grid-row: 5 / 6;
}

.im2 {
    grid-column: 1 / 7;
    grid-row: 1/ 3;
}

.im3 {
    grid-column: 1 / 6;
    grid-row: 5/ 6;
}

.im4 {
    grid-column: 7 / 13;
    grid-row: 1 / 2;
}

.im5 {
    grid-column: 1 / 13;
    grid-row: 7 / 8;
}

.im6 {
    grid-column: 1 / 13;
    grid-row: 3 / 4;
}

.biographie {
    grid-column: 1 / 13;
    grid-row: 10/ 11;
    font-size: 2em;
}

.contact {
    grid-column: 1/13;
    grid-row: 11/ 12;
    font-size: 2em;
}

form {
    max-width: auto;
    padding: 1em;
    border: none;
    background-color: white;
}

form p {
    font-size: 80%;
}

form input[type="text"],
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

form textarea {
    height: 100%;
}

form input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: rgb(80, 126, 255);
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

form input[type="submit"]:hover {
    background-color: rgb(80, 126, 255);
}

footer {
    grid-row-start: 12;
    grid-row-end: 12;
    grid-column-start: 1;
    grid-column-end: 13;
}

.pages>div {
    background-color: #ffffff;
    border: none;
    color: white;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1em;
    margin-left: 20px;
    cursor: pointer;
    border-radius: 50%;
    width: 20px;
}

.pages>div:hover {
    background-color: rgb(80, 126, 255);
}

.pied {
    padding-left: 5%;
    padding-right: 5%;
}

.logo {
    width: 45%;
    margin: 0 auto;
}

.sociaux {
    margin: 10em 0 0 0;
    text-align: center;
}

.sociaux a {
    color: rgb(80, 126, 255);
    font-size: 30px;
}

.sociaux a:hover {
    color: rgb(183, 206, 195);
    font-size: 30px;
}

.sociaux p {
    margin-top: 10px;
    margin-bottom: 30px;
    color: rgb(80, 126, 255);

}


/* Masquer le menu principal par défaut */
.menu1 {
    display: none;
}



@media (min-width: 768px) {


    .menu1 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    header {
        background-image: none;
        display: none;
    }

    main {
        padding: 0px 10px 0px 10px;
    }

    main p {
        font-size: 1em;
        text-align: left;
    }

    .nav-logo { 
        font-size: 1em;
    }

    nav a { 
        font-size: 1.25em;
    }

    .menu1 {
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        align-items: center;
        font-size: 1em;
    }


    .grille_images {
        margin: 0 auto;
        padding: 0 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .grille_projets {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* Deux colonnes */
        gap: 10px;
        /* Espacement entre les images */
        font-size: 40%;
    }

    .grille_projets h2 {
        margin-top: 2em;
        text-align: left;
        font-size: 2em;
    }

    .grille_projets small {
        display: block;
        margin-top: 2em;
        text-align: right;
    }

    .grille_images img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .biographie {
        grid-column: 1 / 13;
        grid-row: 10/ 11;
        font-size: 50%;
    }

    .contact {
        grid-column: 1/13;
        grid-row: 11/ 12;
        font-size: 50%;
    }

    .sociaux {
        font-size: 60%;
    }

    .sociaux a {
        font-size: 2em;
    }

    .im {
        width: 100%;
        height: auto;
        object-fit: cover;
        box-sizing: border-box;
        display: block;
    }

    .im6 {
        width: 100%;
    }



}