@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&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');


/* INITIALISATION */
body{
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    /* border: 2px solid black; */
}

:root {

    /* DECLARATION DES VARIABLES */

    --var-principal-color : #265261; /* pour les fonds de section, la barre de navigation, les en-têtes*/
     --var-principal-bg-color : rgba(38, 82, 97, 0.2);
    --color-accent: #C28B47;
    --color-accent-dark: #986723;
    --color-text-dark: #000;
    --color-text-light: #D6D0CD;
    --color-text-white: #fff;
    
    --input-bg-color: #f7f7f7;
    --input-placeholder-color: #aaa;
    --border-color: #eee;
}

/* ==== Général ==== */
.heading {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    color: var(--color-accent-dark);
    margin: 3rem 0;
    position: relative;
    padding-bottom: 1rem;
    
}

.heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark));
} 
.btn-fixe{
    padding: 0.8rem 1.4rem;
    border: none;
    border-radius: 7px;
    font-weight: 550;
    cursor: pointer;
    color: var(--color-text-white);
    background: var(--var-principal-color);
    position: fixed;
    top: 50%;
    right: 0;
    transition: .3s;
    z-index: 1000;
}
.btn-fixe:hover {
    transform: translateX(-2px);
}

/* ================================================= */
/* ================================================= */
/* ================================================= */
/* ================================================= */
/* ================================================= */


/* =====---- Style pour le contenu du main DEBUT ----===== */

/* ===== Style pour la section hero DEBUT ===== */
#hero-section {
/* La section hero */
    height: 100vh;
    min-height: 70vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 10px; /* Ajout d'un padding pour la responsivité */
}

#hero-section .hero-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.06);
    padding: 20px; /* Ajout d'un padding pour la responsivité */
    width: 100%; /* S'assurer qu'il prend toute la largeur disponible */
    max-width: 900px; /* Limiter la largeur sur les grands écrans */
}
#hero-section .hero-container h2 {
    color: var(--color-text-white);
    font-size: clamp(1.8rem, 5vw, 2.5rem); /* Rendre la taille de police responsive */
    text-align: center;
    margin-bottom: 1rem;
}

#hero-section .search {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#hero-section .search form {
    background: var(--var-principal-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    width: 90%;
    max-width: 600px;
    display: flex;
    overflow: hidden;
}
.search #search-icon{
    color: #fff;
    padding: 1.2rem;
    font-size: 1.2rem;
}
#hero-section form #search {
    /* Le champ de recherche */
    width: 100%;
    padding: .6rem 1.2rem;
    font-size: 1.1rem;
    border: none;
    outline: none;
    background: transparent;
    color: var(--color-text-white);
}
#hero-section form #search::placeholder {
    color: var(--input-placeholder-color);
    text-transform: capitalize;
}


#hero-section .hero-container #submit {
    /* Le boutton d'envoie */
    background: var(--color-accent);
    color: #fff;
    padding: .8rem 1.5rem;
    border: none;
    font-weight: 560;
    font-size: .9rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

#hero-section .hero-container #submit:hover {
     /* Le boutton d'envoie au survol*/ 
    background: var(--color-accent-dark); 
}

#hero-section .hero-container  .hero-service {
    /* Le div contenant les service qui est lui meme contenu dans la section hero */
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: rgba(38, 82, 97, 0.2);
    padding: 0.7rem;
}
#hero-section .hero-container  .hero-service ul {
    /* La liste contenant les service dans la section hero */
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}
#hero-section .hero-container  .hero-service li a {
    text-decoration: none;
    color: var(--color-text-white);
    font-size: .9rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

#hero-section .hero-container  .hero-service li a:hover {
    color: var(--color-text-light);
    transform: translateY(-2px);
}

#hero-section .hero-container  .hero-service li a i {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: .5rem;
    color: var(--color-accent);
}
#hero-section .hero-container  .hero-service li a:hover i{
    color: var(--color-accent-dark);
}


#hero-section .hero-image {
    position: absolute;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: -1;
} 

#hero-section .hero-image img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}/* ===== Style pour la section hero FIN ===== */


/* ================================================= */
/* ================================================= */
/* ================================================= */


