/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/
Author: Your Name
Author URI: https://example.com/
Description: Child theme for Hello Elementor with custom taxonomies Services and Projets.
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* Place your custom CSS below */

b, strong {
    font-weight: bold !important;
}
/* ===== GALERIE SERVICES FGC - STYLE ONGLETS ===== */
.fgc-services-gallery-tabs {
    margin: 2rem 0;
    padding: 0;
}

/* Navigation par onglets */
.fgc-tabs-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fgc-tab-btn {
    background: transparent !important;
    border: none !important;
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
    font-weight: 600;
    color: #666 !important;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
}

.fgc-tab-btn:hover {
    color: white !important;
    background: #666 !important;
}

.fgc-tab-btn.active {
    color: white !important;
    background: #666 !important;
}

.fgc-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
}

/* Contenu de la galerie */
.fgc-gallery-content {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
}


.fgc-services-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0 2rem;
}

.page-content a {
    text-decoration: none !important;
}

.fgc-featured-bg {
    background-size: cover !important;
}

.single-projet .mf-checkbox-option span {
    color: black !important;
}

.single-projet .page-content > .elementor > div:not(:first-child) {
    max-width: 1450px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .fgc-services-masonry {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .fgc-services-masonry {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 1rem;
    }
    .service_box_head  {
        position: relative !important;
    }
}

@media (max-width: 480px) {
    .fgc-services-masonry {
        grid-template-columns: 1fr;
        padding: 0 0.5rem;
    }
}

.fgc-gallery-item {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 1;
}

.fgc-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.fgc-gallery-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.fgc-gallery-image-container {
    position: relative;
    overflow: hidden;
    height: 300px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fgc-gallery-image {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    flex-shrink: 0 !important;
    transition: transform 0.3s ease;
}

.fgc-gallery-item:hover .fgc-gallery-image {
    transform: scale(1.05);
}

.fgc-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.fgc-gallery-item:hover .fgc-gallery-overlay {
    transform: translateY(0);
}

.fgc-gallery-title {
    color: #ffffff !important;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

/* Variantes de tailles pour un effet masonry */
.fgc-gallery-item:nth-child(3n) .fgc-gallery-image-container {
    height: 300px;
}

.fgc-gallery-item:nth-child(5n) .fgc-gallery-image-container {
    height: 200px;
}

.fgc-gallery-item:nth-child(7n) .fgc-gallery-image-container {
    height: 280px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fgc-tabs-navigation {
        gap: 0.3rem;
        margin-bottom: 2rem;
    }
    
    .fgc-tab-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .fgc-services-masonry {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        margin: 0;
        padding: 0;
        gap: 0;
    }
    
    .fgc-gallery-image-container {
        height: 200px;
    }
    
    .fgc-gallery-item:nth-child(3n) .fgc-gallery-image-container,
    .fgc-gallery-item:nth-child(5n) .fgc-gallery-image-container,
    .fgc-gallery-item:nth-child(7n) .fgc-gallery-image-container {
        height: 200px;
    }
    
    .fgc-gallery-title {
        font-size: 1.1rem;
    }
    
    .fgc-gallery-overlay {
        padding: 1.5rem 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .fgc-services-gallery-tabs {
        margin: 1rem 0;
    }
    
    .fgc-tabs-navigation {
        /*flex-direction: column;*/
        /*align-items: center;*/
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .fgc-tab-btn {
        padding: 8px 20px;
        font-size: 0.8rem;
        width: auto;
        min-width: 120px;
    }
    
    .fgc-services-masonry {
        grid-template-columns: 1fr;
        margin: 0;
        padding: 0;
        gap: 0;
    }
    
    .fgc-gallery-image-container {
        height: 180px;
    }
    
    .fgc-gallery-item:nth-child(3n) .fgc-gallery-image-container,
    .fgc-gallery-item:nth-child(5n) .fgc-gallery-image-container,
    .fgc-gallery-item:nth-child(7n) .fgc-gallery-image-container {
        height: 180px;
    }
    
    .fgc-gallery-title {
        font-size: 1rem;
    }
}

/* ===== STYLES POUR LE SHORTCODE ===== */
.fgc-services-shortcode-wrapper {
    margin: 2rem 0;
    padding: 0;
}

.fgc-shortcode-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin: 0 0 3rem 0;
    position: relative;
    padding-bottom: 1.5rem;
}

.fgc-shortcode-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .fgc-shortcode-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .fgc-shortcode-title::after {
        width: 60px;
        height: 3px;
    }
}

/* ===== GALERIE PROJETS FGC - STYLES IDENTIQUES AUX SERVICES ===== */
.fgc-projects-gallery-tabs {
    margin: 2rem 0;
    padding: 0;
}

/* Contenu de la galerie projets */
.fgc-projects-gallery-tabs .fgc-gallery-content {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
}

.fgc-projects-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0 2rem;
}

@media (max-width: 1200px) {
    .fgc-projects-masonry {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .fgc-projects-masonry {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .fgc-projects-masonry {
        grid-template-columns: 1fr !important;
        padding: 0 0.5rem;
    }
}

/* Variantes de tailles pour un effet masonry projets */
.fgc-projects-gallery-tabs .fgc-gallery-item:nth-child(3n) .fgc-gallery-image-container {
    height: 300px;
}

.fgc-projects-gallery-tabs .fgc-gallery-item:nth-child(5n) .fgc-gallery-image-container {
    height: 200px;
}

.fgc-projects-gallery-tabs .fgc-gallery-item:nth-child(7n) .fgc-gallery-image-container {
    height: 280px;
}

/* Placeholder pour les projets sans image */
.fgc-gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.fgc-placeholder-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.fgc-placeholder-text {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Styles pour les extraits dans l'overlay */
.fgc-gallery-excerpt {
    color: #e0e0e0;
    font-size: 0.9rem;
    margin: 0.5rem 0 0 0;
    line-height: 1.4;
    opacity: 0.9;
}

/* Styles pour le shortcode projets */
.fgc-projects-shortcode-wrapper {
    margin: 2rem 0;
    padding: 0;
}

/* Responsive Design Projets - Identique aux Services */
@media (max-width: 768px) {
    .fgc-projects-gallery-tabs .fgc-tabs-navigation {
        gap: 0.3rem;
        margin-bottom: 2rem;
    }
    
    .fgc-projects-gallery-tabs .fgc-tab-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .fgc-projects-masonry {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 0.8rem;
    }
    
    .fgc-projects-gallery-tabs .fgc-gallery-image-container {
        height: 200px;
    }
    
    .fgc-projects-gallery-tabs .fgc-gallery-item:nth-child(3n) .fgc-gallery-image-container,
    .fgc-projects-gallery-tabs .fgc-gallery-item:nth-child(5n) .fgc-gallery-image-container,
    .fgc-projects-gallery-tabs .fgc-gallery-item:nth-child(7n) .fgc-gallery-image-container {
        height: 200px;
    }
    
    .fgc-projects-gallery-tabs .fgc-gallery-title {
        font-size: 1.1rem;
    }
    
    .fgc-projects-gallery-tabs .fgc-gallery-overlay {
        padding: 1.5rem 1rem 1rem;
    }
    
    .fgc-placeholder-icon {
        font-size: 2.5rem;
    }
    
    .fgc-placeholder-text {
        font-size: 1rem;
    }
    
    .fgc-gallery-excerpt {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .fgc-projects-gallery-tabs {
        margin: 1rem 0;
    }
    
    .fgc-projects-gallery-tabs .fgc-tabs-navigation {
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .fgc-projects-gallery-tabs .fgc-tab-btn {
        padding: 8px 20px;
        font-size: 0.8rem;
        width: auto;
        min-width: 120px;
    }
    
    .fgc-projects-masonry {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .fgc-projects-gallery-tabs .fgc-gallery-image-container {
        height: 180px;
    }
    
    .fgc-projects-gallery-tabs .fgc-gallery-item:nth-child(3n) .fgc-gallery-image-container,
    .fgc-projects-gallery-tabs .fgc-gallery-item:nth-child(5n) .fgc-gallery-image-container,
    .fgc-projects-gallery-tabs .fgc-gallery-item:nth-child(7n) .fgc-gallery-image-container {
        height: 180px;
    }
    
    .fgc-projects-gallery-tabs .fgc-gallery-title {
        font-size: 1rem;
    }
    
    .fgc-placeholder-icon {
        font-size: 2rem;
    }
    
    .fgc-placeholder-text {
        font-size: 0.9rem;
    }
}

/* MENU DE NAVIGATION */
/* Responsive */
@media (min-width: 1025px) {
    #menu-footer p:hover {
        transform: scale(1.2);
    }
}
@media (max-width: 1024px) {
    #menu-footer p:hover {
        transform: none !important;
    }
    #menu-main li.current-menu-item > a,
    #menu-main li.current-menu-ancestor > a {
        color: #5F4E39;
        font-weight: bold;
    }
    .elementor-753
    .elementor-element.elementor-element-cd7578e
    .jeg-elementor-kit.jkit-nav-menu
    .jkit-menu-wrapper .jkit-menu > li:not(.hover-gradient, .current-menu-item):hover > a {
        color: #5F4E39 !important;
    }

}
.sub-menu li {
    transition: transform 0.2s  !important;
}

.sub-menu li:hover {
    transform: translateX(8px) !important;
}

.jkit-search-field::placeholder {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: #756D64;
    transition: color 0.2s ease;
}
.jkit-search-field:hover::placeholder {
    color: transparent;
}
.jkit-search-button i::before {
    transition: transform 0.2s ease;
    display: inline-block;
}

.jkit-search-button:hover i::before {
    transform: scale(1.5);
}

 /*PAGE ACCUEIL BANNIERE */
#banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: none !important;
    background-color: rgb(0 0 0) !important;
    pointer-events: none !important;
}

/*Responsive Paqe Accueil*/
@media (max-width: 768px) {
    #banner::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgb(0 0 0) !important;
        pointer-events: none !important;
    }
    #expertises-container{
        margin: 0 !important;
        padding: 0 !important;
    }
    .elementor-element-573690b3 {
        margin: 0 !important;
        padding: 0 !important;
    }
    .citations_quote {
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
    }
    .citations_quote div {
        align-self: center !important;
    }
}

#banner h1, #banner p {
    pointer-events: none !important;
}


/* FOOTER */
#menu-footer p:hover {
    transform: scale(1.2) !important;
}
/* Responsive */
@media (max-width: 768px) {
    #fg-footer > .elementor-element {
        display: grid !important;
        grid-template-columns: 1fr 1fr; /* 2 colonnes */
        grid-gap: 15px; /* espace entre les blocs */
    }

    #fg-footer > .elementor-element > div {
        width: 100% !important; /* chaque bloc occupe toute la largeur de sa cellule */
    }

    /* 2) Centrer la barre "mentions" uniquement sur mobile */
    #fg-footer .elementor-element-729662a {
        display: flex !important;
        justify-content: center !important;
    }
    #fg-footer .elementor-element-729662a,
    #fg-footer .elementor-element-729662a .elementor-widget-text-editor,
    #fg-footer .elementor-element-729662a .elementor-widget-container,
    #fg-footer .elementor-element-729662a p {
        text-align: center !important;
    }
}


