:root {
    --primary-color2: #2c3e50;
    --primary-color: #004877;
    --secondary-color: #3498db;
    --secondary-color2: #3498dbe5;
    --background-light: #f4f6f7;
    --background-light2: #f4f6f7; 
    --text-color: #333;
    --text-color2: #9b9b9b;
    --text-color-white:#fff;
    --overlay-color: rgba(0,0,0,0.5);
    --overlay-color2: #112b44cc;
    --overlay-color3: #112b44cc;
    --overlay-color4: rgba(0,0,0,0.6);

}
@font-face {
    font-family: "Barlow" ;
    src: url(../font/Barlow-Medium.ttf);
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    /* font-weight: 100; */
    /* font-style: normal;
    font-stretch: normal;
    font-variant: normal; */
    font-display: swap;
}

@font-face {
    font-family: "Barlow light" ;
    src: url(../font/Barlow-Light.ttf);
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    /* font-weight: 100; */
    /* font-style: normal;
    font-stretch: normal;
    font-variant: normal; */
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* transition: min-height 0.2s ease-out;  */
}



.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

body, html {
    
    font-family: 'Barlow light', sans-serif;
    /* line-height: 1.3; */
    color: var(--text-color);
    scroll-behavior: smooth;

}
h1, h2, h3,h4 {
    margin-bottom: 15px;
}
h3{
    width: 100%;
}


h1,h2,h3, .nav-logo span {
    font-size: 200%;
    z-index: 3;
}

h2, h1{
    width: 100%;
    text-align: center;
    font-size: 45px;
}
.hero h2 {
    text-align: left;
}

.nav-logo span, .parallax-header h1{
    white-space: nowrap;
}

.btn {
     margin-top: 10px;
}

header h1 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

hr {
    margin: 0;
    padding: 0;
    border: none;
    border-bottom: 1px dotted #ffffff33;
    width: 100%;
    height: 1px;

  }
  
section, header {
    min-height: 100vh;
}

header .container{
    text-align: center;
    width: auto;
}

