/* ═══════════════════════════════════════════════════════════
   HME N'Djamena — Design System v2
   Palette exclusive : Marron #A47251
   60% Blanc ivoire · 30% Marron clair · 10% Marron foncé
   ═══════════════════════════════════════════════════════════ */
:root {
    /* ── Palette marron ── */
    --hme-primary:       #A47251;   /* couleur centrale */
    --hme-primary-dark:  #7A5238;   /* 30% plus sombre */
    --hme-primary-deep:  #5C3A24;   /* profond */
    --hme-primary-night: #3D2213;   /* très sombre – topbar/footer */
    --hme-primary-mid:   #C4956A;   /* 20% plus clair */
    --hme-primary-light: #DEB896;   /* bordures hover */
    --hme-primary-soft:  #F0D9C4;   /* fills légers */
    --hme-primary-pale:  #FBF3EC;   /* backgrounds */

    /* ── Neutres chauds ── */
    --hme-white:         #FFFFFF;
    --hme-ivory:         #FDFAF7;
    --hme-warm:          #F5EEE6;
    --hme-border:        #E6D5C3;
    --hme-border-hover:  #C4956A;

    /* ── Typographie ── */
    --hme-text:          #2A1A0E;   /* contraste max sur blanc */
    --hme-text-soft:     #6B4A30;   /* corps texte secondaire */
    --hme-text-muted:    #A07850;   /* placeholders, dates */

    /* ── Accent or ── */
    --hme-gold:          #C9973A;
    --hme-gold-light:    #E8C06A;
    --hme-gold-pale:     #FDF0D5;

    /* ── Sémantique ── */
    --hme-success:       #3B6D11;
    --hme-success-bg:    #EAF3DE;
    --hme-danger:        #993C1D;
    --hme-danger-bg:     #FAECE7;
    --hme-info:          #A47251;
    --hme-info-bg:       #FBF3EC;

    /* ── Ombres ── */
    --shadow-xs:  0 1px 3px rgba(60,34,19,.05);
    --shadow-sm:  0 2px 8px rgba(60,34,19,.07);
    --shadow:     0 4px 18px rgba(60,34,19,.10);
    --shadow-lg:  0 12px 40px rgba(60,34,19,.14);
    --shadow-xl:  0 24px 64px rgba(60,34,19,.18);

    /* ── Géométrie ── */
    --radius:    12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all .28s cubic-bezier(.4,0,.2,1);

    /* ── Typographies ── */
    --font-display: 'Sora', 'Plus Jakarta Sans', sans-serif;
    --font-body:    'DM Sans', 'Plus Jakarta Sans', sans-serif;
    --font-serif:   'Playfair Display', Georgia, serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--hme-text);
    background: var(--hme-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--hme-warm); }
::-webkit-scrollbar-thumb { background: var(--hme-primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--hme-primary-dark); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--hme-primary-deep);
    line-height: 1.2;
    letter-spacing: -.02em;
}

a { color: var(--hme-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--hme-primary-dark); }
img { max-width: 100%; }
.text-accent { color: var(--hme-primary-mid); }

/* ══════════════════════════════════════
   TOP BAR
══════════════════════════════════════ */
.topbar {
    background: var(--hme-primary-night);
    color: rgba(255,255,255,.7);
    font-size: .78rem;
    font-family: var(--font-display);
    letter-spacing: .02em;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.topbar-social {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,.09);
    color: rgba(255,255,255,.65);
    text-decoration: none;
    margin-left: 6px;
    font-size: .82rem;
    transition: var(--transition);
}
.topbar-social:hover { background: var(--hme-gold); color: var(--hme-primary-night); }

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.navbar-hme {
    background: var(--hme-white);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
    transition: var(--transition);
    border-bottom: 2px solid var(--hme-border);
}
.navbar-hme.scrolled {
    box-shadow: var(--shadow);
    border-bottom-color: var(--hme-primary);
}

/* Logo image */
.navbar-brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
}
.brand-logo {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
}
.brand-sub {
    font-size: .64rem;
    color: var(--hme-text-muted);
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1.3;
    max-width: 140px;
}

