/* === Couleurs RDC : Bleu ciel, Jaune/Or, Rouge === */
:root {
    --rdc-blue: #007FFF;
    --rdc-blue-dark: #0056b3;
    --rdc-yellow: #F7D618;
    --rdc-yellow-dark: #d4b800;
    --rdc-red: #CE1126;
    --rdc-red-dark: #a00d1e;
    --gray-bg: #f0f4f8;
    --dark-bg: #1a1f2e;
    --card-shadow: 0 2px 20px rgba(0, 127, 255, 0.08);
}

body { background: var(--gray-bg); font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }

/* === Hero Section === */
.hero-section {
    background: linear-gradient(135deg, var(--rdc-blue) 0%, var(--rdc-blue-dark) 60%, var(--dark-bg) 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(206,17,38,0.15) 100%);
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--rdc-blue), var(--rdc-yellow), var(--rdc-red));
}
.hero-section h1 { font-size: 2.5rem; font-weight: 700; position: relative; z-index: 1; }
.hero-section .lead { color: rgba(255,255,255,0.9); position: relative; z-index: 1; }
.hero-section p, .hero-section .btn { position: relative; z-index: 1; }

/* === Navbar === */
.navbar { border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, var(--rdc-blue), var(--rdc-yellow), var(--rdc-red)) 1; }
.navbar-brand { font-weight: 700; font-size: 1.3rem; display: flex; align-items: center; gap: 8px; }
.navbar-brand img { height: 32px; width: 32px; object-fit: contain; }
.navbar .nav-link { display: flex; align-items: center; gap: 6px; }
.navbar .nav-link:hover { color: var(--rdc-yellow) !important; }
.navbar .nav-link.active { color: var(--rdc-yellow) !important; }

