@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root{
    --primaryColor: #CD622F;
    --secondaryColor: #50542E;
    --bg-color: #F5F5F5;
    --text-color-1: #222222;
    --text-color-2: rgba(34, 34, 34, 0.8);
}

html {
    scroll-behavior: smooth;
}

body{
    background-color: var(--bg-color);
    font-family: 'Cairo', sans-serif;
    color: var(--text-color-2);
    margin: 0;
    padding: 0; 
}

.section__custom{
    margin-top: 70px;
}

.section__title{
    color: var(--secondaryColor);
    font-weight: 700;
    font-size: 40px;
    margin-bottom: 20px;
}

.btn__colored{
    background-color: var(--primaryColor);
    border: 1px solid var(--primaryColor);
    border-radius: 4px;
    color: white;
    font-weight: 600;
    font-size: 18px;
    padding: 10px 40px;
    text-decoration: none;
    text-align: center;
}

.btn__colored:hover{
    background-color: var(--secondaryColor);
    border: 1px solid var(--secondaryColor);

}

.btn__trans{
    border: 1px solid rgba(34, 34, 34, 0.5);
    border-radius: 4px;
    color: var(--text-color-1);
    font-weight: 600;
    font-size: 18px;
    padding: 10px 20px;
    background-color: transparent;
    text-decoration: none;
}

.btn__trans:hover{
    background-color: var(--text-color-1);
    color: white;
}

.mySwiper ,.swiper-slide, .swiper-wrapper {
    height: auto !important;
}

.swiper-pagination {
    position: relative !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px !important;
}

.swiper-pagination-bullet {
    width: 16px !important;
    height: 16px !important;
    background: rgba(80, 84, 46, 0.7) !important; 
    border-radius: 50% !important;
    box-shadow: 0 0 0 6px #eaeae6 !important; 
    opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    background: var(--secondaryColor) !important;
    box-shadow: 0 0 0 3px #eaeae6, 0 0 0 5px var(--secondaryColor) !important; 
    width: 15px !important;
    height: 15px !important;
}


/* -----------------------HEADER------------------------- */

.header__section{
    border-bottom: 1px solid rgba(205, 98, 47, 0.32);
}

