/* Thème style annuairetravail-rdc.cd — service public numérique */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Open+Sans:wght@400;600;700&display=swap');

:root {
    --atr-blue: #0B3D91;
    --atr-blue-dark: #072A66;
    --atr-blue-soft: #E8F1FF;
    --atr-sky: #1A73E8;
    --atr-yellow: #F7D117;
    --atr-red: #CE1126;
    --atr-green: #0F9D58;
    --atr-text: #1F2937;
    --atr-muted: #6B7280;
    --atr-bg: #F5F7FB;
    --atr-card: #FFFFFF;
    --atr-radius: 14px;
    --atr-shadow: 0 10px 30px rgba(11, 61, 145, .08);
}

body {
    font-family: 'Open Sans', 'Source Sans 3', sans-serif;
    background: var(--atr-bg);
    color: var(--atr-text);
}

h1, h2, h3, h4, .atr-brand strong, .atr-hero-copy h1 {
    font-family: 'Poppins', 'Source Sans 3', sans-serif;
}

.atr-container {
    width: min(1180px, calc(100% - 2rem));
    margin-inline: auto;
}

/* ===== HEADER ===== */
.atr-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: #fff;
    box-shadow: 0 2px 16px rgba(11, 61, 145, .08);
}
.atr-header-top {
    background: var(--atr-blue);
    color: rgba(255,255,255,.9);
    font-size: .78rem;
}
.atr-header-top-inner {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 34px;
    flex-wrap: wrap;
}
.atr-header-top-sep { opacity: .5; }
.atr-header-top-right { margin-left: auto; }
.atr-header-top .lang-switcher a { color: rgba(255,255,255,.8); }
.atr-header-top .lang-switcher a.active {
    background: var(--atr-yellow);
    color: var(--atr-blue-dark);
}
.atr-header-main { padding: .55rem 0 .75rem; }
.atr-header-stack {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.atr-header-row {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
}
.atr-header-main-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .75rem 0;
}
.atr-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: inherit;
    text-decoration: none;
    flex-shrink: 0;
}
.atr-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e7eb;
}
.atr-brand-text strong {
    display: block;
    color: var(--atr-blue);
    font-size: 1rem;
    line-height: 1.15;
}
.atr-brand-text span {
    display: block;
    color: var(--atr-muted);
    font-size: .72rem;
    line-height: 1.3;
    max-width: 180px;
}
.atr-nav {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-start;
    gap: .05rem;
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.atr-nav > a,
.atr-nav .portal-nav-item > a {
    color: #374151 !important;
    font-weight: 600;
    font-size: .78rem;
    padding: .45rem .55rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.atr-nav > a:hover,
.atr-nav .portal-nav-item > a:hover,
.atr-nav > a.active,
.atr-nav .portal-nav-item > a.active {
    background: var(--atr-blue-soft);
    color: var(--atr-blue) !important;
}
.atr-nav .portal-dropdown {
    background: #fff;
    border: 1px solid #eef2f7;
}
.atr-header-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    flex-wrap: wrap;
    width: 100%;
    padding-top: .15rem;
}
.atr-nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--atr-blue);
    font-size: 1.35rem;
    cursor: pointer;
    margin-left: auto;
}

