/* SECTION HÉRO YOYOLO */
.hero-yoyolo {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(247, 142, 61, 0.18), transparent 55%),
        radial-gradient(circle at bottom right, rgba(0, 186, 199, 0.18), transparent 55%),
        linear-gradient(135deg, #050816, #0b1120 40%, #1e1b4b 100%);
    color: #fff;
}

/* ★ Fond étoilé encore plus dense + scintillement global */
.hero-yoyolo::before,
.hero-yoyolo::after,
.hero-yoyolo .stars-layer {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-repeat: repeat;
    background-size: 380px 380px;
}

/* 1er calque – grosses étoiles (doublé) */
.hero-yoyolo::before {
    background-image:
        /* EXISTANTES */
        radial-gradient(2px 2px at 8% 18%, rgba(255, 255, 255, 0.9) 0, transparent 40%),
        radial-gradient(2px 2px at 18% 42%, rgba(255, 255, 255, 0.85) 0, transparent 40%),
        radial-gradient(2px 2px at 28% 70%, rgba(255, 255, 255, 0.9) 0, transparent 40%),
        radial-gradient(2px 2px at 40% 20%, rgba(255, 255, 255, 0.8) 0, transparent 40%),
        radial-gradient(2px 2px at 50% 55%, rgba(255, 255, 255, 0.9) 0, transparent 40%),
        radial-gradient(2px 2px at 62% 80%, rgba(255, 255, 255, 0.85) 0, transparent 40%),
        radial-gradient(2px 2px at 72% 35%, rgba(255, 255, 255, 0.9) 0, transparent 40%),
        radial-gradient(2px 2px at 82% 60%, rgba(255, 255, 255, 0.85) 0, transparent 40%),
        radial-gradient(2px 2px at 90% 18%, rgba(255, 255, 255, 0.9) 0, transparent 40%),
        radial-gradient(2px 2px at 55% 90%, rgba(255, 255, 255, 0.9) 0, transparent 40%),

        /* NOUVELLES GROSSES ÉTOILES */
        radial-gradient(2px 2px at 12% 75%, rgba(255, 255, 255, 0.8) 0, transparent 40%),
        radial-gradient(2px 2px at 28% 12%, rgba(255, 255, 255, 0.85) 0, transparent 40%),
        radial-gradient(2px 2px at 45% 85%, rgba(255, 255, 255, 0.9) 0, transparent 40%),
        radial-gradient(2px 2px at 58% 32%, rgba(255, 255, 255, 0.8) 0, transparent 40%),
        radial-gradient(2px 2px at 74% 82%, rgba(255, 255, 255, 0.85) 0, transparent 40%),
        radial-gradient(2px 2px at 88% 50%, rgba(255, 255, 255, 0.92) 0, transparent 40%),
        radial-gradient(2px 2px at 35% 8%, rgba(255, 255, 255, 0.8) 0, transparent 40%),
        radial-gradient(2px 2px at 66% 14%, rgba(255, 255, 255, 0.85) 0, transparent 40%),
        radial-gradient(2px 2px at 16% 90%, rgba(255, 255, 255, 0.9) 0, transparent 40%),
        radial-gradient(2px 2px at 95% 78%, rgba(255, 255, 255, 0.8) 0, transparent 40%);
    opacity: 0.9;
    animation: bgTwinkleStrong1 4.5s ease-in-out infinite alternate;
}


