:root {
    /* Colors */
    --primary: #9b59b6;
    --primary-light: #a66bbe;
    --primary-dark: #8e44ad;
    --bg-dark: #0a0a1a;
    --bg-light: #16213e;
    --text-light: #ffffff;
    --text-muted: #888888;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(155, 89, 182, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Sizes */
    --sidebar-width: 250px;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-light) 100%);
}

/* Logo et titre du site */
.site-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    animation: fadeIn 1.2s ease-out;
}

.site-name {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #a33ce7, var(--primary), #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
    text-transform: uppercase;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(155, 89, 182, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(155, 89, 182, 0.8));
    }
}

.logo-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-light));
    padding: 2px;
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.4);
    position: relative;
    animation: pulse 3s infinite alternate;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    font-size: 2rem;
    color: var(--primary-light);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 3px 12px rgba(155, 89, 182, 0.3);
    }
    100% {
        transform: scale(1.02);
        box-shadow: 0 5px 18px rgba(155, 89, 182, 0.5);
    }
}

.header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    background: linear-gradient(45deg, var(--primary) 0%, #7028e4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
    animation: fadeIn 1.5s ease-out, float 6s ease-in-out infinite;
}

.header h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-dark), var(--primary-light));
    border-radius: 50px;
    animation: widthExpand 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.header p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeIn 1.8s ease-out;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}

.social-card {
    background-color: var(--bg-light);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    animation-fill-mode: both;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.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::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, 
        transparent, 
        transparent, 
        var(--primary)
    );
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.social-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.social-card:hover::before {
    opacity: 0.3;
}

.social-card .inner {
    position: relative;
    z-index: 1;
    background-color: var(--bg-light);
    border-radius: 12px;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.social-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.4);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.social-icon::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), transparent);
    top: 0;
    left: -100%;
    transition: all var(--transition-slow);
}

.social-card:hover .social-icon::after {
    left: 100%;
}

.social-icon i {
    font-size: 30px;
    color: var(--text-light);
    transition: all var(--transition-normal);
}

.social-card:hover .social-icon {
    transform: scale(1.1);
}

.social-card:hover .social-icon i {
    transform: scale(1.1) rotate(10deg);
}

.social-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--text-light), #d9d9d9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all var(--transition-normal);
}

.mirror-effect {
    transform: scaleX(-1) !important; 
    display: inline-block;
    animation: pulse-mirror 2s infinite alternate;
}

@keyframes pulse-mirror {
    0% {
        transform: scaleX(-1);
    }
    100% {
        transform: scaleX(-1) scale(1.1);
    }
}

/* Ajouter ceci à la section style */
.mirror-icon i {
    transform: scaleX(-1);
}

.social-card:hover .mirror-icon i {
    transform: scaleX(-1) scale(1.1) rotate(10deg);
}

.social-card:hover .social-title {
    letter-spacing: 1px;
}

.social-description {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.join-button {
    padding: 10px 20px;
    border-radius: 50px;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary));
    color: var(--text-light);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

.join-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all var(--transition-slow);
}

.join-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.5);
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
}

.join-button:hover::before {
    left: 100%;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes widthExpand {
    0% {
        width: 0;
    }
    100% {
        width: 80px;
    }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    animation: float-particle 15s infinite linear;
    box-shadow: 0 0 10px var(--primary);
    opacity: 0.6;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .site-name {
        font-size: 2.5rem;
    }
    
    .logo-container {
        width: 100px;
        height: 100px;
    }
}