body {
    margin: 10px 0px 0px 0px;
}

html{
    scroll-behavior: smooth;
}

/*Scrollbar*/
::-webkit-scrollbar {
    width: 12px; /* Largeur de la barre de défilement */
}

    /* Piste de la barre de défilement */
::-webkit-scrollbar-track {
    background: #333; /* Couleur de fond */
}

    /* Poignée de la barre de défilement */
::-webkit-scrollbar-thumb {
    background: #444; /* Couleur de la poignée */
    border-radius: 10px;
}

    /* Lorsque vous survolez la poignée de la barre de défilement */
::-webkit-scrollbar-thumb:hover {
    background: rgb(60, 60, 60); /* Couleur de la poignée au survol */
}

/*----------NAVBAR----------*/

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 10px 0 10px 10px;
}

.logo img {
    max-width: 200px;
    width: auto;
}

.navbar {
    border-bottom: solid 3px #e30c0c;
    background-color: rgb(86,90,98);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    min-height: 70px;
}

.navbar a button {
    color: #fff;
    width: 140px;
    height: 50px;
    border-radius: 10px;
    background-color: #e30c0c;
    font-size: 26px;
    border: solid 1px #fff;
    transition: all ease-in;
    transition-duration: 200ms;
}
   
.navbar a button:hover {
    background-color: #fff;
    border: solid 2px #e30c0c;
    color: #e30c0c;
}

div.nav-contact {
    padding-right: 10px;

}

/* nav-bar */

.mobile-nav {
    display: none;
}

.mobile-nav a button {
    align-items: end;
}

.pc-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.pc-nav ul {
    font-size: 25px;
}

.navbar button a {
    color: #e30c0c;
}

.navbar button:hover {
    background-color: #e30c0c;
}

.navbar button:hover a {
    color: #fff;
}

.pc-nav li {
    list-style-type: none;
    display: inline;
    padding-right: 40px;
}

.navbar a,h1{
    color: #fff;
}

.navbar a {
    transition: all ease-in;
    transition-duration: 200ms;
    text-decoration: none;
}

.navbar a:hover {
    color: #e30c0c;
}

.hamburger-button div {
    width: 35px;
    height: 3px;
    background-color: #fff;
    margin: 6px 6px;
    transition-duration: 0.4s;
}

.hamburger-button {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 5px;
    width: 50px;
    cursor: pointer;
}

.hamburger-menu-div {
    position: absolute;
    top: 73px;
    background-color: rgb(86,90,98);
    width: 100%;
    border-bottom: solid 3px #e30c0c;
    transition: all 200ms;
}

.hamburger-menu-div ul {
    display: flex;
    flex-direction: column;
    padding-left: 10px;
    gap: 3px;
    font-size: 25px;
}

.hamburger-menu-div li {
    padding-bottom: 10px;
}


.hamburger-menu-div {
    display: none;
}

.open .hamburger-menu-div {
    display: block;
}

.open .bar1 {
    -webkit-transform: rotate(-45deg) translate(-6px, 6px);
    transform: rotate(-45deg) translate(-6px, 6px);
    transition-duration: 300ms;
}

.open .bar2 {
    opacity: 0;
}

.open .bar3 {
    -webkit-transform: rotate(45deg) translate(-6px, -8px);
    transform: rotate(45deg) translate(-6px, -8px);
    transition-duration: 300ms;
}

@media screen and (max-width: 960px) {

    .pc-nav {
        display: none;
    }

    .mobile-nav {
        display: flex;
        width: 100%;
    }

    .nav-contact {
        margin-left: auto;
        padding-right: 10px;
        padding-top: 10px;
    }

}

@media screen and (max-width: 1025px){
    
    .pc-nav ul {
        font-size: 20vw;
    }

}

@media screen and (max-width: 1160px){
    
    .pc-nav ul {
        font-size: 18px;
    }

}
/*----------Page_Accueil----------*/
#presentation, #competences, #experience {
    padding-top: 10px;
    min-height: 100vh;
}

#presentation{
    background: linear-gradient(#9198e5, #e66465);
    color: black;
}

#competences{
    background: linear-gradient(#e66465, #e66465, #09c6ec);
    color: black;
}

#experience {
    background: linear-gradient(#09c6ec, #3c3c3c);
    color: black;
}

section h1.titre {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    padding-top: 70px;
    color: #007BFF;
}

section h1.titre1 {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: #007BFF;
}

p.lead {
    font-size: 18px;
    color: #e30c0c;
}

#presentation p, #competences p, #experience p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}


/*----------CONTACT----------*/
section.sec-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px);
    background: linear-gradient(#e66465, #3c3c3c);
}

form {
    max-width: 400px;
    width: 100%;
    padding: 20px;
    margin-top: 30px;
}

label {
    display: block;
    margin-bottom: 8px;
}

input, textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

form button {
    background-color: #007BFF;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background-color: #0056b3;
}

/*----------CREATION----------*/
section.sec-creation {
    min-height: calc(100vh - 60px);
    background: linear-gradient(#09c6ec, #3c3c3c);
    display: flex;
    justify-content: center;
    align-items: center;
}

table {
    width: 75vw;
    border-collapse: collapse;
    margin: 0 auto;
}

table caption {
    caption-side: bottom;
    text-align: center;
    font-size: 1.3em;
    margin-top: 10px;
    color: #e30c0c;
}

th, td {
    border: 2px solid #e30c0c;
    padding: 10px;
    text-align: center;
}

th {
    background-color: rgba(104, 102, 102, 0.2);
    color: #e30c0c;
    font-weight: bold;
    font-size: 18px;
}

td img {
    width: 50%;
    height: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 500ms ease, filter 0.3s ease;
}

td img:hover{
    transform: scale(1.25); 
}

table a{
    color: #e30c0c;
}

.sec-creation p {
    text-align: center; /* Centrer le texte si souhaité */
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
}

.modal-content {
    margin-top: 5%;
    max-width: 80%;
    max-height: 80%;
    border: 3px solid white;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Styles pour les petits écrans (moins de 768px) */
@media screen and (max-width: 768px) {
    table, tr, th, td {
        display: block;
    }

    /* Ajouter un espace entre les cellules pour améliorer la lisibilité */
    tr {
        margin-bottom: 15px;
    }

    /* Centrer les titres */
    th {
        text-align: center;
        padding: 15px;
    }

    /* Adapter la taille des images */
    td img {
        max-width: 80%;
        height: auto;
    }
}
/*----------FOOTER----------*/
footer {
    font-family: 'Courier New', Courier, monospace;
    background-color: rgb(60, 60, 60);
    color: #e30c0c;
    height: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    position: relative;
    bottom: 0;
    
}

footer a{
    color: #e30c0c;
    text-decoration: none;
    margin: 0 25px
}

footer a.underline{
    text-decoration: underline;
}