/* ========================================
   VARIABLES & RESET
   ======================================== */

:root {
    --vert-lancy: #5FA142;
    --jaune-lancy: #E5C100;
    --rouge-lancy: #C1121C;
    --blanc: #FFFFFF;
    --gris-clair: #F5F5F5;
    --gris-moyen: #666666;
    --gris-fonce: #333333;
    --noir: #1A1A1A;
}

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

html {
    scroll-behavior: smooth;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========================================
   CONTAINER
   ======================================== */

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

/* ========================================
   HEADER
   ======================================== */

#header {
    background-color: var(--blanc);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--vert-lancy);
}

.logo img {
    width: 300px;
    height: auto;
    border-radius: 0;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--vert-lancy);
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--noir);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--rouge-lancy);
    transition: width 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--rouge-lancy);
}

nav a.active::after {
    width: 100%;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, var(--vert-lancy) 0%, #7BC159 100%);
    background-image: 
        linear-gradient(135deg, rgba(95, 161, 66, 0.85) 0%, rgba(123, 193, 89, 0.85) 100%),
        url('images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--blanc);
    margin-top: -80px;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(95, 161, 66, 0.3), rgba(255, 255, 255, 0.1));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slogan {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: 14px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--rouge-lancy);
    color: var(--blanc);
}

.btn-primary:hover {
    background-color: var(--jaune-lancy);
    color: var(--noir);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(193, 18, 28, 0.3);
}

.btn-yellow {
    background-color: var(--jaune-lancy);
    color: var(--noir);
}

.btn-yellow:hover {
    background-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 193, 0, 0.3);
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--noir);
    position: relative;
    display: inline-block;
    width: 100%;
}

.yellow-underline::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background-color: var(--jaune-lancy);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ========================================
   SECTION LE CLUB
   ======================================== */

.club-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.club-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gris-moyen);
    text-align: justify;
}

.club-text p {
    margin-bottom: 20px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--gris-clair);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--noir);
}

.value-card p {
    color: var(--gris-moyen);
    font-size: 0.95rem;
    margin: 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

/* ========================================
   SECTION COMITÉ
   ======================================== */

.section-comite {
    background-color: var(--gris-clair);
}

.section-subtitle {
    text-align: center;
    color: var(--gris-moyen);
    font-size: 1.1rem;
    margin-bottom: 50px;
    margin-top: -30px;
}

.comite-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.comite-card {
    background: var(--blanc);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.comite-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.comite-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid;
    position: relative;
}

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

.comite-poste {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comite-nom {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--noir);
}

/* ========================================
   SECTION HORAIRES
   ======================================== */

.section-green {
    background-color: var(--vert-lancy);
    color: var(--blanc);
}

.section-green .section-title {
    color: var(--blanc);
}

.horaires-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: start;
}

.horaires-table h3,
.lieu-info h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--jaune-lancy);
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background-color: rgba(0, 0, 0, 0.2);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.lieu-info {
    overflow: visible;
}

.lieu-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.lieu-info .lieu-intro {
    margin-bottom: 25px;
    font-size: 1rem;
    text-align: left;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.salle-card {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 30px 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    text-align: center;
}

.salle-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.salle-card h4 {
    color: var(--jaune-lancy);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.salle-card p {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* ========================================
   SECTION NOS ÉQUIPES
   ======================================== */

.equipes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.equipe-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

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

.equipe-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.equipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.equipe-card:hover .equipe-image img {
    transform: scale(1.05);
}

.equipe-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--rouge-lancy);
    margin: 20px 0 10px;
    padding: 0 20px;
}

.equipe-ligue {
    font-size: 1.2rem;
    color: var(--gris-moyen);
    font-weight: 500;
    margin-bottom: 25px;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .equipes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .equipe-image {
        height: 250px;
    }
    
    .equipe-card h3 {
        font-size: 1.5rem;
    }
    
    .equipe-ligue {
        font-size: 1rem;
    }
}

/* ========================================
   SECTION RENCONTRES
   ======================================== */

/* Filtres des rencontres */
.rencontres-filters {
    margin: 30px 0;
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    display: block;
    font-weight: 600;
    color: var(--gris-fonce);
    margin-bottom: 10px;
    font-size: 1rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--gris-clair);
    background: white;
    color: var(--gris-fonce);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--vert-lancy);
    color: var(--vert-lancy);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--vert-lancy);
    border-color: var(--vert-lancy);
    color: white;
}