.navbar-hme .nav-link {
    font-family: var(--font-display);
    font-weight: 500; font-size: .84rem;
    color: var(--hme-text-soft);
    padding: 7px 13px !important;
    border-radius: 8px;
    transition: var(--transition);
    letter-spacing: .01em;
}
.navbar-hme .nav-link:hover,
.navbar-hme .nav-link.active {
    color: var(--hme-primary);
    background: var(--hme-primary-pale);
}

/* ══════════════════════════════════════
   BOUTONS
══════════════════════════════════════ */
.btn-hme-primary {
    background: var(--hme-primary);
    color: #fff !important; border: none;
    border-radius: var(--radius);
    font-family: var(--font-display); font-weight: 700;
    font-size: .84rem; padding: 10px 22px;
    letter-spacing: .02em; transition: var(--transition);
    box-shadow: 0 4px 14px rgba(164,114,81,.3);
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
    cursor: pointer;
}
.btn-hme-primary:hover {
    background: var(--hme-primary-dark); color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(122,82,56,.32);
}
.btn-hme-outline {
    background: transparent; color: var(--hme-primary) !important;
    border: 2px solid var(--hme-primary);
    border-radius: var(--radius);
    font-family: var(--font-display); font-weight: 700;
    font-size: .84rem; padding: 9px 22px;
    letter-spacing: .02em; transition: var(--transition);
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
    cursor: pointer;
}
.btn-hme-outline:hover {
    background: var(--hme-primary); color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(164,114,81,.28);
}
.btn-white {
    background: #fff; color: var(--hme-primary) !important;
    border: none; padding: 11px 28px;
    border-radius: var(--radius); font-weight: 700;
    font-family: var(--font-display); transition: var(--transition);
    display: inline-flex; align-items: center; gap: 7px;
    cursor: pointer; text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.btn-white:hover { background: var(--hme-ivory); color: var(--hme-primary-dark) !important; transform: translateY(-2px); }
.btn-outline-white {
    background: transparent; color: #fff !important;
    border: 2px solid rgba(255,255,255,.4);
    padding: 11px 28px; border-radius: var(--radius);
    font-weight: 600; font-family: var(--font-display);
    transition: var(--transition); cursor: pointer;
    display: inline-flex; align-items: center; gap: 7px;
    text-decoration: none;
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ══════════════════════════════════════
   HERO SLIDER
══════════════════════════════════════ */
.hero-section { position: relative; }
.hero-slide {
    min-height: 80vh;
    background-size: cover; background-position: center;
    display: flex; align-items: center;
    position: relative;
}
.hero-default { background: var(--hme-primary-night); }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(61,34,19,.80) 0%, rgba(92,58,36,.58) 100%);
}
.hero-section::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--hme-gold), var(--hme-primary-mid), transparent);
    z-index: 5;
}
.hero-content {
    position: relative; z-index: 2;
    max-width: 700px; color: #fff;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.11);
    border: 1px solid rgba(255,255,255,.2);
    padding: 5px 16px; border-radius: 50px;
    font-size: .72rem; font-weight: 700;
    margin-bottom: 18px; letter-spacing: .08em;
    font-family: var(--font-display);
    text-transform: uppercase;
    color: rgba(255,255,255,.9);
}
.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800; margin-bottom: 14px;
    line-height: 1.1; color: #fff;
}
.hero-content h1 .text-gold { color: var(--hme-gold-light); }
.hero-content p { font-size: 1.05rem; color: rgba(255,255,255,.72); margin-bottom: 26px; font-weight: 300; line-height: 1.65; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ══════════════════════════════════════
   QUICK INFO
══════════════════════════════════════ */
.quick-info { position: relative; z-index: 10; }
.qi-card {
    display: flex; align-items: center; gap: 16px;
    padding: 26px 22px; color: #fff;
}
.qi-light   { background: var(--hme-primary-mid); }
.qi-main    { background: var(--hme-primary); }
.qi-dark    { background: var(--hme-primary-dark); }
.qi-icon    { font-size: 1.8rem; opacity: .85; flex-shrink: 0; }
.qi-card h5 { font-family: var(--font-display); font-size: .92rem; font-weight: 700; margin-bottom: 3px; color: #fff; }
.qi-card p  { font-size: .8rem; opacity: .78; margin: 0; line-height: 1.4; }

/* ══════════════════════════════════════
   SECTIONS
══════════════════════════════════════ */
.section-padding { padding: 80px 0; }
.section-padding.bg-alt { background: var(--hme-warm); }
.section-padding.bg-dark { background: var(--hme-primary-deep); color: #fff; }
.section-padding.bg-dark h2 { color: #fff; }

.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: .7rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--hme-primary);
    background: var(--hme-primary-pale);
    border: 1px solid var(--hme-primary-soft);
    padding: 5px 14px; border-radius: 20px; margin-bottom: 12px;
}
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 10px; }
.section-subtitle { color: var(--hme-text-muted); font-size: .95rem; max-width: 580px; margin: 0 auto; }

/* ══════════════════════════════════════
   SERVICE CARDS
══════════════════════════════════════ */
.service-card {
    background: var(--hme-white);
    border: 1px solid var(--hme-border);
    border-radius: var(--radius);
    padding: 28px 22px;
    transition: var(--transition);
    height: 100%; display: flex; flex-direction: column;
    position: relative; overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px; background: var(--hme-primary);
    transform: scaleX(0); transform-origin: left;
    transition: transform .32s ease;
}
.service-card:hover::after { transform: scaleX(1); }
.service-card:hover {
    border-color: var(--hme-primary-light);
    box-shadow: var(--shadow-lg); transform: translateY(-6px);
}
.service-icon {
    width: 56px; height: 56px;
    background: var(--hme-primary-pale);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--hme-primary);
    margin-bottom: 16px;
    border: 1px solid var(--hme-primary-soft);
    transition: var(--transition);
}
.service-card:hover .service-icon {
    background: var(--hme-primary); color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(164,114,81,.3);
}
.service-card h5 { font-size: .97rem; font-weight: 700; color: var(--hme-primary-deep); margin-bottom: 8px; }
.service-card p  { font-size: .875rem; color: var(--hme-text-soft); line-height: 1.65; flex: 1; }
.service-link {
    margin-top: 14px; font-family: var(--font-display);
    font-size: .8rem; font-weight: 700; color: var(--hme-primary);
    text-decoration: none; display: inline-flex; align-items: center;
    gap: 5px; transition: var(--transition);
}
.service-link:hover { color: var(--hme-primary-dark); gap: 9px; }
.service-card-lg { padding: 38px 28px; }
.service-icon-lg {
    width: 68px; height: 68px; font-size: 1.8rem;
    border-radius: 16px; background: var(--hme-primary);
    color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(164,114,81,.3);
}

