@font-face {
    font-family: 'Avenir Light';
    src: url(fonts/Avenir-Light.ttf);
}

@font-face {
    font-family: 'Avenir Regular';
    src: url(fonts/Avenir-Regular.ttf);
}

@font-face {
    font-family: 'Miller Display Light';
    src: url(fonts/Miller-Display-Light.ttf);
}

@font-face {
    font-family: 'Oriya MN Regular';
    src: url(fonts/Oriya-MN-Regular.ttf);
}

@font-face {
    font-family: 'PF Marlet Display Regular';
    src: url(fonts/PF-Marlet-Display-Regular.otf);
}

.bg-white {
    background-color: rgb(255, 255, 255)
}

.white {
    color: rgb(255, 255, 255)
}

.gold {
    color: rgb(194, 155, 63)
}

.bg-gold {
    background-color: rgb(194, 155, 63)
}

.bg-blue {
    background-color: #1F1D3F
}

.blue {
    color: #1F1D3F
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1;
}




main {
    margin-top: -75px;
}


header {
    width: 100%;
    transform: translateY(-75px);
    transition: transform 1s ease-out;
    display: flex;
    align-items: center;

    height: 75px;
    background-color: rgba(0, 0, 0, 0.50);
    position: sticky;
    top: 0;
    z-index: 2000;
    transition: all 1s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header.show {
    transform: translateY(0);
    opacity: 1 !important;
}

#main-menu {
    flex: 1;
    text-align: center;
}

.hamburger-icon {
    cursor: pointer;
    background-color: transparent;
    width: 75px;
    height: 75px;
    padding-top: 18px;
    position: relative;
    overflow: visible;
}

.line-1 {
    background-color: white;
    width: 30px;
    height: 2px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    position: relative;
    top: 13px;
    transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    /* Smooth transition */
}

.line-1.open {
    transform: translate3d(0px, 8px, 0px) rotateZ(45deg);
    transform-style: preserve-3d;
}





.line-2 {
    background-color: white;
    width: 30px;
    height: 2px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    position: relative;
    top: 19px;
    opacity: 1;
    transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    /* Smooth transition */
}

.line-2.open {
    opacity: 0;
    transform: translate3d(-15px, 0px, 0px);
    transform-style: preserve-3d;
}

.line-3 {
    background-color: white;
    width: 30px;
    height: 2px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    position: relative;
    top: 25px;
    transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    /* Smooth transition */

}

.line-3.open {
    transform: translate3d(0px, -8px, 0px) rotateZ(-45deg);
    transform-style: preserve-3d;
}

.sidebar {
    position: fixed;
    top: 75px;
    left: -40vw;
    /* Initially hidden */
    width: 40vw;
    height: calc(100vh - 75px);

    /* background-image: url('images/bg-sidebar.jpg');
background-size: cover;
opacity: 0.6; */

    display: flex;
    /* Utilise un conteneur flexible */
    flex-direction: column;
    /* Dispose les enfants verticalement */
    justify-content: center;
    /* Centre les enfants verticalement */
    align-items: center;

    background-color: rgba(0, 0, 0, 0.3);

    transition: left 1s ease-in-out;
    /* Smooth slide-in animation */
    z-index: 1900;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
}

#lang-menu {
    flex: 1;
    text-align: center;
    font-family: 'Oriya MN Regular';
    text-decoration: none;
    align-items: center;
    gap: 10px;
    display: flex;
    justify-content: end;
    padding-right: 10px;
}

#lang-menu a {
    color: white;
    text-decoration: none;
    font-size: 20px;
}

.lang-menu div {
    width: 2px;
    height: 30px;
}

#logo {
    flex: 2;
    /* Take remaining space */
    text-align: center;
    transition: opacity 0.3s ease;
    opacity: 0;
    /* Default visible */
    font-family: 'Oriya MN Regular';
    color: white;
    font-size: 2.5vw;
}

#logo.show {
    opacity: 1;
}


.sidebar a {
    font-family: 'Oriya MN Regular';
    text-decoration: none;
    /* Retire les soulignements des liens */
    /* Couleur dorée pour le texte */
    font-size: 2vw;
    /* Taille de la police */
    margin: 10px 0;
    color: white;
    /* Espacement vertical entre les liens */

    transition: transform 0.3s ease;
    /* Smooth scaling effect */
}

.sidebar a:hover {
    color: white;
    /* Couleur dorée plus claire au survol */
    transform: scale(1.2);
}

.sidebar.open {
    left: 0;
    /* Slide into view */
}


.sidebar-overlay {
    position: fixed;
    top: 0px;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-image: url('images/sidebar-image.png');
    background-repeat: no-repeat;
    background-size: cover;

    z-index: 1800;
    pointer-events: none;
}

