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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #2a1529;
    color: #f8f0f8;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Color variables */
:root {
    --fdm-dark: #2a1529;
    --fdm-darker: #1f0f1e;
    --fdm-light: #f8f0f8;
    --fdm-muted: #d4a8d4;
    --fdm-pink: #e91e63;
    --fdm-pink-hover: #c2185b;
    --fdm-accent: #f06292;
    --fdm-accent-hover: #ec407a;
    --fdm-green: #4caf50;
    --fdm-green-hover: #388e3c;
    --fdm-border: #4a2249;
    --fdm-gradient: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::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;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.btn-primary {
    background: var(--fdm-gradient);
    color: white;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c2185b 0%, #e91e63 100%);
    box-shadow: 0 12px 35px rgba(233, 30, 99, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--fdm-light);
    border: 2px solid var(--fdm-border);
}

.btn-outline:hover {
    background-color: var(--fdm-darker);
    border-color: var(--fdm-pink);
    color: var(--fdm-pink);
}

/* Header */
.header {
    background: rgba(31, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--fdm-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--fdm-gradient);
    border-radius: 50%;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.1) rotate(5deg);
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--fdm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--fdm-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--fdm-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--fdm-pink);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--fdm-dark) 0%, var(--fdm-darker) 50%, var(--fdm-dark) 100%);
    padding: 8rem 0;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(233, 30, 99, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(240, 98, 146, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(233, 30, 99, 0.05) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-logo {
    margin-bottom: 3rem;
}

.hero-logo-img {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.3);
    border: 3px solid var(--fdm-pink);
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { box-shadow: 0 10px 30px rgba(233, 30, 99, 0.3); }
    50% { box-shadow: 0 20px 50px rgba(233, 30, 99, 0.6); }
}

.hero-logo-img:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 25px 60px rgba(233, 30, 99, 0.8);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: titleSlideIn 1s ease-out;
}

@keyframes titleSlideIn {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.title-line {
    color: var(--fdm-light);
    font-size: 0.6em;
    font-weight: 400;
    opacity: 0.9;
}

.title-highlight {
    background: var(--fdm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(233, 30, 99, 0.5);
}

.hero-description {
    font-size: 1.3rem;
    color: var(--fdm-muted);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    animation: descriptionFadeIn 1s ease-out 0.3s both;
}

@keyframes descriptionFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    animation: actionsFadeIn 1s ease-out 0.6s both;
}

@keyframes actionsFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 3rem;
    background: rgba(31, 15, 30, 0.8);
    border-radius: 2rem;
    border: 1px solid var(--fdm-border);
    backdrop-filter: blur(10px);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--fdm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--fdm-muted);
    font-weight: 500;
}

.stat-divider {
    color: var(--fdm-pink);
    font-size: 1.5rem;
    opacity: 0.5;
}

/* Server Profile Section */
.server-profile {
    background: rgba(31, 15, 30, 0.5);
    padding: 6rem 0;
    position: relative;
}

.server-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(233, 30, 99, 0.03) 50%, transparent 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--fdm-light);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--fdm-gradient);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--fdm-muted);
    font-weight: 400;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: rgba(31, 15, 30, 0.8);
    border: 1px solid var(--fdm-border);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(233, 30, 99, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    border-color: var(--fdm-pink);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(233, 30, 99, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--fdm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--fdm-muted);
    font-weight: 500;
}

.server-info-card {
    background: rgba(31, 15, 30, 0.8);
    border: 1px solid var(--fdm-border);
    border-radius: 1rem;
    padding: 3rem;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-icon {
    font-size: 1.5rem;
}

.info-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--fdm-light);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--fdm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--fdm-muted);
    line-height: 1.6;
}

.info-description {
    padding-top: 2rem;
    border-top: 1px solid var(--fdm-border);
}

.info-description h4 {
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--fdm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.info-description p {
    color: var(--fdm-light);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Events Section */
.events {
    padding: 6rem 0;
    background: var(--fdm-dark);
}

.events-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--fdm-light);
    margin-bottom: 2rem;
}

