@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --space-deep: #0a0e23;
    --stellar-blue: #16213e;
    --quantum-teal: #00f5d4;
    --pulsar-pink: #f15bb5;
    --cosmic-purple: #9b5de5;
    --starlight: #e2f3ff;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--space-deep);
    color: var(--starlight);
    line-height: 1.6;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--stellar-blue) transparent;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(155, 93, 229, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(0, 245, 212, 0.1) 0%, transparent 25%);
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 5rem;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(10, 14, 35, 0.8);
    border-bottom: 1px solid rgba(0, 245, 212, 0.1);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--starlight);
    text-decoration: none;
    background: linear-gradient(90deg, var(--quantum-teal), var(--pulsar-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
}


/* ===== BUTTON STYLES ===== */
.cta-button {
    padding: 0.7rem 1.5rem;
    background: linear-gradient(45deg, var(--cosmic-purple), var(--pulsar-pink));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(241, 91, 181, 0.3);
}

.secondary-button {
    padding: 0.7rem 1.5rem;
    background: transparent;
    color: var(--quantum-teal);
    border: 1px solid var(--quantum-teal);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

a {
    color: var(--quantum-teal);
    text-decoration: none;
}

.secondary-button:hover {
    background: rgba(0, 245, 212, 0.1);
    transform: translateY(-3px);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 0 5%;
    padding-top: 8rem;
    width: 100%;
    justify-content: center;
}

.hero-content {
    max-width: 600px;
    margin-bottom: 0 !important;
}

.hero-logo img {
    max-width: 100%;
    height: auto;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(90deg, var(--quantum-teal), var(--pulsar-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-family: var(--font-body);
}

.p {
    font-size: clamp(1rem, 2.2vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    font-family: var(--font-body);
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* ===== CTF SECTION ===== */
.ctf-section {
    padding: 5%;
    padding-top: 2%;
    margin-top: 0 !important;
}

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--starlight);
}

.ctf-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.ctf-tab {
    padding: 0.8rem 1.5rem;
    background: transparent;
    color: var(--starlight);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    position: relative;
}

.ctf-tab.active {
    background: rgba(0, 245, 212, 0.1);
    color: var(--quantum-teal);
}

.ctf-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--quantum-teal);
    transition: var(--transition);
}

.ctf-tab:hover::after, .ctf-tab.active::after {
    width: 100%;
}

.ctf-search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.ctf-search-input {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--quantum-teal);
    background: rgba(22, 33, 62, 0.6);
    color: var(--starlight);
    font-family: var(--font-body);
    font-size: 1rem;
    width: 100%;
    transition: var(--transition);
}

.ctf-search-input:focus {
    outline: none;
    border-color: var(--pulsar-pink);
    box-shadow: 0 0 10px rgba(241, 91, 181, 0.3);
}

.ctf-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 0 auto;
}

