/* Senior ESCA - fond bleu, cartes bleu translucide, or et blanc */
:root {
    --or: #D4AF37;
    --or-vif: #F0B429;
    --or-clair: #FFE9A8;
    --bleu: #173F8A;
    --bleu-fonce: #0F2D5E;
    --blanc: #FFFFFF;
    --ivoire: #FFFDF5;
}

/* Ouverture */
.seniors-hero {
    position: relative;
    padding: 100px 20px 80px;
    background:
        radial-gradient(700px 300px at 20% 0%, rgba(212, 175, 55, 0.14), transparent 60%),
        radial-gradient(700px 300px at 80% 100%, rgba(212, 175, 55, 0.10), transparent 60%),
        var(--ivoire);
    text-align: center;
    color: var(--bleu-fonce);
    overflow: hidden;
}
.seniors-hero h1 {
    font-family: var(--font-titres);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #B8860B 0%, #D4AF37 30%, #B8860B 60%, #8B6914 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}
.gold-divider {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    margin: 0 auto 20px;
}
.seniors-hero p {
    font-family: var(--font-corps);
    font-size: 1.2rem;
    font-style: italic;
    color: #8B6914;
    max-width: 700px;
    margin: 0 auto;
}

/* Section fond bleu */
.seniors-section {
    padding: 80px 20px 90px;
    background:
        radial-gradient(900px 500px at 15% 0%, rgba(47, 107, 206, 0.22), transparent 60%),
        radial-gradient(800px 500px at 90% 100%, rgba(212, 175, 55, 0.10), transparent 60%),
        linear-gradient(180deg, #0F2D5E 0%, #123A7A 50%, #0B2447 100%);
}
.seniors-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* Filtres par annee */
.promo-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}
.promo-btn {
    padding: 9px 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #FFFFFF;
    border-radius: 50px;
    font-family: var(--font-titres);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.promo-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}
.promo-btn.active {
    background: linear-gradient(135deg, #FFD75E, #F0B429);
    border-color: #F0B429;
    color: var(--bleu-fonce);
    box-shadow: 0 6px 18px rgba(240, 180, 41, 0.35);
}

/* Grille */
.seniors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Cartes bleu translucide */
.senior-card {
    position: relative;
    background: linear-gradient(180deg, rgba(43, 76, 128, 0.55) 0%, rgba(23, 45, 84, 0.55) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    border-radius: 22px;
    padding: 26px 22px 30px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.senior-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.senior-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    border-color: rgba(240, 180, 41, 0.45);
}

/* Couronne doree */
.senior-crown {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD75E, #F0A500);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 6px 18px rgba(240, 165, 0, 0.45);
    z-index: 3;
}

/* Photo : cadre blanc, bordure doree, image naturelle */
.senior-photo-mat {
    background: #FFFFFF;
    border: 4px solid var(--or-vif);
    border-radius: 16px;
    padding: 10px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.senior-photo-mat img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 10px;
}
.senior-photo-mat.no-photo {
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.senior-photo-mat.no-photo img { display: none; }
.senior-photo-mat.no-photo::before {
    content: '\f007';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 5rem;
    color: var(--or-vif);
}

/* Textes : noms et fonctions en blanc, ESCA en or */
.senior-name {
    font-family: var(--font-titres);
    font-size: 1.3rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}
.senior-promo-line {
    font-family: var(--font-titres);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--or-vif);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.senior-function {
    font-family: var(--font-corps);
    font-size: 0.95rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

/* Section finale blanche : et bien d'autres */
.seniors-more-section {
    background: #FFFFFF;
    padding: 80px 20px 90px;
}
.seniors-more {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}
.more-divider {
    width: 140px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    margin: 0 auto 26px;
}
.seniors-more h3 {
    font-family: var(--font-titres);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--bleu-fonce);
    margin-bottom: 12px;
}
.seniors-more p {
    font-family: var(--font-corps);
    font-style: italic;
    color: #667085;
    max-width: 620px;
    margin: 0 auto 28px;
    line-height: 1.7;
}
.seniors-more-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #FFD75E, #F0B429);
    color: var(--bleu-fonce);
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-titres);
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 10px 26px rgba(212, 175, 55, 0.35);
    transition: all 0.3s ease;
}
.seniors-more-link:hover {
    background: #FFD75E;
    transform: translateY(-3px);
    gap: 14px;
}

/* Responsive */
@media (max-width: 1200px) {
    .seniors-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .senior-photo-mat img { height: 300px; }
}
@media (max-width: 992px) {
    .seniors-grid { grid-template-columns: repeat(2, 1fr); }
    .senior-photo-mat img { height: 320px; }
}
@media (max-width: 640px) {
    .seniors-section { padding: 60px 16px 70px; }
    .seniors-more-section { padding: 60px 16px 70px; }
    .seniors-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .senior-photo-mat img { height: 400px; }
    .senior-photo-mat.no-photo { height: 420px; }
    .promo-btn { padding: 8px 16px; font-size: 0.78rem; }
}