/* ============================================================
   Hero /a-propos/ — shader dither + titre serif italic / bold.
   Port vanilla du composant HeroGeometric (R3F).
   ============================================================ */

.propos-hero-shader {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--osm-night-1, #0A0E27);
    isolation: isolate;
    padding: 96px 20px;
    /* Container query pour dimensionner le titre selon la largeur (comme cqi) */
    container-type: inline-size;
}

/* Canvas WebGL (injecté par JS) — plein écran en fond */
.propos-hero-shader__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: block;
    /* Rendu pixel-art : les bords de dither doivent être nets, pas lissés */
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.propos-hero-shader__content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.propos-hero-shader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* ── Titre : 2 lignes, chacune animée en slide-up + fade-in ── */
.propos-hero-shader__title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}
.propos-hero-shader__title {
    margin: 0;
    /* Format standard du site : Poppins bold, blanc, aligné .propos-hero__title */
    font-family: var(--osm-ff-heading);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-size: clamp(3rem, 8vw, 5.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    /* Gradient blanc → gris clair (comme .propos-hero__title actuel) */
    background: linear-gradient(to bottom, #f8fafc, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 32px rgba(56, 189, 248, 0.30));
}
@media (min-width: 768px) {
    .propos-hero-shader__title-wrap { gap: 12px; }
    .propos-hero-shader__title { gap: 6px; }
}

/* Les 2 lignes gardent l'entrée slide-up mais héritent maintenant du même
   format (Poppins bold blanc) — plus de serif italic ni de gradient cyan. */
.propos-hero-shader__title-line {
    display: inline-block;
    overflow: hidden;
    opacity: 0;
    transform: translateY(100%);
    animation: proposHeroShaderSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.propos-hero-shader__title-line--serif { animation-delay: 0.2s; }
.propos-hero-shader__title-line--bold  { animation-delay: 0.35s; }

@keyframes proposHeroShaderSlideUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Description ── */
.propos-hero-shader__desc {
    max-width: 520px;
    margin: 0;
    font-size: clamp(1rem, 1.4vw, 1.35rem);
    line-height: 1.55;
    color: rgba(226, 232, 240, 0.75);
    font-weight: 400;
    opacity: 0;
    transform: translateY(20px);
    animation: proposHeroShaderFadeUp 0.8s ease-out 0.6s forwards;
}
.propos-hero-shader__desc strong {
    color: var(--osm-white);
    font-weight: 600;
}
@keyframes proposHeroShaderFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Actions (2 CTA) — apparition après la description ── */
.propos-hero-shader__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(20px);
    animation: proposHeroShaderFadeUp 0.8s ease-out 0.85s forwards;
}
@media (min-width: 640px) {
    .propos-hero-shader__actions { flex-direction: row; }
}

/* Fallback : reduced-motion → tout apparaît d'un coup sans anim */
@media (prefers-reduced-motion: reduce) {
    .propos-hero-shader__title-line,
    .propos-hero-shader__desc,
    .propos-hero-shader__actions {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}
