/* FOND GÉNÉRAL AVEC TEXTURE */
body {
    background-color: #0a0a0c;
    /* Image de fond fixe très subtile (optionnelle) */
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(255, 77, 0, 0.05) 0%, transparent 80%),
        url('https://grainy-gradients.vercel.app/noise.svg'); /* Texture de grain */
    background-attachment: fixed;
}

/* EFFET DE PROFONDEUR SUR LES SECTIONS HERO */
.hero-bg {
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 12, 0.2), #0a0a0c);
}

/* ÉLÉMENT FIXE : BARRE SOCIALE LATÉRALE */
.fixed-socials {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
}

.fixed-socials a {
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    transition: all 0.3s ease;
    writing-mode: vertical-rl; /* Texte vertical pour le look Tech */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
}

.fixed-socials a:hover {
    color: #ff4d00;
}

/* Style spécifique pour le contenu de l'article */
.font-serif {
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
}

/* Animation d'apparition douce des articles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.at-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Gestion du chargement des images 4K */
.at-card-img {
    background-color: #1a1a1f; /* Couleur de fond en attendant le chargement */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.at-card:hover .at-card-img {
    transform: scale(1.05);
}

#mobile-menu a {
    transform: translateY(20px);
    transition: all 0.4s ease;
}

#mobile-menu:not(.opacity-0) a {
    transform: translateY(0);
}