/* ══════════════════════════════════════════
   COMPLEXE SCOLAIRE SEKOU FOFANA
   Feuille de style — Page Personnels
   Fichier : css/personnels.css
══════════════════════════════════════════ */


/* ══════════════════════════════
   VARIABLES
══════════════════════════════ */

:root {
    --bleu: #0D47A1;
    --bleu-clair: #1565C0;
    --or: #FFD700;
    --blanc: #ffffff;
    --gris-clair: #f5f7fa;
    --texte: #1a1a2e;
    --texte-doux: #5a6a7e;
}


/* ══════════════════════════════
   RESET & BASE
══════════════════════════════ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--gris-clair);
    color: var(--texte);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}


/* ══════════════════════════════
   NAVBAR
══════════════════════════════ */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    height: 70px;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.nav-logo-icon {
    height: 42px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    font-size: 0.72rem;
    line-height: 1.3;
    font-weight: 500;
    opacity: 0.95;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 6px;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.nav-links a.active {
    color: var(--or);
}

.nav-cta {
    background: var(--or) !important;
    color: var(--bleu) !important;
    font-weight: 700 !important;
    padding: 8px 18px !important;
    border-radius: 8px;
}

.nav-cta:hover {
    background: #FFC107 !important;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-hamburger span {
    width: 26px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}


/* ══════════════════════════════
   HERO
══════════════════════════════ */

.hero-personnels {
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 60%, #1976D2 100%);
    padding: 80px 5% 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-personnels::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 215, 0, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.hero-personnels::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    color: var(--or);
    border: 1px solid rgba(255, 215, 0, 0.4);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.hero-personnels h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: white;
    margin-bottom: 16px;
    line-height: 1.15;
    position: relative;
    z-index: 1;
}

.hero-personnels h1 span {
    color: var(--or);
}

.hero-personnels>p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.hero-stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 48px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-stat-item {
    text-align: center;
    color: white;
}

.hero-stat-item strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--or);
}

.hero-stat-item span {
    font-size: 0.8rem;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ══════════════════════════════
   FILTRES
══════════════════════════════ */

.filtres {
    background: white;
    padding: 20px 5%;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 110px;
    z-index: 100;
}

.filtre-btn {
    padding: 9px 20px;
    border-radius: 25px;
    border: 2px solid #e0e7ff;
    background: white;
    color: var(--texte-doux);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}

.filtre-btn:hover,
.filtre-btn.active {
    background: var(--bleu);
    border-color: var(--bleu);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.25);
}


/* ══════════════════════════════
   SECTIONS
══════════════════════════════ */

.section-personnels {
    padding: 70px 5%;
}

.section-personnels.bg-light {
    background: var(--gris-clair);
}

.section-personnels.bg-white {
    background: white;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.section-label-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--bleu), var(--bleu-clair));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.25);
}

.section-label-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--texte);
    line-height: 1.2;
}

.section-label-text h2 span {
    color: var(--bleu);
}

.section-label-text p {
    color: var(--texte-doux);
    font-size: 0.9rem;
    margin-top: 4px;
}

.personnel-bloc {
    margin-bottom: 60px;
}

.personnel-bloc:last-child {
    margin-bottom: 0;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--bleu), var(--or));
    border-radius: 2px;
    margin: 0 0 36px 68px;
}

.sous-section {
    margin-bottom: 60px;
}

.sous-section:last-child {
    margin-bottom: 0;
}


/* ══════════════════════════════
   GRILLE CARTES
══════════════════════════════ */

.personnel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.personnel-grid.admin-grid {
    grid-template-columns: repeat(4, 1fr);
}

.personnel-grid.grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 560px;
}

.personnel-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}


/* ══════════════════════════════
   CARTE PERSONNEL
══════════════════════════════ */

.carte {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.carte:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(13, 71, 161, 0.15);
}


/* Zone photo */

.carte-photo {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8eeff, #dce8ff);
    flex-shrink: 0;
    position: relative;
}

.carte-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}

.carte:hover .carte-photo img {
    transform: scale(1.05);
}


/* Placeholder initiales */

.carte-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e3eaff, #c8d9ff);
}

.initiales {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bleu), var(--bleu-clair));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
}

.photo-hint {
    font-size: 0.72rem;
    color: var(--bleu);
    opacity: 0.6;
    font-style: italic;
}


/* Admin spécial */

.carte.admin .carte-photo-placeholder {
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
}

.carte.admin .initiales {
    background: linear-gradient(135deg, #e65100, #f57c00);
}


/* Badge */

.badge-admin {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--or);
    color: var(--bleu);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}


/* Corps de la carte */

.carte-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.carte-nom {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--texte);
    margin-bottom: 5px;
    line-height: 1.3;
}

.carte-poste {
    font-size: 0.78rem;
    color: var(--bleu);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.carte-matiere {
    display: inline-block;
    background: #e8f0fe;
    color: var(--bleu);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
}

.carte-desc {
    font-size: 0.82rem;
    color: var(--texte-doux);
    line-height: 1.5;
    margin-top: auto;
}


/* ══════════════════════════════
   ANIMATIONS REVEAL
══════════════════════════════ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}


/* ══════════════════════════════
   FOOTER
══════════════════════════════ */

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */

@media (max-width: 1100px) {
    .personnel-grid,
    .personnel-grid.admin-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-hamburger {
        display: flex;
    }
    .hero-personnels {
        padding: 50px 5% 40px;
    }
    .section-personnels {
        padding: 50px 5%;
    }
    .personnel-grid,
    .personnel-grid.admin-grid,
    .personnel-grid.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .personnel-grid.grid-2 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-stats-bar {
        gap: 24px;
    }
    .filtres {
        gap: 8px;
        padding: 16px 3%;
    }
    .filtre-btn {
        padding: 7px 14px;
        font-size: 0.8rem;
    }
    .section-divider {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .personnel-grid,
    .personnel-grid.admin-grid,
    .personnel-grid.grid-2,
    .personnel-grid.grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .carte-photo {
        height: 160px;
    }
    .initiales {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
    .section-personnels {
        padding: 50px 4%;
    }
}