/* ===== Style pour la section 'Nos services' DEBUT ===== */
/* #service-section {
    padding: 50px 100px;
} */

#service-section .card-list .card-item .card-link {
    user-select: none;
    display: block;
    background: #f8f4f4;
    padding: 18px;
    border-radius: 12px;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
#service-section .card-list .card-item .card-link:active {
    cursor: grabbing;
}
#service-section .card-wrapper {
    max-width: 1100px;
    margin: 0 60px 35px;
    padding: 20px 10px;
    overflow: hidden;
}
#service-section .card-list .card-item .card-link:hover {
    border-color: var(--color-accent-dark);
}
#service-section .card-list .card-item{
    list-style: none;
}
#service-section .card-list .card-item .card-image {
    width: 100%;
    aspect-ratio: 16 / 9 ;
    object-fit: cover;
    border-radius: 10px;
}

#service-section .card-list .card-title {
    background: rgba(38, 82, 97, 0.2);
    color: var(--var-principal-color);
    margin: 16px 0 18px;
    padding: 8px 16px;
    font-size: 0.95;
    font-weight: 550;
    width: fit-content;
    border-radius: 50px;
}
#service-section .card-list .card-description {
    font-size: 1.1rem;
    color: var(--color-text-dark);
    font-weight: 570;
}
#service-section .card-list .card-icon {
    width: 35px;
    height: 35px;
    background: rgba(38, 82, 97, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transform: rotate(-45deg);
    border: 2px solid var(--var-principal-color);
    color: var(--var-principal-color);
}
#service-section .card-list .card-item .card-link:hover .card-icon{
    background: var(--var-principal-color);
    /* border: none; */
    color: #fff;
}
#service-section .card-wrapper .swiper-pagination-bullet {
    height: 13px;
    width: 13px;
    opacity: 0.5;
    background: var(--color-accent-dark);
}
#service-section .card-wrapper .swiper-pagination-bullet-active {
    opacity: 1;
}
#service-section .card-wrapper .swiper-slide-button {
    color: var(--color-accent);
    margin-top: -35px;
    
}

@media screen and (max-width: 768px){
    .card-wrapper {
        margin: 0 10px 25px;
    }

    /* .card-wrapper .swiper-slide-button {
        display: none;
    } */
}


/* ===== Style pour la section 'Nos services' FIN ===== */


/* ================================================= */
/* ================================================= */
/* ================================================= */


/* ===== Style pour la section 'Explication' Debut ===== */
#explication-section {
    border-radius: 25px;
    overflow: hidden;
    font-family: 'Times New Roman', Times, serif;
    margin-top: 2rem;
    padding: 0 10px; /* Ajout d'un padding pour la responsivité */
}
#explication-section .container{
    display: flex;
    gap: 30px;
    background: rgba(38, 82, 97, 0.2);
    padding: 50px 20px;
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne */
    justify-content: center; /* Centrer les éléments */
}
#explication-section .container .explication-item{
    flex: 1;
    min-width: 280px; /* Largeur minimale pour éviter un trop petit item */
    padding: 15px;
    text-align: center; /* Centrer le contenu pour les petits écrans */
}
#explication-section .explication-item .explication-title{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
#explication-section .explication-title .explication-number{
    width: 25px;
    height: 25px;
    background: var(--var-principal-color);
    font-size: 1.2rem;
    font-weight: 800;
    padding: 9px 11px;
    border-radius: 50%;
    color: var(--color-accent);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#explication-section .explication-title h4{
    font-size: 1rem;
    color: var(--color-accent-dark);
    text-transform: uppercase;
}
#explication-section .explication-item p {
    font-size: 0.9em;
    color: var(--color-text-dark);
    text-align: left; /* Aligner le texte à gauche, sauf si le contenu est très court */
}

/* ===== Style pour la section 'Explication' FIN ===== */


/* ================================================= */
/* ================================================= */
/* ================================================= */


/* ===== Style pour la section partner DEBUT (CORRIGÉ pour la responsivité) ===== */
#partner-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    padding: 2rem 1rem;
}

#partner-section p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

#partner-section .container {
    width: 100%;
    max-width: 1200px;
}

