@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
:root {
    --primary: #ff6b35;
    --secondary: #5b21b6;
    --dark: #1a103c;
    --light: #f0e6ff;
    --accent: #00b4d8;
}

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

body {
    font-family: 'Press Start 2P', monospace;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1 {
    font-size: 2.7rem; /* Réduit de 3rem à 2.7rem */
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
    margin-bottom: 1rem;
    border-bottom: 1px solid #5b21b6;
    box-sizing: border-box;
    margin: 0px 10% 2rem 10%;
}

h3 {
    font-size: 18px;
    color: var(--accent);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

h4 {
    font-size: 14px;
    color: var(--accent);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    h1 {
        margin: 0px 0px 20px 0px;
        font-size: 2rem;
    }

}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    z-index: 1;
}

/* Canvas Background */
.background--custom {
    background-color: var(--dark);
    opacity: 0.8;
    width: 100%;
    height: 100%;
    position: fixed;
    overflow: hidden;
    top: 0;
    left: 0;
    z-index: -2;
}

canvas#canvas {
    z-index: -1;
    position: absolute;
    overflow: hidden;
    width: 100%;
    height: 100%;
    transform: scale(2) translateY(0%);
    --gradient-color-1: #5b21b6; 
    --gradient-color-2: #1a103c; 
    --gradient-color-3: #ff6b35;  
    --gradient-color-4: #00b4d8;
    --gradient-speed: 0.000008;
}

/* Header */
header {
    background-color: rgba(26, 16, 60, 0.9);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 2px 15px rgba(255, 107, 53, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 66px;
    padding: 0;
}

.logo {
    font-size: 24px;
    color: var(--primary);
    text-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary);
    letter-spacing: 2px;
    flex: 0 0 auto;
}

.logo-img {
    width: auto;
    height: 66px;
}

.nav-links {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex: 1;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 12px;
    position: relative;
    padding: 5px 10px;
    transition: all 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 5px var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.play-btn {
    display: block;
    padding: 8px 20px;
    background-color: var(--primary);
    color: var(--dark);
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    margin-left: 20px;
    flex: 0 0 auto;
}

.play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.play-btn:hover::before {
    left: 100%;
}

.play-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.5);
}


/* Hero Section (Smaller for internal pages) */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px; /* Ajout de padding pour créer l'espace */
}

.hero-small {
    min-height: 40vh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px; /* Ajout de padding pour créer l'espace */
}

.hero-content {
    width: 100%;
    text-align: center;
    z-index: 1;
    padding: 10vh 20px 0px 20px;
}

.hero-title {
    text-align: center;
    z-index: 1;
    font-size: 32px;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
    letter-spacing: 2px;
}

.hero-logo {
    width: 12vw; /* Réduit de 15vw à 12vw */
    height: auto;
    margin: 30px 0px 30px 0px;
    /* animation: pulse 2s infinite; */
}

.hero-logo-small {
    width: 6vw; /* Réduit de 15vw à 12vw */
    height: auto;
    margin: 30px 0px 30px 0px;
    animation: pulse 2s infinite;
}

/* Mobile Menu Responsive Updates */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 84px;
        left: 0;
        width: 100%;
        background-color: var(--dark);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        border-bottom: 3px solid var(--primary);
        z-index: 1000;
    }
    
    .play-btn {
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .hero-logo-small {
        width: 20vw; /* Réduit de 15vw à 12vw */
    }
}

.language-selector {
    position: relative;
    cursor: pointer;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--dark);
    border: 1px solid var(--primary);
    padding: 10px;
    z-index: 1000;
}

.language-selector:hover .language-dropdown {
    display: block;
}

.language-dropdown a {
    display: block;
    padding: 5px;
    color: var(--light);
    text-decoration: none;
}

.language-dropdown a:hover {
    color: var(--primary);
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.star {
    position: absolute;
    background-color: var(--light);
    width: 2px;
    height: 2px;
    border-radius: 50%;
    animation: twinkle 2s infinite;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 3px 1px rgba(240, 230, 255, 0.7);
    }
} 

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}


