
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

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

:root {
    --primary-color: #1a4d3a;
    --secondary-color: #ffffff;
    --accent-color: #25d366;
    --text-dark: #333333;
    --text-light: #666666;
    --background-light: #f8f9fa;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 77, 58, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-logo h2 {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

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

.nav-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

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

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 65vh;
    background-image: url(./src/images/HeroTitleless.jpg);
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content h3 {
    color: #1a4d3a;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 500;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-family: 'Lora', serif;
    font-size: clamp(4rem, 7vw, 6rem);
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    color: #1a4d3a;
}

.hero-subtitle {
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
    color: #1a4d3a;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="200" cy="200" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="600" cy="300" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="800" cy="600" r="3" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-1000px); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.cta-button {
    background: var(--accent-color);
    color: var(--secondary-color);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
}

.section-button {
    text-align: center;
    margin-top: 3rem;
}

.btn-voir-plus {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-voir-plus:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(26, 77, 58, 0.3);
}

.btn-voir-plus i {
    transition: var(--transition);
}

.btn-voir-plus:hover i {
    transform: translateX(5px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections principales */
.main-content {
    margin-top: 70px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background: var(--background-light);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.image-placeholder {
    background: var(--background-light);
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-placeholder.large {
    min-height: 300px;
}

.image-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-date {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.timeline-content {
    background: var(--secondary-color);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    flex: 1;
    margin: 0 20px;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Contest Grid */
.contest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contest-card {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.contest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.contest-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    padding: 10px;
}

.contest-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    /* Supprimez le filtre qui rend l'image blanche */
}

.contest-image.no-filter {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.contest-image.white-filter {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    filter: brightness(0) invert(1);
}
.contest-icon i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.contest-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Managers Grid */
.managers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.manager-card {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.manager-card:hover {
    transform: translateY(-5px);
}

.manager-avatar {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.manager-avatar i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.manager-role {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .managers-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.8rem !important;
        margin: 0 -10px !important;
    }
    
    .manager-card {
        padding: 1rem !important;
        text-align: center !important;
        min-width: 0 !important; /* Permet aux cartes de rétrécir */
    }
    
    .manager-avatar {
        width: 60px !important;
        height: 60px !important;
        margin: 0 auto 0.8rem !important;
    }
    
    .manager-image {
        width: 60px !important;
        height: 60px !important;
    }
    
    .manager-card h3 {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .manager-role {
        font-size: 0.7rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .manager-card p {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
        display: none !important; /* Cache la description sur mobile pour économiser l'espace */
    }
}

@media (max-width: 480px) {
    .managers-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
        margin: 0 -8px !important;
    }
    
    .manager-card {
        padding: 0.8rem !important;
    }
    
    .manager-avatar {
        width: 50px !important;
        height: 50px !important;
        margin: 0 auto 0.5rem !important;
    }
    
    .manager-image {
        width: 50px !important;
        height: 50px !important;
    }
    
    .manager-card h3 {
        font-size: 0.8rem !important;
        margin-bottom: 0.3rem !important;
    }
}

/* Mascot Section */
.mascot-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.mascot-description h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.mascot-description ul {
    list-style: none;
    margin-top: 1.5rem;
}

.mascot-description li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.mascot-description li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Newsletter */
.newsletter-section {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 60px 0;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 2rem auto 0;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.newsletter-form button {
    background: var(--accent-color);
    color: var(--secondary-color);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: #20c157;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--secondary-color);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

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

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    opacity: 0.8;
}

.manager-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 500;
    z-index: 1001;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: slideIn 0.3s forwards;
}

.notification.success {
    background-color: var(--accent-color);
}

.notification.error {
    background-color: #ff4747;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 35px;
    width: 80%;
    max-width: 800px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
}

#modal-event-image {
    max-height: 200px;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin: 20px 0;
}

#modal-event-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
    font-family: 'Lora', serif;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 15px;
    margin-top: 10px;
}

#modal-event-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.season-selector {
    margin: 25px 0;
}

.season-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.season-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background 0.3s ease;
}

.season-button:hover {
    background: var(--accent-color);
}

.season-button.active {
    background: var(--accent-color);
}

#season-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.modal-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 30px 0 15px;
    position: relative;
    display: inline-block;
    font-weight: 600;
}

.modal-content h3:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.modal-content h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin: 20px 0 10px;
    font-weight: 600;
}

#modal-event-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

#modal-event-instructions {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.participants-list {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    line-height: 1.6;
}

.participants-list p {
    margin: 0;
    color: #444;
}

#season-content ul {
    list-style: none;
    padding: 0;
}

#season-content ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
    display: flex;
    align-items: center;
}

