/* anciens.css - Version complète avec palette spécifique */

/* ===== VARIABLES CSS ===== */
:root {
    --bleu-nuit: #1a237e;
    --rouge-nuit: #b71c1c;
    --blanc: #ffffff;
    --gris-clair: #f5f5f5;
    --gris-fonce: #424242;
    --bleu-clair: #3f51b5;
    --rouge-clair: #e53935;
    --bleu-gradient: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    --rouge-gradient: linear-gradient(135deg, #b71c1c 0%, #c62828 100%);
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.15);
    --black: #020205;
    --animation: slideUp 1s ease;
}

/* ===== ANIMATION D'APPARITION ===== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== STYLES GÉNÉRAUX ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gris-fonce);
    background-color: var(--blanc);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER SUPÉRIEUR ===== */
.header-top {
    background: var(--bleu-gradient);
    color: var(--blanc);
    padding: 8px 0;
    font-size: 0.9rem;
}

.info-scroll {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.info-label {
    background: var(--rouge-nuit);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 20px;
    white-space: nowrap;
}

.info-scroll-content {
    display: inline-block;
    white-space: nowrap;
    animation: scrollText 20s linear infinite;
}

.info-scroll-content span {
    margin: 0 15px;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes scrollText {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ===== HEADER PRINCIPAL ===== */
.header-top {
    background: var(--bleu-nuit);
    color: var(--blanc);
    padding: 8px 0;
    font-size: 0.9rem;
}

.info-scroll {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.info-label {
    background: var(--rouge-nuit);
    padding: 4px 12px;
    border-radius: 4px;
    margin-right: 15px;
    font-weight: bold;
    white-space: nowrap;
}

.info-scroll-content {
    white-space: nowrap;
    animation: scrollText 30s linear infinite;
}

@keyframes scrollText {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Header principal */
.header-main {
    background: var(--blanc);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--bleu-nuit);
    padding: 10px 15px;
    display: block;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: white;
}

.dropdown-menu {
    position: absolute;
    background: var(--blanc);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    min-width: 200px;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--bleu-nuit);
    cursor: pointer;
}

/* ===== BANNIÈRE ANCIENS MEMBRES ===== */
.anciens-banner {
    background: 
        linear-gradient(135deg, rgba(26, 35, 126, 0.9) 0%, rgba(183, 28, 28, 0.8) 100%),
        url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    color: var(--blanc);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.anciens-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 35, 126, 0.1);
    z-index: 1;
}

.anciens-banner .banner-content {
    position: relative;
    z-index: 2;
}

.anciens-banner h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.anciens-banner p {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== SECTION PRÉSENTATION ANCIENS ===== */
.presentation-anciens {
    padding: 80px 0;
    background: var(--gris-clair);
}

.presentation-anciens .presentation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.presentation-anciens .presentation-text h3 {
    color: var(--bleu-nuit);
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 600;
}

.presentation-anciens .presentation-text p {
    margin-bottom: 25px;
    line-height: 1.7;
    color: var(--gris-fonce);
    font-size: 1.1rem;
    text-align: justify;
}

.stats-anciens {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    justify-content: space-around;
}

.stat-item {
    text-align: center;
    background: var(--blanc);
    padding: 20px 15px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bleu-nuit);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--gris-fonce);
    font-size: 0.9rem;
    font-weight: 500;
}

.presentation-anciens .presentation-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.presentation-anciens .presentation-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.presentation-anciens .presentation-image:hover img {
    transform: scale(1.05);
}

/* ===== SECTION ANCIENS RESPONSABLES ===== */
.anciens-responsables {
    padding: 80px 0;
    background: var(--blanc);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--bleu-nuit);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header .divider {
    width: 80px;
    height: 3px;
    background: var(--rouge-nuit);
    margin: 0 auto 20px;
}

.section-header p {
    color: var(--gris-fonce);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Filtres */
.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--gris-clair);
    color: var(--gris-fonce);
    border: 2px solid transparent;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--bleu-gradient);
    color: var(--blanc);
    transform: translateY(-2px);
}

/* Grille des anciens membres */
.anciens-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 21px;
    margin-top: 28px;
}

.ancien-card {
    background: var(--blanc);
    border-radius: 10.5px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border-top: 2.8px solid var(--bleu-nuit);
    animation: var(--animation);
    display: flex;
    flex-direction: column;
}

.ancien-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--rouge-nuit);
}

/* Photo Section */
.ancien-photo {
    position: relative;
    height: 196px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a237e 0%, #3f51b5 100%);
}

.ancien-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ancien-card:hover .ancien-photo img {
    transform: scale(1.08);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bleu-gradient);
}

