/* Accueil  */
body {
    background: white;
    margin: 0;
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    height: 100vh;
}

main {
    padding-bottom: 7%;
}

/* Logo */
header {
    display: flex;
    padding: 10px 0px 0px 10px;
    z-index: 1;
}

/* Bouton  */
.bouton {
    font-size: 15pt;
    background: #8d9f87;
    max-width: 30%;
    padding: 15px 30px 15px 30px;
    border-radius: 30px;
    color: white;
    text-align: center;
}

/* Contenu de l'accueil  */
.texteacc {
    padding: 10% 0% 0% 10%;
}

.carreacc>img {
    width: 100%;
    transform: translate(-30%, 30%);
}

.accueil {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.carreacc {
    background: #8d9f87;
    border-radius: 30px 0px 30px 30px;
    transform: translateY(-16%);
}

/* footer */
footer {
    background: #696D7D;
    padding: 18px 15px 10px 15px;
    color: white;
}
.flexfoot {
    display: flex;
    justify-content: space-between;
}

/* Page avec toutes les SAE  */
/* body  */
.allsae {
    background: #8d9f87;
    margin: 0;
    display: grid;
    grid-template-rows: auto auto 1fr;
    height: 100vh;
}

/* Fond du titre  */
.backtitre {
    background: #cdc6a5;
    padding: 0px 25px 0px 0px;
    grid-column: 2/span 1;
    border-radius: 60px 0px 0px 60px;
}

.titresae {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Le filtre  */
.filtre {
    background: white;
    padding: 5px 0px 30px 40px;
    margin-top: 7%;
}

label {
    background: #cdc6a5;
    padding: 10px 15px 10px 15px;
    color: black;
    border-radius: 20px;
    margin-right: 20px;
}

input[type="checkbox"]:checked + label{
    background: #6f9283;
    padding: 10px 15px 10px 15px;
    color: white;
    border-radius: 20px;
    margin-right: 20px;
}
input[type="radio"]:checked + label{
    background: #6f9283;
    padding: 10px 15px 10px 15px;
    color: white;
    border-radius: 20px;
    margin-right: 20px;
}

input {
    display: none;
}

.comp {
    padding: 20px;
}
.sem {
    padding: 20px;
}

/* Le grid pour le filtre  */
.gridfiltre {
    display: grid;
    grid-template-columns: 30% 1fr;
    align-items: center;
    margin-left: 3.4%;
}

.nomfiltre {
    padding: 0% 0% 0% 5%;
}

/* Le filtre fonctionnement  */
.bulle {
    display: none;
 }
 
 .COMP1 > .comprendre,
 .COMP2 > .concevoir,
 .COMP3 > .exprimer,
 .COMP4 > .developper,
 .COMP5 > .entreprendre,
 .S1 > .sem1,
 .S2 > .sem2 {
     display: block;
 }

/* Les bulles avec les SAE  */
.sae {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin: 6% 0% 3% 8%;
    
}
.bulle {
    background: #f0dcca;
    margin: 20px;
    border-radius: 30px;
    border: solid #FFF;
    max-width: 300px;
}

/* Le bouton plus d'infos  */
.boutoninfo {
    background: #696D7D;
    color: white;
    border-radius: 20px;
    padding: 10px;
    display: inline-block;
    margin: 5% 0% 0% 30%;
}



/* La taille des images dans les bulles  */
.sae {
    margin-top: 0 auto;
}


.sae101>img {
    width: 250px;
    margin: 11px 10px 10px 10px;
}
.sae102>img {
    width: 300px;
    margin: 18px 10px 10px 10px;
}
.sae103>img {
    width: 340px;
    margin: 7px 10px 10px 10px;
}
.sae104>img {
    width: 300px;
    margin: 23px 10px 10px 15px;
}
.sae105>img {
    width: 350px;
    margin: 29px 10px 10px 10px;
}
.sae106>img {
    width: 250px;
    margin: 4px 5px 10px 20px;
}
.sae201>img {
    width: 300px;
    margin: 5px 10px 10px 20px;
}
.sae202>img {
    width: 280px;
    margin: 8px 10px 10px 20px;
}
.sae203>img {
    width: 350px;
    margin: 22px 50px 10px 5px;
}
.sae204>img {
    width: 320px;
    margin: 25px 50px 20px 5px;
}
/* La légende des bulles  */
.resumsae {
    background: white;
    border-radius: 0px 0px 26px 26px;
    padding: 10px;
}

/* La légende de la SAE 202  */
.compsaeflex {
    display: flex;
    justify-content: space-evenly;
}

.compsae3 {
    text-align: right;
}

/* Le formulaire  */
select {
    background: #cdc6a5;
    border: none;
    padding: 10px 15px 10px 15px;
    border-radius: 10px;
    margin-right: 20px;
}

.app {
    padding: 20px;
}

/* zone de texte  */
#ajoutfermer > form > div > div.tit > label > input {
    display: initial;
    background: transparent;
    border: solid #cdc6a5;
    padding: 10px 50px 10px 10px;
    border-radius: 10px;
    font-size: 12pt;
}
#ajoutfermer > form > div > div.tit > label > input:hover {
    border: solid #6f9283;
}

