@media (max-width: 992px) {
    nav {
        border-radius: 0;
        box-shadow: 0;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        top: 100%;
        left: 0;
        position: absolute;
        width: 100%;
        background: var(--bg-darker);
        padding: 1rem;
        border: 1px solid var(--neon-blue);
        border-top: none;
        border-radius: 0;
        box-shadow: 0 10px 20px rgba(27, 172, 255, 0.25);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* Animation du bouton hamburger */
    .hamburger {
        transition: transform 0.3s ease, background 0.3s ease;
        display: block;
    }

    .hamburger[aria-expanded="true"] {
        transform: rotate(90deg);
        background: var(--neon-blue);
        color: var(--bg-dark);
    }

    .glitched-text-yellow::after {
        left: -0.05em;             
        width: 100%;         
        text-align: inherit;
    }

    .hero h1 {
        font-size: 5rem;
    }
} 

/* Responsive Sponsor pour petits écrans */
@media (max-width: 600px) {
    .sponsors-grid {
        grid-template-columns: 1fr;
    }

    .sponsor-card {
        min-height: 200px;
        padding: 1rem;
    }

    .sponsor-title {
        font-size: 1.1rem;
    }

    .sponsor-logo {
        width: 120px;
        height: 80px;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-darker);
        padding: 1rem;
        box-shadow: 0 5px 20px rgba(27, 172, 255, 0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .hero h1 {
        font-size: 4.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    .timeline-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

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

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

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .archive-logo {
        width: 50px;
        height: 50px;
    }

    #sponsors   .section-title .glitched-text,
    #inscription .section-title .glitched-text {
        font-size: clamp(1.1rem, 6vw, 2rem);
        letter-spacing: 0em;        
        line-height: 1.1;
        white-space: nowrap;                 
    }

    #sponsors   .section-title .glitched-text::before,
    #sponsors   .section-title .glitched-text::after,
    #inscription .section-title .glitched-text::before,
    #inscription .section-title .glitched-text::after {
        font-size: inherit;               
        white-space: inherit;
    }
}


@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.8rem;
        line-height: 1.2;
        word-break: break-word;
    }

    .section-title {
        font-size: 1.6rem;
        line-height: 1.2;
        text-align: center;
        letter-spacing: 0em;
    }

    .about-text h3 {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    .about-text p,
    .info-card p,
    .timeline-item p,
    .faq-answer-content p,
    .archive-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        word-break: break-word;
    }

    .cta-button, .submit-btn, .inscription-text {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }


    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .archives-gallery {
        grid-template-columns: 1fr;
    }

    /* ESPACEMENTS GLOBAUX */
    .section {
        padding: 3rem 1rem;
    }

    .timeline-item h3 {
        font-size: 1.2rem;
        letter-spacing: 0em;
    }

    .timeline-item p {
        font-size: 0.90rem;
        letter-spacing: 0em;
    }
    .glitched-text-yellow::after {
        left: -0.05em;             
        width: 100%;         
        text-align: inherit;
    }

    .contact-container h2 {
        font-size: 1.3rem;
        text-align: left;
    }
}

@media (max-width: 400px) {

    .container {
        padding: 0 0;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        word-break: break-word;
    }

    .section-title {
        font-size: 1.3rem;
        line-height: 1.2;
        text-align: center;
        letter-spacing: 0em;
    }

    .about-text h3 {
        font-size: 1rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    .about-text p,
    .info-card p,
    .timeline-item p,
    .faq-answer-content p,
    .archive-content p {
        font-size: 0.75rem;
        line-height: 1.6;
        word-break: break-word;
    }

    .cta-button, .submit-btn, .inscription-text {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }


    .about-content {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature {
        padding: 2rem;
    }

    .feature h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--neon-blue);
    letter-spacing: 0.03em;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .archives-gallery {
        grid-template-columns: 1fr;
    }

    /* ESPACEMENTS GLOBAUX */
    .section {
        padding: 3rem 1rem;
    }

    .timeline-item h3 {
        font-size: 1.2rem;
        letter-spacing: 0em;
    }

    .timeline-item p {
        font-size: 0.90rem;
        letter-spacing: 0em;
    }
    .glitched-text-yellow::after {
        left: -0.05em;             
        width: 100%;         
        text-align: inherit;
    }

    .contact-container h2 {
        font-size: 1.3rem;
        text-align: left;
    }

    .archive-logo {
        width: 30px;
        height: 30px;
    }

    .archive-logo-card {
        min-height: 60px;
    }
}