*,
::before,
::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

}

body {
    width: 100%;
    height: 100vh;
    background-color: #f1e8de;
    font-family: roboto, Tahoma, Geneva, Verdana, sans-serif;
}

/*__________________NAV_________________________*/
nav {
    position: relative;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f28407;
    border-bottom: 1px solid #c2946c;
}

nav .title {
    color: #fff;
    padding-left: 25px;
    font-size: 2em;
}



.liste {
    height: 100%;
    list-style: none;
    padding: 10px;
    margin: 40px;
    font-weight: 500;
}

.liste li {
    float: left;
    width: 250px;
    list-style: none;
}

.liste li img {
    position: absolute;
    top: 20px;
    width: 30px;
    color: #f5f0f0;
}


.liste li a:link,
.liste li a:visited {
    display: block;
    color: #111;
    background-color: #f28407;
    padding-right: 65px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px 25px 15px 25px;
    border-right: 2px solid #fff;
    font-family: Tahoma;
    transition: 0.5s;
}

.liste li:nth-child(1) {
    border-left: 2px solid #fff;

}

.liste sousMenu li:nth-child(1) {
    border-radius: none;
}

.liste li a:hover {
    color: #fa5731;
    cursor: pointer;
    background-color: #fff;
}

.liste li a:active {
    color: #f28407;
    background-color: #fff;
    transform: translateY(2px);
}

.liste .sousMenu {
    list-style-type: none;
    display: none;
    padding: 0;
    margin: 0;
    position: absolute;
    z-index: 1000;
}

.liste .sousMenu li {
    float: none;
    margin-top: 1px;
    border-top: 1px solid #f5f0f0;
    border-left: 2px solid #f5f0f0;
    background-color: #f28407;
}

.liste .sousMenu li a:link,
.liste .sousMenu li a:visited {
    display: block;
    color: #f5f0f0;
    text-decoration: none;
    background-color: #f28407;

}

.liste .sousMenu li a:hover {
    background-color: #f5f0f0;
    color: #f28407;
}

.liste li:hover .sousMenu {
    display: block;
}



