/* Youth Connekt Niger 2026 — Design System */

:root {
    /* Couleurs Niger / Youth Connekt */
    --yc-orange: #E87722;
    --yc-orange-light: #F59E42;
    --yc-orange-dark: #C45E10;
    --yc-green: #0E7C3A;
    --yc-green-light: #16A34A;
    --yc-green-dark: #065F2A;
    --yc-gold: #FBBF24;
    --yc-dark: #0F172A;
    --yc-dark-soft: #1E293B;
    --yc-white: #FFFFFF;
    --yc-off-white: #F8FAFC;

    /* Alias sémantiques */
    --primary-color: var(--yc-green);
    --primary-dark: var(--yc-green-dark);
    --secondary-color: var(--yc-orange);
    --accent-color: var(--yc-gold);

    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    --text-dark: var(--gray-800);
    --text-light: var(--gray-500);

    --gradient-primary: linear-gradient(135deg, var(--yc-green-dark) 0%, var(--yc-green) 50%, var(--yc-green-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--yc-orange-dark) 0%, var(--yc-orange) 100%);
    --gradient-accent: linear-gradient(135deg, var(--yc-orange) 0%, var(--yc-gold) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(6, 95, 42, 0.92) 0%, rgba(14, 124, 58, 0.85) 40%, rgba(232, 119, 34, 0.75) 100%);

    --shadow-sm: 0 1px 3px rgb(0 0 0 / 0.08);
    --shadow-md: 0 4px 16px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 12px 40px rgb(0 0 0 / 0.12);
    --shadow-xl: 0 24px 60px rgb(0 0 0 / 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --navbar-height: 56px;
}

/* Reset léger */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--gray-50);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Spinner */
#spinner {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#spinner.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#spinner .spinner-border {
    color: var(--yc-green) !important;
    width: 3rem !important;
    height: 3rem !important;
}

/* ─── Navbar (mise à jour design 2026-07) ─── */
.yc-nav {
    background: rgba(6, 95, 42, 0.4);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.yc-nav .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0;
}

.yc-brand-logo {
    height: 48px;
    width: auto;
    flex-shrink: 0;
}

.yc-brand-logo--footer {
    height: 80px;
}

.yc-partners-track {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4rem;
}

.yc-partner-logo {
    height: 56px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.yc-nav .nav-link {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.4rem 0.9rem;
    position: relative;
}

.yc-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.1rem;
    height: 2px;
    border-radius: 2px;
    background: var(--yc-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.yc-nav .nav-link:hover {
    color: #fff;
}

.yc-nav .nav-link:hover::after {
    transform: scaleX(1);
}

.btn-yc-apply {
    background: #fff;
    color: var(--yc-green-dark);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: var(--radius-full);
    padding: 0.5rem 1.15rem;
    border: none;
}

.btn-yc-apply:hover {
    background: var(--yc-gold);
    color: var(--yc-dark);
}

/* Flash messages */
.yc-flash-container {
    position: fixed;
    top: calc(var(--navbar-height) + 12px);
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.yc-flash-container .alert {
    margin-bottom: 10px;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
}

.text-primary {
    color: var(--yc-green) !important;
}

.text-warning {
    color: var(--yc-orange) !important;
}

/* Boutons hero (page d'accueil) */
.btn-hero-primary {
    background: var(--gradient-accent);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.85rem 1.6rem;
    box-shadow: 0 10px 28px rgba(232, 119, 34, 0.4);
}

.btn-hero-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(232, 119, 34, 0.5);
}

.btn-hero-ghost {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-full);
    padding: 0.85rem 1.5rem;
}

.btn-hero-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

/* En-tête de section réutilisable (kicker + titre + intro) */
.yc-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--yc-green);
    margin-bottom: 0.75rem;
}

.yc-kicker::before {
    content: '';
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--yc-orange);
}

.yc-kicker.on-dark {
    color: var(--yc-gold);
}

.yc-section-title {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--gray-900);
}

.yc-section-lead {
    color: var(--gray-500);
    font-size: 1.05rem;
    max-width: 620px;
}

/* Footer compact pour pages internes */
.yc-footer-mini {
    background: var(--yc-dark);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.875rem;
}

.yc-footer-mini a {
    color: var(--yc-gold);
    text-decoration: none;
}

/* Responsive navbar : gérée par Bootstrap (navbar-expand-lg / collapse) */
@media (max-width: 991.98px) {
    .locale-switcher-item {
        display: flex;
        justify-content: center;
    }
}

/* ── Sélecteur de langue (drapeaux) ── */
.locale-switcher {
    display: flex;
    align-items: center;
}

.locale-switcher-track {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.locale-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.locale-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.locale-btn.is-active {
    background: var(--yc-white);
    color: var(--yc-green-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

.locale-btn.is-active:hover {
    transform: none;
}

.locale-flag {
    width: 1.15rem;
    height: 0.85rem;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.locale-code {
    font-family: var(--font-display);
    font-weight: 700;
}

.locale-name {
    font-weight: 500;
    opacity: 0.85;
    font-size: 0.75rem;
}

@media (max-width: 991.98px) {
    .locale-switcher {
        width: 100%;
        justify-content: center;
        padding: 0.25rem 0 0.5rem;
    }

    .locale-switcher-track {
        width: 100%;
        max-width: 220px;
        justify-content: center;
    }

    .locale-btn {
        flex: 1;
        justify-content: center;
        padding: 0.5rem 0.75rem;
    }
}

/* ─── Hero (page d'accueil, mise à jour design 2026-07) ─── */
.yc-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 8.5rem 0 5.5rem;
}

.yc-hero__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(6, 95, 42, 0.7) 0%, rgba(6, 95, 42, 0.35) 45%, rgba(6, 95, 42, 0.1) 70%),
        url('/images/banniere.png') 90% 5%/cover no-repeat;
}

.yc-hero__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.4px, transparent 1.4px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%);
    mask-image: linear-gradient(180deg, #000, transparent 75%);
}

