/* Styles de rectorat.php (extraits de la page, même ordre) */

/* ===========================
   GLOBAL
=========================== */
.page-bg { background: #f4f6fb; }

/* ===========================
   HERO
=========================== */
.rectorate-hero {
    background:
        linear-gradient(135deg, rgba(12,28,60,0.97) 0%, rgba(8,42,110,0.9) 100%),
        url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=1920') center/cover no-repeat;
    color: white;
    padding: 4.5rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.rectorate-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 320px; height: 320px;
    border-radius: 50%;
    border: 50px solid rgba(255,255,255,0.03);
}

.rectorate-hero::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 100%; height: 70px;
    background: #f4f6fb;
    clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}

.hero-pill a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color .2s; }
.hero-pill a:hover { color: white; }
.hero-pill .sep { opacity: 0.35; margin: 0 0.15rem; }

.hero-title {
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.hero-title .accent { color: var(--secondary-color); }

.hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.68);
    line-height: 1.75;
    max-width: 520px;
}

/* ===========================
   STATS BAR
=========================== */
.stats-bar {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    padding: 1.5rem 2rem;
    margin-top: -44px;
    position: relative;
    z-index: 20;
}

.stat-item { text-align: center; padding: 0.25rem 1.25rem; }
.stat-item + .stat-item { border-left: 1px solid #e9ecf0; }

.stat-num {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.stat-num sup { color: var(--secondary-color); font-size: 1rem; vertical-align: super; }
.stat-lbl { font-size: 0.68rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.07em; }

/* ===========================
   SIDEBAR
=========================== */
.rector-sidebar {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e9f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    position: sticky;
    top: 88px;
}

.sidebar-head {
    background: var(--dark-color);
    padding: 1.2rem 1.5rem;
}

.sidebar-head h2 {
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.sidebar-head p {
    color: var(--secondary-color);
    font-size: 0.7rem;
    margin: 0.2rem 0 0;
    font-weight: 500;
    opacity: 0.85;
}

.snav { padding: 0.6rem; }

.snav a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    border-radius: 9px;
    font-size: 0.77rem;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 1px;
    border-left: 3px solid transparent;
}

.snav a .ni {
    width: 28px; height: 28px;
    border-radius: 7px;
    background: #f3f4f6;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: all 0.2s;
}

.snav a:hover { background: #f8faff; color: var(--dark-color); }
.snav a:hover .ni { background: #e8eeff; }

.snav a.active {
    background: #eff4ff;
    color: var(--dark-color);
    font-weight: 700;
    border-left-color: var(--secondary-color);
}

.snav a.active .ni { background: var(--secondary-color); color: white; }

.snav a .nc {
    margin-left: auto;
    font-size: 0.6rem;
    opacity: 0.35;
    transition: all 0.2s;
}

.snav a:hover .nc,
.snav a.active .nc { opacity: 0.9; transform: translateX(2px); }

.sidebar-foot {
    padding: 0.85rem 1rem;
    border-top: 1px solid #f0f2f8;
}

/* ===========================
   PROFILE CARD (generic)
=========================== */
.pcard {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e9f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    overflow: hidden;
}

.pcard-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid #f0f2f8;
    background: #fafbff;
}

.pcard-icon {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: var(--dark-color);
    color: var(--secondary-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.pcard-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--dark-color);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin: 0;
}

.pcard-body { padding: 1.5rem; }

/* ===========================
   RECTOR IDENTITY CARD
=========================== */
.rector-id {
    background: white;
    border-radius: 20px;
    border: 1px solid #e5e9f0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    overflow: hidden;
}

.rid-top {
    background: linear-gradient(135deg, var(--dark-color) 0%, #0d3870 100%);
    padding: 1.75rem 2rem 3.5rem;
    position: relative;
    overflow: hidden;
}

.rid-top::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    border-radius: 50%;
    border: 28px solid rgba(255,255,255,0.05);
}

.rid-top::after {
    content: '';
    position: absolute;
    bottom: 10px; left: 25%;
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 14px solid rgba(255,255,255,0.04);
}

.rid-top-label {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
}

.rid-top-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    margin: 0;
}

.rid-body {
    padding: 0 2rem 2rem;
    margin-top: -2.75rem;
    position: relative;
    z-index: 2;
}

.rector-photo {
    width: 120px; height: 145px;
    border-radius: 12px;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
    flex-shrink: 0;
}

.rector-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
}

.rector-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #fef9ee;
    color: #92680a;
    border: 1px solid #f5dfa0;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.5rem;
}

