*{
    margin:0;
    padding:0;
    font-family: 'Roboto', sans-serif;
}
html{scroll-behavior: smooth;}
body{
    max-width: 100vw;
    line-height: 1.6;
    padding: 0;
    margin: 0;
    background-color: #edf1f2;
}
header{
    background-color: rgb(4, 41, 83);
    padding: 15px;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}
header .logo h1{
    color:white;
    font-weight: 700;
    padding: 0 20px;
    font-family: algerian;
    text-shadow:rgba(4, 77, 146, 0.329) 10px 7px 7px;
    font-size: 1.5rem;
}

span{
    color:rgb(127, 185, 255);
}
.menu nav ul{
    list-style: none;
    margin:0 15px;
    display: flex;
    justify-content: center;
    padding-left: 200px;
}
.menu nav ul li{
    margin:0 20px;
    padding:10px
}
.menu nav a{
    text-decoration: none;
    color: white;
    font-weight: 700;
}
.menu nav a:hover,
.menu nav a:focus{
    display: inline-block;
    color: white;
    transform: translateY(-7px);
}
li {
    position: relative;
    display: inline-block;
}
li::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 4px;
    background-color: rgb(252, 252, 252);
    transition: width 0.3s ease;
}
li:hover::after{ width: 100%;}
#check {
    display: none;
}
.checkbtn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    background: none;
    border: none;
    padding: 5px;
}
#cancel {
    display: none;
}
#Accueil {
    margin-top: 80px;
}
section {
    padding: 40px 20px;
    display:flex;
    min-height: auto;
    background-color: #fff;
    width: 90%;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.droite{
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.section .droite img{
    width: 100%;
    max-width: 350px;
    height: 350px;
    border-radius:50%;
    border: 7px solid rgb(4, 41, 83);
    object-fit: cover;
}
.gauche{
    width: 60%;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.gauche h1{
    letter-spacing: 2px;
    font-family: Arial;
    color: rgb(13, 156, 238);
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 20px;
}
.gauche p{
    color:rgb(41, 40, 40);   
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}
.gauche #passion {color:  rgb(4, 41, 83);}
.gauche .btn{
    display: inline-block;
    text-decoration: none;
    margin-top: 20px;
    padding: 12px 25px;
    font-size:1.1rem;
    background-color:rgb(4, 41, 83);
    color:whitesmoke;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 0 0 white;
    border-radius: 10em;
    border: 1px solid #fff;
    width: fit-content;
}
.btn:hover {
    transform: translateY(-6px) translateX(-3px);
    box-shadow: 3px 6px 0 0 rgb(59, 137, 240);
}
.btn:active {
    transform: translateY(2px) translateX(1px);
    box-shadow: 0 0 0 0 white;
}
.infos-perso{ 
    display: flex; 
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}
.reseaux{
    display: flex;
    gap:20px;
}
.reseaux a {
    color:rgb(4, 41, 83);
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}
.reseaux .link:hover {
    color: rgb(12, 122, 247);
    transform: scale(1.3);
}
.reseaux .ig:hover {
    color: rgb(236, 47, 13);
    transform: scale(1.3);
}
.reseaux .git:hover {
    color: rgba(53, 51, 51, 0.685);
    transform: scale(1.3);
}
.section2 {
    margin-top: 40px;
    padding: 40px 20px;
    background-color: #fff;
    display: block;
    width: 90%;
    margin: 40px auto;
}
h2, h3, h4, h5, h6 {
    text-align: center;
    color: rgb(4, 41, 83);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
}
h2::after, h3::after, h4::after, h5::after, h6::after { 
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: rgb(4, 41, 83);
    border-radius: 2px;
}
.container-apropos {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin-top: 30px;
}
.texte-apropos {
    width: 60%;
    text-align: left;
}
.image-apropos {
    width: 35%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.section2 .code {
    width: 100%;
    max-width: 400px;
    height: 300px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    object-fit: cover;
}
.section2 p {
    color: rgb(41, 40, 40);   
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
    padding: 0;
}
.Competences .grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 20px;
}
.Competences .case {
  background-color: #edf1f2;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}
.Competences .case:hover {
  transform: translateY(-5px);
}
.Competences .niveau {
  background-color: rgba(155, 155, 156, 0.3);
  overflow: hidden;
  height: 10px;
  width: 100%;
  border-radius: 10px;
  margin-top: 10px;
}
.Competences .niveau div {
  background-color: #000;
  border-radius: 5px;
  height: 100%;
}
.Competences .case h1 {
  font-size: 1.2rem;
  margin-top: 15px;
  color: rgb(4, 41, 83);
}
.grille-projets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 40px;
  width: 100%;
}
.carte-projet {
    background-color:  #edf1f2;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto;
}
.carte-projet:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.image-projet {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.image-projet img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.carte-projet:hover .image-projet img {
     transform: scale(1.05);
}
.contenu-projet {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
 }
.contenu-projet h1 {
    color: rgb(4, 41, 83);
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-align: left;
  }
.contenu-projet p {
    color: #3b3a3a;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-align: left;
    line-height: 1.5;
}
.lien-projet {
    display: inline-block;
    background-color: rgb(4, 41, 83);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-align: center;
    margin-top: auto;
    font-size: 0.9rem;
}
.lien-projet:hover {
   background-color: rgb(15, 131, 199);
}
.contact {
    padding: 40px 20px;
    background-color: #f8f8f8;
    width: 90%;
    margin: 40px auto;
}
.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}
.contact-info h1 {
    color: rgb(4, 41, 83);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
}
.contact-info p {
    margin: 15px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-info i {
    color: rgb(4, 41, 83);
    margin-right: 10px;
    width: 30px;
    text-align: center;
    font-size: 1.3rem;
}
.contact-info .contact-message {
    text-align: center;
    font-style: italic;
    margin-bottom: 30px;
}
.reseaux-contact {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}
.reseaux-contact a {
    color: rgb(4, 41, 83);
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}
.reseaux-contact a:hover {
    color: rgb(15, 131, 199);
}
form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}
fieldset {
    border: 2px solid rgb(4, 41, 83);
    border-radius: 10px;
    padding: 25px;
    background-color: #f9f9f9;
}
.formulaire {
    margin-bottom: 20px;
}
.formulaire label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: rgb(4, 41, 83);
    font-size: 1rem;
}
.formulaire input,
.formulaire textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: white;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}
.formulaire input:focus,
.formulaire textarea:focus {
    outline: none;
    border-color: rgb(4, 41, 83);
    box-shadow: 0 0 5px rgba(4, 41, 83, 0.3);
}
.formulaire textarea {
    resize: vertical;
    min-height: 120px;
    font-family: Arial, sans-serif;
}
.btn-envoyer {
    background-color: rgb(4, 41, 83);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}
.btn-envoyer:hover {
    background-color: rgb(15, 131, 199);
}
::placeholder {
    color: #999;
    font-style: italic;
}
footer {
    background-color: rgb(4, 41, 83);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}
footer p {
    margin: 0;
    font-size: 1rem;
}
@media screen and (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    header {
        padding: 10px 15px;
        height: 70px;
    }
    header .logo h1 {
        font-size: 1.1rem;
        padding: 0;
    }
    .checkbtn {
        display: block;
        right: 15px;
    }
    .menu nav ul {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(4, 41, 83, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        margin: 0;
        transition: all 0.5s ease;
        padding-left: 0;
    }
    
    .menu nav ul li {
        margin: 10px 0;
        padding: 15px;
        width: 100%;
        text-align: center;
    }
    
    .menu nav a {
        font-size: 1.2rem;
        display: block;
        padding: 10px;
        color: white;
    }
    #check:checked ~ .menu nav ul {
        left: 0;
    }  
    #check:checked ~ .checkbtn #btn {
        display: none;
    }   
    #check:checked ~ .checkbtn #cancel {
        display: block;
    }
    .menu nav a:hover,
    .menu nav a:focus {
        transform: none;
    }
    li::after {
        display: none;
    }
    section {
        flex-direction: column;
        width: 95%;
        padding: 20px 15px;
        margin: 15px auto;
        text-align: center;
    }
    .droite {
        width: 100%;
        padding: 20px 0;
        order: 1;
    }
    .section .droite img {
        max-width: 150px;
        height: 150px;
    }
    .gauche {
        width: 90%;
        padding: 10px 10px 0 ;
        order: 2;
        text-align: center;
    }
    .gauche h1 {
        font-size: 1.5rem;
        letter-spacing: 0.5px;
        margin-bottom: 15px;
    }
    .gauche p {
        font-size: 1rem;
        text-align: justify;
        margin-bottom: 15px;
    }
    .infos-perso {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    .gauche .btn {
        margin: 20px auto 0;
    }
    .container-apropos {
        flex-direction: column;
        gap: 4rem;
    }
    .image-apropos {
        width: 100%;
        order: 1;
    }
    .texte-apropos {
        width: 100%;
        order: 2;
        padding-right: 10px;
    }
    .section2 .code {
        max-width: 280px;
        height: 180px;
    }
    .section2 p {
        padding: 0;
        text-align: justify;
        font-size: 1rem;
    }
    .Competences .grille {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .Competences .case {
        padding: 1.2rem;
    }
    .Competences .case h1 {
        font-size: 1.1rem;
    }
    .grille-projets {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .image-projet {
        height: 180px;
    }
    h2, h3, h4, h5, h6 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    form {
        padding: 10px;
    }  
    fieldset {
        padding: 20px;
    }
    
    .contact-info p {
        font-size: 1rem;
    }
    .reseaux a {
        font-size: 1.5rem;
    }
}
/* TABLETTE */
@media screen and (min-width: 769px) and (max-width: 1024px) {
     header .logo h1 {
        font-size: 1.2rem;
        white-space: nowrap;
        padding: 0;
    }
    .menu nav ul {
        padding-left: 50px;
    }
    .menu nav ul li{
    margin:0 3px;
    padding:10px
    }
    .menu nav a{
    text-decoration: none;
    font-weight: 500;
    }
    section {
        flex-direction: column;
        width: 95%;
        padding: 20px 15px;
        margin: 15px auto;
        text-align: center;
    }
    .droite {
        width: 100%;
        padding: 20px 0;
        order: 1;
    }
    .section .droite img {
        max-width: 150px;
        height: 150px;
    }
    .gauche {
        width: 90%;
        padding: 10px 10px 0 ;
        order: 2;
        text-align: center;
    }
    .gauche h1 {
        font-size: 1.5rem;
        letter-spacing: 0.5px;
        margin-bottom: 15px;
    }
    .gauche p {
        font-size: 1.1rem;
        text-align: justify;
        margin-bottom: 15px;
    }
    .infos-perso {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    .gauche .btn {
        margin: 20px auto 0;
    }
    .container-apropos {
        flex-direction: column;
        gap: 4rem;
    }
    .image-apropos {
        width: 100%;
        order: 1;
    }
    .texte-apropos {
        width: 100%;
        order: 2;
        padding-right: 10px;
    }
    .Competences .grille {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grille-projets {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section .droite img {
        max-width: 280px;
        height: 280px;
    }
    
    .gauche h1 {
        font-size: 1.5rem;
    }
}