/* Réinitialisation des styles par défaut et styles globaux */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
}
  
/* Styles pour le body */
body {
    color: #fff;
    background: #1b1f24;
}

/* Styles pour l'en-tête */
header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 10%;
    background: #23272c;
    transition: all .50s ease;
}
.marco{
    width: 70px;
    height: 70px;
}

/* Styles pour le logo */
.logo {
    font-size: 30px;
    color: #fff;
    font-weight: 600;
}

/* Styles pour l'élément span dans le logo */
.logo span {
    color: #0400ff;
}

/* Styles pour la liste de navigation */
.nav-list {
    display: flex;
}

.nav-list a {
    font-size: 1rem;
    font-weight: 500;
    color: #c3cad5;
    margin-left: 45px;
    transition: all .50s ease;
}

.nav-list a:hover {
    color: #0400ff;
    text-shadow: 3px 3px 20px #0400ff, -2px 1px 30px #fff;
}

/* Styles pour l'icône du menu (si utilisé pour le responsive) */
#menu-icon {
    font-size: 35px;
    z-index: 1001;
    cursor: pointer;
    display: none;
}

/* Styles pour le bouton de connexion */
.h-btn {
    display: inline-block;
    padding: 10px 22px;
    background: transparent;
    color: #ffffff;
    border: 2px solid #0400ff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.5s ease;
}

.h-btn:hover {
    background: #0400ff;
    color: #1b1f24;
    box-shadow: 0 0 20px #0400ff;
    transform: scale(1.1);
}

/* à PROPOS */

section {
    padding: 110px 10% 90px;
}

.àpropos {
    height: 100vh;
    width: 100%;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #161616;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content {
    text-align: center;
    animation: contentAppear 1.2s ease-in-out;
}

@keyframes contentAppear {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.main-content h4 {
    font-size: 1.6rem;
}

.main-content h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin: 20px 0px 20px;
    line-height: 1.2;
}

h1 span {
    color: #0400ff;
}

.main-content p {
    font-size: 1rem;
    font-weight: 400;
    width: 620px;
    max-width: 100%;
    color: #c3cad5;
    line-height: 30px;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
}

.social {
    margin-bottom: 40px;
}

.social i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: #0400ff;
    border-radius: 50%;
    backdrop-filter: brightness(88%);
    font-size: 40px;
    margin-right: 17px;
    box-shadow: 0 0 20px transparent;
    cursor: pointer;
    transition: all .50s ease;
}

.social i:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px #0400ff;
}

.btn {
    display: inline-block;
    padding: 11px 26px;
    background: #0400ff;
    color: #1b1f24;
    border: 2px solid #0400ff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all .50s ease;
}

.btn:hover {
    background: transparent;
    color: #0400ff;
    box-shadow: 0 0 20px #0400ff;
}

/*competences*/

.competences {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    min-height: 70vh;
    margin-top: 30px; /* ✅ Ajouté pour régler la distance avec le titre */
  }
  
  .center-text {
    text-align: center;
    margin-bottom: 10px; /* ✅ Réduit (tu peux ajuster encore si nécessaire) */
  }
  
  .competence {
    text-align: center;
    position: relative;
    margin: 20px;
  }
  
  .circle {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .circle-svg {
    transform: rotate(-90deg);
  }
  
  .circle-background {
    stroke: #e6e6e6;
  }
  
  .circle-progress {
    stroke: #0400ff;
    transition: stroke-dashoffset 2s ease-out;
    stroke-dasharray: 345;
    stroke-dashoffset: 345;
  }
  
  .competence-info {
    margin-top: 20px;
  }
  
  .competence-info h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
  }
  
  .competence-info p {
    font-size: 2rem;
    font-weight: bold;
    color: #0400ff;
  }
  
  .animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
  }
  
  .animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
  }
  
/*Mes projets*/

.center-text span{
    color: #0400ff;
}
.center-text{
    font-size: 25px;
    font-weight: 600;
}
.mesprojets{
    background: #161616;
}
.projets-content{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, auto));
    align-items: center;
    gap: 2.3rem;
    margin-top: 10px;
}
.row img{
    height: auto;
    width: 100%;
    border-radius: 28px;
    margin-bottom: 1.4rem;
}
.row{
    background: #353b48;
    border-radius: 28px;
    border: 1px solid transparent;
    box-shadow: 0 0 5px #0400ff;
    padding: 20px;
    transition: all .50s ease;
    min-height: 100%;
}

.row2 img{
    height: auto;
    width: 100%;
    border-radius: 28px;
    margin-bottom: 1.4rem;
}
.row2{
    background: #2d343f;
    border-radius: 28px;
    border: 1px solid transparent;
    box-shadow: 0 0 5px #0400ff;
    padding: 20px;
    transition: all .50s ease;
}


.main-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.row h5{
    font-size: 15px;
    font-weight: 600;
    color: #c3cad5;
}
.row h4{
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}
.row:hover{
    border: 1px solid #0400ff;
    transform: translateY(-5px) scale(1.03);
    cursor: pointer;
}

/*Formulaire contact*/