/* ══════════════════════════════════════
   ABOUT
══════════════════════════════════════ */
.section-about { padding: 80px 0; background: var(--hme-warm); }
.about-img-main {
    width: 100%; aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--hme-primary-soft), var(--hme-primary-light));
    border-radius: var(--radius-lg);
}
.about-stat-badge {
    position: absolute; bottom: -20px; right: -10px;
    background: var(--hme-primary); color: #fff;
    padding: 18px 24px; border-radius: var(--radius);
    text-align: center; box-shadow: var(--shadow-lg);
}
.stat-number { display: block; font-size: 2rem; font-weight: 800; font-family: var(--font-display); }
.stat-label  { font-size: .75rem; opacity: .88; }
.about-text  { color: var(--hme-text-soft); margin: 14px 0 22px; line-height: 1.75; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.about-feature  { display: flex; align-items: center; gap: 8px; font-size: .87rem; font-weight: 600; color: var(--hme-text-soft); }
.about-feature i { color: var(--hme-success); font-size: 1.1rem; }

/* ══════════════════════════════════════
   STATS
══════════════════════════════════════ */
.section-stats { background: var(--hme-primary-dark); padding: 64px 0; color: #fff; }
.stat-num {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800; font-family: var(--font-display);
    color: var(--hme-gold-light); letter-spacing: -.03em;
}
.stat-lbl { font-size: .84rem; color: rgba(255,255,255,.58); margin-top: 4px; }
.stat-divider { border-color: rgba(255,255,255,.1); }

/* ══════════════════════════════════════
   ARTICLE CARDS
══════════════════════════════════════ */
.bg-light-warm { background: var(--hme-warm); }
.article-card {
    background: var(--hme-white);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--hme-border);
    transition: var(--transition);
    height: 100%; display: flex; flex-direction: column;
}
.article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: var(--hme-primary-light); }
.article-img {
    height: 200px;
    background-size: cover; background-position: center;
    background-color: var(--hme-primary-soft);
    position: relative; flex-shrink: 0;
}
.article-cat {
    position: absolute; top: 12px; left: 12px;
    background: var(--hme-primary-deep); color: #fff;
    padding: 4px 12px; border-radius: 20px;
    font-size: .67rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .07em;
    font-family: var(--font-display);
}
.article-body { padding: 20px 22px; display: flex; flex-direction: column; flex: 1; }
.article-date { font-size: .74rem; color: var(--hme-text-muted); margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.article-body h5 { font-size: .97rem; font-weight: 700; color: var(--hme-primary-deep); margin-bottom: 8px; line-height: 1.4; }
.article-body h5 a { color: inherit; text-decoration: none; transition: var(--transition); }
.article-body h5 a:hover { color: var(--hme-primary); }
.article-body p { font-size: .86rem; color: var(--hme-text-soft); flex: 1; line-height: 1.65; }
.article-read-more {
    margin-top: 14px; font-size: .8rem; font-weight: 700;
    color: var(--hme-primary); text-decoration: none;
    display: inline-flex; align-items: center; gap: 5px;
    transition: var(--transition);
}
.article-read-more:hover { color: var(--hme-primary-dark); gap: 9px; }
.article-meta {
    display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
    font-family: var(--font-display); font-size: .78rem; font-weight: 500;
    color: var(--hme-text-muted);
    padding: 12px 18px; background: var(--hme-warm);
    border-radius: var(--radius); margin-bottom: 24px;
    border-left: 3px solid var(--hme-primary);
}
.article-hero-img {
    width: 100%; height: 360px; object-fit: cover;
    border-radius: var(--radius-xl); margin-bottom: 28px;
    box-shadow: var(--shadow-lg); display: block;
}


/* ══════════════════════════════════════
   STAFF CARDS
══════════════════════════════════════ */
.staff-card {
    position: relative;
    background: var(--hme-white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--hme-border);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}
.staff-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: var(--hme-primary-light);
}

