@font-face {
    font-family: 'Figtree';
    src: url('fonts/Figtree-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Figtree';
    src: url('fonts/Figtree-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Figtree';
    src: url('fonts/Figtree-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Figtree';
    src: url('fonts/Figtree-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Figtree';
    src: url('fonts/Figtree-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Figtree';
    src: url('fonts/Figtree-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Figtree', sans-serif;
}

html {
    scroll-behavior: smooth;
}
/* Body */
body {
    display: flex;
    align-items: center;
    justify-content: center; /* Centrer le contenu */
    min-height: 100vh;
    flex-direction: column;
    
    background-image: url("./assets/background.png");

    /* background-color: #8cabca; */

    background-position: center; /* Centre bien l'image */
    background-size: cover; /* Couvre toute la page */
    background-repeat: no-repeat; /* Évite la répétition */
    background-attachment: fixed; /* Fixe l'image pour un bel effet */
}

h1, h2, h3{
    color:#003366;
}



header{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    background-color: #ecececf7;
    /* padding: 20px; */
}

.logo{
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-direction: row;
    gap: 40px;
    padding: 20px;
}

.logo1{
    width: 100px;
}

.logo2{
    width: 70px;
}

.logo3{
    width: 140px;
}

.logo4{
    width: 65px;
}

.header-text{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    color: #003366;
}

.header-text p{
    font-weight: bold;
    font-style: italic;
    font-size: 19px;
}

.header-text .header-text-bigger{
    font-size: 22px;
}






footer {
    width: 100%;
    background-color: #ecececf7;
    color: #000000;
    padding: 20px 0;
    text-align: center;
    justify-content: center;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo img {
    height: 50px;
}

.footer-links, .footer-contact, .footer-socials {
    margin: 10px 0;
}

.footer-links a, .footer-contact a {
    color: #000000;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
}

.footer-links a:hover, .footer-contact a:hover {
    text-decoration: underline;
}








.pageLegal{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: auto;
    padding: 2vw;
    background-color: white;
}

.pageLegalContent{
    max-width: 1000px;
    text-align: justify;
}

.pageLegalContent h1{
    text-align: center;
}

.pageLegalContent a{
    text-decoration: none;
    color: black;
}
















.Formulaire-container{
    border-radius: 8px;
    padding: 30px;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* align-items: center;
    justify-content: center; */
    margin-top: 5vh;
    min-height: 50vh;
}

/* Conteneur du formulaire */
#form {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Barre de progression */
.progress-bar-container {
    width: calc(100% + 60px);
    background-color: #e0e0e0a4;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0px;
    margin-top: -30px;
    margin-left: -30px;
}

.progress-bar {
    height: 10px;
    background-color: #22C55E;
    width: 0;
    transition: width 0.3s ease;
}

/* Input général */
.input-container {
    display: none; /* Cache tous les champs par défaut */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.input-container.active {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 1;
}

.inputInLine{
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
}

.inputInLine input{
    flex: 1; /* Permet aux inputs de s'étendre également */
    min-width: 150px; /* Empêche qu'ils deviennent trop petits */
    max-width: 350px; /* Ajuste la largeur maximale */
    padding: 10px; /* Augmente l'espace intérieur pour un meilleur confort */
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    padding: 12px;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    border-color: #22C55E;
}

label {
    font-size: 22px;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.consent {
    font-size: 18px;
}

#consentement {
    width: 16px;  /* Largeur de la case */
    height: 16px;
}

button{
    font-size: 20px;
}

/* Groupes de boutons */
.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.option-btn {
    padding: 12px 20px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-btn:hover {
    background-color: #22C55E;
    color: white;
}

.option-btn:active {
    transform: scale(0.98);
}

/* Bouton Suivant */
#nextBtn {
    padding: 12px;
    background-color: #22C55E;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 22px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-end;
}

#nextBtn:hover {
    background-color: #22C55E;
}

#nextBtn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
}








.msg_loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.msg_loader p{
    text-align: center;
    margin: 10px;
    color: #003366;
    font-size: 20px;
    font-weight: 700;
}

/* Conteneur du loader */
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    background-color: #f5f5f5;
    border-radius: 16px;
    z-index: 1001;
    opacity: 0;
}

/* Cercle animé */
.loader {
    width: 80px;
    height: 80px;
    border: 6px solid transparent;
    border-top: 6px solid #003366;;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animation de rotation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.floating_text{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: justify;
    text-align-last: center;
    padding: 20px;
    gap: 10px;
    margin-top: 20vh;
    opacity: 1;
    transition: opacity 0.2s linear;
}

#floating-text1{
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
}

#floating-text2{
    font-style: normal;
    font-weight: 700;
    font-size: 21px;
    color: #002850;
}

#ok-circle-filled{
    display: flex;
    opacity: 0;
    height: 0px;
    width: 0px;
    transition: opacity 0.3s ease-in-out;
}

.trustPilot{
    width: 200px;
    align-self: center;
}







/* Logo de validation et message de succès */
.success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.success-message.active {
    display: flex;
    opacity: 1;
}

.checkmark-animation {
    display: inline-block;
    animation: scaleCheckmark 0.8s ease-in-out forwards;
}

.error-message {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.error-message.active {
    display: flex;
    opacity: 1;
}

.error-input::placeholder {
    color: red;
    font-weight: bold;
    opacity: 1;
    font-size: 14px; /* Certains navigateurs réduisent l'opacité des placeholders */
}

.error-input {
    border: 1px solid red;
}


@keyframes scaleCheckmark {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

.checkmark-circle {
    stroke: #22C55E;
    stroke-width: 4;
    fill: none;
}

.checkmark-check {
    stroke: #22C55E;
    stroke-width: 4;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: drawCheckmark 0.5s 0.3s forwards;
}

@keyframes drawCheckmark {
    100% {
        stroke-dashoffset: 0;
    }
}

.success-message p {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
}

.checkmark-animation img{
    height: 100px;
    color: #22C55E;
}




























/*---------------------------------------------------------------Page----------------------------------------------------------------- */




.section1 {
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    padding: 60px;
    gap: 4vh;
    text-align: center;
    padding-bottom: 100px;
}

.section1 h2 {
    font-size: 28px;
    font-weight: bold;
}

.section1 .itemsFlexBox {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 4vw;
    width: 100%;
    max-width: 1400px;
}

.section1 .itemsFlexBox .item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    flex: 1; /* Prend un espace égal dans le flexbox */
    max-width: 450px;
    min-width: 20vw; /* Largeur minimale pour garantir une mise en page cohérente */
    gap: 15px;
    background: #ffffffcc;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0);
    min-height: 200px; /* Définir une hauteur minimale */
    height: 100%; /* S'étend pour égaliser les hauteurs */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.section1 .itemsFlexBox .item:hover {
    transform: translateY(-5px);
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.257);
}


.section1 .itemsFlexBox h2 {
    font-size: 45px;
}

 









.section2 {
    width: 100vw;
    padding: 40px 20px;
    background-color: white;
    text-align: center;
}

.container {
    max-width: 1400px;
    margin: auto;
    padding: 0 20px;
}

.title {
    font-size: 24px;
    font-weight: bold;
    color: #003366;
    margin-bottom: 20px;
}

/* Tables */
.table-wrapper {
    margin-bottom: 30px;
    text-align: left;
}

.table-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

/* Scroll horizontal sur mobile */
.table-container {
    overflow-x: auto;
    width: 100%;
}

/* Table générale */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
    min-width: 600px; /* Empêche la table d’être trop petite */
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
}

th {
    background-color: #f8f8f8;
    font-weight: bold;
}

/* Coloration des colonnes */
.tres-modestes { background-color: #c8e6c9; }
.modestes { background-color: #bbdefb; }
.intermediaires { background-color: #d1c4e9; }
.superieurs { background-color: #f8bbd0; }


/* Style du pied de page */
.footer-tab-text {
    margin-top: 20px;
    font-size: 12px;
    color: #666;
}










.section3{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
    background-color: #f2f8ff;
    padding: 40px 20px;
}

.section3 span, .section4 span{
    width: 100%;
    max-width: 800px;
    height: 3px;
    background-color: #003366;
    margin-top: 10px;
    margin-right: 10vw;
    margin-left: 10vw;
    margin-bottom: 10px;

}

.section3 p{
    text-align: justify;
} 

.container_3{
    display: flex;
    flex-direction: row;
    justify-content: center;
    /* align-items: center; */
    gap: 40px;
    max-width: 1000px;
}

.container_3 .left{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    max-width: 50%;
}

.container_3 .img_bas{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.container_3 .left .img_haut img{
    max-width: 100%;
    width: 100%;
}

.container_3 .left .img_bas img{
   max-width: 30%;
   margin: 2.5%;
}

.container_3 .right{
    width: max-content;
    height: max-content;
    display: flex;  
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
}

.container_3 .right p{
    font-size: 18px;
    letter-spacing: 1px;
    line-height: 1.6;
    text-align: justify;
}

.eligibility-btn {
    margin-top: 40px;
    display: inline-block;
    padding: 12px 18px;
    background-color: #003366;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s ease-in-out, background-color 0.2s;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
}

.eligibility-btn:hover {
    background-color: #002850; /* Rouge plus foncé au survol */
    transform: translateY(-3px);
}



.banner{
    height: 240px;
}


.section4{
    background-color: #f2f8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    padding: 60px;
    text-align: center;
    padding-bottom: 100px;
}

.section4 p{
    font-size: 18px;
    letter-spacing: 1px;
    line-height: 1.6;
    text-align: justify;
}

.section4 img{
    height: 300px;
}

.section4Container{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    max-width: 1100px;
    gap: 4vh;
    padding-top: 20px;
}

.section4 .top{
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 8vh;
}

.section4 .bottom{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8vh;
}


@media screen and (max-width: 1100px) {

    body {
        background: 
            linear-gradient(to bottom, white 20%, rgba(255, 255, 255, 0) 80%),
            url("./assets/background.png");

        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }

    header{
        flex-direction: column;
    }

    .header-text{
        margin-top: 20px;
        text-align: center;
        background-color: #003366;
        color: #f0f0f0;
        padding: 5px;
        width: 100vw;
    }

    .logo{
        padding-bottom: 0px;
    }


    

    /*---------------------------------------------------------------Page----------------------------------------------------------------- */

    .container_3{
        gap: 0px;
        width: 100vw;
    }

    .container_3 .left{
        padding: 20px;
        max-width: 50%;
    }

    .container_3 .right{
        width: 100%;
        display: flex;  
        padding: 20px;
        padding-top: 0px;
    }
    
    .container_3 .right p{
        font-size: 16px;
        line-height: 1.4;
        padding-top: 40px;
    }


    
    .section4 p{
        font-size: 16px;
    }
    
    .section4 img{
        height: 240px;
    }
    
    .section4 .top{
        gap: 4vh;
    }
    
    .section4 .bottom{
        gap: 4vh;
    }
    
    .banner{
        height: 0px;
    }
}










@media screen and (max-width: 768px) {
    header{
        flex-direction: column;
    }

    .header-text{
        margin-top: 20px;
        text-align: center;
        background-color: #003366;
        color: #f0f0f0;
        padding: 5px;
        width: 100vw;
    }

    .logo{
        gap: 22px;
        overflow: hidden;
        overflow-x: hidden;
        padding: 20px 0px 20px 0px;
    }

    .logo1{
        width: 80px;
    }
    
    .logo2{
        width: 53px;
    }
    
    .logo3{
        width: 105px;
    }

    .logo4{
        width: 52px;
    }

    #form{
        margin: 0px;
    }

    .Formulaire-container{
        padding: 4%;
        margin-top: 2vh;
    }

    .floating_text{
        margin-top: 2vh;
        padding: 10px;
        text-align: center;
        text-align-last: center;
    }

    #floating-text1{
        font-style: normal;
        font-weight: 700;
        font-size: 24px;
    }
    
    #floating-text2{
        font-style: normal;
        font-weight: 500;
        font-size: 20px;
    }

    .inputInLine{
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        width: 100%;
    }

    .inputInLine input {
        width: 100%;
        max-width: 400px;
        padding: 10px;
    }



    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links, .footer-socials {
        margin-top: 10px;
    }

    #nextBtn {
        padding: 8px;
        background-color: #22C55E;
        border-radius: 5px;
        font-size: 18px;
    }















/*---------------------------------------------------------------Page----------------------------------------------------------------- */



    .section1 {
        background-color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        width: 100%;
        padding: 30px;
        padding-top: 60px;
        gap: 4vh;
        text-align: center;
    }

    .section1 h2{
        font-size: 24px;
    }
    
    .section1 .itemsFlexBox {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
        width: 100%;
        max-width: 500px;
    }


    .section2 .container{
        padding: 0%;
    }

    .title {
        font-size: 22px;
    }
    .table-title {
        font-size: 16px;
    }
    table {
        font-size: 12px;
    }


    .container_3{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* align-items: center; */
        gap: 0px;
        width: 100vw;
    }

    .container_3 .left{
        padding: 20px;
        max-width: 100%;
    }

    .container_3 .right{
        width: 100%;
        display: flex;  
        padding: 20px;
        padding-top: 0;
    }
    
    .container_3 .right p{
        font-size: 16px;
        letter-spacing: 1px;
        line-height: 1.4;
        text-align: justify;
        padding-top: 0px;
    }

    .section4{
        padding: 40px 20px 40px 20px;
    }
    
    .section4Container {
        gap: 6vh;
    }

    .section4 p{
        font-size: 16px;
    }
    
    .section4 img{
        width: 100%;
        height: auto;
    }
    
    .section4 .top{
        flex-direction: column-reverse;
        gap: 2vh;
    }
    
    .section4 .bottom{
        flex-direction: column-reverse;
        gap: 2vh;
    }

    .section4 h2{
        font-size: 22px;
        text-align: left;
    }



    
  }



  @media (max-width: 480px) {
    .title {
        font-size: 20px;
    }
    .table-title {
        font-size: 14px;
    }
    table {
        font-size: 10px;
    }
    th, td {
        padding: 8px;
    }
}