/*******************************************************
 * MENU DES CATÉGORIES
 *******************************************************/
.gc-chantiers-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
    margin-top: 30px;
}

.gc-chantiers-menu a {
    text-decoration: none;
    padding: 10px 18px;
    background: #fafafa;
    font-size: 14px;
    transition: all 0.25s ease;
    color: black;
}

.gc-chantiers-menu a:hover {
    background: #ececec;
    border-color: #c2c2c2;
    border-radius: 10px;
}

.gc-chantiers-menu a.current {
    background: #333;
    color: #fff;
    border-color: #333;
    border-radius: 10px;
}

/*******************************************************
 * LISTE DES CHANTIERS (grid)
 *******************************************************/
 /* Sortir du container contraint de TT4 */
.entry-content.wp-block-post-content.is-layout-constrained .gc-chantiers-section {
    max-width: 90% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 75vh;
}

.gc-chantier-card {
    width: 300px;
    height: 300px;
    box-sizing: border-box;
}

.gc-liste-chantiers {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 50px auto;
    justify-content: center;
}

/*******************************************************
 * CARTE CHANTIER
 *******************************************************/
.gc-chantier-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 15px;
    transition: box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gc-chantier-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.gc-chantier-card img.gc-chantier-photo {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.gc-chantier-card h3 {
    font-size: 20px;
    margin: 10px 0 15px;
}

.gc-chantier-card p {
    font-size: 14px;
    line-height: 1.5;
    margin: 6px 0;
}

.gc-chantier-card {
    position: relative;
    cursor: pointer;
}

.gc-chantier-link-full {
    position: absolute;
    inset: 0;           /* couvre 100% de la div */
    z-index: 10;
    display: block;
    text-indent: -9999px; /* le lien devient invisible */
}

.gc-chantier-lien:hover {
    background: #000;
}

/*******************************************************
 * PAGE DÉTAIL
 *******************************************************/
 
.gc-chantier-detail {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    justify-content: center;
    padding: 3rem 0;
    border-bottom: 1px solid #303030;
    align-items: center;
}

.gc-chantier-detail h2 {
    margin-bottom: 25px;
}

.gc-chantier-titre {
    text-transform: uppercase;
}

.gc-chantier-label {
    border-bottom: 1px solid #303030;
    text-transform: uppercase;
    padding-bottom: 5px;
}

.gc-chantier-label span {
    font-weight: bold;
}

 /* Section imaages photo + galerie */
.gc-chantier-images {
    width: 90%;
    display: flex;
    flex-direction: column;
    align-content: center;
}

.gc-chantier-photo-detail {
    max-width: 100%;
    max-height: 450px;
    margin: 0 auto 15px;
    border-radius: 15px;
}

.gc-chantier-detail p {
    font-size: 14px;
    line-height: 1.7;
    margin: 15px 0;
}

#gc-chantier-description {
    margin-bottom: 30px;
}

.gc-chantier-contenu {
    margin-top: 1rem;
}

/*******************************************************
 * GALERIE
 *******************************************************/
/* Miniatures */
.gc-galerie-thumbs {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: auto;
}

.gc-thumb-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

/* .gc-thumb {
    width: 120px;
    cursor: pointer;
    border-radius: 5px;
    transition: transform .2s;
    height: 120px;
    background-size: cover;
}
.gc-thumb:hover {
    transform: scale(1.05);
} */

/* Lightbox fullscreen */
.gc-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    z-index: 99999;
}

.gc-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.gc-lightbox-img {
    width: 50%;
    height: auto;
}

.gc-lightbox .close,
.gc-lightbox .prev,
.gc-lightbox .next {
    position: absolute;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    user-select: none;
}

.gc-lightbox .close {
    top: 20px;
    right: 40px;
}

.gc-lightbox .prev {
    left: 40px;
}

.gc-lightbox .next {
    right: 40px;
}

.gc-titre-navigation {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-top: 1rem;
}

.gc-nav-circulaire {
    margin: 30px auto 0;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.gc-nav-item {
    width: 260px;
    text-decoration: none;
    color: #222;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(0,0,0,0);
    transition: transform .25s ease, box-shadow .25s ease;
    border: 1px solid #e6e6e6;
}

.gc-nav-item:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.gc-nav-item:hover .gc-nav-thumb {
    transform: scale(1.05);
}

.gc-nav-thumb {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: transform .25s ease;
}

.gc-nav-label {
    font-size: 12px;
    color: #666;
}

.gc-nav-title {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.gc-nav-center {
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 20px;
    background: #222;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
}

.gc-nav-center:hover {
    background: #444;
}

.gc-nav-center-div {
    margin: 2rem auto;
    display: flex;
    justify-content: center;
    padding-bottom: 2rem;
    text-align: center;
}

/* Bouton central */
.gc-nav-center {
    transition: background .25s ease, transform .25s ease;
}

.gc-nav-center:hover {
    background: #000;
    transform: scale(1.05);
}

/* --- Galerie miniatures --- */

.gc-thumb-carousel-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 20px;
}

.gc-thumb-btn {
    background: none;
    border: none;
    font-size: 26px;
    pointer-events: none;
    padding: 5px 10px;
    opacity: 0;
    transition: .2s ease;
}

.gc-thumb-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

.gc-thumb-carousel {
    display: flex;
    overflow: hidden;
    gap: 15px;
    width: calc(100% - 90px); /* largeur des flèches */
}

.gc-thumb {
    flex: 0 0 calc(33.33% - 10px); /* 3 miniatures visibles */
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform .25s;
    background-size: cover;
}

.gc-thumb:hover {
    transform: scale(1.05);
}


/*******************************************************
 * RESPONSIVE
 *******************************************************/
 
/*******************************************************
 * BREAKPOINT
 * Medium : 768px
 * Large : 992px
 * Extra large : 1200px 
 *******************************************************/
 
/*******************************************************
 * BREAKPOINT TABLETTE
 *******************************************************/
@media (min-width: 600px) {
    .gc-thumb {
        width: 150px;
    }
}
 
 
@media (min-width: 768px) {
/*******************************************************
 * MENU DES CATÉGORIES
 *******************************************************/
    .gc-chantiers-menu {
        justify-content: flex-start;
        gap: 10px;
    }

    .gc-chantiers-menu a {
        padding: 8px 12px;
        font-size: 18px;
    }

/*******************************************************
 * LISTE DES CHANTIERS
 *******************************************************/

    .gc-chantier-card img.gc-chantier-photo {
        height: 150px;
    }
    
/*******************************************************
 * PAGE DÉTAIL
 *******************************************************/
    
    .gc-chantier-images {
        width: 70%;
    }
    
    .gc-thumb {
        width: 175px;
    }
}

@media (min-width: 1200px) {
    .gc-chantier-detail {
        flex-direction: row;
        align-items: start;
    }
    .gc-chantier-images {
        width: 50%;
    }
    .gc-thumb {
        width: 150px;
    }
}

@media (min-width: 1600px) {
    .gc-thumb {
        width: 175px;
    }
}

