.header {
    position: relative;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.logo img {
    width: 150px;
    height: 150px;
    margin-bottom: 2rem;
}

.header-content {
    text-align: center;
    z-index: 1;
}

.header-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: carousel 20s linear infinite;
}

@keyframes carousel {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

:root {
    --primary-color: #00853f;
    --secondary-color: #f4f4f4;
    --text-color: #333;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.adherents-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #e9ecef 100%);
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-color);
}

.adherent-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--white);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.adherents-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.adherent-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.adherent-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.adherent-image-container {
    position: relative;
}

.adherent-image {
    height: 300px;
    background-size: cover;
    background-position: center;
}

.default-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--secondary-color);
}

.default-image i {
    font-size: 5rem;
    color: var(--primary-color);
}

.adherent-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.adherent-content {
    padding: 1.5rem;
    text-align: center;
}

.adherent-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.adherent-details {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.sport-badge,
.niveau-badge {
    background: var(--secondary-color);
    color: var(--text-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: background 0.3s ease;
}

.profile-btn:hover {
    background: #006e33;
}

.profile-btn i {
    transition: transform 0.3s ease;
}

.profile-btn:hover i {
    transform: translateX(5px);
}

/* Responsive design */
@media (max-width: 1200px) {
    .adherents-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .adherents-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .adherent-filters {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .adherents-grid {
        grid-template-columns: 1fr;
    }
}

#events {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #e9ecef 100%);
    padding: 4rem 0;
}

.events-section .section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.events-section .section-header h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.events-section .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-color);
}

.events {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.event-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.event-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.event-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.7));
    z-index: 1;
}

.event-content {
    padding: 1.5rem;
    text-align: center;
}

.event-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.event-content p {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.event-date {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--text-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #006e33;
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* Responsive design pour les événements */
@media (max-width: 1200px) {
    .events {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .events {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .events {
        grid-template-columns: 1fr;
    }
}

.programmes-section {
    background: var(--white);
    padding: 4rem 0;
}

.programmes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.programme-card {
    background: var(--secondary-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.programme-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.programme-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.programme-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.programme-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: 1rem;
    font-weight: bold;
}

.programme-link i {
    transition: transform 0.3s ease;
}

.programme-link:hover i {
    transform: translateX(5px);
}

/* Responsive design pour les programmes */
@media (max-width: 1200px) {
    .programmes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .programmes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .programmes-grid {
        grid-template-columns: 1fr;
    }

}

.adhesion-cta {
    text-align: center;
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 2rem;
    margin-top: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.adhesion-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.adhesion-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.8);
}

.cta-button-large {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cta-button-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.cta-button-large i {
    font-size: 1.5rem;
}

/* Améliorations spécifiques pour les très petits écrans */
@media (max-width: 480px) {
    .header {
        height: 60vh;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .header-content p {
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .adherent-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .adherent-card {
        margin-bottom: 1rem;
    }

    .adhesion-cta {
        padding: 2rem 1rem;
    }

    .adhesion-cta h3 {
        font-size: 1.5rem;
    }

    .adhesion-cta p {
        font-size: 1rem;
    }

    .cta-button-large {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .cta-button-large i {
        font-size: 1.2rem;
    }

    .events,
    .programmes-grid {
        gap: 1rem;
    }

    .event-card,
    .programme-card {
        margin-bottom: 1rem;
    }
}

/* Améliorations pour les tablettes */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header {
        height: 70vh;
    }

    .header-content {
        padding: 0 20px;
    }

    .section {
        padding: 2rem 0;
    }

    .adherents-grid,
    .events,
    .programmes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Optimisation pour les écrans moyens */
@media (max-width: 1024px) {
    .header {
        height: 75vh;
    }

    .adherents-grid,
    .events,
    .programmes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* Optimisation de la typographie mobile */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    h1, h2, h3 {
        line-height: 1.3;
    }

    .adherent-content h3 {
        font-size: 1.1rem;
    }

    .adherent-details {
        flex-direction: column;
        align-items: center;
    }

    .sport-badge,
    .niveau-badge {
        margin-bottom: 0.5rem;
    }
}
@media (max-width: 768px) {
    .filter-btn,
    .cta-button,
    .profile-btn,
    .programme-link {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.75rem 1.25rem;
    }
}
* {
    transition: all 0.3s ease;
}




#about {
    background: linear-gradient(135deg, var(--background-color) 0%, #e9ecef 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

#about .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-content {
    flex: 0 0 60%;
    position: relative;
    z-index: 2;
}

.mission-visual {
    flex: 0 0 35%;
    position: relative;
    height: 400px;
}

.sport-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.sport-element {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(0, 133, 63, 0.1);
    color: var(--primary-color);
    font-size: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
}

.sport-element:hover {
    transform: scale(1.2) rotate(360deg);
    background-color: rgba(0, 133, 63, 0.2);
}

.basketball {
    top: 10%;
    left: 10%;
    animation: float 4s ease-in-out infinite alternate;
}

.football {
    top: 60%;
    right: 10%;
    animation: float 4s ease-in-out infinite alternate-reverse;
}

.tennis {
    top: 30%;
    right: 30%;
    animation: float 5s ease-in-out infinite alternate;
}

.running {
    bottom: 10%;
    left: 30%;
    animation: float 5s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-20px);
    }
}

.about-icon {
    position: absolute;
    top: -50px;
    left: 0;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.1;
    z-index: -1;
}

#about h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

#about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

#about p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.mission-details {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.mission-item {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.mission-item:hover {
    transform: translateY(-10px);
}

.mission-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.mission-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.mission-item p {
    font-size: 0.9rem;
    color: #666;
}

/* Parallax Effect */
.mission-item[data-parallax="left"] {
    transform: translateX(-20px);
}

.mission-item[data-parallax="right"] {
    transform: translateX(20px);
}

/* Responsive Design */
@media (max-width: 992px) {
    #about .container {
        flex-direction: column;
        text-align: center;
    }

    .about-content, .mission-visual {
        flex: 0 0 100%;
        margin-bottom: 2rem;
    }

    .mission-details {
        flex-direction: column;
    }
}

/* Subtle Background Animation */
@keyframes backgroundFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg, 
        rgba(0, 133, 63, 0.05), 
        rgba(76, 175, 80, 0.05), 
        rgba(0, 133, 63, 0.05)
    );
    background-size: 400% 400%;
    animation: backgroundFlow 15s ease infinite;
    z-index: 1;
}

/* Responsive Design pour les téléphones */
@media (max-width: 768px) {
    /* Header */
    .header {
        height: 60vh;
        text-align: center;
        padding: 2rem 0;
    }

    .header-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .header-content p {
        font-size: 1rem;
        margin-top: 0.5rem;
    }

    .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }

    /* Grille des adhérents */
    .adherents-grid {
        grid-template-columns: 1fr; /* Une seule colonne */
        gap: 1rem;
    }

    .adherent-card {
        margin-bottom: 1rem;
    }

    .adherent-content h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .sport-badge,
    .niveau-badge {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }

    .profile-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Filtres des adhérents */
    .adherent-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        text-align: center;
        margin-bottom: 0.5rem;
    }

    /* Section événements */
    .events {
        grid-template-columns: 1fr; /* Une seule colonne */
        gap: 1rem;
    }

    .event-card {
        margin-bottom: 1rem;
    }

    .event-image {
        height: 200px; /* Réduire la hauteur des images */
    }

    .event-content h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .event-content p {
        font-size: 0.8rem;
    }

    .event-date {
        font-size: 0.7rem;
    }

    .cta-button {
        padding: 0.6rem 1rem;
        font-size: 1rem;
    }

    /* Section programmes */
    .programmes-grid {
        grid-template-columns: 1fr; /* Une seule colonne */
        gap: 1.5rem;
    }

    .programme-card {
        padding: 1rem;
    }

    .programme-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .programme-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .programme-link {
        font-size: 0.9rem;
    }

    /* CTA Adhésion */
    .adhesion-cta {
        padding: 2rem 1rem;
    }

    .adhesion-cta h3 {
        font-size: 1.5rem;
    }

    .adhesion-cta p {
        font-size: 1rem;
    }

    .cta-button-large {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    /* Section About */
    #about .container {
        flex-direction: column;
        text-align: center; /* Centrage vertical */
    }

    .about-content, .mission-visual {
        flex: 0 0 100%;
        margin-bottom: 2rem;
    }

    .mission-details {
        flex-direction: column; /* Empiler les éléments */
        gap: 1.5rem;
    }

    .mission-item {
        padding: 1rem;
    }

    .mission-item h3 {
        font-size: 1.2rem;
    }

    .mission-item p {
        font-size: 0.9rem;
    }

    /* Header - Contenu centré */
    .header-content {
        padding: 0 1rem;
    }

    .header-carousel {
        display: none; /* Désactiver le carrousel sur les petits écrans */
    }
}

