@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root{
    --transition: all 300ms ease-in-out;
    --dark-color: #332e29;
    --light-color: #fff;
}

*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    outline: 0;
}
html{
    font-size: 10px;
    scroll-behavior: smooth;
}
body{
    font-size: 1.6rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

button, .btn{
    cursor: pointer;
    border: none;
    background: transparent;
}
ul{
    list-style-type: none;
}
a{
    text-decoration: none;
    color: var(--dark-color);
}
img{
    width: 100%;
    display: block;
}
.container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.vh-100{
    min-height: 100vh;
}
h1, h2, h3{
    margin-top: 0;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--dark-color);
}
.flex{
    display: flex;
    align-items: center;
    justify-content: center;
}
.py-7{
    padding: 7rem 0 1rem;
}
.grid{
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}
.lead{
    opacity: 0.8;
    padding: 1rem 0;
    font-size: 1.7rem;
    font-weight: 300;
    line-height: 1.8;
}

/* header */

#header {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
}

#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Pour s'adapter à la taille du conteneur */
    z-index: -1; /* Place la vidéo en arrière-plan */
}

.thumbnail-track {
    margin-bottom: 50px;
}

#videos{
    background-color: rgb(248, 248, 248);
    padding-top: 50px;
    padding-bottom: 50px;
}

.YT-video {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

/* #header{
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)), url('../images/camera_light.mp4') center/cover no-repeat fixed;
    justify-content: flex-start;
    align-items: flex-end;
} */

/* Style pour le logo */
.logo {
    position: absolute; /* Position absolue pour placer le logo */
    top: 20px; /* Espacement depuis le haut */
    left: 20px; /* Espacement depuis la gauche */
    z-index: 10; /* Assure que le logo est au-dessus des autres éléments */
}

.logo img {
    width: 14rem; /* Ajustez la largeur du logo */
    height: auto; /* Maintient le ratio de l'image */
}

@media (max-width: 800px) {
    .logo img {
        width: 8rem; /* Taille réduite pour les appareils mobiles */
    }
}

#header .container{
    width: 100%;
}
.header-content{
    padding-bottom: 4rem;
}
.header-content h1{
    font-size: 4.5rem;
    margin-bottom: 0;
    text-transform: uppercase;
    color: var(--light-color);
}
.header-content h3{
    color: var(--light-color);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 1.5rem;
}
.social-links{
    display: flex;
    margin-top: 3.5rem;
}
.social-links li a{
    width: 40px;
    height: 40px;
    background-color: var(--light-color);
    margin-right: 1rem;
    border-radius: .3rem;
    box-shadow: 0 0 6px 5px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}
.social-links li a:hover{
    opacity: 0.9;
}
.social-links li a.contact {
    width: 180px;
    gap:8px;
}




/* about */
.about-left{
    height: 480px;
    position: relative;
}

.about-left img {
    width: 100%; /* Assure que l'image remplit la largeur du conteneur */
    height: auto; /* Maintient les proportions */
    position: absolute; /* Permet de déplacer l'image à l'intérieur */
    top: 50px; /* Décale l'image de 50px vers le haut */
    left: 0; /* Garde l'image centrée horizontalement */
}

.about-text{
    text-align: justify;
    text-justify: inter-word;
}

/* button down and title -reusable */
.btn-down{
    font-size: 3rem;
    display: inline-block;
    margin-top: 1rem;
    transition: var(--transition);
}
.btn-down:hover{
    opacity: 0.8;
    transform: translateY(5px);
}
.btn-down-white{
    color: var(--light-color);
}
.title{
    margin-bottom: 5rem;
}
.title h2{
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    position: relative;
}
.title h2::after{
    position: absolute;
    content: "";
    top: 120%;
    left: 0;
    width: 70px;
    height: 4px;
    background-color: var(--dark-color);
}

/* work */
#work{
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)), url('/assets/images/seagull.JPG') center/cover no-repeat fixed;
    color: var(--light-color);
    min-height: 60vh;
}
#work .title h2, #work h3{
    color: var(--light-color);
}
#work .title h2::after{
    background: var(--light-color);
}
.work-bottom{
    margin-top: 4rem;
    text-align: center;
    font-size: 2rem;
}
.work-bottom > div .icon img{
    width: 100px;
    margin: 0 auto 1.7rem auto;
}
.icon img{
    max-height: 80px;
    object-fit: contain;
}



/* portfolio */
.portfolio-grid > div{
    transition: var(--transition);
}
.portfolio-grid > div:hover{
    transform: scale(0.9);
}

/* contact */
#contact{
    background-color: rgb(248, 248, 248);
}
.contact-content{
    flex-direction: column;
    align-items: stretch;
}
.contact-left .lead{
    padding: 0.5rem;
}
.contact-left form{
    margin-top: 3rem;
}
.contact-left form .form-control{
    display: block;
    margin: 1.6rem 0;
    border: 2px solid rgba(0, 0, 0, 0.3);
    padding: 1rem;
    width: 100%;
}
.contact-left form .form-control::placeholder{
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
}
.contact-left .btn-submit{
    padding: 1.4rem 3rem;
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-color);
    color: var(--light-color);
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.6rem;
    transition: var(--transition);
}
.contact-left .btn-submit:hover{
    background-color: #000;
}

#insta{
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)), url('../images/insta-pic.jpg') center/cover no-repeat fixed;
    min-height: 65vh;
}
#insta .title h2{
    color: var(--light-color);
}
#insta .title h2::after{
    background-color: var(--light-color);
}
.insta-grid > div{
    height: 400px;
    overflow-y: auto;
    transition: var(--transition);
}
.insta-grid > div img{
    height: 100%;
    object-fit: cover;
}
.insta-grid > div:hover{
    transform: scale(0.9);
}