/* IMAGE WRAP — aspect-ratio au lieu de height fixe */
.staff-photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;        /* ← remplace height: 200px qui coupait */
    overflow: hidden;
    background: linear-gradient(135deg, var(--hme-warm), var(--hme-primary-soft));
}

/* IMAGE complète, cadrée en haut */
.staff-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* visage visible en priorité */
    display: block;
    transition: transform .4s ease;
}
.staff-card:hover .staff-photo-wrap img {
    transform: scale(1.05);
}

/* PLACEHOLDER */
.staff-photo-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--hme-primary);
    opacity: .28;
}

/* OVERLAY dégradé bas → transparent */
.staff-photo-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.78) 0%,
        rgba(0,0,0,.42) 40%,
        rgba(0,0,0,0)   70%
    );
}

/* INFOS superposées sur l'image */
.staff-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px 14px;
    z-index: 2;
    color: #fff;
}
.staff-info h5 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: #fff;
    line-height: 1.2;
}
.staff-title {
    font-size: .78rem;
    font-weight: 600;
    color: var(--hme-gold-light);
    margin-bottom: 4px;
}
.staff-dept,
.staff-contact {
    font-size: .72rem;
    color: rgba(255,255,255,.85);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Responsive */
@media (max-width: 767px) {
    .staff-photo-wrap { aspect-ratio: 3 / 4; } /* garde le ratio sur mobile */
}

/* ══════════════════════════════════════
   JOB CARDS
══════════════════════════════════════ */
.job-card {
    background: var(--hme-white);
    border: 1px solid var(--hme-border);
    border-radius: var(--radius); padding: 28px;
    transition: var(--transition);
    height: 100%; display: flex; flex-direction: column;
    position: relative; overflow: hidden;
}
.job-card::before {
    content: ''; position: absolute;
    left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--hme-primary); border-radius: 4px 0 0 4px;
}
.job-card:hover { border-color: var(--hme-primary-light); box-shadow: var(--shadow); transform: translateY(-3px); }
.job-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.job-header h5 { font-size: 1.02rem; font-weight: 700; color: var(--hme-primary-deep); margin: 0; }
.job-badge {
    flex-shrink: 0;
    background: var(--hme-gold-pale); color: #7A5A10;
    font-size: .68rem; font-family: var(--font-display); font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    padding: 4px 12px; border-radius: 20px;
    border: 1px solid rgba(201,151,58,.3);
}
.job-dept { font-size: .82rem; color: var(--hme-primary); font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 4px; }
.job-card p { font-size: .875rem; color: var(--hme-text-soft); flex: 1; line-height: 1.65; }