#partner-section .logo-wrapper {
    width: 100%;
    padding: 20px 0;
    overflow: hidden;
}

/* Tailles adaptatives pour les logos */
.logo-wrapper .swiper-slide {
    width: 120px !important;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrapper .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
/* ===== Style pour la section partner FIN ===== */


/* ================================================= */
/* ================================================= */
/* ================================================= */


/* ===== Style pour la section service-populaire DEBUT ===== */
#service-populaire {
    /* display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; */
    margin-top: 4rem;
    padding: 4rem 1rem; /* Diminution du padding horizontal pour les petits écrans */
    background: #f8f9fa;
    /* border-radius: 25px; */
}
/* #service-populaire h2 {
    color: var(--var-principal-color);
    font-size: 1.9rem;
    font-weight: 400;
} */

#service-populaire nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
}
#service-populaire nav li a {
    text-decoration: none;
    color: var(--color-text-dark); /* Correction de la variable */
    /* padding: 0.8rem 1.5rem; */
    border-radius: 30px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem; /* Réduire la taille de police */
}
#service-populaire nav li a:hover span{
    border-bottom: 2px solid var(--color-accent-dark);
    color: var(--var-principal-color);
    transition: all .2s ease;
}


#service-populaire .service-pop-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Réduire la minmax pour plus d'éléments par ligne sur mobile */
    max-width: 1200px;
    margin: 0 auto;
}

#service-populaire .service-pop-content a {
    background: #fff;
    padding: 1rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin: 0.4rem;
    text-decoration: none;
}
#service-populaire .service-pop-content a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background: #e9e9e9;
}
#service-populaire .service-pop-content a h4{
    color: #212529;
    font-size: 1.1rem; /* Légèrement réduit */
    font-weight: 500;
    margin: 0 0 .2rem 0;
}
#service-populaire .service-pop-content a:hover h4{
    border-bottom: 2px solid var(--color-accent-dark);
    border-radius: 7px;
}
#service-populaire .service-pop-content a p {
    font-size: .9rem;
    color: #6c757d;
}

#service-populaire nav li a.active {
    background: #fff;
    font-weight: 600; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    transform: translateY(-2px); 
    padding: .7rem;
    border-radius: 14px;
}
#service-populaire nav a[data-categorie=top-categorie].active{
    color: #ff5e5e;
}
#service-populaire nav a[data-categorie=developpement].active{
    color: #2e8b57;
}
#service-populaire nav a[data-categorie=e-commerce].active{
    color: #f7931a;
}
#service-populaire nav a[data-categorie=design].active{
    color: #8a2be2;
}
#service-populaire nav a[data-categorie=marketing].active{
    color: #3cb371;
}
#service-populaire nav a[data-categorie=service-reseau].active{
    color: #1e90ff;
} 

/* ===== Style pour la section service-populaire FIN ===== */



/* ================================================= */
/* ================================================= */
/* ================================================= */




/* ===== Style pour la Section FAQ DEBUT ===== */
#question-section {
    padding: 4rem 1rem;
    margin-top: 2rem;
    /* background: #f8f8f8; */
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* background-color: rgba(38, 82, 97, 0.2); */
    /* background: #f3f1f1; */
    /* border-radius: 25px; */
}

/* #question-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
} */
#question-section .question-freelance-client{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Légèrement réduit pour mobile */
    gap: 1.5rem; /* Réduction du gap */
    max-width: 1200px;
    margin: 2rem auto;
    width: 100%; /* S'assurer qu'il prend toute la largeur */
    padding: 0 10px;
}

.faq-categorie-title {
    font-size: 1.4rem; /* Légèrement réduit */
    color: var(--var-principal-color);
    font-weight: 550;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--color-accent-dark);
}
.faq-item {
    background: #fff;
    border-radius: 8px;
    margin: 0.5rem 0; /* Ajustement des marges */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.faq-question {
    background: #fff;
    padding: 1rem 1.5rem;
    margin: 0.4rem;
    font-weight: 600;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem; /* Ajustement de la taille de police */
} 
.question-globale{
    width: 100%; /* Rendre cette section responsive */
    max-width: 1200px;
}
.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: var(--color-accent-dark);
}
/* .faq-item.active .faq-icon {
    
    transform: rotate(45deg);
} */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    transition: all 0.3s ease-in;
}
.faq-answer p {
    font-family: 'Merriweather', serif;
    font-size: 15px; /* Légèrement réduit */
    color: #444;
    line-height: 1.6;
    margin-top: 0;
    padding-bottom: 1rem;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1rem;
}/* ===== Style pour la section 'FAQ' section FIN ===== */