/*************MEDIA 780px******************************/
@media screen and (max-width: 780px) {
    .accueil {
        position: relative;
    }

    .accueil .droite {
        display: none;
    }

    .accueil .gauche .title {
        position: absolute;
        top: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
        font-size: 3em;
    }

    nav .parrain,
    nav .admin {
        display: none;
    }

    .liste {
        height: 100%;
        padding: 0px;
        margin: 0px;
        font-size: 0.6em;
    }

    .liste li {
        width: 100px;
    }

    nav .title {
        display: block;
        font-size: 1.2em;
    }

    .formulaire {
        position: relative;

    }

    .formulaireGauche,
    .formulaireGauche img {
        position: fixed;
        left: -500px;
    }

    .formulaire h1 {
        display: none;

    }

    #admin h1 {
        transform: scale(0.7);
    }

    #admin .formAdmin,
    #admin .formAdmin form input {
        width: 400px;

    }

    .formSelection {
        height: 10%;

    }

    .selection {
        position: relative;
        padding-top: 40px;

    }

    .selection label {
        position: absolute;
        top: -10px;
        width: 100vw;
    }

    .selection,
    .classe_select,
    .annees_select {
        scale: 0.8;
        margin-left: -15px;
    }

    .selection .annees_select .annee_select {
        height: 55px;
        width: 100%;
        scale: 0.9;
    }

    .success {
        margin-left: 70px;
    }

    .ajoutSupTitle,
    .formulaireAjout h2 {
        font-size: 0.8em;
    }

    .formulaireAjout h2 {
        position: fixed;
        top: 350px;
        left: 50%;
        transform: translateX(-50%);
    }

    .formulaireAjout h3 {
        font-size: 0.8em;
        color: #f28407;
        margin-top: 20px;
    }



    .form_download {
        scale: 0.6;
    }

    .formulaire {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .formulaire aside,
    .formulaire .btn {
        margin-left: 200px;
    }


    .formulaire .galerieFamilleGauche img {
        scale: 0;
    }

    .formulaire .galerieFamilleDroit {
        top: -1000px;
        left: -50px;
    }

    .formulaire .galerieFamilleDroit .listeExpo {
        display: flex;
        justify-content: center;
        margin-top: 1500px;
    }

    .formulaire .galerieFamilleDroit .titre {
        position: absolute;
        top: 0;
        width: 100%;
        height: 10%;
        font-size: 2em;
        background-color: #fff;
        color: #333;
    }

    .formulaire .galerieFamilleDroit .liste {
        position: fixed;
        left: -160px;
        width: 20vw;
    }

    .formulaire .galerieFamilleDroit aside {
        position: absolute;
        display: block;
        top: 400px;
        left: -150px;
        width: 50%;
    }

    .formulaire .galerieFamilleDroit button {
        display: block;

    }

    .formulaire .galerieFamilleDroit .btn {
        position: relative;
        top: 0;
        right: 400px;
    }

    .galerieFamilleDroit .titre {
        display: none;
    }

    .formulaire .consignes {
        font-size: 2em;
    }

    .formulaire .demandeParrainageParagraphe h2 {
        display: none;
    }

    .formulaire .demandeParrainageParagraphe {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 20px;
    }

    .ajoutGauche .title h2 {
        font-size: 0.8em;
    }

    .ajoutGauche .classe_select,
    .annees_select {
        margin-right: 2px;
    }

    .form_download {
        display: flex;
        flex-direction: column;
    }

    #supp h2 {
        display: none;
    }

    #supp .tableID {
        display: none;
    }

    .parrainDemande {
        display: none;
    }

    .demandeParrainageParagraphe {
        flex-direction: column;
    }

    .formulaireAjout .titre h2 {
        display: none;
    }

    .galerieFamilleDroit form,
    .parrainInfo {
        position: relative;
        height: 10;
    }

    .parrainInfo {
        top: 200px;
        left: 40px;
    }

    .galerieFamilleDroit form {
        top: 250px;
        left: 0;
        width: 100%;
        scale: 0.8;
    }





    .formulaire .galerieFamilleDroit .parrainInfo .formParrain {
        position: absolute;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
    }

    .galerieFamilleDroit .modalBox {
        position: absolute;
        bottom: -200px;
        left: 50%;
    }

    .galerieFamilleDroit .modalBox button {
        position: fixed;
        top: 80%;
        left: 50%;

    }

    .formulaireGauche img {
        display: none;
    }

    .formulaire .galerieFamilleGauche .imgModif {
        position: relative;
        scale: 1;
        top: 45%;
    }

    #admin {
        position: relative;
    }

    #gestion {
        position: absolute;
        left: 10px;
        width: 200vw;
    }

    #admin h1 {
        scale: 0.8;

    }

    #admin .adminTitre {
        scale: 0.6;
        top: -20px;
    }

    #admin .formAdmin {
        scale: 0.8;
    }

    #hautPage h1 {
        font-size: 1em;
    }

    #chevron {
        position: fixed;
        top: 110px;
        left: 80vw;
        font-size: 2em;
        color: #f28407;

    }

    #boxModale #modale a {
        width: 100px;
        scale: 0.5;
    }

    #boxModale #modale .btn1,
    #boxModale #modale .btn2 {
        position: absolute;
        bottom: 10%;

    }

    .listeFamille {
        position: absolute;
        left: 0;
    }

    .gestionParrains nav {
        width: 1000px;
        display: flex;
        justify-content: space-between;
    }

    #hautPage h1 {
        font-size: 3em;
        width: 1000px;
        margin-top: 150px;
    }
}


/*************FIN MEDIA 780px******************************/


/* _______________Page ACCUEIL_______________*/
.accueil {
    position: relative;
    width: 100%;
    height: 95vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.accueil h1 {
    position: absolute;
    top: 20px;
    left: 10px;
}

.accueil .title {
    font-size: 9em;
    color: #f28407;
    align-items: center;
    font-family: "Salsa", cursive;
    font-weight: 700;
}

.accueil aside {
    position: absolute;
    width: 200px;
    height: 50px;
    margin-bottom: 10px;
    margin-top: 50px;
    right: 58%;
}

.accueil aside span {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    width: 150px;
}

.accueil aside span hr {
    width: 150px;
    font-weight: 700;
    margin-bottom: 5px;
}

/*****************MEDIA 781 px à 1200px********************************/
@media screen and (min-width: 781px) and (max-width: 1200px) {
    .accueil .droite {
        scale: 0.8;
        height: 100%;
    }

    .accueil .title {
        font-size: 3em;
        margin-top: 50%;
    }

    .liste {
        height: 100%;
        padding: 0px;
        margin: 0px;
        font-size: 0.9em;
    }

    .liste li {
        width: 150px;
    }

    .formulaireGauche img {
        display: none;
    }

    .formulaireGauche {
        position: fixed;
        height: 30%;
        top: 500px;
    }

    .formSelection {
        height: 10%;

    }

    .formulaire .galerieFamilleDroit .titre h1 {
        display: none;
    }

    .galerieFamilleDroit .btn {
        margin-top: 80px;
    }

    .selection {
        position: relative;
        padding-top: 40px;

    }

    .selection label {
        position: absolute;
        top: -10px;
        width: 100vw;
        margin-left: 100px;
    }


    .ajoutSupTitle,
    .formulaireAjout h2 {
        font-size: 0.8em;
    }

    #admin {
        position: relative;
    }

    #gestion {
        position: absolute;
        left: 10px;
        width: 200vw;
    }

    #chevron {
        display: none;
    }
}