.atr-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .8rem;
    border: 0;
    text-decoration: none !important;
    cursor: pointer;
    transition: .2s ease;
}
.atr-btn-ask {
    background: var(--atr-red);
    color: #fff !important;
}
.atr-btn-ask:hover { background: #a80e1f; color: #fff !important; }
.atr-btn-search {
    background: var(--atr-yellow);
    color: #1a1a1a !important;
}
.atr-btn-search:hover { filter: brightness(.95); color: #1a1a1a !important; }
.atr-btn-ghost {
    background: var(--atr-blue-soft);
    color: var(--atr-blue) !important;
}
.atr-btn-primary {
    background: var(--atr-blue);
    color: #fff !important;
}
.atr-btn-primary:hover { background: var(--atr-blue-dark); color: #fff !important; }
.atr-btn-navy {
    background: var(--atr-blue-dark);
    color: #fff !important;
    border-radius: 10px;
    padding: .65rem 1.1rem;
}
.atr-btn-outline-light {
    background: transparent;
    color: #fff !important;
    border: 1.5px solid rgba(255,255,255,.75);
}
.atr-btn-lg { padding: .85rem 1.4rem; font-size: .95rem; border-radius: 12px; }

/* ===== HERO ===== */
.atr-hero {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    background: var(--atr-blue-dark);
}
.atr-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .7s ease;
    pointer-events: none;
    z-index: 1;
}
.atr-hero-slide.is-active { opacity: 1; pointer-events: auto; z-index: 2; }
.atr-hero-bg {
    position: absolute;
    inset: 0;
}
.atr-hero-bg-photo {
    background-size: 50%;
    background-position: center;
    background-repeat: no-repeat;
}
.atr-hero-bg-0 { background: linear-gradient(120deg, #072A66 0%, #0B3D91 45%, #1A73E8 100%); }
.atr-hero-bg-1 { background: linear-gradient(120deg, #0B3D91, #0F9D58 90%); }
.atr-hero-bg-2 { background: linear-gradient(120deg, #072A66, #CE1126 95%); }
.atr-hero-bg-3 { background: linear-gradient(120deg, #0B3D91, #5B21B6 90%); }
.atr-hero-inner {
    position: relative;
    z-index: 2;
    min-height: 460px;
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 2rem;
    align-items: center;
    padding: 3rem 0 4rem;
    color: #fff;
}
.atr-hero-kicker {
    display: inline-block;
    background: rgba(255,255,255,.15);
    padding: .35rem .8rem;
    border-radius: 999px;
    font-size: .78rem;
    margin-bottom: 1rem;
}
.atr-hero-copy h1 {
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    line-height: 1.2;
    margin-bottom: .85rem;
    font-weight: 800;
}
.atr-hero-desc {
    font-size: 1.05rem;
    opacity: .92;
    max-width: 560px;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}
.atr-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.atr-hero-stat-card {
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 20px;
    padding: 1.75rem;
    text-align: center;
    max-width: 260px;
    margin-left: auto;
}
.atr-hero-seal {
    width: 78px; height: 78px; object-fit: contain; border-radius: 50%;
    background: #fff; margin: 0 auto 1rem; display: block;
}
.atr-hero-stat-num {
    font-family: Poppins, sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--atr-yellow);
}
.atr-hero-stat-label { margin-top: .35rem; opacity: .9; font-size: .9rem; }
.atr-hero-dots {
    position: absolute;
    bottom: 1.1rem; left: 0; right: 0;
    display: flex; justify-content: center; gap: .45rem; z-index: 3;
}
.atr-dot {
    width: 10px; height: 10px; border-radius: 50%; border: 0;
    background: rgba(255,255,255,.4); cursor: pointer;
}
.atr-dot.is-active { background: var(--atr-yellow); }

/* ===== SEARCH STRIP ===== */
.atr-search-strip {
    margin-top: -1.75rem;
    position: relative;
    z-index: 5;
    padding-bottom: 1.5rem;
}
.atr-search-strip .atr-container {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.atr-search-box { width: 100%; }
.atr-search-yellow {
    display: flex;
    align-items: center;
    gap: .65rem;
    background: var(--atr-yellow);
    border-radius: 16px;
    padding: .55rem .55rem .55rem 1.1rem;
    box-shadow: var(--atr-shadow);
}
.atr-search-yellow i { color: #5c4a00; }
.atr-search-yellow input {
    flex: 1; border: 0; background: transparent; outline: none;
    font-size: 1rem; min-width: 0; color: #111;
}
.atr-guide-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    background: var(--atr-red);
    color: #fff !important;
    font-weight: 700;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(206,17,38,.28);
    text-align: center;
}
.atr-guide-cta:hover { background: #a80e1f; color: #fff !important; }

/* ===== SECTIONS ===== */
.atr-section { padding: 3.5rem 0; }
.atr-section-alt { background: #fff; }
.atr-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}
.atr-section-head h2 {
    font-size: 1.7rem;
    color: var(--atr-blue);
    font-weight: 800;
}
.atr-section-head p { color: var(--atr-muted); max-width: 560px; }
.atr-eyebrow {
    color: var(--atr-sky);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .78rem;
    margin-bottom: .5rem;
}
.atr-lead { font-size: 1.05rem; color: var(--atr-muted); margin: .75rem 0 1.25rem; line-height: 1.75; }
.atr-link-more { font-weight: 700; color: var(--atr-blue); }

.atr-mission-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 2rem;
    align-items: start;
}
.atr-mission h2 { color: var(--atr-blue); font-size: 2rem; margin-bottom: .5rem; }
.atr-mission h3 { margin: 1rem 0 .4rem; color: var(--atr-text); }
.atr-mission-panel {
    display: grid;
    gap: .85rem;
}
.atr-mission-item {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    background: #fff;
    border-radius: var(--atr-radius);
    padding: 1rem 1.1rem;
    box-shadow: var(--atr-shadow);
}
.atr-mission-item i {
    width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--atr-blue-soft); color: var(--atr-blue);
}
.atr-mission-item strong { display: block; }
.atr-mission-item span { color: var(--atr-muted); font-size: .88rem; }

.atr-objectives {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.atr-objective-card {
    background: #fff;
    border-radius: var(--atr-radius);
    padding: 1.35rem;
    box-shadow: var(--atr-shadow);
    border-top: 4px solid var(--atr-blue);
}
.atr-objective-num {
    display: inline-grid;
    place-items: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--atr-yellow);
    color: var(--atr-blue-dark);
    font-weight: 800;
    margin-bottom: .75rem;
}
.atr-objective-card h3 { font-size: 1.05rem; margin-bottom: .4rem; color: var(--atr-blue); }
.atr-objective-card p { color: var(--atr-muted); font-size: .9rem; }

.atr-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.atr-feature-card {
    background: #fff;
    border-radius: var(--atr-radius);
    padding: 1.4rem;
    box-shadow: var(--atr-shadow);
    transition: transform .2s ease;
}
.atr-feature-card:hover { transform: translateY(-4px); }
.atr-feature-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--atr-blue), var(--atr-sky));
    color: #fff; font-size: 1.2rem; margin-bottom: 1rem;
}
.atr-feature-card h3 { color: var(--atr-blue); margin-bottom: .45rem; font-size: 1.05rem; }
.atr-feature-card p { color: var(--atr-muted); font-size: .9rem; margin-bottom: .85rem; }
.atr-feature-card a { font-weight: 700; color: var(--atr-sky); }

.atr-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.atr-service-card {
    background: #fff;
    border-radius: var(--atr-radius);
    padding: 1.2rem;
    box-shadow: var(--atr-shadow);
    color: inherit;
    display: block;
    transition: transform .2s ease;
}
.atr-service-card:hover { transform: translateY(-3px); color: inherit; }
.atr-service-card img { width: 42px; height: 42px; object-fit: contain; margin-bottom: .65rem; }
.atr-tag {
    display: inline-block;
    background: var(--atr-blue-soft);
    color: var(--atr-blue);
    font-size: .72rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 999px;
    margin-bottom: .5rem;
}
.atr-service-card h3 { font-size: 1.05rem; margin-bottom: .4rem; color: var(--atr-blue); }
.atr-service-card p { color: var(--atr-muted); font-size: .88rem; margin-bottom: .75rem; }
.atr-card-link { font-weight: 700; color: var(--atr-sky); font-size: .88rem; }

.atr-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .85rem;
}
.atr-cat-card {
    background: #fff;
    border-radius: var(--atr-radius);
    padding: 1.2rem;
    text-align: center;
    box-shadow: var(--atr-shadow);
    color: inherit;
}
.atr-cat-card:hover { color: inherit; box-shadow: 0 14px 34px rgba(11,61,145,.12); }
.atr-cat-card i {
    width: 48px; height: 48px; border-radius: 14px;
    display: grid; place-items: center; margin: 0 auto .7rem;
    background: var(--atr-blue-soft); color: var(--atr-blue); font-size: 1.15rem;
}
.atr-cat-card h3 { font-size: .95rem; margin-bottom: .35rem; }
.atr-cat-card span { color: var(--atr-sky); font-weight: 700; font-size: .82rem; }

.atr-audience {
    display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center;
}
.atr-audience-pill {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: .65rem 1.1rem;
    font-weight: 600;
    display: inline-flex;
    gap: .45rem;
    align-items: center;
    box-shadow: var(--atr-shadow);
}
.atr-audience-pill i { color: var(--atr-blue); }

.atr-partners {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.atr-partner-card {
    background: #fff;
    border-radius: var(--atr-radius);
    padding: 1.15rem;
    box-shadow: var(--atr-shadow);
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-height: 170px;
}
.atr-partner-card:hover { color: inherit; }
.atr-partner-card img { width: 44px; height: 44px; object-fit: contain; }
.atr-partner-card strong { color: var(--atr-blue); }
.atr-partner-card span { color: var(--atr-muted); font-size: .82rem; flex: 1; }
.atr-partner-card em { font-style: normal; color: var(--atr-sky); font-weight: 700; font-size: .85rem; }

.atr-stats-band {
    background: linear-gradient(120deg, var(--atr-blue-dark), var(--atr-blue));
    color: #fff;
    padding: 2.25rem 0;
}
.atr-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}
.atr-stats-grid strong {
    display: block;
    font-family: Poppins, sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--atr-yellow);
}
.atr-stats-grid span { opacity: .9; font-size: .9rem; }

/* ===== FOOTER ===== */
.atr-footer {
    background: #0A1730;
    color: #cbd5e1;
    padding-top: 3rem;
}
.atr-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 1.75rem;
    padding-bottom: 2rem;
}
.atr-footer-brand {
    display: flex;
    gap: .75rem;
    align-items: center;
    margin-bottom: .85rem;
}
.atr-footer-logo {
    width: 48px; height: 48px; border-radius: 50%; background: #fff; object-fit: contain;
}
.atr-footer-brand strong { display: block; color: #fff; }
.atr-footer-brand span { display: block; font-size: .78rem; color: #94a3b8; }
.atr-footer h4 { color: #fff; margin-bottom: .75rem; font-size: .95rem; }
.atr-footer ul { list-style: none; }
.atr-footer li { margin-bottom: .45rem; }
.atr-footer a { color: #94a3b8; }
.atr-footer a:hover { color: #fff; }
.atr-footer-contact i { width: 1.1rem; color: var(--atr-yellow); }
.atr-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1rem 0;
    font-size: .85rem;
    color: #64748b;
}

/* Hide old portal dark header remnants if present */
.portal-header { display: none; }

@media (max-width: 1100px) {
    .atr-objectives, .atr-features, .atr-partners { grid-template-columns: repeat(2, 1fr); }
    .atr-service-grid { grid-template-columns: repeat(2, 1fr); }
    .atr-hero-inner { grid-template-columns: 1fr; }
    .atr-hero-stat-card { margin: 0; }
    .atr-mission-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .atr-nav-toggle { display: block; margin-left: auto; }
    .atr-header-ctas { display: flex; }
    .atr-nav {
        display: none;
        position: absolute;
        left: 0; right: 0;
        top: 100%;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        overflow: visible;
        padding: .75rem;
        box-shadow: 0 12px 24px rgba(0,0,0,.12);
        border-top: 1px solid #eef2f7;
        z-index: 50;
    }
    .atr-nav.open { display: flex; }
    .atr-header-main { position: relative; }
    .atr-stats-grid, .atr-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .atr-objectives, .atr-features, .atr-service-grid, .atr-partners, .atr-stats-grid, .atr-footer-grid {
        grid-template-columns: 1fr;
    }
    .atr-brand-text span { display: none; }
    .atr-hero { min-height: 420px; }
    .atr-hero-inner { min-height: 420px; padding: 2rem 0 3.5rem; }
}

.atr-hero-bg-photo {
    background-color: #072A66;
    background-size: 50% auto;
    background-position: center center;
    background-repeat: no-repeat;
    filter: saturate(1.05) contrast(1.05);
}
.atr-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(7,42,102,.78) 0%, rgba(7,42,102,.35) 48%, rgba(0,0,0,.15) 100%);
    z-index: 1;
}
.atr-hero-copy--annonce .atr-hero-title {
    text-shadow: 0 2px 18px rgba(0,0,0,.35);
    max-width: 18ch;
}
.atr-hero-copy--annonce .atr-hero-desc {
    text-shadow: 0 1px 8px rgba(0,0,0,.3);
    max-width: 42ch;
}
.atr-hero-inner { z-index: 2; }

.atr-footer { background: #9B0F1E !important; }
.atr-footer a { color: rgba(255,255,255,.82); }
.atr-footer a:hover { color: #fff; }
.atr-footer-brand strong, .atr-footer h4 { color: #fff; }
.atr-footer-brand span, .atr-footer p, .atr-footer-bottom { color: rgba(255,255,255,.75); }
.atr-footer-bottom { border-top-color: rgba(255,255,255,.15); background: rgba(0,0,0,.12); }
.atr-footer-contact i { color: #F7D117; }

.portal-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.portal-news-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
}
.portal-news-card h3 { font-size: .98rem; margin-bottom: .45rem; color: #0B3D91; }
.portal-news-card p { font-size: .86rem; color: #64748b; margin-bottom: .65rem; }
.portal-news-meta { display: flex; justify-content: space-between; gap: .5rem; font-size: .75rem; color: #94a3b8; margin-bottom: .5rem; }
.portal-news-card a { font-weight: 700; font-size: .85rem; }

.filament-panel { border: 1px solid #e5e7eb; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.filament-form .form-group { margin-bottom: .85rem; }
.filament-form label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .3rem; color: #374151; }

/* Langue : liste déroulante en toutes lettres */
.lang-switcher-select { margin: 0; }
.lang-select-wrap {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 8px;
    padding: .2rem .55rem;
}
.lang-select-wrap i { color: #F7D117; font-size: .85rem; }
.lang-select {
    appearance: auto;
    border: 0;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: .82rem;
    padding: .25rem .15rem;
    min-width: 9.5rem;
    cursor: pointer;
}
.lang-select option { color: #111; background: #fff; }

/* Slider annonces */
.atr-hero-inner--annonce {
    grid-template-columns: 1fr !important;
    justify-items: start;
    align-items: center;
    max-width: 1180px;
}
.atr-hero-copy--annonce {
    max-width: 760px;
    text-align: left;
}
.atr-hero-category {
    background: var(--atr-yellow) !important;
    color: #072A66 !important;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.atr-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.2);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(4px);
}
.atr-hero-nav:hover { background: rgba(255,255,255,.35); }
.atr-hero-prev { left: 1rem; }
.atr-hero-next { right: 1rem; }

.atr-hero-slide {
    transition: opacity .6s ease, transform .6s ease !important;
}
.atr-hero-slide.is-active {
    z-index: 2;
}
.portal-news-thumb {
    height: 140px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    margin-bottom: .75rem;
    background-color: #e2e8f0;
}
