* {
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'Lulo';
    src: url('/font/Lulo.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'LuloCleanOne';
    src: url('/font/Lulo Clean One.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/font/Montserrat.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat2';
    src: url('/font/Montserrat-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat3';
    src: url('/font/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat4';
    src: url('/font/Montserrat-Thin.ttf');
}

html, body {
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    --scroll-behavior: smooth;
    scroll-behavior: smooth;
}

html {
    background-color: black;
}

#contenu {
    min-height: 100%;
    position: relative;
}

header {
    justify-content: space-between;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    height: 7%;

    h1 {
        color: white;
        font-family: 'Montserrat';
    }

    img {
        margin-left: 50px;
        margin-top: 15px;
    } 

    div.headerdiv2 {

        justify-content: right;
        display: flex;
        align-items: center;
        height: 100px;

               

        div.reseau {
            display: flex;
            
        }   

        .reseau:hover {
            text-decoration: none;
        }

        a:hover {
            text-decoration: underline;
        }
    
       
        
    }
 
}

.headerdiv2 {
    display: flex;
    gap: 2.5em;
    align-items: center;

    a {
        text-decoration: none;
        color: white;
        font-family: 'Montserrat';
        font-size: 1.3em;
    }

    div.reseau {
        display: flex;
        margin-right: 15px;       
    }   

    .reseau:hover {
        text-decoration: none;
    }

    div.lien {
        display: flex;
        align-items: center;    
        white-space: nowrap;
        gap: 20px;

    
    }   
        
}

body.Homepage {
    position: relative;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-image: url('/img/bg.webp');
    background: rgba(0, 0, 0, 0.4);
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh; /* Assure que le body prend toute la hauteur de la fenêtre */
    
}

.hero {
    position: relative;
    height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: center; /* centre le texte sur la vidéo */
}


#video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover; /* Couvre tout l'écran sans déformation */
    z-index: -1; /* Derrière tout le contenu */
}

#contenu {
    position: relative;
    z-index: 1; /* Assure que le contenu est au-dessus de la vidéo de fond */
}

body.Homepage {
    margin: 0;
    padding: 0;
    height: 100vh;
    position: relative; /* Permet le positionnement absolu du contenu */
}

/* Overlay sombre optionnel pour améliorer la lisibilité du texte */
body.Homepage::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4); /* Ajuste l'opacité */
    z-index: -1;
}

footer {
    display: flex;
    position: absolute;
    justify-content: space-between;
    align-items: bottom;
    background-color: black; /* Couleur de fond transparente */
    height: 3%;
    width: 100%;
    color: white;
    font-family: "Montserrat";
    margin-top: 5%;

    div {
        margin-right: 5%;
        margin-left: 5%;
    }
}

button.projet {
    display: inline-block;
    font-family: 'Montserrat4';
    padding: 20px 40px;
    font-size: 32px;
    color: white;
    background-color: transparent;
    border: 2px solid white;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    margin-left: 10%;
    margin-top: 5%;
    letter-spacing: 10px;
    transition: background-color 350ms, color 350ms;
    animation: fadeIn 1s ease-in-out;
}   

button.projet:hover {
    background-color: white;
    color: black;
}

.tanguysourain {
    font-family: 'Lulo';
    font-size: 375%;
    color: white;
    margin-top: 3.5%;
    margin-left: 10%;
}

h2 {
    font-family: 'Montserrat4';
    color: white;
    text-transform: uppercase;
    font-size: 300%;
    margin-top: 5%;
    margin-left: 10%;
    letter-spacing: 15px;
}

.tanguysourain, h2 {
    animation: slideUpFadeIn 1s;
}

.quijesuis {
    color: white;
    text-align: center;
    background-color: black;
    background-size: cover;
    margin-top: 0;
    justify-content: center;
  
    div.pdp {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5%;

        img {
            width: 15%;
            border-radius: 50px;
            overflow: hidden;
            transition: transform 0.3s ease; /* Transition fluide */
            border: 2px solid black;
        }

        img:hover {
            transform: scale(1.01); /* Agrandissement de 10% */
        }

        p {
            font-family: "LuloCleanOne";
            font-size: 20px;
            width: 30%;
            text-align: left;
        }
    }
        
    div.para {
    
            p{
            font-family: 'Montserrat';
            font-size: 120%;
            margin-top: 5%;
            width: 60%;
            text-align: left;    
            margin: 0 auto;    
            padding-top: 50px;
        }
    }
}