.rector-name {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--dark-color);
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 0.2rem;
}

.rector-role {
    font-size: 0.82rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.rector-intro {
    font-size: 0.88rem;
    color: #4b5563;
    line-height: 1.75;
    border-left: 3px solid var(--secondary-color);
    padding-left: 0.85rem;
    margin: 0;
}

/* ===========================
   BIOGRAPHY
=========================== */
.bio-text p {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.85;
    margin-bottom: 1rem;
}

.bio-text p:last-child { margin-bottom: 0; }
.bio-text strong { color: var(--dark-color); }

.bio-pills {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px dashed #e5e7eb;
}

.bio-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f3f4f6;
    color: #374151;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.73rem;
    font-weight: 600;
}

.bio-pill i { color: var(--secondary-color); }

/* ===========================
   FORMATION / VISION LISTS
=========================== */
.f-list li,
.v-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.84rem;
    color: #374151;
    line-height: 1.55;
}

.f-list li:last-child,
.v-list li:last-child { border-bottom: none; padding-bottom: 0; }

.f-list li:first-child,
.v-list li:first-child { padding-top: 0; }

.f-icon {
    width: 28px; height: 28px;
    border-radius: 7px;
    background: #d1fae5; color: #059669;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; flex-shrink: 0; margin-top: 2px;
}

.v-icon {
    width: 28px; height: 28px;
    border-radius: 7px;
    background: #dbeafe; color: #1d4ed8;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; flex-shrink: 0; margin-top: 2px;
}

/* ===========================
   QUOTE
=========================== */
.rector-quote {
    background: var(--dark-color);
    border-radius: 20px;
    padding: 3rem 2.5rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rector-quote::before {
    content: '\201C';
    position: absolute;
    top: -20px; left: 16px;
    font-size: 14rem;
    line-height: 1;
    color: rgba(255,255,255,0.04);
    /* font-family: var(--font-heading); */
    pointer-events: none;
}

.rector-quote blockquote {
    font-size: 1.05rem;
    font-style: italic;
    color: #fef3c7;
    line-height: 1.85;
    max-width: 660px;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
}

.quote-bar {
    width: 40px; height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
    margin: 0 auto 1rem;
}

.quote-author { font-size: 0.85rem; font-weight: 700; color: white; }
.quote-role { font-size: 0.7rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.08em; }

/* ===========================
   CONTACT STRIP
=========================== */
.cstrip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.cstrip-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
    min-width: 170px;
    background: #f8faff;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.cstrip-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: var(--dark-color);
    color: var(--secondary-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; flex-shrink: 0;
}

.cstrip-label { font-size: 0.65rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.05em; display: block; }
.cstrip-value { font-size: 0.8rem; font-weight: 600; color: #111827; display: block; }

/* ===========================
   SECTION HEADER
=========================== */
.sec-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fef9ee;
    color: #92680a;
    border: 1px solid #f5dfa0;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 0.75rem;
}

.sec-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--dark-color);
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.sec-line {
    width: 44px; height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
    margin: 0.85rem auto 0;
}

