/**
 * Styles personnalisés pour le site Widelie Carlvanie OLIBRICE
 * Palette de couleurs: Bleu nuit #0A2342, Doré #CBA135, Blanc cassé #F5F5F5
 */

:root {
    --primary-color: #0A2342;      /* Bleu nuit */
    --primary-dark: #081a32;
    --secondary-color: #CBA135;    /* Doré */
    --secondary-dark: #b38d2a;
    --background-color: #F5F5F5;   /* Blanc cassé */
    --text-color: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border-color: #E0E0E0;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

/* Typography */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

/* Utility Classes */
.text-secondary-custom {
    color: var(--secondary-color) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.min-vh-75 {
    min-height: 75vh;
}

/* Override Bootstrap Primary Color */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 35, 66, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    transition: all 0.3s ease;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(203, 161, 53, 0.3);
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

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

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-secondary {
    background-color: var(--secondary-color) !important;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
}

.navbar-brand .brand-text {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.service-card .service-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.article-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(203,161,53,0.1)"/></svg>');
    background-size: 50px 50px;
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(10, 35, 66, 0.15);
}

.input-group-text {
    background-color: var(--background-color);
    border-color: #ced4da;
}

/* Stats Section */
.stat-item {
    padding: 2rem;
}

/* Footer */
footer {
    margin-top: 0 !important;
}

footer a:hover {
    color: var(--secondary-color) !important;
    text-decoration: underline;
}

.social-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

/* Admin Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 80px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: #fff;
}

.sidebar .nav-link {
    font-weight: 400;
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border-left: 3px solid transparent;
}

.sidebar .nav-link:hover {
    background-color: var(--background-color);
    border-left-color: var(--secondary-color);
}

.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
    border-left-color: var(--secondary-color);
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

/* Dashboard Stats Cards */
.stats-card {
    border-left: 4px solid var(--primary-color);
}

.stats-card.card-primary {
    border-left-color: var(--primary-color);
}

.stats-card.card-success {
    border-left-color: var(--success-color);
}

.stats-card.card-info {
    border-left-color: var(--info-color);
}

.stats-card.card-warning {
    border-left-color: var(--warning-color);
}

/* Tables */
.table {
    background-color: white;
}

.table thead th {
    background-color: var(--background-color);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--text-color);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link:hover {
    background-color: var(--background-color);
    border-color: var(--border-color);
}

/* Loading Spinner */
.spinner-border-primary {
    color: var(--primary-color);
}

/* Progress Bar */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: var(--background-color);
}

.progress-bar {
    background-color: var(--primary-color);
}

/* Course Player */
.video-player {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 8px;
}

.video-player iframe,
.video-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Lesson List */
.lesson-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lesson-item:hover {
    background-color: var(--background-color);
}

.lesson-item.active {
    background-color: rgba(10, 35, 66, 0.05);
    border-left: 4px solid var(--primary-color);
}

.lesson-item.completed {
    opacity: 0.7;
}

.lesson-item.completed .lesson-title {
    text-decoration: line-through;
}

/* Payment Methods */
.payment-method {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: var(--primary-color);
    background-color: rgba(10, 35, 66, 0.02);
}

.payment-method.selected {
    border-color: var(--primary-color);
    background-color: rgba(10, 35, 66, 0.05);
}

.payment-method input[type="radio"] {
    display: none;
}

/* Profile Avatar */
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .sidebar {
        position: relative;
        padding: 1rem 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Print Styles */
@media print {
    .navbar,
    .sidebar,
    footer,
    .btn,
    .no-print {
        display: none !important;
    }
}