/***********************MEDIA 1350 px********************/
@media screen and (min-width:1201px) and (max-width:1350px) {

    .consigne {
        display: none;
    }
}

.galerie_de {
    margin-left: 5%;
    margin-top: 10px;
}

.galerie_de p {
    font-size: 2em;
    color: #f28407;
}

.accueil h1 {
    top: 80px
}

/*______________________FORMULAIRE_________________*/
.formulaire {
    position: relative;
    width: 100%;
    height: 95vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.formulaire .galerieFamilleGauche {
    position: relative;
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.formulaire .galerieFamilleGauche img {
    width: 60%
}

.formulaire .galerieFamilleGauche .imgModif {
    width: 80%;
    height: 100vh;
    margin-top: 50%;
    transform: translatey(-50%);
    background-size: cover;
    background-size: contain;
    background-repeat: no-repeat;
}

.formulaire .galerieFamilleDroit {
    position: relative;
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.formulaire .galerieFamilleDroit .listeExpo {
    position: relative;
    top: 150px;
    width: 350px;
    height: 100vh;
    border: 2px solid #f28407;
    border-radius: 10px;
    background-color: #d8d1cb;
}

.formulaire .galerieFamilleDroit .liste a {
    padding-left: 20px;
    font-size: 2em;
    color: #f28407;
    text-decoration: none;
}

.formulaire h1 {
    position: absolute;
    top: 20px;
    right: auto;
    color: #f28407;
    font-size: 3em;
}

.formulaire form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

}

.formulaire form label {
    font-size: 1.5em;
    color: #fa5731;
    margin-right: 20px;
}

.formulaire form input,
.formulaire select,
.formulaire option,
.formulaire textarea {
    margin-bottom: 20px;
    padding: 10px;
    width: 300px;
    padding-top: 20px;
    border: none;
    border-bottom: 2px solid #655c52;
    border-radius: 5px 5px 0 0;
    background-color: transparent;
    color: #1c1b1b;
    font-weight: 500;
    font-size: 1.2em;
    transition: 0.5s;
}

.formulaire form input:hover {
    border-bottom: 2px solid #fa5731;
    cursor: pointer;
    font-size: 1em;
}

.formulaire form input:hover::placeholder {
    position: absolute;
    color: #fa5731;
    transition: 0.3s;
    transform: translatey(-20px);
    z-index: 100;
}

.formulaire form textarea {
    width: 400px;
    height: 150px;
    margin-bottom: 20px;
    padding: 20px;
    border: none;
    border-bottom: 1px solid #655c52;
    border-radius: 5px 5px 0 0;
    background-color: transparent;
    cursor: pointer;
    transition: 0.5s;
}

.formulaire form textarea:hover {
    border-bottom: 2px solid #fa5731;
    background-color: #fff;
    cursor: pointer;
}

.formulaire form textarea:hover::placeholder {
    color: #fa5731;
    transition: 0.5s;
    transform: translatey(-10px);
}

.formulaire form button {
    margin-top: 50px;
    margin-bottom: 50px;
    width: 170px;
    height: 50px;
    font-size: 2em;
    color: #f28407;
    border: 1px solid #f28407;
    border-radius: 10px;
    cursor: pointer;
    background-color: transparent;
    transition: 0.3s;
}

.formulaire .btn {
    position: absolute;
    top: 60%;
    right: 50%;
    transform: translateX(50%);
    width: 320px;
    height: 50px;
    font-size: 1.5em;
    color: #f28407;
    border: 1px solid #f28407;
    border-radius: 10px;
    cursor: pointer;
    background-color: transparent;
    transition: 0.5s;
}

.formulaire form button:hover {
    background-color: #f28407;
    color: #fff;
    width: 180px;
}

.formulaire .btn:hover {
    background-color: #f28407;
    color: #fff;
    width: 350px;
}

.formulaire .demandeParrainageParagraphe {
    border: 1px solid #f28407;
    border-radius: 10px;
    background-color: #d8d1cb;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, .2);
    padding: 40px;
    font-size: 1.2em;
    line-height: 2;
}

/*____________ Ajout/supp GAUCHE_______________*/
/* ---------------------tritre---------------*/
.ajoutSupTitle {
    position: relative;
    width: 100%;
    height: 100px;
}

.ajoutSupTitle h1 {
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    color: #f28407;
    font-size: 3em;
}

/*---------------Retour----------------*/

.retour {
    margin-top: 30px;
    margin-left: 25px;
    font-size: 1.5em;
    z-index: 1000;
}

.retour a {
    cursor: pointer;
}

.retour a:hover {
    color: #fa5731;
}


/*-----------------formulaire ajout------------*/
.formulaireAjout {
    position: relative;
    display: flex;
    justify-content: center;
}

.formulaireAjout .ajoutGauche {
    margin-top: 200px;
}

.formulaireAjout .ajoutGauche .title,
.formulaireAjout .ajoutGauche .title span h2 {
    position: relative;
    display: flex;
    color: #f28407;
    font-size: 2em;
    text-align: center;
}

.formulaireAjout .ajoutGauche p {
    margin-top: 20px;
    font-size: 1.5em;
    text-align: center;
}

.formulaireAjout .ajoutGauche .selection {
    margin-top: 20px;
}

.formulaireAjout .ajoutGauche .selection h2 {
    margin-right: 10px;
    display: flex;
}

.formulaireAjout .ajoutGauche .selection h2 span {
    font-size: 1.5em;
    margin-left: 10px;

}

.formulaireAjout .ajoutGauche .selection .classe_select {
    width: 200px;
    border-radius: 10px;
}

.formulaireAjout .ajoutGauche .selection .annees_select {
    width: 200px;
    height: 40px;
    border-radius: 10px;

}


.formulaireAjout .ajoutGauche .form_download {
    margin-top: 50px;
    padding: 20px;
    border: 2px solid #f28407;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.formulaireAjout .ajoutGauche .form_download input[type="file"] {
    font-size: 1.5em
}


.formulaireAjout .ajoutGauche .form_download input[type="submit"] {
    font-size: 2em;
    font-style: italic;
    background-color: #f28407;
    color: #f1e8de;
    cursor: pointer;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    margin-left: 30px;
    font-weight: 700;
    box-sizing: border-box;
    transition: 0.3s;

}

.formulaireAjout .ajoutGauche .form_download input[type="submit"]:hover {
    background-color: #f1e8de;
    color: #f28407;

    border: 3px solid #f28407;
}

/*________________Galery des autres_____________*/
.photoSelect {
    margin-top: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.photoSelect h1 {
    color: #f28407;
}

/*___________ERROR/SUCCESS__________*/
.error,
.errorAdmin,
.succes,
.successOk {
    text-align: center;
    color: #fa0404;
    margin-top: 30px;
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 1.8em;
    padding: 0 30px 0 30px;
    visibility: hidden;
    animation: 10s slidein;
}

.errorAdmin {
    position: absolute;
    top: 200px;

}

.errorParrain {
    position: relative;
    margin-top: 550px;
    margin-bottom: 50px;
    font-size: 1.5em;
    text-align: center;
    color: #fa0404;
}

.success {
    color: green;
}

.successOk {
    font-size: 1em;
    color: green;
}

@keyframes slidein {
    0% {
        transform: scaleX(0);
        visibility: visible;
    }

    50% {
        transform: scaleX(1);
        opacity: 1;
    }

    80% {
        transform: scaleX(1);
    }

    100% {
        transform: scaleX(1);
        opacity: 0;
    }
}

/******************Fin error, success***************/

.traiVertical hr {
    width: 5px;
    height: 100%;
    background-color: #f28407;
}







/*____________ Ajout/supp DROIT_______________*/
#supp .titre,
#hautPage {
    display: block;
    margin-top: 20px;
    margin-bottom: 50px;
    color: #f28407;
    font-size: 1.2em;
    text-align: center;
}

#supp .titre h2 span {
    font-size: 1.8em;
}

#supp thead {
    background: #f5f0f0;
}

