/* Reset et variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #ff6600;
    --dark-color: #1a1a1a;
    --light-color: #f5f5f5;
    --text-color: #333;
    --border-color: #ddd;
    --success-color: #28a745;
    --error-color: #dc3545;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

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

/* Header et Navigation */
header {
    background-color: var(--dark-color);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar {
    padding: 1rem 0;
}

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

.nav-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.nav-title {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Si pas de logo, centrer le texte */
.nav-brand a:not(:has(.nav-logo)) {
    justify-content: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

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

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 5rem 0;
    text-align: center;
}

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

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

/* Boutons */
.btn {
    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: var(--primary-color);
    color: white;
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

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

/* Sections */
section {
    padding: 4rem 0;
}

.actualites-section,
.matchs-section,
.club-section {
    background-color: var(--light-color);
}

.actualites-section:nth-child(odd) {
    background-color: white;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

/* Grid Actualités */
.actualites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.actualite-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.actualite-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.actualite-content {
    padding: 1.5rem;
}

.actualite-content h3,
.actualite-content h2 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.actualite-content .date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.actualite-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Matchs */
.matchs-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.match-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.match-date {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    font-size: 1.1rem;
}

.team {
    font-weight: bold;
    flex: 1;
}

.vs {
    color: var(--secondary-color);
    font-weight: bold;
    padding: 0 1rem;
}

.score {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    padding: 0 1rem;
}

.match-lieu,
.match-competition {
    color: #666;
    font-size: 0.9rem;
}

/* Matchs page complète */
.match-card-full {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-color);
}

.match-competition {
    font-weight: bold;
    color: var(--primary-color);
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.badge-live {
    background-color: var(--error-color);
    color: white;
}

.match-body {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.match-info {
    min-width: 200px;
}

.match-info p {
    margin: 0.5rem 0;
    color: #666;
}

.match-teams-full {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 2rem;
}

.team-item {
    text-align: center;
}

.team-name {
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
}

.match-teams-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex: 1;
}

.team-result {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.team-score {
    font-size: 2rem;
    font-weight: bold;
    color: #666;
}

.team-score.winner {
    color: var(--success-color);
}

.separator {
    color: #999;
    font-size: 1.5rem;
}

.match-resume {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-color);
    font-style: italic;
    color: #666;
}

/* Joueurs */
.poste-section {
    margin-bottom: 3rem;
}

.poste-section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: left;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary-color);
}

.joueurs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

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

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

.joueur-photo {
    position: relative;
    height: 250px;
    background-color: var(--light-color);
}

.joueur-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.joueur-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.joueur-placeholder span {
    font-size: 3rem;
    color: white;
    font-weight: bold;
}

.joueur-numero {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--secondary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.joueur-info {
    padding: 1.5rem;
}

.joueur-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.joueur-poste {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.joueur-age {
    color: #666;
    font-size: 0.9rem;
}

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

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

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.contact-info-section h2 {
    font-size: 1.5rem;
    text-align: left;
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-info-item .icon {
    font-size: 2rem;
}

.contact-info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}

.contact-info-item p {
    color: #666;
    line-height: 1.6;
}

.contact-info-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.social-links-contact {
    margin-top: 2rem;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.social-btn span {
    flex: 1;
}

.social-facebook {
    background-color: #1877f2;
}

.social-facebook:hover {
    background-color: #0d5dbe;
    transform: translateX(5px);
}

.social-twitter {
    background-color: #000000;
}

.social-twitter:hover {
    background-color: #333333;
    transform: translateX(5px);
}

.social-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-instagram:hover {
    background: linear-gradient(45deg, #d17d2b 0%, #c85a32 25%, #c01f39 50%, #b01d5a 75%, #a0157a 100%);
    transform: translateX(5px);
}

.social-tiktok {
    background-color: #000000;
}

.social-tiktok:hover {
    background-color: #ff0050;
    transform: translateX(5px);
}

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

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Club Stats */
.club-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.club-info p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.club-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

.stat h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: #666;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

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

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

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

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

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

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: white;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.social-links a svg {
    width: 22px;
    height: 22px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.no-content {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-style: italic;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    color: var(--secondary-color);
}

/* Article détail */
.article-full {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

.article-full h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.article-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-color);
    color: #666;
}

.article-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.article-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid var(--light-color);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--dark-color);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }
    
    .nav-menu.active {
        max-height: 500px;
    }
    
    .nav-menu li {
        padding: 0.5rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .matchs-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .club-stats {
        grid-template-columns: 1fr;
    }
    
    .actualites-grid {
        grid-template-columns: 1fr;
    }
    
    .joueurs-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .match-body {
        flex-direction: column;
    }
    
    .article-full {
        padding: 1.5rem;
    }
    
    .article-full h1 {
        font-size: 1.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}
