/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background spatial avec couches circulaires */
.stars-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.star-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform-origin: center center;
    animation: star-rotation linear infinite;
}

.star-layer-1 {
    width: 200%;
    height: 200%;
    animation-duration: 120s; /* Plus rapide */
    transform: translate(-50%, -50%);
}

.star-layer-2 {
    width: 200%;
    height: 200%;
    animation-duration: 180s; /* Moyennement rapide */
    transform: translate(-50%, -50%);
}

.star-layer-3 {
    width: 200%;
    height: 200%;
    animation-duration: 240s; /* Plus lent */
    transform: translate(-50%, -50%);
}

.star {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 50%, transparent 100%);
    box-shadow: 0 0 6px rgba(255,255,255,0.6);
    animation: star-twinkle ease-in-out infinite alternate;
}

.star-layer-1 .star {
    animation-duration: 2s;
}

.star-layer-2 .star {
    animation-duration: 3s;
}

.star-layer-3 .star {
    animation-duration: 4s;
}

@keyframes star-rotation {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes star-twinkle {
    0% { opacity: 0.6; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

/* Ã‰toiles filantes avec traÃ®nÃ©es */
.shooting-star {
    position: fixed;
    pointer-events: none;
    z-index: -1;
}

.shooting-star::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: transparent;
    border-radius: 50%;
}

.shooting-star::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.3) 40%, 
        rgba(255,255,255,0.6) 70%, 
        rgba(255,255,255,0.9) 100%);
    transform: translate(-100%, -50%);
    border-radius: 50px;
    filter: blur(0.5px);
}

/* NÃ©buleuse de fond */
.nebula-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(120, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 0, 150, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 80%, rgba(0, 150, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: nebula-drift 60s ease-in-out infinite alternate;
}

@keyframes nebula-drift {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(0deg) scale(1.1); }
}

/* Container principal */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

/* Section profil */
.profile-section {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out;
}

.avatar-container {
    position: relative;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.avatar {
    width: 120px;
    height: 120px;
    position: relative;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
}

.planet-core {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 
        0 0 20px rgba(102, 126, 234, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    animation: planet-rotate 20s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.planet-core::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 48%;
    width: 73%;
    height: 80%;
    background-image: url('../img/webicon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate(-50%, -50%);
    z-index: 1;
    filter: brightness(1.1) contrast(1.1);
}

.planet-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 170px;
    height: 170px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(75deg);
    animation: ring-rotate 20s linear infinite;
}

@keyframes planet-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ring-rotate {
    from { transform: translate(-50%, -50%) rotateX(75deg) rotateY(0deg); }
    to { transform: translate(-50%, -50%) rotateX(75deg) rotateY(360deg); }
}

.company-name {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.company-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* Section des liens */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out;
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.link-item:hover::before {
    left: 100%;
}

.link-item:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
}

.link-item[data-planet="earth"]:hover {
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 150, 255, 0.3);
    border-color: rgba(0, 150, 255, 0.5);
}

.link-item[data-planet="mars"]:hover {
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 100, 100, 0.3);
    border-color: rgba(255, 100, 100, 0.5);
}

.link-item[data-planet="jupiter"]:hover {
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 150, 0, 0.3);
    border-color: rgba(255, 150, 0, 0.5);
}

.link-item[data-planet="saturn"]:hover {
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(24, 119, 242, 0.3);
    border-color: rgba(24, 119, 242, 0.5);
}

.link-icon {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.link-item:hover .link-icon {
    color: #ffffff;
    transform: scale(1.1) rotate(5deg);
}

.link-content {
    flex: 1;
}

.link-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.link-subtitle {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.link-arrow {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.link-item:hover .link-arrow {
    color: #ffffff;
    transform: translateX(5px);
}

/* Footer */
.footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* Animations d'entrÃ©e */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-item:nth-child(1) { animation-delay: 0.2s; }
.link-item:nth-child(2) { animation-delay: 0.4s; }
.link-item:nth-child(3) { animation-delay: 0.6s; }
.link-item:nth-child(4) { animation-delay: 0.8s; }

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .company-name {
        font-size: 2rem;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
    }
    
    .link-item {
        padding: 1rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem 0.8rem;
    }
    
    .company-name {
        font-size: 1.8rem;
    }
    
    .avatar {
        width: 80px;
        height: 80px;
    }
    
    .planet-ring {
        width: 100px;
        height: 100px;
    }
    
    .link-item {
        padding: 0.8rem 1rem;
    }
    
    .link-title {
        font-size: 1rem;
    }
    
    .link-subtitle {
        font-size: 0.8rem;
    }
}

/* Mode sombre amÃ©liorÃ© */
@media (prefers-color-scheme: dark) {
    .link-item {
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.08);
    }
    
    .link-item:hover {
        background: rgba(255, 255, 255, 0.08);
    }
}

/* AmÃ©lioration des performances */
.link-item,
.avatar,
.planet-core,
.planet-ring,
.star-layer {
    will-change: transform;
}

/* Focus pour l'accessibilitÃ© */
.link-item:focus {
    outline: 2px solid rgba(102, 126, 234, 0.8);
    outline-offset: 2px;
}

/* Bande "En construction" */
.link-item.construction {
    position: relative;
}

.construction-banner {
    position: absolute;
    top: 0;
    left: -20px;
    right: -20px;
    height: 30px;
    background: linear-gradient(45deg, #ff6b35 0%, #ffaa00 100%);
    color: #000;
    font-weight: bold;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(8deg) translateY(15px);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    z-index: 10;
    animation: construction-pulse 2s ease-in-out infinite;
    letter-spacing: 1px;
}

.construction-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 5px,
        rgba(0, 0, 0, 0.1) 5px,
        rgba(0, 0, 0, 0.1) 10px
    );
    border-radius: inherit;
}

@keyframes construction-pulse {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
        transform: rotate(8deg) translateY(15px) scale(1);
    }
    50% { 
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
        transform: rotate(8deg) translateY(15px) scale(1.02);
    }
}

/* Responsive pour la bande de construction */
@media (max-width: 480px) {
    .construction-banner {
        font-size: 0.7rem;
        height: 25px;
        transform: rotate(8deg) translateY(12px);
    }
}