/* ===========================
   ALLIANCE & CO — PROJETS
   =========================== */

/* ── GRILLE SHORTCODE ── */
.acpj-grid {
    display: grid;
    gap: 24px;
}

.acpj-grid--3 { grid-template-columns: repeat(3, 1fr); }
.acpj-grid--2 { grid-template-columns: repeat(2, 1fr); }

.acpj-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e8e8 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    text-decoration: none !important;
    display: block;
}

.acpj-card-img {
    position: relative;
    overflow: hidden;
}

.acpj-card-img img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

/* Badge sur image (non utilisé, gardé pour compat) */
.acpj-badge {
    display: none;
}

.acpj-card-body {
    padding: 20px 24px 24px;
}

/* Meta : badge + date */
.acpj-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.acpj-badge-inline {
    display: inline-block;
    background: rgba(16, 29, 51, 0.08) !important;
    color: #101D33 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 5px 14px !important;
    border-radius: 50px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border: 1px solid rgba(16, 29, 51, 0.15) !important;
}

.acpj-card-date {
    font-size: 13px !important;
    color: #888 !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.acpj-card-date i {
    font-size: 12px;
    color: #aaa;
}

/* Footer card : lien */
.acpj-card-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
}

.acpj-card-link {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #101D33 !important;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: underline !important;
}

.acpj-card-body h3 {
    font-family: inherit;
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #101D33 !important;
    margin-bottom: 6px !important;
    line-height: 1.4 !important;
}

.acpj-loc {
    font-size: 13px;
    color: #888 !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.acpj-loc i {
    color: #C5A059;
    font-size: 12px;
}

/* ── SINGLE PROJET — fond blanc global ── */
body.single-projet {
    background: #ffffff !important;
}

/* ── SINGLE PROJET ── */
.acpj-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero */
.acpj-hero {
    background: #101D33;
    padding: 80px 20px 60px;
    text-align: center;
}

.acpj-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.acpj-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    color: #C5A059;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.acpj-hero h1 {
    font-size: 40px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 15px !important;
    line-height: 1.3 !important;
}

.acpj-hero-sub {
    font-size: 16px;
    color: rgba(255,255,255,0.7) !important;
}

/* Infos clés */
.acpj-infos {
    padding: 0;
    margin-top: -30px;
    position: relative;
    z-index: 2;
    margin-bottom: 50px;
}

.acpj-infos-grid {
    display: flex;
    justify-content: center;
    gap: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.acpj-info-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px 16px;
    border-right: 1px solid #f0f0f0;
    text-align: center;
}

.acpj-info-item:last-child {
    border-right: none;
}

.acpj-info-item i {
    font-size: 22px;
    color: #C5A059;
    margin-bottom: 4px;
}

.acpj-info-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.acpj-info-value {
    font-size: 15px;
    font-weight: 600;
    color: #101D33;
}

/* Contenu */
.acpj-content {
    padding: 40px 0 60px;
}

.acpj-content h2 {
    font-size: 40px !important;
    color: #101D33 !important;
    margin-top: 30px;
    margin-bottom: 15px;
}

.acpj-content h3 {
    font-size: 28px !important;
    color: #101D33 !important;
    margin-top: 25px;
    margin-bottom: 12px;
}

.acpj-content p {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 15px;
}

.acpj-content ul {
    margin: 15px 0 15px 20px;
}

.acpj-content ul li {
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Galerie */
.acpj-galerie {
    padding: 60px 0;
    background: #f7f7f5;
}

.acpj-galerie h2 {
    font-size: 40px !important;
    font-weight: 700 !important;
    color: #101D33 !important;
    text-align: center;
    margin-bottom: 40px;
}

.acpj-galerie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.acpj-galerie-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.acpj-galerie-item:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.acpj-galerie-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

/* ── AVANT / APRÈS SLIDER (clip-path) ── */
.acpj-ba-section {
    padding: 60px 0;
    background: #f7f7f5;
}

.acpj-ba-section h2 {
    font-size: 40px !important;
    font-weight: 700 !important;
    color: #101D33 !important;
    text-align: center;
    margin-bottom: 8px;
}

.acpj-ba-sub {
    text-align: center;
    color: #888;
    font-size: 15px;
    margin-bottom: 40px;
}

.acpj-ba-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.acpj-ba-label {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #101D33 !important;
    text-align: center;
    margin-bottom: 12px;
}

.ba-slider-wrapper {
    --ba-accent: #101D33;
    --ba-handle-size: 48px;
    font-family: 'Lora', serif;
    width: 100%;
    display: flex;
    flex-direction: column;
    user-select: none;
    -webkit-user-select: none;
}

.ba-slider-wrapper * { box-sizing: border-box; }

.ba-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 4px;
}