#supp table th {
    border: 1px solid #f28407;
    padding: 10px 40px;
    color: #f28407;
    font-size: 1.2em;
}

#supp table td {
    border: 1px solid #f28407;
    padding: 15px 40px;

}

#supp .infoPhoto {

    color: #f28407;
}

#supp .imgPhoto {
    width: 50px;
    height: 50px;
    background-size: 50px;
    margin: 5px 50px;
}

#supp .IdPhoto {
    color: #f28407;
    text-align: center;
}

#supp tbody a {
    width: 200px;
    text-align: center;
    color: #fa5731;
    text-decoration: none;
    font-size: 1.1em;
}

#supp tbody td a:hover {
    color: #706f6f;
}

#supp tbody tr:hover {
    background: #f5f5f5;

}

.supprimer {
    background-color: #f28407;
}



#galerieAdmin {
    display: flex;
    justify-content: center;
}

.titre a {
    position: absolute;
    top: 150px;
    left: 50px;
    font-size: 1.5em;
}

.selection h3 {
    margin-right: 10px;
}


/*****************Gallery parrain***************/
.galleryParrain {
    display: flex;
    flex-wrap: wrap;
    position: relative;
}



.itemParrain img {
    width: 100px;
    height: 100px;
    margin: 5px;

}

.itemParrain img:hover {
    position: absolute;
    top: 250px;
    left: 50%;
    z-index: 1000;
    transform: scale(5);
}

