/*
Theme Name: Astra Child
Template: astra
Author: Antigravity
Description: Thème enfant pour Aremac - Personnalisations PHP/CSS sans Elementor Pro.
Version: 1.3.0
*/

/* --- Mega Menu Styles --- */
@media (min-width: 922px) {
    .ast-desktop .main-header-bar-navigation {
        position: static !important;
    }

    .ast-desktop .main-header-menu>.mega-menu {
        position: static !important;
    }

    .ast-desktop .main-header-menu>.mega-menu>.sub-menu {
        width: 100%;
        max-width: 1200px;
        left: 0 !important;
        right: 0 !important;
        margin: 0 auto !important;
        display: flex;
        flex-wrap: wrap;
        padding: 30px;
        background: #fff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-top: 3px solid var(--ast-global-color-0);
        position: absolute !important;
    }

    .ast-desktop .main-header-menu>.mega-menu>.sub-menu>.menu-item {
        flex: 0 0 25%;
        padding: 10px 20px;
    }

    .ast-desktop .main-header-menu>.mega-menu>.sub-menu>.menu-item>a {
        font-weight: bold;
        border-bottom: 1px solid #eee;
        margin-bottom: 10px;
        display: block;
        padding-bottom: 5px;
    }
}

/* --- Bureaux Archive (Grid Container) --- */
.bureaux-grid .bureau-container {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
}

.bureaux-grid .bureau-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.bureau-photo-top img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.bureau-title-bottom {
    font-size: 1.15rem;
    padding: 20px;
    margin: 0;
    text-align: center;
}

.bureau-placeholder {
    height: 250px;
    background: #f1f5f9;
}

/* --- Single Bureau Layout (2 Columns) --- */
.bureau-content-wrapper {
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Column stacking behavior */
.bureau-details-column {
    margin-bottom: 30px;
}

@media (min-width: 922px) {
    .bureau-details-column {
        padding-right: 50px;
        margin-bottom: 0;
    }
}

.bureau-details-column h1.entry-title {
    font-size: 2.25rem;
    margin-bottom: 25px;
    line-height: 1.2;
    color: #1e293b;
}

.details-box {
    background: #f8fafc;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #f1f5f9;
}

.detail-item {
    margin-bottom: 15px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item strong {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ast-global-color-0);
    margin-bottom: 2px;
}

.detail-item p {
    margin: 0;
    font-size: 1.05rem;
    color: #334155;
}

.bureau-text-content {
    margin-top: 25px;
    color: #4b5563;
    line-height: 1.6;
}

/* --- Slider & Gallery --- */
.bureau-slider-refined {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-slide {
    min-width: 100%;
}

.slider-slide img {
    width: 100%;
    height: 350px;
    /* Mobile height */
    object-fit: cover;
    display: block;
}

@media (min-width: 922px) {
    .slider-slide img {
        height: 500px;
        /* Desktop height */
    }
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
    pointer-events: none;
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    pointer-events: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.slider-controls button:hover {
    background: #fff;
    transform: scale(1.1);
}

.bureau-main-photo img {
    border-radius: 12px;
    width: 100%;
    height: auto;
}

.entry-header{ text-align:center; }
.entry-header h1 { font-size:2.5rem;  }
#zone_bureaux{
		flex:0 0 24.99%; box-sizing:border-box; padding:5px; margin-bottom:20px; text-align:center
}

@media (min-width: 801px) and (max-width: 1024px) {
	#zone_bureaux{
		flex:0 0 33.33% !important; box-sizing:border-box; padding:5px; margin-bottom:20px; text-align:center
	}
}

@media (min-width: 481px) and (max-width: 800px) {
	#zone_bureaux{
		flex:0 0 49.50% !important; box-sizing:border-box; padding:5px; margin-bottom:20px; text-align:center
	}
}

@media (max-width: 480px) {
	#zone_bureaux{
		flex:0 0 100% !important; box-sizing:border-box; padding:5px; margin-bottom:20px; text-align:center
	}
}