/* ======================================================
   INTERODIGITAL INTRO SCREEN
====================================================== */

:root {
    --intro-indigo: #6558d9;
    --intro-indigo-dark: #4f46b5;
    --intro-cyan: #36bfd1;
    --intro-text: #172033;
    --intro-white: #ffffff;
    --intro-border: rgba(255, 255, 255, 0.7);
    --intro-shadow: 0 12px 32px rgba(28, 30, 70, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    overflow: hidden;
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    background: #f7f7fc;
    color: var(--intro-text);
}

button,
a {
    font: inherit;
}


/* ======================================================
   MAIN CONTAINER
====================================================== */

.intro-container {
    position: relative;
    width: 100%;
    min-height: 100svh;
    overflow: hidden;
    background: #f7f7fc;
}


/* ======================================================
   SLIDER
====================================================== */

.slider {
    position: absolute;
    inset: 0;
    overflow: hidden;
    touch-action: pan-y;
}


/* ======================================================
   SLIDES
====================================================== */

.slide {
    position: absolute;
    inset: 0;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.55s ease,
        visibility 0.55s ease;
}

.slide.active {
    z-index: 2;
    opacity: 1;
    visibility: visible;
}


/* ======================================================
   IMAGES
====================================================== */

.slide img {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    opacity: 1;
    filter: none;
    transform: none;
}


/* ======================================================
   LIGHT OVERLAY
====================================================== */

.overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    pointer-events: none;

    /*
     * Overlay volontairement léger.
     * Aucun backdrop-filter afin de garder l’image nette.
     */

    background:
        linear-gradient(
            to bottom,
            rgba(10, 15, 35, 0.02) 0%,
            rgba(10, 15, 35, 0.02) 55%,
            rgba(10, 15, 35, 0.22) 78%,
            rgba(10, 15, 35, 0.48) 100%
        );

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}


/* ======================================================
   PAGINATION
====================================================== */

.pagination {
    position: absolute;
    top: max(22px, env(safe-area-inset-top));
    left: 50%;
    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    transform: translateX(-50%);
}

.dot {
    width: 9px;
    height: 9px;
    padding: 0;

    appearance: none;

    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.48);
    box-shadow: none;

    cursor: pointer;

    transition:
        width 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease;
}

.dot.active {
    width: 28px;
    background: var(--intro-white);
    border-color: var(--intro-white);
}


/* ======================================================
   ACTION BUTTONS
====================================================== */

.buttons {
    position: absolute;
    right: 18px;
    bottom:
        max(
            20px,
            calc(env(safe-area-inset-bottom) + 12px)
        );
    left: 18px;
    z-index: 30;

    display: flex;
    justify-content: center;
    gap: 12px;

    pointer-events: none;
}

.intro-container .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: min(210px, calc(50% - 6px));
    min-height: 50px;
    padding: 12px 24px;

    border: 1px solid transparent;
    border-radius: 14px;

    font-size: 16px;
    font-weight: 700;
    line-height: 1;

    text-decoration: none;

    cursor: pointer;
    pointer-events: auto;

    box-shadow: var(--intro-shadow);

    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;

    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}


/* ======================================================
   PRIMARY BUTTON
====================================================== */

.intro-container .btn-primary {
    color: var(--intro-white);

    background:
        linear-gradient(
            120deg,
            var(--intro-indigo-dark),
            var(--intro-indigo)
        );

    border-color: rgba(255, 255, 255, 0.16);
}


/* ======================================================
   SECONDARY BUTTON
====================================================== */

.intro-container .btn-secondary {
    color: var(--intro-text);

    background: rgba(255, 255, 255, 0.92);
    border-color: var(--intro-border);

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}


/* ======================================================
   BUTTON INTERACTIONS
====================================================== */

.intro-container .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 34px rgba(28, 30, 70, 0.23);
}

.intro-container .btn-primary:hover {
    background:
        linear-gradient(
            120deg,
            #4740a8,
            #5d51cc
        );
}

.intro-container .btn-secondary:hover {
    background: var(--intro-white);
}

.intro-container .btn:active {
    transform: translateY(0) scale(0.98);
}


/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 600px) {

    .buttons {
        right: 16px;
        left: 16px;

        flex-direction: column;
        align-items: center;

        gap: 10px;
    }

    .intro-container .btn {
        width: min(100%, 320px);
        min-height: 49px;
    }

}


/* ======================================================
   WIDE SCREENS
====================================================== */

@media (min-width: 1000px) {

    .slide img {
        object-position: center 38%;
    }

    .buttons {
        bottom: 28px;
    }

}


/* ======================================================
   REDUCED MOTION
====================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }

}