#ajoutfermer > form > div > div.tit > label {
    background: transparent;
}

/* L'image upload  */
input#fileToUpload {
    display: initial;
    padding: 20px;
}

#ajoutfermer > form > div > div.upload > input[type=submit]:nth-child(2) {
    display: initial;
}

/* Le bouton pour upload une image  */

/* Le bouton  d'ajout de SAE  */

.boutonform {
    display: flex;
    justify-content: space-evenly;
    cursor: pointer;
    margin-bottom: 6%;
}
.ajoutbout{
    background: #f0dcca;
    padding: 20px 80px 20px 80px;
    font-size: 20pt;
    border-radius: 40px;
}

/* La classe fermer sur le formulaire  */
.b {
    background: #FFF;
    padding: 5px 0px 30px 40px;
    margin-top: 7%;
}
.ajoutfermer {
    display: none;
}

/* Le bouton pour fermer le formulaire  */
.boutonferm {
    display: none;
    cursor: pointer;
    justify-content: space-evenly;
    margin-bottom: 6%;
}

.ajoutboutferm {
    background: #696D7D;
    padding: 20px 80px 20px 80px;
    font-size: 20pt;
    border-radius: 40px;
    color: white;
}

/* Page d'explication des SAE  */
/* le header  */
.headexp {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-right: 30px;
}

.carrexp {
    position: relative;
    background: #8d9f87;
    border-radius: 0px 30px 30px 30px;
    transform: translateY(-30%);
}
/* Les images du header  */
.carrexp>img:nth-child(2) {
    position: absolute;
    top: 30%;
    left: 50%;
    width: 50%;
}
.carrexp>img:nth-child(1) {
    width: 80%;
    transform: translate(50%, 30%);
}

.compexp {
    font-family: 'Montserrat', sans-serif;
    font-size: 12pt;
    background-color: #8d9f87;
    color: white;
    padding: 10px 20px 10px 20px;
    border-radius: 20px;
    border: none;
    margin: 0% 0% 3% 70%;
}

.textdroite {
    margin: 0% 0% 0% 25%;
    text-align: justify;
}

/* Les ressources et les livrables  */
.detailexp {
    background-color: #8d9f87;
    padding: 20px 30px 20px 20px;
    border-radius: 60px 0px 0px 60px;
    color: white;
    display: flex;
    justify-content:end;
    margin: 5% 0% 5% 50%;
}

.grandAC {
    margin: 0% 0% 5% 0%;
    cursor: pointer;
}

.ACtitre {
    background: #6f9283;
    margin: 0% 15% 0% 0%;
    border-radius: 0px 90px 90px 0px;
    display: flex;
    align-items: center;
}
.ACtitre:hover {
    background-color: #8d9f87;
    box-shadow: 8px 10px #484c5a;
    transition-duration: 0.4s;
}

.ACtexte {
    padding: 20px;
}

.fermer {
    display: none;
}

.ouvert + .ACtexte{
    display: block;
}

.ouvert .fleche {
    transform: rotate(180deg);
}

.fleche {
    transition-duration: 0.4s;
}