.yc-hero .container {
    position: relative;
    z-index: 2;
}

.yc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.yc-eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--yc-gold);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.25);
}

.yc-hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 2.6vw, 2.4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: lemonchiffon;
    white-space: nowrap;
}

.yc-hero .lead {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    max-width: 540px;
}

.yc-country {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
}

.yc-country .fi {
    border-radius: 2px;
}

/* Compte à rebours (carte sur le hero) */
.yc-countdown {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.yc-countdown__head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--yc-gold);
    margin-bottom: 1rem;
}

.yc-cd-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
}

.yc-cd-cell {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    padding: 0.85rem 0.3rem;
    text-align: center;
}

.yc-cd-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2rem;
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.yc-cd-lbl {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 0.35rem;
}

.countdown-finished h3 {
    font-size: 1.1rem;
}

/* Bandeau de statistiques (chevauche le hero) */
.yc-stat-strip {
    background: var(--yc-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem 1rem;
    margin-top: -3.25rem;
    position: relative;
    z-index: 3;
}

.yc-stat {
    text-align: center;
    padding: 0.5rem 0.75rem;
}

.yc-stat__num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.9rem;
    color: var(--yc-green-dark);
    line-height: 1;
}

.yc-stat__lbl {
    font-size: 0.82rem;
    color: var(--gray-500);
    margin-top: 0.3rem;
}

.yc-stat + .yc-stat {
    border-left: 1px solid var(--gray-200);
}

/* Pastilles d'icône (thèmes / critères / à propos) */
.yc-tile {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.yc-tile--green { background: rgba(14, 124, 58, 0.1); color: var(--yc-green); }
.yc-tile--orange { background: rgba(232, 119, 34, 0.12); color: var(--yc-orange-dark); }
.yc-tile--gold { background: rgba(251, 191, 36, 0.18); color: #B45309; }
.yc-tile--info { background: rgba(14, 165, 233, 0.12); color: #0369A1; }
.yc-tile--danger { background: rgba(239, 68, 68, 0.1); color: #B91C1C; }

/* Cartes (thèmes / critères / à propos) */
.yc-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.yc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.yc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.yc-card:hover::before {
    transform: scaleX(1);
}

.yc-axis-tag {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--yc-orange-dark);
}

.yc-card h3 {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--gray-900);
    margin: 0.35rem 0 0.5rem;
}

.yc-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin: 0;
}

/* Timeline du processus */
.yc-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
}

.yc-step {
    position: relative;
    text-align: center;
    padding: 0 0.5rem;
}

.yc-step__dot {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: #fff;
    border: 2px solid var(--yc-green);
    color: var(--yc-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 6px 18px rgba(14, 124, 58, 0.15);
}

.yc-step__idx {
    position: absolute;
    top: -6px;
    right: calc(50% - 40px);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--yc-orange);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    font-family: var(--font-display);
}

.yc-step h4 {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-900);
    margin-bottom: 0.3rem;
}

.yc-step p {
    color: var(--gray-500);
    font-size: 0.88rem;
    margin: 0;
}

.yc-steps__line {
    position: absolute;
    top: 29px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--yc-green) 0 8px, transparent 8px 16px);
    opacity: 0.4;
    z-index: 1;
}

@media (max-width: 767.98px) {
    .yc-steps { grid-template-columns: 1fr; gap: 2.5rem; }
    .yc-steps__line { display: none; }
}

/* CTA final */
.yc-cta {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    color: #fff;
}

.yc-cta__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, var(--yc-green-dark), var(--yc-green) 55%, var(--yc-orange-dark));
}

.yc-cta__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.4px, transparent 1.4px);
    background-size: 24px 24px;
}

.yc-cta .container {
    position: relative;
    z-index: 2;
}

/* Footer */
.yc-footer {
    background: var(--yc-dark);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
}

.yc-footer a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.yc-footer a:hover {
    color: #fff;
}

.yc-footer h5 {
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Globe (section À propos) */
#sahelGlobe {
    width: 100%;
    min-height: 380px;
    margin: 0 auto;
}

/* Page confirmation candidature */
.yc-validation-hero {
    background: var(--gradient-primary);
}

.yc-validation-icon {
    width: 5rem;
    height: 5rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
    font-size: 2.5rem;
    color: #fff;
}

.yc-validation-card {
    border-radius: var(--radius-lg);
}

.yc-validation-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    background: rgba(14, 124, 58, 0.12);
    flex-shrink: 0;
}

.yc-validation-steps .list-group-item {
    background: transparent;
}

.yc-validation-steps .list-group-item + .list-group-item {
    border-top: 1px solid var(--gray-200) !important;
}

.yc-validation-page footer {
    margin-top: 0;
}
