/* =========================================
   RAA-SAWA - Styles personnalisés
   Palette: #112a53 (Bleu nuit) | #828043 (Olive/Or)
   ========================================= */

:root {
    --primary-navy: #112a53;
    --primary-olive: #828043;
    --primary-navy-light: #1e3a6e;
    --olive-light: #a3a15a;
    --olive-soft: #e8e6d9;
    --neutral-bg: #f8f7f2;
    --text-dark: #1f2937;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--neutral-bg);
    color: var(--text-dark);
}

/* Couleurs personnalisées */
.bg-primary { background-color: var(--primary-navy); }
.bg-primary-light { background-color: var(--primary-navy-light); }
.bg-secondary { background-color: var(--primary-olive); }
.bg-olive-soft { background-color: var(--olive-soft); }
.text-primary { color: var(--primary-navy); }
.text-secondary { color: var(--primary-olive); }
.border-primary { border-color: var(--primary-navy); }
.border-secondary { border-color: var(--primary-olive); }

/* Boutons */
.btn-primary {
    background-color: var(--primary-olive);
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(130, 128, 67, 0.25);
}
.btn-primary:hover {
    background-color: #6b6936;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(130, 128, 67, 0.35);
}

.btn-outline {
    border: 2px solid var(--primary-olive);
    color: var(--primary-olive);
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: inline-block;
}
.btn-outline:hover {
    background-color: var(--primary-olive);
    color: #ffffff;
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.4);
    color: #ffffff;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: inline-block;
}
.btn-outline-light:hover {
    background-color: #ffffff;
    color: var(--primary-navy);
}

.btn-submit {
    background-color: var(--primary-navy);
    color: white;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    width: 100%;
    transition: background 0.3s;
}
.btn-submit:hover {
    background-color: var(--primary-navy-light);
}

/* Cartes */
.card {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(17, 42, 83, 0.06);
    border-top: 4px solid var(--primary-olive);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(17, 42, 83, 0.12);
}

/* Hero */
.hero-bg {
    background: linear-gradient(135deg, rgba(17, 42, 83, 0.95), rgba(10, 26, 54, 0.98)),
                url('https://images.unsplash.com/photo-1509099836639-18ba1795216d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

/* Navbar active */
.nav-link {
    position: relative;
    transition: color 0.3s;
}
.nav-link:hover,
.nav-link.active {
    color: var(--primary-olive);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-olive);
    border-radius: 2px;
}

/* Formulaires */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    background: #ffffff;
    transition: border 0.2s, box-shadow 0.2s;
}
.form-input:focus {
    outline: none;
    border-color: var(--primary-olive);
    box-shadow: 0 0 0 3px rgba(130, 128, 67, 0.15);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

/* Sidebar admin */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    color: #d1d9e6;
    border-left: 4px solid transparent;
    transition: all 0.25s;
}
.sidebar-link:hover,
.sidebar-link.active {
    background-color: rgba(255, 255, 255, 0.08);
    border-left-color: var(--primary-olive);
    color: #ffffff;
}

/* Badges */
.badge-success { background: #d1e7dd; color: #0f5132; }
.badge-warning { background: #fff3cd; color: #664d03; }
.badge-danger  { background: #f8d7da; color: #842029; }
.badge-info    { background: #cfe2ff; color: #084298; }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade {
    animation: fadeInUp 0.7s ease forwards;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary-navy); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-navy-light); }

/* Icônes décoratives */
.icon-circle-navy {
    width: 3.5rem; height: 3.5rem;
    background: rgba(17, 42, 83, 0.1);
    color: var(--primary-navy);
    border-radius: 9999px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}
.icon-circle-olive {
    width: 3.5rem; height: 3.5rem;
    background: rgba(130, 128, 67, 0.15);
    color: var(--primary-olive);
    border-radius: 9999px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}