.hero-yoyolo::after {
    background-image:
        /* EXISTANTES */
        radial-gradient(1px 1px at 6% 80%, rgba(255, 255, 255, 0.8) 0, transparent 40%),
        radial-gradient(1px 1px at 16% 30%, rgba(255, 255, 255, 0.7) 0, transparent 40%),
        radial-gradient(1px 1px at 24% 55%, rgba(255, 255, 255, 0.75) 0, transparent 40%),
        radial-gradient(1px 1px at 34% 15%, rgba(255, 255, 255, 0.8) 0, transparent 40%),
        radial-gradient(1px 1px at 45% 38%, rgba(255, 255, 255, 0.7) 0, transparent 40%),
        radial-gradient(1px 1px at 52% 72%, rgba(255, 255, 255, 0.75) 0, transparent 40%),
        radial-gradient(1px 1px at 63% 22%, rgba(255, 255, 255, 0.8) 0, transparent 40%),
        radial-gradient(1px 1px at 72% 50%, rgba(255, 255, 255, 0.7) 0, transparent 40%),
        radial-gradient(1px 1px at 84% 32%, rgba(255, 255, 255, 0.75) 0, transparent 40%),
        radial-gradient(1px 1px at 92% 70%, rgba(255, 255, 255, 0.8) 0, transparent 40%),

        /* NOUVELLES PETITES ÉTOILES */
        radial-gradient(1px 1px at 10% 10%, rgba(255, 255, 255, 0.75) 0, transparent 40%),
        radial-gradient(1px 1px at 22% 85%, rgba(255, 255, 255, 0.7) 0, transparent 40%),
        radial-gradient(1px 1px at 30% 42%, rgba(255, 255, 255, 0.8) 0, transparent 40%),
        radial-gradient(1px 1px at 48% 10%, rgba(255, 255, 255, 0.7) 0, transparent 40%),
        radial-gradient(1px 1px at 58% 92%, rgba(255, 255, 255, 0.75) 0, transparent 40%),
        radial-gradient(1px 1px at 70% 18%, rgba(255, 255, 255, 0.8) 0, transparent 40%),
        radial-gradient(1px 1px at 80% 75%, rgba(255, 255, 255, 0.7) 0, transparent 40%),
        radial-gradient(1px 1px at 90% 42%, rgba(255, 255, 255, 0.8) 0, transparent 40%),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.75) 0, transparent 40%),
        radial-gradient(1px 1px at 15% 60%, rgba(255, 255, 255, 0.7) 0, transparent 40%);
    opacity: 0.7;
    animation: bgTwinkleStrong2 5.5s ease-in-out infinite alternate;
}

.hero-yoyolo .stars-layer {
    background-image:
        /* EXISTANTES */
        radial-gradient(0.7px 0.7px at 5% 15%, rgba(255, 255, 255, 0.7) 0, transparent 40%),
        radial-gradient(0.7px 0.7px at 13% 48%, rgba(255, 255, 255, 0.6) 0, transparent 40%),
        radial-gradient(0.7px 0.7px at 22% 72%, rgba(255, 255, 255, 0.65) 0, transparent 40%),
        radial-gradient(0.7px 0.7px at 32% 28%, rgba(255, 255, 255, 0.6) 0, transparent 40%),
        radial-gradient(0.7px 0.7px at 44% 60%, rgba(255, 255, 255, 0.7) 0, transparent 40%),
        radial-gradient(0.7px 0.7px at 56% 18%, rgba(255, 255, 255, 0.6) 0, transparent 40%),
        radial-gradient(0.7px 0.7px at 66% 40%, rgba(255, 255, 255, 0.65) 0, transparent 40%),
        radial-gradient(0.7px 0.7px at 76% 68%, rgba(255, 255, 255, 0.6) 0, transparent 40%),
        radial-gradient(0.7px 0.7px at 86% 22%, rgba(255, 255, 255, 0.7) 0, transparent 40%),
        radial-gradient(0.7px 0.7px at 93% 55%, rgba(255, 255, 255, 0.65) 0, transparent 40%),

        /* NOUVELLES MICRO-ÉTOILES */
        radial-gradient(0.7px 0.7px at 8% 90%, rgba(255, 255, 255, 0.6) 0, transparent 40%),
        radial-gradient(0.7px 0.7px at 20% 10%, rgba(255, 255, 255, 0.65) 0, transparent 40%),
        radial-gradient(0.7px 0.7px at 36% 80%, rgba(255, 255, 255, 0.6) 0, transparent 40%),
        radial-gradient(0.7px 0.7px at 48% 28%, rgba(255, 255, 255, 0.65) 0, transparent 40%),
        radial-gradient(0.7px 0.7px at 58% 95%, rgba(255, 255, 255, 0.7) 0, transparent 40%),
        radial-gradient(0.7px 0.7px at 70% 12%, rgba(255, 255, 255, 0.6) 0, transparent 40%),
        radial-gradient(0.7px 0.7px at 78% 85%, rgba(255, 255, 255, 0.65) 0, transparent 40%),
        radial-gradient(0.7px 0.7px at 85% 44%, rgba(255, 255, 255, 0.7) 0, transparent 40%),
        radial-gradient(0.7px 0.7px at 94% 12%, rgba(255, 255, 255, 0.6) 0, transparent 40%),
        radial-gradient(0.7px 0.7px at 50% 72%, rgba(255, 255, 255, 0.7) 0, transparent 40%);
    opacity: 0.65;
    animation: bgTwinkleStrong3 6.2s ease-in-out infinite alternate;
}