a.ariane {
    p {
    color: white;
    font-family: 'Montserrat';
    margin: 2%;
    position: absolute;
    }

    :hover {
        text-decoration: underline;
    }
}

.scroll-down {
    transform: rotate(90deg);
    margin-top: 20%;
    margin-left: 60%;

    img {
        width: 70px;
        height: 70px;
        transform: rotate(90deg);
        animation: bounce 2s infinite;
    }
}

.slide-up-fade-in {
    animation: slideUpFadeIn 2s ease-in-out;
}

button.ensavoirplus {
    display: inline-block;
    font-family: 'Montserrat4';
    padding: 20px 40px;
    font-size: 32px;
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid white;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    margin-top: 5%;
    letter-spacing: 10px;
    transition: background-color 350ms, color 350ms;
}   

button.ensavoirplus:hover {
    background-color: white;
    color: black;
}

.bannière {
    display: block; 
    margin: 0 auto;
    margin-top: 5%;
    width: 80%;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(0);
    }
    40% {
        transform: translateX(-15px);
    }
    60% {
        transform: translateX(-10px);
    }
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px); /* Déplace le texte vers le bas de 20px */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Remet le texte à sa position initiale */
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}



/* Ajoutez ces styles à votre CSS existant */

/* HAMBURGER MENU STYLES */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* MOBILE MENU */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    transition: right 0.3s ease;
    z-index: 1000;
    padding-top: 80px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
}

.mobile-menu-links a {
    color: white;
    text-decoration: none;
    font-family: 'Montserrat';
    font-size: 1.5em;
    transition: color 0.3s;
}

.mobile-menu-links a:hover {
    color: #ccc;
}

.mobile-menu-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}


/* Tablettes en mode portrait */
@media screen and (max-width: 768px) {
    /* HEADER MOBILE */
    header {
        padding: 15px 20px;
        height: auto;
    }

    header img {
        margin-left: 0;
        margin-top: 0;
        width: 100px !important;
    }

    .headerdiv2 {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    /* MAIN CONTENT MOBILE */
    .tanguysourain {
        font-size: 180% !important;
        margin-top: 8% !important;
        margin-left: 5% !important;
        text-align: center;
        margin-right: 5%;
    }

    h2 {
        font-size: 120% !important;
        margin-top: 8% !important;
        margin-left: 5% !important;
        margin-right: 5%;
        text-align: center;
        letter-spacing: 8px !important;
    }

    button.projet {
        padding: 15px 25px !important;
        font-size: 18px !important;
        margin-left: 5% !important;
        margin-right: 5%;
        margin-top: 8% !important;
        letter-spacing: 5px !important;
        display: block;
        width: 90%;
        text-align: center;
    }

    .scroll-down {
        transform: none !important;
        margin-top: 10% !important;
        margin-left: 0 !important;
        text-align: center;
        width: 100%;
    }

    .scroll-down img {
        width: 50px !important;
        height: 50px !important;
        transform: rotate(90deg);
    }

    .quijesuis {
        height: auto !important;
        padding: 10% !important;
        padding-bottom: 0 !important;
        margin-bottom: 20px;
    }

    .quijesuis img {
        width: 100% !important;
        height: 50%;
        margin: 10px;
        margin-left: auto;
        margin-right: auto;
        border-radius: 30px !important;
    }

    .quijesuis p {
        font-size: 85% !important;
        margin-top: 8% !important;
        line-height: 1.6;
        text-align: justify;
        padding: 0 10px;
               
    }


    .pdp p {
        font-family: "LuloCleanOne";
        font-size: 70% !important;
        width: 100% !important;
        text-align: left !important;
    }

    .para p {
        width: 90% !important;
        text-align: justify !important;
        padding-top: 0 !important;
    }
    .bannière {
        display: none;
    }


    button.ensavoirplus {
        padding: 15px 25px !important;
        font-size: 18px !important;
        letter-spacing: 5px !important;
        margin-top: 8% !important;
        display: block;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    footer {
        position: relative !important;
        height: auto !important;
        padding: 20px 0;
        margin-top: 0 !important;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    footer div {
        margin: 0 !important;
    }

    footer p {
        font-size: 14px;
    }

    footer img {
        width: 28px !important;
        height: 28px !important;
    }
}

header {
    padding: 15px 20px;
    height: auto;

    img {
        margin-left: 0;
        margin-top: 0;
    }
}