/* ===== Style pour la section 'contact' section FIN ===== */
#contact-section {
    position: relative;
    height: 300px;
    overflow: hidden;
}
#contact-section img {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
#contact-section .contact-div {
    padding: 20px;
    /* max-width: 900px;
    margin: 0 auto;
    text-align: left;
    width: 100%; */
}
#contact-section .contact-div h2 {
    font-size: clamp(1.5rem, 4vw, 1.9rem); /* Rendre la taille de police responsive */
    font-weight: 900;
    color: var(--color-text-white);
    margin-top: 0;
}
#contact-section .contact-div p {
    font-size: clamp(1rem, 3vw, 1.2rem); /* Rendre la taille de police responsive */
    font-weight: 700;
    color: var(--var-principal-color);
    margin-bottom: 20px;
}
#contact-section .contact-div button {
    padding: 10px 15px;
    border: 2px solid var(--var-principal-color);
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.05);
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    color: var(--color-text-white);
}
#contact-section .contact-div button:hover {
    background: var(--var-principal-color);
    color: var(--color-text-white);
    transform: translateX(-1px);
}
/* ===== Style pour la section 'contact' section FIN ===== */


/* Structure de la Sidebar */
.sidebar {
    width: 260px;
    height: 100vh;
    background-color: var(--var-principal-color);
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    font-size: 14px;
    font-weight: 700;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.sidebar-logo { width: 60px; margin-bottom: 10px; }

.user-name { font-weight: bold; margin-top: 10px; }

.user-role { 
    font-size: 0.8rem; 
    color: var(--color-accent); 
    text-transform: uppercase; 
}

/* Liens de navigation */
.sidebar-nav ul { list-style: none; margin-top: 20px; }

.sidebar-nav a {
    display: block;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-nav a i { margin-right: 10px; width: 20px; }

.sidebar-nav a:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--color-accent);
    padding-left: 25px;
}

.logout-item a { color: #ff8b8b; margin-top: 20px; }


/* =====---- Style pour le le contenu du main FIN ----===== */

/* Media Query pour les écrans très petits (moins de 480px) */
@media screen and (max-width: 480px) {
    #hero-section .search form {
        flex-direction: column;
        border-radius: 10px;
    }
    .search #search-icon {
        display: none; /* Cache l'icône de recherche pour gagner de la place */
    }
    #hero-section form #search {
        padding: 1rem 1.2rem;
        font-size: 1rem;
        text-align: center;
    }
    #hero-section .hero-container #submit {
        width: 100%;
        padding: 1rem 1.5rem;
        border-radius: 0 0 10px 10px;
    }
    #hero-section .hero-container .hero-service ul {
        gap: 0.5rem; /* Réduire l'espacement des services */
    }
    #hero-section .hero-container .hero-service li a {
        font-size: 0.8rem;
    }
    
    /* Correction de la section partenaire pour mobile */
    .logo-wrapper .swiper-slide {
        width: 75px !important; /* Légèrement réduit pour les très petits écrans */
        margin-right: 15px; 
    }

    /* #service-populaire nav ul {
        flex-direction: column; Empile les liens de catégorie verticalement
        align-items: stretch;
    } */
    #service-populaire nav li a {
        justify-content: center;
    }
    #service-populaire nav li a.active {
        padding: 0.5rem;
    }
    
    .faq-question {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}



/* Responsive logos */
@media screen and (max-width: 768px) {
    .logo-wrapper .swiper-slide {
        width: 100px !important;
        height: 70px;
    }
}

@media screen and (max-width: 480px) {
    .logo-wrapper .swiper-slide {
        width: 80px !important;
        height: 60px;
    }
    
    #partner-section p {
        font-size: 0.95rem;
    }
}