/******************ModalParrainnage****************/
.formulaire .modalBox {
    display: flex;
    justify-content: center;
    align-items: center;

}

.formulaire .modalBox button {
    position: absolute;
    right: 50px;
    width: 150px;
    height: 100px;
    padding: 5px 20px;
    font-size: 1.2em;
    font-weight: 700;
    color: #f28407;
    border-color: #fa5731;
    border-radius: 45%;
    cursor: pointer;
}

.formulaire .modalBox .modal {
    position: absolute;
    top: 500px;
    position: fixed;
    opacity: 0;
    visibility: hidden;
    border: 2px solid #fa573e;
    border-radius: 10px;
    padding: 10px 30px;
    color: #706f6f;
    box-shadow: 10px 10px 20px #c7c5c4;
    background: #f5f5f5;
    line-height: 35px;
    transition: 0.4s;
}

.formulaire .modalBox .modal span {
    font-size: 2em;
}

.formulaire .modalBox .modal h3 {
    font-weight: 400;
}

.formulaire button:focus+.modal {
    opacity: 1;
    visibility: visible;
    cursor: pointer;
}

.formulaire .parrainInfo h3 {
    font-weight: 300;
    color: #fa5731;
}

.formulaire .parrainInfo h3 span {
    font-weight: 500;
}

.formulaire .nbPhoto {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
    color: #f28407;
    font-size: 2em;
}

.formulaire .nbPhoto a {
    text-decoration: none;
    margin-top: 20px;
    padding: 0 20px;
    font-size: 1.2em;
    color: #f28407;
    border: 1px solid #f28407;
    border-radius: 10px;
    margin-left: 50px;
    cursor: pointer;
}

.formulaire .nbPhoto a:hover {
    background-color: #f28407;
    color: #fff;
}

/**************ADMIN*****************************/
#admin {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    color: #f28407;
}

#admin h1,
#admin h3 {
    position: absolute;
    top: 50px;
    display: block;
    font-size: 3em;
}

#admin #admin .formAdmin {
    display: flex;
    justify-content: center;
    width: 600px;
    padding: 30px;
    border-radius: 10px;
    background-color: #f5f5f5;
    box-shadow: 0px 0px 10px #c7c5c4;
}

#admin .formAdmin input {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 500px;
    margin: 5px 20px;
    padding: 20px;
    border-radius: 10px;
    background-color: #f5f5f5;
    box-shadow: 0px 0px 10px #c7c5c4;
    cursor: pointer;
}


#admin .formAdmin form input:hover {
    border-bottom: 2px solid #fa5731;
    cursor: pointer;
    font-size: 1em;
}

.formAdmin form input:hover::placeholder {
    position: absolute;
    color: #fa5731;
    transition: 0.3s;
    transform: translatey(-20px);
    z-index: 100;
}