.ctf-card {
    background: rgba(22, 33, 62, 0.6);
    border-radius: 15px;
    padding-top: 2.3rem;
    padding-bottom: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    transition: var(--transition);
    border: 1px solid rgba(0, 245, 212, 0.1);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ctf-countdown {
    position: absolute;
    top: 5px;
    left: 20px;          
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--pulsar-pink);
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.ctf-card:hover {
    transform: translateY(-5px);
    border-color: var(--quantum-teal);
    box-shadow: 0 10px 25px rgba(0, 247, 255, 0.2);
}

.ctf-status {
    position: absolute;
    top: 5px;
    right: 10px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ctf-card.upcoming .ctf-status {
    background: rgba(0, 245, 212, 0.1);
    color: var(--quantum-teal);
}

.ctf-card.past .ctf-status {
    background: rgba(155, 93, 229, 0.1);
    color: var(--cosmic-purple);
}

.ctf-status.ongoing {
    background: rgba(155, 93, 229, 0.1);
    color: var(--pulsar-pink) !important;
    animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
    to {
        visibility: hidden;
    }
}

.ctf-title {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    color: var(--starlight);
    max-width: 79%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    color: #ffffff9d;
}

.ctf-meta {
    font-size: 1rem;
    margin-bottom: 0.2rem !important;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    flex-wrap: nowrap;
}
.ctf-card .ctf-title {
    font-size: 1.3rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ctf-card .ctf-meta {
    display: inline-block;
    max-width: 100%; 
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    
}


.ctf-meta i {
    width: 20px;
    color: var(--quantum-teal);
}

.ctf-meta strong {
    color: var(--quantum-teal);
    font-weight: 500;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    font-size: 1rem;
    white-space: nowrap;
    line-height: 1;          
    padding: 0;          
    margin: 0; 
}

.ctf-prizes-oneline {
    display: inline-block;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    flex: 1;
    line-height: 1;          
    margin: 0;
}

.ctf-actions {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.8rem;
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(10, 14, 35, 0.95);
    z-index: 2000;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
}

/* Style général pour tous les modals */
.modal-content {
    background: rgba(22, 33, 62, 0.95);
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    border: 1px solid rgba(0, 245, 212, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    max-height: 95vh;
    overflow: auto;
    margin: 0;
    min-width: 340px;
    width: 100%;
    max-width: 500px;
}

/* Modal de détails CTF plus large et horizontal */
#ctfModal .modal-content {
    min-width: 600px;
    max-width: 800px;
    display: flex;
    flex-direction: column;
}

/* Centrage du modal d'abonnement aussi */
#subscribeModal .modal-content {
    min-width: 340px;
    max-width: 500px;
    margin: 0 auto;
}

.modal-close {
    position: absolute;
    top: 0.4rem;
    right: 0.7rem;
    background: transparent;
    border: none;
    color: var(--starlight);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--pulsar-pink);
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 0.5rem;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--quantum-teal);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.modal-subtitle {
    color: var(--starlight);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.modal-section {
    margin-bottom: 1rem;
    background: rgba(22, 33, 62, 0.3);
    border-radius: 10px;
    
}

.modal-section h3 {
    color: var(--quantum-teal);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(0, 245, 212, 0.2);
    padding-bottom: 0.5rem;
}

.modal-content .ctf-status{
    right: 40px;
    top: 7px;
}
.modal-footer {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--starlight);
    font-weight: 500;
}

.form-group input[type="email"],
.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--quantum-teal);
    background: rgba(22, 33, 62, 0.8);
    color: var(--starlight);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input[type="email"]:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--pulsar-pink);
    box-shadow: 0 0 10px rgba(241, 91, 181, 0.3);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.success-message {
    color: var(--quantum-teal);
    text-align: center;
    margin-top: 1rem;
    display: none;
}

/* ===== FOOTER ===== */
footer {
    background: rgba(10, 14, 35, 0.9);
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid rgba(0, 245, 212, 0.1);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: linear-gradient(90deg, var(--quantum-teal), var(--pulsar-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--starlight);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--quantum-teal);
}

