/* RÉALISATIONS — styles spécifiques à la page réalisations */

/* ── Body  */

#realisations-body {
    background: #030214;
}


/* ── Header / Hero  */

.real-header {
    overflow: visible;
    height: 30vh;
    padding-bottom: 4vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Overlay blanc — opacité pilotée par GSAP scrub */
.real-hero-overlay {
    position: absolute;
    inset: 0;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.real-hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 80%;
    align-self: center;
    position: relative;
    z-index: 2;
}

.real-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.4rem;
}

.real-hero-badge-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.real-hero-title {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
}

.real-hero-sub {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
    max-width: 420px;
}


/* ── Section projets — bottom-sheet ─────────────────────── */

.real-projects {
    padding: 4em 0 6em;
    position: relative;
    z-index: 2;
}


/* ── Grille masonry ──────────────────────────────────────── */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 1.2em;
    width: 82%;
    margin: 0 auto;
}

/* Colonnes — pattern 100 / 60+40 / 40+60 / 50+50 */
.project-card.span-10 { grid-column: span 10; }
.project-card.span-6  { grid-column: span 6;  }
.project-card.span-5  { grid-column: span 5;  }
.project-card.span-4  { grid-column: span 4;  }


/* ── Card ────────────────────────────────────────────────── */

.project-card {
    overflow: hidden;
    color: #ffffff;
    transition: transform 0.35s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.card-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}


/*  Image  */

.card-image {
    overflow: hidden;
    flex-shrink: 0;
    background: #e8e8e8;
    height: 280px;
}

.project-card.span-10 .card-image {
    height: 480px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s ease;
}

.project-card:hover .card-image img {
    transform: scale(1.04);
}


/* ── Footer de la card — titre | description ─────────────── */

.card-footer {
    display: flex;
    align-items: flex-start;
    gap: 2em;
    padding: 1.6em 2em 1.8em;
}

.card-meta {
    flex: 0 0 42%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4em;
}

.card-category {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    color: rgba(221, 67, 4, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.card-title {
    font-family: var(--font-title);
    font-size: var(--text-xl);
    font-weight: 700;
    color: #ffffff;   /* état sombre initial — GSAP scrub + hover gérés en JS */
    line-height: 1.15;
    margin: 0;
}

.card-desc {
    flex: 1;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);  /* état sombre initial */
    line-height: 1.65;
    margin: 0;
    padding-top: 0.3em;
}

/* Cards étroites (40%) — footer empilé */
.project-card.span-4 .card-footer {
    flex-direction: column;
    gap: 0.6em;
}

.project-card.span-4 .card-meta {
    flex: none;
}


/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 1024px) {
    .real-hero { width: 88%; }
    .projects-grid { width: 88%; }
    .card-image { height: 220px; }
    .project-card.span-10 .card-image { height: 360px; }
}

@media (max-width: 768px) {
    .real-header { min-height: 60vh; }

    .real-hero {
        width: 90%;
        padding-top: 18vh;
        padding-bottom: 5vh;
    }

    .real-hero-title { font-size: 3rem; }

    .real-projects {
        padding: 2.5em 0 4em;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        width: 90%;
        gap: 1em;
    }

    /* Toutes les cards en pleine largeur sur mobile */
    .project-card.span-10,
    .project-card.span-6,
    .project-card.span-5,
    .project-card.span-4 {
        grid-column: span 1;
    }

    .card-image,
    .project-card.span-10 .card-image {
        height: 220px;
    }

    .card-footer {
        flex-direction: column;
        gap: 0.6em;
        padding: 1.2em 1.4em 1.5em;
    }

    .card-meta { flex: none; }
}