.photo-placeholder span {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ancien-card:hover .photo-overlay {
    opacity: 1;
}

.overlay-content {
    color: var(--blanc);
}

.overlay-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.overlay-content p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.overlay-content .voir-profil {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.ancien-card:hover .voir-profil {
    background: white;
    color: var(--bleu-nuit);
}

/* Content Section */
.ancien-content {
    padding: 17.5px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8.4px;
}

.ancien-nom {
    color: var(--bleu-nuit);
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
}

.ancien-poste {
    color: var(--rouge-nuit);
    font-weight: 600;
    margin: 0;
    font-size: 0.7rem;
    line-height: 1.3;
}

/* Type & Club Badges */
.ancien-type, .ancien-club {
    display: inline-flex;
    align-items: center;
    gap: 5.6px;
    padding: 4.2px 8.4px;
    border-radius: 14px;
    font-size: 0.595rem;
    font-weight: 600;
    width: fit-content;
}

.ancien-type {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--blanc);
}

.ancien-club {
    color: var(--blanc);
    margin-top: 2.8px;
}

/* Période */
.ancien-periode {
    display: flex;
    align-items: center;
    gap: 5.6px;
    color: var(--gris-fonce);
    font-size: 0.63rem;
    font-weight: 500;
    padding: 5.6px 0;
    border-top: 1px solid rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.ancien-periode i {
    color: var(--bleu-clair);
}

/* Bio */
.ancien-bio {
    color: var(--gris-fonce);
    line-height: 1.6;
    margin: 5.6px 0;
    font-size: 0.644rem;
    flex-grow: 1;
}

/* Competences */
.ancien-competences {
    display: flex;
    flex-wrap: wrap;
    gap: 5.6px;
    margin-top: 7px;
}

.competence-tag {
    background: var(--gris-clair);
    color: var(--gris-fonce);
    padding: 3.5px 8.4px;
    border-radius: 10.5px;
    font-size: 0.56rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ancien-card:hover .competence-tag {
    background: var(--bleu-clair);
    color: var(--blanc);
    transform: translateY(-1.4px);
}

/* Contact */
.ancien-contact {
    display: flex;
    gap: 7px;
    margin-top: auto;
    padding-top: 10.5px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.ancien-contact a {
    width: 40px;
    height: 40px;
    background: var(--gris-clair);
    color: var(--bleu-nuit);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.ancien-contact a:hover {
    background: var(--bleu-gradient);
    color: var(--blanc);
    transform: translateY(-3px) rotate(5deg);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 100px 20px;
    color: var(--gris-fonce);
}

.empty-state i {
    font-size: 5rem;
    margin-bottom: 30px;
    opacity: 0.3;
    color: var(--bleu-nuit);
}

.empty-state h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--bleu-nuit);
}

.empty-state p {
    font-size: 1.1rem;
    color: var(--gris-fonce);
    opacity: 0.7;
}

/* ===== SECTION TÉMOIGNAGES ===== */
.temoignages {
    padding: 80px 0;
    background: var(--gris-clair);
}

.temoignages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.temoignage-card {
    background: var(--blanc);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    border-top: 4px solid var(--bleu-nuit);
}

.temoignage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--rouge-nuit);
}

.temoignage-content {
    position: relative;
    margin-bottom: 20px;
}

.temoignage-content i {
    color: var(--rouge-clair);
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.temoignage-content p {
    color: var(--gris-fonce);
    line-height: 1.6;
    font-style: italic;
    font-size: 1rem;
}

.temoignage-auteur {
    border-top: 1px solid var(--gris-clair);
    padding-top: 15px;
}

.temoignage-auteur strong {
    color: var(--bleu-nuit);
    display: block;
    margin-bottom: 5px;
}

.temoignage-auteur span {
    color: var(--gris-fonce);
    font-size: 0.9rem;
}

/* ===== SECTION CONTACT ANCIENS ===== */
.contact-anciens {
    padding: 80px 0;
    background: var(--gris-clair);
    color: var(--bleu-nuit);
    text-align: center;
}

.contact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--rouge-gradient);
    color: var(--blanc);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: var(--blanc);
    color: var(--rouge-nuit);
}

.btn-secondary {
    background: transparent;
    
    color: var(--bleu-nuit);
    border-color: var(--bleu-clair);
}

.btn-secondary:hover {
    background: var(--bleu-nuit);
    color: white;
    transform: translateY(-3px);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bleu-nuit);
    color: var(--blanc);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--rouge-clair);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-slogan {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-style: italic;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanc);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--rouge-nuit);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--rouge-clair);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    color: var(--rouge-clair);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
    color: var(--rouge-clair);
    text-decoration: none;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .anciens-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .presentation-anciens .presentation-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .anciens-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .ancien-photo {
        height: 240px;
    }
    
    .ancien-content {
        padding: 20px;
    }
    
    .temoignages-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--blanc);
        flex-direction: column;
        box-shadow: var(--shadow);
        padding: 20px;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .anciens-banner {
        padding: 80px 0;
    }
    
    .anciens-banner h1 {
        font-size: 2.5rem;
    }
    
    .anciens-banner p {
        font-size: 1.1rem;
    }
    
    .filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .stats-anciens {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        justify-content: center;
    }

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

@media (max-width: 480px) {
    .anciens-grid {
        grid-template-columns: 1fr;
    }
    
    .ancien-card {
        margin: 0 10px;
    }
    
    .ancien-content {
        padding: 20px;
    }
    
    .contact-content h2 {
        font-size: 2rem;
    }
    
    .contact-content p {
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===== ANIMATIONS SUPPLÉMENTAIRES ===== */
.ancien-card {
    animation: slideUp 0.6s ease forwards;
}

.ancien-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.ancien-card:nth-child(even) {
    animation-delay: 0.2s;
}

/* Amélioration de la lisibilité sur mobile */
@media (max-width: 768px) {
    .presentation-anciens .presentation-text p {
        text-align: left;
    }
}