/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
.contact-info-card {
    background: var(--hme-primary-deep);
    color: #fff; border-radius: var(--radius-lg); padding: 32px 26px;
    box-shadow: var(--shadow-lg);
}
.ci-item {
    display: flex; gap: 14px;
    padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07);
}
.ci-item:last-child { border-bottom: none; }
.ci-icon {
    width: 42px; height: 42px; border-radius: 10px;
    background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--hme-gold); font-size: 1rem; flex-shrink: 0;
}
.ci-item h6 { font-size: .68rem; font-weight: 600; color: rgba(255,255,255,.45); letter-spacing: .09em; text-transform: uppercase; margin-bottom: 4px; }
.ci-item p  { color: rgba(255,255,255,.92); font-size: .88rem; margin: 0; line-height: 1.5; }
.contact-form-card {
    background: var(--hme-white);
    border-radius: var(--radius-lg); padding: 34px 32px;
    box-shadow: var(--shadow); border: 1px solid var(--hme-border);
}
.contact-form-card h4 { font-size: 1.25rem; color: var(--hme-primary-deep); margin-bottom: 22px; }
.contact-form-card .form-label {
    font-family: var(--font-display); font-weight: 600; font-size: .76rem;
    color: var(--hme-text-soft); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 5px;
}
.contact-form-card .form-control {
    border-radius: 9px; border: 1.5px solid var(--hme-border);
    font-family: var(--font-body); font-size: .88rem;
    padding: 10px 14px; color: var(--hme-text);
    background: var(--hme-ivory); transition: var(--transition);
}
.contact-form-card .form-control:focus {
    border-color: var(--hme-primary);
    box-shadow: 0 0 0 3px rgba(164,114,81,.12);
    background: #fff; outline: none;
}
.form-label { font-weight: 600; font-size: .8rem; color: var(--hme-text-soft); }

/* ══════════════════════════════════════
   CTA
══════════════════════════════════════ */
.section-cta {
    background: var(--hme-primary-deep);
    padding: 80px 0; color: #fff;
    position: relative; overflow: hidden;
}
.section-cta::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 55% 75% at 80% 50%, rgba(196,149,106,.15) 0%, transparent 60%);
}
.section-cta .container { position: relative; }
.section-cta h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 10px; color: #fff; }
.section-cta p  { color: rgba(255,255,255,.72); margin-bottom: 26px; font-size: 1.02rem; line-height: 1.65; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════
   PAGE HERO
══════════════════════════════════════ */
.page-hero {
    background: var(--hme-primary-deep);
    padding: 68px 0 52px; color: #fff; text-align: center;
    position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 50% 65% at 70% 40%, rgba(196,149,106,.14) 0%, transparent 55%);
}
.page-hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--hme-gold), var(--hme-primary-mid), transparent);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.7rem); margin-bottom: 8px; color: #fff; }
.page-hero p   { color: rgba(255,255,255,.68); font-size: .97rem; }
.hero-breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: .72rem; color: rgba(255,255,255,.4);
    font-family: var(--font-display); margin-bottom: 14px;
    letter-spacing: .05em; text-transform: uppercase; justify-content: center;
}
.hero-breadcrumb a { color: rgba(255,255,255,.5); text-decoration: none; }
.hero-breadcrumb a:hover { color: var(--hme-gold); }

