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

:root {
    --primary-green: #2E8B57;
    --dark-green: #1a4d2e;
    --gold: #FFD700;
    --white: #FFFFFF;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* Navbar verte */
header {
    background-color: var(--primary-green);
    padding: 1rem 2rem;
    position: relative;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    height: 50px;
    width: auto;
    max-width: 100%;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--gold);
}

/* Hero Section avec image de fond */
.hero-disciplines {
    margin-top: 70px;
    position: relative;
    height: 70vh;
    background: linear-gradient(rgba(46, 139, 87, 0.3), rgba(46, 139, 87, 0.3)), url('https://images.unsplash.com/photo-1547447134-cd3f5c716030?w=1600&h=800&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-disciplines::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--dark-green), transparent);
}

/* Section des disciplines avec fond vert foncé */
.disciplines-section {
    background-color: var(--dark-green);
    padding: 5rem 2rem;
    position: relative;
    margin-top: -100px;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-header p {
    color: var(--white);
    font-size: clamp(1rem, 2vw, 1.1rem);
    opacity: 0.9;
}

/* Grid des disciplines */
.disciplines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.discipline-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: auto;
}

.discipline-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(46, 139, 87, 0.3);
}

.discipline-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
}

.discipline-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
    transition: opacity 0.4s;
}

.discipline-card:hover .discipline-image::before {
    opacity: 0.7;
}

.discipline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.discipline-card:hover .discipline-image img {
    transform: scale(1.15);
}

.discipline-content {
    padding: 2rem;
    background: white;
    position: relative;
}

.discipline-content h3 {
    color: var(--primary-green);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    margin-bottom: 0.8rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.8rem;
}

.discipline-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--primary-green) 100%);
    border-radius: 2px;
    transition: width 0.3s;
}

.discipline-card:hover .discipline-content h3::after {
    width: 100px;
}

.discipline-content .subtitle {
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: block;
}

.discipline-content p:not(.subtitle) {
    color: #555;
    line-height: 1.8;
    font-size: 0.98rem;
    margin: 0;
}

/* Badge discipline sur l'image */
.discipline-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 215, 0, 0.95);
    color: var(--dark-green);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

/* Icône décorative */
.discipline-icon {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.discipline-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

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

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

/* Tablettes larges (max-width: 1200px) */
@media (max-width: 1200px) {
    .disciplines-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    .discipline-image {
        height: 250px;
    }
}

/* Tablettes (max-width: 968px) */
@media (max-width: 968px) {
    header {
        padding: 1rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
        font-size: 0.9rem;
        justify-content: center;
    }

    .hero-disciplines {
        margin-top: 90px;
        height: 50vh;
    }

    .disciplines-section {
        padding: 3rem 1.5rem;
        margin-top: -80px;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-header h1 {
        font-size: 2rem;
    }

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

    .discipline-image {
        height: 220px;
    }

    .discipline-content {
        padding: 1.5rem;
    }

    .discipline-content h3 {
        font-size: 1.5rem;
    }
}

/* Smartphones (max-width: 576px) */
@media (max-width: 576px) {
    header {
        padding: 0.8rem;
    }

    .logo img {
        height: 40px;
    }

    nav ul {
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    .hero-disciplines {
        margin-top: 100px;
        height: 40vh;
        min-height: 300px;
        height: auto;
    }

    .hero-disciplines::before {
        height: 150px;
    }

    .disciplines-section {
        padding: 2rem 1rem;
        margin-top: -60px;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .disciplines-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .discipline-card {
        border-radius: 15px;
    }

    .discipline-image {
        height: 200px;
    }

    .discipline-badge {
        top: 15px;
        right: 15px;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .discipline-icon {
        width: 40px;
        height: 40px;
        bottom: 15px;
        left: 15px;
    }

    .discipline-icon svg {
        width: 22px;
        height: 22px;
    }

    .discipline-content {
        padding: 1.2rem;
    }

    .discipline-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
        padding-bottom: 0.6rem;
    }

    .discipline-content .subtitle {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }

    .discipline-content p:not(.subtitle) {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    footer {
        padding: 1.5rem 1rem;
    }
}

/* Très petits écrans (max-width: 360px) */
@media (max-width: 360px) {
    .logo img {
        height: 35px;
    }

    nav ul {
        font-size: 0.8rem;
    }

    .hero-disciplines {
        height: 35vh;
        min-height: 250px;
    }

    .section-header h1 {
        font-size: 1.3rem;
    }

    .discipline-image {
        height: 180px;
    }

    .discipline-content h3 {
        font-size: 1.2rem;
    }

    .discipline-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
}