/**
 * Hero (front page + single projet).
 * Rendu par template-parts/hero/global-hero.php.
 */

.hero .ctnr {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 50px;
}

.hero h1 {
    max-width: 874px;
    width: 100%;
    color: #FFF;
    font-size: clamp(35px, calc(2.1875rem + ((1vw - 3.7px) * 3.7383)), 75px);
    line-height: 120%;
    text-align: center;
    margin: auto;
    padding: 35px 0;
}

@media (max-width: 767px) {
    .hero h1 {
        padding: 0;
        max-width: 80%;
    }
}

.hero .developer {
    border-radius: 56px;
    background: linear-gradient(180deg, #1C1C1C 0%, rgba(28, 28, 28, 0) 100%, rgba(28, 28, 28, 0) 100%);
    padding: clamp(40px, calc(2.5rem + ((1vw - 3.7px) * 0.9346)), 50px) clamp(20px, calc(1.25rem + ((1vw - 3.7px) * 7.8505)), 104px);
    width: 100%;
    max-width: 800px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 55px;
    margin-bottom: 100px;
    box-sizing: border-box;
}

.hero .developer .pic {
    text-align: center;
    margin-bottom: 35px;
}

.hero .developer .text {
    line-height: 180%;
    text-align: center;
}

.hero .smp-button {
    margin: 20px auto;
}

.hero .hero-references-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    width: min(1280px, 92vw);
    max-width: none;
    margin-block: 70px;
    margin-inline: calc((100% - min(1280px, 92vw)) / 2);
}

.hero .hero-references-label {
    margin: 0;
    color: #FFF;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.6;
}

.hero .hero-references {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px clamp(24px, 3vw, 48px);
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero .hero-references .reference {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 48px;
    line-height: 0;
}

.hero .hero-references .reference a {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.hero .hero-references .reference a:hover,
.hero .hero-references .reference a:focus-visible {
    opacity: 1;
}

.hero .hero-references .logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

@media (max-width: 767px) {
    .hero .hero-references {
        gap: 24px 32px;
    }

    .hero .hero-references .reference {
        width: 110px;
        height: 40px;
    }
}
