/*
 * Shadow-Tech2030
 * Modern Enhancement Layer
 *
 * Cette feuille ne remplace PAS le design original.
 * Elle ajoute uniquement des améliorations progressives.
 */

:root {
    --st-green: var(--green, #61ff2f);
    --st-bg: #050806;

    --st-focus:
        0 0 0 2px #050806,
        0 0 0 4px var(--st-green);

    --st-transition-fast: 160ms;
    --st-transition: 260ms;
}


/* =========================================================
   ACCESSIBILITÉ
========================================================= */

:focus {
    outline: none;
}

:focus-visible {
    outline: none;
    box-shadow: var(--st-focus);
}

.st-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;

    z-index: 999999;

    padding: 12px 18px;

    background: var(--st-green);
    color: #020402;

    font-weight: 900;
    text-decoration: none;

    transform: translateY(-200%);

    transition:
        transform var(--st-transition-fast) ease;
}

.st-skip-link:focus {
    transform: translateY(0);
}


/* =========================================================
   PERFORMANCE DE RENDU
========================================================= */

@supports (content-visibility: auto) {

    main > section:not(.hero):not(:first-child) {
        content-visibility: auto;
        contain-intrinsic-size: auto 800px;
    }

}


/* =========================================================
   VIEW TRANSITIONS
========================================================= */

@supports (view-transition-name: none) {

    @view-transition {
        navigation: auto;
    }

    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation-duration: 220ms;
        animation-timing-function: ease-out;
    }

}


/* =========================================================
   BARRE DE PROGRESSION
========================================================= */

.st-scroll-progress {
    position: fixed;

    top: 0;
    left: 0;

    width: 0%;
    height: 2px;

    z-index: 999999;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--st-green)
        );

    box-shadow:
        0 0 12px rgba(97, 255, 47, .65);
}


/* =========================================================
   APPARITION PROGRESSIVE
========================================================= */

.st-reveal {
    opacity: 0;

    transform: translateY(22px);

    transition:
        opacity 650ms cubic-bezier(.2,.7,.2,1),
        transform 650ms cubic-bezier(.2,.7,.2,1);

    will-change: transform, opacity;
}

.st-reveal.st-visible {
    opacity: 1;
    transform: translateY(0);
}

.st-reveal:nth-child(2) {
    transition-delay: 45ms;
}

.st-reveal:nth-child(3) {
    transition-delay: 90ms;
}

.st-reveal:nth-child(4) {
    transition-delay: 135ms;
}


/* =========================================================
   CARTES
========================================================= */

.service-card,
.methodology-card,
.other-service-item {

    transition:
        transform var(--st-transition) ease,
        border-color var(--st-transition) ease,
        box-shadow var(--st-transition) ease;
}


@media (hover: hover) {

    .service-card:hover,
    .methodology-card:hover,
    .other-service-item:hover {

        transform: translateY(-4px);

        border-color:
            color-mix(
                in srgb,
                var(--st-green) 45%,
                transparent
            );

        box-shadow:
            0 22px 60px rgba(0,0,0,.38),
            0 0 30px rgba(97,255,47,.035);
    }

}


/* =========================================================
   LIENS
========================================================= */

main a {
    text-decoration-thickness: 1px;
    text-underline-offset: .16em;
}


/* =========================================================
   RESPECT DES PRÉFÉRENCES UTILISATEUR
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        scroll-behavior: auto !important;

        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: .001ms !important;
    }

    .st-reveal {
        opacity: 1;
        transform: none;
    }

    .st-scroll-progress {
        display: none;
    }

}


/* =========================================================
   APPAREILS TACTILES
========================================================= */

@media (pointer: coarse) {

    .service-card,
    .methodology-card,
    .other-service-item {
        transform: none !important;
    }

}