/* Reset et variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Optimisations pour mobile */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
}

:root {
    --primary-color: #7289da;
    --secondary-color: #5865f2;
    --accent-color: #ff6b6b;
    --dark-bg: #1a1a1a;
    --darker-bg: #0f0f0f;
    --light-text: #ffffff;
    --gray-text: #b9bbbe;
    --card-bg: #2f3136;
    --card-hover: #36393f;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.nav-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(114, 137, 218, 0.5);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(114, 137, 218, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(114, 137, 218, 0); }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover,
.nav-links a:active {
    color: var(--primary-color);
    background: rgba(114, 137, 218, 0.1);
    transform: translateY(-2px);
}

/* Optimisations tactiles pour mobile */
@media (hover: none) and (pointer: coarse) {
    .nav-links a:hover {
        transform: none;
    }
    
    .nav-links a:active {
        background: rgba(114, 137, 218, 0.2);
        transform: scale(0.98);
    }
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-direction: column;
}

.hero-avatar::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(114, 137, 218, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow 4s ease-in-out infinite alternate;
}

@keyframes glow {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.8; }
}

/* Nametag Minecraft */
.minecraft-nametag {
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.minecraft-nametag::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(0, 0, 0, 0.85);
}

.minecraft-nametag:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.9);
}

/* Responsive pour le nametag */
@media (max-width: 768px) {
    .minecraft-nametag {
        font-size: 16px;
        padding: 6px 14px;
        top: -60px;
    }
    
    .minecraft-nametag::after {
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid rgba(0, 0, 0, 0.85);
    }
}

.minecraft-skin {
    width: 300px;
    height: 600px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.minecraft-skin:hover {
    transform: scale(1.05) translateY(-10px);
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #7289da, #ff6b6b);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    position: relative;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-text h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--gradient-primary);
    animation: expandWidth 2s ease-out 1s forwards;
}

@keyframes expandWidth {
    to { width: 100%; }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat::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;
}

.stat:hover::before {
    left: 100%;
}

.stat:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

/* Optimisations tactiles pour les stats */
@media (hover: none) and (pointer: coarse) {
    .stat:hover {
        transform: none;
    }
    
    .stat:active {
        transform: scale(0.98);
        background: rgba(255, 255, 255, 0.15);
    }
}

.stat i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.stat:hover i {
    transform: scale(1.2);
    color: var(--accent-color);
}

.stat span:first-of-type {
    font-size: 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.stat:hover span:first-of-type {
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-text);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--darker-bg);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: scanline 3s ease-in-out infinite;
}

@keyframes scanline {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.about h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--gray-text);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.skills h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--light-text);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.9s forwards;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 1rem;
    border-radius: 8px;
}

.skill-name {
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.skill-item:hover .skill-name {
    color: var(--primary-color);
}

.skill-stars {
    display: flex;
    gap: 0.5rem;
}

.skill-stars i {
    color: #ffd700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    animation: starTwinkle 2s ease-in-out infinite;
}

.skill-item:hover .skill-stars i {
    transform: scale(1.2);
    animation: starPulse 0.5s ease-in-out;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes starPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1.2); }
}

/* Discord Widget */
.discord-widget {
    padding: 6rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
}

.discord-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.discord-widget::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="discord-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23discord-pattern)"/></svg>');
    opacity: 0.3;
}

.discord-widget h2 {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 3rem;
    color: var(--light-text);
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.discord-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.discord-info {
    background: rgba(47, 49, 54, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.discord-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7289da, #5865f2, #43b581, #7289da);
    background-size: 200% 100%;
    animation: gradientShift 4s ease-in-out infinite;
    border-radius: 25px 25px 0 0;
    opacity: 0.8;
}

.discord-info:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(114, 137, 218, 0.3);
}

.discord-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.discord-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: pulse 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(114, 137, 218, 0.2);
}

.discord-info:hover .discord-icon {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(114, 137, 218, 0.4);
    border-color: #43b581;
}