.ba-slider-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #1a1a1a;
}

.ba-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.ba-slider-dot--before { background: #b05a3a; }
.ba-slider-dot--after { background: #3a7d5c; }

.ba-slider-container {
    position: relative;
    width: 100%;
    min-height: 350px;
    overflow: hidden;
    cursor: col-resize;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10), 0 1px 3px rgba(0,0,0,0.06);
}

.ba-slider-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    display: block;
    -webkit-user-drag: none;
}

.ba-slider-img-before {
    z-index: 1;
    clip-path: inset(0 50% 0 0);
}

.ba-slider-img-after { z-index: 0; }

.ba-slider-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    margin-left: -1.5px;
    background: #fff;
    z-index: 3;
    box-shadow: 0 0 8px rgba(0,0,0,0.25);
    pointer-events: none;
}

.ba-slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--ba-handle-size);
    height: var(--ba-handle-size);
    transform: translate(-50%, -50%);
    z-index: 4;
    pointer-events: none;
}

.ba-slider-handle-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.22), 0 0 0 3px rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ba-slider-container:active .ba-slider-handle-circle,
.ba-slider-container.ba-dragging .ba-slider-handle-circle {
    transform: scale(1.12);
    box-shadow: 0 4px 18px rgba(0,0,0,0.28), 0 0 0 5px rgba(16,29,51,0.25);
}

.ba-slider-arrow {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.ba-slider-arrow--left { border-right: 7px solid var(--ba-accent); }
.ba-slider-arrow--right { border-left: 7px solid var(--ba-accent); }

@media (max-width: 767px) {
    .acpj-ba-grid { grid-template-columns: 1fr; }
    .ba-slider-container { min-height: 250px; }
    .ba-slider-labels { margin-bottom: 10px; }
    .ba-slider-label { font-size: 12px; }
}

/* PRE-FOOTER CTA */
.acpj-prefooter {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #101D33;
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    text-align: center;
}

.acpj-prefooter-overlay {
    position: absolute;
    inset: 0;
    background: #101D33;
    opacity: 0.7;
}

.acpj-prefooter-inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.acpj-prefooter-brand {
    display: block;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #C5A059 !important;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.acpj-prefooter h2 {
    font-size: 40px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 20px;
    line-height: 1.3;
}

.acpj-prefooter p {
    font-size: 15px !important;
    color: rgba(255,255,255,0.85) !important;
    line-height: 1.7;
    margin-bottom: 30px;
}

.acpj-prefooter-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.acpj-prefooter-btn {
    display: inline-block;
    padding: 15px 30px;
    font-family: 'Poppins', 'Lora', sans-serif;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: capitalize;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: 1px solid #ffffff;
}

.acpj-prefooter-btn--white {
    background: #ffffff !important;
    color: #0D1218 !important;
    border-color: #ffffff !important;
}

.acpj-prefooter-btn--white:hover {
    background: #001F3F !important;
    color: #ffffff !important;
    border-color: #001F3F !important;
}

.acpj-prefooter-btn--outline {
    background: transparent !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.acpj-prefooter-btn--outline:hover {
    background: #001F3F !important;
    color: #ffffff !important;
    border-color: #001F3F !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
    .acpj-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .acpj-infos-grid { flex-wrap: wrap; }
    .acpj-info-item { flex: 0 0 50%; border-bottom: 1px solid #f0f0f0; }
    .acpj-galerie-grid { grid-template-columns: repeat(2, 1fr); }
    .acpj-hero h1 { font-size: 18px !important; }
    .acpj-content h2 { font-size: 18px !important; }
    .acpj-content h3 { font-size: 16px !important; }
    .acpj-galerie h2, .acpj-ba-section h2, .acpj-cta h2 { font-size: 18px !important; }
}

@media (max-width: 767px) {
    .acpj-grid--3,
    .acpj-grid--2 { grid-template-columns: 1fr; }
    .acpj-card-body h3 { font-size: 17px !important; }
    .acpj-hero h1 { font-size: 30px !important; }
    .acpj-content h2 { font-size: 30px !important; }
    .acpj-content h3 { font-size: 20px !important; }
    .acpj-galerie h2, .acpj-ba-section h2, .acpj-prefooter h2 { font-size: 30px !important; }
    .acpj-infos-grid { flex-direction: column; }
    .acpj-info-item { flex: 1; border-right: none; border-bottom: 1px solid #f0f0f0; }
    .acpj-galerie-grid { grid-template-columns: 1fr; }
    .acpj-prefooter { min-height: auto; padding: 60px 16px; }
    .acpj-prefooter-buttons { flex-direction: column; }
    .acpj-prefooter-btn { width: 100%; text-align: center; }
}
