/* Styles de mot-du-recteur.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);
    pointer-events: none;
}

.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; }

/* ===========================
   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; }

/* ===========================
   MESSAGE HEADER CARD
=========================== */
.msg-header {
    background: white;
    border-radius: 20px;
    border: 1px solid #e5e9f0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.msg-header-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);
}

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

.msg-header-body {
    padding: 0 2rem 2rem;
    margin-top: -2.5rem;
    position: relative;
    z-index: 2;
}

.rector-thumb {
    width: 100px; height: 120px;
    border-radius: 12px;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 6px 22px rgba(0,0,0,0.18);
    flex-shrink: 0;
}

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

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

.msg-author-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark-color);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0.15rem;
}

.msg-author-role {
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0.6rem;
}

.msg-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.msg-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f3f4f6;
    color: #4b5563;
    padding: 0.28rem 0.7rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

.msg-meta-tag i { color: var(--secondary-color); font-size: 0.7rem; }

/* ===========================
   PULL QUOTE
=========================== */
.pull-quote {
    background: linear-gradient(135deg, #f0f4ff 0%, #f8f6f0 100%);
    border-left: 4px solid var(--secondary-color);
    border-radius: 0 14px 14px 0;
    padding: 1.75rem 2rem;
    position: relative;
    overflow: hidden;
}

.pull-quote::before {
    content: '\201C';
    position: absolute;
    top: -15px; left: 12px;
    font-size: 7rem;
    line-height: 1;
    color: rgba(228, 178, 113, 0.2);
    font-family: var(--font-heading);
    pointer-events: none;
}

.pull-quote p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--dark-color);
    line-height: 1.8;
    font-weight: 500;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ===========================
   MESSAGE BODY
=========================== */
.msg-body {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e9f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    padding: 2.25rem;
}

.msg-body p {
    font-size: 0.94rem;
    color: #374151;
    line-height: 1.9;
    margin-bottom: 1.4rem;
    text-align: justify;
}

.msg-body p:last-child { margin-bottom: 0; }
.msg-body strong { color: var(--dark-color); font-weight: 700; }

.msg-body p.salutation {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px dashed #e5e7eb;
}

/* ===========================
   SIGNATURE BLOCK
=========================== */
.signature-block {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e9f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.sig-photo {
    width: 72px; height: 86px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--secondary-color);
    flex-shrink: 0;
}

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

.sig-line {
    font-family: 'Brush Script MT', 'Segoe Script', cursive;
    font-size: 2.2rem;
    color: var(--dark-color);
    line-height: 1;
    margin-bottom: 0.25rem;
    opacity: 0.85;
}

.sig-name { font-size: 0.9rem; font-weight: 700; color: var(--dark-color); margin-bottom: 0.1rem; }
.sig-role { font-size: 0.75rem; color: #6b7280; font-weight: 500; margin-bottom: 0.1rem; }
.sig-date { font-size: 0.7rem; color: #9ca3af; font-weight: 500; }

.sig-divider {
    width: 1px; height: 70px;
    background: #e5e7eb;
    flex-shrink: 0;
}

/* ===========================
   SHARE & ACTIONS
=========================== */
.msg-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem 1.75rem;
    background: white;
    border-radius: 14px;
    border: 1px solid #e5e9f0;
}

.share-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.share-btns { display: flex; gap: 0.5rem; }

.share-btn {
    width: 36px; height: 36px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #e5e9f0;
    color: #4b5563;
    background: white;
}

.share-btn:hover { transform: translateY(-2px); color: white; }
.share-btn.fb:hover { background: #1877f2; border-color: #1877f2; }
.share-btn.tw:hover { background: #1da1f2; border-color: #1da1f2; }
.share-btn.li:hover { background: #0a66c2; border-color: #0a66c2; }
.share-btn.wa:hover { background: #25d366; border-color: #25d366; }

.print-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.78rem; font-weight: 600; color: #6b7280;
    background: #f3f4f6; border: 1px solid #e5e7eb;
    padding: 0.45rem 1rem; border-radius: 8px;
    text-decoration: none; transition: all 0.2s; cursor: pointer;
}

.print-btn:hover { background: var(--dark-color); color: white; border-color: var(--dark-color); }

/* ===========================
   OTHER SPEECHES
=========================== */
.speech-card {
    background: white;
    border-radius: 14px;
    border: 1px solid #e5e9f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.25s;
}

.speech-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    transform: translateX(4px);
}

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

.speech-date { font-size: 0.68rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.2rem; }
.speech-title { font-size: 0.85rem; font-weight: 700; color: var(--dark-color); line-height: 1.4; margin-bottom: 0.2rem; }
.speech-excerpt { font-size: 0.75rem; color: #6b7280; line-height: 1.5; margin: 0; }

/* ===========================
   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.5rem;
}

.sec-title {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 800; color: var(--dark-color);
    letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 0;
}

/* ===========================
   ANIMATIONS
=========================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    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; }

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

@media (max-width: 767px) {
    .msg-header-body .row { flex-direction: column; }
    .signature-block { flex-direction: column; align-items: flex-start; }
    .sig-divider { display: none; }
    .msg-actions { flex-direction: column; align-items: flex-start; }
}
