/* ==================== VARIABLES CSS ==================== */
:root {
    --primary-color: #2ecc71;
    --secondary-color: #3498db;
    --dark-bg: #0f1419;
    --light-bg: #1a1f2e;
    --card-bg: #2a2f3f;
    --text-primary: #ffffff;
    --text-secondary: #b0b9cc;
    --border-color: #404854;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --discord-color: #5865f2;
    --youtube-color: #ff0000;
    --minecraft-color: #92bd1e;
    --transition: 0.3s ease;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--light-bg) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.logo:hover {
    color: var(--secondary-color);
    transform: scale(1.05);
}

.logo-img {
    height: 50px;
    width: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(46, 204, 113, 0.3));
    transition: var(--transition);
}

.logo:hover .logo-img {
    filter: drop-shadow(0 0 15px rgba(46, 204, 113, 0.6));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* ==================== HERO SECTION ==================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px);
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(46, 204, 113, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInLeft 0.8s ease;
}

.hero-content .subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: slideInLeft 0.8s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: slideInLeft 0.8s ease 0.4s backwards;
    flex-wrap: wrap;
}

.hero-background {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 300px;
}

.floating-block {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 3px solid var(--primary-color);
    box-shadow: 0 10px 40px rgba(46, 204, 113, 0.3);
    animation: float 6s ease-in-out infinite;
}

.floating-block:nth-child(1) {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
    background: linear-gradient(135deg, var(--primary-color), #27ae60);
}

.floating-block:nth-child(2) {
    top: 50%;
    right: 20%;
    animation-delay: 2s;
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
}

.floating-block:nth-child(3) {
    top: 70%;
    right: 5%;
    animation-delay: 4s;
    background: linear-gradient(135deg, #2ecc71, var(--secondary-color));
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 1;
    }
    25% {
        transform: translateY(-40px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translateY(-60px) rotate(180deg) scale(1);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-40px) rotate(270deg) scale(1.1);
    }
    100% {
        transform: translateY(0px) rotate(360deg) scale(1);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #27ae60);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: #000;
    transform: translateY(-3px);
}

.btn-copy {
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-copy:hover {
    background: #27ae60;
    transform: scale(1.05);
}

.btn-social {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #000 !important;
    text-decoration: none;
    display: inline-flex;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
    justify-content: center;
}

.btn-social:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3);
}

/* ==================== SECTION SERVEUR ==================== */
.serveur {
    padding: 80px 20px;
    position: relative;
}

.serveur::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 80%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.serveur h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--primary-color);
}

.serveur-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.info-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(42, 47, 63, 0.8) 100%);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.info-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(46, 204, 113, 0.2);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #000;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.info-card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.ip-address {
    background: var(--dark-bg);
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.versions-list {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.version-badge {
    background: var(--primary-color);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.description {
    font-size: 0.9rem;
}

/* ==================== SECTION COMMUNAUTÉ ==================== */
.communaute {
    padding: 80px 20px;
    background: linear-gradient(180deg, rgba(15, 20, 25, 0.5) 0%, rgba(42, 47, 63, 0.5) 100%);
}

.communaute h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
    font-size: 1.1rem;
}

.communaute-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.comunaute-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.comunaute-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(46, 204, 113, 0.2);
}

.card-header {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.discord-header {
    background: linear-gradient(135deg, var(--discord-color), #4752c4);
}

.youtube-header {
    background: linear-gradient(135deg, var(--youtube-color), #cc0000);
}

.minecraft-header {
    background: linear-gradient(135deg, var(--minecraft-color), #7da71f);
}

.card-body {
    padding: 30px;
}

.card-body h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.card-body p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ==================== SECTION REJOINDRE ==================== */
.rejoindre {
    padding: 80px 20px;
}

.rejoindre h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--primary-color);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(42, 47, 63, 0.8) 100%);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.step:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.2);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
}

.step strong {
    color: var(--primary-color);
}

/* ==================== SECTION RÈGLES ==================== */
.regles {
    padding: 80px 20px;
    background: linear-gradient(180deg, rgba(15, 20, 25, 0.5) 0%, rgba(42, 47, 63, 0.5) 100%);
}

.regles h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--primary-color);
}

.regles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.regle-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.regle-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.regle-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.regle-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.regle-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==================== SECTION WIKI PROMO ==================== */
.wiki-promo {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(52, 152, 219, 0.1));
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.wiki-promo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.wiki-promo-text h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.wiki-promo-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.wiki-features {
    list-style: none;
    margin-bottom: 30px;
}

.wiki-features li {
    padding: 10px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.wiki-features li i {
    color: var(--primary-color);
    font-weight: bold;
}

.wiki-promo-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wiki-icon {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #000;
    box-shadow: 0 20px 60px rgba(46, 204, 113, 0.3);
    animation: float 4s ease-in-out infinite;
}

@media (max-width: 768px) {
    .wiki-promo-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .wiki-promo {
        padding: 40px 20px;
    }

    .wiki-icon {
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }

    .wiki-promo-text h2 {
        font-size: 1.8rem;
    }
}

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(180deg, rgba(15, 20, 25, 0.8) 0%, var(--dark-bg) 100%);
    border-top: 1px solid var(--border-color);
    padding: 60px 20px 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    transform: scale(1.15) rotate(10deg);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==================== NOTIFICATION ==================== */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--primary-color);
    color: #000;
    padding: 15px 25px;
    border-radius: 8px;
    display: none;
    z-index: 2000;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3);
    animation: slideIn 0.5s ease;
}

.notification.show {
    display: block;
}

@keyframes slideIn {
    from {
        right: -300px;
        opacity: 0;
    }
    to {
        right: 20px;
        opacity: 1;
    }
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-background {
        display: none;
    }

    h2 {
        font-size: 2rem !important;
    }

    .serveur-info,
    .communaute-grid,
    .regles-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .info-card {
        padding: 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .logo {
        font-size: 1.5rem;
    }

    .hero {
        min-height: calc(100vh - 60px);
        padding: 40px 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .serveur,
    .communaute,
    .rejoindre,
    .regles {
        padding: 40px 20px;
    }

    .info-card,
    .step,
    .regle-item,
    .comunaute-card {
        padding: 20px;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .notification {
        right: 10px;
        left: 10px;
        width: auto;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}
