/* Explain: Styling for various animations used throughout the site, including hero, orbs, scroll hints, and galleries. */
/* Auto SMW — animations créatives (page À propos) */

html.reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1), transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

html.reveal-ready [data-reveal="left"] {
    transform: translateX(-40px);
}

html.reveal-ready [data-reveal="right"] {
    transform: translateX(40px);
}

html.reveal-ready [data-reveal="zoom"] {
    transform: scale(0.94);
}

html.reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* Héro nocturne */
.apropos-hero-media {
    animation: heroDrift 26s ease-in-out infinite alternate;
}

@keyframes heroDrift {
    from { transform: scale(1.02) translate3d(0, 0, 0); }
    to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

.apropos-hero-scrim {
    background:
        linear-gradient(180deg, rgba(8, 21, 36, 0.82) 0%, rgba(8, 21, 36, 0.55) 40%, rgba(8, 21, 36, 0.94) 100%),
        linear-gradient(115deg, rgba(1, 105, 215, 0.38), rgba(30, 78, 124, 0.12) 55%, transparent);
}

.apropos-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.1rem;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.apropos-hero-kicker::before {
    display: inline-block;
    width: 1.6rem;
    height: 1px;
    background: #bfe0ff;
    content: "";
}

.apropos-shine {
    background-image: linear-gradient(100deg, #ffffff 0%, #ffffff 40%, #cfe4fb 50%, #ffffff 60%, #ffffff 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: shineSweep 7s linear infinite;
}

@keyframes shineSweep {
    from { background-position: 200% 0; }
    to { background-position: -100% 0; }
}

.spec-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    padding: 0.45rem 0.95rem;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.spec-hero-pill i {
    color: #bfe0ff;
}

/* Orbes flottantes */
.orb.apropos-orb {
    animation: floaty 9s ease-in-out infinite;
}

.orb.apropos-orb.orb-terracotta {
    animation-duration: 12s;
    animation-delay: -4s;
}

@keyframes floaty {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -26px, 0); }
}

/* Indicateur de défilement */
.scroll-hint {
    animation: hintBounce 2.2s ease-in-out infinite;
}

@keyframes hintBounce {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.65; }
    50% { transform: translate(-50%, 10px); opacity: 1; }
}

/* Encart flottant */
.story-badge {
    position: absolute;
    right: -0.75rem;
    bottom: -1.25rem;
    border-radius: 1.5rem;
    padding: 1.1rem 1.4rem;
    text-align: center;
    animation: floatySoft 7s ease-in-out infinite;
}

@keyframes floatySoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Cartes valeurs */
.value-card {
    position: relative;
    overflow: hidden;
    transition: transform 400ms ease, box-shadow 400ms ease, border-color 400ms ease;
}

.value-card::before {
    position: absolute;
    top: -40%;
    right: 20%;
    left: 20%;
    height: 60%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(1, 105, 215, 0.22), transparent 70%);
    opacity: 0;
    transition: opacity 400ms ease;
    content: "";
    pointer-events: none;
}

.value-card:hover {
    border-color: rgba(1, 105, 215, 0.45);
    box-shadow: 0 30px 80px rgba(19, 40, 63, 0.15);
    transform: translateY(-8px);
}

.value-card:hover::before {
    opacity: 1;
}

.value-card > * {
    position: relative;
    z-index: 1;
}

/* Bande défilante */
.marquee {
    overflow: hidden;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeSlide 34s linear infinite;
}

.marquee-group {
    display: flex;
}

.marquee-group span {
    position: relative;
    margin-right: 4rem;
    white-space: nowrap;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
}

.marquee-group span::after {
    position: absolute;
    right: -2.4rem;
    color: var(--accent-color);
    content: "•";
}

@keyframes marqueeSlide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Galerie */
.gallery-tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 1.75rem;
    box-shadow: var(--shadow-soft);
}

.gallery-tile img {
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-tile:hover img {
    transform: scale(1.07);
}

.gallery-tile::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(8, 21, 36, 0.72), rgba(8, 21, 36, 0) 58%);
    content: "";
    pointer-events: none;
}

.gallery-caption {
    position: absolute;
    right: 1.35rem;
    bottom: 1.25rem;
    left: 1.35rem;
    z-index: 2;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    text-shadow: 0 2px 16px rgba(8, 21, 36, 0.75);
    transition: transform 400ms ease;
}

.gallery-tile:hover .gallery-caption {
    transform: translateY(-4px);
}

.stat-num {
    font-variant-numeric: tabular-nums;
}

/* Accessibilité : mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    html.reveal-ready [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .apropos-hero-media,
    .orb.apropos-orb,
    .scroll-hint,
    .story-badge,
    .marquee-track,
    .apropos-shine {
        animation: none !important;
    }
}