.copyright {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* ===== NOTIFICATION STYLES ===== */
.toast {
    position: fixed;
    top: 3rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem;
    border-radius: 12px;
    background: #00f5d4;
    color: rgb(0, 0, 0);
    font-size: 1rem;
    font-style: bold;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    z-index: 5000;
    align-items: flex-start;
    width: auto;
    text-align: left;
    opacity: 0;
    transition: all 0.4s ease;
    line-height: 1.2;
    text-align: center;
    
}

.toast.show {
    opacity: 0.8;
}
.toast.error {
    background: #ff4d6d;
    color: #fff;
}

.cta-button:disabled {
    background: linear-gradient(45deg, var(--cosmic-purple), var(--pulsar-pink)) !important;
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.cta-button:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* ===== REMINDER BELL STYLES ===== */
.ctf-reminder-toggle {
    position: absolute;
    top: 5px;
    left: 20px;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 2;
    transition: var(--transition);
}

.ctf-reminder-toggle i {
    transition: var(--transition);
}

.ctf-reminder-toggle:hover i {
    color: var(--quantum-teal) !important;
    transform: scale(1.1);
}
.ctf-card[data-has-reminder="true"] .fa-bell-slash {
    display: inline-block !important;
    color: var(--pulsar-pink);
}

/* Reminder Modal Styles */
#reminderModal .modal-content {
    max-width: 500px;
    
}

.reminder-check {
    vertical-align: middle;
    margin-left: 4px;
    font-size: 1.2em;
    color: var(--quantum-teal);
}

.reminder-options {
    display: flex;
    gap: 10px;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.reminder-options button {
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    background: rgba(22, 33, 62, 0.5);
    border: 1px solid var(--quantum-teal);
    color: var(--starlight);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.reminder-options button.active {
    background: var(--quantum-teal);
    color: var(--space-deep);
    font-weight: bold;
}

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

.ctf-reminder-toggle .reminder-bell {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--quantum-teal);
    transition: var(--transition);
}
.ctf-reminder-toggle .reminder-bell-active {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--quantum-teal);
    transition: var(--transition);
}
#reminderModal .modal-content{
    max-width: 90% !important;
    width: auto !important;
    padding: 1rem;
        
}
#reminderModal .modal-content h3{
    font-size: 1rem;
    margin-bottom: 1rem;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#reminderModal .modal-content .cta-button{
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
}

.reminder-count {
    display: inline-block;
    max-width: 150px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 1rem;
    color: var(--quantum-teal);
    margin-left: 0.3rem;
    vertical-align: middle;
}

#privacyModal .modal-content {
    max-width: 800px;
    width: 100%;
    padding: 1rem;
    background: rgba(22, 33, 62, 0.95);
    border-radius: 15px;
    position: relative;
    border: 1px solid rgba(0, 245, 212, 0.2);
}
#legalModal .modal-content {
    max-width: 800px;
    width: 100%;
    padding: 1rem;
    background: rgba(22, 33, 62, 0.95);
    border-radius: 15px;
    position: relative;
    border: 1px solid rgba(0, 245, 212, 0.2);
}

#privacyModal .modal-header h2 {
    letter-spacing: 2px;
}

#privacyModal .modal-content h3 {
    font-size: 1rem;
    color: var(--quantum-teal);
    margin-top: 1rem;
    font-family: var(--font-heading);
    letter-spacing: 2px;
}
#privacyModal .modal-content ul li {
    margin-bottom: 0.5rem;
    color: var(--starlight);
    font-size: 1rem;
    line-height: 1.5;
    margin-left: 1.5rem;
}

#privacyModal p, ul {
    margin-left: 0.55rem;
    text-align: justify;
}

#legalModal .modal-content h3 {
    font-size: 1rem;
    color: var(--quantum-teal);
    margin-top: 1rem;
    font-family: var(--font-heading);
    letter-spacing: 2px;
}
#legalModal p {
    margin-left: 0.55rem;
    text-align: justify;
    font-size: 1rem;
    color: var(--starlight);
}

/* ===== RESPONSIVE STYLES ===== */

@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding-top: 12vh;
        padding-bottom: auto;
    }

    .ctf-section .section-title {
        padding-top: 5vh;
        padding-bottom: 0 !important;
    }
                
}