/* 🌌 Scintillement ASTRONOMIQUE du fond étoilé */
@keyframes bgTwinkleStrong1 {
    0% {
        opacity: 0.08;
        filter: brightness(0.4);
    }

    30% {
        opacity: 1;
        filter: brightness(3.0);
    }

    60% {
        opacity: 0.35;
        filter: brightness(1.4);
    }

    100% {
        opacity: 1;
        filter: brightness(3.4);
    }
}

@keyframes bgTwinkleStrong2 {
    0% {
        opacity: 0.05;
        filter: brightness(0.35);
    }

    30% {
        opacity: 0.95;
        filter: brightness(2.7);
    }

    65% {
        opacity: 0.32;
        filter: brightness(1.2);
    }

    100% {
        opacity: 1;
        filter: brightness(3.0);
    }
}

@keyframes bgTwinkleStrong3 {
    0% {
        opacity: 0.07;
        filter: brightness(0.45);
    }

    40% {
        opacity: 1;
        filter: brightness(2.9);
    }

    75% {
        opacity: 0.3;
        filter: brightness(1.1);
    }

    100% {
        opacity: 1;
        filter: brightness(3.2);
    }
}

/* ✴️ Étoiles orange : scintillement SUPERNOVA */
@keyframes twinkle {
    0% {
        opacity: 0.15;
        box-shadow: 0 0 6px rgba(247, 142, 61, 0.45);
        transform: scale(0.6);
    }

    25% {
        opacity: 1;
        box-shadow: 0 0 42px rgba(247, 142, 61, 1);
        transform: scale(1.8);
    }

    55% {
        opacity: 0.9;
        box-shadow: 0 0 28px rgba(247, 142, 61, 0.95);
        transform: scale(1.4);
    }

    100% {
        opacity: 0.35;
        box-shadow: 0 0 16px rgba(247, 142, 61, 0.6);
        transform: scale(0.85);
    }
}

/* On accélère encore un peu */
.orbit-star {
    animation: twinkle 0.75s ease-in-out infinite alternate;
}

.hero-orbit {
    position: relative;
    width: min(100%, 840px);
    aspect-ratio: 1 / 1;
    margin: 40px auto 60px auto;
    z-index: 1;
    /* au-dessus du fond étoilé */
}

/* GROSSE PLANÈTE – base lune beige/gris clair, sans gros disque au centre */
.hero-circle-main {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 360px;
    height: 360px;
    border-radius: 50%;

    /* couleur de base de la lune */
    background-color: #f1ece3;
    background-image:
        radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.6) 0, transparent 45%),
        radial-gradient(circle at 75% 80%, rgba(0, 0, 0, 0.10) 0, transparent 60%);
    background-blend-mode: soft-light;

    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.32),
        0 0 0 4px rgba(255, 255, 255, 0.8);

    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: translate(-50%, -50%) scale(1);
    z-index: 5;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: visible;

    /* tes variables d’orbite */
    --mini-orbit-radius: 260px;
    --mini-orbit-tilt: 26deg;
    --orbit-radius-1: 240px;
    --orbit-radius-2: 220px;
    --orbit-radius-3: 200px;
    --orbit-tilt-1: 18deg;
    --orbit-tilt-2: -25deg;
    --orbit-tilt-3: 30deg;
}