#season-content ul li:before {
    content: '🏆';
    margin-right: 10px;
    font-size: 1.2rem;
}

#season-content {
    margin-top: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

#modal-event-image {
    text-align: center;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#modal-event-image img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.modal.show .modal-content {
    transform: translateY(0);
    animation: modal-fade-in 0.4s ease-out;
}


.rankings-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.rankings-table-wrapper::-webkit-scrollbar {
    height: 6px;
}

.rankings-table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.rankings-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

.rankings-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.rankings-table th, 
.rankings-table td {
    padding: 12px 15px;
    text-align: left;
}

.rankings-table thead {
    background-color: var(--primary-color);
    color: white;
}

.rankings-table tbody tr {
    border-bottom: 1px solid #f1f1f1;
}

.rankings-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.rankings-table tbody tr:hover {
    background-color: #f1f1f1;
}

.rankings-table tbody tr:nth-child(1) td:first-child {
    font-weight: bold;
    color: gold;
}

.rankings-table tbody tr:nth-child(2) td:first-child {
    font-weight: bold;
    color: silver;
}

.rankings-table tbody tr:nth-child(3) td:first-child {
    font-weight: bold;
    color: #cd7f32;
}

.view-result-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.view-result-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.view-result-btn i {
    font-size: 1rem;
}

