/**
 * AutoAge.org - Style Organisation
 * Design institutionnel et professionnel
 */

:root {
    /* Couleurs Organisation */
    --primary: #1a365d;
    --primary-light: #2c5282;
    --primary-dark: #0d1b2a;
    --secondary: #f7fafc;
    --accent: #2b6cb0;
    --accent-light: #4299e1;
    --gold: #c9a227;
    --text-dark: #1a202c;
    --text-body: #4a5568;
    --text-muted: #718096;
    --white: #ffffff;
    --border: #e2e8f0;
    --success: #38a169;
    --danger: #e53e3e;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    --gradient-hero: linear-gradient(135deg, #1a365d 0%, #2b6cb0 50%, #1a365d 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    
    /* Layout */
    --radius: 6px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    
    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

/* Top Bar */
.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.875rem;
}

.top-bar-text {
    color: rgba(255, 255, 255, 0.8);
}

.top-bar-text i {
    color: var(--gold);
}

.top-bar-link {
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
}

.top-bar-link:hover {
    color: var(--gold);
}

/* Navigation */
.navbar {
    background: var(--white) !important;
    padding: 15px 0;
    box-shadow: var(--shadow);
    border-bottom: 3px solid var(--primary);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
}

.brand-text span {
    color: var(--gold);
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    padding: 10px 18px !important;
    position: relative;
    transition: var(--transition);
}

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

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

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

.dropdown-menu {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    margin-top: 10px;
}

.dropdown-item {
    color: var(--text-dark);
    padding: 10px 20px;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--secondary);
    color: var(--primary);
}

/* Search Form */
.search-form .form-control {
    border: 2px solid var(--border);
    border-radius: var(--radius) 0 0 var(--radius);
    padding: 10px 15px;
}

.search-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: none;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-light);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    padding: 10px 26px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-gold {
    background: var(--gold);
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.btn-gold:hover {
    background: #b8911f;
    color: var(--white);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/><circle cx="50" cy="50" r="20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
    background-size: 200px;
    opacity: 0.5;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 25px;
}

.hero-badge i {
    color: var(--gold);
}

.hero-title {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--gold);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section */
.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--secondary);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gold);
    margin-top: 15px;
    border-radius: 2px;
}

.section-title.text-center::after {
    margin: 15px auto 0;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Article Cards */
.article-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.article-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 5px 14px;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card-body {
    padding: 25px;
}

.article-card-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-card-title a {
    color: var(--text-dark);
}

.article-card-title a:hover {
    color: var(--primary);
}

.article-card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-card-meta i {
    color: var(--gold);
    margin-right: 5px;
}

/* Featured Card */
.featured-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.featured-card-image {
    height: 350px;
    overflow: hidden;
}

.featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-card-body {
    padding: 35px;
}

.featured-card-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* Sidebar */
.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gold);
    color: var(--primary);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--secondary);
    border-radius: var(--radius);
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.category-list a:hover,
.category-list a.active {
    background: var(--primary);
    color: var(--white);
    border-left-color: var(--gold);
}

.category-list a:hover .badge,
.category-list a.active .badge {
    background: var(--gold);
}

.category-list .badge {
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: var(--radius);
}

/* Popular Posts */
.popular-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.popular-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

.popular-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-content h6 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.popular-post-content h6 a {
    color: var(--text-dark);
}

.popular-post-content h6 a:hover {
    color: var(--primary);
}

.popular-post-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Article Page */
.article-header {
    background: var(--gradient-primary);
    padding: 60px 0;
    color: var(--white);
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    color: rgba(255, 255, 255, 0.8);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta i {
    color: var(--gold);
}

.article-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-top: -40px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.article-featured-image {
    margin: -40px -40px 30px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-body);
}

.article-body h2 {
    font-size: 1.6rem;
    margin: 40px 0 20px;
    color: var(--primary);
}

.article-body h3 {
    font-size: 1.3rem;
    margin: 30px 0 15px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 25px 0;
}

.article-body a {
    color: var(--accent);
    text-decoration: underline;
}

.article-body ul, .article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body blockquote {
    border-left: 4px solid var(--gold);
    padding: 20px 30px;
    margin: 30px 0;
    background: var(--secondary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-dark);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
}

.footer-main {
    padding: 70px 0;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-brand span {
    color: var(--gold);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    line-height: 1.7;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--gold);
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '›';
    color: var(--gold);
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Breadcrumb */
.breadcrumb-section {
    background: var(--secondary);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    margin: 0;
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--text-muted);
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--primary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
    content: "›";
}

/* Pagination */
.pagination {
    gap: 5px;
}

.page-link {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text-dark);
    padding: 10px 18px;
    font-weight: 500;
    transition: var(--transition);
}

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

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

.page-item.disabled .page-link {
    background: var(--secondary);
    color: var(--text-muted);
}

/* Forms */
.form-control, .form-select {
    border: 2px solid var(--border);
    padding: 12px 18px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Alerts */
.alert-danger {
    background: #fed7d7;
    border: 1px solid var(--danger);
    color: var(--danger);
}

.alert-success {
    background: #c6f6d5;
    border: 1px solid var(--success);
    color: var(--success);
}

/* Card */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gold);
    transform: translateY(-5px);
}

/* Background */
.bg-light {
    background: var(--secondary) !important;
}

/* Badge */
.badge.bg-primary {
    background: var(--primary) !important;
}

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

/* Text Colors */
.text-primary {
    color: var(--primary) !important;
}

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

/* Values Section */
.value-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    background: var(--primary);
    color: var(--white);
}

.value-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.value-card:hover .value-icon i {
    color: var(--white);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .article-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .article-content {
        padding: 25px;
        margin-top: -20px;
    }
    
    .article-featured-image {
        margin: -25px -25px 20px;
    }
}