.sidebar.open~.sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
}


.img-text-section {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 75px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.img-text-img-section {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 75px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.img-text-section .img-section {
    flex: 55%;
    width: 100%;
    min-height: 50vh;
}

.img-text-section .img-section-fg {
    flex: 55%;
    width: 100%;
    min-height: 50vh;
    position: absolute;
    top: 0;
    opacity: 0;
    transform: scale(0.6);
}


.img-text-section .text-section {
    padding-top: 30px;
    padding-bottom: 30px;
    flex: 45%;
    /* Takes 45% of the space */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.img-text-img-section .img1-section {
    flex: 40%;
    width: 100%;
    min-height: 40vh;
}

.img-text-img-section .text-section {
    padding-top: 30px;
    padding-bottom: 30px;
    flex: 30%;
    /* Takes 45% of the space */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.img-text-img-section .img2-section {
    flex: 30%;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.img-text-img-section .img2-section img {
    border-radius: 25px;
    width: 25%;
    margin-bottom: 30px;
}



.full-text-section {
    display: flex;
    width: 100%;
    height: calc(100vh - 75px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
}


#section-a .img-section {
    background-image: url('img/aol-a-desk.png');
    background-repeat: no-repeat;

    background-position: center;
    background-size: 100% 100%;
}

#section-a .img-section-fg {
    background-image: url('img/aol-fg-1.png');
    background-repeat: no-repeat;

    background-position: center;
    background-size: contain;
}

#section-o .img-section {
    background-image: url('img/aol-o-desk.png');
    background-repeat: no-repeat;

    background-position: center;
    background-size: 100% 100%;
}

#section-o .img-section-fg {
    background-image: url('img/aol-fg-2.png');
    background-repeat: no-repeat;

    background-position: center;
    background-size: contain;
}

#section-l .img-section {
    background-image: url('img/aol-l-desk.png');
    background-repeat: no-repeat;

    background-position: center;
    background-size: 100% 100%;
}

#section-l .img-section-fg {
    background-image: url('img/aol-fg-3.png');
    background-repeat: no-repeat;

    background-position: center;
    background-size: contain;
}

#collaborations .img-section {
    background-image: url('img/aol-col-desk.png');
    background-repeat: no-repeat;

    background-position: center;
    background-size: 100% 100%;
}

#nos-projets .img1-section {
    background-image: url('img/aol-prj-desk.png');
    background-repeat: no-repeat;

    background-position: center;
    background-size: 100% 100%;
}

#actualites {
    background-image: linear-gradient(225deg, rgba(31, 29, 63, 0.7) 0%, rgba(31, 29, 63, 0.7) 100%), url('img/aol-acc-desk.jpg');
    background-repeat: no-repeat;

    background-position: center;
    background-size: 100% 100%;
}


.title {
    font-size: 2.05vw;
    line-height: 2vmax;
    font-family: 'PF Marlet Display Regular';
    text-align: center;
    padding-left: 25px;
    padding-right: 25px;
}

.text {
    font-size: 1.05vw;
    line-height: 2vmax;
    font-family: 'Avenir Light';
    text-align: center;
    padding: 0 25vmin;
}



#copyright {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 10px;
    font-family: 'Avenir Light';
    font-size: 1vmax;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
    border-top: 1PX solid white;
}

#footer {
    border-top: 1px solid white;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    color: white;
    font-family: 'Oriya MN Regular';
    text-align: center;
    padding-top: 25px;
    padding-bottom: 25px;
}

#footer div {
    width: 2px;
    height: 30px;
}


#footer a {
    font-family: 'Oriya MN Regular';
    font-size: 1vw;
    text-decoration: none;
    letter-spacing: 0.15vw;

}

#contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-top: 100px;
    padding-bottom: 100px;
    gap: 100px
}


#contact p {
    text-align: center;
}


.contact-button {
    position: relative;
    /* Nécessaire pour les pseudo-éléments */
    display: inline-block;
    /* Ajuste le bouton à son contenu */
    padding: 20px 80px;
    /* Espacement interne */
    font-size: 1.5vw;
    /* Taille du texte */
    color: #1F1D3F;
    /* Couleur du texte */
    background: white;
    /* Couleur de fond initiale */
    border: 2px solid #1F1D3F;
    /* Bordure dorée */
    cursor: pointer;
    /* Curseur interactif */
    overflow: hidden;
    /* Cache les parties dépassantes */
    transition: color 0.3s ease;
    /* Transition de couleur fluide */
}

