/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.lnk {
    color: #bc80ea;
    font-weight: bold;
    text-decoration: none;
    background-color: #dfbdfa;
    border-radius: 16px;
    padding: 10px 20px;
    border: 1px solid #c584f3;
    transition: transform 0.3s ease;
}

.lnk:hover {
    transform: scale(1.05);
}

/* ==================== HEADER & NAVIGATION ==================== */
header {
    background: linear-gradient(135deg, #dfbdfa 0%, #bc80ea 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    gap: 15px;
    position: relative;
    min-height: 60px;
}

.header-actions {
    position: absolute;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.admin-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.admin-link.logout {
    background-color: rgba(239, 68, 68, 0.3);
}

.admin-link.logout:hover {
    background-color: rgba(239, 68, 68, 0.5);
}

.user-info {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.15);
}

#logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.logo-link {
    position: absolute;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.logo-link:hover {
    transform: scale(1.05);
}

#titre {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 800;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #fff;
    padding: 5px;
}

.navigation {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 15px 20px;
}

.nav-button {
    font-size: 1rem;
    cursor: pointer;
    background: linear-gradient(to bottom, #dfbdfa 5%, #bc80ea 100%);
    border: 1px solid #c584f3;
    border-radius: 16px;
    color: #ffffff;
    font-weight: bold;
    padding: 10px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-button:hover {
    background: linear-gradient(to bottom, #bc80ea 5%, #dfbdfa 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ==================== MAIN CONTENT ==================== */
main {
    background-color: #e8e8e8;
    min-height: calc(100vh - 200px);
    padding: 20px;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* ==================== INDEX PAGE ==================== */
.index-main {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
    align-items: start;
}

.activite {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.Image_txt {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.Image_txt:hover {
    transform: scale(1.05);
}

.Image_txt img {
    width: 100%;
    height: auto;
    display: block;
}

.Image_txt h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 1.1rem;
    padding: 12px;
    text-align: center;
    margin: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.Image_txt:hover h3 {
    transform: translateY(0);
}

.presentation {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ==================== MAIN PAGE LAYOUT ==================== */
.main-page {
    display: flex;
    flex-direction: column;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.hero-section.hero-club {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    line-height: 1.6;
}

.content-wrapper {
    background-color: #f5f5f5;
    padding: 40px 20px;
}

.page-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-intro {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    text-align: center;
}

.section-intro p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #555;
}

.section-title {
    font-size: 2.2rem;
    color: #1e293b;
    margin: 40px 0 30px 0;
    text-align: center;
    text-decoration: underline solid #667eea;
    text-underline-offset: 12px;
}

/* ==================== ACTIVITIES GRID ==================== */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.activity-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.activity-image {
    overflow: hidden;
    height: 220px;
    background: #f3f4f6;
}

.activity-image a {
    display: block;
    height: 100%;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.activity-card:hover .activity-image img {
    transform: scale(1.1);
}

.activity-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.activity-content h3 {
    font-size: 1.4rem;
    color: #667eea;
    margin-bottom: 12px;
    font-weight: 700;
}

.activity-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
    flex-grow: 1;
}

.card-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.card-link:hover {
    color: #764ba2;
    transform: translateX(5px);
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
}

.cta-section h2 {
    color: white;
    text-decoration: none;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

/* ==================== CLUB PAGE STYLES ==================== */
.info-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.info-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.info-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
}

.info-header h3 {
    font-size: 1.4rem;
    margin: 0;
}

.info-body {
    padding: 25px;
}

.info-body p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

/* ==================== TEAM GRID ==================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.team-member {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    text-align: center;
}

.team-role {
    display: block;
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.team-name {
    display: block;
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 700;
}

/* ==================== VALUES LIST ==================== */
.values-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.value-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    align-items: flex-start;
}

.value-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.value-text strong {
    display: block;
    color: #667eea;
    font-size: 1rem;
    margin-bottom: 5px;
}

.value-text p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}

#ck {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

/* ==================== ACTUALITES PAGE ==================== */
.actualites-main {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.actualites-main h2 {
    font-size: 2.2rem;
    color: #1e293b;
    margin-bottom: 40px;
    text-align: center;
    text-decoration: underline solid #9578a7;
    text-underline-offset: 10px;
}

.actualites-list {
    display: grid;
    gap: 30px;
}

.actualite-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.actualite-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.actualite-header {
    padding: 25px;
    border-bottom: 2px solid #f3f4f6;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}

.actualite-card h3 {
    font-size: 1.6rem;
    color: #1e293b;
    margin-bottom: 12px;
    margin: 0 0 12px 0;
}

.actualite-date {
    color: #6b7280;
    font-size: 0.9rem;
    display: inline-block;
    background-color: #f3f4f6;
    padding: 6px 12px;
    border-radius: 20px;
}

.actualite-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
    background-color: #f9fafb;
}

.actualite-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.actualite-img:hover {
    transform: scale(1.05);
}

.actualite-description {
    padding: 20px 25px;
    color: #4b5563;
    line-height: 1.8;
    font-size: 1rem;
}

.actualite-details {
    border-top: 1px solid #e5e7eb;
    padding: 0 25px;
}

.actualite-details summary {
    padding: 15px 0;
    cursor: pointer;
    font-weight: 600;
    color: #667eea;
    user-select: none;
}

.actualite-details summary:hover {
    color: #764ba2;
}

.actualite-contenu {
    padding: 20px 0 20px 0;
    color: #4b5563;
    line-height: 1.8;
}

.no-actualites {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.no-actualites p {
    font-size: 1.2rem;
}

/* ==================== LIGHTBOX STYLES ==================== */
.lightbox-trigger {
    cursor: pointer;
}

.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 95%;
    max-height: 95%;
    width: auto;
    height: auto;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 36px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.2);
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    color: #fff;
    font-size: 28px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

/* ==================== CLUB PAGE ==================== */
.club-main {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.club-main h2 {
    font-size: 2rem;
    text-decoration: underline solid #9578a7;
    color: #333;
    margin-top: 25px;
    margin-bottom: 20px;
}

.club-main h2:first-child {
    margin-top: 0;
}

.club-main p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablets: 600px to 900px */
@media screen and (max-width: 900px) {
    #titre {
        font-size: 1.5rem;
    }

    .index-main {
        grid-template-columns: 1fr;
    }

    .presentation {
        padding: 20px;
    }

    #ck {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .activities-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .section-title {
        font-size: 1.8rem;
    }

    .info-sections {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* Mobile: up to 600px */
@media screen and (max-width: 600px) {
    .header-top {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 15px;
        gap: 8px;
        position: relative;
        min-height: 80px;
        flex-wrap: wrap;
    }

    .logo-link {
        position: absolute;
        left: 15px;
        top: 12px;
        order: 1;
    }

    #logo {
        width: 50px;
        height: 50px;
    }

    #titre {
        font-size: 1.1rem;
        order: 2;
        flex-basis: 100%;
        padding-top: 50px;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 12px;
        right: 15px;
        font-size: 1.4rem;
        padding: 5px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 6px;
        cursor: pointer;
        color: #fff;
    }

    .header-actions {
        position: static;
        order: 3;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        align-items: center;
        padding: 8px 0 0 0;
    }

    .admin-link {
        font-size: 0.7rem;
        padding: 5px 8px;
        white-space: nowrap;
        line-height: 1.2;
    }

    .user-info {
        font-size: 0.7rem;
        padding: 5px 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 110px;
        line-height: 1.2;
    }

    .navigation {
        max-height: 0;
        overflow: hidden;
        flex-direction: column;
        padding: 0 20px;
        gap: 8px;
        transition: max-height 0.3s ease;
    }

    .navigation.active {
        max-height: 400px;
        padding: 15px 20px;
    }

    .nav-button {
        width: 100%;
        font-size: 0.95rem;
        padding: 12px;
    }

    main {
        padding: 0;
        min-height: calc(100vh - 180px);
    }

    .hero-section {
        padding: 40px 15px;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .content-wrapper {
        padding: 20px 15px;
    }

    .page-content {
        padding: 0;
    }

    .section-intro {
        padding: 20px 15px;
        margin-bottom: 25px;
    }

    .section-intro p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .section-title {
        font-size: 1.5rem;
        margin: 30px 0 20px 0;
    }

    .index-main {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .Image_txt h3 {
        font-size: 0.95rem;
        padding: 10px;
    }

    .presentation {
        padding: 15px;
    }

    #ck {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .activities-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 25px;
    }

    .activity-card {
        display: flex;
        flex-direction: row;
    }

    .activity-image {
        width: 120px;
        height: 120px;
        flex-shrink: 0;
    }

    .activity-content {
        padding: 15px;
    }

    .activity-content h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .activity-content p {
        font-size: 0.85rem;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card-link {
        font-size: 0.85rem;
    }

    .cta-section {
        padding: 30px 20px;
        margin-top: 25px;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .btn-large {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .actualites-main {
        padding: 15px;
    }

    .actualites-main h2 {
        font-size: 1.6rem;
    }

    .actualite-card {
        border-radius: 8px;
    }

    .actualite-header {
        padding: 15px;
    }

    .actualite-card h3 {
        font-size: 1.3rem;
    }

    .actualite-images {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }

    .actualite-img {
        height: 200px;
    }

    .actualite-description {
        padding: 15px;
        font-size: 0.95rem;
    }

    .actualite-details {
        padding: 0 15px;
    }

    .actualite-details summary {
        padding: 12px 0;
        font-size: 0.95rem;
    }

    .club-main {
        padding: 15px;
    }

    .club-main h2 {
        font-size: 1.5rem;
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .club-main p {
        font-size: 0.95rem;
    }

    .info-sections {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .info-card {
        border-radius: 8px;
    }

    .info-header {
        padding: 15px;
    }

    .info-header h3 {
        font-size: 1.2rem;
    }

    .info-body {
        padding: 15px;
    }

    .info-body p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .team-member {
        padding: 15px;
        text-align: left;
    }

    .team-role {
        font-size: 0.75rem;
    }

    .team-name {
        font-size: 1rem;
    }

    .values-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .value-item {
        padding: 12px;
    }

    .value-icon {
        font-size: 1.5rem;
    }

    .value-text strong {
        font-size: 0.95rem;
    }

    .value-text p {
        font-size: 0.8rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    footer {
        font-size: 0.9rem;
    }

    /* Lightbox responsive */
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 28px;
        width: 40px;
        height: 40px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 20px;
        padding: 10px 12px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-img {
        max-width: 100%;
        max-height: 90vh;
    }
}
