@media only screen and (min-width: 768px) and (max-width: 991px) {

    #notre-groupe {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        background-color: #ffffff;
        padding-top: 20px;
        padding-left: 10%;
        padding-right: 10%;
        padding-bottom: 50px;
    }

    #notre-groupe .section-title {
        color: #C29B3F;
        font-size: 20px;
    }

    #notre-groupe .text {
        color: black;
        font-size: 15px;
        line-height: 2rem;
        padding-top: 15px;
    }

    .video-logo {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        font-family: 'Oriya MN Regular';
        font-size: 30px;
        letter-spacing: 2.3rem;
        z-index: 1000;
    }

    #project-casablanca {
        width: 30vw;
        border-radius: 25px;
        /* Set the corner radius */
    }

    #project-marrakech {
        width: 30vw;
        border-radius: 25px;
        /* Set the corner radius */
    }

    svg#section-video-layer>path {
        transform: translate(2%, 0%) !important;
    }




    #collaborations .title {
        font-size: 20px;
        text-align: center;
        color: #C29B3F;
    }


    #notre-histoire {

        gap: 20px;
        padding-left: 50px;
        padding-right: 50px;
    }


    #notre-histoire .section-title {
        font-size: 30px;
        padding-top: 40px;
        padding-bottom: 10px;
    }

    #notre-histoire .section-text {
        font-size: 17px;
        line-height: 2.6rem;
    }

    .nos-projets-text {

        padding-left: 15vw;
        padding-right: 15vw;
    }


    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        line-height: 1;
    }

    .avenir-light {
        font-family: "Avenir Light";
    }

    .avenir-regular {
        font-family: "Avenir Regular";
    }

    .oriya-mn-regular {
        font-family: "Oriya MN Regular";
    }

    .pf-marlet-display-regular {
        font-family: "PF Marlet Display Regular";
    }

    .bg-gold {
        background-color: rgb(194, 155, 63)
    }

    .bg-white {
        background-color: rgb(255, 255, 255)
    }

    .gold {
        color: rgb(194, 155, 63)
    }

    .bg-black {
        background-color: rgb(130, 130, 130);
    }

    .white {
        color: white;
    }

    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: 1000;
        transition: all 1s ease;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .header-show {
        transform: translateY(0);
    }

    #footer {
        border-top: 1px solid white;
        background-color: #1F1D3F;
        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-decoration: none;
        text-align: center;
        padding-top: 50px;
        padding-bottom: 50px;
    }


    #footer a {
        font-family: 'Oriya MN Regular';
        font-size: 14px;
        text-decoration: none;
        letter-spacing: 0.3em;

    }

    #copyright {
        background-color: #1F1D3F;
        width: 100%;
        display: flex;
        justify-content: center;
        flex-direction: row;
        color: white;
        gap: 10px;
        font-family: 'Avenir Light';
        font-size: 16px;
        padding-bottom: 25px;
        text-decoration: none;
        text-align: center;
    }

    #main-menu {
        flex: 1;
        text-align: center;
    }

    #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: 30px;
    }

    #lang-menu a {
        color: white;
        text-decoration: none;
        font-size: 20px;
    }

    .lang-bar {
        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: 30px;
    }





    .show {
        opacity: 1 !important;
        /* Hide middle part when not sticky */
    }

    main {
        margin-top: -100px;
        z-index: 500;
        width: 100%;
    }



    .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;
    }

    .hamburger-icon {
        cursor: pointer;
        background-color: transparent;
        width: 75px;
        height: 75px;
        padding-top: 18px;
        position: relative;
        overflow: visible;
    }

    .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: 1000;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
    }


    .sidebar a {
        font-family: 'Oriya MN Regular';
        text-decoration: none;
        /* Retire les soulignements des liens */
        /* Couleur dorée pour le texte */
        font-size: 28px;
        /* 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: 900;
        pointer-events: none;
    }

    .sidebar.open~.sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    #section-video {
        min-height: 100vh;
        width: 100%;
        display: block;
        object-fit: cover;
        z-index: -1;
    }

    #section-video video {
        min-height: 100vh;
        width: 100%;
        display: block;
        object-fit: cover;
        z-index: -1;
    }


    #video-logo {
        position: absolute;
        height: 100vh;
        width: 100%;
        z-index: 1;
        top: 0px;
        left: 0px;
        color: rgb(255, 255, 255);
        font-size: 100px;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        font-family: 'Oriya MN Regular';
        opacity: 0;
        transition: opacity .5s ease-in-out;

    }


    #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);
    }









    #contact {
        color: white;
    }

    #contact-div {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding-bottom: 30px;

    }







    /* @layer layer-1 {
    @keyframes scale-a-lil {
      from {
        scale: 1;
      }
  
      to {
        scale: .1;
      }
    }
  
    @media (prefers-reduced-motion: no-preference) {
      #section-video {
        animation: scale-a-lil linear both;
        animation-timeline: view();
        animation-range: 105vh 200vh;
      }
  
      .video-logo {
        animation: scale-a-lil linear both;
        animation-timeline: view();
        animation-range: 105vh 200vh;
      }
    }
  } */





    /* 20-12-2024 */



    #notre-histoire {
        background-repeat: no-repeat;
        background-size: cover;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 3;
    }


    #notre-histoire .section-title {
        display: inline;
        text-align: center;

        color: #C29B3F;
    }

    #notre-histoire .section-text {
        text-align: center;
        font-family: 'Avenir Light';
        line-height: 2.6rem;
    }


    #notre-histoire .section-text,
    #notre-histoire .section-title {
        opacity: 0;
        transform: translateY(100px);
        transition: opacity 0.1s ease, transform 0.1s ease;
    }






    #notre-histoire.active .section-text,
    #notre-histoire.active .section-title {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transform: translateX(0) !important;
    }






    .aol {
        background-repeat: no-repeat;
        background-size: cover !important;
        flex-direction: column;
        align-content: center;
        padding-top: 50px;
        padding-bottom: 50px;
        padding-left: 20vw;
        padding-right: 20vw;
        display: flex;
        /* position: relative; */

    }


    #aol-a {
        background: url("images/aol-a.png");
        justify-content: space-between;
    }


    #aol-o {
        background: url("images/aol-o.png");
        justify-content: flex-end;
    }

    #aol-l {
        background: url("images/aol-l.png");
        justify-content: flex-end;
    }







    .w-screen {
        width: 100vw;
    }

    .h-screen {
        height: 100vh;
    }



    .h-screen-min {
        min-height: 100vh;
    }

    .w-full {
        width: 100%;
    }

    .h-full {
        height: 100%;
    }

    /* #experience .svg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
  } */


    /* .aol .animated {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  } */


    /* 
  .aol .animated.in-view {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
  } */

    .aol .title {
        font-size: 30px;
        text-align: center;
        color: white;
    }

    .aol .sub-title {
        font-size: 20px;
        text-align: center;
        color: white;
        padding-bottom: 25px;
    }

    .aol .text {
        font-size: 17px;
        text-align: center;
        padding-top: 10px;
        line-height: 25px;
        color: white;
    }




    #project-list {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }


    #nos-projets {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 10px;
        gap: 30px;
    }




    #nos-projets .title {
        font-size: 20px;
        text-align: center;
        color: #C29B3F;
        letter-spacing: 0.3rem;
    }

    #nos-projets .sub-title {
        font-size: 20px;
        text-align: center;
        color: black;
        padding-bottom: 50px;
    }

    #nos-projets .text {
        font-size: 17px;
        line-height: 1.5rem;
        text-align: center;
        color: black;
        padding: 0 15vw;
    }


    #nos-collaborations {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        padding-left: 23vw;
        padding-right: 23vw;
        padding-top: 50px;
        padding-bottom: 50px;
    }


    #nos-collaborations .title {
        font-size: 30px;
        text-align: center;
        color: #C29B3F;
    }



    #collaborations .text {
        font-size: 17px;
        line-height: 2rem;
        text-align: center;
        padding-top: 10px;
        color: black;
    }

    .h-screen-50 {
        height: calc(100vh - 75px);
    }

    #actualites {
        background-image: linear-gradient(225deg, rgba(31, 29, 63, 0.7) 0%, rgba(31, 29, 63, 0.7) 100%), url('images/img-12.jpg');
        background-repeat: no-repeat;
        background-size: cover !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-left: 10vw;
        padding-right: 10vw;
    }



    #actualites .title {
        font-size: 20px;
        text-align: center;
        color: white;
    }



    #actualites .text {
        font-size: 17px;
        line-height: 2.6rem;
        text-align: center;
        padding-top: 25px;
        color: white;
    }

    #contact {
        background-color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding-top: 100px;
        padding-bottom: 100px;
        padding-left: 10vw;
        padding-right: 10vw;
        gap: 100px
    }


    #contact p {
        font-size: 17px;
        line-height: 2.6rem;
        text-align: center;
        padding-top: 25px;
        color: #1F1D3F;
    }


    .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: 10px;
        /* 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 */
        font-family: 'Oriya MN Regular';
        font-size: 20px;
        letter-spacing: 0.3rem;
    }

    /* Texte au survol */
    .contact-button:hover {
        color: white;
        /* Texte devient noir */
    }


    .section {
        display: flex;
        flex-direction: column;
        height: calc(100vh - 75px);
        width: 100%;
    }

    .img-div {
        flex: 55;
        height: 65%;
        position: relative;
    }

    .img-div img.background {
        height: 100%;
        width: 100%;
        object-fit: fill;
    }

    .img-div .img-div-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: black;
        opacity: 1;


    }





    .img-div img.foreground {
        position: absolute;
        top: 50%;
        left: 50%;
        opacity: 0.5;
        transform: translate(-50%, -50%);
        max-width: 55%;
        /* Adjust size as needed */
        max-height: 55%;
        z-index: 1500;
    }

    .img-div p.foreground {
        position: absolute;
        top: 0;
        left: 0;
        text-align: center;
        padding-top: 30px;
        display: inline;
        width: 100%;
    }


    .img-div .title {
        font-size: 30px;
        text-align: center;
        color: white;
        letter-spacing: 0.3rem;
    }


    .text-div {
        flex: 45;
        height: 35%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        background-color: #ffffff;
        padding-top: 20px;
        padding-left: 15%;
        padding-right: 15%;
        padding-bottom: 50px;
        position: relative;
    }



    .text-div .sub-title {
        font-size: 20px;
        text-align: center;
        color: #C29B3F;
        padding-bottom: 10px;
        letter-spacing: 0.3rem;

    }

    .text-div .text {
        font-size: 15px;
        text-align: center;
        padding-top: 10px;
        line-height: 2rem;
        color: black;
    }

    .project-top {
        background-image: url('images/proj-top-2@4x.png');
        background-repeat: no-repeat;
        background-size: cover !important;
        background-position: center;
    }

    .col-top {
        background-image: url('images/col-top.png');
        background-repeat: no-repeat;
        background-size: cover !important;
        background-position: center;
        min-height: 400px;
    }



    /* Small devices (portrait tablets and large phones, 600px and up) */


    /* Medium devices (landscape tablets, 768px and up) */

    /* Large devices (laptops/desktops, 992px and up) */



    #notre-histoire {
        background-repeat: no-repeat;
        background-size: cover;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 3;
    }


    #notre-histoire .section-title {
        display: inline;
        text-align: center;
        color: #C29B3F;
    }

    #notre-histoire .section-text {
        text-align: center;
        font-family: 'Avenir Light';
    }


    #notre-histoire .section-text,
    #notre-histoire .section-title {
        opacity: 0;
        transform: translateY(100px);
        transition: opacity 0.1s ease, transform 0.1s ease;
    }






    #notre-histoire.active .section-text,
    #notre-histoire.active .section-title {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transform: translateX(0) !important;
    }

    .ls {
        letter-spacing: 0.1rem;
        opacity: 0.75;
    }

    .anim-show-bottom {
        opacity: 0;
        transform: translateY(500px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .anim-show-bottom.animated {
        opacity: 1;
        transform: translateY(0);
    }



    .img-div .img-div-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: rgb(31, 29, 63);
        opacity: 1;
        transition: opacity 0.2s ease;
        z-index: 1000;
        height: 100%;
        width: 100%;


    }


    .text-div .img-div-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: white;
        opacity: 1;
        transition: opacity 0.2s ease;
        z-index: 1000;
        height: 100%;
        width: 100%;


    }

    .text-div img.foreground {
        position: absolute;
        top: 50%;
        left: 50%;
        opacity: 0.5;
        transform: translate(-50%, -50%);
        max-width: 55%;
        /* Adjust size as needed */
        max-height: 55%;
        z-index: 1500;
    }

    .anim-aol-o img.foreground {
        opacity: 0;
    }

    .anim-aol-a img.foreground {
        opacity: 0;
    }

    .anim-aol-l img.foreground {
        opacity: 0;
    }

}