/* PLAN DU FICHIER 

    Generique
    Entête
    Menu de navigation dans l'entête
    Pour toutes les pages
        CSS formulaire
        CSS des paragraphes et images index.php
        CSS menu lateral
        CSS mention-legal.php
        CSS CV.php
            CSS partie responsive designe du CV
        CSS identification.php
    responsive design global

*/


/* Generique */
*{
    margin: 0px;
}

/* Entête*/
header{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding:15px;
    background-color: #08083F;
    color: #E8E8FC;
    font-family: "Source Serif 4", serif;
    padding-left: 3%;
    padding-right: 3%;
    font-size: 18px;
    z-index: 1000;
}

/* Menu de navigation dans l'entête*/

#nav-horiz{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    font-family: "Source Serif 4", serif;
}

nav a{
    text-decoration: none;
    color: #E8E8FC;
}

nav a:hover{
    text-decoration: underline;
}

.nav_portable{
    display: none;
}

footer{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1%;
    background-color: #08083F;
    padding: 1%;
    padding-left: 3%;
    padding-right: 3%;
    color: #E8E8FC;
    font-family: "Source Serif 4", serif;
}

#nav-footer{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: left;
}

#footer3{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
    gap: 1%;
    fill: #E8E8FC;
}

a svg:hover{
    fill-opacity: 0.4;
}

a svg:visited{
    fill: #E8E8FC;
}

/*------------------------------------------------*/

/* Pour toutes les pages : formatage du corps du 
titre des paragraphes et des listes mais sans la 
couleur ni la police */

body{
    background-color: #E8E8FC;
}

header{
    position: sticky;
    top:0;
    right: 0;
    left: 0;
}

h1{
    font-size: 30px;
    margin-bottom: 2%;
    text-align: center;
    padding: 2%;
}

p{
    text-align: justify;
    font-size: 18px;
}

ul{
    font-size: 18px;
    text-align: justify;
    padding-bottom: 3px;
    padding-top: 3px;
}

ol{
    font-size: 18px;
    text-align: justify;
    padding-bottom: 3px;
    padding-top: 3px;
}

/*------------------------------------------------*/

/* CSS formulaire (present en index.html)*/
label{
    color: #08083F;
}

textarea{
    width: 100%;
    height: 100px;
    resize: none;
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    background-color: #08083F;
    color: #E8E8FC;
}

form{
    display: flex;
    flex-direction: column;
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
}

input{
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    background-color: #08083F;
    color: #E8E8FC;
}

input::placeholder{
    color: #E8E8FC;
    opacity: 0.8;
}

input:invalid{
    color: red;
}

#submit{
    background-color: #E8E8FC;
    color: black;
    align-items: center;
    margin-top: 4%;
    width: 25%;
}

#submit:hover{
    background-color: #08083F;
    color: #E8E8FC;
}

#submit:active{
    background-color: #E8E8FC;
    color: black;
}

#submit{
    width: 50%;
}

.centre{
    display: flex;
    flex-direction: row;
    justify-content: center;
}

/*------------------------------------------------*/

/* CSS des paragraphes et images index.html*/

.section-index1{
    padding: 5%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10%;
}

.section-index2{
    background-color: #08083F;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10%;
    padding: 5%;
}

.section-index2 h1{
    color: #E8E8FC;
}

.texte-index1{
    width: 35%;
    font-family: "Montserrat", sans-serif;
}

.texte-index2{
    width: 35%;
    font-family: "Montserrat", sans-serif;
    color: #E8E8FC;
}

/*------------------------------------------------*/

/* CSS menu lateral */

.sidebar{
    background-color: #08083F;
    color: #E8E8FC;
    font-size: 18px;
    font-family: "Source Serif 4", serif;
    padding-left: 5%;
    padding-top: 4%;
    position: fixed;
    left: 0;
    top: 78px;
    bottom: 0;
    right: 55%;
    z-index: 999;
    display: none;
}

.menu-CB{
    display: inline;
    width: 48px;
    height: 48px;
    position: relative;
    left: -48px;
    opacity: 0;
}

.menu-CB:checked ~ .sidebar{
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content:start;
    gap: 2%;
}

.menu-CB:checked ~ .hamburgerTitle{
    display: block;
}

.hamburgerTitle{
    display: inline;
    font-family: "Source Serif 4", serif;
    font-size: 28px;
    color: #E8E8FC;
    position: relative;
    left: -48px;
    display: none;
}

.hamburgerButton{
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items:center;
}

/*------------------------------------------------*/

/* CSS mention-legal.php */

.ML1{
    font-family: "Montserrat", sans-serif;
    margin-top: 1%;
}
/*------------------------------------------------*/

/* CSS CV.php*/

#tab-contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.contact-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