/* ══════════════════════════════════════
   CONTENT BLOCK
══════════════════════════════════════ */
.content-block { font-size: .95rem; line-height: 1.8; color: var(--hme-text-soft); }
.content-block h2, .content-block h3 { color: var(--hme-primary-deep); margin-top: 2rem; }
.content-block p { margin-bottom: 1.2rem; }
.content-block img { border-radius: var(--radius); max-width: 100%; }
.content-block a { color: var(--hme-primary); }
.content-block a:hover { color: var(--hme-primary-dark); }

.sidebar-card {
    border-radius: var(--radius-lg);
    background: var(--hme-primary-deep); color: rgba(255,255,255,.85);
    padding: 28px 24px; box-shadow: var(--shadow-lg);
    position: sticky; top: 90px;
}
.sidebar-card h5 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.sidebar-card p  { font-size: .875rem; color: rgba(255,255,255,.6); line-height: 1.65; margin-bottom: 10px; }
.sidebar-card .btn-hme-primary {
    background: var(--hme-gold); color: var(--hme-primary-night) !important;
    box-shadow: 0 4px 14px rgba(201,151,58,.32);
    width: 100%; justify-content: center; margin-bottom: 14px;
}
.sidebar-card hr { border-color: rgba(255,255,255,.1); margin: 14px 0; }
.sidebar-card .info-line { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: rgba(255,255,255,.55); margin-bottom: 7px; }
.sidebar-card .info-line i { color: var(--hme-gold); }

/* ══════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════ */
.empty-state { text-align: center; padding: 72px 20px; }
.empty-state-icon {
    width: 76px; height: 76px; border-radius: 50%;
    background: var(--hme-primary-pale);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.9rem; color: var(--hme-primary); margin-bottom: 18px;
    border: 1px solid var(--hme-primary-soft);
}
.empty-state h5 { font-size: 1.02rem; color: var(--hme-primary-deep); margin-bottom: 7px; }
.empty-state p  { color: var(--hme-text-muted); font-size: .9rem; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer-hme {
    background: var(--hme-primary-night);
    color: rgba(255,255,255,.62); padding: 60px 0 0;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo {
  height: 44px;
  width: 44px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.2);
  filter: brightness(1.1);  /* légèrement éclairci sur fond sombre */
}
.footer-text { font-size: .84rem; line-height: 1.7; }
.footer-heading {
    font-family: var(--font-display); font-weight: 700; color: #fff;
    font-size: .78rem; text-transform: uppercase; letter-spacing: .09em;
    margin-bottom: 16px; padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: rgba(255,255,255,.5); text-decoration: none;
    font-size: .83rem; transition: var(--transition);
    display: inline-flex; align-items: center; gap: 5px;
}
.footer-links a:hover { color: var(--hme-gold); padding-left: 4px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 9px; font-size: .83rem; color: rgba(255,255,255,.5); margin-bottom: 9px; }
.footer-contact i { color: var(--hme-gold); margin-top: 3px; flex-shrink: 0; }
.footer-divider { border-color: rgba(255,255,255,.07); margin: 36px 0 16px; }
.footer-copy, .footer-dev { font-size: .78rem; margin: 0; color: rgba(255,255,255,.27); }
.footer-dev a { color: var(--hme-gold); text-decoration: none; }
.footer-dev a:hover { color: var(--hme-gold-light); }

/* ══════════════════════════════════════
   ALERTS
══════════════════════════════════════ */
.alert-success {
    background: rgba(59,109,17,.08); border: 1px solid rgba(59,109,17,.2);
    border-left: 4px solid var(--hme-success); color: var(--hme-success);
    border-radius: var(--radius); font-size: .88rem; padding: 13px 17px;
}
.alert-warning {
    background: rgba(201,151,58,.1); border: 1px solid rgba(201,151,58,.25);
    border-left: 4px solid var(--hme-gold); color: #7A5A10;
    border-radius: var(--radius); font-size: .88rem; padding: 13px 17px;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 991px) {
    .section-padding { padding: 54px 0; }
    .page-hero { padding: 50px 0 38px; }
    .hero-slide { min-height: 60vh; }
    .contact-form-card { padding: 22px 18px; }
    .about-features { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .staff-photo-wrap { aspect-ratio: 3 / 4; height: auto; }
    .article-img { height: 175px; }
    .article-hero-img { height: 220px; }
    .job-card { padding: 20px 18px; }
    .hero-content h1 { font-size: 1.85rem; }
    .hero-btns { flex-direction: column; }
    .hero-btns .btn-white, .hero-btns .btn-outline-white,
    .hero-btns .btn-hme-primary, .hero-btns .btn-hme-outline { width: 100%; justify-content: center; }
    .brand-logo { height: 36px; }
}

@media (max-width: 575px) {
    .staff-photo-wrap { aspect-ratio: 2 / 3; }
}


/* ══════════════════════════════════════════════════════════════
   LANG SWITCHER — Sélecteur de langue premium
   À ajouter à la fin de style.css
   ══════════════════════════════════════════════════════════════ */

/* ── Bouton principal ── */
.lang-dropdown-wrap {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--hme-border);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  color: var(--hme-text-soft);
  transition: var(--transition);
  white-space: nowrap;
}

.lang-btn:hover {
  border-color: var(--hme-primary);
  color: var(--hme-primary);
  background: var(--hme-primary-pale);
}

.lang-flag {
  font-size: .95rem;
  line-height: 1;
}

.lang-code {
  letter-spacing: .06em;
  font-size: .72rem;
}

.lang-chevron {
  font-size: .65rem;
  transition: transform .2s ease;
  color: var(--hme-text-muted);
}

/* ── Dropdown ── */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--hme-white);
  border: 1px solid var(--hme-border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  list-style: none;
  margin: 0;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  pointer-events: none;
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

.lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── Options ── */
.lang-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--hme-text-soft);
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.lang-option:hover {
  background: var(--hme-primary-pale);
  color: var(--hme-primary);
}

