* {
    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: '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;
}

body {
    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;
        }
    
        .lien: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 {
    margin: 0;
    padding: 0;
    background-image: url('/img/bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh; /* Assure que le body prend toute la hauteur de la fenêtre */
    
}

.galerie {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-top: 5%;

    div.part {
        position: relative;
        text-align: center;
        color: white;

        img {
            transition: transform 0.3s ease, filter 0.3s ease;

            
        }


        h2 {
            font-family: 'Lulo';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            margin: 0;
            padding: 10px;
            transition: transform 0.3s ease, font-size 0.3s ease;
        }

        p {
            position: absolute;
            top: 70%; /* Ajustez cette valeur pour positionner le paragraphe */
            left: 50%;
            transform: translate(-50%, -50%);
            margin: 0;
            padding: 10px;
            font-family: 'Montserrat';
            transition: transform 0.3s ease, font-size 0.3s ease;
        }
    }
}

h2 {
    font-family: 'Lulo';
    color: white;
    letter-spacing: 10px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 150%;
}

.grid {
    display: flex;
    justify-content: center;
    gap: 50px;
}


.img:hover  {
    filter: brightness(0.4); /* Assombrit l'image */
}

.part:hover h2 {
    transform: translate(-50%, -50%) scale(1.4); /* Agrandit légèrement le texte */
}

.part:hover p {
    transform: translate(-50%, -10%) scale(1.4); /* Agrandit légèrement le texte */
}


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

    .modal-content {
        margin: auto;
        display: block;
        width: 30%;
        max-width: 700px;
        max-width: 90vw; /* Limite la largeur maximale à 90% de la largeur de la fenêtre */
        max-height: 80vh; /* Limite la hauteur maximale à 80% de la hauteur de la fenêtre */
    }

    .modal-content.horizontal {
        width: 60vw; /* Largeur maximale pour les images horizontales */
        height: auto;
    }
    
    .modal-content.vertical {
        width: auto;
        height: 80vh; /* Hauteur maximale pour les images verticales */
    }
    

    #caption {
        margin: auto;
        display: block;
        width: 80%;
        max-width: 700px;
        text-align: center;
        color: #ccc;
        padding: 10px 0;
        height: 150px;
    }

    .modal-content, #caption {
        animation: zoom 0.6s;
    }
}

#Mountain {
    color: black;
}




@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


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: 6%;

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

a.ariane {
    color: white;
    text-decoration: underline;
}

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

p.ariane {
    color: white;
    font-family: 'Montserrat';
    margin: 2%;
    margin-left: 75px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-item {
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 200px;
    height: auto;
}

.gallery-item .title {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px;
}

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

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.modal-content, #caption {
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


@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;
    }
}

.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;
}

.mobile-menu {
    display: block;
}



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

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