/* footer */
#footer{
    background-color: var(--dark-color);
    color: var(--light-color);
}
.footer-content{
    text-align: center;
    position: relative;
}
.footer-content img {
    top: -100px;
}
.footer-content h3{
    color: var(--light-color);
    font-size: 2.5rem;
    letter-spacing: 1px;
}
.footer-content ul{
    flex-direction: column;
}
.footer-content ul li a{
    color: var(--light-color);
    font-size: 1.5rem;
    transition: var(--transition);
}
.footer-content ul li a:hover{
    opacity: 0.7;
}
.footer-content ul li{
    margin: .5rem 1rem;
}
.footer-content > div:first-child{
    margin-bottom: 3rem;
}
.footer-content > div:first-child div{
    width: 100px;
    height: 100px;
    overflow: hidden;
    margin: 5rem auto;
    border-radius: 50%;
}

.footer-copyright p{
    align-items: center;
    justify-content: center;
    display: grid;
    margin-top: 20px;
    color: grey;
    font-size: 1rem;
}


/* Media Queries */

@media(max-width: 450px){
    .work-content h2{
        margin-top: 50px;
    }

    .about-left {
        height: 350px;
        margin-bottom: 60px;
    }

    .about-left img{
        top: 0;
        margin-bottom: 0px;
    }

    .text-rdv {
        margin-bottom: 10px;
    }
}

@media(min-width: 450px){
    .work-bottom{
        grid-template-columns: repeat(2, 1fr);
        column-gap: 3rem;
        row-gap: 0;
    }

    .about-left img{
        top: 0;
        bottom: 0;
    }
}
@media(min-width: 576px){
    .title h2{
        font-size: 4rem;
    }
    .work-bottom{
        grid-template-columns: repeat(3, 1fr);
    }
    .portfolio-grid{
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-grid > div{
        height: 300px;
        overflow: hidden;
    }
    .portfolio-grid > div img{
        height: 100%;
        object-fit: cover;
    }
    .contact-left form .form-control{
        max-width: 500px;
    }
    .footer-content ul{
        flex-direction: row;
    }
    .about-left img{
        top: 0;
        bottom: 0;
        max-width: 400px;
        justify-content: center;
    }

}

@media(min-width: 768px){
    .header-content h1{
        font-size: 7rem;
    }
    .about-content, .work-top{
        grid-template-columns: repeat(2, 1fr);
        column-gap: 6rem;
        row-gap: 0;
    }
    .about-left{
        margin-bottom: 0;
    }
    .contact-content{
        flex-direction: row;
    }
    .contact-right{
        padding-left: 3rem;
        /* padding-bottom: 3rem; */
        width: 80%;
    }
    .contact-left{
        width: 50%;
    }
    .insta-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 992px){
    .insta-grid{
        grid-template-columns: repeat(4, 1fr);
    }
    .insta-grid > div{
        height: 250px;
    }
}

@media(min-width: 1200px){
    .portfolio-grid{
        grid-template-columns: repeat(3, 1fr);
    }
    .portfolio-grid > div:nth-child(2){
        grid-column: 2 / 4;
    }
    .portfolio-grid > div:nth-child(6){
        grid-column: 1 / 3;
    }
}





/* PORTFOLIO PHOTO */
.body-portfolio-photo{
    position: relative;
    width: 100%;
    height: 100vh;
    font-size: .95em;
    margin: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 0 auto 90px 90px;
    grid-template-areas:
      ". n n n n n n n n n n d"
      "m c c c c c c c c c c a"
      "s c c c c c c c c c c a"
      "s . . . . . . . . . . b";
} 

.container-portfolio-photo{
    grid-area: c;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-auto-rows: 200px;
    grid-gap: 20px;
    grid-auto-flow: dense;
    overflow: auto;
    padding-right: 20px;  /*fix box-shadow on right side cutting off*/
}
  
/*scrollbar stuff*/
.container-portfolio-photo {
      -ms-overflow-style: none;  
      overflow: -moz-scrollbars-none;  
}
.container-portfolio-photo::-webkit-scrollbar { 
      display: none;  
} 
.container-portfolio-photo>div{
    z-index: 1;
    position: relative;
    padding: 0;
    overflow: hidden;
    box-shadow: 5px 5px 10px rgba(0,0,0,.2), 
                5px 5px 25px rgba(0,0,0,.1);
    transition: all .3s ease-in-out;
}
.container-portfolio-photo div img{
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
    transition: all .6s ease-in-out;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/*make bIG*/
.container-portfolio-photo>div:hover, .container-portfolio-photo>div:hover img{
    transform: scale(1.05);
    will-change: transform;
}
 
.vertical{
    grid-row: span 2;
}
.horizontal{
    grid-column: span 2;
}
.big{
    grid-row: span 2;
    grid-column: span 2;
}


.voir-plus {
    display: flex; 
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: -5rem;
    font-family: poppins;
}

.text-ou {
    display: flex;
    justify-content: center;
    margin-top: -5rem;
}

.text-rdv {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    font-weight: bold;
}


.drones-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes égales */
    gap: 5rem;
    align-items: center;
}

.drones-left {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (Hauteur = 9/16 * largeur) */
    height: 0;
}

.drones-left iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.drones-right {
    text-align: left;
    justify-content: center;
}

.drones-text .lead {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .drones-content {
        grid-template-columns: 1fr; /* Une seule colonne sur les petits écrans */
        gap: 2rem; /* Moins d'espace entre les éléments */
    }

    .drones-left{
        align-items: center;
    }

    .drones-left iframe {
        width: 60%;
    }
}
