/* association.css - Styles pour la page L'Association */

.tu-association-section {
    padding: 4rem 0;
    background-color: #f8fafc; /* Fond très clair */
    min-height: 80vh;
    transition: background-color 0.3s ease;
}

.tu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.tu-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.tu-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    transition: color 0.3s ease;
}

/* Grille Membres */
.tu-members-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .tu-members-grid {
        grid-template-columns: 1fr;
    }
}

.tu-member-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s ease, border-color 0.3s ease;
}

.tu-member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.tu-member-avatar {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Couleurs spécifiques par membre (nth-child) */

/* Membre 1 - Anas (Chef de projet) : Bleu TeamUp */
.tu-member-card:nth-child(1) .tu-member-avatar {
    background-color: rgba(0, 50, 98, 0.08);
    color: #003262;
}
.tu-member-card:nth-child(1) .tu-member-role {
    color: #003262;
}
.tu-member-card:nth-child(1) .tu-member-email:hover {
    color: #003262;
}

/* Membre 2 - Dorian (Comms) : Violet Créatif */
.tu-member-card:nth-child(2) .tu-member-avatar {
    background-color: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}
.tu-member-card:nth-child(2) .tu-member-role {
    color: #7c3aed;
}
.tu-member-card:nth-child(2) .tu-member-email:hover {
    color: #7c3aed;
}

/* Membre 3 - Macéo (Designer) : Rose/Fuchsia Artistique */
.tu-member-card:nth-child(3) .tu-member-avatar {
    background-color: rgba(219, 39, 119, 0.1);
    color: #db2777;
}
.tu-member-card:nth-child(3) .tu-member-role {
    color: #db2777;
}
.tu-member-card:nth-child(3) .tu-member-email:hover {
    color: #db2777;
}

/* Membre 4 - Yassin (Dev) : Cyan/Teal Technique */
.tu-member-card:nth-child(4) .tu-member-avatar {
    background-color: rgba(13, 148, 136, 0.1);
    color: #0d9488;
}
.tu-member-card:nth-child(4) .tu-member-role {
    color: #0d9488;
}
.tu-member-card:nth-child(4) .tu-member-email:hover {
    color: #0d9488;
}


.tu-member-avatar i {
    font-size: 2rem;
}

.tu-member-info {
    flex: 1;
}

.tu-member-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.tu-member-role {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.tu-member-desc {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.tu-member-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.tu-member-email:hover {
    /* Color defined by nth-child rules above */
    opacity: 0.8;
}

/* Bloc Contact */
.tu-contact-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.tu-contact-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.tu-contact-text {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.tu-contact-note {
    font-size: 0.9rem;
    color: #94a3b8;
    background: #f8fafc;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tu-contact-note strong {
    color: #003262; /* Primary Blue */
    transition: color 0.3s ease;
}

/* Accessibilité */
.tu-association-section a:focus,
.tu-association-section button:focus {
    outline: 2px solid #003262; /* Primary Blue */
    outline-offset: 2px;
}

/* Dark Mode Support */
body[data-theme="dark"] .tu-association-section {
    background-color: #0f172a; /* Dark background matching dashboard/other pages */
}

body[data-theme="dark"] .tu-title,
body[data-theme="dark"] .tu-member-name,
body[data-theme="dark"] .tu-contact-title {
    color: #f1f5f9; /* Light text */
}

body[data-theme="dark"] .tu-subtitle,
body[data-theme="dark"] .tu-member-desc,
body[data-theme="dark"] .tu-member-email,
body[data-theme="dark"] .tu-contact-text,
body[data-theme="dark"] .tu-contact-note {
    color: #94a3b8; /* Muted light text */
}

body[data-theme="dark"] .tu-member-card,
body[data-theme="dark"] .tu-contact-block {
    background-color: #1e293b; /* Darker card background */
    border-color: #334155; /* Dark border */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* Dark Mode Colors per Member */

/* Membre 1 - Anas : Bleu Ciel */
body[data-theme="dark"] .tu-member-card:nth-child(1) .tu-member-avatar {
    background-color: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}
body[data-theme="dark"] .tu-member-card:nth-child(1) .tu-member-role,
body[data-theme="dark"] .tu-member-card:nth-child(1) .tu-member-email:hover {
    color: #38bdf8;
}

/* Membre 2 - Dorian : Violet Clair */
body[data-theme="dark"] .tu-member-card:nth-child(2) .tu-member-avatar {
    background-color: rgba(167, 139, 250, 0.15);
    color: #a78bfa;
}
body[data-theme="dark"] .tu-member-card:nth-child(2) .tu-member-role,
body[data-theme="dark"] .tu-member-card:nth-child(2) .tu-member-email:hover {
    color: #a78bfa;
}

/* Membre 3 - Macéo : Rose Clair */
body[data-theme="dark"] .tu-member-card:nth-child(3) .tu-member-avatar {
    background-color: rgba(244, 114, 182, 0.15);
    color: #f472b6;
}
body[data-theme="dark"] .tu-member-card:nth-child(3) .tu-member-role,
body[data-theme="dark"] .tu-member-card:nth-child(3) .tu-member-email:hover {
    color: #f472b6;
}

/* Membre 4 - Yassin : Cyan Clair */
body[data-theme="dark"] .tu-member-card:nth-child(4) .tu-member-avatar {
    background-color: rgba(45, 212, 191, 0.15);
    color: #2dd4bf;
}
body[data-theme="dark"] .tu-member-card:nth-child(4) .tu-member-role,
body[data-theme="dark"] .tu-member-card:nth-child(4) .tu-member-email:hover {
    color: #2dd4bf;
}

body[data-theme="dark"] .tu-contact-note {
    background-color: #0f172a; /* Darker note background */
    color: #94a3b8;
}

body[data-theme="dark"] .tu-contact-note strong {
    color: #38bdf8; /* Sky Blue */
}
