/* ============================================
   Muso Fullscreen Experience V2 — Creative Canvas Animations
   Style inspiré des assets, pas copie des screenshots
   ============================================ */

:root {
    /* Core palette (provided) */
    --mauve-main: #9F4DB6;       /* Mauve principal */
    --mauve-light: #CEA5DA;      /* Mauve clair */
    --blue-night-a: #231A3D;     /* Bleu nuit - radial start */
    --blue-night-b: #0D0F19;     /* Bleu nuit - radial end */
    --blue-deep: #2A58BA;        /* Bleu profond (glow) */

    /* Accent */
    --signal-green: #39C76E;
    --signal-green-2: #45E082;

    /* Neutrals / UI */
    --bg-dark: #131423;          /* Fond sombre global */
    --panel: #1E1F34;            /* Cartes / panneaux */
    --border: #2C2C2E;           /* Bordures / séparateurs */
    --text-primary: #FFFFFF;
    --text-secondary: #A5989B;
    --text-tertiary: #6B6770;

    /* Convenience / backward compatibility */
    --blue-primary: var(--blue-deep);
    --purple-primary: var(--mauve-main);
    /* slightly stronger glows so gradients/readability feel less washed-out */
    --blue-glow: rgba(42,88,186,0.28);
    --purple-glow: rgba(159,77,182,0.40);
    --mauve-accent: var(--mauve-light);

    /* UI whites */
    --white: #ffffff;
    --white-soft: rgba(255,255,255,0.95);
    --white-muted: rgba(255,255,255,0.65);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

/* === Section Container === */
.fs-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.fs-section.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

/* === Canvas Background === */
.fs-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.fs-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* === Content Overlay === */
.fs-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
}

.fs-content-inner {
    max-width: 800px;
    text-align: center;
    animation: contentFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Typography === */
.fs-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--white-soft);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fs-badge svg {
    width: 16px;
    height: 16px;
    color: var(--blue-primary);
}

.fs-title {
    font-size: clamp(40px, 6.5vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--purple-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fs-description {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.6;
    color: var(--white-muted);
    margin-bottom: 32px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* === Buttons === */
.fs-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.fs-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-family: inherit;
    text-decoration: none;
}

.fs-btn-primary {
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--mauve-accent) 100%);
    color: var(--white);
    box-shadow: 0 10px 40px var(--blue-glow);
}

.fs-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(91, 141, 239, 0.4);
}

.fs-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fs-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.fs-btn svg {
    width: 20px;
    height: 20px;
}

/* === Navigation === */
.fs-nav {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fs-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.fs-nav-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fs-nav-dot.active {
    background: linear-gradient(135deg, var(--blue-primary), var(--purple-primary));
    box-shadow: 0 0 20px var(--blue-glow);
}

.fs-nav-dot.active::before {
    border-color: rgba(255, 255, 255, 0.5);
}

.fs-nav-dot:hover {
    transform: scale(1.2);
}

/* === Language Switcher & Menu === */
.fs-lang-switcher {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 100;
    display: flex;
    gap: 12px;
    align-items: center;
}

.fs-lang-buttons {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    padding: 6px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fs-lang-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    background: transparent;
    color: var(--white-muted);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.fs-lang-btn.active {
    background: var(--blue-primary);
    color: var(--white);
}

.fs-lang-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.fs-menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--white);
}

.fs-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.fs-menu-toggle svg {
    width: 20px;
    height: 20px;
}

/* Menu Panel */
.fs-menu-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--panel);
    backdrop-filter: blur(40px);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    z-index: 99;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 100px 40px 40px;
    overflow-y: auto;
}

.fs-menu-panel.open {
    right: 0;
}

.fs-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 98;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fs-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.fs-menu-section {
    margin-bottom: 40px;
}

.fs-menu-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.fs-menu-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fs-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.fs-menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--blue-primary);
    transform: translateX(4px);
}

