@font-face {
    font-family: 'MontSerrat';
    src: url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'HandCursive2';
    src: url('../themePerso/assets/fonts/Tangerine-Regular.ttf');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'HandCursive';
    src: url('../themePerso/assets/fonts/Birthstone-Regular.ttf');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Space Mono';
    src: url('../themePerso/assets/fonts/SpaceMono-Regular.ttf');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Space Mono Ita';
    src: url('../themePerso/assets/fonts/SpaceMono-Italic.ttf');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Poppins';
    src: url('../themePerso/assets/fonts/Poppins-Regular.ttf');
    font-weight: normal;
    font-style: normal;
}

body{
    background-color: #141414;
    margin:0;
}

main{
    margin: auto;
    width: 96%;
}

.heroDiv {
  background: url('./assets/images/hero.jpg') center/cover no-repeat;
  color: white;
  font-size: 200px;
  padding: 220px 20px;
  text-align: center;
  position: relative;
  font-family: "HandCursive2";
}

.heroDiv::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, #141414); /* adapt to page bg */
  z-index: 1;
  pointer-events: none;
}

.h1Pres{
    color: #dadada;
    font-size: 30px;
    font-weight: 100;
    /* text-transform: uppercase; */
    font-family: "Space Mono";
}

header{
    width: 100%;
    text-transform: uppercase;
    height: 50px;
    background-color: #141414;
    border-bottom: 2px solid white;
}

#menu-mainmenu{
    color: white;
    text-decoration: none;
    list-style: none;
    font-family: 'Poppins';
    font-size: 25px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 50%;
    height: 50px;
    align-items: center;
    margin: auto;
    /*padding-top: 0.55%;*/
}

#menu-mainmenu a{
    color: white;
    text-decoration: none;
    font-family: 'Poppins';
}

#menu-mainmenu a:visited{
    color: white;
    text-decoration: none;
    font-family: 'Poppins';
}

#menu-mainmenu a:active{
    color: white;
    text-decoration: none;
    font-family: 'Poppins';
}

footer{
    width: 100%;
    text-transform: uppercase;
    border-top: 2px solid white;
    background-color: #141414;
}

#menu-mainmenu-1{
    color: white;
    text-decoration: none;
    list-style: none;
    font-family: 'Poppins';
    font-size: 25px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    margin: auto;
    width: 50%;
}

#menu-mainmenu-1 a{
    color: white;
    text-decoration: none;
}

#menu-mainmenu-1 a:visited{
    color: white;
    text-decoration: none;
}

#menu-mainmenu-1 a:active{
    color: white;
    text-decoration: none;
}

.topOfPagePresPerso{
    display: flex;
    flex-direction: row;
    margin: auto;
    border-bottom: 2px solid #dadada;
    padding-bottom: 2%;
    padding-top: 2%;
}

.divH1PresPerso{
    width: 50%;
    text-align: right;
    margin-top: 1%;
    font-family: 'Poppins';
}

.photoPresPerso{
    margin-top: 1%;
    width: 50%;
    background: url("./assets/images/PhotoPerso.jpg")no-repeat center center;
    border-radius: 50px;
}

.midPageIntro2{
    color: white;
    font-size: 30px;
    font-family: "Space Mono";
    border-bottom: 2px solid white;
    margin-top: 3%;
    padding-bottom: 3%;
}

.midPageIntro2 h2{
    color: #dadada;
    font-size: 50px;
    text-align: center;
    font-family: "Space Mono";
}

.midPageIntro{
    font-size: 30px;
    font-family: "Space Mono";
    color: #dadada;
    border-bottom: 2px solid white;
    margin-bottom: 2%;
    margin-top: 2%;
}

/*/ GALERIE /*/

.h2Galerie{
    color: #dadada;
    font-size: 50px;
    text-align: center;
    font-family: "Space Mono";
}

.galerie-sites {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    margin-bottom: 2%;
}

.site-web-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 350px;
    cursor: pointer;
    border: 2px solid white;
}

.site-web-card:hover {
    transform: scale(1.03);
}

.site-web-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
    object-fit: cover;
    height: 350px;
}

.site-web-card:hover img {
    transform: scale(1.1);
}

.site-web-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: black;
    font-weight: 200;
    padding: 15px;
    transition: opacity 0.3s ease;
    opacity: 0;
    font-family: "Poppins";
    background-color: rgba(255, 255, 255, 0.822);
}

.site-web-card:hover .site-web-info {
    opacity: 1;
}

.site-web-info h2 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.site-web-info p {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.site-web-info a {
    display: inline-block;
    padding: 6px 12px;
    background: #ffffff;
    color: #000;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
}

.site-web-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.616);
    transition: opacity 0.3s ease;
    z-index: 1;
}