.lang-option.active {
  background: var(--hme-primary-pale);
  color: var(--hme-primary);
  font-weight: 700;
}

.lang-option-flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-option-name {
  flex: 1;
}

/* ── Footer lang buttons ── */
.footer-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.55);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .05em;
  transition: var(--transition);
}

.footer-lang-btn:hover {
  background: rgba(255,255,255,.12);
  color: var(--hme-gold-light);
  border-color: rgba(255,255,255,.22);
}

.footer-lang-btn.active {
  background: var(--hme-primary);
  color: #fff;
  border-color: var(--hme-primary);
}

/* ── Mobile responsive ── */
@media (max-width: 991px) {
  .lang-switcher {
    border-top: 1px solid var(--hme-border);
    padding-top: 10px;
    margin-top: 6px;
  }

  .lang-dropdown {
    position: static;
    box-shadow: none;
    border: 1px solid var(--hme-border);
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    display: none;
    border-radius: 8px;
    margin-top: 6px;
  }

  .lang-dropdown.show {
    display: block;
  }
}



/* ══════════════════════════════════════════════════════════════
   CORRECTIONS RESPONSIVITÉ — À ajouter à la fin de style.css
══════════════════════════════════════════════════════════════ */

/* ── Héro slider ── */
@media (max-width: 575px) {
  .carousel-item .hero-slide {
    min-height: 65vh;
  }
  .hero-content h1 {
    font-size: 1.55rem;
    letter-spacing: -.01em;
  }
  .hero-content p {
    font-size: .92rem;
  }
  .hero-badge {
    font-size: .62rem;
    padding: 5px 12px;
  }
}

/* ── Quick info ── */
@media (max-width: 767px) {
  .qi-card {
    padding: 18px 16px;
    gap: 12px;
  }
  .qi-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .qi-card h5 { font-size: .82rem; }
  .qi-card p  { font-size: .74rem; }
}

/* ── About ── */
@media (max-width: 991px) {
  .about-image-block {
    padding-right: 0;
    padding-bottom: 40px;
    margin-bottom: 16px;
  }
  .about-stat-badge {
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
  }
}
@media (max-width: 575px) {
  .about-img-wrap { height: 240px; }
  .about-badge-num { font-size: 2rem; }
  .about-features { grid-template-columns: 1fr; gap: 8px; }
  .about-feature   { font-size: .82rem; padding: 8px 10px; }
  .about-stat-badge {right: 84px !important;}
}

/* ── Mot du DG ── */
@media (max-width: 991px) {
  .dg-photo-wrap  { width: 140px; height: 140px; }
  .dg-quote-mark  { font-size: 4rem; }
  .dg-message p   { font-size: .88rem; }
}
@media (max-width: 575px) {
  .dg-photo-wrap  { width: 110px; height: 110px; }
  .dg-name        { font-size: .92rem; }
  .section-dg     { padding: 50px 0; }
}