@media (max-width: 900px) {
    .logo {
        font-size: clamp(1.5rem, 2.5vw, 1.5rem);
    }
    
    .hero-content p {
        text-align: justify;
    }

    header {
        min-height: 4rem;
        height: auto;
    }

    .hero {
        padding-bottom: 3vh;
        padding-top: auto;
    }

    .hero h1 {
        font-size: clamp(1.3rem, 5vw, 3rem);
    }

    .hero p {
        font-size: clamp(1rem, 2.5vw, 1.5rem);
    }

    .hero-logo img {
        padding-top: 2.5rem;
        max-height: 35vh;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    header button.cta-button {
        padding: 0.5rem 1rem;
    }

    .ctf-section .section-title {
        font-size: clamp(1.5rem, 2.5vw, 1.5rem);
        padding-top: 0; 
        padding-bottom: 0;
        margin-bottom: 1.5rem;
    }

    /* CTF Modal */
    #ctfModal .modal-content {
        min-width: 90% !important;
        max-width: 90% !important;
        width: 90%;
        padding: 1rem;
        max-height: 95vh !important;
        align-items: start;
        box-sizing: border-box;
    }
    .ctf-prizes-oneline {
        display: block;
        padding-right: 20px;
    }
    .modal-section{
        max-width: 100%;
        font-size: 0.9rem;
    }
    .modal-content .ctf-meta strong {
        font-size: 0.9rem;
        min-width: 0 !important;
        font-family: Arial, Helvetica, sans-serif;
        letter-spacing: 0.2px;
    }
    .modal-content .ctf-meta {
        font-size: 0.9rem;
        margin-bottom: 0.1rem !important;
    }
    
    #ctfModal .modal-header{
        margin-top: 1vh;
    }
    .ctf-countdown{
        margin-left: 0 !important;
    }
    .secondary-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        text-align: center;
    }
    .modal-content .ctf-status {
        right: 35px;
        top: 5px;
    }
    .toast{
        width: 90%;
    }
    
    #privacyModal .modal-header h2 {
        font-size: clamp(0.9rem, 2.5vw, 1.5rem);       
    }
    #privacyModal .modal-section h3 {
        font-size: clamp(0.9rem, 2.5vw, 1.2rem);
        padding-bottom: 0.5rem;
        margin-top: 1rem; 
    }
    #privacyModal {
        margin: 0.5rem;
        width: 95% !important;
    }
    #privacyModal p, ul {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        text-align: justify;
    }
    #privacyModal .modal-content{
        max-height: 90vh !important;
    }
    #legalModal .modal-header h2 {
        font-size: clamp(0.9rem, 2.5vw, 1.5rem);       
    }
    #legalModal .modal-section h3 {
        font-size: clamp(0.9rem, 2.5vw, 1.2rem);
        padding-bottom: 0.5rem;
        margin-top: 1rem;
        font-family: var(--font-body) !important;
    }
    #legalModal {
        margin: 0.5rem;
        width: 95% !important  ;
    }
    #legalModal .modal-content{
        max-height: 90vh !important;
    }
    #legalModal p{
        font-size: clamp(1rem, 2.5vw, 1rem);
        text-align: justify;        
    }
    .pagination-controls a{
        padding: 0.7rem !important;
        font-size: 0.9rem;
        
    }
    .pagination-controls span{
        padding: 1rem ;
        font-size: 1rem;
    }
    .pagination-controls {
        font-size: 1rem;
        gap: 1rem !important;
    }
    #submitCTFModal{
        padding: 1rem;
    }
    #submitCTFModal h2{
        font-size: 1.3rem;
    }
    #submitCTFModal .form-group input{
        height: 35px;
        border-radius: 5px;
    }
    
}