/* Main Content */
.main-content {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.ctf-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 30px;
    background-color: rgba(91, 33, 182, 0.2);
    border: 2px solid var(--primary);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    backdrop-filter: blur(5px);
}

.ctf-info h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--primary);
    text-shadow: 0 0 5px var(--primary);
    letter-spacing: 2px;
}

.ctf-info p {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 2;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: var(--dark);
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.5);
}

@media (max-width: 768px) {
    .ctf-info {
        padding: 5px;
    }
}

/* Footer */
footer {
    background-color: rgba(26, 16, 60, 0.9);
    padding: 40px 0;
    border-top: 3px solid var(--primary);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}


.footer-content > div {
    width: 30vw;
}

.footer-logo {
    width: 100px;
    margin-bottom: 20px;
}

.footer-info {
    text-align: center;
}

.footer-social {
    text-align: center;
}

.footer-info h3, .footer-social h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-info p {
    font-size: 12px;
    margin-bottom: 10px;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-social-icons a {
    color: var(--light);
    font-size: 36px;
    transition: all 0.3s;
}

.footer-social-icons a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--light);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .footer-content > div {
        width: 80%;
    }
}

.all-rights-reserved {
    margin-top: 20px;
    font-size: 11px;
    color: #aaa;
    letter-spacing: 0.5px;
    text-align: center; 
    font-weight: 300;
    opacity: 0.8;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: var(--dark);
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.5);
}

@media (max-width: 768px) {
    .hero-logo {
        width: 25vw; /* Réduit de 30vw à 25vw pour mobile */
    }
    
    .nav-links {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    
    .footer-info, .footer-social {
        width: 100%;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-logo {
        width: 80px;
    }

    .all-rights-reserved {
        text-align: center;
        font-size: 10px;
        margin-top: 25px;
        padding: 0 15px;
    }

}

/* Challenge Content */
.challenge-content {
    padding: 50px 0;
}

.challenge-section {
    background-color: rgba(91, 33, 182, 0.2);
    border: 2px solid var(--primary);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.challenge-section h2 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 20px;
    text-shadow: 0 0 5px var(--primary);
}

.challenge-section p {
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.challenge-image {
    width: 100%;
    max-width: 600px;
    margin: 30px auto;
    display: block;
}

.challenge-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0px 20vh 0px;
}

.category-card {
    background-color: rgba(0, 180, 216, 0.2);
    border: 2px solid var(--accent);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}
.category-card p {
    text-shadow: 0 0 3px #000000;
}


.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 180, 216, 0.5);
}

.category-card h3 {
    font-size: 18px;
    color: var(--accent);
    margin-bottom: 10px;
}

.category-card p {
    font-size: 12px;
}

.register-btn {
    display: block;
    width: 80%;
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: var(--primary);
    color: var(--dark);
    text-align: center;
    text-decoration: none;
    font-size: 20px;
    border-radius: 8px;
    border: 3px solid var(--light);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.register-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.register-btn:hover::before {
    left: 100%;
}

.register-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .challenge-categories {
        grid-template-columns: 1fr;
    }
    .challenge-section {
        padding: 10px;
    }
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--accent);
    border: 4px solid var(--primary);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.7);
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::after {
    right: -10px;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px;
    background-color: rgba(91, 33, 182, 0.2);
    border: 2px solid var(--accent);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.3);
}

.timeline-content h3 {
    font-size: 16px;
    color: var(--accent);
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 12px;
}

@media (max-width: 768px) {
    .timeline {
        left: 31px;
        position: unset;
        max-width: unset;
        margin: unset;
        padding: unset;
    }

    .timeline::after {
        display: none;
    }
    
    .timeline-item {
        width: 100%;
        position: inherit;
        padding-left: 70px;
        padding-right: 25px;
        font-size: 1rem;
    }

    .timeline-content * {
        font-size: 1rem;
    }

    .timeline-item::after {
        content: '';
        display: none;
    }
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.info-box {
    background-color: rgba(91, 33, 182, 0.2);
    border: 2px solid var(--primary);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.info-box h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--primary);
    text-align: center;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--dark);
    font-size: 18px;
}

.info-text {
    font-size: 12px;
}