/* ── Stats ── */
@media (max-width: 575px) {
  .stat-card        { padding: 18px 10px; border-radius: 12px; }
  .stat-num         { font-size: 1.8rem; }
  .stat-icon-wrap   { width: 40px; height: 40px; font-size: 1.05rem; margin-bottom: 10px; }
}

/* ── Articles ── */
@media (max-width: 575px) {
  .article-card     { border-radius: 12px; }
  .article-body     { padding: 16px 16px 14px; }
  .article-body h5  { font-size: .9rem; }
  .article-body p   { font-size: .8rem; }
  .article-img      { height: 160px; }
}

/* ── Services ── */
@media (max-width: 575px) {
  .svc-body         { padding: 16px 14px 14px; }
  .svc-body h4      { font-size: .88rem; }
  .svc-body p       { font-size: .78rem; }
  .svc-body-icon    { width: 34px; height: 34px; font-size: .95rem; margin-bottom: 8px; }
  .svc-num          { width: 24px; height: 24px; font-size: .65rem; top: 8px; right: 8px; }
}

/* ── Staff / Annuaire ── */
@media (max-width: 575px) {
  .staff-info h5    { font-size: .85rem; }
  .staff-title      { font-size: .7rem; }
  .staff-dept,
  .staff-contact    { font-size: .66rem; }
}

/* ── Jobs / Recrutement ── */
@media (max-width: 575px) {
  .job-card         { padding: 18px 14px; }
  .job-header h5    { font-size: .92rem; }
  .job-badge        { font-size: .62rem; padding: 3px 9px; }
  .job-dept         { font-size: .76rem; }
}

/* ── Page hero ── */
@media (max-width: 575px) {
  .page-hero        { padding: 40px 0 28px; }
  .page-hero h1     { font-size: 1.45rem; }
  .page-hero p      { font-size: .85rem; }
  .hero-breadcrumb  { font-size: .65rem; gap: 5px; }
}

/* ── Sidebar card ── */
@media (max-width: 991px) {
  .sidebar-card {
    position: static;
    margin-top: 32px;
  }
}

/* ── Footer ── */
@media (max-width: 767px) {
  .footer-hme       { padding: 40px 0 0; }
  .footer-heading   { font-size: .72rem; margin-bottom: 12px; }
  .footer-links a   { font-size: .78rem; }
  .footer-contact li { font-size: .78rem; }
  .footer-copy,
  .footer-dev        { font-size: .72rem; text-align: center; }
  .col-md-6.text-md-end { text-align: center !important; }
}
@media (max-width: 575px) {
  .footer-hme .row.g-5 { --bs-gutter-y: 2rem; }
}

/* ── CTA section ── */
@media (max-width: 575px) {
  .section-cta      { padding: 60px 0; }
  .section-cta h2   { font-size: 1.45rem; }
  .section-cta p    { font-size: .88rem; }
  .cta-btns         { flex-direction: column; align-items: center; gap: 10px; }
  .cta-btns a       { width: 100%; justify-content: center; max-width: 280px; }
}

/* ── Boutons taille large ── */
@media (max-width: 400px) {
  .btn-hme-primary,
  .btn-hme-outline  { font-size: .78rem; padding: 9px 16px; }
  .hero-btns .btn-white,
  .hero-btns .btn-outline-white { padding: 10px 20px; font-size: .84rem; }
}

/* ── Contenu principal ── */
@media (max-width: 575px) {
  .section-padding  { padding: 44px 0; }
  .section-tag      { font-size: .65rem; padding: 4px 11px; }
  h2 { font-size: 1.5rem !important; }
}

/* ── Empêcher débordement horizontal global ── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
.container {
  padding-left: 16px;
  padding-right: 16px;
}
img, video, iframe {
  max-width: 100%;
}


@media (max-width: 767px) {
  h1, h2, h3, h4, h5, h6 {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .section-header-line {
    overflow: hidden;
  }
  .section-header-line::before,
  .section-header-line::after {
    display: none;
  }
}