/* Parallax Backgrounds */
.parallax-header {
    position: relative;
    background-image: url('../images/domenico-loia-hGV2TfOh0ns-unsplash-.jpg');
    background-attachment: fixed;
    background-position: top;
    background-repeat: no-repeat;
    background-size: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-bottom: 2px var(--secondary-color) solid;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color4);
    z-index: 2;
}
header .container {
    width: 600px !important;
}
header div > p{
    text-align: justify;
}
.header-contact{
    background-color: var(--overlay-color2);
    background-image: linear-gradient(90deg, var(--secondary-color2) 30%, #0067aa22 100%);
    padding: 1em;
    border-radius: 3px;
}

strong {
    margin-bottom: 10px;
    display: block;
    font-size: 22px;
    text-align: center;
}
header .sub2{
    padding: 20px 30px;
    /* background-color: #2980b9bb; */
    color: var(--background-light2);
    line-height: 2.2;
    font-size: 22px;
    text-align: left;

}
.sub2 div {
    display: flex;
    align-items: center;
    border-bottom: #ffffff33 dotted 1px;

}
.sub2 p{
    text-align: left;
    padding: 12px 20px;

    width: 100%;
    line-height: normal;
}
.sub2 i{
    color: var(--secondary-color);
    font-size: larger;
}

.parallax-header .container {
    position: relative;
    z-index: 2;
}

.parallax-section {
    position: relative;
    background-attachment: fixed;
    background-position: top;
    background-repeat: repeat;
    background-size: auto;
    color: white;
    border-bottom: 2px var(--secondary-color) solid;
}

.hero {
    background-image: url('../images/john-schnobrich-yFbyvpEGHFQ-unsplash-.jpg');
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay,
.approach-overlay,
.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
    z-index: 2;
}
.overlay-why{
    transition: background-color  0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color2);
    background-image: linear-gradient(90deg, var(--secondary-color2) 30%, #0067aa22 100%);
}
.overlay-why:nth-child(1n+2){

}
.backColor{
    background-color: var(--overlay-color3);
    /* background-image: linear-gradient(90deg, var(--secondary-color2) 30%, #0067aa22 100%); */
}

.approach {
    background-image: url('../images/christin-hume-Hcfwew744z4-unsplash-.jpg');
    display: flex;
    align-items: center;
    padding-top: 80px;
    
}
.approach .container{
    padding-top: 0;
}

.approach-grid {
    display: flex;
    position: relative;
    flex-wrap: nowrap;
    justify-content: space-between;
}
.approach-grid > div {
    text-align: justify;
    padding: 30px;
    width: 33%;
}

.contact {
    background-image: url('../images/zyro-w48LglCMKFI-unsplash-.jpg');
    display: flex;
    align-items: center;
}
.container.contactContainer{
    background-color: var(--overlay-color2);
    background-image: linear-gradient(90deg, var(--secondary-color2) 30%, #0067aaaa 100%);
    border-radius: 3px;
    width: 80%;
}

/* Rest of the previous CSS remains the same */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* (Previous CSS content continues...) */

/* Responsive Adjustments for Parallax */
@media (max-width: 768px) {
    .parallax-section,
    .parallax-header {
        /* background-attachment: scroll; */
    }

    .approach-grid, .services-grid{
        flex-wrap: wrap;
    }

    .service-card,.approach-grid > div {
        width: 100% !important;
    }
    .service-card{
        padding: 20px!important;
    }
    .approach-grid > div {
        padding: 20px 0px!important;
    }
    .container{
        width: 100%!important;
    }

    .contactContainer{
        width: 95%!important;
    }
    .nav-container{
        flex-wrap: wrap;
        justify-content: center!important;

    }
    .nav-logo{
        width: 100%;
        justify-content: center;
    }
    .nav-menu{
        justify-content: center;
       
    }
    .nav-menu a{
        font-size: 13px;
    }


    header h1 {
        opacity: 0;

    }

    h2 {
        font-size: 35px;
    }

    header .container{
        width: 100%;
    }
    header p {
        width: auto;
    }

    header .sub2{
        font-size: 18px;
        padding: 20px 0;
    }
    .contact .container > div p{
        width: 100%!important;
        margin: 20px 0!important;
    }
    .contact .container > div {
        flex-wrap: wrap;
    }

    .contact-form {
        text-align: center;
        max-width: 100%!important;
    }
    .why-choose ul li{
        padding: 30px 0!important;
    }

    .why-choose-item i {
        min-width: 30px!important;
        font-size: 16px!important;
    }
    .why-choose-item{
        justify-content: flex-start!important;
    }
    .why-choose-item .div2 {
        width: 92%!important;
    }
    .why-choose-item i:nth-of-type(2){
        right: 1%!important;
    }
    .why-choose .container {
        width: 100%!important;
    }
}

/************************/

.hero i {
    margin-right: 10px;
}

/* Services Section */
.services {
    background-image: url('../images/christina-wocintechchat-com-6Dv3pe-JnSg-unsplash.jpg');
    background-attachment: fixed;
    background-position: top center;
    background-repeat: repeat;
    background-size: auto;
    padding-top: 80px;
}

.services-grid{
    /* position: relative; */
    display: flex;
    flex-wrap: wrap;
    align-items: normal;

    z-index: 1;

}
.hero-overlay.bleu{
       background-color: var(--secondary-color2)!important; 
}

.service-card {
    margin: 0;
    padding: 50px;
    position: relative;
    color:  var(--background-light2);

    width: 50%;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    
}

.service-card:hover {
   
   
}

.service-icon {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: .5;
    margin-bottom: 15px;
    width: 100%;
}


/* Approach Section */

.approach-icon {
    font-size: 5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Why Choose Section */
.why-choose .container {
    max-width: 100%!important;
    padding: 0;
    margin: 0;
    width: 100%;
    /* height: 99vh; */
}
.why-choose {

    background-image: url('../images/alesia-kazantceva-XLm6-fPwK5Q-unsplash.jpg');
    background-attachment: fixed;
    background-position: top center;
    background-repeat: repeat;
    background-size: auto;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.why-choose-grid {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;

}

.why-choose-item {
    text-align: justify;
    padding: 50px 10%;
    padding-left: 20%;
    position: relative;
    transition: all 0.5s ease;
    min-height: 10px;
    background-size: cover;
    background-position: bottom;
    /* filter :  sepia(100%) hue-rotate(90deg) brightness(50%); */
/*  */
    /* transition: all ease 1.5s; */
    display: flex;
    align-items: center;
    overflow: hidden;
    transform: translateY(10px);
}

.why-choose-item p, .why-choose-item h3{
    position: relative;

}
.why-choose-item i:nth-of-type(1){

    position: absolute;
    font-size: 200px;
    left: 0;
    opacity: 08%;


}
div.why-choose-item:nth-child(1)  {
    background-image: url('../images/brooke-cagle-unsplash.jpg');


}
div.why-choose-item:nth-child(2)  {
    background-image: url('../images/jakub-zerdzicki--unsplash3.jpg');

}
div.why-choose-item:nth-child(3)  {
    background-image: url('../images/brooke-cagle-g1Kr4Ozfoac-unsplash.jpg');

}
div.why-choose-item:nth-child(4)  {
    background-image: url('../images/jakub-zerdzicki--unsplash.jpg');

}


.why-choose-item:hover {
    /* transform: translateX(10px); */
}

.why-choose-item h3 {
    /* color: var(--secondary-color); */
    font-size: 32px;
    /* margin-bottom: 10px; */
}
.why-choose-item .div2{
    transition: transform 0.5s ease;;
    transform: translateY(0px);
    width: 95%;
}
.why-choose-item i:nth-of-type(2){
    position: absolute;
    min-width: 10px;
    right: 2%;
    font-size: 12px;

}
.why-choose-item p:nth-child(3) {
    display: block;
    /* margin-top: 20px; */
    font-size: 14px;
    line-height: 1.5;
    position: absolute;
    transform: translateY(60px);
    
}


/* .why-choose-item p:nth-child(1) {
    font-size: 14px;
    color: #004877;
    line-height: 1.5;
} */

/* Ajout de la media query pour le responsive */
@media (max-width: 768px) {
    .why-choose-item {
        padding: 40px 5%;
    }
    
    .why-choose-item h3 {
        font-size: 20px;
    }

    .modal-content {
        width: 95%!important;
        padding: 20px!important;
        border: 3px solid white!important;
    }
    .g-recaptchat{
        display: flex;
        justify-content: space-around;
    }
    .custom-alert {
        width: 90%;
        padding: 20px!important;
    }
}

/* Contact Section */
.contact {
    background-color: var(--primary-color);
    color: white;

}
.contact h2 {
    margin-bottom: 30px;

}
.contact .container > div {
    display: flex;
    justify-content: center;
}
.contact .container > div p {
    width: 30%;
    margin-right: 30px;
    text-align: justify;
 
}
.contact-form textarea{
    /* margin-bottom: 0!important; */
}

/* bouton mail de contact */
.btnMail{
    width: 100%;
}

.contact-form {
    max-width: 50%;
    /* margin: 0 auto; */
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
}

/* mise en place d'une Custom alert plus class */
.custom-alert {
    width: 450px;
    padding: 40px 60px;
    background-color: var(--overlay-color2);
    background-image: linear-gradient(90deg, var(--secondary-color2) 30%, #0067aa22 100%);
    color: white;
    border-radius: 5px;
    z-index: 1000;
    opacity: 0;
    transform: translateX(50%);
    transition: all 0.5s ease;
    border: 2px solid var(--secondary-color);
}

.custom-alert.show, .alertFlex.show {
    opacity: 1;
    transform: translateX(0);
}

.alertFlex { 
    z-index: 200;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2c3e50aa;
    opacity: 0;
    transition: all 0.5s ease;
}

/* Button Styles */
.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.btn i {
    margin-right: 10px;
}

.btn:hover {
    background-color: #2980b9;
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 30px 0;
}

.social-links {
    margin: 20px 0;
}

.social-icon {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--secondary-color);
}


/****************** navigation  ******************/

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    /* background-color:var(--secondary-color); */
    /* background-image: linear-gradient(90deg, var(--secondary-color2) 30%, #0067aa 100%); */
    /* box-shadow: 0 2px 5px rgba(0,0,0,0.1); */
    z-index: 10;
    border-top: 4px #3498db solid;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 10px 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo i{
    font-size: 28px;
    color: var(--secondary-color);
    margin-right: 3px;
}

.nav-logo span{
    /* font-size: 1.8rem; */
    font-weight: bold;
    color: var(--text-color-white);
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    /* border-right: 1px dotted rgba(255, 255, 255, 0.199); */
}

.nav-menu a {
    text-decoration: none;
    color: white;
    /* font-size: 14px; */
    transition: color 0.3s ease;
    /* padding: 10px ; */
    border-right: #f4f6f755 1px dotted;
    padding: 0 8px;

}

.nav-menu a:hover {
    color: var(--secondary-color);
    transform: scale(2.1);
}
/********* FIN NAV **********/

/* Style pour les modales */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
    z-index: -1;
}
.blue {
    background-color: var(--overlay-color2);
    background-image: linear-gradient(90deg, var(--secondary-color2) 30%, #0067aa22 100%);
}
.modal-content {
    position: relative;
    background-color: #fff;
    color: #fff;
    padding: 60px;
    width: 80%;
    max-width: max-content;
    border-radius: 8px;
    overflow-y: auto;
    background-image: url('../images/christopher-gower-m_HRfLhgABo-unsplash.jpg');
    background-attachment: fixed;
    background-position: left;
    background-size: auto;
    z-index: 2;
    border: 10px solid white;

}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 30px;
    cursor: pointer;
    color: #3498db;
}

.close-modal:hover {
    color: #fff;
}

.modal-body {
    margin-top: 20px;
}

.modal-body h3 {
    margin: 20px 0 10px;
    color: #fff;
}
.modal-content h2 {
    padding-top: 20px;
}

.modal-body ul, .modal-body ol {
    margin: 10px 0;
    padding-left: 20px;
}

.modal-body li {
    margin: 5px 0;
}

.modal-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #004877;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.modal-btn:hover {
    background-color: #2980b9;
}

/* Rendre les service-cards cliquables */
.service-card {
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 3;
}

.service-card:hover {
    transform: translateY(-5px);
}

.background-transition {
    pointer-events: none;
}

.parallax-section {
    overflow: hidden; /* Pour contenir les images de transition */
}