/**
 * Benin Escapes Elementor Addons - Single Project Detail CSS
 * Page détaillée d'un projet réalisé / Étude de cas BTP
 */

.be-sproject {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: #141b2b;
    background-color: #fbfbfa;
    padding: 0 0 80px 0;
    overflow-x: hidden;
}

.be-sproject__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 1. Header */
.be-sproject__header {
    background: #0f172a;
    color: #ffffff;
    padding: 80px 0 96px 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.be-sproject__breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 20px;
}

.be-sproject__breadcrumb a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.be-sproject__breadcrumb a:hover {
    color: #9ff79f;
}

.be-sproject__breadcrumb .material-symbols-outlined {
    font-size: 18px;
}

.be-sproject__bc-sep {
    color: #64748b;
}

.be-sproject__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.be-sproject__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.be-sproject__badge--primary {
    background: #1b5e20;
    color: #ffffff;
}

.be-sproject__badge--outline {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.be-sproject__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.be-sproject__subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 820px;
    margin: 0;
}

/* 2. Media Hero */
.be-sproject__media-hero {
    margin-top: -48px;
    position: relative;
    z-index: 10;
}

.be-sproject__hero-box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.25);
    width: 100%;
    height: clamp(380px, 46vw, 620px);
    background: #1e293b;
}

.be-sproject__hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.be-sproject__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(15, 23, 42, 0.4) 100%);
    pointer-events: none;
}

/* 3. Metrics Ribbon */
.be-sproject__metrics-section {
    margin-top: 35px;
}

.be-sproject__metrics-ribbon {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 32px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.be-sproject__metric-item {
    display: flex;
    align-items: center;
    gap: 14px;
    border-right: 1px solid #f1f5f9;
    padding-right: 12px;
}

.be-sproject__metric-item:last-child {
    border-right: none;
}

.be-sproject__metric-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #e8f5e9;
    color: #1b5e20;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.be-sproject__metric-icon-box .material-symbols-outlined {
    font-size: 22px;
}

.be-sproject__metric-texts {
    display: flex;
    flex-direction: column;
}

.be-sproject__metric-lbl {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.be-sproject__metric-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: #141b2b;
}

/* 4. Story Section (Vision & Signalétique) */
.be-sproject__story-section {
    padding: 60px 0 30px 0;
}

.be-sproject__story-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: start;
}

.be-sproject__sub-line-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.be-sproject__sub-line {
    width: 24px;
    height: 3px;
    background: #1b5e20;
    border-radius: 2px;
    display: inline-block;
}

.be-sproject__sub-label {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #1b5e20;
    text-transform: uppercase;
}

.be-sproject__story-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    color: #141b2b;
    margin: 0 0 24px 0;
    letter-spacing: -0.01em;
}

.be-sproject__story-text p {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #475569;
    margin: 0 0 20px 0;
}

/* Fiche Identité Chantier (Encadré Droit) */
.be-sproject__id-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.be-sproject__id-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #141b2b;
    margin: 0 0 20px 0;
    padding-bottom: 14px;
    border-bottom: 2px solid #f1f5f9;
}

.be-sproject__id-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.be-sproject__id-list li {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.92rem;
}

.be-sproject__id-list li strong {
    font-weight: 700;
    color: #64748b;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.be-sproject__id-list li span {
    font-weight: 600;
    color: #141b2b;
}

.be-sproject__id-badge {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #166534;
    font-size: 0.85rem;
    font-weight: 700;
}

.be-sproject__id-badge .material-symbols-outlined {
    font-size: 20px;
    color: #1b5e20;
}

/* 5. Specs Section (Grille 4 piliers) */
.be-sproject__specs-section {
    padding: 40px 0;
}

.be-sproject__section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 40px auto;
}

.be-sproject__specs-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    color: #141b2b;
    margin: 8px 0 0 0;
}

.be-sproject__specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.be-sproject__spec-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.be-sproject__spec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.be-sproject__spec-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #e8f5e9;
    color: #1b5e20;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.be-sproject__spec-icon-box .material-symbols-outlined {
    font-size: 24px;
}

.be-sproject__spec-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #141b2b;
    margin: 0 0 10px 0;
}

.be-sproject__spec-card-desc {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

/* 6. Testimonial Section */
.be-sproject__testimonial-section {
    padding: 30px 0;
}

.be-sproject__testimonial-box {
    background: #0f172a;
    border-radius: 18px;
    padding: 48px 56px;
    color: #ffffff;
    position: relative;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.be-sproject__tquote-icon {
    font-size: 44px;
    color: #9ff79f;
    opacity: 0.75;
    margin-bottom: 12px;
    display: inline-block;
}

.be-sproject__tquote {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.7;
    color: #f1f5f9;
    margin: 0 0 24px 0;
}

.be-sproject__tauthor-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.be-sproject__tauthor {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.be-sproject__trole {
    font-size: 0.88rem;
    color: #9ff79f;
    font-weight: 600;
}

/* 7. CTA Section */
.be-sproject__cta-section {
    padding: 40px 0 20px 0;
}

.be-sproject__cta-card {
    background: linear-gradient(135deg, #141b2b 0%, #1b382b 100%);
    border-radius: 18px;
    padding: 48px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.be-sproject__cta-content {
    max-width: 620px;
}

.be-sproject__cta-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: -0.01em;
}

.be-sproject__cta-desc {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0;
}

.be-sproject__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1b5e20;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 16px 28px;
    border-radius: 9999px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.be-sproject__cta-btn:hover {
    background: #2e7d32;
    transform: translateY(-2px);
    color: #ffffff;
}

/* Responsive */
@media (max-width: 1024px) {
    .be-sproject__specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .be-sproject__story-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .be-sproject__cta-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .be-sproject__header {
        padding: 56px 0 72px 0;
    }

    .be-sproject__media-hero {
        margin-top: -36px;
    }

    .be-sproject__title {
        font-size: 2rem;
    }

    .be-sproject__story-title,
    .be-sproject__specs-title {
        font-size: 1.6rem;
    }

    .be-sproject__specs-grid {
        grid-template-columns: 1fr;
    }

    .be-sproject__metrics-ribbon {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .be-sproject__metric-item {
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 12px;
        padding-right: 0;
    }

    .be-sproject__metric-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .be-sproject__testimonial-box {
        padding: 32px 24px;
    }

    .be-sproject__cta-card {
        padding: 32px 24px;
    }
}
