:root {
    --primary-green: #1a5d1a;
    --secondary-orange: #e67e22;
    --accent-blue: #3498db;
    --dark-blue: #2c3e50;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #343a40;
    --text-dark: #2d3436;
    --text-light: #636e72;
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-gray);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* Loader Styles */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-blue) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out;
}

.loader-content {
    text-align: center;
    animation: fadeInUp 1s ease;
}

.loader-icon {
    font-size: 5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.loader-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.loader-subtext {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0%;
    background: var(--secondary-orange);
    border-radius: 2px;
    transition: width 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Header Styles */
.top-bar {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--secondary-orange);
}

.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 15px 0;
    transition: all 0.3s;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 2rem;
    color: var(--primary-green) !important;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    margin-right: 10px;
    color: var(--secondary-orange);
}

.nav-link {
    font-weight: 500;
    color: var(--dark-gray) !important;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-orange);
    transition: width 0.3s;
}

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

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

.nav-link.active::after {
    width: 100%;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--text-light);
    text-decoration: none;
}

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

/* Article Styles */
.article-container {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 2rem;
}

.article-header {
    position: relative;
}

.article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.article-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--accent-blue);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-meta {
    background-color: var(--light-gray);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-date, .article-author, .article-views {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-date i, .article-author i, .article-views i {
    margin-right: 8px;
    color: var(--primary-green);
}

.article-content {
    padding: 2rem;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.article-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.5;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem;
    color: var(--primary-green);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--medium-gray);
}

.article-body h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--dark-blue);
}

.article-body blockquote {
    border-left: 4px solid var(--secondary-orange);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.article-body ul, .article-body ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--medium-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: var(--light-gray);
    color: var(--text-light);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s;
}

.tag:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-text {
    font-weight: 600;
    color: var(--text-dark);
}

.share-icons {
    display: flex;
    gap: 0.5rem;
}

.share-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
}

.share-icon.facebook {
    background-color: #3b5998;
}

.share-icon.twitter {
    background-color: #1da1f2;
}

.share-icon.linkedin {
    background-color: #0077b5;
}

.share-icon.whatsapp {
    background-color: #25d366;
}

.share-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Related Articles */
.related-articles {
    margin-top: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--medium-gray);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background-color: var(--secondary-orange);
    border-radius: 5px;
}

.view-all {
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.view-all:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    height: 100%;
}

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

.card-img-top {
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.card-body {
    padding: 1.5rem;
}

.card-badge {
    display: inline-block;
    background-color: var(--accent-blue);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.card-text {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Sidebar Styles */
.sidebar-widget {
    background-color: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--medium-gray);
    display: flex;
    align-items: center;
}

.widget-title i {
    margin-right: 10px;
    color: var(--secondary-orange);
}

.video-item {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--medium-gray);
}

.video-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.video-thumb {
    width: 100px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    flex-grow: 1;
}

.video-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
}

.video-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Social Media Fixed Buttons */
.social-fixed {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.social-btn.whatsapp {
    background: #25D366;
}

.social-btn.telegram {
    background: #0088cc;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-green) 100%);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-orange);
    border-radius: 3px;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

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

.footer-links a i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--secondary-orange);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}
/* hero section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: 0 0 20px 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .article-image {
        height: 350px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .article-image {
        height: 300px;
    }
    
    .article-title {
        font-size: 1.6rem;
    }
    
    .article-subtitle {
        font-size: 1.1rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-share {
        margin-top: 1rem;
    }
    
    .social-fixed {
        display: none;
    }
}

@media (max-width: 576px) {
    .article-image {
        height: 250px;
    }
    
    .article-title {
        font-size: 1.4rem;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
}

.comment-form-wrapper {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-top: 32px;
    border: 2px solid var(--medium-gray);
    transition: border-color 0.3s ease;
}

.comment-form-wrapper:focus-within {
    border-color: var(--primary-green);
    box-shadow: 0 4px 12px rgba(26, 93, 26, 0.15);
}

.comment-form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary-green);
}

.comment-form-header i {
    color: var(--primary-green);
    font-size: 22px;
}

.comment-form-header h6 {
    margin: 0;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 700;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    position: relative;
}

.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--medium-gray);
    border-radius: 10px;
    font-size: 15px;
    color: var(--text-dark);
    background: var(--light-gray);
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
    font-family: inherit;
    line-height: 1.6;
}

.form-textarea::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(26, 93, 26, 0.1);
}

.form-textarea:hover:not(:focus) {
    border-color: var(--accent-blue);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.form-hint {
    color: var(--text-light);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-hint i {
    color: var(--accent-blue);
    font-size: 14px;
}

.btn-submit-comment {
    background: linear-gradient(135deg, var(--primary-green), #2d7a2d);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(26, 93, 26, 0.3);
}

.btn-submit-comment:hover {
    background: linear-gradient(135deg, #2d7a2d, var(--primary-green));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 93, 26, 0.4);
}

.btn-submit-comment:active {
    transform: translateY(0);
}

.btn-submit-comment i {
    font-size: 14px;
}

/* Animation au chargement */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-form-wrapper {
    animation: slideIn 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .comment-form-wrapper {
        padding: 20px;
        margin-top: 24px;
    }

    .comment-form-header h6 {
        font-size: 16px;
    }

    .form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .form-hint {
        order: 2;
        justify-content: center;
        font-size: 12px;
    }

    .btn-submit-comment {
        order: 1;
        width: 100%;
        justify-content: center;
    }
}

/* États de validation */
.form-textarea:invalid:not(:placeholder-shown) {
    border-color: var(--secondary-orange);
}

.form-textarea:valid:not(:placeholder-shown) {
    border-color: var(--primary-green);
}

/* Effet au survol du formulaire */
.comment-form-wrapper:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}