/* =========================================================
   HERO SLIDER
   ========================================================= */

.fiadanana-hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
    overflow: hidden;
    isolation: isolate;
}

.fiadanana-hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.fiadanana-hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    transition:
        opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s linear 1.6s;
}

.fiadanana-hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 3;
    transition:
        opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s;
}

.fiadanana-hero-slide.is-leaving {
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    z-index: 2;
    transition:
        opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s;
}

.fiadanana-hero-slide.active.is-leaving {
    opacity: 0;
}

.fiadanana-hero-slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.fiadanana-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.42);
}

.fiadanana-hero-content {
    position: relative;
    z-index: 3;
    width: min(1200px, 90%);
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.fiadanana-hero-card {
    width: min(840px, 100%);
    box-sizing: border-box;
    padding: clamp(24px, 3vw, 38px) clamp(20px, 3vw, 40px);
    background: rgba(0, 0, 0, 0.58);
    border-radius: 18px;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    opacity: 0;
    transform: translateY(var(--hero-card-offset-y));
}

.fiadanana-hero-slide.active .fiadanana-hero-card {
    animation: fiadanana-card-enter 1.4s cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards;
}

@keyframes fiadanana-card-enter {
    from { opacity: 0; transform: translateY(calc(var(--hero-card-offset-y) + 58px)); }
    to   { opacity: 1; transform: translateY(var(--hero-card-offset-y)); }
}

/* =========================================================
   TITRE + SURTITRE — STYLE STRICTEMENT IDENTIQUE
   ========================================================= */

.fiadanana-hero-title,
.fiadanana-hero-title .fiadanana-hero-surtitre,
.fiadanana-hero-title .fiadanana-hero-title-first {
    font-family: var(--font-title) !important;
    font-size: var(--fs-h1) !important;
    line-height: var(--lh-h1) !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
    text-transform: none !important;
}

.fiadanana-hero-title {
    max-width: 100%;
    margin: 0 0 24px;
    color: #ffffff;
    opacity: 0;
    transform: translateY(25px);
}

.fiadanana-hero-slide.active .fiadanana-hero-title {
    animation: fiadanana-content-enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.4s forwards;
}

.fiadanana-hero-surtitre {
    display: inline;
    color: #ffffff;
}

.fiadanana-hero-title-first {
    display: inline;
    color: var(--fiadanana-vert-clair);
}

/* =========================================================
   DESCRIPTION
   ========================================================= */

.fiadanana-hero-description {
    max-width: 100%;
    margin: 0 0 32px;
    color: #ffffff;
    opacity: 0;
    transform: translateY(25px);
}

.fiadanana-hero-slide.active .fiadanana-hero-description {
    animation: fiadanana-content-enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.6s forwards;
}

/* =========================================================
   BOUTON DU HERO
   ========================================================= */

.fiadanana-btn.fiadanana-hero-button {
    font-size: var(--fs-body) !important;
    font-weight: var(--fw-regular) !important;
    text-transform: none !important;
}

.fiadanana-hero-button {
    opacity: 0;
    transform: translateY(25px);
    margin-top: 8px;
    align-self: flex-start;
}

.fiadanana-hero-slide.active .fiadanana-hero-button {
    animation: fiadanana-content-enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.8s forwards;
}

@keyframes fiadanana-content-enter {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.fiadanana-hero-prev,
.fiadanana-hero-next {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 60px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.fiadanana-hero-prev { left: 25px; }
.fiadanana-hero-next { right: 25px; }

.fiadanana-hero-prev:focus,
.fiadanana-hero-next:focus,
.fiadanana-hero-prev:active,
.fiadanana-hero-next:active {
    background-color: rgba(0, 0, 0, 0.55) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    outline: none;
}

.fiadanana-hero-prev:focus-visible,
.fiadanana-hero-next:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

.fiadanana-hero-prev:hover,
.fiadanana-hero-next:hover {
    background: rgba(0, 0, 0, 0.75);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1280px) {
    .fiadanana-hero-card { width: min(740px, 100%); padding: 30px 32px; }
}

@media (max-width: 1024px) {
    .fiadanana-hero-slider { min-height: 560px; }
    .fiadanana-hero-card { width: min(680px, 100%); padding: 26px 28px; border-radius: 14px; }
    .fiadanana-hero-description { margin-bottom: 24px; }
    .fiadanana-hero-prev,
    .fiadanana-hero-next { width: 40px; height: 56px; font-size: 18px; }
    .fiadanana-hero-prev { left: 14px; }
    .fiadanana-hero-next { right: 14px; }
}

@media (max-width: 768px) {
    .fiadanana-hero-slider { min-height: 520px; }
    .fiadanana-hero-content {
        width: 100%;
        padding: 0 16px;
        align-items: flex-end;
    }
    .fiadanana-hero-card {
        width: 100%;
        padding: 22px 20px;
        border-radius: 12px;
        background: rgba(0, 0, 0, 0.62);
    }
    .fiadanana-hero-description { margin-bottom: 20px; }
    .fiadanana-hero-prev,
    .fiadanana-hero-next { display: none; }
}

@media (max-width: 480px) {
    .fiadanana-hero-slider { min-height: 480px; }
    .fiadanana-hero-content { padding: 0 12px; }
    .fiadanana-hero-card { padding: 18px 16px; border-radius: 10px; }
    .fiadanana-hero-description { margin-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .fiadanana-hero-slide,
    .fiadanana-hero-card,
    .fiadanana-hero-title,
    .fiadanana-hero-description,
    .fiadanana-hero-button {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}