/*
 * Styles page Direction — tous les sélecteurs sont cantonnés à .direction-hero ou .direction-section
 * pour ne pas casser les cartes Bootstrap ailleurs sur le site ni provoquer de scroll horizontal.
 */

/* ---------- Hero ---------- */
.direction-hero.page-hero {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center center;
    overflow: hidden;
}

/* Triple classe pour passer après les overlays génériques de pagehero.css */
.direction-hero.page-hero.gradient-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}

.direction-hero .page-hero-content {
    position: relative;
    z-index: 2;
}

.direction-hero .page-hero-content h1 {
    letter-spacing: 0.06em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.direction-hero .page-hero-content p {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* ---------- Zone bureau ---------- */
.direction-section {
    overflow-x: hidden;
}

.bureau-fed-title {
    font-size: clamp(1.5rem, 3.8vw, 2.125rem);
    letter-spacing: 0.02em;
}

@media (min-width: 992px) {
    .bureau-fed-title {
        max-width: 24rem;
    }
}

.bureau-member-card {
    transition: box-shadow 0.2s ease;
}

.bureau-member-card:hover {
    box-shadow: 0 0.35rem 0.95rem rgba(0, 0, 0, 0.1) !important;
}

.bureau-member-photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #eef1f5;
}

.bureau-member-photo-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.bureau-member-photo-wrap .bureau-member-photo-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #e8f0e3, #f1f4f8);
}

.bureau-member-photo-wrap .bureau-member-photo-initials {
    font-size: clamp(1.1rem, 3.5vw, 1.75rem);
    font-weight: 700;
    color: #1a365d;
    letter-spacing: 0.04em;
    line-height: 1;
    user-select: none;
}

.direction-section .bureau-member-name {
    color: #b8860b;
    font-weight: 600;
    text-align: left;
}

.direction-section .bureau-member-role {
    text-align: left;
    letter-spacing: 0.03em;
    font-size: 0.7rem !important;
}

.direction-section .bureau-member-card .card-body {
    text-align: left;
}

.bureau-mission-icon {
    width: 2.5rem;
    height: 2.5rem;
}

.bureau-mission-icon i {
    font-size: 1.05rem;
}

.direction-section .bureau-contact-icons a i {
    font-size: 0.7rem;
}

.direction-section .bureau-contact-icons a {
    line-height: 1;
}

.direction-section .bureau-alert-icon {
    font-size: 0.85rem;
}

.mission-panel {
    max-width: 52rem;
}

@media (max-width: 576px) {
    .direction-hero.page-hero {
        min-height: 220px;
    }
}
