@font-face {
    font-family: "OSDF Cormorant Garamond";
    src: url("../fonts/cormorant-garamond-hero.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

/* Accueil — composition du bandeau uniquement. */
.home-page .home-hero {
    --hero-ivory: #fbf5e9;
    --hero-gold: #f2ce75;
    --hero-display: "OSDF Cormorant Garamond", Georgia, "Times New Roman", serif;
    position: relative;
    isolation: isolate;
    margin-block-start: 48px;
    color: var(--hero-ivory);
    background-color: #081019 !important;
}

.home-hero-scenery,
.home-hero::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.home-hero-scenery {
    z-index: -2;
    height: min(100%, clamp(515px, 146vw, 960px));
    mask-image: linear-gradient(#000 85%, transparent 100%);
}

.home-hero-scenery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 41%;
}

.home-hero::before {
    content: "";
    z-index: -1;
    background:
        radial-gradient(ellipse 64% 38% at 57% 57%, #050a13bc, transparent 98%),
        linear-gradient(180deg, #08101957 0%, transparent 29%, transparent 60%, #080e18ed 100%);
}

.home-hero-symbols {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.home-hero-inner {
    position: relative;
    width: min(100% - 24px, 1080px);
    margin-inline: auto;
    padding-block: clamp(19px, 5vw, 54px) clamp(24px, 5vw, 52px);
    text-align: center;
}

.home-hero-logo {
    display: block;
    width: min(66vw, 510px);
    height: auto;
    margin-inline: auto;
    filter: drop-shadow(0 4px 12px #04080ec7);
}

.home-hero-message {
    width: min(100%, 775px);
    margin: clamp(56px, 18vw, 126px) auto 0;
    padding-inline-start: clamp(7px, 4vw, 38px);
}

.home-hero-message h1 {
    margin: 0;
    font-family: var(--hero-display);
    font-size: clamp(18px, 5.85vw, 44px);
    font-weight: 550;
    line-height: 1.08;
    letter-spacing: .012em;
    text-transform: uppercase;
    text-shadow: 0 2px 3px #030710, 0 0 10px #030710;
    text-wrap: balance;
}

/* Masquer la devise à l’écran tout en conservant son espace et le H1. */
.home-page .home-hero-message #home-hero-title {
    opacity: 0;
}

.home-hero-message h1 span {
    display: block;
    transform: skewX(-7deg);
}

.home-hero-message h1 span + span {
    margin-top: .1em;
    color: var(--hero-gold);
}

.home-hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: min(54%, 340px);
    margin: clamp(10px, 2.8vw, 21px) auto clamp(9px, 2.1vw, 16px);
    color: var(--hero-gold);
}

.home-hero-divider::before,
.home-hero-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, currentColor);
}

.home-hero-divider::after {
    background: linear-gradient(90deg, currentColor, transparent);
}

.home-hero-divider svg {
    width: clamp(18px, 5vw, 29px);
    height: clamp(18px, 5vw, 29px);
}

.home-hero-message > p {
    width: min(96%, 620px);
    margin: 0 auto;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(15px, 3.9vw, 23px);
    line-height: 1.37;
    text-wrap: balance;
    text-shadow: 0 1px 5px #030710, 0 0 12px #030710;
}

.home-hero-links {
    display: grid;
    gap: clamp(8px, 2vw, 12px);
    width: min(100%, 440px);
    margin: clamp(15px, 4vw, 29px) auto 0;
}

.home-hero-links .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 2vw, 12px);
    min-height: clamp(44px, 8vw, 54px);
    padding: 8px 10px;
    font-size: clamp(10px, 2.8vw, 15px);
    line-height: 1.2;
    letter-spacing: .08em;
    text-align: center;
    overflow-wrap: anywhere;
}

.home-hero-links .btn svg {
    width: 1.55em;
    height: 1.55em;
    flex: 0 0 auto;
}

