* {
    box-sizing: border-box;
    margin: 0;
}
header {
    width: 1440px;
    height: 100px;
    margin: auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #f5e1f3;
    transition: all 0.3s ease;
}
header a:hover {
    transform: scale(1.1);
}
header h1 {
    display: flex;
    margin-left: 50px;
    font-family: 'Sedgwick Ave Display', cursive;
    color: grey;
}
header nav:first-of-type a {
    text-decoration: none;
    font-size: 20px;

}
header nav:first-of-type {
    flex: 1;
    display: flex;
    justify-content: space-around;
    margin-right: 50px;
}
header a {
    color: grey;
    text-decoration: none;
}
footer nav {
    background-color: #f5e1f3;
    width: 1440px;
    height: 100px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: auto;
}
footer a {
    text-decoration: none;
    font-size: 30px;
    color: grey;
    transition: all 0.3s ease;
}
footer a:hover {
    transform: scale(1.4);
}
img {
    width: 300px;
    height: 300px;
    object-fit: cover;
}
main {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-gap: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  .one {
    grid-column-start: 2;
    grid-column-end: 3;
  }
  .four {
    margin-left: 25px;
  }
  .premiere {
    margin-left: 25px;
  }
/* Vos styles existants restent inchangés */

/* Ajoutez ces media queries pour le format tablette et mobile */
/* Vos styles existants restent inchangés */

/* Ajoutez ces media queries pour le format tablette et mobile */
/* Vos styles existants restent inchangés */

/* Ajoutez ces media queries pour le format tablette et mobile */
@media only screen and (max-width: 768px) {
    body, html {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    header {
        width: 100%;
        padding: 10px;
        height: auto;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    header h1 {
        margin: 10px 0;
    }
    header nav:first-of-type {
        flex: none;
        margin: 10px 0;
    }
    header nav:first-of-type a {
        display: block;
        margin: 5px 0;
    }
    main {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .four, .premiere {
        margin-left: 0;
    }

    footer {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* Ajoutez ces media queries pour le format mobile */
@media only screen and (max-width: 480px) {
    header h1 {
        margin-left: 10px;
    }
    header nav:first-of-type {
        margin-right: 10px;
    }
    footer nav {
        width: 100%;
    }
    footer a {
        font-size: 20px;
    }
    img {
        width: 100%;
        height: auto;
    }
    main {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    footer {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}