/* === Cards === */
.card { border: none; border-radius: 12px; box-shadow: var(--card-shadow); transition: transform 0.2s; }
.card:hover { transform: translateY(-2px); }
.card-header.bg-rdc { background: linear-gradient(135deg, var(--rdc-blue), var(--rdc-blue-dark)) !important; color: #fff; border-radius: 12px 12px 0 0 !important; }

/* === Section titles === */
.section-title {
    color: var(--rdc-blue-dark);
    border-bottom: 3px solid var(--rdc-yellow);
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* === Buttons === */
.btn-rdc {
    background: linear-gradient(135deg, var(--rdc-blue), var(--rdc-blue-dark));
    color: #fff;
    border: none;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-rdc:hover { background: linear-gradient(135deg, var(--rdc-blue-dark), #003d80); color: #fff; box-shadow: 0 4px 15px rgba(0,127,255,0.3); }
.btn-gold {
    background: linear-gradient(135deg, var(--rdc-yellow), var(--rdc-yellow-dark));
    color: #1a1a1a;
    border: none;
    font-weight: 600;
}
.btn-gold:hover { background: linear-gradient(135deg, var(--rdc-yellow-dark), #b8a200); box-shadow: 0 4px 15px rgba(247,214,24,0.3); }
.btn-red { background: var(--rdc-red); color: #fff; border: none; }
.btn-red:hover { background: var(--rdc-red-dark); color: #fff; }

/* === Status badges === */
.badge-soumise { background: var(--rdc-blue); }
.badge-en_examen { background: #fd7e14; }
.badge-entretien { background: #6f42c1; }
.badge-acceptee { background: #198754; }
.badge-refusee { background: var(--rdc-red); }

/* === Timeline === */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 3px; background: linear-gradient(to bottom, var(--rdc-blue), var(--rdc-yellow), var(--rdc-red)); }
.timeline-item { position: relative; margin-bottom: 25px; padding-left: 20px; }
.timeline-item::before { content: ''; position: absolute; left: -24px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--rdc-yellow); border: 3px solid var(--rdc-blue); }
.timeline-item.active::before { background: var(--rdc-blue); box-shadow: 0 0 0 4px rgba(0,127,255,0.3); }

/* === Eligibility list === */
.eligibility-list { list-style: none; padding: 0; }
.eligibility-list li { padding: 12px 0 12px 40px; position: relative; border-bottom: 1px solid #e8ecf0; }
.eligibility-list li::before {
    content: '✓';
    position: absolute;
    left: 8px;
    top: 12px;
    width: 22px;
    height: 22px;
    background: var(--rdc-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* === File upload === */
.file-upload-zone { border: 2px dashed #b0c4de; border-radius: 12px; padding: 40px; text-align: center; transition: all 0.3s; cursor: pointer; background: #f8fafd; }
.file-upload-zone:hover, .file-upload-zone.dragover { border-color: var(--rdc-blue); background: rgba(0,127,255,0.05); }

/* === Stat cards (admin) === */
.stat-card { text-align: center; padding: 25px; border-left: 4px solid var(--rdc-blue); border-radius: 12px; }
.stat-card .stat-number { font-size: 2.5rem; font-weight: 700; color: var(--rdc-blue); }
.stat-card .stat-label { color: #666; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* === Info box === */
.info-box { background: #e8f0fe; border-left: 4px solid var(--rdc-blue); padding: 15px 20px; border-radius: 0 8px 8px 0; margin: 15px 0; }

/* === Deadline banner === */
.deadline-banner {
    background: linear-gradient(90deg, var(--rdc-yellow), var(--rdc-yellow-dark));
    color: #1a1a1a;
    padding: 12px;
    text-align: center;
    font-weight: 600;
}

/* === Flag stripe accent === */
.flag-stripe {
    height: 4px;
    background: linear-gradient(90deg, var(--rdc-blue) 33%, var(--rdc-yellow) 33% 66%, var(--rdc-red) 66%);
}

/* === Footer === */
footer { background: var(--dark-bg); color: #b0b8c8; padding: 30px 0; }
footer a { color: var(--rdc-yellow); text-decoration: none; }
footer a:hover { color: #fff; }
footer .flag-stripe { margin-bottom: 0; }

/* === Tables === */
.table-custom thead { background: linear-gradient(135deg, var(--rdc-blue), var(--rdc-blue-dark)); color: #fff; }
.table-custom tbody tr:hover { background: rgba(0,127,255,0.05); }

/* === Forms === */
.form-control:focus, .form-select:focus { border-color: var(--rdc-blue); box-shadow: 0 0 0 0.2rem rgba(0,127,255,0.2); }
.form-label { font-weight: 600; color: #333; }

/* === Animations === */
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.alert { animation: fadeIn 0.4s ease; }

/* === Auth pages === */
.auth-container { max-width: 500px; margin: 60px auto; }

/* === Lucide icons alignment === */
[data-lucide] { display: inline-block; vertical-align: middle; }
.nav-link [data-lucide], .btn [data-lucide], h1 [data-lucide], h2 [data-lucide], h3 [data-lucide], h4 [data-lucide], h5 [data-lucide] {
    width: 18px; height: 18px;
}
.hero-section h1 [data-lucide] { width: 36px; height: 36px; }
.fa-3x-lucide { width: 48px !important; height: 48px !important; }
.stat-number [data-lucide] { width: 24px; height: 24px; }

/* === Programme cards icons === */
.programme-icon { width: 56px; height: 56px; color: var(--rdc-blue); margin-bottom: 15px; }

/* === Logo upload preview === */
.logo-preview { max-width: 120px; max-height: 120px; border: 2px solid #ddd; border-radius: 8px; padding: 8px; background: #fff; }

/* === Responsive === */
@media (max-width: 768px) {
    .hero-section { padding: 40px 0; }
    .hero-section h1 { font-size: 1.8rem; }
    .stat-card .stat-number { font-size: 1.8rem; }
    .section-title { font-size: 1.3rem; }
}