/* 🌑 CRATÈRES RONDS MULTIPLES (PAS DE GROS CERCLE GLOBAL) */
.hero-circle-main::before {
    content: "";
    position: absolute;
    inset: 0;
    /* couvre toute la planète */
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.9;
    mix-blend-mode: normal;
    /* on garde du contrôle, pas de disque global */

    /* chaque radial-gradient = 1 cratère indépendant */
    background:
        /* gros cratère haut gauche */
        radial-gradient(circle at 24% 26%,
            #e5ddd0 0%,
            #e5ddd0 26%,
            #c9bba5 33%,
            rgba(201, 187, 165, 0) 40%),

        /* gros cratère haut droit */
        radial-gradient(circle at 70% 28%,
            #e3d9cc 0%,
            #e3d9cc 24%,
            #c4b39c 31%,
            rgba(196, 179, 156, 0) 38%),

        /* cratère moyen centre gauche */
        radial-gradient(circle at 32% 52%,
            #e7dfd3 0%,
            #e7dfd3 22%,
            #c7b7a0 29%,
            rgba(199, 183, 160, 0) 36%),

        /* cratère moyen bas droit */
        radial-gradient(circle at 72% 64%,
            #e2d8c9 0%,
            #e2d8c9 22%,
            #c2b29b 29%,
            rgba(194, 178, 155, 0) 36%),

        /* petit cratère au centre */
        radial-gradient(circle at 50% 48%,
            #ebe2d7 0%,
            #ebe2d7 18%,
            #c6b6a0 25%,
            rgba(198, 182, 160, 0) 32%),

        /* petit cratère bas centre */
        radial-gradient(circle at 48% 72%,
            #e8dfd3 0%,
            #e8dfd3 17%,
            #c3b39c 24%,
            rgba(195, 179, 156, 0) 31%),

        /* petit cratère droite milieu */
        radial-gradient(circle at 82% 48%,
            #e4dbcf 0%,
            #e4dbcf 17%,
            #c3b39c 24%,
            rgba(195, 179, 156, 0) 31%),

        /* mini cratères dispersés */
        radial-gradient(circle at 20% 60%,
            #e9e0d4 0%,
            #e9e0d4 14%,
            #c1b19a 20%,
            rgba(193, 177, 154, 0) 28%),
        radial-gradient(circle at 36% 70%,
            #e9e0d4 0%,
            #e9e0d4 14%,
            #c1b19a 20%,
            rgba(193, 177, 154, 0) 28%),
        radial-gradient(circle at 64% 54%,
            #e9e0d4 0%,
            #e9e0d4 14%,
            #c1b19a 20%,
            rgba(193, 177, 154, 0) 28%);
}

/* PETITES PLANÈTES – mini lunes beige-gris clair */
.hero-circle-small {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 190px;
    height: 190px;
    border-radius: 50%;

    background-color: #f3ede2;
    background-image:
        radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.55) 0, transparent 45%),
        radial-gradient(circle at 78% 78%, rgba(0, 0, 0, 0.12) 0, transparent 55%);
    background-blend-mode: soft-light;

    box-shadow:
        0 18px 42px rgba(15, 23, 42, 0.28),
        0 0 0 3px rgba(255, 255, 255, 0.8);

    padding: 18px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 0.9rem;
    color: #374151;
    z-index: 4;
    transition: transform 0.25s ease, box-shadow 0.25s ease;

    /* variables d’orbite déjà utilisées dans ton code */
    --mini-orbit-radius: 135px;
    --mini-orbit-tilt: 18deg;

    --orbit-radius-1: 120px;
    --orbit-radius-2: 105px;
    --orbit-radius-3: 90px;

    --orbit-tilt-1: 20deg;
    --orbit-tilt-2: -15deg;
    --orbit-tilt-3: 35deg;
}

