/****************** 
General 
*******************/
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
}

html, body{
    font-family:"Jost", sans-serif;
    font-size:19px;
    width:100%;
    margin:0;
    padding:0;
}

section{
    width:100%;
    padding:50px 10px;
}

.container{
    padding:30px 50px;
    max-width:1100px;
    margin:0 auto;
}

footer{
    text-align:center;
}

section:nth-of-type(odd){
    background-color: white;
}

section:nth-of-type(odd) .color{
    background-color: #FAFAFA;
}

section:nth-of-type(even){
    background-color: #FAFAFA;
}

section:nth-of-type(even) .color{
    background-color: white;
}

h2{
    text-align:center;
    text-transform: uppercase;
    color:#002060;
    font-size:40px;
    margin:20px 0;
}

h3{
    font-size:30px;
    margin-top:10px;
}

h4{
    font-size:25px;
    margin-top:10px;
}

button{
    background-color:#6592E6;
    padding:10px 20px;
    text-align:center;
    font-size:20px;
    color:white;
    border:0 white solid;
    display:block;
    margin:0 auto;
    text-align:center;
}

a{
    text-decoration: none;
}

a button{
    color: white;
}

@media (max-width: 900px){
    h2 {
        font-size: 28px;
    }

    .container{
        padding: 20px 15px;
    }
}




/****************** 
Navigation
*******************/
#main-nav{
   background-color:white;
   border-bottom: 1px solid #CDCDCD;
   padding:2px;
   display:flex;
   width:100%;
   justify-content:space-between;
   position:fixed;
}

#logo{
    height:60px;
    margin:5px;
    width:auto;
}

#nav{
    display:flex;
    justify-content:flex-end;
    gap:30px;
    align-items:center;
    padding-right:30px;
}

#nav a{
    text-decoration:none;
    color:#394599;
}

/* Menu burger */
#burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-right: 15px;
}

#burger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #394599;
    margin: 5px 0;
    transition: 0.3s;
}

/* Bascule vers le menu burger sur mobile */
@media (max-width: 768px) {
    #burger {
        display: block;
    }

    #nav {
        display: none;
        position: absolute;
        top: 70px;             
        right: 0;
        left: 0;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-bottom: 1px solid #CDCDCD;
    }

    #nav.open {
        display: flex;
    }

    #burger.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    #burger.open span:nth-child(2) {
        opacity: 0;
    }
    #burger.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/****************** 
Présentation
*******************/
#fullscreen{
    height:600px;
    width:100%;
    margin:0;
    padding:0;
    color:white;
    display:flex;
    justify-content:center;
    align-items:center;
    background-attachment: fixed;
    background-repeat: no-repeat; 
    background-size:cover;
    flex-direction:column;
}

#fullscreen h1{
    font-size:70px;
}

#fullscreen p{
    font-size:30px;
}

#presentation{
    display:flex;
    justify-content:center;
}

#header-title{
    margin:30px;
}

@media (max-width: 900px){
    #fullscreen h1 {
        font-size: 38px;
    }
    #fullscreen p {
        font-size: 20px;
        text-align: center;
        padding: 0 15px;
    }
}

/****************** 
Expériences professionnelles
*******************/

#experiences{
    flex-direction:column;
}

.experience{
    display: flex;
    align-items: stretch;
    gap: 2rem;
    text-align:justify;
    margin:20px auto;
}

.experience.reverse {
    flex-direction: row-reverse;
}

.exp{
    padding-bottom:15px;
}

.exp h3{
    color:#6592E6;
    margin-bottom:10px;
    text-transform:uppercase;
    text-align: left;
}

.exp h4{
    color:#002060;
    margin-top:0;
}


.exp-photo {
    flex: 2;
}

.exp-texte {
    flex: 3;
  }

.exp-photo img {
    width: 100%;
    height: 100%;
    object-fit:cover;
    border-radius: 10px;
}

.diamond-separator{
    width: 40px;
    height: 40px;
    background: url('../icons/diamond.png') center/contain no-repeat;
    margin: 30px auto;
}


@media (max-width: 900px){
    .experience,
    .experience.reverse{
        flex-direction: column;
        gap: 0.5rem;
    }
}


/****************** 
Education
*******************/
.education{
    flex-direction:column;
    flex: 1 1 0;
    padding:15px 25px;
    margin:0 0 30px 0;
}

.education-header{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.education h3{
    margin-bottom:10px;
}

.education a{
    display: block;
    text-align:center;
}

/****************** 
Compétences en gestion de projets et outils
*******************/
#project-management-skills-list, #tools-list{
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.skill{
    text-align:center;
    flex: 1 1 250px;
}

.skill h3{
    font-size:25px;
}

.skill ul{
    list-style: none;
    padding: 0;
}

.icon{
    width:80px;
    height:auto;
}


/****************** 
Compétences complémentaires
*******************/
.other-skills{
    flex-direction:column;
    flex: 1 1 0;
    padding:15px 25px;
    margin:0 0 30px 0;
}

.other-skills h3{
    text-align: center;
    color:#6592E6;
}

.other-skills-certifications{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.other-skills-certification{
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.other-skills-certification.has-image .cert-image{
    flex: 1;
}

.other-skills-certification.has-image .cert-content{
    flex: 2;
}

.other-skills-certification:not(.has-image) .cert-content{
    flex: 1 1 100%;
}

.cert-image img{
    width: 100%;
    height: auto;
}


.other-skills-certification-header{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.other-skills h4{
    margin-bottom:10px;
}

.other-skills-certification p{
    margin:15px 0;
}

.other-skills-link{
    text-align: center;
    margin-top: 20px;
}

@media (max-width: 900px){
    .other-skills-certification{
        flex-direction: column;
    }

    .education,
    .other-skills{
        padding: 15px;
    }
}

/****************** 
Contact
*******************/
#contact-list{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align:center;
}

.contact-item{
    padding-top:30px;
}

@media (max-width: 900px){
    #contact-list{
        grid-template-columns: 1fr;
    }
}


/****************** 
Projets
*******************/

.item-wrapper{
    background-color:#FAFAFA;
    border-radius:10px;
    margin:20px;
    width:45%;
    display:inline-block;
    vertical-align:top;
}

.item-img{
    width:100%;
    display:block;
}

.item-img img{
    max-width:100%;
}

.project-title{
    text-align:left;
}


.item-content{
    padding:32px;
    text-align:justify;
}

.item-buttons{
    text-align:right;
}

.item-buttons button{
    border-radius:5px;
    margin:10px 0 10px 10px;
    padding:5px 15px;
    font-family:"Jost", sans-serif;
    font-size:19px;
}

/****************** 
Footer
*******************/
footer, footer a{
    color:white;
}

footer{
    min-height:60px;
    padding: 40px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