.home-hero-links .btn-gold {
    color: #090b0e;
    background: radial-gradient(ellipse at 52% 0%, #ffdd85 0%, transparent 64%),
                linear-gradient(110deg, #efc859, #eabc45 49%, #c88b20);
    box-shadow: inset 0 1px 1px #fff0b8bf, 0 5px 18px #05091176;
    font-weight: 700;
    letter-spacing: .1em;
}

.home-hero-links .btn-outline {
    color: var(--hero-ivory);
    border: 1.5px solid #e8bc59;
    background: #070d16ed;
    font-family: var(--hero-display);
    font-size: clamp(12px, 3.25vw, 21px);
    font-weight: 660;
    letter-spacing: .09em;
}

.home-hero-links .btn-outline svg {
    color: var(--hero-gold);
}

.home-hero-links .btn:focus-visible {
    outline: 2px solid var(--hero-ivory);
    outline-offset: 3px;
}

.home-hero-values {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, .95fr) minmax(0, 1.2fr) minmax(0, 1fr);
    width: min(100%, 850px);
    list-style: none;
    padding: 0;
    margin: clamp(25px, 7.4vw, 60px) auto 0;
}

.home-hero-values li {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 6px;
    padding: 2px 2px 0;
    font-family: var(--hero-display);
    font-size: clamp(10px, 2.85vw, 20px);
    font-weight: 640;
    letter-spacing: .055em;
    line-height: 1.13;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 5px #030710;
}

.home-hero-values li + li {
    border-inline-start: 1px solid #f2ce7562;
}

.home-hero-values svg {
    width: clamp(23px, 6.5vw, 49px);
    height: clamp(23px, 6.5vw, 49px);
    color: var(--hero-gold);
    filter: drop-shadow(0 2px 4px #04080e);
}

@media (max-width: 760px) {
    .home-page .home-hero {
        --home-header-height: 48px;
        --home-hero-action-space: clamp(0px, 20svh - 106px, 22px);
        margin-block-start: var(--home-header-height);
    }

    .home-hero-inner {
        display: flex;
        flex-direction: column;
        min-block-size: calc(100vh - var(--home-header-height));
        min-block-size: calc(100svh - var(--home-header-height));
    }

    .home-hero-scenery {
        height: 100%;
        mask-image: none;
    }

    .home-hero-message {
        margin-block: auto;
        padding-block-start: clamp(56px, 18vw, 126px);
        /* Les marges automatiques répartissent le décalage avec l’espace libre. */
        padding-block-start: calc(clamp(56px, 18vw, 126px) + clamp(0px, 40svh - 264px, 76px) + 2 * var(--home-hero-action-space));
    }

    .home-hero-links {
        width: min(84%, 440px);
        margin-block-start: calc(clamp(15px, 4vw, 29px) + var(--home-hero-action-space));
    }

    /* Réduire et relever le logo sans déplacer le bloc de contenu. */
    .home-hero-logo {
        transform: translateY(-5px) scale(.799);
    }

    .home-hero-message h1 {
        scale: .87;
        translate: 10px 0;
    }

    .home-hero-message > p {
        scale: .96;
    }
}

@media (min-width: 761px) {
    .home-page .home-hero {
        margin-block-start: 82px;
    }

    .home-hero-links {
        width: min(100%, 480px);
    }

    .home-hero-logo {
        width: min(60vw, 470px);
    }

    .home-hero-message {
        margin-top: 96px;
    }

    .home-hero-values {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 901px) {
    .home-hero-inner {
        padding-block: clamp(24px, 4svh, 42px) 28px;
    }

    .home-hero-scenery {
        height: 100%;
        mask-image: none;
    }

    .home-hero-scenery img {
        object-position: center 44%;
    }

    .home-hero-logo {
        width: clamp(385px, min(35vw, 56svh), 525px);
    }

    .home-hero-message {
        width: min(100%, 1050px);
        padding-inline-start: 0;
        margin-top: clamp(32px, 5.7svh, 68px);
    }

    .home-hero-message h1 {
        font-size: clamp(36.9px, 4.05vw, 63px);
    }

    .home-hero-divider {
        width: min(52%, 470px);
        margin-block: 12px 12px;
        gap: 15px;
    }

    .home-hero-divider::before,
    .home-hero-divider::after {
        height: 2px;
    }

    .home-hero-message > p {
        font-size: clamp(20.24px, 1.748vw, 26.68px);
        line-height: 1.36;
    }

    .home-hero-links {
        width: min(100%, 450px);
        gap: 12px;
        margin-top: 22px;
    }

    .home-hero-links .btn {
        min-height: 62px;
        font-size: 18px;
    }

    .home-hero-links .btn-outline {
        min-height: 58px;
        font-size: 21px;
        border-width: 2px;
    }

    .home-hero-values {
        margin-top: clamp(20px, 3.4svh, 42px);
    }

    .home-hero-values li {
        gap: 10px;
    }
}

@media (min-width: 901px) and (max-width: 1080px) {
    .home-hero-scenery img {
        object-position: center 30%;
    }
}

@media (min-width: 1081px) {
    .home-page .home-hero {
        /* Protéger le cadrage du paysage pendant que le contenu remonte. */
        min-block-size: min(100vw / 1.4, 1021px);
    }

    .home-hero-message {
        margin-top: clamp(60px, 5.7vw, 82px);
    }

    .home-hero-message h1 {
        font-size: clamp(29.52px, 3.24vw, 50.4px);
    }

    .home-hero-message > p {
        width: min(96%, 680px);
        font-size: clamp(16.192px, 1.3984vw, 21.344px);
    }

    .home-hero-divider {
        width: min(39%, 352.5px);
        gap: 11.25px;
    }

    .home-hero-divider::before,
    .home-hero-divider::after {
        height: 1.5px;
    }

    .home-hero-divider svg {
        width: 21.75px;
        height: 21.75px;
    }

    .home-hero-links {
        width: min(100%, 337.5px);
    }

    .home-hero-links .btn {
        min-height: 49.6px;
    }

    .home-hero-links .btn-outline {
        min-height: 46.4px;
        gap: 8px;
        padding: 4px 8px;
        font-size: 18px;
        letter-spacing: .06em;
    }

    .home-hero-values {
        width: min(100%, 760px);
    }

    .home-hero-values li {
        font-size: 17px;
    }

    .home-hero-values svg {
        width: 39.2px;
        height: 39.2px;
    }
}

/* Conserver toute la largeur de la scène panoramique, puis fondre son bas. */
@media (min-width: 761px) {
    .home-hero-scenery {
        height: min(100%, 100vw * 941 / 1671);
        mask-image: linear-gradient(#000 84%, transparent);
    }

    .home-hero-scenery img {
        object-fit: contain;
        object-position: center top;
    }
}

@media (max-width: 760px) {
    .home-hero-scenery {
        overflow: hidden;
    }

    .home-hero-scenery img {
        object-position: center top;
        transform: translateY(clamp(-80px, calc(-100vw * 7 / 39), -55px));
        mask-image: linear-gradient(#000 84%, transparent);
    }

    .home-hero::before {
        background:
            radial-gradient(ellipse 66% 29% at 52% 56%, #050a13bd, transparent),
            linear-gradient(180deg, #0810193d, transparent 32%, transparent 58%, #080e18d6);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-links .btn {
        transition: none;
    }
}

.home-hero-wordmark {
    display: grid;
    aspect-ratio: 3 / 1;
    place-items: center;
    margin-block: 0;
    color: #f4c967;
    font: 600 clamp(42px, 11vw, 100px)/1 var(--hero-display);
    letter-spacing: .12em;
}
