:root {
    --primary-color: #0077B6;
    --secondary-color: #00B4D8;
    --light-color: #F0F8FF;
    --dark-color: #2C3E50;
    --text-color: #333;
    --white: #FFFFFF;
    --gray: #E0E0E0;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 60px;
    width: auto;
    background: var(--white);
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

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

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

.nav-links a:hover {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 119, 182, 0.8), rgba(0, 119, 182, 0.8)), url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"%3E%3Crect fill="%230077B6" width="1200" height="600"/%3E%3Ctext x="600" y="300" text-anchor="middle" fill="white" font-size="48" font-family="Arial"%3ETC La Médullienne%3C/text%3E%3C/svg%3E');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Sections */
section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto;
}

/* Club Presentation */
.club-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.club-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

.site-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--primary-color);
}

.site-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.site-card p {
    margin-bottom: 0.5rem;
}

/* Activity Details */
.activity-details {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.activity-details p {
    margin-bottom: 1rem;
}

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

.court-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--primary-color);
}

.court-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.court-card p {
    margin-bottom: 0.5rem;
}

/* Map Section */
#map {
    height: 400px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 1200px;
}

/* Carousel */
.carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    position: relative;
}

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

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 1rem;
    text-align: center;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.carousel-nav button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-nav button:hover {
    background: var(--secondary-color);
}

/* Sponsors */
.sponsors {
    background: var(--gray);
    padding: 2rem;
    text-align: center;
    border-radius: 10px; /* Ajout des bords arrondis */
    margin: 2rem auto;   /* Marge pour éviter que les bords ne touchent les sections voisines */
    max-width: 1200px;  /* Largeur cohérente avec les autres sections */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Ombre légère pour le style */
}

.sponsor-container {
    max-width: 300px;
    margin: 0 auto;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.sponsor-container img {
    max-width: 100%;
    height: auto;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

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

.form-group textarea {
    height: 150px;
}

.submit-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

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

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

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

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

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

.call-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
    transition: background 0.3s;
}

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

/* Responsive */
/* Menu Mobile */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }

    .nav-links {
        display: none; /* Cache le menu par défaut sur mobile */
        flex-direction: column; /* Affiche les liens verticalement */
        position: absolute;
        top: 70px; /* Positionne sous le header */
        left: 0;
        width: 100%;
        background: var(--primary-color);
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 1001;
    }

    .nav-links.active {
        display: flex; /* Affiche le menu quand il est actif */
    }

    .hamburger {
        display: block; /* Affiche le bouton burger sur mobile */
    }

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

    .hero p {
        font-size: 1rem;
    }

    #map {
        height: 300px;
    }

    .carousel-item img {
        height: 300px;
    }

    .sites-grid,
    .courts-grid {
        grid-template-columns: 1fr;
    }
}

/* Style des liens du menu mobile */
@media (max-width: 768px) {
    .nav-links a {
        display: block; /* Chaque lien prend toute la largeur */
        padding: 0.75rem 1rem;
        color: var(--white);
        text-decoration: none;
        font-weight: 600;
        transition: background 0.3s;
    }

    .nav-links a:hover {
        background: var(--secondary-color);
    }
}
@media (max-width: 480px) {
    section {
        padding: 2rem 1rem;
    }
}
