/* Patterns communs aux pages hero : Index, PageServeurs, PagePresentation, PageAgora */

section {
    width: 100%;
}

.fond-media {
    width: 100%;
    height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    box-shadow: var(--ombre-hero);
}

.img-haut-page {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.interieur {
    width: min(72rem, 100%);
    margin-inline: auto;
    padding-inline: 1rem;
    text-align: center;
}

.interieur h1 {
    font-size: clamp(2.6rem, 8vw, var(--h1-taille-texte));
    margin-bottom: 1rem;
    line-height: 1.05;
    font-family: var(--police-grand-titre);
    font-weight: var(--poids-police-grand-titre);
    font-style: var(--font-style-grand-titre);
    text-wrap: balance;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.interieur h2 {
    font-size: clamp(1.15rem, 3.4vw, var(--h2-taille-texte));
    margin-bottom: 2rem;
    line-height: 1.25;
    max-width: 42ch;
    margin-inline: auto;
    font-family: var(--police-sous-titre);
    font-weight: var(--poids-police-sous-titre);
    font-style: var(--font-style-sous-titre);
    text-wrap: balance;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

@media (max-width: 1024px) {
    .fond-media {
        min-height: 92svh;
    }

    .interieur {
        padding-inline: 0.8rem;
    }

    .interieur h2 {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 640px) {
    .fond-media {
        min-height: 82svh;
    }

    .interieur {
        padding-inline: 0.5rem;
    }

    .interieur h1 {
        margin-bottom: 0.8rem;
    }

    .interieur h2 {
        margin-bottom: 1.1rem;
        max-width: 30ch;
    }
}