/* 🌕 CRATÈRES MULTIPLES SUR LES PETITES PLANÈTES */
.hero-circle-small::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.9;
    mix-blend-mode: normal;

    background:
        /* cratère haut gauche */
        radial-gradient(circle at 26% 24%,
            #e7dfd2 0%,
            #e7dfd2 26%,
            #c8b79f 33%,
            rgba(200, 183, 159, 0) 40%),

        /* cratère haut droit */
        radial-gradient(circle at 70% 26%,
            #e5dccf 0%,
            #e5dccf 24%,
            #c4b39c 31%,
            rgba(196, 179, 156, 0) 38%),

        /* cratère milieu gauche */
        radial-gradient(circle at 30% 54%,
            #e8e0d3 0%,
            #e8e0d3 23%,
            #c7b7a0 30%,
            rgba(199, 183, 160, 0) 37%),

        /* cratère milieu droit */
        radial-gradient(circle at 72% 56%,
            #e4dbcf 0%,
            #e4dbcf 23%,
            #c5b59f 30%,
            rgba(197, 181, 158, 0) 37%),

        /* cratère bas centre */
        radial-gradient(circle at 50% 74%,
            #ebe3d7 0%,
            #ebe3d7 20%,
            #c5b69f 27%,
            rgba(197, 181, 158, 0) 34%),

        /* mini cratères dispersés */
        radial-gradient(circle at 22% 70%,
            #eae1d5 0%,
            #eae1d5 15%,
            #c2b29b 21%,
            rgba(194, 178, 155, 0) 28%),
        radial-gradient(circle at 40% 36%,
            #eae1d5 0%,
            #eae1d5 14%,
            #c2b29b 20%,
            rgba(194, 178, 155, 0) 27%),
        radial-gradient(circle at 64% 40%,
            #eae1d5 0%,
            #eae1d5 14%,
            #c2b29b 20%,
            rgba(194, 178, 155, 0) 27%),
        radial-gradient(circle at 78% 70%,
            #eae1d5 0%,
            #eae1d5 14%,
            #c2b29b 20%,
            rgba(194, 178, 155, 0) 27%);
}

/* ✨ léger relief global / lumière sans gros disque opaque */
.hero-circle-small::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.7;
    mix-blend-mode: soft-light;

    background:
        radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.65) 0%, transparent 45%),
        radial-gradient(circle at 78% 82%, rgba(0, 0, 0, 0.25) 0%, transparent 55%);
}

/* Cratères / reliefs doux sur les petites planètes */
.hero-circle-small::after {
    content: "";
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 35%, rgba(0, 0, 0, 0.12) 0, transparent 35%),
        radial-gradient(circle at 55% 55%, rgba(15, 23, 42, 0.18) 0, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(0, 0, 0, 0.12) 0, transparent 38%);
    opacity: 0.65;
    mix-blend-mode: soft-light;
    pointer-events: none;
}

:root {
    --small-planet-radius-x: 290px;
    --small-planet-radius-y: 295px;
}

.hero-circle-main:hover {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.25);
}

/* Vitesse par défaut des orbites */
.hero-circle-main,
.hero-circle-small {
    --orbit-speed-mult: 1;
}

/* Au survol : on accélère les étoiles */
.hero-circle-main:hover,
.hero-circle-small:hover {
    --orbit-speed-mult: 0.4;
    /* plus petit = plus rapide */
}


.hero-logo-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    margin-bottom: 6px;
}

.hero-logo {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

.hero-title {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 5px;
    color: #111827;
}

.hero-subtitle {
    font-size: 0.98rem;
    color: #000000ff;
    margin-bottom: 16px;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #F78E3D;
}

.hero-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    color: #F78E3D;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

/* 1 : en haut */
.hero-circle-1 {
    transform: translate(-50%, -50%) translate(0, calc(-1 * var(--small-planet-radius-y))) scale(1);
}

.hero-circle-1:hover {
    transform: translate(-50%, -50%) translate(0, calc(-1 * var(--small-planet-radius-y))) scale(1.08);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.25);
}

/* 2 : haut-droite */
.hero-circle-2 {
    transform: translate(-50%, -50%) translate(var(--small-planet-radius-x), calc(-0.5 * var(--small-planet-radius-y))) scale(1);
}

.hero-circle-2:hover {
    transform: translate(-50%, -50%) translate(var(--small-planet-radius-x), calc(-0.5 * var(--small-planet-radius-y))) scale(1.08);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.25);
}

