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

body {
    font-family: 'Radio Canada Big', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    font-size: 1.1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Radio Canada Big', sans-serif;
    font-weight: 700;
}

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

/* Header et Navigation */
header {
    background-color: #1a1a1a;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    color: #e74c3c;
}

.logo img {
    height: 120px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    transition: all 0.3s ease;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
}

.nav-links a:hover {
    color: #e74c3c;
}

.btn-login,
.btn-logout {
    background-color: #e74c3c;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.btn-logout {
    background-color: #c0392b;
}

/* Hero Section */
.hero {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-wrapper {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-video {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: block;
}

.hero-cta {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.btn-hero {
    display: inline-block;
    font-size: 1.3rem;
    padding: 1.2rem 3rem;
    background-color: rgba(231, 76, 60, 0.95);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    font-weight: 600;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.btn-hero:hover {
    background-color: rgba(192, 57, 43, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-overlay {
    background: white;
    padding: 2rem 0;
    margin-top: -10px;
}

.hero-overlay .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-overlay .btn-primary {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background-color: #e74c3c;
    color: white;
}

.hero-overlay .btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: white;
    color: #e74c3c;
}

.btn-primary:hover {
    background-color: #f8f8f8;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #e74c3c;
    color: white;
}

.btn-secondary:hover {
    background-color: #c0392b;
}

.btn-block {
    width: 100%;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

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

.feature-card h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* CTA Section */
.cta {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 10px;
    margin: 2rem 0;
}

.cta h2 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e74c3c;
}

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.login-box {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.login-help {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f8f8f8;
    border-radius: 5px;
}

.login-help ul {
    list-style: none;
    margin-top: 0.5rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-error {
    background-color: #fadbd8;
    color: #c0392b;
    border: 1px solid #e74c3c;
}

/* Members & Admin Grids */
.members-grid,
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.member-card,
.admin-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.member-card h3,
.admin-card h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.welcome-box,
.admin-welcome {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Tables */
.admin-table,
.files-table,
.schedule-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
}

.admin-table th,
.files-table th,
.schedule-table th {
    background-color: #e74c3c;
    color: white;
    padding: 1rem;
    text-align: left;
}

.admin-table td,
.files-table td,
.schedule-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.admin-table tr:hover,
.files-table tr:hover {
    background-color: #f8f8f8;
}

/* Buttons for tables */
.btn-edit,
.btn-delete,
.btn-download {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    margin: 0 0.2rem;
}

.btn-edit {
    background-color: #3498db;
    color: white;
}

.btn-delete {
    background-color: #e74c3c;
    color: white;
}

.btn-download {
    background-color: #27ae60;
    color: white;
    text-decoration: none;
    display: inline-block;
}

/* Events */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.event-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 2rem;
    align-items: center;
}

.event-date {
    text-align: center;
    padding: 1rem;
    background-color: #e74c3c;
    color: white;
    border-radius: 10px;
    min-width: 80px;
}

.event-date .day {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

.event-info h3 {
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

/* Admin sections */
.admin-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-actions {
    margin: 2rem 0;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.contact-info,
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* About */
.about-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about-section ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.about-section li {
    margin: 0.5rem 0;
}

.disciplines-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
    margin-left: 0 !important;
    margin-top: 1rem;
}

.disciplines-list li {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    transition: transform 0.3s;
}

.disciplines-list li:hover {
    transform: translateY(-5px);
}

/* Sponsors */
.sponsors-intro {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

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

.sponsor-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

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

.sponsor-card a {
    text-decoration: none;
    color: #333;
}

.sponsor-logo {
    max-width: 100%;
    height: auto;
    max-height: 40px;
    object-fit: contain;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.sponsor-logo:hover {
    transform: scale(1.05);
}

.sponsor-card h3 {
    color: #e74c3c;
    margin-top: 1rem;
}

.no-sponsors {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 10px;
}

.become-sponsor {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 3rem 0;
}

.become-sponsor h2 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.become-sponsor p {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.become-sponsor .btn-primary {
    background-color: white;
    color: #e74c3c;
    margin-top: 0.5rem;
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

/* Admin Sponsors */
.sponsors-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.sponsor-admin-card {
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.sponsor-admin-logo {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.sponsor-admin-card h3 {
    color: #e74c3c;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.sponsor-admin-card p {
    font-size: 0.9rem;
    word-break: break-all;
}

.sponsor-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.admin-info {
    background: #e8f4f8;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.admin-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.admin-info ul {
    list-style-position: inside;
}

.admin-info li {
    margin: 0.5rem 0;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #1877F2;
    /* Facebook Blue */
    transform: translateY(-3px);
}

.social-link svg {
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Main content padding */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Bannière RGPD cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 300px;
}

.btn-accept-cookies {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.btn-accept-cookies:hover {
    background-color: #c0392b;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 80px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background-color: #1a1a1a;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .hero {
        height: auto;
        min-height: 400px;
    }

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

    .btn-hero {
        font-size: 1rem;
        padding: 0.9rem 2rem;
    }

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

    .event-card {
        flex-direction: column;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-content p {
        min-width: auto;
    }
}