.section-icon {
    font-size: 1.5rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.event-card {
    background: rgba(31, 15, 30, 0.8);
    border: 1px solid var(--fdm-border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(233, 30, 99, 0.1), transparent);
    transition: left 0.6s ease;
}

.event-card:hover::before {
    left: 100%;
}

.event-card:hover {
    border-color: var(--fdm-pink);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(233, 30, 99, 0.2);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.event-badge {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-gaming {
    background: var(--fdm-gradient);
}

.badge-upcoming {
    background: var(--fdm-gradient);
}

.event-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--fdm-light);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--fdm-muted);
    font-size: 0.95rem;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.event-description {
    color: var(--fdm-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.event-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--fdm-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.event-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.event-actions .btn {
    width: 100%;
    justify-content: center;
    font-weight: 600;
}

.btn-participate {
    background: var(--fdm-gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-participate:hover {
    background: linear-gradient(135deg, #c2185b 0%, #e91e63 100%);
}

.btn-participating {
    background: var(--fdm-green);
    color: white;
}

.btn-participating:hover {
    background: var(--fdm-green-hover);
}

.btn-download {
    background: transparent;
    color: var(--fdm-pink);
    border: 2px solid var(--fdm-pink);
}

.btn-download:hover {
    background: var(--fdm-pink);
    color: white;
}

.no-events {
    text-align: center;
    padding: 4rem 0;
}

.no-events-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
}

.no-events h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--fdm-light);
    margin-bottom: 1rem;
}

.no-events p {
    color: var(--fdm-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--fdm-darker);
    border-top: 1px solid var(--fdm-border);
    padding: 3rem 0;
    border-radius: 20px;
    margin: 2rem;
    border: 2px solid var(--fdm-border);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    max-width: 1200px;
    margin: 2rem auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo-container {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--fdm-gradient);
    border-radius: 50%;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.footer-logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    background: var(--fdm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: var(--fdm-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-title {
    font-weight: 600;
    color: var(--fdm-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--fdm-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--fdm-pink);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.contact-icon {
    color: var(--fdm-pink);
    font-size: 1.1rem;
}

.contact-item span:last-child {
    color: var(--fdm-muted);
}

.footer-social {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
}

.social-link {
    color: var(--fdm-muted);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 0.75rem; /* au lieu de 50% */
    border: 1px solid var(--fdm-border);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
}

.social-link:hover {
    color: var(--fdm-pink);
    border-color: var(--fdm-pink);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--fdm-border);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--fdm-muted);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--fdm-darker);
    margin: 15% auto;
    padding: 0;
    border: 1px solid var(--fdm-border);
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--fdm-border);
}

.modal-header h3 {
    color: var(--fdm-light);
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    color: var(--fdm-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--fdm-pink);
}

.modal-body {
    padding: 2rem;
}

.modal-body p {
    color: var(--fdm-muted);
    margin-bottom: 1rem;
}

.modal-body input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--fdm-border);
    border-radius: 0.5rem;
    background-color: var(--fdm-dark);
    color: var(--fdm-light);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.modal-body input:focus {
    outline: none;
    border-color: var(--fdm-pink);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.2);
}

.modal-note {
    font-size: 0.875rem;
    color: var(--fdm-muted);
    font-style: italic;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--fdm-border);
}

.modal-footer .btn {
    padding: 0.75rem 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-nav {
        gap: 1rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 1rem;
        padding: 1rem 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .event-card {
        padding: 1.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-divider {
        display: none;
    }
}

.responsive-logo {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Participation counter animation */
.participation-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(76, 175, 80, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    color: var(--fdm-green);
    animation: counterPulse 2s ease-in-out infinite;
}

@keyframes counterPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Success notification styling */
.notification-success {
    background: linear-gradient(135deg, var(--fdm-green) 0%, #66bb6a 100%);
}

/* Centrage du logo dans le hero */
.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}

/* Taille plus grande et ajustement responsif si nécessaire */
.hero-logo-img {
    width: 14rem;
    height: 14rem;
}