/* 3 : bas-droite */
.hero-circle-3 {
    transform: translate(-50%, -50%) translate(var(--small-planet-radius-x), calc(0.5 * var(--small-planet-radius-y))) scale(1);
}

.hero-circle-3:hover {
    transform: translate(-50%, -50%) translate(var(--small-planet-radius-x), calc(0.5 * var(--small-planet-radius-y))) scale(1.08);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.25);
}

/* 4 : en bas */
.hero-circle-4 {
    transform: translate(-50%, -50%) translate(0, var(--small-planet-radius-y)) scale(1);
}

.hero-circle-4:hover {
    transform: translate(-50%, -50%) translate(0, var(--small-planet-radius-y)) scale(1.08);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.25);
}

/* 5 : bas-gauche */
.hero-circle-5 {
    transform: translate(-50%, -50%) translate(calc(-1 * var(--small-planet-radius-x)), calc(0.5 * var(--small-planet-radius-y))) scale(1);
}

.hero-circle-5:hover {
    transform: translate(-50%, -50%) translate(calc(-1 * var(--small-planet-radius-x)), calc(0.5 * var(--small-planet-radius-y))) scale(1.08);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.25);
}

/* 6 : haut-gauche */
.hero-circle-6 {
    transform: translate(-50%, -50%) translate(calc(-1 * var(--small-planet-radius-x)), calc(-0.5 * var(--small-planet-radius-y))) scale(1);
}

.hero-circle-6:hover {
    transform: translate(-50%, -50%) translate(calc(-1 * var(--small-planet-radius-x)), calc(-0.5 * var(--small-planet-radius-y))) scale(1.08);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.25);
}

/* Contenu des planètes au-dessus des étoiles */
.hero-circle-main>*,
.hero-circle-small>* {
    position: relative;
    z-index: 2;
}

/* Container des orbites d'étoiles */
.planet-orbits {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 6;
    /* au-dessus des planètes */
    transform: translate(-50%, -50%);
}

/* Mini planète qui apparaît au survol de chaque planète */
.mini-planet-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform-origin: 0 0;
    display: none;
    /* cachée par défaut */
    pointer-events: none;
    z-index: 6;
    animation-name: miniOrbit;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration: calc(14s * var(--orbit-speed-mult, 1));
}

/* Quand on survole une planète, on affiche la mini-planète (et elle profite aussi du --orbit-speed-mult déjà défini) */
.hero-circle-main:hover .mini-planet-orbit,
.hero-circle-small:hover .mini-planet-orbit {
    display: block;
}

/* Style de la mini planète */
.mini-planet {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.85);
    overflow: hidden;
    transform: translateX(var(--mini-orbit-radius, 260px));
}

.mini-planet img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* l’image reste entière */
    padding: 3px;
    /* petit espace pour éviter que ça touche les bords */
    display: block;
}

/* Rayon + tilt de l’orbite de la mini-planète pour la grosse planète */
.hero-circle-main {
    --mini-orbit-radius: 260px;
    --mini-orbit-tilt: 26deg;
}

/* Rayon + tilt pour les petites planètes */
.hero-circle-small {
    --mini-orbit-radius: 135px;
    --mini-orbit-tilt: 18deg;
}

/* Orbite inclinée de la mini-planète : - ellipse via scaleY - tilt via rotate(var(--mini-orbit-tilt)) - invisible quand elle "passe derrière" (60→88%) */
@keyframes miniOrbit {
    0% {
        transform:
            translate(-50%, -50%) rotate(var(--mini-orbit-tilt)) scaleY(0.65) rotate(0deg);
        opacity: 1;
    }

    70% {
        opacity: 1;
        /* visible devant plus longtemps */
    }

    75% {
        opacity: 0;
        /* commence à passer derrière */
    }

    80% {
        opacity: 0;
        /* cachée derrière moins longtemps qu’avant */
    }

    100% {
        transform:
            translate(-50%, -50%) rotate(var(--mini-orbit-tilt)) scaleY(0.65) rotate(360deg);
        opacity: 1;
        /* revient devant */
    }
}

