:root {
    --primary-gradient: linear-gradient(135deg, #ff0000 0%, #cc0000 50%, #990000 100%);
    --secondary-gradient: linear-gradient(135deg, #ff3333 0%, #ff0000 50%, #cc0000 100%);
    --accent-gradient: linear-gradient(135deg, #ff6666 0%, #ff0000 100%);
    --glass-bg: rgba(255, 0, 0, 0.1);
    --glass-border: rgba(255, 0, 0, 0.3);
    --glass-hover: rgba(255, 0, 0, 0.15);
    --dark-bg: #000000;
    --darker-bg: #0a0a0a;
    --text-light: #ffffff;
    --text-light-50: rgba(255, 255, 255, 0.7);
    --text-red: #ff0000;
    --shadow-red: rgba(255, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
}

body {
    background: var(--dark-bg);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 0, 0, 0.08) 0%, transparent 50%),
        linear-gradient(45deg, transparent 49%, rgba(255, 0, 0, 0.02) 50%, transparent 51%);
    min-height: 100vh;
    color: var(--text-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* Animation de particules en arrière-plan */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 0, 0, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 0, 0, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 0, 0, 0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 0, 0, 0.3), transparent);
    background-size: 200px 200px;
    animation: particleFloat 20s infinite linear;
    z-index: -1;
    opacity: 0.6;
}

@keyframes particleFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-200px, -200px); }
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.1), transparent);
    transition: left 0.6s;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: var(--glass-hover);
    box-shadow: 0 25px 50px var(--shadow-red);
    border-color: rgba(255, 0, 0, 0.5);
}

.glass-nav {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(255, 0, 0, 0.1);
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.btn-gradient {
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px;
    padding: 15px 35px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow-red);
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.btn-gradient:hover::before {
    width: 300px;
    height: 300px;
}

.btn-gradient:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px var(--shadow-red);
}

/* Animation 3D originale au lieu de la sphère */
.hero-animation {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    perspective: 1000px;
}

.floating-3d-scene {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotate3D 15s infinite linear;
}

.floating-cube {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    animation: floatCube 4s ease-in-out infinite;
    box-shadow: 0 10px 30px var(--shadow-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-red);
    font-weight: bold;
}

.floating-cube:nth-child(1) {
    top: 50px;
    left: 50px;
    animation-delay: 0s;
    transform: rotateX(45deg) rotateY(45deg);
}

.floating-cube:nth-child(1)::before {
    content: '3D';
}

.floating-cube:nth-child(2) {
    top: 150px;
    right: 50px;
    animation-delay: -1s;
    transform: rotateX(-30deg) rotateY(60deg);
}

.floating-cube:nth-child(2)::before {
    content: 'IA';
}

.floating-cube:nth-child(3) {
    bottom: 100px;
    left: 100px;
    animation-delay: -2s;
    transform: rotateX(60deg) rotateY(-45deg);
}

.floating-cube:nth-child(3)::before {
    content: 'LUA';
}

.floating-cube:nth-child(4) {
    top: 200px;
    left: 200px;
    animation-delay: -3s;
    transform: rotateX(-45deg) rotateY(30deg);
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
}

.floating-cube:nth-child(4)::before {
    content: 'DLL';
}

.code-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.code-particle {
    position: absolute;
    color: var(--text-red);
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    opacity: 0;
    font-weight: 500;
    animation: codeFloat 8s infinite linear;
    background: rgba(255, 0, 0, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

@keyframes rotate3D {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    100% { transform: rotateY(360deg) rotateX(15deg); }
}

@keyframes floatCube {
    0%, 100% { 
        transform: translateY(0px) rotateX(45deg) rotateY(45deg);
        box-shadow: 0 10px 30px var(--shadow-red);
    }
    50% { 
        transform: translateY(-30px) rotateX(45deg) rotateY(45deg);
        box-shadow: 0 25px 50px var(--shadow-red);
    }
}

@keyframes codeFloat {
    0% {
        transform: translateY(420px) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* Animation de pulsation pour les cubes */
.floating-cube:hover {
    animation-play-state: paused;
    transform: scale(1.1) !important;
    box-shadow: 0 20px 40px var(--shadow-red) !important;
}

/* Section actualités */
.news-section {
    padding: 100px 0;
    position: relative;
}

.news-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-red);
}

.news-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(255, 0, 0, 0.05));
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    color: var(--text-red);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Footer avec réseaux sociaux */
.social-footer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(10, 0, 0, 0.9));
    backdrop-filter: blur(15px);
    border-top: 2px solid var(--glass-border);
    padding: 60px 0 30px 0;
    position: relative;
}

.social-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary-gradient);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-gradient);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    z-index: -1;
}

.social-link:hover::before {
    width: 100px;
    height: 100px;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: var(--text-red);
    box-shadow: 0 15px 30px var(--shadow-red);
}

.social-link .social-icon {
  display: block;
  width: 90%;          /* occupe 60% du cercle ; ajuste à 55–70% si besoin */
  height: 90%;
  line-height: 0;      /* évite tout décalage vertical */
}

.social-link span.social-icon {
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.6));
}

/* Mapping des icônes (chemins absolus -> OK partout, même /admin/) */
.social-link .social-icon.tiktok  { background-image: url("/assets/images/icons/tiktok.png"); }
.social-link .social-icon.fiverr  { background-image: url("/assets/images/icons/fiverr.png"); }
.social-link .social-icon.discord { background-image: url("/assets/images/icons/discord.png"); }

/* Responsive pour l'animation */
@media (max-width: 768px) {
    .hero-animation {
        width: 300px;
        height: 300px;
    }
    
    .floating-cube {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .floating-cube:nth-child(4) {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Services avec effets améliorés */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--text-red), transparent);
    opacity: 0;
    transition: all 0.6s ease;
    animation: rotate 2s linear infinite;
}

.service-card:hover::after {
    opacity: 0.1;
}

.service-card:hover {
    transform: scale(1.08) translateY(-10px);
}

.service-icon {
    position: relative;
    z-index: 2;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s ease;
  overflow: hidden;
}

.contact-icon-img {
  display: block;
  width: 60%;
  height: 60%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.5));
}

/* Mapping images (mets les fichiers dans /assets/images/icons/) */
.contact-icon-img.mail {
  background-image: url("/assets/images/icons/mail.png");
}

.contact-icon-img.dispo {
  background-image: url("/assets/images/icons/clock.png");
}

/* Hover sur tout le bloc contact-item */
.contact-item:hover .contact-icon {
  background: var(--primary-gradient);
  transform: scale(1.1);
  box-shadow: 0 8px 20px var(--shadow-red);
}
