/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    --zcs-color-shadow:     rgba(36, 54, 103, 0.14);
}

/* ==========================================================================
   Section Hero
   ========================================================================== */
.__zcs_hero {
    padding: 56px 24px;
    overflow: hidden;
}

.__zcs_hero__container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

/* ---- Contenu texte ---- */
.__zcs_hero__title {
    margin: 0 0 20px;
    font-size: 2.1rem;
    line-height: 1.2;
    font-weight: 800;
    color: var(--zcs-primary-color);
    letter-spacing: -0.01em;
}

.__zcs_hero__subtitle {
    margin: 0 0 32px;
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 600;
    color: var(--zcs-secondary-color);
    max-width: 46ch;
}

/* ---- Features ---- */
.__zcs_features {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 32px;
    padding-left: 0;
}

.__zcs_features__item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.__zcs_features__icon {
    display: flex;
    flex: 0 0 auto;
    justify-content: center;
    align-items: center;
    width: 55px;
    height: 55px;
    border-radius: 12px;
    background-color: var(--zcs-primary-color);
}
.__zcs_features__icon svg {
    width: 100%;
    height: 30px;
}

.__zcs_features__title {
    margin: 0;
    margin-bottom: 5px;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.1;
    color: #17171a;
}

.__zcs_features__desc {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ---- Checklist ---- */
.__zcs_checklist {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px 32px;
    margin-bottom: 36px;
}

.__zcs_checklist__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.__zcs_checklist__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 0.85rem;
}

/* ---- Bouton CTA ---- */
.__zcs_hero .__zcs_hero__container .__zcs_button {
    border-radius: var(--zcs-border-radius-sm);
}
.__zcs_hero .__zcs_hero__container .rt-button .__zcs_button:before {
    border-radius: var(--zcs-border-radius-sm);
    background-color: var(--zcs-secondary-color);
}
.__zcs_hero .__zcs_hero__container .rt-button .button-2::after {
    border-radius: var(--zcs-border-radius-sm);
    background-color: var(--zcs-primary-color);
}

/* ==========================================================================
   Colonne visuelle
   ========================================================================== */
.__zcs_hero__visual {
    position: relative;
}

/* ---- Animation d'apparition au scroll ---- */
[data-zcs-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-zcs-reveal].__zcs_is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-zcs-reveal-delay="0"] { transition-delay: 0ms; }
[data-zcs-reveal-delay="1"] { transition-delay: 90ms; }
[data-zcs-reveal-delay="2"] { transition-delay: 180ms; }
[data-zcs-reveal-delay="3"] { transition-delay: 260ms; }

.__zcs_dots {
    display: none; /* decoration masquee sur mobile */
}

.__zcs_hero__image-wrap {
    border-radius: var(--zcs-border-radius-md);
    overflow: hidden;
    box-shadow: 0 24px 48px var(--zcs-color-shadow);
    line-height: 0 !important;
}

.__zcs_hero__image {
    width: auto;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.__zcs_hero__image-wrap:hover .__zcs_hero__image {
    transform: scale(1.045);
}

.__zcs_video-card {
    display: block;
    margin-top: -40px;
    margin-left: 20px;
    width: calc(100% - 40px);
    max-width: 320px;
    border: 0;
    padding: 0;
    background: none;
    border-radius: var(--zcs-border-radius-md);
    overflow: hidden;
    box-shadow: 0 20px 40px var(--zcs-color-shadow);
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s ease,
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.__zcs_video-card:hover,
.__zcs_video-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 26px 46px var(--zcs-color-shadow);
}

.__zcs_video-card:focus-visible {
    outline: 3px solid var(--zcs-secondary-color);
    outline-offset: 3px;
}

.__zcs_video-card__image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.__zcs_video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25%;
    min-width: 56px;
    max-width: 84px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background-color: #d8393e;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.28);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.__zcs_video-card:hover .__zcs_video-card__play,
.__zcs_video-card:focus-visible .__zcs_video-card__play {
    transform: translate(-50%, -50%) scale(1.06);
}

.__zcs_video-card__play-triangle {
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid var(--zcs-white);
}

.__zcs_stat-card {
    margin-top: 20px;
    margin-left: auto;
    width: 200px;
    background-color: var(--zcs-white);
    border-radius: var(--zcs-border-radius-md);
    box-shadow: 0 20px 40px var(--zcs-color-shadow);
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s ease,
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.__zcs_stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 46px var(--zcs-color-shadow);
}

.__zcs_stat-card__icon {
    width: 70px;
    height: auto;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.__zcs_stat-card__icon-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.__zcs_stat-card__number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--zcs-primary-color);
    line-height: 1;
    margin-bottom: 8px;
}