.formAdmin form input[type="submit"] {
    margin-top: 20px;
    width: 150px;
    height: 50px;
    padding: 5px 20px;
    font-size: 1.2em;
    font-weight: 700;
    color: #f28407;
    border-color: #fa5731;
    border-radius: 15px;
    cursor: pointer;
}

.formAdmin form input[type="submit"]:hover {
    color: #5a5959;

}

.formAdmin form button[type="submit"] {
    width: 150px;
    height: 50px;
    margin-top: 20px;
    color: #f28407;
    border: 1px solid #f28407;
    font-size: 1.5em;
    font-weight: 700;
    border-radius: 15px;
    cursor: pointer;
}

.formAdmin form button[type="submit"]:hover {
    background-color: #f28407;
    color: #fff;
}

/*****************gestion table****************/
#admin #gestion table,
th,
td {
    padding: 02px 20px;
    border: 1px solid black;
    border-collapse: collapse;
}

#admin #gestion a {
    outline: none;
    text-decoration: none;
    color: #706f6f;
}

#admin #gestion a:hover {
    color: #fa5731;
}

#admin #gestion .action {
    color: #fa5731;
}

/*___________________@media screen____________*/

/*--------------------MAX-WIDTH 1080px----------------*/



/*____________________Masonry__________________*/
.grid {
    column-count: 3;
}

.selection p input {
    font-size: 1em;
    padding: 3px 5px;
}


.famille h1 {
    font-size: 2em;
}

/*--------------------MAX-WIDTH 480px----------------*/
@media screen and (max-width: 480px) {
    .accueil .title {
        display: none;
    }

    .accueil {
        display: block;
    }

    .accueil img {
        width: 120%;
    }

    .accueil aside {
        right: 10%;
        top: 60%;
    }
}




/*_________________famille index _________________*/
.famille h1 {
    font-size: 1.5em;
}

.famille .galerieFamilleGauche {
    display: none;
}

.famille .galerieFamilleDroit {
    width: 100%;
}

/*______________gallery Masonry + Modale_____________*/
#grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 500px));
    grid-auto-rows: 350px;
    gap: 5px;
    height: 85vh;
    overflow-y: scroll;
    padding-right: 10px;
    grid-auto-flow: dense;
}

#grid::-webkit-scrollbar {
    background-color: #dedede;
    width: 10px;
}

#grid::-webkit-scrollbar-thumb {
    background-color: #757575;
}

.grid-item {
    background-position: top;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}



.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.grid-item:hover {
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    z-index: 2;
    /*bug correction */
}

.grid-img:hover {
    transform: scale(1.2);
}

#popup-bg {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 3;
    justify-content: center;
    align-items: center;
}

#popup-bg.active {
    display: flex;
}

#popup-content {
    max-width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#popup-img {
    width: 100%;
    height: auto;
}

#popup-close {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#popup-close:hover {
    background-color: orange;
}

/**************************SELECTION ************************/
.selection {
    display: flex;
    justify-content: center;
    margin: 20px;

}

.selection label {
    color: #f28407;
    font-size: 1.5em;
    margin-right: 50px;
}

.selection select {
    margin-right: 20px;
    color: #f28407;
    cursor: pointer;
    border: 2px solid #f28407;
    border-radius: 10px;
    width: 100px;
}

.selection p input {
    width: 100px;
    height: 100%;
    color: #f28407;
    border: 2px solid #f28407;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
}

.selection p input:hover {
    background-color: #f28407;
    color: #dedede;
}

/********************Modale Supp**********************/
#boxModale {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(55, 55, 55, 0.5);

}

#modale {
    background-color: #ecf0f1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 30px;
    border-radius: 6px;
    width: 700px;
    max-width: 80%;
    height: 500px;
    text-align: center;
    color: #f28407;
    box-shadow: 3px 5px 50px #111;
}

#modale p,
#modale h1 {
    font-size: 1.5em;
    font-weight: 700;
    padding-top: 50px;
}

#modale h1 {
    font-size: 2em;
}

#modale a {
    color: #111;
    text-decoration: none;
    border: 1px solid #f28407;
    border-radius: 15px;
    padding: 10px 15px;
    cursor: pointer;
}

#modale .btn1 {
    position: absolute;
    bottom: 25px;
    left: 50px;
    width: 150px;
}

#modale .btn2 {
    position: absolute;
    bottom: 25px;
    right: 50px;
    width: 150px;
}

#modale .btn1:hover,
#modale .btn2:hover {
    background-color: #f28407;
    color: #fff;
}