/* Responsive Design pour les téléphones */
@media (max-width: 768px) {
    /* Header */
    .header {
        height: 100vh;
        text-align: center;
        padding: 0;
        position: relative;
    }

    .header-content {
        position: relative;
        z-index: 2;
        padding: 2rem 1rem;
        background: rgba(0, 0, 0, 0.5);
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .header-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        color: white;
        margin-bottom: 1rem;
    }

    .header-content p {
        font-size: 1rem;
        margin: 1rem 0;
        color: white;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        background: var(--primary-color);
        color: white;
        border: 2px solid white;
        margin-top: 1rem;
    }

    .header-carousel {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .carousel-item {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
    }

    .carousel-item:nth-child(1) { animation: carouselMobile 20s infinite 0s; }
    .carousel-item:nth-child(2) { animation: carouselMobile 20s infinite 5s; }
    .carousel-item:nth-child(3) { animation: carouselMobile 20s infinite 10s; }
    .carousel-item:nth-child(4) { animation: carouselMobile 20s infinite 15s; }

    @keyframes carouselMobile {
        0%, 45%, 100% { opacity: 0; }
        5%, 40% { opacity: 1; }
    }
}

/* Responsive Design pour les très petits écrans (<480px) */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    h1, h2, h3 {
        line-height: 1.3;
    }

    .adherent-content h3 {
        font-size: 0.9rem;
    }

    .sport-badge,
    .niveau-badge {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
    }

    .profile-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    /* Boutons */
    .filter-btn,
    .cta-button,
    .profile-btn,
    .programme-link {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    /* Section événements */
    .event-image {
        height: 150px; /* Réduire davantage la hauteur des images */
    }

    .adhesion-cta h3 {
        font-size: 1.3rem;
    }

    .adhesion-cta p {
        font-size: 0.9rem;
    }

    .cta-button-large {
        font-size: 0.9rem;
    }

    /* Marges réduites */
    .adherent-card,
    .event-card,
    .programme-card {
        margin-bottom: 1rem;
    }

    /* Section About */
    #about h2 {
        font-size: 1.8rem;
    }

    #about p {
        font-size: 0.9rem;
    }

    .mission-item {
        padding: 0.9rem;
    }

    
}

