.side-nav .logo {
    height: 70px;
    background: #ff7a00 !important;
    position: relative;
}
.alias_dashboard .side-nav {
    background: #32363d !important;
}
.btn.header-download, .dashboard-user-links .btn {
    background: #ff7a00 !important;;
    border: 1px solid #e37f0f;
    padding: 12px 20px;
    font-weight: 600;
}
.dashboard-nav-orders .dashboard-nav-link {
    background: #1c2029 !important;
}
.dashboard-nav-invoices .dashboard-nav-link {
    background: #ff7a00 !important;
}
.dashboard-nav-propositions .dashboard-nav-link {
    background: #ce4d19 !important;
}
.dashboard-nav-commercial-propositions .dashboard-nav-link {
    background: #adabab !important;
}
.dashboard-news-container h2.title-with-icon, .dashboard-nav-label {
    font-family: 'Creepster', cursive;
    font-size: 3.5rem !important;
    color: #fa6701;
}
.dashboard-nav-label {
    font-size: 2.5rem !important;
}
.alias_dashboard div.content {
    background-color: dimgrey;
    background-image:
            url('../img/spider_web.png'),
            url('../img/spider_web_2.png'),
            url('../img/spider_web_3.png'),
            url('../img/spider_web_4.png');
    background-position:
            top left,
            bottom right,
            top right,
            bottom left;
    background-repeat:
            no-repeat,
            no-repeat,
            no-repeat,
            no-repeat;
    background-size:
            500px,
            500px,
            500px,
            500px;
}
.spiders {
    position: relative;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10; /* ✅ les araignées sont devant */
}
.spider {
    position: absolute;
    width: 50px;
    height: 40px;
    border-radius: 50%;
    background: #110D04;
    animation: swing 5s ease-in-out infinite;
    z-index: 10;
}
.spider::before {
    content: "";
    position: absolute;
    top: -400px;
    left: 50%;
    width: 1px;
    height: 400px;
    background: #aaa;
    transform: translateX(-50%);
    z-index: 5;
}
.eye {
    position: absolute;
    top: 14px;
    height: 14px;
    width: 12px;
    background: #fff;
    border-radius: 50%;
}
.eye::after {
    content: "";
    position: absolute;
    top: 5px;
    height: 5px;
    width: 5px;
    background: #000;
    border-radius: 50%;
}
.eye.left { left: 10px; }
.eye.left::after { right: 3px; }
.eye.right { right: 10px; }
.eye.right::after { left: 3px; }

@keyframes swing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(25px); }
}


@keyframes flicker {
    0%, 7%, 12%, 100% {
        opacity: 1;
    }
    4%, 10% {
        opacity: 0.3;
    }
}

.web-right {
    position: absolute;
    height: 200px;
    right: -10px;
    top: -10px;
    z-index: 1;
    opacity: 0.2;
}

.web-left {
    position: absolute;
    height: 200px;
    left: -10px;
    top: -10px;
    transform: rotate(-90deg);
    z-index: 1;
    opacity: 0.2;
}

/* --- PATTES RESSERRÉES --- */
.leg {
    position: absolute;
    height: 10px;
    width: 12px;
    border-top: 2px solid #110D04;
    z-index: 6;
}

/* Pattes gauche */
.leg.left {
    left: -6px;
    transform-origin: top right;
    border-left: 2px solid #110D04;
    border-radius: 60% 0 0 0;
    animation: legMoveLeft 1.5s infinite ease-in-out;
}

/* Pattes droite */
.leg.right {
    right: -6px;
    transform-origin: top left;
    border-right: 2px solid #110D04;
    border-radius: 0 60% 0 0;
    animation: legMoveRight 1.5s infinite ease-in-out;
}

/* Espacement vertical plus serré */
.spider .leg.left:nth-child(3) { top: 6px;  animation-delay: 0s; }
.spider .leg.left:nth-child(4) { top: 14px; animation-delay: 0.2s; }
.spider .leg.left:nth-child(5) { top: 22px; animation-delay: 0.4s; }
.spider .leg.left:nth-child(6) { top: 30px; animation-delay: 0.6s; }

.spider .leg.right:nth-child(7)  { top: 6px;  animation-delay: 0.1s; }
.spider .leg.right:nth-child(8)  { top: 14px; animation-delay: 0.3s; }
.spider .leg.right:nth-child(9)  { top: 22px; animation-delay: 0.5s; }
.spider .leg.right:nth-child(10) { top: 30px; animation-delay: 0.7s; }

/* --- Animations des pattes (inchangées) --- */
@keyframes legMoveLeft {
    0%, 100% { transform: rotate(30deg) skewX(-20deg); }
    50% { transform: rotate(20deg) skewX(-20deg); }
}

@keyframes legMoveRight {
    0%, 100% { transform: rotate(-30deg) skewX(20deg); }
    50% { transform: rotate(-20deg) skewX(20deg); }
}

/* Sorcière */
#witch {
    position: fixed;
    width: 300px;
    pointer-events: auto;
    z-index: 9999;
    transform-origin: center;
    cursor: pointer;
}

/* Particules magiques */
.particle {
    position: fixed;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #ff99ff, transparent);
    border-radius: 50%;
    pointer-events: none;
    animation: fade 2s linear forwards;
    z-index: 9998;
}

@keyframes fade {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.5); }
}

/* Nuage pouf avec effet d'agrandissement */
#poufImage {
    position: fixed;
    width: 300px;
    pointer-events: none;
    z-index: 10000;
    display: none;
    transform: scale(0.5); /* commence plus petit */
    transition: transform 0.3s ease-out, opacity 0.7s ease-out;
}

/* Effet Halloween */
#halloween-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(3px);
    z-index: 20000;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #ff6600;
    font-family: 'Creepster', cursive;
    text-shadow: 0 0 10px #ff3300;
}

#halloween-overlay img {
    width: 500px;
    opacity: 0;
    transform: scale(0.5);
    animation: appear 2s ease-out forwards;
}

@keyframes appear {
    to { opacity: 1; transform: scale(1); }
}

