.br{
    outline: 2px solid red;
}

h1 {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 60px;
}

p {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 20px;

}

header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.2);
}

header .logo {
    height: 80px;
    width: auto;
    max-height: 60px;
    object-fit: contain;
}

.hero-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 520;
  font-size: 3rem;
  text-align: center;
  color: #000;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 1.2;
}



.hero-line{
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 80px;
}

.hero-line2{
    letter-spacing: -2px; /* espace plus serré entre les lettres */
    font-size: 0.9em;     /* légèrement plus petit */
    display: inline-block; /* évite qu'elle prenne toute la largeur */
    white-space: nowrap;   /* évite le retour à la ligne */
}



.navbar-nav li a {
    color: rgb(105, 104, 104);
    font-weight: bold;
}

.navbar-nav li a:hover {
    color: rgb(0, 0, 0);
    font-weight: bold;
}

.section {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    width: 100%;
}

.section-soyo-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#apropos,
#contact {
    background-color: black;
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
    /* Centre les colonnes si elles ne remplissent pas toute la ligne */
    align-items: start;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


#projets{
    min-height: 100vh;
    height: fit-content;

}

#projectTitle{
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}


.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.project-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    flex-direction: column;
    backdrop-filter: blur(8px);
}

.project-card .overlay p {
    color: white;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card:hover .overlay {
    opacity: 1;
}

.project-desc {
    color: white;
    text-align: left;
    font-size: 18px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 90%;
    padding: 0 10px;
}

.project-card:hover .project-desc {
    opacity: 1;
    transform: translateY(0);
}



#cardProject1,
#cardProject2,
#cardProject3 {
  width: 100%;
  aspect-ratio: 16/9; /* garde toujours les mêmes proportions */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cardProject1 img,
.cardProject2 img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* évite la déformation des images */
}


.project-card .overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .overlay {
  opacity: 1;
}


#contact h2 {
    font-weight: bold;
}

#contact a {
    font-weight: bold;
    color: rgb(234, 234, 234);
    font-size: 40px;
}

#contact a:hover {
    color: rgb(255, 255, 255);
    font-size: 40.1px;
}


#contact {
  width: 100%;
  margin: 0;
  padding: 0;
}

#numTitle{
    font-size:70px;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

#num{
    font-size:50px;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;


}

#emailTitle{
    font-size:70px;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;


}

#email{
    font-size:50px;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;


}

#contact h1 {
    margin-bottom: 0; /* ou une petite valeur */
}

.myImgContainer{
    border-right: 2px solid white;
}

#myImg{
    width: 80%; /* réduit à 80% du conteneur */
    max-width: 400px; /* limite à 400px */
    height: auto; /* garde le ratio */
    display: block;
    margin: auto; /* centre l’image */
}




.mobile-separator {
  display: none; /* caché par défaut */
}



footer a,
footer p {
    font-weight: bold;
    color: rgb(64, 64, 64);
    font-size: 16px;
}

footer a p:hover {
    font-size: 16.1px;
    color: rgb(0, 0, 0);


}

.iconNetwork{
    height: 100%;
    font-size: 450% !important;
    color: black;


}


.footer-hr {
    display: none;
}

@media screen and (max-width: 960px) {
    .footer-hr {
        display: flex;
        margin: auto;
        width: 80%;
        padding-top: 20px;
    }

    .hero-title {
    font-size: 2rem;
  }


  #contact{
    min-height: 100vh;
    height: fit-content;
  }

    #contact a:hover {
        color: rgb(255, 255, 255);
        font-size: 30px;
    }

    h1 {
            font-size: 50px;
        }

        p {
            font-size: 15px;

        }

        #contact a {
            font-size: 30px;
        }

     .myImgContainer {
  border-right: none; /* on enlève complètement */
}

.mobile-separator {
    display: block;
    border: none;
    border-bottom: 4px solid rgb(255, 255, 255);
    width: 80%;         /* largeur réduite */
    margin: 20px auto;  /* centré avec marge */
  }

 .project-card:hover .overlay {
    opacity: 0; /* désactive hover sur mobile */
  }

  .project-card.active .overlay {
    opacity: 1;
  }
  /* rendre le texte visible quand on tape (mobile) */
  .project-card.active .project-desc {
    opacity: 1;
    transform: translateY(0);
  }
  /* neutraliser le hover sur mobile */
  .project-card:hover img { transform: none; }
  .project-card:hover .project-desc { opacity: 0; transform: translateY(10px); }

  .project-desc{
    font-size: 75%;
  }





    
}


@media (max-width: 1194px) and (min-width: 835px) {

    .iconInsta{
        padding-right: 95px;

    }


    .iconLinkedin{
        
    }

    .aboutContainer{
        width: 100% !important;
    }


}







@media screen and (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }



  .project-card{
   margin: 4%;

}

.project-card:hover img {
    transform: none !important; /* supprime le zoom */
  }

  .project-card:hover .project-desc {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.project-desc {
    font-size: 10px;
}

  /* rendre le texte visible en permanence */
  .project-card .project-desc {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  
}

@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }
}

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

#apropos{
        min-height: fit-content;
}

#email{
 font-size: 25px!important;
}

.project-card{
   margin: 4%;

}

.project-card:hover img {
    transform: none !important; /* supprime le zoom */
  }

  .project-card:hover .project-desc {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.project-desc {
    font-size: 50%;
}

  /* rendre le texte visible en permanence */
  .project-card .project-desc {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }


 
 

    
}