/* ===========================
   MISSION / VISION
=========================== */
.mv-section {
    background: linear-gradient(155deg, #f0f4ff 0%, #f4f6fb 100%);
    padding: 5rem 0;
}

.mv-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #e5e9f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mv-card-top {
    background: linear-gradient(135deg, var(--dark-color), #0d3870);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.mv-card-top::after {
    content: '';
    position: absolute;
    bottom: -20px; right: -20px;
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 14px solid rgba(255,255,255,0.06);
}

.mv-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.mv-card-top h3 { color: white; font-size: 1.2rem; font-weight: 700; margin: 0; }

.mv-card-body {
    padding: 1.75rem;
    flex: 1;
}

.mv-card-body p {
    color: #4b5563;
    line-height: 1.82;
    font-size: 0.92rem;
    margin: 0;
}

/* ===========================
   TEAM SECTION
=========================== */
.team-section { background: white; padding: 5rem 0; }

.team-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e9f0;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.team-card:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,0.11);
    transform: translateY(-6px);
}

.team-img-wrap {
    position: relative;
    overflow: hidden;
    height: 230px;
}

.team-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.team-card:hover .team-img-wrap img { transform: scale(1.05); }

.team-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(12,28,60,0.88) 0%, transparent 55%);
    display: flex; align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.team-card:hover .team-overlay { opacity: 1; }

.team-overlay-links { display: flex; gap: 0.4rem; }

.team-overlay-links a {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    color: white; display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; text-decoration: none;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}

.team-overlay-links a:hover { background: var(--secondary-color); border-color: var(--secondary-color); }