.header__content{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.inscription__btn button{
    background-color: var(--secondaryColor);
    border: 1px solid var(--secondaryColor);
    border-radius: 4px;
    color: white;
    font-weight: 600;
    font-size: 18px;
    padding: 7px 47px;
}

.inscription__btn button:hover{
    background-color: var(--primaryColor);
    border: 1px solid var(--primaryColor);
}

/* -----------------------HERO------------------------- */

.hero__content{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
}

.hero__text{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero__title{
    color: var(--text-color-1);
    font-weight: 600;
    font-size: 42px;
    text-align: right;
}

.hero__subtitle{
    color: var(--text-color-1);
    font-weight: 400;
    font-size: 24px;
    text-align: right;
}

.hero__btn{
    display: flex;
    gap: 20px;
}

.hero__image{
    position: relative;
}

.hero__image::before{
    content: "";
    position: absolute;
    right: -95px;
    width: 100%;
    height: 100%;
    background: url('../images/Ellipse.svg');
    background-repeat: no-repeat;
    background-size: contain;
    z-index: -1;
}

.statistics{
    position: absolute;
    left: 50px;
    top: 100px;
    display: flex;
    align-items: center;
}

.stats__detail p{
    font-size: 16px;
}

.stats__detail strong{
    font-weight: 800;
}

.parole__hero{
    background-color: white;
    border-radius: 4px;
    padding: 20px;
    padding: 10px;
    position: absolute;
    bottom: 90px;
    right: -40px;
    width: 40%;
    z-index: 0;
}

.parole__hero::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 60px;
    height: 60px;
    background-color: white;
    clip-path: path("M0,53 0,30 75,0");
    z-index: -1;

}

.parole__text{
    color: var(--primaryColor);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 0;
}

.parole__name{
    font-size: 10px;
    font-weight: 400;
    color: rgba(34, 34, 34, 0.7);
    text-align: left;
    margin-bottom: 0;
    position: relative;
}

.parole__name::before{
    content: "";
    position: absolute;
    bottom: 5px;
    width: 15px;
    height: 1px;
    background-color: rgba(34, 34, 34, 0.7);
    left: 30px;
    border-radius: 50px;
}

/* -----------------------ABOUT------------------------- */

.about__section{
    background-color: rgba(80, 84, 46, 0.12);
}

.about__content{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    padding: 50px 0;
}

.about__text{
    color: var(--text-color-2);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.8;
}

.about__images{
    position: relative;
    width: 700px;
    margin: 50px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.img1 {
    width: 70%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    left: -30px;
    z-index: 1; 
}

.image-overlay {
    position: absolute;
    top: 90px;
    right: 0;
    width: 45%;
    border: 4px solid #E1E2DD;
    border-radius: 4px;
    overflow: hidden;
    z-index: 2;
}

.img2 {
    width: 100%;
    display: block;
}

.shape__bg{
    position: absolute;
    bottom: -32px;
    right: 205px;
}

/* -----------------------HOW IT WORKS------------------------- */

.custom .section__title{
    text-align: center;
}

.section__subtitle{
    text-align: center;
    font-weight: 600;
    font-size: 20px;
    color: var(--text-color-1);
}

.cards{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.card__content{
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    border: 1px solid rgba(80, 84, 46, 0.12);
    border-radius: 4px;
}

.card__content.custom{
    background-color: var(--secondaryColor);
    align-items: flex-start;
    text-align: right;
    text-decoration: none;
    position: relative;
}

.link__icon{
    opacity: 0;
    transform: translateX(6px); 
    pointer-events: none;  
    transition: opacity 250ms ease,
    transform 250ms ease;
    width: 100%;
    display: flex;
    justify-content: end;
}

.card__content.custom:hover .link__icon{
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto; 
}

.card__content.custom .card__title, .card__content.custom .card__text{
    color: white !important;
}

.card__title{
    color: var(--secondaryColor);
    font-weight: 700;
    font-size: 20px;
}

.card__text{
    font-weight: 400;
    font-size: 16px;
    color: var(--text-color-2);
}

/* -----------------------WHAT YOU GET------------------------- */

.cards.custom{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.card__content.secon__custom{
    align-items: flex-start;
    text-align: right;
    padding: 20px;
}

.card__icon.custom{
    margin-bottom: 20px;
}

.card__title.custom{
    color: var(--text-color-1);
    margin-bottom: 0;
}

.card__text.custom{
    color: rgba(34, 34, 34, 0.7);
    font-size: 14px;
    margin-bottom: 0;
}

.cards.custom.temoignage__content.res{
    display: none;
}

/* -----------------------TEMOIGNAGE------------------------- */

.swiper {
    width: 100%;
    height: 100%;
}

.testimonials__swiper{
    margin-top: 50px;
}

.swiper__content{
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    border: 1px solid rgba(80, 84, 46, 0.12);
    border-radius: 4px;
    overflow: hidden;
}

.swiper__content__content{
    padding: 25px;
}

.swiper__title{
    font-size: 22px;
    color: var(--text-color-1);
    font-weight: 600;
    /* display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden; */
    max-width: 400px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper__title.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.swiper__details p{
    color: rgba(80, 84, 46, 0.6);
    font-size: 14px;
    font-weight: 500;
}

.media__swiper{
    position: relative;
    overflow: hidden;
}

.media__swiper img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media__swiper video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.media__swiper .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
}

/* -----------------------FAQ------------------------- */

.faq__content__items.res{
    display: none;
}

.faq__content__items {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.faq__detail{
    position: relative;
    border-radius: 4px;
    background-color: var(--primaryColor);
    height: auto;
    margin-bottom: 20px;
    padding: 25px;
}

.faq__item {
    margin-bottom: 10px;
    overflow: hidden;
}

.faq__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background: #fff;
    border-radius: 4px ;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 18px;
    color: var(--text-color-2);
}

.faq__header__content{
    display: flex;
    justify-content: center;
    width: 100%;
}

.faq__header__content p{
    margin-bottom: 0;
}

.faq__header span img{
    display: none;
}

.faq__header:hover {
    background: var(--primaryColor);
    color: white;
}

.faq__detail.res {
    padding: 25px 20px 25px 35px;
    display: none;
}

.faq__detail__header{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq__detail__header span{
    position: absolute;
    bottom: 20px;
    left: 20px;
}

.faq__item.active .faq__detail {
    display: block;
    position: relative;
    border-radius: 4px;
    background-color: var(--primaryColor);
    margin-bottom: 20px;
}

.faq__item.active .faq__header{
    background-color: var(--primaryColor);
    color: white;
}

.faq__header.active{
    background-color: var(--primaryColor);
    color: white;
}

.faq__header.active span img{
    display: block;
}

.faq__item.active .faq__header span img{
    display: block;
}

.faq__detail__desc{
    margin-top: 20px;
    margin-bottom: 0;
    color: white;
    font-size: 28px;
}

/* -----------------------FORMULAIRE------------------------- */

.form__section{
    background-color: rgba(80, 84, 46, 0.12);
    padding: 100px 40px;
}

.from__content{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 50px;
    gap: 20px;
}

.form__card{
    background:#F5F5F5;
    padding:24px;
    border-radius:4px;
    box-shadow:0 11px 12px rgba(0, 0, 0, 0.07);
    height: 100%;
}

label{
    margin-bottom:6px;
    font-size:18px;
    color:var(--text-color-1);
    font-weight: 600;
}

input, select{
    width:100%;
    border:1px solid rgba(34, 34, 34, 0.5);
    border-radius:4px;
    padding:10px 12px;
    margin-bottom:18px;
    font-size:13px;
    direction:rtl;
    background-color: transparent;
}

input:focus, select:focus{
    border-color: var(--primaryColor);
    outline:none;
}

.btn__whatsapp{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    width:100%;
    padding:10px 0;
    font-size:14px;
    color:#1DB455;
    background: transparent;
    border:2px solid #1DB455;
    border-radius:4px;
    cursor:pointer;
    text-decoration:none;
    font-weight: 700;
    font-size: 18px;
}


/* -----------------------FOOTER------------------------- */

.footer-section{
    background-color: var(--secondaryColor);
}

.footer__content{
    padding-top: 100px;
    padding-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer__infos{
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer__title{
    color: white;
    font-weight: 600;
    font-size: 18px;
    width: 90%;
}

.footer__subtitle{
    color: white;
    font-weight: 400;
    font-size: 14px;
}

.footerSocials__icons{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer__links{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-sublinks{
    display: flex;
    flex-direction: column;
}

.menu-items{
    font-weight: 700;
    font-size: 14px;
    color: white;
}

.menu-subItem{
    color: white;
    font-weight: 300;
    text-decoration: none;
    font-size: 14px;
    line-height: 2.5;
}

.menu-subItem:hover{
    color: var(--primaryColor);
}

.copyright-footer{
    border-top: 1px solid rgba(245, 245, 245, 0.13);
    position: relative;
    z-index: 1;
    direction: ltr;
}

.footer-bottom {
    padding: 20px 0;
}

.copyright-text a{
    color: white;
    text-decoration: none;
    font-weight: 300;
}

.copyright-text a:hover{
    color: var(--primaryColor);
    text-decoration: underline;
}

/* ------------------ALERTS------------------- */

.modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    background-color: rgba(0, 0, 0, 0.4);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 50px 0;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-size: 18px;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

#modalMessage{
    margin-bottom: 0;
}

.modal .close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    color: var(--secondaryColor);
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ------------------RESPONSIVE------------------- */

@media(max-width: 1024px){
    .hero__title{
        text-align: center;
        font-size: 40px;
    }
    .hero__btn{
        flex-direction: column;
    }
    .hero__image::before{
        right: -25px;
    }
    .statistics{
        left: 0;
    }
    .parole__hero{
        right: 45px;
    }
    .about__images{
        width: 100%;
    }
    .img1{
        width: 90%;
    }
    .image-overlay{
        width: 60%;
    }
    .shape__bg{
        right: 180px;
    }
    .cards{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 768px){
    .hero__content{
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
    }
    .hero__image{
        border-bottom: 1px solid rgba(80, 84, 46, 0.12);
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .hero__image::before{
        right: -55px;
    }
    .hero__text{
        padding: 40px 0;
        align-items: center;
    }
    .hero__btn{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .about__content{
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        gap: 40px;
    }
    .shape__bg{
        right: 325px;
    }
    .cards.custom.temoignage__content{
        display: none;
    }
    .cards.custom.temoignage__content.res{
        display: block;
    }
    .faq__content__items{
        display: none;
    }
    .faq__content__items.res{
        display: block;
    }
    .from__content{
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .faq__detail__header span{
        bottom: 15px;
        left: 7px;
    }
    .faq__detail__header span img{
        width: 70%;
    }
    .footer__infos{
        flex-direction: column;
        align-items: flex-start;
        width: 50%;
    }
    .footer__links{
        width: 50%;
    }
}

@media(max-width: 430px){
    .inscription__btn button{
        font-size: 14px;
        padding: 7px 25px;
    }
    .hero__image img{
        width: 100%;
    }
    .parole__hero{
        right: 5px;
        width: 50%;
        padding: 7px;
        bottom: 35px;
    }
    .parole__text{
        font-size: 10px;
    }
    .parole__name{
        font-size: 8px;
    }
    .parole__name::before{
        left: 25px;
        bottom: 4px;
    }
    .statistics{
        top: 80px;
        width: 35%;
    }
    .statistics__pict{
        width: 45%;
    }
    .stats__detail p{
        font-size: 10px;
    }
    .img1{
        left: -10px;
    }
    .shape__bg{
        right: 120px;
    }
    .hero__title{
        text-align: center;
        font-size: 24px;
    }
    .hero__subtitle{
        font-size: 16px;
    }
    .hero__btn{
        gap: 8px;
    }
    .btn__trans, .btn__colored{
        font-size: 12px;
        text-align: center;
    }
    .section__title{
        font-size: 28px;
    }
    .about__text{
        font-size: 14px;
    }
    .cards{
        gap: 15px;
    }
    .card__icon img{
        width: 30px;
    }
    .card__title{
        font-size: 14px;
        margin-bottom: 0;
    }
    .card__text{
        font-size: 12px;
    }
    .card__content{
        padding: 10px;
    }
    .card__content.custom{
        align-items: center;
        text-align: center;
    }
    .swiper__content {
        grid-template-columns: 2fr 1.2fr;
    }
    .swiper__title{
        font-size: 16px;
    }
    .swiper__details p{
        font-size: 12px;
    }
    .faq__header{
        margin-bottom: 10px;
    }
    .faq__header__content p{
        font-size: 14px;
    }
    .faq__detail__desc{
        font-size: 16px;
    }
    .faq__detail__header span{
        bottom: 15px;
        left: 0;
    }
    .faq__detail__header span img{
        width: 55%;
    }
    .faq__item.active .faq__detail{
        margin-bottom: 10px;
    }
    .form__section{
        padding: 50px 0;
    }
    .btn__whatsapp{
        font-size: 14px;
    }
    .footer__content{
        padding-top: 25px;
    }
    .footer-logo img{
        width: 85%;
    }
    .footer__infos{
        gap: 10px;
    }
    .footer__title{
        font-size: 12px;
    }
    .footer__subtitle, .menu-items, .menu-subItem, .copyright-text a{
        font-size: 10px;
    }
    .footerSocials__icons a{
        width: 20px;
        height: 20px;
    }
    .footerSocials__icons a img{
        width: 100%;
    }
    .footer-bottom{
        padding: 10px;
    }
}

@media(max-width: 380px){
    .logo img{
        width: 80px;
    }
    .inscription__btn button{
        font-size: 10px;
        padding: 5px 20px;
    }
    .parole__text{
        font-size: 9px;
    }
    .hero__title{
        font-size: 20px;
    }
    .hero__btn{
        grid-template-columns: 1fr;
    }
    .section__title{
        font-size: 22px;
    }
    .hero__subtitle{
        font-size: 14px;
    }
    .section__subtitle{
        font-size: 16px;
    }
    .shape__bg{
        right: 70px;
    }
    .cards{
        gap: 10px;
    }
    .card__content{
        gap: 0;
        justify-content: space-around;
    }
    .card__icon img{
        width: 30px;
    }
    .card__title{
        font-size: 12px;
        margin-bottom: 0;
    }
    .card__text{
        font-size: 10px;
    }
    .swiper__content{
        gap: 0;
    }
    .swiper__content__content{
        padding: 20px;
    }
    .swiper__details p{
        margin-bottom: 5px;
    }
    .swiper__title{
        font-size: 12px;
    }
    .swiper-pagination-bullet,.swiper-pagination-bullet-active{
        width: 10px !important;
        height: 10px !important;
    }
    .faq__detail__desc{
        margin-top: 0;
        font-size: 14px;
    }
    .faq__detail__header span{
        bottom: 10px;
        left: 10px;
        width: 25px;
    }
    .faq__detail__header span img{
        width: 100%;
    }
    .form__card{
        padding: 20px 15px;
    }
    label{
        font-size: 14px;
    }
    .btn__whatsapp{
        font-size: 12px;
    }
    .btn__whatsapp span img{
        width: 15px;
    }
    .footerSocials__icons a{
        width: 15px;
        height: 15px;
    }
}