.bottomPagePhrase{
    font-size: 30px;
    font-family: "Space Mono";
    color: #dadada;
    margin-bottom: 2%;
    margin-top: 2%;
    text-align: center;
}

.site-web-card:hover .site-web-overlay {
    opacity: 0;
}

/*/ Modal contact /*/

.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  text-align: center;
  position: relative;
  font-family: "Space Mono";
}

.modal-content a{
    color: black;
    text-decoration: none;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

/*/ Animation fade in /*/

.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/*/ Page SINGLE /*/

.single-siteweb{
    color: white;
    margin-bottom: 5%;
}

.siteTitreSingle{
    color: white;
    text-align: center;
    font-size: 100px;
    font-family: "Space Mono";
    text-transform: uppercase;
    margin-bottom: 5%;
    margin-top: 5%;
}

.singleBothDiv{
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding-bottom: 4%;
    border-bottom: 2px solid white;
}

.singleDivPic{
    width: 48%;
}

.singleDivPic img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid white;
}

.singleDivInfos{
    width: 48%;
    display: flex;
    flex-direction: column;
    font-size: 30px;
    font-family: "Poppins";
}

.autres-projets {
  text-align: center;
  width: 100%;
}

.autres-projets h2{
    color: white;
    font-family: "Space Mono";
    font-size: 40px;
}

.projets-grid {
  display: flex;
  flex-direction: row;
  gap: 30px;
  margin-top: 5%;
  width: 100%;
  justify-content: center;
  margin-bottom: 5%;
}

.projet-item {
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.projet-item:hover {
  transform: translateY(-5px);
}

.projet-item img {
  max-width: 100%;
  border-radius: 6px;
  margin-bottom: 15px;
}

.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  border-radius: 10px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.singleDivInfos a{
    color:white;
    text-decoration:none;
}

@media only screen and (max-width: 1000px) {
    
    .galerie-sites {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        margin-bottom: 2%;
    }
    
    .h1Pres{
        text-align: left;
        font-size: 20px;
    }
    
        #menu-mainmenu {
        /*padding-top: 1%;*/
        color: white;
        text-decoration: none;
        list-style: none;
        font-family: 'Poppins';
        font-size: 25px;
        width: 100%;
        height: 50px;
        align-items: center;
        margin: auto;
        gap: 15px;
        text-align: center;
        padding-left: 0;
    }
    
    .h1Pres{
        text-align: left;
        font-size: 25px;
    }
    
    .midPageIntro{
        font-size: 25px;
    }

}


/*/ CSS MOBILE /*/

@media only screen and (max-width: 660px) {

    .h1Pres{
        text-align: left;
        font-size: 20px;
    }

    footer{
        display: flex;
        flex-direction: column;
        height: 150px;
    }
    
    #typed-text{
        font-size: 70%;
    }

    #menu-mainmenu-1 {
        padding-top: 4%;
        color: white;
        text-decoration: none;
        list-style: none;
        font-family: 'Poppins';
        font-size: 25px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 100%;
        margin: auto;
        gap: 15px;
        text-align: center;
        padding-left: 0;
    }

    .singleBothDiv {
        width: 100%;
        margin: auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding-bottom: 4%;
        border-bottom: 2px solid white;
    }

    .singleDivPic{
        width: 100%;
    }
    
    .midPageIntro2 ul{
        font-size: 20px;
    }
    
    .midPageIntro{
        font-size: 20px;
    }

    .singleDivInfos{
        width: 100%;
        font-size: 25px;
    }
}

@media only screen and (max-width: 500px) {
    
    #typed-text{
        font-size: 50%;
        padding: 0;
    }
    
    .h1Pres {
        font-size: 20px;
    }
    
    .midPageIntro {
        font-size: 20px;
    }
    
    #menu-mainmenu {
        width: 100%;;
        padding-left: 0;
        /*padding-top: 2%;*/
    }
    
    .siteTitreSingle {
    color: white;
    text-align: center;
    font-size: 55px;
    font-family: "Space Mono";
    text-transform: uppercase;
    margin-bottom: 5%;
    margin-top: 5%;
    }
    
    .singleDivInfos{
        text-align: justify;
        hyphens: auto;
        font-size: 20px;
    }
    
    .single-siteweb a{
        color: white;
        text-decoration: none;
        font-size: 30px;
        text-align: center;
    }
    
    .midPageIntro2 ul{
        font-size: 20px;
    }
    
    .projets-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
        margin-top: 5%;
        width: 100%;
        justify-content: center;
        margin-bottom: 5%;
    }
    
}