/* H1 pages services */
.page-header .entry-title {
    margin-top: 2rem !important;
    margin-bottom: 4rem !important;
    font-size: 2.7rem !important;
    text-align: center !important;
}

/*Formulaire de contact popup et page contact*/
html body .mf-checkbox-option span {
    color: white;
    font-weight: 700;
}

.pum-content .mf-checkbox-option span, .page-id-663 .mf-checkbox-option span {
    color: #bc9665 !important;
}

div#contact-page {
    min-height: calc(100vh - 345px);
}

/* Page article */
#comments {
    display: none;
}

#article-banner {
    margin: 0 !important;
    padding: 0 !important;
}

/*Page projet*/
#middle-page-text p{
    text-align: left;
    display: list-item;
    border-bottom: 0.5px solid #5f4e396b;
    padding-bottom: 5px;
    padding-top: 5px;
    list-style: decimal-leading-zero;
}


/* Page de resultats de recherche */
.search-results-page .page-header > h1 {
    margin-top: 30% !important;
    font-size: 2rem !important;
    line-height: 1.2 !important;
}

.search-results-page .search-section {
    margin-bottom: 40px;
}

.search-results-page .search-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #5F4E39 !important;
    border-bottom: 2px solid  #5F4E39;
    padding-bottom: 6px;
}

