html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
}

main {
    padding: 0 2% 2% 2%;
}

/* Proprietes de la navbar*/
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1;
}

nav a {
    text-decoration: none;
    color: #000;
    z-index: 0;

}

nav .profile {
    display: flex;
    align-items: center;
    background-color: #fff;
}

nav .profile img {
    height: 40px;
}

nav .profile h1 {
    font-size: 20px;
    margin-left: 10px;
}

nav ul {
    display: flex;
    list-style-type: none;
}

nav ul li {
    margin-left: 20px;
    cursor: pointer;
    
}

nav ul li:hover {
    transition: 0.4s ease;
    text-decoration: underline;
}

nav ul li:active {
    text-decoration: none;
}

/* Gestion des ancres de destination des liens */ 
#parcours {
    scroll-margin-top: 80px;
}
#etudes {
    scroll-margin-top: 80px;
}
#experiences-pro {
    scroll-margin-top: 80px;
}
#galerie {
    scroll-margin-top: 80px;
}



.hamburger {
    display: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: black;
}

/* Gestion de la page content */
.page-content {
    margin: 4%;
}

.page-content header {
    margin-top: 5%;
    max-width: 80%;
}

.page-content header h1 {
    margin: 0;
    text-transform: uppercase;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 30px;
}

.page-content header h4 {
    text-transform: uppercase;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 23px;
}

/* Gestion du bouton de contact */
 .page-content header button {
    background-color: inherit;
    border: none;
    outline: none;
    padding: 0;
    font-size: 15px;
    font-weight: bold;
    border-bottom: 2px solid;
    border-color: #ccc;
    cursor: pointer;
}

.page-content header button:hover {
    border-color: #000;
}

.page-content header button:active {
    border-color: #aaa;
}

/* Gestion de la section projets */ 
.projects-section {
    margin-top: 6%;
}

.projects-section h2 {
    text-transform: uppercase;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 23px;
}

.projects {
    display: flex;
    flex-wrap: wrap;
}

.project {
    max-width: 200px;
    margin-right: 8%;
}

.project h4 {
    margin: 0;
}

.project a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

.project a:hover {
    text-decoration: underline;
}

.project a:active {
    text-decoration: none;
}

.description {
    font-size: 13px;
}

.date {
    font-size: 15px;
    color: #888;
}

footer {
    text-align: center;
    background-color: #000;
    padding-top: 50px;
    padding-bottom: 50px;
    color: #ccc;
    font-size: 10px;
    margin: 0;

}

/* Modifications pour le mode smartphone */
@media screen and (max-width: 800px){
    nav {
        justify-content: center;
        top: 0;
    }

/*    nav ul {
        display: none;
        display: flex; /* faire disparaitre le menu, mais à retravailler
        flex-direction: column;
        position: absolute;
        top: 30px;
        justify-content: center;
    }

    nav li {
        justify-content: center;
    }*/

    .hamburger {
        font-size: 25px;
        display: block;
        cursor: pointer;
        position: absolute;
        right: 10px;

    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(-135deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(135deg);
    }

    .nav-menu {
        position:fixed;
/*        left: -100%;*/
        top: -100%;
        gap: 0;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.5s;
        padding: 0;
        opacity: 0;
        z-index: -1;


    }

    .nav-item {
        margin: 8px 0;
    }

    .nav-menu.active {
        top: 35px;
        opacity: 1;
    }

    .page-content header {
        margin-top: 10% ;
        max-width: 100%;
    }
    
    /* Gestion de la projects section */
    .projects-section {
        margin-top: 15%;
    } 

    .projects-section h1 {
        font-size: 1.8em;
    }
  
    .project {
        margin: 0%;
        margin-bottom: 20px ;
        max-width: 100%;
    }
    


}

/* GESTION DE LA galerie */ 
.galerie {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 0 4px 0;
  }
  
/* Create four equal columns that sits next to each other */
.column {
    flex: 23%;
    max-width: 22%;
    padding: 0 1vw;
}
  
.column img {
/*    margin-top: 8px;*/
    vertical-align: middle;
    width: 100%;

/*    padding-bottom: 1vw;*/
}

  


/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 1400px) {
    .column {
      flex: 40%;
      max-width: 40%;
    }
}

@media screen and (max-width: 800px) {
    .column {
      flex: 100%;
      max-width: 100%;
    }
}

/* GESTION DU NOIRCISSEMENT DES IMAGES */
.image {
    opacity: 1;
    display: block;
    width: 100%;
    height: auto;
    transition: .5s ease;
    backface-visibility: hidden;
}

.container {
    position: relative;
    padding: 2%;
}

.middle {
    transition: .5s ease;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    text-align: center;
}
  
.container:hover .image {
    opacity: 0.3;
}
  
.container:hover .middle {
    opacity: 1;
}
  
.text {
    color: #fff;
    background-color: rgb(0, 0, 0, 0.8);
    padding: 5px;
}

.text a {
    font-weight: bold;
    padding: 1%;
    color: yellow;
}

.text a:hover {
    text-decoration: none;
}

.text a:active {
    color: white;
}