.access-box {
    background-color: rgba(91, 33, 182, 0.2);
    border: 2px solid var(--primary);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.access-box h2 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 20px;
    text-shadow: 0 0 5px var(--primary);
    text-align: center;
}

.access-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    flex-direction: column;
}

.access-info {
    margin: auto;
    flex: 1;
    min-width: 250px;
    font-size: 12px;
    line-height: 2;
}

.access-map {
    margin: auto;
    flex: 1;
    min-width: 250px;
    background-color: rgba(91, 33, 182, 0.4);
    border: 2px solid var(--primary);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

/* About Content */
.about-content {
    padding: 50px 0;
}

.about-section {
    background-color: rgba(91, 33, 182, 0.2);
    border: 2px solid var(--primary);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.about-section h2 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 20px;
    text-shadow: 0 0 5px var(--primary);
}

.about-section p {
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.venue-images {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
    justify-content: space-around;
}

.venue-image {
    width: calc(40% - 10px);
    border: 2px solid var(--accent);
    border-radius: 8px;
    overflow: hidden;
}

.venue-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.venue-image:hover img {
    transform: scale(1.05);
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.feature {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 180, 216, 0.1);
    border: 2px solid var(--accent);
    border-radius: 8px;
    transition: all 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 180, 216, 0.5);
}

.feature i {
    font-size: 30px;
    color: var(--accent);
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 10px;
}

.feature p {
    font-size: 12px;
}

.team {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin: 30px 0;
}

.team-member {
    width: 200px;
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    margin-bottom: 15px;
    transition: all 0.3s;
    filter: grayscale(30%);
}

.team-member:hover img {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.5);
    filter: grayscale(0%);
}

.team-member h3 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 5px;
}

.team-member p {
    font-size: 12px;
    color: var(--accent);
}

.schedule {
    background-color: rgba(0, 180, 216, 0.1);
    border: 2px solid var(--accent);
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.schedule-item {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px dashed var(--accent);
    padding-bottom: 15px;
}

.schedule-time {
    width: 150px;
    font-weight: bold;
    color: var(--primary);
}

.schedule-desc {
    flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .venue-image {
        width: 100%;
    }
    
    .feature {
        width: 100%;
    }

    .about-section {
        padding: 10px;
    }
    .about-section > h2 {
        text-align: center;
    }
}


/* Main Content */
.event-name {
    font-size: 2.7rem; /* Réduit de 3rem à 2.7rem */
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
    margin-bottom: 1rem;
}

.event-organizer {
    font-size: 1rem;
    color: var(--light);
    margin-bottom: 3rem;
}

.countdown-container {
    margin-top: 2rem;
}

.countdown-title {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.countdown-box {
    width: 100px;
    height: 100px;
    background-color: rgba(91, 33, 182, 0.3);
    border: 2px solid var(--primary);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
    backdrop-filter: blur(5px);
}

.countdown-value {
    font-size: 2.5rem;
    color: var(--light);
    font-weight: bold;
}

.countdown-label {
    font-size: 0.8rem;
    color: var(--accent);
    margin-top: 5px;
}

.countdown-separator {
    font-size: 2.5rem;
    color: var(--primary);
    text-shadow: 0 0 5px var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 -5px;
}

@media (max-width: 768px) {

    .countdown-value {
        font-size: 1rem;
        color: var(--light);
        font-weight: bold;
    }

    .countdown-label {
        display: none;
    }

    .countdown-separator {
        font-size: 1rem;
    }

    .double-line {
        display: none;
    }

    .countdown-label-days {
        display: block;
    }

    .countdown-value-days {
        margin-right: 10px;
    }


    .countdown-box {
        width: auto;
        height: auto;
        background-color: unset;
        border: none;
        border-radius: 0px;
        display: flex;
        flex-direction:row;
        align-items: center;
        justify-content: center;
        box-shadow: none;
    }

    .countdown {
        width: auto;
        height: auto;
        padding: 20px 0px 20px 0px;
        background-color: rgba(91, 33, 182, 0.3);
        border: 2px solid var(--primary);
        border-radius: 8px;
        align-items: center;
        box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
        backdrop-filter: blur(5px);
        box-sizing: border-box;
    }
}



/* Sponsors Section */
.sponsors {
    padding: 50px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.section-sponsors {
    padding: 0px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.sponsors h2 {
    font-size: 32px;
    margin-bottom: 50px;
    color: var(--primary);
    text-shadow: 0 0 5px var(--primary);
}

.section-sponsors h2 {
    font-size: 32px;
    margin-bottom: 50px;
    color: var(--primary);
    text-shadow: 0 0 5px var(--primary);
}

.sponsor-category h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--accent);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
        
.sponsor-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    align-items: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 1));
}

