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

/* Choix des couleurs */

:root {
    --couleur_principale: black;
    --color_header_footer: white;
}

/* Généralités */

html {
    min-height: 100vh;
    position: relative;
}

nav {
    box-shadow: 0 2px 3px 0 rgba(255, 255, 255, .2);
}

body {
    background-color: rgb(10, 10, 10);
    color: white;
}

footer {
    position: fixed;
    width: 100%;
    bottom: 0;
    z-index: 999;
    box-shadow: 0 -2px 3px 0 rgba(255, 255, 255, .2);
}

/* Taille du logo en entête */

.logo {
    margin-left: 20px;
    height: 50px;
}

/* Partie principale */

main {
    padding: 104px 20px 70px;
}

a {
    text-decoration: none;
}

hr {
    margin: 10px 0;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 1px;
    background: rgba(50, 50, 50, 0.8);
}

.album {
    border: 3px solid black;
    display: flex;
    width: 200px;
    height: 250px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: 3px 3px 6px 3px rgba(0, 0, 0, 0.3);
    margin: 15px;
    background: linear-gradient(45deg, rgba(0, 0, 50, 0.3), white 45%, white 55%, rgba(0, 0, 50, 0.3));
    color: black;
    position: relative;
}

.albumfront {
    width: 15vw;
    height: 15vw;
}

.album div {
    font-size: 2rem;
    margin: 15px 0;
}

.album span {
    text-align: center;
    position: absolute;
    bottom: 10px;
    z-index: 99;
    font-weight: bold;
}

.album .pastille {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--couleur_principale);
    border-radius: 50%;
    color: var(--color_header_footer);
    font-size: 0.7rem;
    z-index: 999;
}

.isdisabled {
    color: currentColor;
    opacity: 0.5;
    text-decoration: none;
    pointer-events: none;
    cursor: not-allowed;
}

.miniature {
    position: absolute;
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, .4);
    border: 3px solid white;
    backface-visibility: hidden;
    top: 42%;
    z-index: 77;
    transform: translateY(-50%) rotateZ(-3deg);
}

/* Boutons des formulaires */

.submitbtn {
    margin: 4px 0;
    padding: 8px;
    border: 2px solid var(--couleur_principale);
    border-radius: 8px;
    min-width: 150px;
    background: var(--couleur_principale);
    color: var(--color_header_footer);
    cursor: pointer;
    font-size: 16px;
    transition: .3s;
    box-shadow: 0 0 2px 0 black inset, 0 0 2px 0 black;
}

.submitbtn:hover {
    background: var(--color_header_footer);
    color: var(--couleur_principale);
}

.valid {
    margin: 4px 0;
    padding: 6px;
    border: 2px solid var(--couleur_principale);
    border-radius: 8px;
    background: var(--couleur_principale);
    color: var(--color_header_footer);
    cursor: pointer;
}

.valid:hover {
    background: var(--color_header_footer);
    color: var(--couleur_principale);
}

/* Elements de formulaire */

fieldset {
    padding: 20px;
    margin: 30px 0;
    border: 2px solid rgba(255, 255, 255, .4);
    border-radius: 8px;
}

fieldset legend {
    padding: 0 15px;
}

.formulaire {
    margin-top: 15px;
}

label {
    margin: 5px 0;
    display: block;
}



figure a {
    max-height: 80%;
}

figure img {
    width: 95%;
}

figure figcaption {
    color: white;
    padding-bottom: 25px;
}


#zonedepot {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    font-size: 2rem;
    min-height: 300px;
    border: 3px dashed black;
    background: rgb(200, 200, 200);
    flex-wrap: wrap;
}

.photo {
    width: 50%;
    position: sticky;
    top: 100px;
    left: 50%;
    z-index: 55;
}

.vignette {
    cursor: pointer;
}

.containervignettes {
    min-height: 540px;
    position: relative;
}

.border-info {
    border: 6px dashed green !important;
}


.corbeille {
    position: absolute;
    top: 15px;
    color: white;
    z-index: 99;
}

.cropperimg {
    cursor: pointer;
    position: absolute;
    top: 55px;
    z-index: 99;
}

.couverture {
    cursor: pointer;
    position: absolute;
    top: 95px;
    z-index: 99;
}

.corbeille, .cropperimg, .couverture, .editfront {
    background: rgba(0, 0, 0, .4);
    padding: 5px;
    right: 10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stylephoto img {
    max-width: 100%;
    filter: drop-shadow(0 0 10px rgb(255, 255, 255, .4));
}

/* conteneur des erreurs de formulaires */

/* style pour les pages 403 et 404 */

.error400 {
    text-align: center;
}

.error400 h1 {
    margin-top: 75px;
    font-size: 5rem;
}

.error400 p {
    font-size: 1.5rem;
    margin: 30px;
}

.error400 img {
    width: 35%;
}

.w-90 {
    max-width: 90%;
}

#revertlandscape, #revertportrait, #revertsquare,.editfront {
    cursor: pointer;
}

.editfront {
    position: absolute;
    top: 155px;  
    right:-15px;  
    z-index: 99;
}

.editfront+div {
    display: none;
}


#sortable {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#sortable li {
    width: 30%;
    text-align: center;
    margin:5px;
}

#sortable li img {
    max-width: 100%;
}

/* media queries */

@media screen and (max-width:992px) {

    .albumfront {
        width: 40vw;
        height: 40vw;
    }

    .modal-dialog {
        max-width: 65%;
    }

    .modal-body {
        padding: 10px 0;
    }

    .photo {
        width: 100%;
        position: static;
    }

    .containervignettes {
        position: static;
        top: 0;
        margin-bottom: 0;
    }
    #sortable li {
        width:50%;
    }

}

@media (min-width: 1200px) {
    .modal-xl {
        --bs-modal-width: 65vw;
    }
}