* {
    padding: 0px;
    margin: 0px;
}

ul {
    list-style-type: none;
}
html {
    padding: 0px;
    margin: 0px;
}
button,
input[type="submit"],
input[type="reset"],
input[type="text"] {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    width: auto;
    font: inherit;
    cursor: pointer;
    font-family: "roboto";
}

header {
    position: fixed;
    top: 0px;
    left: 0px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: #7bacec;
    font-family: "Arsenal", sans-serif;
    padding-left: 25px;
    padding-top: 15px;
    padding-right: 25px;
    box-sizing: border-box;
    z-index: 2;
    mix-blend-mode: difference;
}

header .logo {
    text-transform: uppercase;
    font-size: 25px;
}

header ul {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.container-index {
    background-image: url(https://lounadriol.com/public/img/DSC00864-Modifier1.jpg);
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: cover;
}

.hero_image {
    height: 75%;
    width: auto;
}

#masonry-grid {
    /* Espace entre les éléments */
    margin: 0 auto;
    height: auto;
    width: 80vw;
}
.grid-sizer,
.grid-item {
    width: 33.333%;
}

.grid-item {
    padding: 10px; /* Espace autour des images */
    box-sizing: border-box;
}

/* Style pour les images */
.grid-item img {
    width: 100%;
    height: auto;
}

/* Définissez la position de chaque image en fonction de son ordre */

.container-admin {
    padding: 100px;
}
.image-actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

input[type="text"] {
    min-width: 1px;
    font-family: "roboto";
    font-weight: 800;
    font-size: 20px;
    width: 40%;
    padding: 20px;
    color: #9d9d9d;
    background-color: #000000;
    opacity: 0.5;
}
.delete-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.grid-item form {
    height: 50px;
    display: flex;
}

.grid-sizer,
.grid-item {
    width: 33.333%;
}
form button {
    padding-right: 20px;
    padding-left: 20px;
}

.update {
    background-color: #1d1d1d;
    font-weight: 700;
    color: white;
    opacity: 0.7;
}
.delete {
    background-color: #bb0104;
    color: white;
    font-weight: 700;
    height: 100%;
}

.modal {
    display: none; /* Caché par défaut */
    position: fixed; /* Reste en place */
    z-index: 3; /* Se situe au-dessus */
    /* Emplacement depuis le haut */

    flex-direction: column;
    justify-content: center;
    align-items: center;
    left: 0;
    top: 0;
    width: 100vw; /* Pleine largeur */
    height: 100vh; /* Pleine hauteur */
    overflow: auto; /* Permet le scroll si nécessaire */
    background-color: rgb(0, 0, 0); /* Couleur de fond */
    background-color: rgba(0, 0, 0, 0.9); /* Noir avec opacité */
    transition: 0.5;
}

.modal-content {
    margin: auto;
    display: block;
    width: auto;
    height: 80vh;
}

.close {
    position: absolute;
    top: 0px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transform: rotate(0deg);
    transition: all 0.7s ease-out;
}

.close:hover {
    position: absolute;
    top: 0px;
    right: 35px;
    transform: rotate(90deg);
    color: #fff;

    font-weight: bold;
    cursor: pointer;
    transition: all 0.5s ease-out;
}

.grid-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.upload-form {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.grid-item.show {
    opacity: 1;
    transform: translateY(0);
}

.upload {
    background-color: #1d1d1d;
    color: white;
    font-weight: 500;
    height: 50px;
}

a:active {
    color: #7bacec;
    text-decoration: none;
}

a {
    color: #7bacec;
    text-decoration: none;
}
a:visited {
    color: #7bacec;
    text-decoration: none;
}
@media screen and (max-width: 960px) {
    .grid-sizer,
    .grid-item {
        width: 50%;
    }
    
    .hero_image {
    height: 50%;
    width: auto;
}

    .container-admin {
        padding: 15px;
        padding-top: 110px;
    }
    input[type="text"] {
        min-width: 1px;
        font-family: "roboto";
        font-weight: 800;
        font-size: 20px;
        width: 40%;
        padding: 20px;
        color: #9d9d9d;
        background-color: #000000;
        opacity: 0.5;
    }

    .modal-content {
        margin: auto;
        display: block;
        width: 90vw;
        height: auto;
    }

    #masonry-grid {
        /* Espace entre les éléments */
        margin: 0 auto;
        height: auto;
        width: 90vw;
    }

    header {
        position: fixed;
        top: 0px;
        left: 0px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        color: #7bacec;
        font-family: "Arsenal", sans-serif;

        padding-top: 15px;
        gap: 10px;

        box-sizing: border-box;
        z-index: 2;
        mix-blend-mode: difference;
    }

    header .logo {
        text-transform: uppercase;
        font-size: 25px;
    }

    header ul {
        display: flex;
        flex-direction: row;
        gap: 20px;
    }

    .image-actions {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .delete {
        background-color: #bb0104;
        color: white;
        font-weight: 700;
        height: 100%;
        width: 100%;
    }

    .upload {
        background-color: #1d1d1d;
        color: white;
        font-weight: 500;
        height: 50px;
        font-size: 12px;
        padding: 5px;
        padding-top: 5px;
    }
}
