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

:root {
    --black: #000;
    --black-alt: #111;
    --gray-dark: #1a1a1a;
    --gray: #2a2a2a;
    --gray-light: #3a3a3a;
    --gray-text: #cccccc;
    --yellow: #f1c40f;
    --purple: #9b59b6;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--black);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray);
}

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

.logo-text {
    font-size: 28px;
    font-weight: bold;
    color: var(--white);
    letter-spacing: 2px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    color: var(--gray-text);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

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

.nav-separator {
    color: var(--gray-text);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

.btn-primary {
    background-color: var(--yellow);
    color: var(--black);
}

.btn-primary:hover {
    background-color: #d4ac0d;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--yellow);
    border: 2px solid var(--yellow);
}

.btn-secondary:hover {
    background-color: var(--yellow);
    color: var(--black);
}

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

.btn-outline:hover {
    background-color: var(--white);
    color: var(--black);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--black) 0%, var(--gray-dark) 100%);
    text-align: center;
    padding: 100px 20px;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.2;
    letter-spacing: -1px;
    min-height: 1.2em; /* Éviter le saut de hauteur pendant l'animation */
    white-space: nowrap; /* Empêcher le retour à la ligne */
}

.hero-title .typewriter-text {
    display: inline-block;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--gray-text);
    margin: 0 auto;
    transition: opacity 0.8s ease-in;
    white-space: nowrap; /* Afficher sur une seule ligne si l'écran le permet */
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

/* Text colors */
.text-yellow {
    color: var(--yellow);
}

.text-purple {
    color: var(--purple);
}

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

/* Sections */
.section {
    padding: 100px 20px;
}

.section-black {
    background-color: var(--black);
}

.section-gray {
    background-color: var(--gray);
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 20px;
    color: var(--gray-text);
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Game Info Section */
.game-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 60px;
}

.game-info-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray-text);
}

.game-info-text p {
    margin-bottom: 20px;
}

.game-info-box {
    background-color: var(--gray-dark);
    padding: 40px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.info-content strong {
    display: block;
    font-size: 20px;
    color: var(--white);
    margin-bottom: 8px;
}

.info-content p {
    color: var(--gray-text);
    font-size: 16px;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.benefit-card {
    text-align: center;
    padding: 40px 30px;
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.benefit-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.benefit-text {
    font-size: 16px;
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Target Section */
.target-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.target-card {
    text-align: center;
    padding: 40px 30px;
}

.target-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.target-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.target-text {
    font-size: 16px;
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Format Section */
.format-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.format-text {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.format-paragraph {
    color: var(--gray-text);
}

.format-subtitle {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.format-paragraph p {
    font-size: 18px;
    line-height: 1.8;
}

.format-sessions {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.session-card {
    background-color: var(--gray-dark);
    padding: 30px;
    border-radius: 8px;
}

.session-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.session-card p {
    color: var(--gray-text);
    margin-bottom: 15px;
    font-size: 16px;
}

.session-list {
    list-style: none;
    color: var(--gray-text);
}

.session-list li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.session-list li:before {
    content: "•";
    color: var(--yellow);
    position: absolute;
    left: 0;
    font-size: 20px;
}

/* CTA Section */
.section-cta {
    background: linear-gradient(135deg, var(--black) 0%, var(--gray-dark) 100%);
    text-align: center;
    padding: 120px 20px;
}

.cta-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 22px;
    color: var(--gray-text);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    .cta-subtitle {
        max-width: none;
        white-space: nowrap;
    }
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Titles */
.page-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.2;
}

/* Contact Page */
.section-contact {
    padding: 100px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-intro {
    font-size: 18px;
    color: var(--gray-text);
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.8;
}

.contact-form {
    background-color: var(--gray-dark);
    padding: 50px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    background-color: var(--black);
    border: 2px solid var(--gray);
    border-radius: 4px;
    color: var(--white);
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--yellow);
}

.form-group textarea {
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    color: var(--gray-text);
    font-weight: normal;
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    cursor: pointer;
    accent-color: var(--yellow);
}

/* Inscription Page */
.section-inscription {
    padding: 100px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.inscription-intro {
    font-size: 18px;
    color: var(--gray-text);
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.8;
}

.inscription-form {
    background-color: var(--gray-dark);
    padding: 50px;
    border-radius: 8px;
}

/* Footer */
.footer {
    background-color: var(--black-alt);
    padding: 40px 20px;
    text-align: center;
    color: var(--gray-text);
    border-top: 1px solid var(--gray);
}

/* Animations pour les messages */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .section-title {
        font-size: 40px;
    }

    .game-info-grid,
    .format-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .benefits-grid,
    .target-grid {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 42px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .btn-primary {
        order: 2;
        width: 100%;
    }

    .hero {
        min-height: 80vh;
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-subtitle {
        white-space: normal;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 32px;
    }

    .page-title {
        font-size: 40px;
    }

    .cta-title {
        font-size: 36px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .contact-form,
    .inscription-form {
        padding: 30px 20px;
    }

    .game-info-box {
        padding: 30px 20px;
    }

    .benefit-card,
    .target-card {
        padding: 30px 20px;
    }

    .hero-title {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
    }

    .page-title {
        font-size: 32px;
    }

    .cta-title {
        font-size: 28px;
    }
}