.team-info { padding: 1.2rem 1.4rem; }
.team-name { font-size: 0.95rem; font-weight: 700; color: var(--dark-color); margin-bottom: 0.2rem; }
.team-pos { font-size: 0.75rem; font-weight: 600; color: var(--secondary-color); margin-bottom: 0.4rem; }
.team-desc { font-size: 0.78rem; color: #6b7280; line-height: 1.5; margin: 0; }

/* ===========================
   VALUES SECTION
=========================== */
.values-section { background: #f4f6fb; padding: 5rem 0; }

.val-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e9f0;
    padding: 1.6rem;
    height: 100%;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: all 0.3s;
}

.val-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.val-icon {
    width: 50px; height: 50px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--dark-color), #0d3870);
    color: var(--secondary-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.val-body h3 { font-size: 0.95rem; font-weight: 700; color: var(--dark-color); margin-bottom: 0.35rem; }
.val-body p { font-size: 0.8rem; color: #6b7280; line-height: 1.6; margin: 0; }

/* ===========================
   CTA SECTION
=========================== */
.cta-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, #0d3b6e 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 240px; height: 240px;
    border-radius: 50%;
    border: 40px solid rgba(255,255,255,0.04);
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -40px;
    width: 180px; height: 180px;
    border-radius: 50%;
    border: 30px solid rgba(255,255,255,0.03);
}

.btn-cta-primary {
    background: var(--secondary-color);
    color: white; border: none;
    padding: 0.85rem 2.25rem;
    border-radius: 50px;
    font-weight: 700; font-size: 0.92rem;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.5rem;
    transition: all 0.2s;
}

.btn-cta-primary:hover {
    background: #c8952e; color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.btn-cta-outline {
    background: transparent; color: white;
    border: 2px solid rgba(255,255,255,0.28);
    padding: 0.85rem 2.25rem;
    border-radius: 50px;
    font-weight: 600; font-size: 0.92rem;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.5rem;
    transition: all 0.2s;
}

.btn-cta-outline:hover { border-color: white; color: white; background: rgba(255,255,255,0.07); }

/* ===========================
   ANIMATIONS
=========================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fu  { animation: fadeUp 0.55s ease both; }
.d1  { animation-delay: 0.08s; }
.d2  { animation-delay: 0.18s; }
.d3  { animation-delay: 0.28s; }
.d4  { animation-delay: 0.36s; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 991px) {
    .rector-sidebar { position: static; }
    .stats-bar { margin-top: -20px; }
}

@media (max-width: 767px) {
    .stat-item + .stat-item { border-left: none; border-top: 1px solid #eee; padding-top: 0.75rem; }
    .stats-bar { padding: 1.25rem; }
    .rector-name { font-size: 1.55rem; }
    .mv-section, .team-section, .values-section, .cta-section { padding: 3.5rem 0; }
    .cstrip-item { min-width: unset; }
    .rid-body .row { flex-direction: column; align-items: center; text-align: center; }
    .rector-intro { text-align: left; }
    .rector-badge { margin-top: 0.5rem; }
}

/* =====================================================================
   Sobriété — même langage visuel que la page d'accueil : aplats bleu nuit UNAH, cartes à bordure
   simple, icônes sans tuiles colorées, pas d'anneaux décoratifs, de vagues, de dégradés ni
   d'animations. Bloc placé en dernier : il prime sur les règles ci-dessus.
   ===================================================================== */
.page-bg { background: var(--light-color, #f8f9fa); }

/* En-tête : bleu nuit uni (plus de photo de banque d'images ni d'anneau ni de vague) */
.rectorate-hero {
    background: var(--dark-color);
    padding: 3.5rem 0 3rem;
}
.rectorate-hero::before,
.rectorate-hero::after { display: none; }
.hero-pill {
    background: none;
    border: 0;
    padding: 0;
    border-radius: 0;
    margin-bottom: 1rem;
}
.hero-title { font-weight: 700; letter-spacing: 0; }

/* Chiffres : simple barre à bordure sous l'en-tête */
.stats-bar {
    margin-top: 2rem;
    border: 1px solid #e3e7ec;
    border-radius: 8px;
    box-shadow: none;
}

/* Cartes : arrondi modéré, bordure, pas d'ombre portée */
.pcard, .rector-id, .mv-card, .team-card, .val-card, .rector-sidebar {
    border-radius: 8px;
    box-shadow: none;
}
.pcard-head { background: #fff; }

/* Icônes : sans tuile ni couleur de fond */
.pcard-icon, .cstrip-icon, .mv-icon, .val-icon, .snav a .ni, .f-icon, .v-icon {
    background: none !important;
    width: auto;
    height: auto;
    border: 0;
    box-shadow: none;
    color: var(--dark-color) !important;
}
.pcard-icon { font-size: 1rem; }
.f-icon, .v-icon { color: var(--green-color) !important; font-size: 0.9rem; }
.v-icon { color: var(--secondary-color) !important; }
.snav a .ni { width: 18px; color: #6b7280 !important; }
.snav a.active .ni { color: var(--dark-color) !important; }
.snav a.active .nc { transform: none; }

/* Carte du recteur : bandeau bleu nuit uni */
.rid-top { background: var(--dark-color); }
.rid-top::before,
.rid-top::after { display: none; }
.bio-pill { border-radius: 4px; }

/* Citation : sans guillemet géant en filigrane */
.rector-quote { border-radius: 8px; }
.rector-quote::before { display: none; }

/* Mission & Vision : en-tête uni */
.mv-card-top { background: var(--dark-color); }
.mv-card-top::after { display: none; }
.mv-icon { color: var(--secondary-color) !important; font-size: 1.5rem; }

/* Équipe et valeurs : pas de soulèvement ni de zoom au survol */
.team-card:hover, .val-card:hover { transform: none; box-shadow: none; }
.team-card:hover .team-img-wrap img { transform: none; }
.val-icon { color: var(--secondary-color) !important; font-size: 1.4rem; }

/* Contact : bandeau bleu nuit uni, boutons comme sur l'accueil */
.cta-section { background: var(--dark-color); }
.cta-section::before,
.cta-section::after { display: none; }
.btn-cta-primary, .btn-cta-outline { border-radius: 6px; }
.btn-cta-primary { color: var(--dark-color); }
.btn-cta-primary:hover { transform: none; box-shadow: none; color: var(--dark-color); }

/* Pas d'animation d'apparition */
.fu { animation: none; }
.mv-icon { justify-content: flex-start; margin-bottom: 0.5rem; }
