@font-face {
    font-family: 'Lato-Regular';
    src: url("../fonts/Lato-Regular.ttf/");
}

@font-face {
    font-family: 'Lemonmilk-Regular';
    src: url("../fonts/Lato-Bold.ttf");
}

@font-face {
    font-family: 'Lemonmilk-Bold';
    src: url("../fonts/lemon_milk/LEMONMILK-Bold.otf");
}

@font-face {
    font-family: 'Lemonmilk-Light';
    src: url( "../fonts/lemon_milk/LEMONMILK-Light.otf");
}

body {
    background-color: #060929;
    color: white;
    display: flex;
    flex-direction: column; 
    font-family: "Lato-Regular";
}

/* Page de garde */
.presentation {
    background-image:url("../Images/Header.png");
    background-size: cover;
    width: 100%;       
    /*height:  88.11292719167905vh;*/
    height:64.112927vh;
    z-index: 1000;
    font-family: 'Lato-Regular', sans-serif;
   
}

.intro p {
    font-size: 21px;
    padding-right: 40px;
    margin-left: 55%;
    font-family: 'Lato-Regular', sans-serif;
}

.intro h1 {
    font-size: 3rem;
    margin-bottom: 45px;
    /*padding: 20px;*/
    margin-left: 55%;
    font-family: 'Lato-Regular', sans-serif;
}


.intro {
    /*margin-top: 30vh;*/
    margin-top:18vh;
    margin-left: 20px;
    font-family: 'Lato-Regular', sans-serif;
}

.presentation-text{
    font-family: 'Lato-Regular', sans-serif;
    text-align:justify;
}

.presentation-text-responsive {
    display: none;
    font-family: 'Lato-Regular', sans-serif;
}

/* Style scroller */
.scroller-palette {
    display: none;
}

.responsive-project {
    display: none;
}

/* Style list card */
.project-category {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    margin-bottom: 20px;
    height: auto; 
}

.project-title-div{
    text-align:center;
    margin-top:15%;
    margin-bottom:3.5%;
}

.project-title {
    font-size: 1.3em;
    margin-bottom: 5px;
    font-family: 'Lemonmilk-Regular', sans-serif;
    text-align:center;
}

.cardImg{
    margin-bottom:50px;
}

.cardTitle1{
    font-size:1.2em;
    font-family: 'Lemonmilk-Regular', sans-serif;
    align-items: center;
    /*margin:0;*/
}

.project-list {
    display: flex;
    /*grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));*/
    grid-gap: 7%;
    justify-content: center;
    align-content: center;
    /*width:100%;*/
}

.project-card-body {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    top: 0;
    right: -100%;
    position: absolute;
    color: white;
    transition: right 1s;
    /*font-family: "Lato-Regular", sans-serif;*/
    font-family: "CenturyGothic-Regular";
    /*text-align:justify;*/
}

.management-item, .data-item, .innovation-item, .conformite-item, .autre-item {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    width: 250px;
    height: 400px;
    padding: 20px;
    font-size: 1.1em;
    overflow: hidden;
}

.management-item img, .data-item img, .innovation-item img, .conformite-item img, .autre-item img {
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 200px;
    margin-top: 20%;
}

.management-item:hover .project-card-body, .data-item:hover .project-card-body, .innovation-item:hover .project-card-body, .conformite-item:hover .project-card-body, .autre-item:hover .project-card-body {
    right: 0;
}

/* background image pour les cartes */
.management-item {
    background-image: url("../Images/projets/Carte-projet_management.png");
    background-size: cover;
}

.management-item .project-card-body {
    background-image: url("../Images/projets/Carte-projet_management.png");
    background-size: cover;
}

.data-item {
    background-image: url("../Images/projets/Carte-projet-data.png");
    background-size: cover;
}

.data-item .project-card-body {
    background-image: url("../Images/projets/Carte-projet-data.png");
    background-size: cover;
}

.innovation-item {
    background-image: url("../Images/projets/Carte-projet-innovation.png");
    background-size: cover;
}
.innovation-item .project-card-body {
    background-image: url("../Images/projets/Carte-projet-innovation.png");
    background-size: cover;
}

.conformite-item{
    background-image: url("../Images/projets/Carte-projet-conformite.png");
    background-size:cover ;
}

.conformite-item .project-card-body{
    background-image: url("../Images/projets/Carte-projet-conformite.png");
    background-size:cover ;
}

.autre-item{
    background-image: url( "../Images/projets/Carte-projet-autre.png");
    background-size:cover ;
}
.autre-item .project-card-body{
    background-image: url( "../Images/projets/Carte-projet-autre.png");
    background-size:cover ;
}
/* contact  */

.contact {
    display: flex;
    flex-direction: column;
    margin-top: 50px;
    margin-bottom: 3%;
}

.ntrst {

    margin-bottom: 20px;
    text-align:center;
    font-family: 'Lemonmilk-Regular', sans-serif;
}



.contact-button {

    background-color: #22394F;
    color: white;
    border: none;
    width: 300px;
    height: 100px;
    /*padding:6%;*/
    border-radius: 40px;
    font-size: 2rem;
    margin: 0 auto;

}

/* Popup */


.popup_container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup_container.active {
    display: flex;
    flex-direction: column;
}

.popup {
    background: #22394F;
    padding: 30px;
    border-radius: 8px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 9999;

}

.formulaire {
    width: 300px;
    display: flex;
    flex-direction: column;
    font-family: 'Lato-Regular', sans-serif;
}