.discord-details h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 700;
    background: linear-gradient(45deg, #fff, #7289da);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.discord-info:hover .discord-details h3 {
    background: linear-gradient(45deg, #7289da, #43b581);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.02);
}

.discord-details p {
    color: #43b581;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.discord-details p::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #43b581;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.discord-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.discord-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.discord-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(114, 137, 218, 0.1), transparent);
    transition: left 0.6s ease;
}

.discord-stat-card:hover::before {
    left: 100%;
}

.discord-stat-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(114, 137, 218, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.staff-card {
    background: linear-gradient(135deg, rgba(67, 181, 129, 0.08) 0%, rgba(67, 181, 129, 0.03) 100%);
    border-color: rgba(67, 181, 129, 0.2);
}

.staff-card:hover {
    background: linear-gradient(135deg, rgba(67, 181, 129, 0.12) 0%, rgba(67, 181, 129, 0.06) 100%);
    border-color: #43b581;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.stat-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.discord-stat-card:hover .stat-icon::before {
    transform: translateX(100%);
}

.discord-stat-card:hover .stat-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(114, 137, 218, 0.3);
}

.stat-icon i {
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.staff-card .stat-icon {
    background: linear-gradient(135deg, #43b581, #4ade80);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-text);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.discord-stat-card:hover .stat-number {
    color: var(--primary-color);
    transform: scale(1.02);
}

.staff-card:hover .stat-number {
    color: #43b581;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.discord-stat-card:hover .stat-label {
    color: var(--light-text);
}

.discord-features {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 1rem;
    border-radius: 10px;
}

.feature-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.04);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-item:hover i {
    color: #43b581;
    transform: scale(1.1);
}

.feature-item span {
    font-size: 0.9rem;
    color: var(--gray-text);
    font-weight: 500;
    transition: color 0.4s ease;
}

.feature-item:hover span {
    color: var(--light-text);
}

.discord-join-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    text-decoration: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.discord-join-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.7s ease;
}

.discord-join-btn:hover::before {
    left: 100%;
}

.discord-join-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), #43b581);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(114, 137, 218, 0.3);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.discord-join-btn:hover .btn-glow {
    opacity: 1;
}

.discord-join-btn i {
    font-size: 1.3rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.discord-join-btn:hover i {
    transform: scale(1.1);
}

.discord-join-btn span {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.discord-join-btn:hover span {
    transform: scale(1.02);
}



/* Projects Section */
.projects {
    padding: 6rem 0;
    background: var(--dark-bg);
    position: relative;
}

.projects::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.projects h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    min-height: 200px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 1;
    animation: fadeInUp 1s ease-out forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }
.project-card:nth-child(7) { animation-delay: 0.7s; }
.project-card:nth-child(8) { animation-delay: 0.8s; }
.project-card:nth-child(9) { animation-delay: 0.9s; }
.project-card:nth-child(10) { animation-delay: 1.0s; }
.project-card:nth-child(11) { animation-delay: 1.1s; }
.project-card:nth-child(12) { animation-delay: 1.2s; }
.project-card:nth-child(13) { animation-delay: 1.3s; }
.project-card:nth-child(14) { animation-delay: 1.4s; }
.project-card:nth-child(15) { animation-delay: 1.5s; }
.project-card:nth-child(16) { animation-delay: 1.6s; }
.project-card:nth-child(17) { animation-delay: 1.7s; }
.project-card:nth-child(18) { animation-delay: 1.8s; }
.project-card:nth-child(19) { animation-delay: 1.9s; }
.project-card:nth-child(20) { animation-delay: 2.0s; }
/* Pour les serveurs au-delà de 20, utiliser un délai fixe */
.project-card:nth-child(n+21) { animation-delay: 2.1s; }

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

/* Optimisations tactiles pour les cartes de projet */
@media (hover: none) and (pointer: coarse) {
    .project-card:hover {
        transform: none;
    }
    
    .project-card:active {
        transform: scale(0.98);
        background: rgba(255, 255, 255, 0.08);
    }
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    transition: all 0.3s ease;
    object-fit: cover;
}

.project-card:hover .project-logo {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.project-name {
    font-size: 1.3rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-card:hover .project-name {
    color: var(--primary-color);
}

.project-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.status-online {
    color: #43b581;
}

.status-offline {
    color: #f04747;
}

.discord-status {
    color: #7289da;
    background: rgba(114, 137, 218, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(114, 137, 218, 0.3);
    margin-bottom: 1rem;
}

.discord-status i {
    color: #7289da;
    font-size: 1rem;
}

.project-card:hover .project-status {
    transform: scale(1.05);
}

.project-card:hover .discord-status {
    background: rgba(114, 137, 218, 0.2);
    border-color: rgba(114, 137, 218, 0.5);
}

.project-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.discord-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.player-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-text);
    transition: all 0.3s ease;
}

.online-count {
    color: #43b581;
}

.online-count i {
    color: #43b581;
}

.project-card:hover .player-count {
    color: var(--light-text);
}

.project-card:hover .online-count {
    color: #43b581;
}

.player-count i {
    transition: transform 0.3s ease;
}

.project-card:hover .player-count i {
    transform: scale(1.2);
    color: var(--primary-color);
}

.project-card:hover .online-count i {
    color: #43b581;
}

/* Project Role Badges */
.project-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0 1rem;
}

.project-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.project-role-badge i {
    font-size: 0.7rem;
}

.project-card:hover .project-role-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Social Media Section */
.social {
    padding: 6rem 0;
    background: var(--darker-bg);
    position: relative;
}

.social::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    animation: scanline 4s ease-in-out infinite;
}

