:root {
    --primary-color: #000;
    --secondary-color: #D4AF37;
    --accent-color: #8B0000;
    --text-color: #333;
    --light-text: #fff;
    --gold-light: #F4E4A6;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --section-spacing: 80px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(to right, var(--primary-color), #2c2c2c);
    color: var(--light-text);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--secondary-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 0 15px rgba(212,175,55,0.5);
    background: #fff;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Correction pour les images du logo */
.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-flag {
    width: 70px;
    height: 70px;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 10px rgba(212,175,55,0.5);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Correction pour les images du drapeau */
.logo-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Logo temporaire */
.temp-logo {
    width: 100%;
    height: 100%;
    background: #000;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 28px;
    border-radius: 50%;
    font-family: Arial, sans-serif;
}

/* Drapeau temporaire */
.temp-flag {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #006c35 33%, #fff 33%, #fff 66%, #006c35 66%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.logo-text p {
    font-size: 14px;
    color: #ddd;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: var(--light-text);
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 500;
    display: block;
}

nav ul li a:hover {
    background: rgba(212,175,55,0.2);
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    background: 0;
    border: 0;
    color: var(--light-text);
    cursor: pointer;
    padding: 5px 10px;
}

.hero {
    position: relative;
    background: var(--primary-color);
}

.hero-text-section {
    background: var(--primary-color);
    padding: 80px 0 60px;
    text-align: center;
    color: var(--light-text);
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 25px;
    color: var(--secondary-color);
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-size: clamp(1.3rem, 3vw, 2rem);
    margin-bottom: 40px;
    color: var(--light-text);
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    max-width: 800px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.video-container {
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-background video {
    width: auto;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3));
    z-index: 1;
}

.video-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.btn-video-control {
    background: rgba(212,175,55,0.9);
    color: var(--primary-color);
    border: 0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.btn-video-control:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--light-text);
    padding: 15px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s;
    border: 0;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-align: center;
}

.btn:hover {
    background: #a50000;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: 0;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.features {
    padding: var(--section-spacing);
    background: linear-gradient(to bottom, #f9f9f9, #eee);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    position: relative;
    padding-bottom: 20px;
    font-weight: 700;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--light-text);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border-top: 4px solid var(--secondary-color);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    background: linear-gradient(to right, var(--primary-color), #2c2c2c);
    color: var(--secondary-color);
    font-size: 2.5rem;
    padding: 25px;
    text-align: center;
}

.feature-content {
    padding: 25px;
}

.feature-content h3 {
    color: var(--primary-color);
    margin-bottom: 18px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 12px;
}

.feature-content h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.section {
    padding: var(--section-spacing);
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--light-text);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border-top: 3px solid var(--accent-color);
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-img {
    height: 200px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-img img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-date {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}

.matches-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.match-card {
    background: var(--light-text);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--secondary-color);
}

.match-info {
    text-align: center;
    flex: 1;
}

.match-teams {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 2;
    justify-content: center;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.team-logo {
    width: 70px;
    height: 70px;
    background: var(--gold-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.match-score {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0 15px;
}

.tickets-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.ticket-card {
    background: var(--light-text);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border-top: 3px solid var(--secondary-color);
}

.ticket-card:hover {
    transform: translateY(-5px);
}

.ticket-header {
    background: linear-gradient(to right, var(--primary-color), #2c2c2c);
    color: var(--light-text);
    padding: 20px;
    text-align: center;
}

.ticket-body {
    padding: 25px;
}

.ticket-features {
    list-style: none;
    margin: 20px 0;
}

.ticket-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.ticket-features li i {
    color: var(--secondary-color);
    margin-left: 10px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--light-text);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img {
    height: 220px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-content {
    padding: 25px;
    text-align: center;
}

.product-price {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.3rem;
    margin: 15px 0;
}

.fan-zone-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.fan-card {
    background: var(--light-text);
    border-radius: 10px;
    padding: 30px 25px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fan-card:hover {
    transform: translateY(-5px);
}

.fan-card i {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

footer {
    background: linear-gradient(to right, var(--primary-color), #2c2c2c);
    color: var(--light-text);
    padding: 50px 0 25px;
    border-top: 2px solid var(--secondary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 25px;
    font-size: 1.3rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 15px;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    color: var(--light-text);
    font-size: 1.5rem;
    transition: all 0.3s;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    transform: translateY(-5px);
    background: var(--secondary-color);
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #ddd;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 35px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.modal p {
    margin-bottom: 25px;
    color: var(--text-color);
    line-height: 1.6;
}

.close-modal {
    background: var(--accent-color);
    color: #fff;
    border: 0;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.3s;
    font-size: 1rem;
}

.close-modal:hover {
    background: #a50000;
}

@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-container {
        margin-bottom: 20px;
        justify-content: center;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .match-card {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
    
    .match-teams {
        order: -1;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 20px;
        left: 20px;
    }
    
    nav {
        display: none;
        width: 100%;
        margin-top: 20px;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 8px 0;
    }
    
    .hero-text-section {
        padding: 70px 0 50px;
    }
    
    .video-container {
        height: 50vh;
        min-height: 350px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .features, .section {
        padding: 70px 0;
    }
}

@media (max-width: 576px) {
    .logo-text h1 {
        font-size: 22px;
    }
    
    .logo-image, .logo-flag {
        width: 55px;
        height: 55px;
    }
    
    .temp-logo {
        font-size: 22px;
    }
    
    .temp-flag {
        font-size: 18px;
    }
    
    .hero-text-section {
        padding: 60px 0 40px;
    }
    
    .video-container {
        height: 45vh;
        min-height: 300px;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .features, .section {
        padding: 60px 0;
    }
    
    .feature-content, .news-content, .product-content, .ticket-body {
        padding: 20px;
    }
    
    .match-card, .fan-card {
        padding: 20px;
    }
}