.contact-button::before {
    content: '';
    /* Nécessaire pour les pseudo-éléments */
    position: absolute;
    /* Positionnement absolu */
    top: 0;
    left: 0;
    /* Débute hors du bouton */
    width: 100%;
    /* Couvre la largeur complète */
    height: 100%;
    /* Couvre la hauteur complète */
    background: #1F1D3F;
    /* Couleur dorée de l'animation */
    transition: transform 0.5s ease;
    /* Animation fluide */
    transform: translateX(-100%);
    /* Se cache à gauche */
    z-index: 1;
    /* Place au-dessus du fond */
}

/* Changement au survol */
.contact-button:hover::before {
    transform: translateX(0);
    /* Déplace la vague dorée */
}

.contact-button span {
    position: relative;
    /* Place au-dessus de l'animation */
    z-index: 2;
    /* Priorité sur ::before */
}

/* Texte au survol */
.contact-button:hover {
    color: white;
    /* Texte devient noir */
}

.video-logo {
    position: absolute;
    height: 100vh;
    width: 100%;
    z-index: 2;
    top: 0px;
    left: 0px;
    color: rgb(255, 255, 255);
    font-size: 6vw;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Oriya MN Regular';
    opacity: 1;
    transition: opacity .5s ease-in-out;

}

#section-video {
    width: 100%;

    display: block;
    object-fit: cover;
    z-index: -1;
}

#section-video video {
    height: 100vh;
    object-fit: cover;
    width: 100%;
}

#section-video-layer {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.5;
    transform: translateY(100vh);
    transition: transform 0.1s ease-in-out;
}

#section-video-layer.show-active {
    transform: translateY(0);
}

#notre-histoire {
    opacity: 0;
    z-index: 4;
    position: absolute;
    top: 0;
    background-color: white;
}


#notre-histoire.active {
    opacity: 1;

}

#notre-histoire {
    height: 100%;
}

#notre-histoire.active .text,
#notre-histoire.active .title {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transform: translateX(0) !important;
}

#notre-histoire .text,
#notre-histoire .title {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.1s ease, transform 0.1s ease;
}


/* Laptop */
@media (max-width: 1024px) {
    #logo {
        font-size: 4vw;
    }

    .text {
        padding: 0 20vmin;
    }

    .img-text-section .text-section {
        gap: 10px;
    }

    /* svg>path {
        transform: translate(40%, 0%) !important;
    } */

}

@media (max-width: 768px) and (orientation: portrait) {
    /* svg>path {
        transform: translate(30%, 0%) !important;
    } */
}

/* Tablet */
@media (max-width: 768px) {
    #logo {
        font-size: 5vw;
    }

    /* svg>path {
        transform: translate(25%, 0%) !important;
    } */

    .title {
        font-size: 3.5vw;
        line-height: 3vmax;
    }

    .text {
        padding: 0 10vmin;
        font-size: 1.75vw;
        line-height: 2vmax;
    }

    .img-text-section .text-section {
        gap: 20px;
    }

    #footer a {
        font-size: 1.25vw;
        letter-spacing: 0.3vw;

    }
}


/* Phone */
@media (max-width: 576px) {
    #logo {
        font-size: 5vw;
    }

    /* svg>path {
        transform: translate(2%, 100%) !important;
    } */

    .sidebar {
        left: -100vw;
        width: 100vw;
    }

    .sidebar a {
        font-size: 5vw;
    }

    .title {
        font-size: 5.5vw;
        line-height: 4vmax;
    }

    .text {
        padding: 0 10vmin;
        font-size: 3.5vw;
        line-height: 2.5vmax;
    }

    #section-a .img-section {
        background-image: url('img/aol-a-mob.png');
    }

    #section-o .img-section {
        background-image: url('img/aol-o-mob.jpg');
    }

    #section-l .img-section {
        background-image: url('img/aol-l-mob.jpg');
    }

    #collaborations .img-section {
        background-image: url('img/aol-col-mob.jpg');
    }

    #nos-projets .img1-section {
        background-image: url('img/aol-prj-mob.jpg');
    }

    #footer {
        flex-direction: column;
        flex-wrap: wrap;
        padding-left: 25px;
        padding-right: 25px;
    }

    #footer a {
        font-size: 4vw;
        letter-spacing: 0.6vw;

    }

    #footer div {
        width: 0px;
        height: 0px;
    }

    #copyright {
        font-size: 3vw;
    }

    .img-text-img-section .img2-section img {
        border-radius: 25px;
        width: 40%;
        margin-bottom: 30px;
    }

    #actualites {
        background-image: linear-gradient(225deg, rgba(31, 29, 63, 0.7) 0%, rgba(31, 29, 63, 0.7) 100%), url('img/aol-acc-mob.jpg');
    }

}