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

:root {
    /* Couleurs du logo */
    --bg-dark: #2C3E50;
    --blue-light: #3498DB;
    --blue-dark: #2980B9;
    --green-light: #2ECC71;
    --green-dark: #27AE60;
    
    /* Couleurs texte */
    --text-white: #FFFFFF;
    --text-gray: #BDC3C7;
    --text-muted: #95A5A6;
    
    /* Espacements */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    
    /* Typographie */
    --font: 'Space Grotesk', -apple-system, sans-serif;
    --font-size-base: 18px;
    --font-size-sm: 0.9rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 3rem;
    --font-size-4xl: 4rem;
    
    /* Transitions */
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-white);
    background: var(--bg-dark);
    overflow: hidden;
    height: 100vh;
}

/* Slides Container */
.slides-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    margin-top: 80px;
    height: calc(100vh - 80px);
}

.slides-wrapper {
    display: flex;
    width: 300vw;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.slide {
    width: 100vw;
    height: 100%;
    flex-shrink: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.slides-wrapper[data-slide="0"] {
    transform: translateX(0);
}

.slides-wrapper[data-slide="1"] {
    transform: translateX(-100vw);
}

.slides-wrapper[data-slide="2"] {
    transform: translateX(-200vw);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
    padding: var(--space-sm) 0;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo {
    height: 50px;
    width: auto;
    display: block;
}

.brand-name {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: -0.5px;
}

.version-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(52, 152, 219, 0.15);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 12px;
    font-size: var(--font-size-sm);
    color: var(--blue-light);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 400;
    font-size: var(--font-size-base);
    transition: color var(--transition);
}

.nav-link:hover {
    color: var(--text-white);
}

.nav-link.active {
    color: var(--text-white);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--green-light);
}

.btn-play {
    padding: 0;
    background: transparent;
    border: none;
    color: var(--green-light);
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all var(--transition);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-play::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-light);
    transition: width var(--transition);
}

.btn-play:hover {
    color: var(--text-white);
}

.btn-play:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) 0;
    overflow: hidden;
    background: rgba(52, 73, 94, 0.4);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(52, 73, 94, 0.5) 0%, rgba(44, 62, 80, 0.3) 100%);
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(52, 152, 219, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 152, 219, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-quote {
    font-size: var(--font-size-2xl);
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-white);
    font-style: italic;
    margin: 0;
    padding: var(--space-lg);
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: floatQuote 6s ease-in-out infinite;
}

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

.hero-quote .highlight {
    color: var(--green-light);
    font-weight: 500;
    text-shadow: 0 0 20px rgba(46, 204, 113, 0.3);
}

.hero-stats {
    margin-top: var(--space-xl);
    display: flex;
    justify-content: center;
}

.stats-card {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 12px;
    padding: var(--space-sm) var(--space-lg);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-sm);
    backdrop-filter: blur(10px);
}

.stats-label {
    font-size: var(--font-size-sm);
    color: var(--text-gray);
    font-weight: 400;
}

.stats-value {
    font-size: var(--font-size-2xl);
    color: var(--blue-light);
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-quote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 120px;
    color: rgba(46, 204, 113, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.hero-quote::after {
    content: '"';
    position: absolute;
    bottom: -60px;
    right: 0;
    font-size: 120px;
    color: rgba(46, 204, 113, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-base);
    font-family: var(--font);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-light) 0%, var(--green-dark) 100%);
    color: var(--text-white);
    box-shadow: 0 4px 20px rgba(46, 204, 113, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(46, 204, 113, 0.4);
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-lg);
    width: 100%;
}

/* Sections */
.section {
    padding: var(--space-xl) 0;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-white);
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-gray);
    margin-bottom: var(--space-lg);
}

/* About */
.about {
    background: rgba(26, 37, 47, 0.3);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.concept-single-block {
    background: rgba(52, 152, 219, 0.05);
    border: 1px solid rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    padding: var(--space-lg);
    backdrop-filter: blur(10px);
    transition: all var(--transition);
}

.concept-single-block:hover {
    border-color: rgba(52, 152, 219, 0.3);
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.1);
}

.concept-single-block p {
    font-size: var(--font-size-sm);
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: var(--space-sm);
}

.concept-single-block p:last-child {
    margin-bottom: 0;
}

.concept-single-block p strong {
    color: var(--text-white);
    font-weight: 600;
}

.concept-signature {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-style: italic;
    padding: var(--space-sm);
}

/* Join */
.join {
    background: linear-gradient(180deg, transparent 0%, rgba(52, 152, 219, 0.05) 100%);
}

.join-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.join-intro-title {
    font-size: var(--font-size-xl);
    color: var(--text-white);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.join-intro {
    font-size: var(--font-size-base);
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.join-discord-link {
    color: var(--blue-light);
    text-decoration: none;
    transition: color var(--transition);
    font-weight: 500;
}

.join-discord-link:hover {
    color: var(--green-light);
    text-decoration: underline;
}

.join-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.join-secondary-actions {
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
}

.btn-text-small {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-decoration: none;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn-text-small:hover {
    color: var(--blue);
    border-color: rgba(52, 152, 219, 0.35);
    background: rgba(52, 152, 219, 0.06);
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: var(--space-md);
    background: rgba(52, 152, 219, 0.08);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 8px;
    color: var(--text-white);
    font-size: var(--font-size-base);
    font-family: var(--font);
    transition: all var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--blue-light);
    background: rgba(52, 152, 219, 0.12);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-error {
    color: #e74c3c;
    font-size: var(--font-size-sm);
    margin-top: var(--space-xs);
    min-height: 20px;
    display: none;
}

.form-error.show {
    display: block;
}

.form-input.error {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 37, 47, 0.8);
    border-top: 1px solid rgba(52, 152, 219, 0.1);
    padding: var(--space-sm) 0;
    z-index: 999;
    backdrop-filter: blur(10px);
    min-height: 40px;
    display: flex;
    align-items: center;
}

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

.footer-copyright {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.footer-logo {
    height: 20px;
    width: auto;
    opacity: 0.7;
}

.footer-copyright span {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.footer-discord {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color var(--transition);
    text-decoration: none;
    padding: 4px;
    min-width: 28px;
    min-height: 28px;
}

.footer-discord:hover {
    color: var(--blue-light);
}

.footer-discord svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }

    .nav {
        width: 100%;
        justify-content: flex-end;
        gap: var(--space-sm);
        flex-wrap: wrap;
    }

    .hero-quote {
        font-size: var(--font-size-xl);
        padding: var(--space-md);
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .brand-name {
        font-size: var(--font-size-lg);
    }

    .logo {
        height: 40px;
    }

    .nav-link {
        font-size: var(--font-size-sm);
    }

    .slides-container {
        margin-top: 70px; /* hauteur approx. du header */
        margin-bottom: 56px; /* hauteur approx. du footer */
        height: auto; /* laisser la hauteur s'adapter au contenu sur mobile/tablette */
    }

    .hero {
        padding: var(--space-lg) 0;
    }

    .join-form {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }

    body {
        overflow: auto;
        height: auto;
    }

    .hero {
        padding: calc(var(--space-lg) + 70px) 0 var(--space-lg);
    }
    
    .hero-logo {
        height: 120px;
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .brand {
        gap: var(--space-xs);
    }
    
    .brand-name {
        font-size: var(--font-size-base);
    }
}