/* ===========================================================================
   bv-home.css — styles spécifiques à la home Baptiste Vidal.
   Sections : selected-work, showreel, trusted-by, cta.
   =========================================================================== */

/* ─── Header de section (caption + h2) ──────────────────────────────── */
.bv-section-head {
    display: grid;
    grid-template-columns: 1fr 4fr;
    gap: var(--bv-gutter);
    align-items: end;
    margin-bottom: var(--bv-space-8);
}
.bv-section-head .bv-caption {
    align-self: end;
    padding-bottom: 0.4em;
}
.bv-section-head h2 {
    margin: 0;
}
@media (max-width: 720px) {
    .bv-section-head {
        grid-template-columns: 1fr;
        gap: var(--bv-space-3);
        margin-bottom: var(--bv-space-6);
    }
}

/* ─── Hero fallback (si pas d'image en BDD) ────────────────────────── */
.bv-hero__fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

/* La règle horizontale entre titre et sous-titre du hero */
.bv-front .bv-hero__rule {
    width: 80px;
    height: 1px;
    background: rgba(250, 250, 248, 0.85) !important;
    margin: var(--bv-space-5) 0;
    transform-origin: left;
    border: none;
}

/* ─── Selected Work : grille des 4 catégories ──────────────────────── */
.bv-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--bv-gutter);
}
@media (max-width: 960px) {
    .bv-cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .bv-cat-grid { grid-template-columns: 1fr; }
}

.bv-cat-tile {
    display: block;
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f1efe8;
    text-decoration: none;
    color: inherit;
}
.bv-cat-tile:hover { opacity: 1; }
.bv-cat-tile__img,
.bv-cat-tile picture,
.bv-cat-tile picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s var(--bv-ease-out);
    will-change: transform;
}
.bv-cat-tile:hover picture img,
.bv-cat-tile:hover .bv-cat-tile__img {
    transform: scale(1.05);
}
.bv-cat-tile__img--empty {
    background: #f1efe8;
    aspect-ratio: 3 / 4;
}

/* Caption en bas-gauche de chaque tile, fond sombre dégradé */
.bv-cat-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,.6) 0%, transparent 50%);
    pointer-events: none;
    transition: opacity var(--bv-d-normal) var(--bv-ease-out);
    opacity: 0.85;
}
.bv-cat-tile:hover::after { opacity: 1; }

.bv-cat-tile__caption {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: var(--bv-space-5);
    color: var(--bv-bg);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--bv-space-3);
}
.bv-cat-tile__index {
    font-size: var(--bv-fs-micro);
    text-transform: uppercase;
    letter-spacing: var(--bv-ls-caps);
    opacity: 0.6;
}
.bv-cat-tile__name {
    font-family: var(--bv-font-display);
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    line-height: 1;
    letter-spacing: var(--bv-ls-tight);
}

/* ─── Showreel ──────────────────────────────────────────────────────── */
.bv-showreel__player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bv-bg-dark);
    overflow: hidden;
}
.bv-showreel__player iframe,
.bv-showreel__player video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
.bv-showreel__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--bv-space-4);
    color: rgba(250, 250, 248, 0.5);
}
.bv-showreel__placeholder svg {
    width: 56px;
    height: 56px;
    fill: currentColor;
    stroke: none;
}

/* Lien fléché en bas de la section showreel */
.bv-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--bv-space-3);
    margin-top: var(--bv-space-6);
    font-size: var(--bv-fs-caption);
    text-transform: uppercase;
    letter-spacing: var(--bv-ls-caps);
    font-weight: 500;
    color: var(--bv-text);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 4px;
    transition: gap var(--bv-d-normal) var(--bv-ease-out);
}
.bv-link-arrow:hover { opacity: 1; gap: var(--bv-space-4); }
.bv-link-arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ─── Trusted by : grille des clients ───────────────────────────────── */
.bv-clients-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--bv-border);
}
@media (max-width: 720px) {
    .bv-clients-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .bv-clients-grid { grid-template-columns: 1fr; }
}
.bv-clients-grid li {
    padding: var(--bv-space-6) var(--bv-space-4);
    border-bottom: 1px solid var(--bv-border);
    border-right: 1px solid var(--bv-border);
    font-family: var(--bv-font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: var(--bv-ls-tight);
    line-height: 1;
    transition: background var(--bv-d-fast) ease;
}
.bv-clients-grid li:hover { background: rgba(0,0,0,0.02); }
.bv-clients-grid li:nth-child(3n) { border-right: none; }
@media (max-width: 720px) {
    .bv-clients-grid li:nth-child(3n) { border-right: 1px solid var(--bv-border); }
    .bv-clients-grid li:nth-child(2n) { border-right: none; }
}
@media (max-width: 480px) {
    .bv-clients-grid li { border-right: none; }
}

/* ─── CTA "Ready to collaborate?" ───────────────────────────────────── */
.bv-cta-section {
    background: var(--bv-bg-dark);
    color: var(--bv-bg);
    padding-block: clamp(56px, 8vh, 96px);
}
.bv-cta-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--bv-space-7);
}
.bv-cta-title {
    color: var(--bv-bg);
    max-width: 14ch;
    line-height: 0.95;
}

.bv-btn--lg {
    padding: 18px 40px;
    font-size: var(--bv-fs-caption);
    border-color: var(--bv-bg);
    color: var(--bv-bg);
}
.bv-btn--lg.bv-btn--solid {
    background: var(--bv-bg);
    color: var(--bv-text);
}
.bv-btn--lg.bv-btn--solid:hover {
    background: transparent;
    color: var(--bv-bg);
}
.bv-btn svg {
    transition: transform var(--bv-d-normal) var(--bv-ease-out);
}
.bv-btn:hover svg {
    transform: translateX(6px);
}

/* ── Grille des 3 métiers (home) ─────────────────────────────────────── */
@media (min-width: 721px) {
    .bv-cat-grid--disciplines {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── Logos clients (section Collaborations) ──────────────────────────── */
.bv-logos-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--bv-border);
    border: 1px solid var(--bv-border);
}
@media (min-width: 721px) {
    .bv-logos-grid { grid-template-columns: repeat(6, 1fr); }
}
.bv-logos-grid__item {
    background: var(--bv-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 3vw, 40px) clamp(12px, 2vw, 24px);
    min-height: 90px;
}
.bv-logos-grid__item img {
    max-width: 100%;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
    /* logos en niveaux de gris, couleur au survol — esthétique "trusted by" */
    filter: grayscale(1);
    opacity: 0.55;
    transition: filter var(--bv-d-normal) var(--bv-ease-out), opacity var(--bv-d-normal) var(--bv-ease-out);
}
.bv-logos-grid__item:hover img {
    filter: grayscale(0);
    opacity: 1;
}
