@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --primary-blue: #1C8480;
    --dark-blue: #1f2352;
    --light-gray: #f7f9fc;
    --text-color: #1f2352;
    --border-color: #e6ebf1;
    --white-color: #ffffff;
}

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

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

header{
    font-family: 'Poppins', sans-serif;
}


.container {
    max-width: 1100px;
    margin: 0 auto;
     padding: 0 20px;
}



/* Hero Section */
.hero-section {
    padding: 4rem 0;
}

.hero-section .container {
    display: flex;
    align-items: flex-start;
}

.hero-content {
    flex: 2;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--dark-blue);
    line-height: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    width: 85%;
}

.back-btn a{
    margin-bottom: 1rem;
    display: inline-block;
    color: var(--primary-blue);
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease-in-out
}

.back-btn a:hover {
    color: var(--primary-blue);
    transform: scale(1.03);
}

.video-preview {
    position: relative;
    cursor: pointer;
    margin-bottom: 1rem;
}

.video-preview img {
    max-width: 450px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.hero-sidebar {
    flex: 1;
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Cache le compteur par défaut pour éviter le flash */

.hero-sidebar h3 {
    margin-bottom: 1rem;
}

.hero-sidebar ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.hero-sidebar ul li {
    margin-bottom: 0.8rem;
}

.hero-sidebar ul li .fa-check {
    color: var(--primary-blue);
    margin-right: 10px;
}

.compteur-js{
    display: none; /* Cache le compteur par défaut */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.compteur{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: red;
}

.compteur i {
    font-size: 1.5rem;
    color: red;
}

.countdown-timer {
    display: flex;
    gap: 5px;
    font-size: 1.5rem;
    font-weight: 800;
}

.compteur-js h3{
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 0.3rem;
    color: red;
}

.price-slider{
    display: flex;
    flex-direction: column;
}

/* #verouillé-1{
    pointer-events: none;
    background-color: rgb(255, 182, 182);
    color: #1f2352;
    background-color: rgb(219, 219, 219);
} */

#verouillé-2{
    pointer-events: none;
     /* background-color: rgb(255, 182, 182);
    color: #1f2352; */
    background-color: rgb(219, 219, 219);
}
#verouillé-3{
    pointer-events: none;
     background-color: rgb(255, 182, 182);
    color: #1f2352;
    /* background-color: rgb(219, 219, 219); */
}
/* #verouillé-4{
    pointer-events: none;
     background-color: rgb(255, 182, 182);
    color: #1f2352; 
    background-color: rgb(219, 219, 219);
} */
#verouillé-5{
    pointer-events: none;
     /* background-color: rgb(255, 182, 182);
    color: #1f2352; */
    background-color: rgb(219, 219, 219);
}
#verouillé-6{
    pointer-events: none;
     /* background-color: rgb(255, 182, 182);
    color: #1f2352; */
    background-color: rgb(219, 219, 219);
}

.price{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-top: -0.9rem;
}

.price-1{
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.original-price{
    font-size: 1.8rem;
    font-weight: 800;
    color: #1b4947;
    text-decoration: line-through;
    margin-top: -1.2rem;
    margin-bottom: 1.5rem;
}

.mod-paiement {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}

.mod-paiement img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.share-social{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    margin-top: 1.3rem;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    color: var(--primary-blue);
    font-size: 1rem;
    text-decoration: none;
}

.news-droit h2{
    color: #fff;
}

.footer-contact h2{
    text-align: left;
}

.footer-links h2{
    text-align: left;
}



.cta-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: clamp(1rem, 2vw + 0.5rem, 1.2rem);
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.hero-sidebar small {
    display: block;
    text-align: center;
    font-size: 0.9rem;
}

/* Other Sections */
.capabilities-section, .learning-section, .target-audience-section, .modules-section, .certificate-section, .market-demand-section, .faq-section {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
    text-align: center;
}

.capabilities-section ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.capabilities-section ul li .fa-check {
    color: var(--primary-blue);
    margin-right: 10px;
}

.learning-section p, .target-audience-section p, .market-demand-section p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

.market-demand-section .container{
    flex-direction: column;
    width: 55%;
    display: flex;
    justify-content: center;
}

/* Accordion */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}
.accordion-header {
    background: var(--light-gray);
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 1rem;
}
.accordion-item.active .accordion-content {
    max-height: 200px; /* Adjust as needed */
    padding: 1rem;
}
.accordion-item.active .accordion-header .fa-chevron-down {
    transform: rotate(180deg);
}
.accordion-header .fa-chevron-down {
    transition: transform 0.3s ease-out;
}