.social h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 20px;
    text-decoration: none;
    color: var(--light-text);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.social-card:nth-child(1) { animation-delay: 0.1s; }
.social-card:nth-child(2) { animation-delay: 0.2s; }
.social-card:nth-child(3) { animation-delay: 0.3s; }
.social-card:nth-child(4) { animation-delay: 0.4s; }
.social-card:nth-child(5) { animation-delay: 0.5s; }
.social-card:nth-child(6) { animation-delay: 0.6s; }

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-card:hover::before {
    opacity: 0.1;
}

.social-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

/* Optimisations tactiles pour les cartes sociales */
@media (hover: none) and (pointer: coarse) {
    .social-card:hover {
        transform: none;
    }
    
    .social-card:active {
        transform: scale(0.98);
        background: rgba(255, 255, 255, 0.08);
    }
}

.social-card i {
    font-size: 3rem;
    transition: all 0.3s ease;
}

.social-card:hover i {
    transform: scale(1.3) rotate(5deg);
}

.social-card span {
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-card:hover span {
    transform: scale(1.1);
}

/* Social media specific colors */
.instagram i { color: #e4405f; }
.snapchat i { color: #fffc00; }
.youtube i { color: #ff0000; }
.tiktok i { color: #000000; }
.twitter i { color: #1da1f2; }
.twitch i { color: #9146ff; }

.social-card:hover.instagram i { color: #ff6b9d; }
.social-card:hover.snapchat i { color: #ffff00; }
.social-card:hover.youtube i { color: #ff4444; }
.social-card:hover.tiktok i { color: #333333; }
.social-card:hover.twitter i { color: #4fc3f7; }
.social-card:hover.twitch i { color: #b366ff; }

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.footer p {
    color: var(--gray-text);
    transition: color 0.3s ease;
}

.footer:hover p {
    color: var(--primary-color);
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    /* Navigation mobile */
    .nav-links {
        display: none;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-logo {
        font-size: 1.2rem;
    }
    
    /* Hero Section mobile */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .minecraft-skin {
        width: 180px;
        height: 360px;
    }
    
    .minecraft-nametag {
        font-size: 14px;
        padding: 6px 12px;
        top: -50px;
    }
    
    /* Stats mobile */
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .stat {
        padding: 1rem;
        min-width: 120px;
    }
    
    .stat i {
        font-size: 1.5rem;
    }
    
    .stat span:first-of-type {
        font-size: 1.2rem;
    }
    
    /* About Section mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .about h2 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .skills h3 {
        font-size: 1.5rem;
    }
    
    .skill-item {
        padding: 0.8rem 0;
    }
    
    .skill-name {
        font-size: 1rem;
    }
    
    /* Discord Widget mobile */
    .discord-widget h2 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    
    .discord-container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .discord-info {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .discord-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .discord-icon {
        width: 60px;
        height: 60px;
    }
    
    .discord-details h3 {
        font-size: 1.3rem;
    }
    
    .discord-details p {
        font-size: 1rem;
    }
    
    .discord-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .discord-stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-icon i {
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .discord-features {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .feature-item {
        flex-direction: row;
        justify-content: center;
        gap: 0.8rem;
        padding: 0.8rem;
    }
    
    .feature-item i {
        font-size: 1.2rem;
    }
    
    .feature-item span {
        font-size: 0.85rem;
    }
    
    .discord-join-btn {
        padding: 1.2rem;
        font-size: 1rem;
    }
    
    /* Projects mobile */
    .projects h2 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .project-card {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .project-header {
        gap: 0.8rem;
    }
    
    .project-logo {
        width: 40px;
        height: 40px;
    }
    
    .project-name {
        font-size: 1.1rem;
    }
    
    .project-role-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    /* Social mobile */
    .social h2 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .social-card {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .social-card i {
        font-size: 2.5rem;
    }
    
    .social-card span {
        font-size: 1rem;
    }
    
    /* Footer mobile */
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* Extra small devices */
    .container {
        padding: 0 0.8rem;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .minecraft-skin {
        width: 150px;
        height: 300px;
    }
    
    .minecraft-nametag {
        font-size: 12px;
        padding: 4px 10px;
        top: -40px;
    }
    
    .stat {
        padding: 0.8rem;
        min-width: 100px;
    }
    
    .stat i {
        font-size: 1.3rem;
    }
    
    .stat span:first-of-type {
        font-size: 1rem;
    }
    
    .about h2,
    .discord-widget h2,
    .projects h2,
    .social h2 {
        font-size: 1.8rem;
    }
    
    .discord-info {
        padding: 1rem;
    }
    
    .discord-icon {
        width: 50px;
        height: 50px;
    }
    
    .discord-details h3 {
        font-size: 1.1rem;
    }
    
    .discord-stats-grid {
        gap: 0.8rem;
    }
    
    .discord-stat-card {
        padding: 0.8rem;
    }
    
    .stat-icon {
        width: 35px;
        height: 35px;
    }
    
    .stat-icon i {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .social-card {
        padding: 1.2rem;
    }
    
    .social-card i {
        font-size: 2rem;
    }
    
    .social-card span {
        font-size: 0.9rem;
    }
    
    .project-card {
        padding: 1.2rem;
    }
    
    .project-logo {
        width: 35px;
        height: 35px;
    }
    
    .project-name {
        font-size: 1rem;
    }
    
    .project-role-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
    }
    
    /* Amélioration de la lisibilité */
    .motd-container {
        padding: 0.5rem;
        margin: 0.5rem 0;
    }
    
    .motd-line {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .motd-line:first-child {
        font-size: 0.8rem;
    }
}

/* Optimisations spécifiques pour les très petits écrans */
@media (max-width: 360px) {
    .hero-text h1 {
        font-size: 1.6rem;
    }
    
    .minecraft-skin {
        width: 120px;
        height: 240px;
    }
    
    .stat {
        min-width: 80px;
        padding: 0.6rem;
    }
    
    .stat i {
        font-size: 1.1rem;
    }
    
    .stat span:first-of-type {
        font-size: 0.9rem;
    }
    
    .discord-info,
    .project-card,
    .social-card {
        padding: 1rem;
    }
    
    .discord-icon {
        width: 45px;
        height: 45px;
    }
    
    .social-card i {
        font-size: 1.8rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Ripple effect animation */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Effets de particules */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

/* Effets de hover améliorés */
.project-card, .social-card, .discord-info {
    position: relative;
}

.project-card::after,
.social-card::after,
.discord-info::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover::after,
.social-card:hover::after,
.discord-info:hover::after {
    opacity: 1;
}

/* Animation de typewriter pour le titre */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Effet de glitch pour les éléments */
@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

.glitch:hover {
    animation: glitch 0.3s ease-in-out;
}

/* Animation de pulsation pour les éléments importants */
@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.heartbeat {
    animation: heartbeat 2s ease-in-out infinite;
} 

/* MOTD Container et Lignes */
.motd-container {
    margin: 1rem 0;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.motd-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 8px 8px 0 0;
}

.motd-line {
    color: var(--gray-text);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0.25rem 0;
    padding: 0.25rem 0;
    text-align: center;
    font-family: 'Courier New', monospace;
    position: relative;
    transition: all 0.3s ease;
}

.motd-line:first-child {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.motd-line:not(:first-child) {
    color: var(--gray-text);
    font-size: 0.8rem;
    opacity: 0.8;
}

.motd-line:hover {
    color: var(--accent-color);
    transform: translateX(2px);
}

/* Animation pour les lignes du MOTD */
.motd-line {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

.motd-line:nth-child(1) { animation-delay: 0.1s; }
.motd-line:nth-child(2) { animation-delay: 0.2s; }
.motd-line:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Amélioration des cartes de projet */
.project-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color), var(--accent-color));
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
    border-radius: 16px 16px 0 0;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-card:hover .motd-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-color: rgba(255, 255, 255, 0.15);
}

.project-card:hover .motd-line {
    color: var(--text-color);
}

/* Responsive pour le MOTD */
@media (max-width: 768px) {
    .motd-container {
        padding: 0.5rem;
        margin: 0.75rem 0;
    }
    
    .motd-line {
        font-size: 0.8rem;
    }
    
    .motd-line:first-child {
        font-size: 0.85rem;
    }
} 