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

/* Choix des couleurs */

:root {
    --couleur_principale: black;
    --color_header_footer: white;
    --fond_erreur: pink;
    --color_erreur: crimson;
    --fond_info: rgb(20, 106, 204);
    --color_info: rgb(185, 185, 228);
    --fond_succes: rgb(28, 158, 39);
    --color_succes: rgb(26, 42, 7);
}

/* 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: 200px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    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: 5px solid white;
    backface-visibility: hidden;
}

.miniature:nth-child(3) {
    top: 50%;
    left: 15%;
    z-index: 99;
    transform: translateY(-50%) rotateZ(-10deg);
}

.miniature:nth-child(2) {
    top: 45%;
    left: 17%;
    z-index: 88;
    transform: translateY(-50%) rotateZ(3deg);
}

.miniature:nth-child(1) {
    top: 40%;
    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;
    width: 22%;
    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;
}

input, select {
    display: inline-block;
    font-size: 18px;
    margin: 5px 0;
    border-radius: 8px;
    padding: 6px;
    width: 100%;
    outline: none;
}

input.search {
    font-size: 15px;
    margin: -5px 0 10px 0;
    position: relative;
}

input.search+i {
    color: black;
    position: absolute;
    right: 10px;
    top: 5px;
    width: 15px;
    height: 15px;
    cursor: pointer;
}


figure {
    background: black;
    width: 32vw;
    margin-bottom: 15px;
    height: 32vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    text-align: center;
    padding-top: 25px;
}

figure a {
    max-height: 80%;
}

figure img {
    width: 95%;
    max-height: 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;
}

.preview {
    max-height: 250px;
    margin: 15px 0;
}

.photo {
    position: relative;
}

.corbeille {
    position: absolute;
    top: 15px;
    right: 0;
    background: rgba(0, 0, 0, .5);
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}


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

.cropperimg{
    cursor:pointer;
}

.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{
    cursor:pointer;
}

/* media queries */

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

    .albumfront {
        width: 40vw;
        height: 40vw;
    }
    .modal-dialog {
         max-width: 90%;
    }
    .modal-body {
        padding:10px 0;
    }
}