/* Certificate Section */
.certificate-section .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.certificate-content {
    flex: 1;
    text-align: left;
}
.certificate-content h2 {
    text-align: left;
}
.certificate-image {
    max-width: 300px;
    border: 10px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Footer */
.footer-logo {
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--white-color);
    margin: 0 10px;
    font-size: 1.2rem;
}

.footer-bottom {
    margin-top: 1rem;
    border-top: 1px solid #3a5f82;
    padding-top: 1rem;
}
.footer-bottom p {
    margin-bottom: 0.5rem;
}
.footer-bottom a {
    color: #a7c0d8;
    text-decoration: none;
}

/* ============================================= */
/* --- STYLES POUR LA MODALE DE PAIEMENT ---     */
/* ============================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 35, 82, 0.7); /* Fond semi-transparent sombre */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.modal-content h3 {
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.modal-content p {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #666;
}

.modal-content .form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.modal-content .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--dark-blue);
}

.modal-content .form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box; /* Assure que le padding est inclus dans la largeur */
}


/* Styles pour le champ de téléphone intl-tel-input */
.iti {
    width: 100%;
}

.learning-section img{
    width: 100%;
    height: auto;
    max-width: 300px;
}

.logo-form-contain{
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    text-align: center;
}

.logo-form{
    align-items: center;
}

.logo-form-contain .logo-form img{
    width: 100%;
    height: auto;
    max-width: 100px;
}

.learning-section{
    flex-wrap: wrap;
}

.learning-section .container-img{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.modal-content .cta-button {
    width: 100%;
    margin-top: 1rem;
    padding: 0.8rem;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Responsive Design */
@media (max-width: 992px) {

    .container{
        padding: 0 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .market-demand-section .container{
    flex-direction: column;
    width: 100%;
    display: flex;
    justify-content: center;
    }

   
    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .hero-content h1{
        font-size: clamp(2rem, 2vw + 1rem, 2rem);
        margin-bottom: 1rem;
        line-height: 2.5rem;
        text-align: center;
    }

    .hero-sidebar h3{
        text-align: center;
    }

    .container h2{
        font-size: clamp(1.5rem, 2vw + 0.5rem, 1.8rem);
        width: 80%;
        text-align: center;
        line-height: 2.2rem;
    }

    .capabilities-section ul {
        line-height: 1.2rem;
    }

    .hero-section .container {
        align-items: center; /* Rétablit le centrage pour le mobile */
    }

    .learning-section p, .target-audience-section p, .market-demand-section p {
        font-size: 1.05rem;
        width: 90%;
        text-align: center;
    }

    .video-preview img {
        width: 320px;
        max-width: 100%;
    }

    .compteur-js h3{
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .certificate-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }



    .back-btn a{
        color: #1C8480;
    }

    .price{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .price-slider{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .news-droit h2{
        color: #fff;
        width: 80%;
    }

    .hero-content p{
        text-align: center;
    }

    .hero-section .container {
        flex-direction: column;
    }
    .certificate-section .container {
        flex-direction: column;
        text-align: center;
    }
    .certificate-content h2 {
        text-align: center;
    }

    .footer-links h2{
        text-align: center;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    .main-header nav a {
        margin: 0 10px;
    }
    .capabilities-section ul {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }

    .logo-form-contain .logo-form img{
    width: 100%;
    height: auto;
    max-width: 60px;
}
.logo-form-contain{
    gap: 2px;
    text-align: center;
}

.logo-form p{
    font-size: 1rem;
}

}

@media (max-width: 400px) {
    .hero-content h1 {
        font-size: 1.8rem;
        text-align: center;
    }
    .hero-content p {
        font-size: 1rem;
        width: 100%;
    }
    .hero-sidebar {
        width: 100%;
        margin-top: 2rem;
    }
    .hero-sidebar h3 {
        text-align: center;
    }
    .video-preview img {
        width: 100%;
        max-width: 300px;
    }

    .price-1 {
        font-size: clamp(2rem, 2vw + 0.5rem, 2.5rem);
    }

    .compteur{
        display: flex;
        flex-direction: column;
    }

    .countdown-timer{
        font-size: 1.2rem;
    }
}