.sponsor-logo-principal-partner {
    width: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-logo-silver {
    width: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px;
}

.sponsor-logo-partner {
    width: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px;
}      

/* .sponsor-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.5);
}
    */

@media (max-width: 768px) {

    .ctf-info h2 {
        font-size: 24px;
    }
    
    .ctf-info p {
        font-size: 12px;
    }

    .sponsor-logo-silver {
        width: 55vw;
        margin-left: 0;
    }

    .sponsor-logo-principal-partner {
        width: 65vw;
        margin: 0;
    }

    .sponsor-logo-partner {
        width: 30vw;
        margin: 0;
    }
}




.plane {
z-index: 0;
height: 25%;
width: 100%;
bottom: 0;
position: fixed;
overflow: hidden;
border-top: 2px solid #FE50B1;
box-shadow: 0 0 150px -60px #FE50B1;
background: linear-gradient(0deg, rgba(24,7,39,0.7) 60%, #4E0646 100%);
pointer-events: none;
}

.plane .vlines {
width: 100%;
height: 100%;
position: absolute;
}

.plane .vlines .line {
box-shadow: 0 0 5px #FF91CF;
}

.plane .vlines .left-lines {
width: 50%;
height: 100%;
position: absolute;
border-right: 1px solid #FE50B1;
}

.plane .vlines .left-lines .line {
right: 0%;
width: 2px;
height: 100%;
position: absolute;
background: #FE50B1;
}

.plane .vlines .left-lines .line:nth-child(1) {
right: 12%;  
transform-origin: 100% 0%;
transform: skewX(-45deg);
}

.plane .vlines .left-lines .line:nth-child(2) {
right: 24%;  
transform-origin: 100% 0%;
transform: skewX(-55deg);
}

.plane .vlines .left-lines .line:nth-child(3) {
right: 36%;  
transform-origin: 100% 0%;
transform: skewX(-65deg);
}

.plane .vlines .left-lines .line:nth-child(4) {
right: 48%;  
transform-origin: 100% 0%;
transform: skewX(-75deg);
}

.plane .vlines .left-lines .line:nth-child(5) {
right: 60%;  
transform-origin: 100% 0%;
transform: skewX(-85deg);
}

.plane .vlines .right-lines {
width: 50%;
height: 100%;
right: 0;
position: absolute;
border-left: 1px solid #FE50B1;
}

.plane .vlines .right-lines .line {
right: 0%;
width: 2px;
height: 100%;
position: absolute;
background: #FE50B1;
}

.plane .vlines .right-lines .line:nth-child(1) {
left: 12%;  
transform-origin: 0% 0%;
transform: skewX(45deg);
}

.plane .vlines .right-lines .line:nth-child(2) {
left: 24%;  
transform-origin: 0% 0%;
transform: skewX(55deg);
}

.plane .vlines .right-lines .line:nth-child(3) {
left: 36%;  
transform-origin: 0% 0%;
transform: skewX(65deg);
}

.plane .vlines .right-lines .line:nth-child(4) {
left: 48%;  
transform-origin: 0% 0%;
transform: skewX(75deg);
}

.plane .vlines .right-lines .line:nth-child(5) {
left: 60%;  
transform-origin: 0% 0%;
transform: skewX(85deg);
}

.plane .lines {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
perspective: 400px;
perspective-origin: 50% 0%;
transform-style: preserve-3d;
}

.plane .lines .line {
width: 100%;
height: 2px;
position: absolute;
bottom: 90%;
background: #FE50B1;
animation: linesSlide 3s ease-in infinite both;
box-shadow: 0 0 5px #FF91CF;
transform: rotateX(70deg);
}

.plane .lines .line:nth-child(1) {
animation-delay: 0.3s;
}

.plane .lines .line:nth-child(2) {
animation-delay: 0.6s;
}

.plane .lines .line:nth-child(3) {
animation-delay: 0.9s;
}

.plane .lines .line:nth-child(4) {
animation-delay: 1.2s;
}

.plane .lines .line:nth-child(5) {
animation-delay: 1.5s;
}

.plane .lines .line:nth-child(6) {
animation-delay: 1.8s;
}

.plane .lines .line:nth-child(7) {
animation-delay: 2.1s;
}

.plane .lines .line:nth-child(8) {
animation-delay: 2.4s;
}

.plane .lines .line:nth-child(9) {
animation-delay: 2.7s;
}

.plane .lines .line:nth-child(10) {
animation-delay: 3s;
}

@keyframes linesSlide {
    from {
        bottom: 100%;
        height: 2px;
        opacity: 0.8;
    }
    to {
        bottom: -10px;
        height: 10px; 
        opacity: 0.2;
    }
}



/* BANNIERE MUSIC */

/* Bannière audio stylisée transformée en top banner */
#audio-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 16, 60, 0.95);
    border-bottom: 2px solid var(--primary);
    color: var(--light);
    padding: 10px 0;
    display: none;
    z-index: 9999;
    font-family: 'Press Start 2P', monospace;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5), 0 0 40px rgba(91, 33, 182, 0.3);
    animation: glitch 1s ease-in-out infinite alternate;
    backdrop-filter: blur(5px);
}