@media (max-width: 768px) {
    .rencontres-filters {
        padding: 20px;
    }
    
    .filter-btn {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

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

.rencontre-card {
    background: linear-gradient(135deg, var(--blanc) 0%, var(--gris-clair) 100%);
    border-left: 5px solid var(--rouge-lancy);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.rencontre-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-left-color: var(--jaune-lancy);
}

.rencontre-equipe {
    font-size: 0.85rem;
    color: var(--gris-moyen);
    margin-bottom: 10px;
    text-align: center;
    font-weight: 500;
}

.rencontre-date {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--rouge-lancy);
    margin-bottom: 15px;
}

.rencontre-adversaire {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--noir);
    margin-bottom: 10px;
    text-align: center;
}

.rencontre-lieu {
    font-size: 1rem;
    color: var(--gris-moyen);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rencontre-lieu a {
    color: var(--vert-lancy);
    text-decoration: none;
    transition: color 0.3s ease;
}

.rencontre-lieu a:hover {
    color: var(--rouge-lancy);
}

.rencontre-lieu::before {
    content: '📍';
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: var(--gris-moyen);
}

/* ========================================
   SECTION COTISATIONS
   ======================================== */

.cotisations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.cotisation-card {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid;
}

.cotisation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cotisation-icone {
    font-size: 3rem;
    margin-bottom: 15px;
}

.cotisation-categorie {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--noir);
}

.cotisation-age {
    font-size: 1rem;
    color: var(--gris-moyen);
    margin-bottom: 20px;
}

.cotisation-prix {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 0;
}

.cotisation-prix .montant {
    color: var(--vert-lancy);
}

.cotisation-prix .devise {
    font-size: 1.1rem;
    color: var(--gris-moyen);
}

.cotisation-description {
    margin-top: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gris-fonce);
    text-align: center;
}

.cotisation-avantages {
    text-align: left;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid var(--gris-clair);
}

.cotisation-avantages li {
    padding: 8px 0;
    color: var(--gris-fonce);
    font-size: 0.95rem;
}

.cotisation-avantages li::before {
    content: '✓ ';
    color: var(--vert-lancy);
    font-weight: bold;
    margin-right: 8px;
}

.licence-info {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--jaune-lancy);
}

.licence-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.licence-card h3 {
    font-size: 1.4rem;
    color: var(--vert-lancy);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.licence-prix {
    font-size: 2rem;
    font-weight: bold;
    color: var(--rouge-lancy);
    margin-bottom: 25px;
}

.licence-description {
    font-size: 1rem;
    color: var(--gris-fonce);
    line-height: 1.8;
    max-width: 700px;
    text-align: center;
}

/* ========================================
   SECTION CONTACT
   ======================================== */

.section-contact {
    background-color: var(--gris-clair);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--vert-lancy);
}

.contact-info p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--rouge-lancy);
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--jaune-lancy);
}

.social-link {
    margin: 0 5px;
}

/* ========================================
   FORM
   ======================================== */

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--noir);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

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

.form-group textarea {
    resize: vertical;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background-color: var(--noir);
    color: var(--blanc);
    text-align: center;
    padding: 30px 20px;
}

footer p {
    margin: 5px 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    #header {
        background-color: var(--blanc);
    }
    
    #header .container {
        padding: 8px 15px;
        position: relative;
    }
    
    .logo img {
        width: 160px;
        height: auto;
    }
    
    .logo {
        font-size: 0;
        gap: 0;
    }
    
    .menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 1002;
    }
    
    .hero {
        height: 100vh;
        min-height: 500px;
        margin-top: 0;
        background-attachment: scroll;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--blanc);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
    
    nav li {
        border-bottom: 1px solid var(--gris-clair);
    }
    
    nav a {
        display: block;
        padding: 15px 10px;
        font-size: 1.1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .slogan {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .horaires-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .comite-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    .cotisations-grid {
        grid-template-columns: 1fr;
    }
    
    .cotisation-card:nth-child(3) {
        grid-column: 1;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    th, td {
        padding: 8px 5px;
        font-size: 0.8rem;
    }
    
    .horaires-table h3 {
        font-size: 1.3rem;
    }
    
    /* Rencontres plus fines et sexy sur mobile */
    .rencontres-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .rencontre-card {
        padding: 15px;
        border-radius: 8px;
        border-left-width: 4px;
    }
    
    .rencontre-equipe {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }
    
    .rencontre-date {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .rencontre-adversaire {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .rencontre-lieu {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .logo img {
        width: 140px;
    }
    
    .logo {
        font-size: 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    /* Rencontres encore plus compactes sur très petits écrans */
    .rencontre-card {
        padding: 12px;
    }
    
    .rencontre-date {
        font-size: 0.9rem;
    }
    
    .rencontre-adversaire {
        font-size: 1.1rem;
    }
    
    .rencontre-lieu {
        font-size: 0.85rem;
    }
}
