
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #FFF7EF;
    color: #19377D;
}

section {
    margin: 0 70px;
}

sup{
    font-size: 0.6em;
    vertical-align: super;
    font-family: 'Open Sans';
}

h1 {
    font-size: 37px;
    font-weight: normal;
    color: #19377D;
    line-height: 130%;
    font-family: 'Moderat';
}


h2 {
    font-size: 30px;
    font-weight: normal;
    color: #19377D;
    font-family: 'Moderat';
}

h3 {
    font-size: 24px;
    font-weight: normal;
    color: #19377D;
    font-family: 'Moderat';
}

h4 {
    font-size: 16px;
    font-weight: normal;
    color: #19377D;
    font-family: 'Moderat';
}

p {
    font-size: 18px;
    font-weight: normal;
    color: #19377D;
}

.gap-10 {
    gap: 10px !important;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    height: 88px;
    margin: 20px 70px;
}

/* Style du menu sur desktop */
.header-menu {
    list-style: none;
    display: flex;
    gap: 50px;
    padding: 0;
    margin: 0;
}

.header-menu li {
    display: inline-block;
}

.header-menu a {
    text-decoration: none;
    font-weight: normal;
    font-size: 17px;
    color: #19377D;
}

.header-menu a:hover {
    color: #FF851B;
}

/* Bouton du menu mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 36px;
    cursor: pointer;
    color: #19377D;
}

.rounded-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-color: #FF851B;
    border-radius: 15px;
    padding-left: 35px;
    padding-right: 35px;
    height: 50px;
    text-decoration: none;
    font-size: 17px;
    border: none;
    width: fit-content;
}

.rounded-button:hover{
    background-color: #19377D;
}

.large-button {
    font-size: 22px;
    height: 70px;
    padding: 0 40px;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 220px;
    margin-top: 100px;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px; /* Space between text and image */
    width: 100%;
}

.hero-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows the text div to expand */
    gap: 40px;
}

.hero-text h1 {
    margin-right: 30px;
}

.hero-text p {
    margin-right: 100px;
}

.hero-image {
    flex-shrink: 0; /* Prevents the image div from expanding */
}

.hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.bureau {
    margin-bottom: 50px;
}

.mr-30 {
    margin-right: 30px;
}

.mb-50 {
    margin-bottom: 50px;
}

.w-1_3 {
    width: 40vw;
}

.flex-row {
    display: flex;
    flex-direction: row;
    gap: 40px
}

.flex-col {
    display: flex;
    flex-direction: column;
    gap: 40px
}

.flex-grow {
    display: flex;
    flex-grow: 1;
    gap: 40px
}

.three-column-layout {
    display: flex;
    justify-content: space-between; /* Ensures equal spacing */
    margin-left: 70px;
    margin-right: 70px;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 33.33%; /* Each column takes 1/3 of the page width */
    padding: 0 15px; /* Optional: Add spacing between columns */
    box-sizing: border-box; /* Prevents padding from affecting width */
}

.image-column{
    padding-left: 0;
}

.image-column img {
    width: auto; /* Ensure image fits its column */
    height: 675px;
    display: block;
    border-radius: 15px;
    object-fit: cover;
}

.box {
    background: #FFFFFF;
    height: 325px;
    padding: 50px;
    border-radius: 15px;
    text-align: left;
}

.box h3{
    margin-bottom: 20px;
}

.advantage {
    position: relative;
    margin-bottom: 150px;
}

.background-svg {
    position: absolute;
    z-index: -1; /* Places the SVGs behind the content */
}

.rectangle-svg {
    top: -50px; /* Moves it above the section */
    left: -70px; /* Moves it beyond the left edge */
    height: auto;
}

.green-block-svg {
    bottom: -160px;
    height: auto;
    transform: translateY(-50%);
    right: -50px;
    width: 400px;
    rotate: 10deg;
}

.satisfaction {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-left: 100px;
    margin-right: 100px;
    background-color: white;
    border-radius: 15px;
    padding: 70px;
    min-width: 420px;
    height: 450px;
    text-align: center;
    position: relative; /* Needed for absolute positioning of ::after */
    overflow: hidden; /* Ensures the strip doesn't exceed rounded corners */
}