#tab-contacts p a {
    text-decoration: none;
    color: #08083F;
}

#sideCover{
    width: 40%;
    background-color:#D1D1F9;
    align-self: stretch;
}

#element-presentation{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    color:#08083F;
    padding-top: 3%;
    padding-bottom: 3%;
}

#CVMain{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items:start;
    font-family: "Montserrat", sans-serif;
}

.CVside  h2{
    text-align: center;
    padding-bottom: 2%;
}

.CVside{
    margin-top: 3%;
    width: 70%;
    overflow-wrap:anywhere;
}

#CV1 h1{
    margin: 0px;
    padding-top: 4px;
    padding-bottom: 6px;
}

#CV1 h2{
    text-align: center;
}

#CV1{
    background-color: #2c2c4d;
    color:#E8E8FC;
    size: 20px;
    padding-bottom: 1%;
    padding-top: 0.5%;
    padding-left: 1%;
    padding-right: 1%;
}

#CVContentsMain{
    padding-left: 3%;
    padding-right: 3%;
    padding-top: 1%;
}

h3 strong{
    color:#08083F;
    font-weight: 700;
}

#tab-competences{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: left;
    gap: 15%;
    padding-bottom: 3%;
}

.CVPart{
    padding-top: 1%;
}

h2 + ul{
    list-style-type: none;
}

h2 + ul ul{
    list-style-type: disc;
}

h2 + ul ul ul{
    list-style-type: square;
}

#element-presentation ul{
    padding: 0px;
}

.conteneurCV h3{
    font-size: 21px;
}

/*------------------------------------------------*/
/* CSS partie responsive designe du CV*/
.menu-cv{
    display: flex;
    flex-direction: column;
    gap:0px;
}

.labelDepliantCV{
    font-size: 1.5em;
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    text-align: left;
    background-color: #08083F;
    color: #E8E8FC;
    padding-right: 5%;
    padding-left: 5%;
}

.CVPartMobile{
    padding-right: 10%;
}

.CVPartMobile ~ ul{
    padding-left: 0%;
}

.labelDepliantCV::before{
    content: "▶ ";
}

#depliantCV1:checked + .labelDepliantCV::before{
    content: "▼ ";
}

#depliantCV1{
    opacity: 0;
    width: 0em;
}

#contentCV1{
    display: none;
}

#depliantCV1:checked ~ #contentCV1{
    display: block;
}

/*###################################################*/

#depliantCV2{
    opacity: 0;
    width: 0em;
}

#contentCV2{
    display: none;
}

#depliantCV2:checked ~ #contentCV2{
    display: block;
}

#depliantCV2:checked + .labelDepliantCV::before{
    content: "▼ ";
}

/*###################################################*/

#depliantCV3{
    opacity: 0;
    width: 0em;
}

#contentCV3{
    display: none;
}

#depliantCV3:checked ~ #contentCV3{
    display: block;
}

#depliantCV3:checked + .labelDepliantCV::before{
    content: "▼ ";
}

/*###################################################*/
#depliantCV4{
    opacity: 0;
    width: 0em;
}

#contentCV4{
    display: none;
}

#depliantCV4:checked ~ #contentCV4{
    display: block;
}

#depliantCV4:checked + .labelDepliantCV::before{
    content: "▼ ";
}
/*###################################################*/

/*------------------------------------------------*/
/* CSS identification.php*/
#interface-connexion{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    flex-grow: 1; 
}

#identification1{
    width: 400px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    padding-bottom: 1%;
}

#identification1 p{
    padding-right: 3%;
    padding-left: 3%;
}

#bodyConnexion{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#mainConnexion{
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*------------------------------------------------*/
/* css demonstrateur.php */

#main_demonstrateur{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: center;
    font-size: 18px;
    font-family: "Montserrat", sans-serif;
}

/*################################################*/
/* --- PROJET 1 (SPH) --- */

#projet1{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto 360px; 
    gap: 10px;
    align-items: center; 
    justify-items: center; 
    max-width: 1250px;
    margin: 0 auto; 
    padding-bottom: 3%;
    padding-top: 3%;
}

#projet1-0{
    grid-column: 1/3;
    grid-row: 1/2; 
    text-align: center; 
    align-self: start;
}

#projet1-0bis{
    grid-column: 1/3;
    grid-row: 2/3; 
    text-align: justify; 
    align-self: start;
}

#projet1-1, #projet1-2, #projet1-3 {   
    width: 100%;
    justify-self: stretch;
    max-width: none;
    height: auto; 
}

#projet1 > .videoWrapper:nth-child(4){
    grid-column: 2/3;
    grid-row: 3/4; 
}
#projet1 > .videoWrapper:nth-child(5){
    grid-column: 1/2;
    grid-row: 4/5;
}