.seif span{
    color: #0400ff;
}
.seif{
    font-size: 25px;
    font-weight: 600;
    justify-content: center;
}
.contact-form{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4.2rem;
}
.contact-form form{
    position: relative;
    width: 600px;
}
form input,
form textarea{
    width: 100%;
    padding: 20px;
    border: none;
    outline: none;
    box-shadow: 0 0 5px #0400ff;
    background: #2d343f;
    color: #fff;
    margin-bottom: 20px;
    border-radius: 8px;
}
form input::placeholder,
form textarea::placeholder{
    color: #c3cad5;
    font-size: 15px;
}
form .send-btn{
    display: inline-block;
    padding: 11px 26px;
    background: #0400ff;
    color: #ffffff;
    border: 2px solid #0400ff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all .50s ease;
    width: 30%;
}
form .send-btn:hover{
    background: transparent;
    color: #0400ff;
    box-shadow: 0 0 20px #0400ff;
    cursor: pointer;
}

.footer{
    padding: 22px 16%;
    background: #22282f;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.copyright p{
    font-size: 15px;
    font-weight: 400;
    color :#c3cad5;
}

.scroll-top i{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #505050;
    width: 45px;
    height: 45px;
}

@media (max-width: 1350px){
    header{
        padding: 20px 8%;
    }
    section{
        padding: 90px 8% 80px;
    }
    .logo{
        font-size: 20px;
    }
}

@media (max-width: 980px){
    .social{
        margin-bottom: 20px;
    }
    .navlist{
        position: absolute;
        top: 100%;
        right:-100%;
        width: 255px;
        min-height: 255px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        background: #22282f;
        transition: all .50s ease;
    }
    .navlist a{
        display: block;
        padding: 17px;
        font-size: 22px
    }
    .navlist.active{
        right: 0;
    }
    .main-content h1{
        font-size: 9vh;
    }

}

@media (max-width: 680px){
    .main-content p{
        width: 100%;
    }
    .main-content h1{
        font-size: 6vh;
    }
}
/* MODAL - Image agrandie des projets */
.modal {
    display: none;
    position: fixed;
    z-index: 1500;
    padding-top: 80px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
  }
  
  .modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    border-radius: 15px;
    box-shadow: 0 0 20px #0400ff;
    animation: zoomIn 0.4s ease;
  }
  
  @keyframes zoomIn {
    from {transform: scale(0.7);}
    to {transform: scale(1);}
  }
  
  #modalCaption {
    margin: 15px auto;
    text-align: center;
    color: #c3cad5;
    font-size: 18px;
  }
  
  .modal .close {
    position: absolute;
    top: 40px;
    right: 70px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
  }
  
  .modal .close:hover {
    color: #0400ff;
  }
   .nav-list.active {
    display: flex;
}

.logo img {
    width: 85px;
}

.burger {
    display: none;
    color: #0400ff;
    font-size: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

  @media (max-width: 900px) {
    .nav-list {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 60px;
        right: 0%;
        width: 100%;
        background: #23272c;
        padding: 10px;
        box-shadow: -4px 4px 6px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-list.show {
        display: flex;
    }

    .burger {
        display: block;
    }

    header {
        height: 60px;
    }
}

.video {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.video a {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    padding: 6px 14px;
    background: transparent;
    border: 1.5px solid #0400ff;
    border-radius: 6px;
    box-shadow: 0 0 10px #0400ff;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
}

.video a:hover {
    background: #0400ff;
    color: #1b1f24;
    box-shadow: 0 0 10px #0400ff;
    transform: scale(1.07);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

#modalFlex {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 40px;
    gap: 40px;
    flex-wrap: wrap;
}

#modalImg {
    max-width: 50vw;
    max-height: 80vh;
    border-radius: 10px;
}

#modalDesc {
    color: white;
    text-align: left;
    max-width: 30vw;
    font-size: 18px;
    line-height: 1.6;
}

#modalCaption {
    color: white;
    text-align: center;
    margin-top: 10px;
    font-size: 20px;
}

.en-savoir-plus-btn {
    margin-top: 10px;
    padding: 6px 16px;
    background: #0400ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
.en-savoir-plus-btn:hover {
    background: #2323ff;
    transform: scale(1.05);
}

.desc-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}
.desc-modal-content {
    background: #23272c;
    color: #c3cad5;
    padding: 28px 32px;
    border-radius: 14px;
    box-shadow: 0 0 20px #0400ff55;
    max-width: 350px;
    width: 90vw;
    position: relative;
    text-align: left;
    animation: zoomIn 0.3s;
}
.desc-modal-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0400ff;
}
.desc-close {
    position: absolute;
    top: 10px;
    right: 18px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
}
.desc-close:hover {
    color: #0400ff;
}

.desc-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

.desc-modal-content {
    background: #23272c;
    color: #c3cad5;
    padding: 28px 32px;
    border-radius: 14px;
    box-shadow: 0 0 20px #0400ff55;
    max-width: 95vw;
    width: 100%;
    min-width: 220px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    text-align: left;
    word-break: break-word;
    white-space: pre-line;
    box-sizing: border-box;
    animation: zoomIn 0.3s;
}

.desc-modal-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0400ff;
}

.desc-close {
    position: absolute;
    top: 10px;
    right: 18px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
}
.desc-close:hover {
    color: #0400ff;
}

@media (max-width: 600px) {
    .desc-modal-content {
        padding: 16px 8px;
        font-size: 15px;
        max-width: 98vw;
    }
    .desc-modal-title {
        font-size: 16px;
    }
}