.__zcs_stat-card__label {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}

/* ==========================================================================
   Tablette (>= 640px)
   ========================================================================== */
@media (min-width: 640px) {
    .__zcs_hero__title {
        font-size: 2.1rem;
    }

    .__zcs_checklist {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   Tablette (<= 959px)
   ========================================================================== */
@media (max-width: 959px) {
    .__zcs_hero__visual {
        display: flex;
        align-items: flex-start;
        gap: 20px;
    }
    .__zcs_hero__image-wrap {
        width: 100%;
        margin: 0;
        line-height: 0 !important;
    }
    .__zcs_video-card {
        max-width: inherit;
        width: 100%;
        margin: 0;
        line-height: 0 !important;
    }
    .__zcs_stat-card {
        position: absolute;
        bottom: 60px;
        left: 42%;
        z-index: 9;
    }
}

/* ==========================================================================
   Desktop (>= 960px)
   ========================================================================== */
@media (min-width: 960px) {
    .__zcs_hero {
        padding: 96px 40px;
    }

    .__zcs_hero__container {
        grid-template-columns: 1fr 0.92fr;
        gap: 64px;
    }

    .__zcs_hero__title {
        font-size: 2.1rem;
    }

    .__zcs_hero__visual {
        height: 640px;
    }

    /* Motif de points decoratif */
    .__zcs_dots {
        display: block;
        position: absolute;
        top: -40px;
        left: 40px;
        width: 150px;
        height: 280px;
        background-image: radial-gradient(#87bec5 2.5px, transparent 2.5px);
        background-size: 22px 22px;
        z-index: 0;
    }

    .__zcs_hero__image-wrap {
        position: absolute;
        top: 0;
        right: 0;
        /* width: 76%; */
        height: 100%;
        margin: 0;
    }

    .__zcs_video-card {
        position: absolute;
        left: 0;
        bottom: 8%;
        margin: 0;
        width: 52%;
        line-height: 0 !important;
        max-width: none;
    }

    .__zcs_stat-card {
        position: absolute;
        right: 6%;
        bottom: 15%;
        margin: 0;
        width: 160px;
    }
}

/* ==========================================================================
   Accessibilite : mouvement reduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .__zcs_button,
    .__zcs_video-card,
    .__zcs_stat-card,
    .__zcs_hero__image,
    [data-zcs-reveal] {
        transition: none !important;
    }

    [data-zcs-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================================
   Modale du lecteur video
   ========================================================================== */
.__zcs_video-modal[hidden] {
    display: none;
}

.__zcs_video-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.__zcs_video-modal__backdrop {
    position: absolute;
    inset: 0;
    background-color: var(--zcs-primary-dark);
}

.__zcs_video-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 860px;
    aspect-ratio: 16 / 9;
    background-color: #0c1226;
    border-radius: var(--zcs-border-radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.__zcs_video-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.14);
    color: var(--zcs-white);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.__zcs_video-modal__close:hover,
.__zcs_video-modal__close:focus-visible {
    background-color: rgba(255, 255, 255, 0.28);
}

.__zcs_video-modal__player {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.__zcs_video-modal__player video {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    display: block;
}