.formulaire form {
    display: flex;
    flex-direction: column;
}

.formulaire {
    margin-bottom: 15px;
    position: relative;
}

.formulaire input,
.formulaire textarea {
    width: 100%;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px;
    background-color: #22394F;
}

.formulaire label {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #ffffff;
    margin-bottom:3%;
}

.formulaire textarea {
    resize: none;
}

.formulaire input {
    height: 36px;
}

.formulaire input[type="submit"] {
    background-color: lightgray;
    color: rgb(0, 0, 0);
    border: none;
    /*width: 22%;*/
    /*height: 20px;*/
    border-radius: 40px;
    margin: 0 0 0 auto;
    float: right;
    text-align: center;
    line-height: 10px;
    cursor: pointer;
    padding:5%;
    font-weight:bold;
    margin-top:5%;
}

.formulaire input[type="email"],
input[type="text"],
textarea {
    color: #ffffff;
    cursor: pointer;
    margin-bottom: 10px;
}

.formulaire textarea {
    resize: none;
}

.buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    background-color: #017AA1;
    border-radius: 70px;
}

.buttons button {
    font-size: 1.3em;
   /* margin: 0 10px;*/
    padding: 10px;
    color: #ffffff;
    border: none;
    border-radius: 70px;
    cursor: pointer;
    padding-right: 25px;
}



.buttons button:hover {
    background: #22394F;
    transition: ease-in-out 0.3s;
}



.active {
    display: block;
}

.inactive {
    display: none;
}

.on {
    background-color: #014A66;
}

.off {
    background-color: #017AA1;
}

.calendly-inline-widget {
    height: 450px;
    width: 750px;
}

/* Disable scrolling when popup is active */
body.no-scroll {
    overflow: hidden;
}

.project-text{
    font-size:1,2em;
    width:90%;
    margin:auto;
}

@media screen and (min-width: 900px){
    .format-ordinary{
        align-items:center;
        width: 60%;
        margin:auto;
        overflow: hidden;
        margin-top:5%;
    }
    
    .project-whole-card{
        align-items:center;
        overflow-x: hidden;
        width:auto;
    }
    
    .retourEnHaut{
        display:none;
    }
    
    #RGPDtexte{
        font-size:0.85em;
    }
}

@media all and (min-width: 300px) and (max-width: 900px) {

    /* page de garde*/
    .presentation-text-responsive {
        display: flex;
        flex-direction: column;
        list-style: none;
        /*font-family: "Lemonmilk-light";*/
        margin-top:5%;
    }
    
    .presentation-text-responsive a{
        background-color:#22394F;
        padding:2.5%;
        border:1px solid white;
        border-radius: 10px 10px 10px 10px;
    }
    
    .presentation-text-responsive li{
        margin-top:4%;
    }
    
    .format-ordinary{
        align-items:center;
        /*width: 100%;*/
        width: 390px;
        margin:auto;
        overflow-x: hidden;
    }
    
    .project-title-div{
        text-align:center;
    }

    .presentation-text {
        display: none;
    }
    .presentation {
        height: 45%;
        margin-top:5%;
        margin-bottom:5%;
        padding-bottom:5%;
    }

    .intro h1{
        padding-left: 20px;
        font-size: 2rem;
        margin-left: 0;
    }
    a{
        color: white;
        text-decoration: none;
    }

    .intro {
        margin-left: 0;
        margin-top: 0;
    }

    .scroller-palette {
        background: #e8e8ed;
        border-radius: 70px;
        display: inline-flex;
        margin-bottom: 40px;
        vertical-align: top;
        align-items: center;
        margin: 0 auto;
        padding: 0 25px;
    }

    .responsive-project {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 20px;
    }

    .scroller-button {
        background: #e8e8ed;
        border: 2px solid #e8e8ed;
        color: #1d1d1f;
        font-family: SF Pro Text, SF Pro Icons, Helvetica Neue, Helvetica, Arial, sans-serif;
        font-size: 14px;
        font-weight: 400;
        font-weight: 600;
        letter-spacing: -.016em;
        line-height: 1.4285914286;
        margin: 0;
        padding: 12px 20px;
        display: block;
    }

    .scroller-button:hover {
        background: #1d1d1f;
        color: #f5f5f7;
        cursor: default;
        border-radius: 25px;
    }
    
    .project-title {
        text-align:center;
    }

    .project-category {
        height: auto; /* Adjust height to fit content */
    }

    .project-list {
        display: block; /* Stack items vertically on small screens */
        overflow-x:hidden;
    }

    .management-item, .data-item, .innovation-item, .conformite-item, .autre-item {
        width: 275px;
        margin-bottom: 20px; /* Space between items */
        /*height: 555px;*/
    }

    /* Hide all items except the first one by default in mobile view */
    .management-item, .data-item, .innovation-item, .conformite-item, .autre-item{
        display: none;
    }

    .management-item:first-child, .data-item:first-child, .innovation-item:first-child, .conformite-item:first-child, .autre-item:first-child {
        display: block;
    }

        /*contact style*/
        .ntrst{
            margin-left: 0;
            margin: 20px;
        }
        .popup_container {
            
            height: 800px;
            align-items: center;
        }
        
    .contact{
        height:20%;
        margin-top:5%;
    }
    
    .retourEnHaut{
        font-size:21px;
        text-align:center;
        font-family: 'Lato-Regular', sans-serif;
        margin-top:1%;
    }
    
    #RGPDtexte{
        font-size:0,8em;
    }
}
