/* ═══════════════════════════════════════
   EspaceFenitra — espace.css
   Styles communs aux 4 pages d'espace
═══════════════════════════════════════ */

/* ─── HERO ─── */
.ef-espace-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 4% 100px;
    overflow: hidden;
}

.ef-espace-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--hero-img);
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.ef-espace-hero:hover::before {
    transform: scale(1.08);
}

.ef-espace-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(10, 20, 10, 0.6), rgba(10, 20, 10, 0.5));
    z-index: 1;
}

.ef-espace-hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
}

.ef-espace-hero-tag {
    display: inline-block;
    color: var(--or);
    border: 1px solid var(--or);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.ef-espace-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ef-espace-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 300;
    color: white;
    line-height: 1.05;
    margin-bottom: 24px;
}

.ef-espace-hero-title em {
    color: var(--or-light);
    font-style: italic;
}

.ef-espace-hero-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.9;
    max-width: 640px;
    margin: 0 auto 40px;
}

.ef-hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: heroIn 1s 0.8s ease both;
}

/* ─── DESCRIPTION ─── */
.ef-espace-desc {
    padding: 110px 4%;
    background: var(--blanc);
}

.ef-espace-desc-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}

.ef-espace-desc-p {
    color: var(--texte-doux);
    font-size: 1rem;
    line-height: 2;
    margin-bottom: 20px;
}

/* ─── CARACTÉRISTIQUES ─── */
.ef-espace-caract {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ef-caract-item {
    background: var(--creme);
    border-radius: 18px;
    padding: 24px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ef-caract-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
}

.ef-caract-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.ef-caract-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--or);
    font-weight: 600;
    margin-bottom: 6px;
}

.ef-caract-val {
    font-size: 0.9rem;
    color: var(--texte);
    line-height: 1.5;
    font-weight: 500;
}

/* ─── GALERIE ─── */
.ef-espace-galerie {
    padding: 100px 4%;
    background: var(--creme);
}

.ef-espace-galerie-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.ef-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.ef-espace-galerie-grid {
    columns: 3;
    column-gap: 16px;
}

.ef-espace-galerie-item {
    position: relative;
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.ef-espace-galerie-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.ef-espace-galerie-item:hover img {
    transform: scale(1.05);
}

.ef-espace-galerie-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 30, 10, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ef-espace-galerie-item:hover .ef-espace-galerie-overlay {
    opacity: 1;
}

.ef-galerie-vide {
    color: var(--texte-doux);
    text-align: center;
    padding: 60px 0;
    font-size: 1rem;
}

/* ─── CTA ─── */
.ef-espace-cta {
    padding: 80px 4%;
    background: var(--blanc);
}

.ef-espace-cta-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--vert-dark);
    border-radius: 24px;
    padding: 80px 60px;
    text-align: center;
}

.ef-cta-tag {
    display: inline-block;
    color: var(--or);
    font-size: 0.74rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.ef-cta-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    color: white;
    line-height: 1.15;
    margin-bottom: 24px;
}

.ef-cta-title em {
    color: var(--or-light);
    font-style: italic;
}

.ef-cta-sub {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ef-cta-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.ef-btn-or {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--or);
    color: white;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.2s ease;
}

.ef-btn-or:hover {
    background: var(--or-light);
    transform: translateY(-2px);
}

.ef-btn-outline-blanc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: white;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.ef-btn-outline-blanc:hover {
    border-color: var(--or);
    background: rgba(201, 168, 76, 0.1);
}

/* ─── LIGHTBOX ─── */
.ef-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 15, 5, 0.96);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ef-lightbox.open {
    opacity: 1;
    visibility: visible;
}

.ef-lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.ef-lightbox-img {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.ef-lightbox-titre {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
}

.ef-lightbox-close {
    position: fixed;
    top: 24px;
    right: 32px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 9001;
}

.ef-lightbox-close:hover {
    color: var(--or);
    transform: rotate(90deg);
}

/* ─── REVEAL ─── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
    .ef-espace-desc-inner {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .ef-espace-galerie-grid {
        columns: 2;
    }
}

@media (max-width: 700px) {
    .ef-espace-caract {
        grid-template-columns: 1fr;
    }

    .ef-espace-galerie-grid {
        columns: 1;
    }

    .ef-espace-cta-card {
        padding: 50px 28px;
    }

    .ef-cta-btns {
        flex-direction: column;
        align-items: center;
    }

    .ef-espace-hero {
        min-height: 100svh;
        padding: 100px 4% 60px;
    }

    .ef-btn-primary-hero {
        width: auto;
        align-self: center;
    }
}