.result-icon-video { color: #ff4747; }
.result-icon-audio { color: #4747ff; }
.result-icon-image { color: #47d147; }

.empty-events-container {
    width: 100%;
    display: flex;
    justify-content: center;
    grid-column: 1 / -1;
    padding: 20px;
}

.empty-events-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 500px;
    width: 100%;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.empty-events-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.empty-events-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.empty-events-icon i {
    font-size: 2.5rem;
    color: white;
}

.empty-events-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.empty-events-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.refresh-events-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.refresh-events-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.refresh-events-btn.rotating i {
    animation: spin 0.8s linear;
}

.join-modal-content {
    text-align: center;
    max-width: 500px;
}

.join-modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.join-methods {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.qr-code-container {
    padding: 10px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.qr-code-container p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.qr-code {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.join-divider {
    position: relative;
    width: 100%;
    text-align: center;
    margin: 10px 0;
}

.join-divider::before, 
.join-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background-color: #ddd;
}

.join-divider::before {
    left: 0;
}

.join-divider::after {
    right: 0;
}

.join-divider span {
    background-color: white;
    padding: 0 15px;
    position: relative;
    color: var(--text-light);
}

.join-button {
    background-color: var(--accent-color);
    color: white;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.join-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    background-color: #20b057;
}

.join-button i {
    font-size: 1.2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }
    
    .view-result-btn {
        padding: 5px 8px;
        font-size: 0.8rem;
    }

    .rankings-table th, 
    .rankings-table td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .view-result-btn {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .view-result-btn i {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }
    
    .season-buttons {
        flex-direction: column;
    }
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

    .modal-content {
        padding: 20px;
        width: 90%;
    }
    
    #modal-event-title {
        font-size: 1.8rem;
    }
    
    .modal-content h3 {
        font-size: 1.3rem;
    }

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

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

    .nav-link {
        padding: 1rem;
        display: block;
    }

    .hero-title {
        font-family: 'Lora', serif;
        font-size: clamp(3rem, 6vw, 5rem);
        font-weight: 700;
        margin-bottom: 1rem;
        animation: fadeInUp 1s ease;
        color: #1a4d3a;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .content-grid,
    .mascot-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 50px;
    }

    .timeline-item:nth-child(odd) {
        flex-direction: column;
    }

    .timeline-content {
        margin: 10px 0 0 0;
    }

    .newsletter-form {
        flex-direction: column;
        max-width: 300px;
    }

    .section {
        padding: 60px 0;
    }
}

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

    .hero-content {
        padding: 0 15px;
    }

    .contest-grid,
    .managers-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .managers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 10px;
    }
    
    .manager-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 1.5rem;
    }
    
    .manager-avatar {
        width: 80px;
        height: 80px;
        margin: 0 auto 1rem;
        overflow: hidden;
    }

    .manager-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }
    
    .manager-avatar i {
        font-size: 2rem;
    }
    
    .manager-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .manager-role {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .manager-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .managers-grid {
        gap: 1rem;
        padding: 0 5px;
    }
    
    .manager-card {
        padding: 1.2rem;
    }
    
    .manager-avatar {
        width: 70px;
        height: 70px;
    }
    
    .manager-avatar i {
        font-size: 1.8rem;
    }

    .manager-avatar {
        width: 70px;
        height: 70px;
        overflow: hidden;
    }
}



.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 120px 0 80px;
    margin-top: 70px;
    text-align: center;
    color: var(--secondary-color);
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.event-card {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.event-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-status.current {
    background: var(--accent-color);
    color: var(--secondary-color);
}

.event-status.upcoming {
    background: #ffc107;
    color: var(--text-dark);
}

.event-status.past {
    background: var(--text-light);
    color: var(--secondary-color);
}

.event-content {
    padding: 1.5rem;
}

.event-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.event-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.event-date i {
    margin-right: 5px;
    color: var(--accent-color);
}

.event-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.event-content .btn-voir-plus {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.9rem;
}

.event-content .btn-voir-plus:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .events-grid {
        display: flex;
        gap: 1.5rem;
        overflow-x: auto;
        padding: 20px 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) var(--background-light);
    }
    
    .events-grid::-webkit-scrollbar {
        height: 8px;
    }
    
    .events-grid::-webkit-scrollbar-track {
        background: var(--background-light);
        border-radius: 4px;
    }
    
    .events-grid::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
    }
    
    .events-grid::-webkit-scrollbar-thumb:hover {
        background: var(--accent-color);
    }
    
    .event-card {
        flex: 0 0 280px; /* Largeur fixe pour chaque carte */
        max-width: none;
    }
    
    /* Ajuster la hauteur pour garder une apparence cohérente */
    .event-image {
        height: 160px;
    }
    
    .event-content {
        padding: 1rem;
    }
    
    .event-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .event-content p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
}

