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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

.header-container {
    position: relative;
    width: 100%;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

#carouselHeader {
    height: 100%;
}

#carouselHeader .carousel-inner,
#carouselHeader .carousel-item {
    height: 100%;
    background-color: #000;
}

#carouselHeader .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: subpixel-antialiased;
    will-change: transform;
}

.events-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    z-index: 10;
}

.events-overlay h3 {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    text-align: center;
}

.events-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.event-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    min-width: 200px;
}

.event-date {
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 5px;
}

.event-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.event-location {
    font-size: 0.9rem;
    color: #ccc;
}

/* Navigation styles */
.main-nav {
    background-color: #199cc6;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ffd700;
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: #ffd700;
}

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

@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .main-nav {
        padding: 10px 0;
    }
}

/* Contenu principal */
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.article-card {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.article-content {
    padding: 20px;
}

.article-content h2 {
    margin-bottom: 10px;
    color: #199cc6;
}

/* Footer */
footer {
    background: #199cc6;
    color: white;
    padding: 40px 0 0;
}

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

.sponsors-slider {
    padding: 0 40px;
}

.sponsor-item {
    padding: 15px;
    text-align: center;
}

.sponsor-item img {
    max-width: 100%;
    height: 80px;
    object-fit: contain;
    margin: 0 auto;
    transition: all 0.3s ease;
    opacity: 1;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sponsor-item img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 40px;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
}

.footer-info p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.footer-social a {
    color: white;
    font-size: 24px;
    transition: transform 0.3s;
    display: inline-block;
}

.footer-social a:hover {
    transform: scale(1.2);
}

.footer-creator {
    text-align: right;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-creator span {
    color: white;
    font-size: 0.9rem;
}

.creator-logo {
    height: 70px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: all 0.3s;
}

.creator-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Styles pour les flèches du carousel */
.slick-prev,
.slick-next {
    width: 30px;
    height: 30px;
    z-index: 1;
}

.slick-prev {
    left: 0;
}

.slick-next {
    right: 0;
}

.slick-prev:before,
.slick-next:before {
    font-size: 30px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .slider-container {
        height: 600px;
    }
    #carouselHeader .carousel-item img {
        min-height: 600px;
    }
}

@media (max-width: 768px) {
    .slider-container {
        height: 400px;
    }
    #carouselHeader .carousel-item img {
        min-height: 400px;
    }

    .events-list {
        flex-direction: column;
        align-items: center;
    }

    .event-item {
        width: 100%;
        max-width: 300px;
    }

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

    .footer-social, .footer-creator {
        text-align: center;
        justify-content: center;
    }

    .sponsor-item img {
        height: 60px;
    }

    .footer-creator {
        display: inline-flex;
        margin: 0 auto;
    }

    .creator-logo {
        height: 40px;
    }
}

/* Styles pour l'interface admin */
.admin-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background: #1a237e;
    color: #fff;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    background: #1a237e;
    transition: background 0.3s;
}

.btn:hover {
    background: #283593;
}

.btn-danger {
    background: #c62828;
}

.btn-danger:hover {
    background: #d32f2f;
}

/* Formulaires */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-danger {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* Carousel */
#carouselImages {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#carouselImages .carousel-item {
    height: 400px;
}

#carouselImages .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#carouselImages .carousel-control-prev,
#carouselImages .carousel-control-next {
    width: 5%;
    background: rgba(0, 0, 0, 0.3);
}

#carouselImages .carousel-indicators {
    margin-bottom: 1rem;
}

#carouselImages .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

@media (max-width: 768px) {
    #carouselImages .carousel-item {
        height: 250px;
    }
}

/* Styles pour la page Club */
.club-info {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.club-info h2 {
    color: #199cc6;
    margin-bottom: 20px;
}

.club-info h3 {
    color: #199cc6;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.club-info .lead {
    font-size: 1.2rem;
    color: #424242;
    line-height: 1.6;
}

.club-info ul {
    list-style-type: none;
    padding-left: 0;
}

.club-info ul li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.club-info ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #199cc6;
}

/* Styles pour le formulaire */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-header {
    background-color: #199cc6 !important;
    padding: 20px;
}

.card-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

.form-label {
    font-weight: 500;
    color: #424242;
}

.form-control {
    border: 1px solid #e0e0e0;
    padding: 10px;
    border-radius: 4px;
}

.form-control:focus {
    border-color: #199cc6;
    box-shadow: 0 0 0 0.2rem rgba(26, 35, 126, 0.25);
}

.btn-primary {
    background-color: #199cc6;
    border-color: #199cc6;
    color: #fff;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* Styles pour les athlètes */
.section-title {
    color: #199cc6;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #199cc6;
}

.athlete-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.athlete-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.athlete-card.ancien {
    background: #f5f5f5;
}

.athlete-image {
    position: relative;
    padding-top: 125%; /* Ratio 4:5 */
    overflow: hidden;
}

.athlete-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.athlete-info {
    padding: 1rem;
    text-align: center;
}

.athlete-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1a237e;
    font-weight: 500;
}

.athlete-card.ancien .athlete-info h3 {
    color: #666;
}

/* Styles d'administration */
.navbar-dark.bg-primary {
    background-color: #199cc6 !important;
}

.admin-header {
    background-color: #199cc6;
    color: white;
    padding: 15px 0;
    margin-bottom: 30px;
}

.card-header {
    background-color: #199cc6;
    color: white;
}

.card-header h2 {
    color: white;
    margin: 0;
    font-size: 1.25rem;
}

/* Override des styles Bootstrap */
.bg-primary {
    background-color: #199cc6 !important;
}

.btn-primary {
    background-color: #199cc6;
    border-color: #199cc6;
}

.btn-primary:hover {
    background-color: #3aa3bd;
    border-color: #3aa3bd;
}

.nav-link:hover {
    color: #e9ecef !important;
}

/* Logo styles */
.logo-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

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

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

@media (max-width: 768px) {
    .logo-container {
        position: relative;
        top: 0;
        left: 0;
        text-align: center;
        background: none;
        box-shadow: none;
        padding: 10px 0;
    }

    .site-logo {
        height: 60px;
        margin: 0 auto;
    }
} 