/* ============================================
   PNUD - Styles principaux
   ============================================ */

/* Reset & Base */
* { 
    font-family: "Google Sans", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body { 
    background: #F9FAFB; 
    scroll-behavior: smooth;
    color: #1f2937;
    line-height: 1.6;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

/* Header avec effet glassmorphism */
.header-sobre {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(27, 74, 122, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-sobre.scrolled {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.nav-item {
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1B4A7A;
    transition: width 0.25s ease;
}

.nav-item:hover::after { 
    width: 100%; 
}

/* Bouton connexion */
.btn-connexion {
    background: #1B4A7A;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-connexion:hover {
    background: #0E3A60;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(27, 74, 122, 0.2);
}

/* ============================================
   HERO SECTION
   ============================================ */

/* .hero-section {
    background-image: linear-gradient(135deg, rgba(10,15,28,0.85) 0%, rgba(27,74,122,0.75) 100%), url('../img/bannerPnud.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
} */

/* ============================================
   CARTES & COMPOSANTS
   ============================================ */

/* Cartes solutions */
.card-solution {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #eef2f6;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-solution:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
}

.card-solution.sponsored {
    border: 2px solid #FFD166;
}

/* Badges ODD */
.odd-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 11px;
    margin: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
    color: white;
}

.odd-chip:hover { 
    transform: scale(1.1); 
}

/* Chips de filtres */
.filter-chip {
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.filter-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Cartes ODD */
.odd-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.odd-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -12px rgba(0,0,0,0.15);
}

/* Forum cards */
.forum-card {
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
}

.forum-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.1);
    border-color: #cbd5e1;
}

.forum-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
}

/* ============================================
   FORMULAIRES
   ============================================ */

/* Style formulaire GitHub-like */
.github-form {
    background: white;
    border: 1px solid #e1e4e8;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.github-input {
    transition: all 0.2s ease;
    border: 1px solid #e1e4e8;
}

.github-input:focus {
    border-color: #1B4A7A;
    box-shadow: 0 0 0 3px rgba(27, 74, 122, 0.1);
    outline: none;
}

.github-submit {
    background: #1B4A7A;
    transition: all 0.2s ease;
}

.github-submit:hover {
    background: #0E3A60;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 74, 122, 0.3);
}

/* ============================================
   ANIMATIONS & EFFETS
   ============================================ */

/* Animation scroll reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Progress bar */
#progressBar {
    transition: width 0.1s linear;
}

/* Messages flottants */
.error-toast, .success-toast {
    animation: slideDown 0.3s ease, fadeOut 0.5s ease 4.5s forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translate(-50%, -10px); }
}

@keyframes checkmark {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.success-checkmark {
    animation: checkmark 0.5s ease-in-out;
}

/* ============================================
   ANIMATIONS TECHNOLOGIQUES HERO
   ============================================ */

@keyframes pulse-slow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.2); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(-10px); }
    75% { transform: translateY(20px) translateX(5px); }
}

@keyframes ping-slow {
    0% { transform: scale(0.5); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(0.5); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

@keyframes spin-slow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spin-reverse {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

@keyframes pulse-glow-delay {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

@keyframes glitch {
    0% { transform: skew(0deg); opacity: 1; }
    20% { transform: skew(2deg); opacity: 0.8; }
    40% { transform: skew(-2deg); opacity: 0.9; }
    60% { transform: skew(1deg); opacity: 0.85; }
    80% { transform: skew(-1deg); opacity: 0.95; }
    100% { transform: skew(0deg); opacity: 1; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Classes d'animation */
.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

.animate-ping-slow {
    animation: ping-slow 2s ease-in-out infinite;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

.animate-spin-reverse {
    animation: spin-reverse 15s linear infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 4s ease-in-out infinite;
}

.animate-pulse-glow-delay {
    animation: pulse-glow-delay 4s ease-in-out infinite 1s;
}

.animate-glitch {
    animation: glitch 0.3s ease-in-out infinite;
}

.animate-blink {
    animation: blink 1s step-end infinite;
}

.animate-scan {
    animation: scan 2s ease-in-out infinite;
}

/* Gradient animé pour le background */
.bg-gradient-to-br {
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Effet de brillance sur les orbites */
.absolute.border-blue-500\/10 {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

/* ============================================
   SECTION ODD BACKGROUND
   ============================================ */

/* .section-odd-bg {
    background-image: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(249,250,251,0.95) 100%), url('../img/fondEntrepreneur.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
} */

/* ============================================
   UTILITAIRES
   ============================================ */

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Badge sponsorisé */
.sponsor-badge {
    background: #FFD166;
    color: #0A2647;
    font-weight: 700;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Statut badges */
.badge-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
}

.badge-status.active {
    background: #dcfce7;
    color: #166534;
}

.badge-status.en_attente {
    background: #fef3c7;
    color: #92400e;
}

.badge-status.inactive {
    background: #f3f4f6;
    color: #4b5563;
}