#projet1 > .videoWrapper:nth-child(6){
    grid-column: 1/2;
    grid-row: 3/4;
}

#projet1-4{
    grid-column: 2/3;
    grid-row: 4/5;
    max-height: 500px;
}

#projet1-5{
    grid-column: 1/3;
    grid-row: 5/6; 
    width: 100%;
    height: 350px;
    align-self: stretch; 
}

.videoWrapper{
    width: 100%;
    align-self: stretch;
    justify-self: stretch;
}

/*################################################*/
/* --- PROJET 2 (ROBOTIQUE) --- */
.fond{
    background-color: #08083F;
    width: 100%;
    color: #E8E8FC;
    display: flex; 
    align-items: center;
    justify-content: center;
}

#projet2{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 10px;
    align-items: center; 
    justify-items: center; 
    max-width: 1250px;
    margin: 0 auto; 
    padding-bottom: 3%;
    padding-top: 3%;
}

#projet2-0{
    grid-column: 1/3;
    grid-row: 1/2; 
    text-align: center; 
    align-self: start;
    width: 100%;
}

#projet2-1{
    grid-column: 1/3;
    grid-row: 2/3;
    text-align: justify; 
    align-self: start;
    width: 100%;
}

#projet2-2{
    grid-column: 1/2;
    grid-row: 3/4;
    max-width: 600px;
    height: auto;
}
#projet2-3{
    grid-column: 2/3;
    grid-row: 3/4;
    max-width: 600px;
    height: auto;
}

#projet2-4{
    grid-column: 1/2;
    grid-row: 4/5;
    max-width: 600px;
    height: auto;
}
#projet2-5{
    grid-column: 2/3;
    grid-row: 4/5;
    
    height: auto;
}

#projet2 .videoWrapper{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

#projet2 video{
    max-height: 480px;
}

#projet2 .imageWrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/*################################################*/
/* --- PROJET 3 (VERTIBOT) --- */
#projet3{
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center; 
    max-width: 1250px;
    margin: 0 auto; 
    padding-bottom: 3%;
    padding-top: 3%;
    text-align: center;
}

#projet3-1 {
    width: 100%;
    text-align: justify;
}

#projet3-2 {
    max-width: 350px; 
    height: auto;
}

#projet3 .imageWrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#projet3 p{
    text-align: center;
}

/*################################################*/
/* --- SECTION COMPÉTENCES --- */
#competences {
    max-width: 1450px;
    margin: 40px auto; 
    padding: 20px;
    text-align: center;
}

.section-title {
    font-size: 2em;
    margin-bottom: 30px;
    color: #08083F; 
}

.competence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 25px;
    text-align: left;
}

.competence-item {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
}

.competence-item h3 {
    color: #08083F;
    margin-top: 0;
}
/* Responsive design*/

.projet_portable{
    display: none;
}

/*------------------------------------------------*/

/* responsive design */
@media screen and (max-width: 1300px){
    .texte-index1, .texte-index2{
        padding-bottom: 1%;
    }

    .imgIndex{
        width: 70%;
    }

    .texte-index1, .texte-index2{
        width: 70%;
        padding-bottom: 5%;
    }

    .section-index2{
        flex-direction: column-reverse;
    }

    ul{
        text-align: left;
    }

    /* Gestion porte-folio*/
    #projet1, #projet2, #projet3{
        display: none;
    }

    .projet_portable{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: baseline;
        padding: 3%;
        padding-left: 10%;
        padding-right: 10%;
    }

    details{
        padding-top: 3%;
    }

    .PorteFolioContent{
        display: flex;
        flex-direction: column;
        justify-content:flex-start;
        align-items:center;
        gap: 10px;
    }

    .PorteFolioContent video{
        width: 600px;
    }

    .PorteFolioContent iframe{
        width: 600px;
        height : 400px
    }

    .PorteFolioContent .imageWrapper{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .PorteFolioContent .videoWrapper{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
}

@media screen and (max-width: 768px){

    /* General */
    .nav_ordi{
        display: none;
    }

    .nav_portable{
        display: block;
    }

    /* CV */
    #CVMain .nav_portable{
        background-color: #E8E8FC;
        display: flex;
        flex-direction: column;
        justify-content:flex-start;
        min-height: 100dvh;
    }

    .menu-cv {
        display: flex;
        flex-direction: column;
        flex-grow: 1; 
        justify-content: space-around;
    }

    #tab-competences{
        flex-direction: column;
    }

    #CV1{
        background-color:#E8E8FC;
        color: black;
        padding-left: 5%;
        padding-right: 5%;
    }

    .PorteFolioContent video, .PorteFolioContent iframe, .PorteFolioContent figure{
        display: none;
    }
}