/* 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;
}

.comp69 {
    padding: 20px;
}

.sem69 {
    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>.Développer,
.COMP5>.Entreprendre,
.S1>.sem1,
.S2>.sem2,
.S3>.sem3,
.S4>.sem4,
.S5>.sem5,
.S6>.sem6 {
    display: grid;
}

/* 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;
}
.bulle:hover {
    filter: opacity(80%);
    transition-duration: 0.4s;
}
/* Le bouton plus d'infos  */
.boutoninfo {
    background: #696D7D;
    color: white;
    border-radius: 20px;
    padding: 10px;
    display: inline-block;
    margin: 5% 0% 0% 30%;
}

.bulle > a {
    display: grid;
    grid-template-rows: 1fr auto;
}

.bulle > a > img {
    align-self: flex-end;

}

.sae {
    margin-top: 0 auto;
}

/* 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;
    display: grid;
    grid-template-columns: auto auto auto auto auto auto auto auto;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    row-gap: 5px;
    /* display: none; */
}
.app > label {
    /* margin: 5px; */
    text-align: center;
}

/* zone de texte  */
.tit {
    padding: 20px 20px 0px 10px;
}

#ajoutfermer > form > div > div:nth-child(6) {
    padding: 20px 20px 20px 10px;
}

#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;
}



/* Le bouton ajouter  */
#ajouter {
    font-family: 'Montserrat', sans-serif;
    font-size: 15pt;
    display: block;
    background-color: #f0dcca;
    border: none;
    border-radius: 20px;
    padding: 20px 50px 20px 50px;
    transform: translate(50%, 80%);
}

/* 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;
}

/* Le filtre des AC  */
.app.comp2>.Comprendre2,
.app.conc2>.Concevoir2,
.app.exp2>.Exprimer2,
.app.dev2>.Développer2,
.app.ent2>.Entreprendre2 {
    display: grid;
}

.app>label {
    display: none;
}

/* 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;
}


/* Charger une image  */
input#fileToUpload {
    display: initial;
    padding: 20px;
}

.upload {
    padding: 20px;
}

#ajoutfermer > form > div > div:nth-child(13) > span {
    color: #d1635b;
}

#fileToUpload {
    background: #cdc6a5;
    border-radius: 30px;
}
input[type="file"]  {
    font-family: 'Montserrat', sans-serif;
}

/* Message d'erreur  */
.erreur {
    background: #d1635b;
    padding: 15px;
    border-radius: 30px;
    text-align: center;
    color: white;
    margin: 40px;
}

/* 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;
}

/* Le bouton retour en arrière  */
.retour {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 20px;
}
body > main > a > div > div {
    color: black;
}
.retour:hover {
    font-weight: bold;
}

.info {
    font-size: 15pt;
}

/* 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% 2% 0%;
}

.ACtitre {
    background: #6f9283;
    margin: 0% 15% 0% 0%;
    border-radius: 0px 90px 90px 0px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.ACtitre:hover {
    background-color: #8d9f87;
    box-shadow: 8px 10px #484c5a;
    transition-duration: 0.4s;
}

.ACtexte {
    padding: 20px 0px 20px 0px;
    text-align: justify;
}

.fermer {
    display: none;
}

.ouvert+.ACtexte {
    display: block;
}

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

.fleche {
    transition-duration: 0.4s;
}

/* Justification des AC  */
.photo {
    text-align: center;
    margin-top: 20px;
}

.txt {
    background-color: #f0dcca;
    padding: 20px 50px 20px 20px;
}

#texte {
    color:white;
}

.ACtexte > .txtflex > .txt1 > a,
.ACtexte > .txtflex > .txt2 > a {
    color: #3a966e;
}
.ACtexte > .txtflex > .txt1 > a:hover,
.ACtexte > .txtflex > .txt2 > a:hover,
.ACtexte > .txt > p > a:hover {
    color: #696D7D;
}

.txt > span,
.txt > p > span,
.txt1 > span,
.txt2 > span,
.txt1 > p > span,
.txt2 > p > span,
div.txtflex > div > ul > li > span {
    color: #3a966e;
}

body > main > div:nth-child(5) > div.ACtexte.fermer > div:nth-child(5) > div > p:nth-child(7) > a {
    color: #3a966e
}
body > main > div:nth-child(5) > div.ACtexte.fermer > div:nth-child(5) > div > p:nth-child(7) > a:hover {
    font-weight: bold;
    transition-duration: 0.4s;
}

.txtflex {
    margin: 20px;
    display: flex;
    gap: 30px;
}

/* Le bouton de suppression des SAE  */

.supp >  form >input {
    display: block;
}

.supp {
    display: flex;
    justify-content: center;
}

body > main > div.supp > form > input[type=submit]:nth-child(2) {
    font-weight: initial;
    font-size: 15pt;
    color: white;
    background: #696D7D;
    padding: 15px 20px 15px 20px;
    border-radius: 30px;
    border: none;
}
body > main > div.supp > form > input[type=submit]:nth-child(2):hover {
    transition-duration: 0.4S;
    background: #d1635b;
}

/* Legende des images  */
.frame {
    
    cursor: pointer;  
    perspective: 500px; 
  }
  .frame img {
    display: inline-block;
    /* width: 40%;
    height: 40%; */
  }

body > main > div:nth-child(4) > div.ACtexte.fermer > div:nth-child(7) > div > img {
    width: 60%;
    height: 60%;
}

body > main > div:nth-child(8) > div.ACtexte.fermer > div.photo > img {
    position: relative;
}

  .frame .details {
    width: 40%;
    min-height: 20%;  
    position: absolute;
    content: "";
    top: 50%;
    left: 50%;
    padding: 20px;
    transform: translate(-50%, -50%);
    transform-origin: 50%;
    background: #cdc6a5;
    border-radius: 50px;
    opacity: 0;
    transition: all 0.4s ease-in;
    text-align: left;
  }
  .frame:hover .details {
    transform: translate(-40%, -50%);
    opacity: 1;
  }

    /* Texte légende  */
.legend {
    font-family: 'Antic Didone', serif;
    display: inline-block;
    font-weight: initial;
    font-size: 30pt;
    margin: 0px 0px 0px 0px;
    color: #000;
}

.textlegend {
    font-family: 'Montserrat', sans-serif;
    color: #000;
}