/* Version mobile plus petite */
@media (max-width: 480px) {
    .events-grid {
        gap: 1rem;
        padding: 15px 0;
    }
    
    .event-card {
        flex: 0 0 260px; /* Légèrement plus petite sur très petits écrans */
    }
    
    .event-image {
        height: 140px;
    }
    
    .event-content {
        padding: 0.8rem;
    }
    
    .event-content h3 {
        font-size: 1rem;
    }
    
    .event-content p {
        font-size: 0.85rem;
    }
    
    .btn-voir-plus {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

.events-grid:has(.event-card:only-child) {
    display: flex;
    justify-content: center;
}

.events-grid:has(.event-card:only-child) .event-card {
    max-width: 600px;
    width: 100%;
}

.news-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 40px 0;
}

.news-timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.news-date {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    border-radius: 20px;
    padding: 8px 16px;
    width: fit-content;
    margin: 30px auto;
    position: relative;
    z-index: 10;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-item {
    background-color: #222;
    border-radius: var(--border-radius);
    padding: 25px;
    color: white;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
}

.news-title {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.news-desc {
    margin-bottom: 20px;
    line-height: 1.6;
}

.news-img {
    width: 100%;
    border-radius: var(--border-radius);
    margin-top: 15px;
    max-height: 300px;
    object-fit: cover;
}

.divider {
    height: 1px;
    background-color: rgba(255,255,255,0.1);
    margin: 30px 0;
}

@media (max-width: 768px) {
    .news-timeline::before {
        left: 20px;
    }
    
    .news-date {
        margin-left: 40px;
        margin-right: auto;
    }
}

/* Styles pour les archives */
.archive-description {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border-left: 4px solid var(--accent-color);
}

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

.archive-card {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.archive-card-header {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.archive-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.archive-avatar i {
    color: white;
    font-size: 1.5rem;
}

.archive-meta h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.archive-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 5px 0 0 0;
}

.archive-content {
    padding: 20px;
}

.archive-content h4 {
    color: var(--accent-color);
    margin: 0 0 15px 0;
    font-size: 1.2rem;
}

.archive-placeholder {
    text-align: center;
    color: var(--text-light);
    padding: 20px 0;
}

.archive-loader {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.archive-loader .dot {
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 1.5s infinite ease-in-out;
}

.archive-loader .dot:nth-child(2) {
    animation-delay: 0.5s;
}

.archive-loader .dot:nth-child(3) {
    animation-delay: 1s;
}

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

/* Styles pour la section Banque */
.bank-card {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 30px;
    margin-bottom: 30px;
}

.bank-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.bank-icon i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.bank-content h3 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.bank-content p {
    line-height: 1.7;
    margin-bottom: 25px;
    color: var(--text-light);
}

.bank-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 30px;
}

.bank-feature {
    background: #f9f9f9;
    padding: 20px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon.positive {
    background: rgba(37, 211, 102, 0.1);
    color: var(--accent-color);
}

.feature-icon.negative {
    background: rgba(255, 76, 76, 0.1);
    color: #ff4c4c;
}

.feature-icon i {
    font-size: 1.3rem;
}

.feature-text h4 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
}

.feature-text ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-light);
}

.feature-text li {
    margin-bottom: 5px;
}

.bank-note {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: var(--border-radius);
}

.bank-note p {
    margin: 0;
    font-style: italic;
    color: #856404;
}

@media (max-width: 768px) {
    .bank-features {
        grid-template-columns: 1fr;
    }
    
    .bank-card {
        padding: 20px;
    }
    
    .bank-icon {
        width: 60px;
        height: 60px;
    }
    
    .bank-icon i {
        font-size: 2rem;
    }
    
    .bank-content h3 {
        font-size: 1.5rem;
    }
}

.archive-preview {
    padding: 15px 0;
}

.archive-preview ul {
    margin: 10px 0;
    padding-left: 20px;
    color: var(--text-light);
}

.btn-view-archive {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.btn-view-archive:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-view-archive i {
    font-size: 1rem;
}

/* Styles pour la modale d'article */
.article-modal .modal-content {
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
}

.article-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.article-header h2 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.article-meta {
    color: var(--text-light);
    margin: 5px 0;
}

.article-body {
    line-height: 1.7;
}

.article-section {
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.article-section h4 {
    color: var(--accent-color);
    margin: 20px 0 10px;
}

.article-section ul, .article-section ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.article-section p {
    margin-bottom: 15px;
}

.result-unavailable {
    color: var(--text-light);
    font-style: italic;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.result-unavailable i {
    color: #ccc;
}

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

.member-card {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.member-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.member-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
}

.member-avatar i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    flex: 1;
}

.member-name {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.member-role {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.member-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.founder {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #8b4513;
}

.badge.admin {
    background: linear-gradient(135deg, #ff4757, #ff6b7a);
    color: white;
}

.badge.veteran {
    background: linear-gradient(135deg, #5f27cd, #8c7ae6);
    color: white;
}

.badge.events {
    background: linear-gradient(135deg, #00d2d3, #54a0ff);
    color: white;
}

.badge.tech {
    background: linear-gradient(135deg, #2ed573, #7bed9f);
    color: white;
}

.badge.creative {
    background: linear-gradient(135deg, #ff9ff3, #f368e0);
    color: white;
}

.badge.talent {
    background: linear-gradient(135deg, #ffa502, #ff6348);
    color: white;
}

.badge.writer {
    background: linear-gradient(135deg, #3742fa, #5352ed);
    color: white;
}

.badge.active {
    background: linear-gradient(135deg, var(--accent-color), #2ed573);
    color: white;
}

.badge.former {
    background: linear-gradient(135deg, #95a5a6, #bdc3c7);
    color: white;
    border: 1px solid #7f8c8d;
}

.member-description {
    padding: 20px;
}

.member-description p {
    line-height: 1.6;
    color: var(--text-light);
}

/* Système de reconnaissance */
.recognition-system {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.recognition-card {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.recognition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.recognition-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.recognition-icon i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.recognition-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.recognition-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.badges-demo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.badges-demo .badge {
    padding: 5px 12px;
    font-size: 0.8rem;
}

/* Responsive pour les membres */
@media (max-width: 768px) {
    .members-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .member-header {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .member-avatar {
        width: 80px;
        height: 80px;
    }
    
    .member-avatar i {
        font-size: 2.5rem;
    }
    
    .member-badges {
        justify-content: center;
    }
    
    .recognition-system {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .recognition-card {
        padding: 20px;
    }
    
    .badges-demo {
        gap: 5px;
    }
    
    .badges-demo .badge {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .member-card {
        margin: 0 10px;
    }
    
    .member-description {
        padding: 15px;
    }
    
    .member-name {
        font-size: 1.2rem;
    }
    
    .recognition-icon {
        width: 60px;
        height: 60px;
    }
    
    .recognition-icon i {
        font-size: 2rem;
    }
}

.mascot-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 2px solid #000;
    border-radius: var(--border-radius);
}

.image-placeholder.large {
    min-height: 300px;
    border: none;
    background: transparent;
    padding: 20px;
}

.community-img {
    width: 80%;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius);
    border: 1px solid #000;
}

.image-placeholder {
    background: transparent;
    border: none;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Style pour les positions */
.rankings-table tbody tr:nth-child(1) td:first-child {
    font-weight: bold;
    color: gold;
}

.rankings-table tbody tr:nth-child(2) td:first-child {
    font-weight: bold;
    color: silver;
}

.rankings-table tbody tr:nth-child(3) td:first-child {
    font-weight: bold;
    color: #cd7f32; /* bronze */
}

.rankings-table[data-event="photo-challenge"] tbody tr td:first-child {
    color: var(--text-dark) !important;
    font-weight: normal !important;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin: -2rem auto 3rem;
    max-width: 600px;
}

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

.ringtone-card {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(26, 77, 58, 0.1);
}

.ringtone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.ringtone-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.ringtone-icon i {
    font-size: 2rem;
    color: white;
}

.ringtone-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.ringtone-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.ringtone-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.ringtone-controls audio {
    width: 100%;
    max-width: 250px;
    height: 40px;
}

.download-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 77, 58, 0.3);
}

.download-btn i {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .ringtones-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .ringtone-card {
        padding: 1rem;
    }
    
    .ringtone-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .ringtone-icon i {
        font-size: 1.2rem;
    }
    
    .ringtone-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .ringtone-card p {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .ringtone-controls audio {
        max-width: 200px;
        height: 35px;
    }
    
    .download-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .ringtones-grid {
        gap: 0.8rem;
    }
    
    .ringtone-card {
        padding: 0.8rem;
    }
    
    .ringtone-icon {
        width: 45px;
        height: 45px;
    }
    
    .ringtone-card h3 {
        font-size: 1rem;
    }
    
    .ringtone-card p {
        font-size: 0.75rem;
    }
}