.fs-menu-link svg {
    width: 20px;
    height: 20px;
    color: var(--blue-primary);
}

.fs-menu-footer {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fs-menu-footer-text {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.fs-menu-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.fs-menu-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fs-menu-social-link:hover {
    background: var(--blue-primary);
    transform: translateY(-2px);
}

/* Ensure social images are uniformly sized and centered inside the circular buttons */
.fs-menu-social-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .fs-menu-panel {
        width: 100%;
        right: -100%;
        padding: 80px 24px 24px;
    }
}

/* Small devices: avoid overlap between brand (left) and language/menu (right).
   Hide the brand name, reduce logo and button sizes, and align vertical offsets. */
@media (max-width: 480px) {
    .fs-brand {
        top: 12px;
        left: 12px;
        gap: 8px;
        z-index: 110; /* above other elements */
    }

    .fs-brand-logo {
        width: 28px;
        height: 28px;
        padding: 6px;
        border-radius: 8px;
    }

    /* Hide full brand name to save horizontal space */
    .fs-brand-name {
        display: none;
    }

    .fs-lang-switcher {
        top: 12px;
        right: 12px;
        gap: 6px;
        z-index: 110;
    }

    .fs-lang-buttons {
        padding: 4px;
    }

    .fs-lang-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .fs-menu-toggle {
        width: 36px;
        height: 36px;
    }

    /* Move nav dots slightly inward to avoid collision with menu on very small widths */
    .fs-nav {
        right: 12px;
    }

    /* Extra padding for very small screens to ensure content is fully visible */
    .fs-content {
        padding: 70px 16px 30px;
    }

    .fs-title {
        font-size: 28px;
    }

    .fs-description {
        font-size: 14px;
    }

    /* If language/menu still overlap due to extremely narrow widths, collapse language buttons into single icon
       (we keep CSS-only approach: hide language labels if present) */
    .fs-lang-btn span, .fs-lang-btn::after {
        display: none;
    }
}

/* === Brand === */
.fs-brand {
    position: fixed;
    top: 40px;
    left: 40px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fs-brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fs-brand-name {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

/* === Scroll Hint === */
.fs-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--white-muted);
    font-size: 14px;
    font-weight: 500;
    animation: scrollHintBounce 2s ease-in-out infinite;
}

.fs-scroll-hint svg {
    width: 24px;
    height: 24px;
}

@keyframes scrollHintBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* === Transitions === */
.fs-section.exiting {
    z-index: 3;
}

/* Transition 1: Fade simple */
.fs-section.transition-fade {
    animation: fadeOut 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

/* Transition 2: Slide vers le haut */
.fs-section.transition-slide-up {
    animation: slideUp 1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* Transition 3: Slide vers le bas */
.fs-section.transition-slide-down {
    animation: slideDown 1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes slideDown {
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Transition 4: Zoom out */
.fs-section.transition-zoom-out {
    animation: zoomOut 1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes zoomOut {
    to {
        transform: scale(0.7);
        opacity: 0;
    }
}

/* Transition 5: Rotation + fade */
.fs-section.transition-rotate-fade {
    animation: rotateFade 1.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes rotateFade {
    to {
        transform: rotate(15deg) scale(0.8);
        opacity: 0;
    }
}

/* Transition 6: Slide diagonal */
.fs-section.transition-slide-diagonal {
    animation: slideDiagonal 1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes slideDiagonal {
    to {
        transform: translate(-100%, -50%);
        opacity: 0;
    }
}

/* Transition 7: Zoom in (inverse) */
.fs-section.transition-zoom-in {
    animation: zoomIn 1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes zoomIn {
    to {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Transition 8: Slide latéral avec rotation */
.fs-section.transition-slide-rotate {
    animation: slideRotate 1.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes slideRotate {
    to {
        transform: translateX(100%) rotate(-20deg);
        opacity: 0;
    }
}

/* Transition 9: Flip 3D */
.fs-section.transition-flip {
    animation: flip3D 1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
    perspective: 1000px;
}

@keyframes flip3D {
    to {
        transform: rotateY(90deg);
        opacity: 0;
    }
}

/* Transition 10: Scale + slide combiné */
.fs-section.transition-scale-slide {
    animation: scaleSlide 1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes scaleSlide {
    to {
        transform: scale(0.6) translateY(50%);
        opacity: 0;
    }
}

/* === Responsive === */
@media (max-width: 768px) {
    .fs-nav {
        right: 20px;
        gap: 12px;
    }
    
    .fs-nav-dot {
        width: 10px;
        height: 10px;
    }
    
    .fs-lang-switcher {
        top: 20px;
        right: 20px;
    }
    
    .fs-brand {
        top: 20px;
        left: 20px;
    }
    
    .fs-brand-logo {
        width: 32px;
        height: 32px;
    }
    
    .fs-brand-name {
        font-size: 18px;
    }
    
    .fs-content {
        padding: 80px 20px 40px;
        align-items: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .fs-content-inner {
        min-height: auto;
        margin-top: 0;
    }
    
    .fs-description {
        font-size: 16px;
    }
    
    .fs-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .fs-btn {
        width: 100%;
        justify-content: center;
    }
    
    .fs-scroll-hint {
        bottom: 20px;
    }
}

/* === Download Badges (Hero Section) === */
.fs-download-badges {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.fs-download-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fs-download-badge:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.fs-download-badge svg,
.fs-download-badge img {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
    display: block;
    flex: 0 0 32px; /* prevent img from growing and affecting badge height */
}

.fs-download-badge-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.fs-download-badge-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--white-muted);
    font-weight: 500;
}

.fs-download-badge-store {
    font-size: 16px;
    font-weight: 700;
}

@media (max-width: 480px) {
    .fs-download-badge svg,
    .fs-download-badge img {
        width: 24px;
        height: 24px;
        max-width: 24px;
        max-height: 24px;
        flex: 0 0 24px;
    }
}

/* === Sections Layout (Gestion dans fullscreen-layout.css) === */
/* Les styles de layout des mockups et content sont maintenant dans fullscreen-layout.css */
/* Ce fichier garde uniquement les styles visuels de base */

/* === Hero Skins Orbit Animation === */
.fs-hero-skins {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.fs-skin-orbit {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0.85;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: opacity 0.3s ease;
    animation-fill-mode: both; /* apply 0% state during delays */
    will-change: left, top, transform, opacity;
}

.fs-skin-orbit:hover {
    opacity: 1;
}

.fs-skin-orbit img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Animations d'orbite individuelles (16 skins)
   Chaque animation commence hors-écran (entrée) puis traverse l'écran
   et finit hors-écran (sortie) pour créer l'effet "astéroïdes". */
@keyframes orbit1 {
    0% { left: -20vw; top: 20vh; transform: rotate(0deg) scale(0.8); }
    25% { left: 80vw; top: 15vh; transform: rotate(90deg) scale(1.1); }
    50% { left: 85vw; top: 75vh; transform: rotate(180deg) scale(0.9); }
    75% { left: 20vw; top: 80vh; transform: rotate(270deg) scale(1.2); }
    100% { left: 120vw; top: 20vh; transform: rotate(360deg) scale(0.8); }
}

@keyframes orbit2 {
    0% { left: 120vw; top: 10vh; transform: rotate(45deg) scale(1); }
    25% { left: 90vw; top: 40vh; transform: rotate(135deg) scale(0.7); }
    50% { left: 60vw; top: 85vh; transform: rotate(225deg) scale(1.3); }
    75% { left: 15vw; top: 60vh; transform: rotate(315deg) scale(0.9); }
    100% { left: -20vw; top: 10vh; transform: rotate(405deg) scale(1); }
}

@keyframes orbit3 {
    0% { left: -20vw; top: 5vh; transform: rotate(90deg) scale(0.9); }
    25% { left: 15vw; top: 35vh; transform: rotate(180deg) scale(1.1); }
    50% { left: 45vw; top: 70vh; transform: rotate(270deg) scale(0.8); }
    75% { left: 75vw; top: 50vh; transform: rotate(0deg) scale(1.2); }
    100% { left: 120vw; top: 5vh; transform: rotate(90deg) scale(0.9); }
}

@keyframes orbit4 {
    0% { left: 120vw; top: 25vh; transform: rotate(120deg) scale(1.1); }
    25% { left: 50vw; top: 15vh; transform: rotate(210deg) scale(0.8); }
    50% { left: 10vw; top: 45vh; transform: rotate(300deg) scale(1); }
    75% { left: 30vw; top: 80vh; transform: rotate(30deg) scale(0.9); }
    100% { left: -20vw; top: 25vh; transform: rotate(120deg) scale(1.1); }
}

@keyframes orbit5 {
    0% { left: -20vw; top: 70vh; transform: rotate(180deg) scale(0.85); }
    25% { left: 65vw; top: 60vh; transform: rotate(270deg) scale(1.15); }
    50% { left: 80vw; top: 20vh; transform: rotate(360deg) scale(0.95); }
    75% { left: 40vw; top: 30vh; transform: rotate(90deg) scale(1.05); }
    100% { left: 120vw; top: 70vh; transform: rotate(180deg) scale(0.85); }
}

@keyframes orbit6 {
    0% { left: 120vw; top: 80vh; transform: rotate(0deg) scale(1); }
    25% { left: 20vw; top: 70vh; transform: rotate(90deg) scale(0.75); }
    50% { left: 10vw; top: 30vh; transform: rotate(180deg) scale(1.25); }
    75% { left: 70vw; top: 35vh; transform: rotate(270deg) scale(0.9); }
    100% { left: -20vw; top: 80vh; transform: rotate(360deg) scale(1); }
}

@keyframes orbit7 {
    0% { left: -20vw; top: 55vh; transform: rotate(60deg) scale(0.95); }
    25% { left: 75vw; top: 75vh; transform: rotate(150deg) scale(1.1); }
    50% { left: 35vw; top: 85vh; transform: rotate(240deg) scale(0.8); }
    75% { left: 5vw; top: 50vh; transform: rotate(330deg) scale(1.15); }
    100% { left: 120vw; top: 55vh; transform: rotate(420deg) scale(0.95); }
}

@keyframes orbit8 {
    0% { left: 120vw; top: 15vh; transform: rotate(30deg) scale(1.05); }
    25% { left: 55vw; top: 25vh; transform: rotate(120deg) scale(0.85); }
    50% { left: 70vw; top: 65vh; transform: rotate(210deg) scale(1.2); }
    75% { left: 25vw; top: 55vh; transform: rotate(300deg) scale(0.9); }
    100% { left: -20vw; top: 15vh; transform: rotate(390deg) scale(1.05); }
}

@keyframes orbit9 {
    0% { left: -20vw; top: 40vh; transform: rotate(150deg) scale(0.8); }
    25% { left: 85vw; top: 45vh; transform: rotate(240deg) scale(1.1); }
    50% { left: 65vw; top: 10vh; transform: rotate(330deg) scale(0.95); }
    75% { left: 20vw; top: 25vh; transform: rotate(60deg) scale(1.05); }
    100% { left: 120vw; top: 40vh; transform: rotate(150deg) scale(0.8); }
}

@keyframes orbit10 {
    0% { left: 120vw; top: 60vh; transform: rotate(270deg) scale(1.15); }
    25% { left: 10vw; top: 75vh; transform: rotate(0deg) scale(0.85); }
    50% { left: 50vw; top: 90vh; transform: rotate(90deg) scale(1.05); }
    75% { left: 80vw; top: 70vh; transform: rotate(180deg) scale(0.95); }
    100% { left: -20vw; top: 60vh; transform: rotate(270deg) scale(1.15); }
}

@keyframes orbit11 {
    0% { left: -20vw; top: 30vh; transform: rotate(45deg) scale(0.9); }
    25% { left: 40vw; top: 50vh; transform: rotate(135deg) scale(1.2); }
    50% { left: 15vw; top: 65vh; transform: rotate(225deg) scale(0.8); }
    75% { left: 60vw; top: 85vh; transform: rotate(315deg) scale(1.1); }
    100% { left: 120vw; top: 30vh; transform: rotate(405deg) scale(0.9); }
}

@keyframes orbit12 {
    0% { left: 120vw; top: 40vh; transform: rotate(200deg) scale(1); }
    25% { left: 35vw; top: 10vh; transform: rotate(290deg) scale(0.75); }
    50% { left: 85vw; top: 15vh; transform: rotate(20deg) scale(1.25); }
    75% { left: 55vw; top: 55vh; transform: rotate(110deg) scale(0.9); }
    100% { left: -20vw; top: 40vh; transform: rotate(200deg) scale(1); }
}

@keyframes orbit13 {
    0% { left: -20vw; top: 20vh; transform: rotate(100deg) scale(0.85); }
    25% { left: 25vw; top: 35vh; transform: rotate(190deg) scale(1.15); }
    50% { left: 40vw; top: 75vh; transform: rotate(280deg) scale(0.95); }
    75% { left: 90vw; top: 60vh; transform: rotate(10deg) scale(1.05); }
    100% { left: 120vw; top: 20vh; transform: rotate(100deg) scale(0.85); }
}

@keyframes orbit14 {
    0% { left: 120vw; top: 50vh; transform: rotate(250deg) scale(1.1); }
    25% { left: 70vw; top: 45vh; transform: rotate(340deg) scale(0.8); }
    50% { left: 75vw; top: 5vh; transform: rotate(70deg) scale(1); }
    75% { left: 30vw; top: 20vh; transform: rotate(160deg) scale(0.9); }
    100% { left: -20vw; top: 50vh; transform: rotate(250deg) scale(1.1); }
}

@keyframes orbit15 {
    0% { left: -20vw; top: 65vh; transform: rotate(320deg) scale(0.95); }
    25% { left: 10vw; top: 55vh; transform: rotate(50deg) scale(1.2); }
    50% { left: 35vw; top: 15vh; transform: rotate(140deg) scale(0.85); }
    75% { left: 80vw; top: 40vh; transform: rotate(230deg) scale(1.05); }
    100% { left: 120vw; top: 65vh; transform: rotate(320deg) scale(0.95); }
}

@keyframes orbit16 {
    0% { left: 120vw; top: 50vh; transform: rotate(15deg) scale(1); }
    25% { left: 45vw; top: 80vh; transform: rotate(105deg) scale(0.75); }
    50% { left: 5vw; top: 70vh; transform: rotate(195deg) scale(1.2); }
    75% { left: 25vw; top: 40vh; transform: rotate(285deg) scale(0.9); }
    100% { left: -20vw; top: 50vh; transform: rotate(375deg) scale(1); }
}

/* Application des animations avec durées et délais variés */
.fs-skin-orbit:nth-child(1) { animation: orbit1 35s linear infinite; }
.fs-skin-orbit:nth-child(2) { animation: orbit2 42s linear infinite 2s; }
.fs-skin-orbit:nth-child(3) { animation: orbit3 38s linear infinite 4s; }
.fs-skin-orbit:nth-child(4) { animation: orbit4 45s linear infinite 1s; }
.fs-skin-orbit:nth-child(5) { animation: orbit5 40s linear infinite 6s; }
.fs-skin-orbit:nth-child(6) { animation: orbit6 37s linear infinite 3s; }
.fs-skin-orbit:nth-child(7) { animation: orbit7 43s linear infinite 5s; }
.fs-skin-orbit:nth-child(8) { animation: orbit8 39s linear infinite 7s; }
.fs-skin-orbit:nth-child(9) { animation: orbit9 41s linear infinite 2.5s; }
.fs-skin-orbit:nth-child(10) { animation: orbit10 44s linear infinite 4.5s; }
.fs-skin-orbit:nth-child(11) { animation: orbit11 36s linear infinite 6.5s; }
.fs-skin-orbit:nth-child(12) { animation: orbit12 46s linear infinite 1.5s; }
.fs-skin-orbit:nth-child(13) { animation: orbit13 38s linear infinite 3.5s; }
.fs-skin-orbit:nth-child(14) { animation: orbit14 42s linear infinite 5.5s; }
.fs-skin-orbit:nth-child(15) { animation: orbit15 40s linear infinite 7.5s; }
.fs-skin-orbit:nth-child(16) { animation: orbit16 37s linear infinite 8s; }

/* Initial off-screen placement so they don't stack at 0,0 before animation starts */
.fs-skin-orbit:nth-child(1)  { left: -20vw; top: 20vh; }
.fs-skin-orbit:nth-child(2)  { left: 120vw; top: 10vh; }
.fs-skin-orbit:nth-child(3)  { left: -20vw; top: 5vh; }
.fs-skin-orbit:nth-child(4)  { left: 120vw; top: 25vh; }
.fs-skin-orbit:nth-child(5)  { left: -20vw; top: 70vh; }
.fs-skin-orbit:nth-child(6)  { left: 120vw; top: 80vh; }
.fs-skin-orbit:nth-child(7)  { left: -20vw; top: 55vh; }
.fs-skin-orbit:nth-child(8)  { left: 120vw; top: 15vh; }
.fs-skin-orbit:nth-child(9)  { left: -20vw; top: 40vh; }
.fs-skin-orbit:nth-child(10) { left: 120vw; top: 60vh; }
.fs-skin-orbit:nth-child(11) { left: -20vw; top: 30vh; }
.fs-skin-orbit:nth-child(12) { left: 120vw; top: 40vh; }
.fs-skin-orbit:nth-child(13) { left: -20vw; top: 20vh; }
.fs-skin-orbit:nth-child(14) { left: 120vw; top: 50vh; }
.fs-skin-orbit:nth-child(15) { left: -20vw; top: 65vh; }
.fs-skin-orbit:nth-child(16) { left: 120vw; top: 50vh; }

/* Layering : certains passent devant, d'autres derrière */
.fs-skin-orbit:nth-child(odd) { z-index: 3; }
.fs-skin-orbit:nth-child(even) { z-index: 15; }

/* Mobile behavior: show a lightweight set of skins instead of hiding them entirely.
   - If user prefers reduced motion -> hide skins completely.
   - Portrait (small screens): show up to 6 skins, slower animations, lower opacity.
   - Landscape (small screens): show up to 8 skins with moderate speed.
*/
@media (prefers-reduced-motion: reduce) {
    .fs-hero-skins { display: none !important; }
}

@media (max-width: 768px) and (orientation: portrait) {
    .fs-hero-skins {
        display: block;
        pointer-events: none;
    }
    /* Reduce visual noise / CPU on portrait mobile */
    .fs-skin-orbit {
        opacity: 0.65;
        /* make animations slower to reduce perceived motion */
        animation-duration: 70s !important;
        filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
        will-change: transform, opacity;
    }
    /* Limit number of visible skins on small portrait devices */
    .fs-skin-orbit:nth-child(n+7) { display: none; }
}

@media (max-width: 768px) and (orientation: landscape) {
    .fs-hero-skins {
        display: block;
        pointer-events: none;
    }
    .fs-skin-orbit {
        opacity: 0.8;
        animation-duration: 55s !important;
    }
    /* Slightly more elements in landscape but still limited */
    .fs-skin-orbit:nth-child(n+9) { display: none; }
}