.search-results-page .search-section article {
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
}

/* ===== PAGE DE RÉSULTATS DE RECHERCHE AMÉLIORÉE ===== */
.search-results-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.search-results-page .page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #eee;
}

.search-results-page .entry-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.search-results-page .search-query {
    color: #BC9565;
    font-weight: 600;
}

.search-results-page .search-count {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.search-results-page .search-section {
    margin-bottom: 4rem;
}

.search-results-page .search-section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #BC9565;
}

/* Grille de résultats */
.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Cartes de résultats */
.search-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.search-card-link {
    display: flex;
    flex-direction: row;
    text-decoration: none !important;
    color: inherit;
    height: 100%;
}

.search-card-link:hover {
    text-decoration: none !important;
}

/* Image de la carte - à gauche */
.search-card-image {
    width: 200px;
    min-width: 200px;
    height: 150px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.search-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.search-card:hover .search-card-image img {
    transform: scale(1.05);
}

.search-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.search-card-placeholder .placeholder-icon {
    font-size: 3rem;
    opacity: 0.5;
}

/* Contenu de la carte */
.search-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.search-card-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #BC9565;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.search-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    text-decoration: none !important;
}

.search-card-link:hover .search-card-title {
    color: #BC9565;
    text-decoration: none !important;
}

.search-card-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Message aucun résultat */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.no-results p {
    font-size: 1.1rem;
    color: #666;
    margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .search-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .search-results-page {
        padding: 1.5rem 1rem;
    }
    
    .search-results-page .page-header {
        margin-bottom: 2rem;
    }
    
    .search-results-page .entry-title {
        font-size: 1.5rem;
    }
    
    .search-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Image en haut sur mobile */
    .search-card-link {
        flex-direction: column;
    }
    
    .search-card-image {
        width: 100%;
        height: 180px;
        min-width: auto;
    }
    
    .search-card-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .search-results-page .entry-title {
        font-size: 1.25rem;
    }
    
    .search-card-content {
        padding: 1rem;
    }
    
    .search-card-title {
        font-size: 1.1rem;
    }
}
