
.asso-page {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    min-height: 60vh;
    animation: fadeIn 0.4s ease-in;
}

/* Bouton de retour */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #005177;
    color: #005177;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.back-button:hover {
    background: #005177;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.back-button:active {
    transform: translateY(0);
}

.back-button i {
    font-size: 14px;
}

/* Header avec logo et titre */
.asso-header {
    display: flex;
    align-items: flex-start;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    gap: 30px;
}

.asso-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}


.asso-logo-center {
    display: flex;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .asso-logo-center {
        align-items: center;
    }
}

.asso-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.asso-logo img:hover {
    transform: scale(1.05);
}

.asso-content {
    flex: 1;
    z-index: 1;
    text-align: left;
}

/* Mobile logos - hidden by default */
.mobile-logos {
    display: none;
}

/* Desktop: hide logos if only one is present (only when using left/right system) */
@media (min-width: 769px) {
    .asso-header:has(.asso-logo-left):not(:has(.asso-logo-right)) .asso-logo-left {
        display: none;
    }
    .asso-header:has(.asso-logo-right):not(:has(.asso-logo-left)) .asso-logo-right {
        display: none;
    }
}

.asso-title {
    font-size: 3.5em;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    letter-spacing: -1px;
    text-align: left;
}

.asso-subtitle {
    font-size: 1.5em;
    font-weight: 300;
    margin: 10px 0 0 0;
    opacity: 0.9;
    font-style: italic;
    text-align: left;
}

/* Section description */
.asso-data {
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.asso-data p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    white-space: pre-line;
    margin: 0;
}

/* Titre de section commun */
.section-title {
    font-size: 2em;
    font-weight: 600;
    color: #333;
    margin: 0 0 30px 0;
    text-align: center;
}

/* Section members */
.asso-members {
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.members-list {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    flex-wrap: wrap;
}

.member-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 220px;
    min-height: 320px;
    justify-content: flex-start;
}

.member-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 4px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* Style for members without photos */
.member-avatar.no-photo {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 14px;
}

.member-avatar.no-photo::before {
    content: "Pas de photo";
    font-weight: 500;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
}

.member-role {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.member-pseudo {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #888;
    font-weight: 500;
    margin-bottom: 5px;
}

.member-social {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.member-facebook,
.member-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.member-facebook {
    background: #1877F2;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.member-linkedin {
    background: #0A66C2;
    box-shadow: 0 4px 15px rgba(10, 102, 194, 0.3);
}

.member-facebook:hover,
.member-linkedin:hover {
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.member-facebook:hover {
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}

.member-linkedin:hover {
    box-shadow: 0 6px 20px rgba(10, 102, 194, 0.4);
}

.member-facebook i,
.member-linkedin i {
    font-size: 16px;
}

/* Section team */
.asso-team {
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.asso-team img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Section événements */
.asso-events {
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.event-item {
    text-align: center;
}

.event-title {
    font-size: 24px;
    font-weight: 600;
    color: #666;
    margin: 0 0 15px 0;
}

.event-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Liens réseaux sociaux */
.asso-social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
}

.asso-social-links:empty {
    margin: 0;
    padding: 0;
    border: none;
    display: none !important;
}

.asso-social-links:not(:has(.social-link)) {
    margin: 0;
    padding: 0;
    border: none;
    display: none !important;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: white;
    text-decoration: none;
}

.social-link i {
    font-size: 20px;
}

.social-link.youtube {
    background: #FF0000;
}

.social-link.facebook {
    background: #1877F2;
}

.social-link.web {
    background: #6c757d;
}

.social-link.instagram {
    background: linear-gradient(45deg, #F56040, #C13584, #833AB4);
}

.social-link.linkedin {
    background: #0A66C2;
}

.social-link.discord {
    background: #5865F2;
}

.social-link.whatsapp {
    background: #25D366;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Responsive design */
@media (max-width: 768px) {
    .asso-page {
        padding: 15px;
    }
    
    .asso-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 20px 15px;
        gap: 20px;
    }
    
    .asso-content {
        text-align: center !important;
        align-self: center;
    }
    
    /* Hide original logos on mobile, show mobile logos */
    .asso-logo-left,
    .asso-logo-right {
        display: none;
    }
    
    /* Show mobile logos */
    .mobile-logos {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-bottom: 25px;
    }
    
    .mobile-logo-left img,
    .mobile-logo-right img {
        width: 100px;
        height: 100px;
        object-fit: contain;
    }
    
    .asso-logo {
        margin: 0 0 10px 0;
    }
    
    .asso-logo img {
        width: 100px;
        height: 100px;
        object-fit: contain;
    }
    
    .asso-title {
        font-size: 2.5em;
        text-align: center !important;
    }
    
    .asso-subtitle {
        font-size: 1.2em;
        text-align: center !important;
    }
    
    .asso-data {
        padding: 25px;
    }
    
    .asso-data p {
        font-size: 16px;
    }
    
    .asso-members {
        padding: 25px;
    }
    
    .members-list {
        gap: 30px;
    }
    
    .member-avatar {
        width: 130px;
        height: 130px;
        margin-bottom: 12px;
    }
    
    .member-name {
        font-size: 16px;
    }
    
    .member-pseudo {
        font-size: 13px;
    }
    
    .member-facebook,
    .member-linkedin {
        width: 35px;
        height: 35px;
    }
    
    .member-social {
        margin-top: 8px;
    }
    
    .member-facebook i,
    .member-linkedin i {
        font-size: 16px;
    }

    .asso-team {
        padding: 25px;
    }
    
    .asso-events {
        padding: 25px;
    }
    
    .section-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }
    
    .events-list {
        gap: 20px;
    }
    
    .event-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .back-button {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .asso-social-links {
        gap: 12px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .asso-title {
        font-size: 2em;
        text-align: center !important;
    }
    
    .asso-subtitle {
        font-size: 1em;
        text-align: center !important;
    }
    
    .asso-logo img {
        max-width: 100px;
        max-height: 100px;
        object-fit: contain;
    }
    
    .asso-content {
        text-align: center !important;
        align-self: center;
    }
    
    /* Hide original logos on mobile, show mobile logos */
    .asso-logo-left,
    .asso-logo-right {
        display: none;
    }
    
    /* Show mobile logos */
    .mobile-logos {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .mobile-logo-left img,
    .mobile-logo-right img {
        max-width: 100px;
        max-height: 100px;
        object-fit: contain;
    }
    
    .asso-data {
        padding: 20px;
    }
    
    .asso-data p {
        font-size: 14px;
    }
    
    .asso-members {
        padding: 20px;
    }
    
    .members-list {
        gap: 25px;
    }
    
    
    .member-avatar {
        width: 120px;
        height: 120px;
        margin-bottom: 10px;
    }
    
    .member-name {
        font-size: 14px;
    }
    
    .member-pseudo {
        font-size: 12px;
    }
    
    .member-facebook,
    .member-linkedin {
        width: 32px;
        height: 32px;
    }
    
    .member-social {
        margin-top: 6px;
    }
    
    .member-facebook i,
    .member-linkedin i {
        font-size: 14px;
    }

    .asso-team {
        padding: 20px;
    }
    
    .asso-events {
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.3em;
        margin-bottom: 15px;
    }
    
    .events-list {
        gap: 15px;
    }
    
    .event-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .back-button {
        font-size: 13px;
        padding: 8px 14px;
    }
    
    .asso-social-links {
        gap: 10px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .social-link i {
        font-size: 16px;
    }
}