.satisfaction::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 11px;
    background-color: #D8B8FB;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.satisfaction h1 {
    color: #FF851B;
    font-size: 80px;
    font-weight: 600;
}

.partner {
    padding-top: 60px;
    padding-right: 100px;
}
.partner h2{
    margin-bottom: 0;
}
.partner #source{
    font-style: italic;
    font-size: 12px;
}
.satisfaction-container {
    position: relative;
    justify-content: center;
}
.satisfaction-svg {
    position: absolute;
    bottom: -50px; /* Adjust to position it below */
    right: 0; /* Adjust to move it to the right */
    height: auto;
    z-index: -1;
}

.partner-satisfaction {
    margin-bottom: 200px;
}

.testimonial-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
    position: relative;
}

.testimonial-svg {
    position: absolute;
    top: -120px; /* Adjust to position it below */
    right: -20px; /* Adjust to move it to the right */
    height: auto;
    z-index: -1;
}

.testimonial-slider {
    width: 1080px;
    position: relative;
    overflow: hidden;
}

.testimonial {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 15px;
    opacity: 0;
    transform: translateX(100%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.testimonial.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.testimonial img {
    width: 420px;
    height: 535px;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    object-fit: cover;
    margin-right: 5em;
}

.testimonial-content {
    flex: 1;
    padding-right: 5em;
}

.testimonial-text {
    font-size: 16px;
    font-style: italic;
    margin-bottom: 2em;
}

.testimonial-author {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 0.5em;
}

.testimonial-nav {
    justify-content: flex-end;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    color: #888;
    position: relative;
    transition: color 0.3s ease-in-out;
    text-align: right;
}

.testimonial-nav button {
    position: relative;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    color: #FF851B;
}

.testimonial-nav button:hover {
    color: white;
}

/* Create the rotated square on hover */
.testimonial-nav .next-btn::after {
    content: "";
    position: absolute;
    width: 34px;
    height: 34px;
    background-color: #D8B8FB;
    color: black;
    border-radius: 5px;
    transform: rotate(20deg);
    top: 15%;
    left: 0;
    transform-origin: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: -1;
}

.testimonial-nav .prev-btn::after {
    content: "";
    position: absolute;
    width: 34px;
    height: 34px;
    background-color: #D8B8FB;
    color: black;
    border-radius: 5px;
    transform: rotate(-20deg);
    top: 15%;
    left: 0;
    transform-origin: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: -1;
}

/* Show square on hover */
.testimonial-nav .next-btn:hover::after {
    opacity: 1;
}

.testimonial-nav .prev-btn:hover::after {
    opacity: 1;
}

.testimonial .quote-svg {
    height: 28px;
    width: auto;
    margin-bottom: 1em;
}

footer {
    background-color: white;
    padding: 60px 20px 30px 50px;
    font-size: 14px;
}

.footer-logo {
    width: auto;
    height: 39px;
}

.top-footer {
    height: 120px;
    align-items: center;
    border-bottom: #D5E952;
    border-bottom-style: solid;
    margin-bottom: 20px;
}

.top-footer .flex-grow{
    align-items: center;
    gap: 15px;
}

/* Full-width container */
.custom-slider {
    background: transparent;
    display: flex;
    justify-content: center;
    margin-bottom: 200px;
}

/* Swiper Container */
.slider-container {
    width: 100%;
    position: relative;
    white-space: nowrap;
}
.slider-track {
    display: flex;
    width: max-content;
}


/* Swiper Wrapper */
.swiper-wrapper {
    display: flex;
    align-items: center;
}

/* Slides */
.swiper-slide {
    width: 460px !important; /* Fix width */
    height: 290px !important; /* Fix height */
    flex: 0 0 auto; /* Prevent stretching */
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 15px;
    overflow: hidden;
}

.swiper-slide.static-slide {
    display: flex;
    flex-direction: column; /* Stack content vertically */
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
    height: 100%;
    text-align: center; 
}

/* Image Preview */
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.video-slide {
    position: relative !important;
}

.video-slide .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: white;
    clip-path: polygon(30% 20%, 30% 80%, 80% 50%);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.video-slide:hover .play-button {
    background: #FF851B;
}

/* RESPONSIVE */

/* Pour les écrans de 1024px ou moins (tablettes) */
@media (max-width: 1024px) {
    
    .header-nav{
        position: relative;
        margin: 20px;
    }
    .menu-toggle{
        display: block;
    }
    .header-menu{
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        width: 100%;
        flex-direction: column;
        gap: 20px;
        padding: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 10px;
    }
    .header-menu li{
        text-align: center;
    }
    .header-menu.open{
        display: flex;
        z-index: 9999;
    }
    .header-button{
        margin-left: auto;
    }

    .rounded-button{
        font-size: 1rem;
        line-height: 130%;
        padding-left: 15px;
        padding-right: 15px;
    }
    h1{
        font-size: 32px;
    }
    
    .hero{
        margin-bottom: 100px;
        margin-top: 50px;
    }
    .hero-content{
        flex-wrap: wrap;
        position: relative;
    }
    .hero-text{
        width: 100%;
    }
    .hero-text h1{
        margin-bottom: 0;
        margin-right: 0;
    }
    .hero-text p{
        margin-right: 0;
    }
    .hero-image{
        width: 100%;
    }
    
    .three-column-layout{
        flex-wrap: wrap;
        gap: 30px;
    }
    .three-column-layout .column{
        width: 100%;
        padding: 0;
    }
    .three-column-layout .image-column img{
        max-height: 450px;
        object-fit: cover;
    }
    .three-column-layout .column .box{
        height: auto;
    }
    
    .flex-row.partner-satisfaction{
        flex-direction: column-reverse !important;
    }
    .partner-satisfaction .partner{
        padding: 0 100px;
    }
    
    .testimonial{
        display: block;
        text-align: center;
        padding-top: 5em;
    }
    .testimonial img{
        margin-right: 0;
    }
    .testimonial-content{
        padding: 5em;
    }
    
    footer{
        padding: 60px 20px;
    }
    .top-footer{
        display: block;
    }
    .top-footer .flex-grow{
        margin-bottom: 10;
    }
    .bottom-footer{
        display: block;
        margin-top: 15px;
    }
}

/* Pour les écrans de 768px ou moins (mobiles) */
@media (max-width: 768px) {
    .rounded-button{
        text-align: center;
    }
    .header-button .rounded-button{
        max-width: 280px;
    }
    
    .bureau .flex-row{
        display: block;
    }
    .bureau .w-1_3{
        width: 100%;
    }
    .bureau h2{
        margin-bottom: 20px;
    }
    
    .partner{
        padding: 0 20px !important;
    }
    
    .satisfaction{
        margin: 0 auto;
        gap: 0px;
        min-width: 90%;
        padding: 50px;
        height: auto;
    }
    .satisfaction h1{
        margin-bottom: 40px;
        font-size: 60px;
    }
    
    .testimonial{
        padding-top: 0;
    }
    .testimonial-content{
        padding: 1em;
    }
    
    .top-footer{
        height: 150px;
    }
    .top-footer .rounded-button{
        margin-top: 10px;
    }
    .bottom-footer .flex-grow{
        display: grid;
        gap: 0;
    }
}

.flex-row.government-incentive{
  flex-direction: column !important;
}

@media (min-width: 992px) {
  .flex-row.government-incentive{
    flex-direction: row !important;
  }
}

.government-incentive .satisfaction::after{
  background-color: #D5E952;
}

.government-incentive  .satisfaction-svg{
  bottom: auto;
  top: 45px;
  right: 100px;
}

.government-incentive .satisfaction p strong{
  font-weight: 700;
}

.government-incentive .satisfaction-container{
  margin-left: auto;
  margin-right: auto;
  max-width: 500px;
}

@media (min-width: 992px) {
  .government-incentive .satisfaction-container{
    padding-right: 30px;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (min-width: 1400px) {
  .government-incentive .satisfaction-container {
    padding-right: 200px;
  }
}

.government-incentive .satisfaction {
  margin-left: 0;
  margin-right: 0;
}

.government-incentive .partner{

  padding-right: 0;
  padding-top: 60px;
  padding-left: 0;
}

@media (min-width: 768px) {
  .government-incentive .partner {
    margin-left: 94px;
    margin-right: 94px;
  }
}

@media (min-width: 992px) {
  .government-incentive .partner{
    padding-top: 100px;
    padding-left: 0;
  }
}