/* ===== Variables CSS - Thème Terre Battue ===== */
:root {
    --color-primary: #c17a4a;
    --color-secondary: #8b5a3c;
    --color-accent: #e89b6d;
    --color-green: #2d5016;
    --color-dark: #2c1810;
    --color-light: #faf7f4;
    --color-white: #ffffff;
    --color-gray: #6c6157;
    --color-gray-light: #e8e3de;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(139, 90, 60, 0.1);
    --shadow-md: 0 4px 6px rgba(139, 90, 60, 0.15);
    --shadow-lg: 0 10px 15px rgba(139, 90, 60, 0.2);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--color-light);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.header {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--color-primary);
}

.header .container {
    max-width: 1400px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
    position: relative; /* Fix menu mobile sur header sticky */
}

/* ===== CORRECTIF : empêche le logo de se compresser en desktop ===== */
.logo {
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.main-nav {
    flex: 1;
    min-width: 0;
}

.nav-menu {
    display: flex;
    gap: 0;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 0.75rem 0.6rem;
    color: var(--color-dark);
    font-weight: 500;
    font-size: 0.82rem;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--color-primary);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
    border-top: 2px solid var(--color-primary);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid var(--color-gray-light);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--color-dark);
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    background: var(--color-light);
    color: var(--color-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.header-actions .btn {
    padding: 0.6rem 0.9rem;
    font-size: 0.82rem;
    white-space: nowrap;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== CORRECTIF : centrage vertical du texte dans les boutons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

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

.btn-white:hover {
    background: var(--color-light);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline-white:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ===== Hero avec vidéo de fond ===== */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
}

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

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

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 24, 16, 0.3);
    z-index: 1;
}

.page-hero {
    background: linear-gradient(rgba(193, 122, 74, 0.9), rgba(139, 90, 60, 0.9)), 
                url('images/tennis-hero.jpg') center/cover;
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-primary);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-intro h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.section-intro p {
    font-size: 1.1rem;
    color: var(--color-gray);
    line-height: 1.8;
}

.about-section {
    background: var(--color-white);
}

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

.feature-card {
    background: var(--color-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: var(--color-primary);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--color-dark);
}

.feature-card p {
    color: var(--color-gray);
    line-height: 1.6;
}

.activities-section {
    background: var(--color-light);
}

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

.activity-card {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.activity-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.activity-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(139, 90, 60, 0.9), transparent);
    color: var(--color-white);
    padding: 2rem;
    transform: translateY(0);
    transition: var(--transition);
}

.activity-card:hover img {
    transform: scale(1.1);
}

.activity-card:hover .activity-overlay {
    background: linear-gradient(to top, rgba(193, 122, 74, 0.95), rgba(193, 122, 74, 0.7));
}

.activity-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.activity-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.news-section {
    background: var(--color-white);
}

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

.news-card {
    background: var(--color-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

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

.news-content {
    padding: 1.5rem;
}

.news-date {
    display: inline-block;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--color-dark);
}

.news-card p {
    color: var(--color-gray);
    margin-bottom: 1rem;
}

.news-link {
    color: var(--color-primary);
    font-weight: 600;
}

.news-link:hover {
    text-decoration: underline;
}

.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--color-primary);
}

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

.stat-label {
    color: var(--color-gray);
    font-size: 1.1rem;
}

.content-section {
    padding: 3rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-box {
    background: var(--color-light);
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
    border-left: 4px solid var(--color-primary);
}

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

.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
}

.tarifs-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.tarifs-table th {
    background: var(--color-primary);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.tarifs-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-gray-light);
}

.tarifs-table tr:last-child td {
    border-bottom: none;
}

.tarifs-table tr:hover {
    background: var(--color-light);
}

.price-highlight {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

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

.pricing-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, var(--color-light) 0%, #fff 100%);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-gray-light);
}

.pricing-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.pricing-subtitle {
    color: var(--color-gray);
    font-size: 0.9rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.pricing-period {
    color: var(--color-gray);
    font-size: 1rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-gray-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '✓';
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

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

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

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

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

.footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 3rem 0 1.5rem;
}

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

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

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

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-col a:hover {
    color: var(--color-accent);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border-radius: 50%;
    transition: var(--transition);
}

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-logos {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-logos img {
    height: 40px;
    width: auto;
}

/* ===== Responsive - Intermédiaire (entre 1025px et 1280px) ===== */
/* Compresse les liens sans passer en burger */
@media (max-width: 1280px) and (min-width: 1025px) {
    .nav-link {
        padding: 0.75rem 0.4rem;
        font-size: 0.78rem;
    }
    .nav-menu {
        gap: 0;
    }
    .header-actions {
        gap: 0.4rem;
    }
    .header-actions .btn {
        padding: 0.45rem 0.6rem;
        font-size: 0.78rem;
    }
    /* Masque "DEVENIR MEMBRE" pour gagner de la place */
    .header-actions .btn-outline:nth-child(2) {
        display: none;
    }
}

/* ===== Responsive - Tablette & Mobile (burger) ===== */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: var(--shadow-md);
        border-top: 2px solid var(--color-primary);
        z-index: 999;
    }

    .main-nav.active {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .nav-link {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--color-gray-light);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        border-left: 4px solid var(--color-primary);
        background: var(--color-light);
        transition: max-height 0.3s ease, visibility 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        visibility: visible;
        max-height: 500px;
    }

    .dropdown-menu a {
        padding: 0.75rem 2rem;
    }

    /* Hamburger animé → croix */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

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

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

    .mobile-menu-toggle {
        display: flex;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .header-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Responsive - Mobile ===== */
@media (max-width: 768px) {
    .hero h1, .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-intro h2 {
        font-size: 2rem;
    }
    
    .features-grid,
    .activities-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 500px;
    }
    
    .hero h1, .page-hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .header-actions .btn-outline {
        display: none;
    }
}