@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 */
*{
    text-decoration: none;
    list-style: none;
}
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;

    --shadow-sm: 0 12px 28px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 32px rgba(0, 0, 0, 0.12);
    --transition-default: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* ==== 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);
}

/* Bouton ALENI - style principal */
.btn-aleni {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
    font-weight: 600;
    transition: var(--transition-default);
}

.btn-aleni:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Bouton ALENI - style outline */
.btn-aleni-outline {
    background-color: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    font-weight: 600;
    transition: var(--transition-default);
}

.btn-aleni-outline:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Titres de section (h5 avec classes Bootstrap) */
h5.fw-bold.text-primary.text-uppercase {
    color: var(--color-accent) !important; /* #C28B47 - ta couleur dorée */
    font-size: 14px !important; /* ajuste la taille selon tes besoins */
    font-weight: 700 !important; /* bold plus fort */
    letter-spacing: 1.5px; /* espacement des lettres pour effet "uppercase" */
    margin-bottom: 12px; /* espace sous le titre */
}

/* ===== SERVICE ICONS ===== */
.service-item {
    background: #fff;
    border-radius: 12px;
    padding: 30px 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
    height: 100%;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(38,82,97,0.08);
    border-color: var(--accent-color, #C28B47);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color, #265261);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-icon i {
    font-size: 32px;
    color: #fff;
}

.service-item:hover .service-icon {
    background: var(--accent-color, #C28B47);
    transform: scale(1.05);
}

/* ================================================= */
/* ================================================= */
/* ================================================= */
/* ================================================= */
/* ================================================= */


/* =====---- 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 ===== */


/* ================================================= */
/* ================================================= */
/* ================================================= */

#recent-missions {
    padding: 60px 10%;
    background-color: #f4f7f6; /* Un gris très léger pour séparer des autres sections */
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.project-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--var-principal-color);
}

.project-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.8rem;
}

.category-tag {
    background: #e8f0fe;
    color: #1a73e8;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.project-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-view {
    color: var(--var-principal-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}



/* ================================================= */
/* ================================================= */
/* ================================================= */


/* ===== Style pour la section partner DEBUT  ===== */
#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 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 spécifique à la bannière de contact */
#contact-banner {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 50px 0;
}

#contact-banner .contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

#contact-banner .contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(38, 82, 97, 0.9) 0%, rgba(38, 82, 97, 0.4) 100%);
    z-index: 2;
}

#contact-banner .contact-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Texte */
#contact-banner .contact-title {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
}

#contact-banner .contact-phone {
    color: var(--color-accent);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 10px 0 20px 0;
}

/* Réseaux Sociaux */
#contact-banner .contact-social ul {
    display: flex;
    gap: 15px;
    padding: 0;
    list-style: none;
}

#contact-banner .contact-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s;
}

#contact-banner .contact-social a:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
}

/* Bouton */
#contact-banner .contact-btn {
    padding: 15px 35px;
    background: var(--color-accent);
    color: #fff !important;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#contact-banner .contact-btn:hover {
    background: #fff;
    color: var(--var-principal-color) !important;
}

/* Responsive */
@media (max-width: 768px) {
    #contact-banner {
        height: auto;
        padding: 50px 0;
    }
    #contact-banner .contact-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    #contact-banner .contact-social ul {
        justify-content: center;
    }
}




/* 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;
    }
}

/* ===== SERVICES PAGE ===== */
.service-card {
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08) !important;
}

.service-card .icon-wrapper {
    transition: all 0.3s ease;
}

.service-card:hover .icon-wrapper {
    transform: scale(1.05);
}

.service-card .btn-outline-primary {
    transition: all 0.3s ease;
}

.service-card .btn-outline-primary:hover {
    background: var(--primary-color, #265261) !important;
    color: #fff !important;
    border-color: var(--primary-color, #265261) !important;
}

.btn-accent {
    background: var(--accent-color, #C28B47) !important;
    color: #fff !important;
    border: none !important;
}

.btn-accent:hover {
    background: var(--accent-dark, #986723) !important;
    color: #fff !important;
}
.service-card .btn-outline-primary {
    transition: all 0.3s ease;
}

.service-card .btn-outline-primary:hover {
    background: var(--accent-color, #C28B47) !important;
    color: #fff !important;
    border-color: var(--accent-color, #C28B47) !important;
}

/* Projets.php */
.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08) !important;
}

.transition {
    transition: all 0.3s ease;
}

.statut-ouvert {
    background: #e3f2fd;
    color: #0d6efd;
}

.statut-en_cours {
    background: #fff3cd;
    color: #856404;
}

.statut-termine {
    background: #d4edda;
    color: #155724;
}