/* ============================================================
   e-DAMO — CSS Site Public
   ANPE Niger
   ============================================================ */

:root {
    --pub-primary:      #1a4f8a;
    --pub-primary-dark: #0d3261;
    --pub-primary-mid:  #1e6fba;
    --pub-accent:       #f59e0b;
    --pub-accent-dark:  #d97706;
    --pub-bg:           #f0f4f8;
    --pub-footer-bg:    #0b2141;
    --transition:       .25s cubic-bezier(.4,0,.2,1);
    --radius:           12px;
}

/* ===== NAVBAR ===== */
.pub-navbar {
    background: linear-gradient(135deg, var(--pub-primary-dark) 0%, var(--pub-primary) 60%, var(--pub-primary-mid) 100%);
    padding: 0 0;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
    z-index: 1030;
}

/* Logo cercle */
.pub-logo-wrap {
    width: 42px; height: 42px;
    background: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    padding: 4px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.pub-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }

.pub-brand-title {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    line-height: 1.2;
}
.pub-brand-sub {
    font-size: .72rem;
    color: rgba(255,255,255,.65);
    letter-spacing: .3px;
}

/* Liens navigation */
.pub-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    color: rgba(255,255,255,.8) !important;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--transition);
    white-space: nowrap;
}

.pub-nav-link i {
    font-size: 1rem;
    opacity: .85;
}

.pub-nav-link:hover {
    background: rgba(255,255,255,.15);
    color: #fff !important;
}

.pub-nav-link.active {
    background: rgba(255,255,255,.18);
    color: #fff !important;
    font-weight: 600;
}

.pub-nav-link.active i { opacity: 1; }

/* Bouton connexion navbar */
.pub-btn-login {
    background: rgba(255,255,255,.15);
    border: 1.5px solid rgba(255,255,255,.5);
    color: #fff !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 7px 16px;
    transition: all var(--transition);
}
.pub-btn-login:hover {
    background: #fff;
    color: var(--pub-primary) !important;
    border-color: #fff;
}

/* Toggler mobile */
.pub-toggler {
    border: 1.5px solid rgba(255,255,255,.5);
    color: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 1.3rem;
}
.pub-toggler:focus { box-shadow: none; }

/* Menu mobile collapse */
@media (max-width: 991px) {
    #pubNavMenu {
        padding: 12px 0;
        border-top: 1px solid rgba(255,255,255,.2);
        margin-top: 10px;
    }
    .pub-navbar .navbar-nav { gap: 2px !important; }
    .pub-nav-link { padding: 9px 12px; border-radius: 8px; }
    .pub-navbar .d-flex { margin-top: 10px; width: 100%; }
    .pub-btn-login { width: 100%; text-align: center; justify-content: center; }
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--pub-primary-dark) 0%, var(--pub-primary) 50%, var(--pub-primary-mid) 100%) !important;
    padding: 64px 0 72px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
    top: -200px; right: -150px;
    pointer-events: none;
}