@media (max-width: 768px) {
    /* Hero Section */
    .hero {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        height: auto;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .hero-logo {
        margin-bottom: 1rem;
        margin-top: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-logo img {
        width: 100%;
        height: auto;
        
        
    }

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

    .hero-buttons {
        justify-content: center;
    }

    /* CTF Cards */
    .ctf-cards {
        grid-template-columns: 1fr;
    }

    /* Search Container */
    .ctf-search-container {
        flex-direction: column;
        padding: 0 1rem;
    }

    .ctf-card .ctf-title {
        font-size: 1.3rem;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .ctf-card .ctf-meta {
        display: inline-block;
        max-width: 100%; 
        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
    }

    /* Footer */
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .modal-title {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }

    .secondary-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        text-align: center;
    }

    #subscribeModal .modal-content {
        padding: 1rem;
        width: 90% !important;
        max-height: 90vh;
        justify-content: center;
        align-items: center;
    }
    #subscribeModal .modal-footer {
        flex-direction: column;
        margin-top: 0;
        justify-items: center;
    }

    
    .modal-header h2 {
        margin-bottom: 0.5rem;
        margin-top: 0.5rem;
        font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    }
    .modal-header p {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
    }
    

    /* Forms */
    .form-group input[type="email"],
    .form-group input[type="text"],
    .form-group select {
        font-size: 0.9;
        padding: 0.8rem 1rem;
        min-width: 0;
        box-sizing: border-box;
    }

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

    .modal-section form {
        padding: 0;
    }

    /* Reminder Options */
    .reminder-options {
        justify-content: center;
    }
    
    .reminder-options button {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    /* Modal Footer Buttons */
    #ctfModal .modal-footer {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem !important;
    }

    #ctfModal .modal-footer .cta-button {
        flex: 1 1 100%;
        order: 1;
        margin-bottom: 0.5rem;
    }

    #ctfModal .modal-footer .secondary-button {
        flex: 1 1 calc(50% - 0.5rem);
        order: 2;
        text-align: center;
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    #PrivacyModal .modal-content h3 {
        font-family: var(--font-body) !important;
    }
    #LegalModal .modal-content h3 {
        font-family: var(--font-body) !important;
    }
    .pagination-controls a{
        padding: 0.5rem !important;
        font-size: 0.7rem !important;
        
    }
    .pagination-controls span{
        margin: 0 !important;
        font-size: 0.7rem !important;
    }
    .pagination-controls {
        font-size: 0.7rem;
        gap: 0rem !important;
    }
}

.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 0 !important; 
    background: transparent !important; 
    border: none !important; 
}

.pagination-controls a, 
.pagination-controls span {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: var(--transition);
}

.pagination-controls a {
    background: rgba(22, 33, 62, 0.6);
    border: 1px solid var(--quantum-teal);
    color: var(--quantum-teal);
}

.pagination-controls a:hover {
    background: var(--quantum-teal);
    color: var(--space-deep);
}

.pagination-controls span {
    color: var(--pulsar-pink);
    font-weight: bold;
}
#past-ctfs .pagination-controls {
    grid-column: 1 / -1;
    margin-top: 2rem;
    border: none !important;
    background: none !important;
}

    /* Nouveaux styles pour la cloche d'alerte */
.ctf-reminder-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(22, 33, 62, 0.6);
    border: 1px solid var(--quantum-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.ctf-reminder-toggle:hover {
    background: rgba(0, 245, 212, 0.1);
    transform: scale(1.1);
}

.ctf-reminder-toggle.active {
    background: var(--quantum-teal);
}

.ctf-reminder-toggle.active i {
    color: var(--space-deep) !important;
}

.ctf-reminder-toggle i {
    color: var(--quantum-teal);
    font-size: 1rem;
    transition: var(--transition);
}

.reminder-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--pulsar-pink);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    font-family: var(--font-heading);
}

#shareCtfBtn i {
    margin-right: 8px;
    color: var(--quantum-teal);
}

#shareCtfBtn:hover i {
    color: var(--pulsar-pink);
}

#submitCTFModal .modal-content{
    max-width: 600px;
    padding: 1rem;
}


#submitCTFModal .form-group textarea{
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--quantum-teal);
    background: rgba(22, 33, 62, 0.8);
    color: var(--starlight);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}
#submitCTFModal .form-group input{
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--quantum-teal);
    background: rgba(22, 33, 62, 0.8);
    color: var(--starlight);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}
#submitCTFModal .form-group label{
    font-style: italic;
    font-size: 1rem;
    color: ghostwhite;
}

