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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000000;
}

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

/* Navigation */
.navbar {
    background-color: #000000;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo {
    height: 40px;
    width: auto;
    border-radius: 5px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-link:hover {
    color: #cccccc;
    background-color: #333333;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Section Hero */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #cccccc;
}

.competition-poster {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

/* Section Compétition */
.competition-section {
    padding: 80px 0;
    background-color: #111111;
}

.competition-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffffff;
}

.competition-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #ffffff;
}

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

.category {
    background-color: #222222;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #333333;
}

.category h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.category p {
    color: #cccccc;
}

/* Section Inscription */
.inscription-section {
    padding: 80px 0;
    background-color: #000000;
}

.inscription-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffffff;
}

.inscription-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: #111111;
    padding: 3rem;
    border-radius: 10px;
    border: 1px solid #333333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #333333;
    border-radius: 5px;
    background-color: #222222;
    color: #ffffff;
    font-size: 1rem;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="date"]:focus,
.form-group input[type="file"]:focus {
    outline: none;
    border-color: #666666;
    background-color: #333333;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #ffffff;
}

.radio-label input[type="radio"] {
    margin: 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    color: #ffffff;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
}

.category-details {
    background-color: #222222;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    border: 1px solid #333333;
}

.category-details h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: #333333;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 2rem;
}

.submit-btn:hover {
    background-color: #555555;
}

/* Section À propos */
.about-section {
    padding: 80px 0;
    background-color: #111111;
}

.about-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

.about-section p {
    text-align: center;
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.app-download {
    text-align: center;
}

.app-download h3 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.download-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #333333;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #555555;
}

/* Section Partenaires */
.partners-section {
    padding: 80px 0;
    background-color: #000000;
}

.partners-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffffff;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.partner {
    text-align: center;
    padding: 1rem;
    background-color: #111111;
    border-radius: 10px;
    border: 1px solid #333333;
}

.partner img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

/* Footer */
.footer {
    background-color: #111111;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #333333;
}

.footer p {
    color: #cccccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #000000;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(255, 255, 255, 0.1);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .competition-section h2,
    .inscription-section h2,
    .about-section h2,
    .partners-section h2 {
        font-size: 2rem;
    }

    .inscription-form {
        padding: 2rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .categories {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }
}

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

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .inscription-form {
        padding: 1.5rem;
    }

    .competition-section h2,
    .inscription-section h2,
    .about-section h2,
    .partners-section h2 {
        font-size: 1.8rem;
    }
}

/* Animation pour le succès */
.success-message {
    background-color: #004d00;
    color: #ffffff;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
    border: 1px solid #006600;
}

.error-message {
    background-color: #4d0000;
    color: #ffffff;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
    border: 1px solid #660000;
}