/* Chaque étoile a sa "piste" orbitale */
.orbit-path {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    transform-origin: 0 0;
}

/* Base des petites étoiles (orange) */
.orbit-star {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #f78e3d;
    box-shadow: 0 0 10px rgba(247, 142, 61, 0.9);
}

/* Rayons d'orbite pour les petites planètes (un peu plus loin) */
.hero-circle-small {
    --orbit-radius-1: 120px;
    --orbit-radius-2: 105px;
    --orbit-radius-3: 90px;

    --orbit-tilt-1: 20deg;
    --orbit-tilt-2: -15deg;
    --orbit-tilt-3: 35deg;
}

/* Rayons + tilts pour la planète principale (encore plus large) */
.hero-circle-main {
    --orbit-radius-1: 240px;
    --orbit-radius-2: 220px;
    --orbit-radius-3: 200px;

    --orbit-tilt-1: 18deg;
    --orbit-tilt-2: -25deg;
    --orbit-tilt-3: 30deg;
}

/* STAR 1 : orbite inclinée + ellipse assez écrasée */
.orbit-path-1 {
    animation-name: orbitRing1;
    animation-duration: calc(18s * var(--orbit-speed-mult, 1));
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.orbit-path-1 .orbit-star {
    transform: translateX(var(--orbit-radius-1));
}

/* STAR 2 : autre tilt, ellipse moins écrasée, sens inverse */
.orbit-path-2 {
    animation-name: orbitRing2;
    animation-duration: calc(24s * var(--orbit-speed-mult, 1));
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: reverse;
}

.orbit-path-2 .orbit-star {
    transform: translateX(var(--orbit-radius-2));
}

/* STAR 3 : encore un tilt différent, ellipse moyenne */
.orbit-path-3 {
    animation-name: orbitRing3;
    animation-duration: calc(28s * var(--orbit-speed-mult, 1));
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.orbit-path-3 .orbit-star {
    transform: translateX(var(--orbit-radius-3));
}

/* STAR 4 : variation sur le 1er anneau */
.orbit-path-4 {
    animation-name: orbitRing1;
    animation-duration: calc(22s * var(--orbit-speed-mult, 1));
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: reverse;
}

.orbit-path-4 .orbit-star {
    transform: translateX(var(--orbit-radius-2));
}

/* STAR 5 : variation sur le 2e anneau */
.orbit-path-5 {
    animation-name: orbitRing2;
    animation-duration: calc(30s * var(--orbit-speed-mult, 1));
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.orbit-path-5 .orbit-star {
    transform: translateX(var(--orbit-radius-3));
}

/* Délais pour multiplier les étoiles (8×5 = 40) */
.orbit-delay-1 {
    animation-delay: -2s;
}

.orbit-delay-2 {
    animation-delay: -4s;
}

.orbit-delay-3 {
    animation-delay: -6s;
}

.orbit-delay-4 {
    animation-delay: -8s;
}

.orbit-delay-5 {
    animation-delay: -10s;
}

.orbit-delay-6 {
    animation-delay: -12s;
}

.orbit-delay-7 {
    animation-delay: -14s;
}

.orbit-delay-8 {
    animation-delay: -16s;
}


/* Anneau 1 : tilt + ellipse (scaleY) + rotation continue */
@keyframes orbitRing1 {
    0% {
        transform:
            translate(-50%, -50%) rotate(var(--orbit-tilt-1)) scaleY(0.6) rotate(0deg);
        opacity: 1;
    }

    55% {
        opacity: 1;
        /* encore bien visible devant */
    }

    65% {
        opacity: 0;
        /* commence à passer derrière */
    }

    85% {
        opacity: 0;
        /* reste cachée un moment seulement */
    }

    100% {
        transform:
            translate(-50%, -50%) rotate(var(--orbit-tilt-1)) scaleY(0.6) rotate(360deg);
        opacity: 1;
        /* réapparaît plus tôt */
    }
}

/* Anneau 2 : tilt et ellipse différents */
@keyframes orbitRing2 {
    0% {
        transform:
            translate(-50%, -50%) rotate(var(--orbit-tilt-2)) scaleY(0.75) rotate(0deg);
        opacity: 1;
    }

    55% {
        opacity: 1;
    }

    65% {
        opacity: 0;
    }

    85% {
        opacity: 0;
    }

    100% {
        transform:
            translate(-50%, -50%) rotate(var(--orbit-tilt-2)) scaleY(0.75) rotate(360deg);
        opacity: 1;
    }
}

/* Anneau 3 : encore un autre tilt */
@keyframes orbitRing3 {
    0% {
        transform:
            translate(-50%, -50%) rotate(var(--orbit-tilt-3)) scaleY(0.7) rotate(0deg);
        opacity: 1;
    }

    55% {
        opacity: 1;
    }

    65% {
        opacity: 0;
    }

    85% {
        opacity: 0;
    }

    100% {
        transform:
            translate(-50%, -50%) rotate(var(--orbit-tilt-3)) scaleY(0.7) rotate(360deg);
        opacity: 1;
    }
}

/* Scintillement des étoiles (plus fort, orange) */
@keyframes twinkle {
    0% {
        opacity: 0.4;
        box-shadow: 0 0 6px rgba(247, 142, 61, 0.6);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 16px rgba(247, 142, 61, 1);
    }

    100% {
        opacity: 0.5;
        box-shadow: 0 0 8px rgba(247, 142, 61, 0.8);
    }
}

/* On garde le scintillement pour toutes les étoiles */
.orbit-star {
    animation: twinkle 1.5s ease-in-out infinite alternate;
}

/* ========================= */
/* TABLETTE */
/* ========================= */
@media (max-width: 991.98px) {

    /* On laisse respirer un peu l’orbite pour que rien ne soit coupé */
    .hero-yoyolo {
        overflow: visible;
    }

    .hero-orbit {
        width: min(100%, 600px);
        aspect-ratio: 1 / 1;
    }

    .hero-circle-main {
        width: 300px;
        height: 300px;
    }

    .hero-circle-small {
        width: 180px;
        height: 180px;
        font-size: 0.8rem;
    }

    /* On rapproche les petites planètes du centre pour éviter que celle du haut sorte du cadre */
    :root {
        --small-planet-radius-x: 250px;
        --small-planet-radius-y: 260px;
    }
}

/* ========================= */
/* MOBILE */
/* ========================= */
@media (max-width: 575.98px) {

    /* Le conteneur ne force plus un carré, on passe en colonne */
    .hero-orbit {
        width: 100%;
        aspect-ratio: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 18px;
        margin: 24px auto 40px;
        position: relative;
    }

    /* Les planètes deviennent des blocs, empilés verticalement */
    .hero-circle-main,
    .hero-circle-small {
        position: relative;
        /* nécessaire pour les étoiles en orbite */
        top: auto;
        left: auto;
        transform: none;
        margin: 0 auto;
    }

    .hero-circle-main {
        width: 280px;
        height: 280px;
        max-width: 100%;
        padding: 20px 20px;
    }

    /* 🔥 Petites planètes plus grandes sur mobile */
    .hero-circle-small {
        width: 230px;
        height: 230px;
        max-width: 100%;
        font-size: 0.9rem;
    }

    /* On annule les anciennes positions “en orbite” */
    .hero-circle-1,
    .hero-circle-2,
    .hero-circle-3,
    .hero-circle-4,
    .hero-circle-5,
    .hero-circle-6 {
        transform: none;
    }

    /* 🧊 Sur mobile : plus de déplacement au survol, les planètes restent bien en place */
    .hero-circle-main:hover {
        transform: none;
        box-shadow: 0 25px 55px rgba(0, 0, 0, 0.18);
    }

    .hero-circle-1:hover,
    .hero-circle-2:hover,
    .hero-circle-3:hover,
    .hero-circle-4:hover,
    .hero-circle-5:hover,
    .hero-circle-6:hover {
        transform: none;
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    }

    /* On enlève juste la grosse ombre interne qui assombrit le cercle sur petit écran */
    .hero-circle-main::after,
    .hero-circle-small::after {
        display: none;
    }
}