#audio-banner::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    bottom: -2px;
    border-bottom: 1px solid var(--accent);
    pointer-events: none;
}

.banner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
}

.banner-icon {
    font-size: 18px;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
}

#audio-banner p {
    margin: 0;
    font-size: 14px;
    text-align: center;
    color: var(--light);
    text-shadow: 0 0 5px var(--light);
    letter-spacing: 1px;
}

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

.banner-button {
    padding: 8px 15px;
    font-size: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Press Start 2P', monospace;
    position: relative;
    overflow: hidden;
}

.banner-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.banner-button:hover::before {
    left: 100%;
}

.banner-button:hover {
    transform: translateY(-2px);
}

.yes-button {
    background-color: var(--primary);
    color: var(--dark);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.yes-button:hover {
    box-shadow: 0 3px 8px rgba(255, 107, 53, 0.7);
}

.no-button {
    background-color: rgba(91, 33, 182, 0.7);
    color: var(--light);
    border: 1px solid var(--accent);
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.3);
}

.no-button:hover {
    box-shadow: 0 3px 8px rgba(0, 180, 216, 0.5);
}

/* Ajuster le header pour tenir compte de la bannière */
header {
    transition: margin-top 0.3s ease;
}

header.with-banner {
    margin-top: 58px; /* Ajustez cette valeur en fonction de la hauteur de votre bannière */
}

/* Responsive pour les mobiles */
@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }
    
    #audio-banner p {
        font-size: 12px;
    }
    
    .banner-buttons {
        gap: 10px;
    }
    
    .banner-button {
        padding: 6px 12px;
        font-size: 10px;
    }
    
    header.with-banner {
        margin-top: 110px; /* Ajustez pour la hauteur de la bannière en vue mobile */
    }
}

/* Music Credit */

.music-credits-box {
    background-color: rgba(91, 33, 182, 0.2);
    border: 2px solid var(--primary);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.music-credits-box h2 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 20px;
    text-shadow: 0 0 5px var(--primary);
    text-align: center;
}

.music-credits-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.music-icon {
    font-size: 24px;
    color: var(--accent);
    animation: pulse 2s infinite;
}

.composer-name {
    color: var(--accent);
    text-shadow: 0 0 5px var(--accent);
    font-weight: bold;
    letter-spacing: 1px;
}

/* Responsive design for mobile phones */
@media (max-width: 768px) {
    .music-credits-box {
        padding: 15px;
    }
    
    .music-credits-box h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .music-credits-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .music-credits-content p {
        font-size: 11px;
        text-align: center;
        line-height: 1.6;
    }
    
    .music-icon {
        font-size: 20px;
    }
}