/* Common UI components (kept small on purpose). */

/* Simple page hero (used on contact/postuler/about/certificats, etc.) */
.hero-simple {
    position: relative;
    padding: 3.5rem 0;
    overflow: hidden;
    background: var(--light-bg);
}

.hero-simple .display-4 {
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
    line-height: 1.12;
    margin-bottom: 0.8rem !important;
}

.hero-simple .display-6 {
    font-size: clamp(1.45rem, 2.5vw, 2.15rem);
    line-height: 1.15;
    margin-bottom: 0.8rem !important;
}

.hero-simple .lead {
    font-size: 1rem;
    margin-bottom: 0.85rem !important;
}

@media (max-width: 768px) {
    .hero-simple {
        padding: 2.45rem 0;
    }

    .hero-simple .display-4 {
        font-size: clamp(1.55rem, 6vw, 2rem);
    }

    .hero-simple .display-6 {
        font-size: clamp(1.3rem, 5vw, 1.7rem);
    }
}

/* Hero with background image */
.hero-simple--image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
}

.hero-simple--image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 59, 99, 0.78) 0%,
        rgba(15, 59, 99, 0.72) 50%,
        rgba(15, 59, 99, 0.78) 100%
    );
    pointer-events: none;
}

.hero-simple--image > .container {
    position: relative;
    z-index: 1;
}

/* Optional helpers for centered heroes */
.hero-lead-narrow {
    max-width: 46rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle-narrow {
    max-width: 44rem;
    margin-left: auto;
    margin-right: auto;
}