.hero-kpi-card {
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    transition: all var(--transition);
}
.hero-kpi-card:hover {
    background: rgba(255,255,255,.18);
    transform: translateY(-3px);
}
.hero-kpi-val {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.hero-kpi-label {
    font-size: .78rem;
    color: rgba(255,255,255,.75);
    margin-top: 6px;
}

/* ===== BOUTONS HERO ===== */
.btn-hero-light {
    background: #fff;
    color: var(--pub-primary);
    border: none;
    font-weight: 700;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: .95rem;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-hero-light:hover {
    background: var(--pub-accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.7);
    font-weight: 600;
    border-radius: 10px;
    padding: 11px 24px;
    font-size: .95rem;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-hero-outline:hover {
    background: rgba(255,255,255,.15);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

.btn-hero-accent {
    background: var(--pub-accent);
    color: #fff;
    border: none;
    font-weight: 700;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: .95rem;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-hero-accent:hover {
    background: var(--pub-accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245,158,11,.35);
}

/* ===== SECTIONS ===== */
.pub-section { padding: 56px 0; }
.pub-section-alt { background: var(--pub-bg); }
.pub-section-dark { background: linear-gradient(135deg, var(--pub-primary-dark), var(--pub-primary)); color: #fff; }

.pub-section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--pub-primary);
    text-align: center;
    margin-bottom: 8px;
}
.pub-section-title-white { color: #fff; }

.pub-section-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: .9rem;
    margin-bottom: 36px;
}

/* ===== KPI CARDS (emplois) ===== */
.kpi-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    transition: all var(--transition);
    border: 1px solid #e5e7eb;
    height: 100%;
}
.kpi-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.kpi-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.4rem;
}
.kpi-val {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}
.kpi-label { font-size: .83rem; color: #6b7280; font-weight: 500; }

/* ===== BRANCHE CARDS ===== */
.branche-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 18px 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    border: 1px solid #e5e7eb;
    height: 100%;
    transition: all var(--transition);
}
.branche-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }

.branche-progress {
    background: #e5e7eb;
    border-radius: 4px;
    height: 6px;
    margin: 10px 0 8px;
    overflow: hidden;
}
.branche-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--pub-primary), var(--pub-primary-mid));
    border-radius: 4px;
    transition: width .8s cubic-bezier(.4,0,.2,1);
}

/* ===== GUIDE CARDS ===== */
.guide-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.1); }

/* ===== BANDEAU CAMPAGNE ===== */
.campagne-banner {
    background: linear-gradient(135deg, #065f46, #059669);
    color: #fff;
    padding: 12px 0;
    text-align: center;
    font-size: .88rem;
}
.campagne-banner strong { font-weight: 700; }
.campagne-banner a {
    background: #fff;
    color: #065f46;
    font-weight: 700;
    border-radius: 6px;
    padding: 4px 14px;
    text-decoration: none;
    font-size: .83rem;
    margin-left: 12px;
    transition: all var(--transition);
    display: inline-flex; align-items: center; gap: 4px;
}
.campagne-banner a:hover { background: var(--pub-accent); color: #fff; }

/* ===== CTA SECTION ===== */
.pub-cta-section {
    background: linear-gradient(135deg, var(--pub-primary-dark) 0%, var(--pub-primary) 60%, var(--pub-primary-mid) 100%);
    padding: 64px 0;
    text-align: center;
    color: #fff;
}

/* ===== FOOTER ===== */
.pub-footer {
    background: var(--pub-footer-bg);
    padding: 48px 0 32px;
}
.pub-footer-logo {
    width: 48px; height: 48px;
    background: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    padding: 5px;
    flex-shrink: 0;
}
.pub-footer-logo img { width: 100%; height: 100%; object-fit: contain; }

.pub-footer-link {
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-size: .85rem;
    display: flex;
    align-items: center;
    padding: 4px 0;
    transition: color var(--transition);
}
.pub-footer-link:hover { color: var(--pub-accent); }

/* ===== PUB-HERO (réutilisable sur toutes les pages publiques) ===== */
.pub-hero {
    background: linear-gradient(150deg, var(--pub-primary-dark) 0%, var(--pub-primary) 55%, var(--pub-primary-mid) 100%);
    padding: 72px 0 80px;
    position: relative;
    overflow: hidden;
}
.pub-hero::before {
    content:'';
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at 80% 20%, rgba(245,158,11,.1) 0%, transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(255,255,255,.04) 0%, transparent 40%);
    pointer-events:none;
}
.pub-hero-sm {
    padding: 56px 0 48px;
}
.pub-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 14px;
    text-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.pub-hero-desc {
    font-size: 1.05rem;
    opacity: .82;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== ALERT STYLES ===== */
.alert { border-radius: 10px; border: none; font-size: .88rem; }
.alert-success { background: #f0fdf4; color: #15803d; }
.alert-danger   { background: #fef2f2; color: #b91c1c; }
.alert-warning  { background: #fffbeb; color: #92400e; }
.alert-info     { background: #eff6ff; color: #1d4ed8; }
