/* DDPC v1.3.0 — réglages ciblés accueil. */

/* Header: logo brut + texte, sans conteneur .home-brand-mark. */
.home-header-logo {
    display: block;
    width: 4.25rem;
    height: auto;
    aspect-ratio: 200 / 141;
    flex: 0 0 auto;
    object-fit: contain;
}

/* Galerie accueil: cartes fixes, sans flottement ni ombre derrière les boîtes. */
.home-gallery-track {
    box-shadow: none;
    filter: none;
}

.home-gallery-item,
.home-gallery-item:hover {
    animation: none;
    transform: none;
    box-shadow: none;
}

.home-gallery-item:nth-child(2n),
.home-gallery-item:nth-child(3n) {
    animation-delay: 0s;
}

/* Mobile: hauteur du hero verrouillée au chargement par home.js.
   Le fallback svh reste stable lorsque les barres du navigateur se replient. */
@media (max-width: 767.98px) {
    .home-header-logo {
        width: 3.55rem;
    }

    .home-hero {
        height: var(--home-hero-mobile-height, clamp(27rem, 66svh, 39rem));
        min-height: var(--home-hero-mobile-height, clamp(27rem, 66svh, 39rem));
        max-height: var(--home-hero-mobile-height, clamp(27rem, 66svh, 39rem));
        overflow: hidden;
    }

    .home-hero-content {
        height: 100%;
        min-height: 100% !important;
        max-height: 100%;
        box-sizing: border-box;
    }
}
