/* ===========================================
   FRONT.CSS - AgroForest Solutions
   Styles pour le front-end du site
   ========================================== */

/* Variables CSS */
:root {
    --primary-green: #2c5234;
    --secondary-green: #4a7c59;
    --accent-green: #7bc143;
    --light-green: #e8f5e8;
    --dark-gray: #2d3436;
    --light-gray: #f8f9fa;
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --overlay-green: rgba(123, 193, 67, 0.9);
    --primary-color:#7bc143;
    --font-family: 'Inter', sans-serif;
    --border-radius: 15px;
    --border-radius-lg: 25px;
    --transition: all 0.3s ease;
    --shadow: 0 5px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 15px 35px rgba(0,0,0,0.15);
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-green);
    margin: 1rem auto;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--accent-green);
    color: white;
}

.btn-primary:hover {
    background: #6ba639;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 193, 67, 0.3);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--accent-green);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--shadow);
}

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

/* Hero Stats */
.hero-stats {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
}

.hero-stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    margin: 0 0.5rem;
}

.hero-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-green);
    line-height: 1;
}

.hero-stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Services Section */
.services-section {
    background: white;
    padding: 80px 0;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    background: linear-gradient(135deg, var(--accent-green), #6ba639);
    border-radius: 20px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--primary-green);
    text-decoration: none;
}

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

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

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

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 82, 52, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.product-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-badges .badge {
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    font-weight: 500;
}

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

.article-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

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

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.article-content {
    padding: 1.5rem;
}

.article-category {
    background: var(--light-green);
    color: var(--primary-green);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-title a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.article-title a:hover {
    color: var(--accent-green);
}

.article-excerpt {
    color: var(--text-muted);
    margin: 1rem 0;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    padding: 60px 0;
}

.cta-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* Back to Top Button */
.btn-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(123, 193, 67, 0.3);
    transition: var(--transition);
}

.btn-floating:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(123, 193, 67, 0.4);
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-green);
    color: white;
    padding: 1rem 0;
    z-index: 1040;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-notice.show {
    transform: translateY(0);
}

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

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 991.98px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-stat-item {
        margin-bottom: 1rem;
    }
    
    .service-card,
    .product-card,
    .article-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .services-section,
    .products-section,
    .articles-section {
        padding: 60px 0;
    }
    
    .service-card,
    .product-card,
    .article-card {
        padding: 2rem 1.5rem;
    }
    
    .hero-stats {
        position: relative;
        bottom: auto;
        margin-top: 3rem;
    }
    
    .hero-stat-number {
        font-size: 1.5rem;
    }
    
    .btn-floating {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .service-title,
    .product-title,
    .article-title {
        font-size: 1.2rem;
    }
    
    .hero-stat-item {
        padding: 0.75rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .product-badges {
        justify-content: center;
    }
}

/* Performance optimizations */
.service-card,
.product-card,
.article-card {
    will-change: transform;
}

/* Accessibility improvements */
.service-link:focus,
.article-title a:focus,
.btn:focus {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .hero-section,
    .btn,
    .service-link,
    .btn-floating,
    .cookie-notice {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
    
    .section-title {
        color: black !important;
    }
    
    .service-card,
    .product-card,
    .article-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
        margin-bottom: 1rem !important;
    }
}

/* Utility classes */
.text-primary-green {
    color: var(--primary-green) !important;
}

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

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

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

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: var(--accent-green);
    color: white;
}

::-moz-selection {
    background: var(--accent-green);
    color: white;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-green);
    border-radius: 4px;
}

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

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form improvements */
.form-control:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 0.2rem rgba(123, 193, 67, 0.25);
}

.form-control {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

/* Toast notifications */
.toast {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.toast-header {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Modal improvements */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-header {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Dropdown improvements */
.dropdown-menu {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow);
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    margin: 0.25rem 0.5rem;
    transition: var(--transition);
}

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

/* Badge improvements */
.badge {
    border-radius: var(--border-radius);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Alert improvements */
.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow);
}

.alert-success {
    background-color: var(--light-green);
    color: var(--primary-green);
}

/* Progress bar */
.progress {
    border-radius: var(--border-radius);
    height: 8px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--accent-green), var(--primary-green));
    border-radius: var(--border-radius);
}

/* Image optimizations */
img {
    max-width: 100%;
    height: auto;
}

.img-fluid {
    transition: transform 0.3s ease;
}

/* Dark theme support (optionnel) */
@media (prefers-color-scheme: dark) {
    /* Sera ajouté si nécessaire */
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 0 0 2px black;
        --shadow-hover: 0 0 0 3px black;
    }
    
    .service-card,
    .product-card,
    .article-card {
        border: 2px solid black;
    }
}

/* ===================================
   PAGE SERVICES DYNAMIQUE - STYLES
   =================================== */

/* Service Cards */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: translateX(0);
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon i {
    font-size: 1.8rem;
    color: white;
}

.service-title {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.service-features li {
    padding: 0.4rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.4;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1rem;
}

.service-target {
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.service-actions {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* Services par catégorie */
.category-section {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 2rem;
}

.category-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.category-title i {
    margin-right: 0.5rem;
}

.category-description {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
}

.service-item-small {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    border-left: 4px solid var(--primary-color);
    height: 100%;
}

.service-item-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.service-item-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.service-item-icon i {
    font-size: 1.2rem;
    color: white;
}

.service-item-content {
    flex: 1;
}

.service-item-title {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.service-item-desc {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.service-item-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.service-item-link:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.service-item-link i {
    font-size: 0.8rem;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

.service-item-link:hover i {
    transform: translateX(3px);
}

/* Section Processus */
.process-step {
    padding: 1.5rem;
    position: relative;
}

.process-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    z-index: 1;
}

.process-step:last-child::after {
    display: none;
}

.process-title {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.process-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Témoignages */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.testimonial-content {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-style: italic;
    color: #495057;
    line-height: 1.6;
    margin: 0;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    top: -10px;
    left: -10px;
    opacity: 0.3;
}

.testimonial-author strong {
    color: var(--dark-color);
    font-weight: 600;
}

.testimonial-author small {
    display: block;
    margin-top: 0.2rem;
}

/* État vide */
.empty-state {
    padding: 3rem 1rem;
}

.empty-state i {
    opacity: 0.5;
}

/* Section CTA */
.section-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.cta-title {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta-buttons .btn {
    margin: 0.5rem;
}

/* Breadcrumb */
.hero-breadcrumb {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    display: inline-block;
}

.breadcrumb-link {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.breadcrumb-link:hover {
    color: white;
    opacity: 1;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    opacity: 0.6;
}

.breadcrumb-current {
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .service-actions {
        justify-content: center;
    }
    
    .service-actions .btn {
        flex: 1;
        min-width: auto;
    }
    
    .process-step::after {
        display: none;
    }
    
    .service-item-small {
        flex-direction: column;
        text-align: center;
    }
    
    .service-item-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .service-card {
        padding: 1rem;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .hero-breadcrumb {
        font-size: 0.9rem;
    }
}

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

.service-card,
.process-step,
.testimonial-card,
.service-item-small {
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
/* ===================================
   PAGE PRODUITS - STYLES
   =================================== */

/* Section Filtres */
.section-filtres {
    border-bottom: 1px solid #e9ecef;
}

.filtres-container {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filtres-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.filtres-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: end;
}

.filtre-group {
    min-width: 180px;
}

.filtre-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.3rem;
    display: block;
}

.filtre-select {
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.filtre-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
}

/* Section Stats */
.section-stats {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Produit Cards */
.produit-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.produit-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.produit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.produit-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.produit-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.produit-placeholder span {
    font-weight: 500;
    font-size: 1.1rem;
}

.produit-badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.produit-badges .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
    border-radius: 15px;
}

.produit-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.produit-category {
    margin-bottom: 0.5rem;
}

.category-tag {
    background: var(--light-green);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.produit-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.produit-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.produit-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.produit-info {
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.info-item i {
    width: 16px;
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.produit-prix {
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.prix-promo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--success-color);
    margin-right: 0.5rem;
}

.prix-original {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.prix-public {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.prix-unite {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: 0.3rem;
}

.produit-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.produit-actions .btn {
    flex: 1;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
}

.produit-stock {
    text-align: center;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.stock-disponible {
    background: #d4edda;
    color: #155724;
}

.stock-rupture {
    background: #f8d7da;
    color: #721c24;
}

.stock-commande {
    background: #fff3cd;
    color: #856404;
}

.stock-disponible i,
.stock-rupture i,
.stock-commande i {
    margin-right: 0.3rem;
}

/* Animation de filtrage */
.produit-item {
    transition: all 0.3s ease;
}

.produit-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-color: #ddd;
    padding: 0.6rem 1rem;
}

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

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

/* État vide */
.empty-state {
    padding: 3rem 1rem;
}

.empty-state i {
    opacity: 0.5;
}

/* Section CTA */
.section-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.cta-title {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta-buttons .btn {
    margin: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filtres-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filtre-group {
        min-width: auto;
        width: 100%;
    }
    
    .stats-container {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .produit-image {
        height: 200px;
    }
    
    .produit-content {
        padding: 1rem;
    }
    
    .produit-actions {
        flex-direction: column;
    }
    
    .produit-actions .btn {
        margin-bottom: 0.5rem;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

@media (max-width: 576px) {
    .produit-title {
        font-size: 1.1rem;
    }
    
    .produit-badges {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .produit-badges .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }
    
    .filtres-container {
        padding: 1rem;
    }
    
    .pagination .page-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.produit-card {
    animation: fadeInUp 0.6s ease forwards;
}

.produit-card:nth-child(1) { animation-delay: 0.1s; }
.produit-card:nth-child(2) { animation-delay: 0.2s; }
.produit-card:nth-child(3) { animation-delay: 0.3s; }
.produit-card:nth-child(4) { animation-delay: 0.4s; }
.produit-card:nth-child(5) { animation-delay: 0.5s; }
.produit-card:nth-child(6) { animation-delay: 0.6s; }

/* ===================================
   PAGE CONTACT - STYLES
   =================================== */

/* Section Contact */
.section-contact {
    background: #d6dadd;
    margin-top: 150px;
}

/* Informations de contact */
.contact-info {
    background: rgba(var(--primary-color-rgb), 0.25);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.contact-info-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-item {
    display: flex;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f3f4;
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-content h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-content p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.contact-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-content a:hover {
    color: var(--secondary-color);
}

/* Réseaux sociaux */
.social-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    color: white;
}

.social-link.facebook { background-color: #1877f2; }
.social-link.linkedin { background-color: #0077b5; }
.social-link.twitter { background-color: #1da1f2; }
.social-link.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* Formulaire de contact */
.contact-form-container {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.contact-form-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-form-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-form .form-label {
    color: var(--dark-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
}

.contact-form .form-control.is-invalid,
.contact-form .form-select.is-invalid {
    border-color: #dc3545;
}

.contact-form .form-control.is-valid,
.contact-form .form-select.is-valid {
    border-color: var(--success-color);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-form .form-check-input {
    border: 2px solid #e9ecef;
    border-radius: 4px;
}

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

.contact-form .form-check-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.contact-form .form-check-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-form .form-check-label a:hover {
    text-decoration: underline;
}

.contact-form .form-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-form .invalid-feedback {
    font-size: 0.85rem;
}

/* Bouton d'envoi */
#submitBtn_old {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 10px;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    min-width: 200px;
}

#submitBtn_old:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--primary-color-rgb), 0.4);
}

#submitBtn_old:disabled {
    opacity: 0.7;
    transform: none;
    cursor: not-allowed;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Compteur de caractères */
#messageCount {
    font-weight: 500;
    color: var(--primary-color);
}

/* Section Carte */
.section-map {
    background: white;
}

.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#map {
    width: 100%;
    height: 400px;
}

/* Section FAQ */
.section-faq {
    background: #f8f9fa;
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.accordion-button {
    background: white;
    color: var(--dark-color);
    font-weight: 500;
    border: none;
    padding: 1.25rem 1.5rem;
    border-radius: 10px !important;
}

.accordion-button:not(.collapsed) {
    background: var(--light-green);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button::after {
    color: var(--primary-color);
}

.accordion-body {
    padding: 1.5rem;
    background: white;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Messages Flash */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f1aeb5);
    color: #721c24;
}

.alert i {
    font-size: 1.1rem;
}

/* Animation d'envoi */
.form-sending {
    opacity: 0.7;
    pointer-events: none;
}

.form-sending .form-control,
.form-sending .form-select {
    background-color: #f8f9fa;
}

/* États de validation en temps réel */
.field-validating {
    border-color: #ffc107 !important;
}

.field-valid {
    border-color: var(--success-color) !important;
}

.field-invalid {
    border-color: #dc3545 !important;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-info {
        position: static;
        margin-bottom: 2rem;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto 1rem;
    }
}

@media (max-width: 768px) {
    .contact-info,
    .contact-form-container {
        padding: 1.5rem;
        border-radius: 10px;
    }
    
    .contact-form-title,
    .contact-info-title {
        font-size: 1.3rem;
    }
    
    .contact-form .form-control,
    .contact-form .form-select {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    #submitBtn_old {
        width: 100%;
        padding: 0.8rem 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-item {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .contact-info,
    .contact-form-container {
        padding: 1rem;
    }
    
    .contact-form .row.g-3 {
        --bs-gutter-x: 0.5rem;
    }
    
    .accordion-button,
    .accordion-body {
        padding: 1rem;
    }
    
    #map {
        height: 300px;
    }
}

/* Animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-info,
.contact-form-container {
    animation: fadeInUp 0.6s ease forwards;
}

.contact-info {
    animation-delay: 0.1s;
}

.contact-form-container {
    animation-delay: 0.2s;
}

.contact-item {
    animation: fadeInUp 0.4s ease forwards;
}

.contact-item:nth-child(1) { animation-delay: 0.3s; }
.contact-item:nth-child(2) { animation-delay: 0.4s; }
.contact-item:nth-child(3) { animation-delay: 0.5s; }
.contact-item:nth-child(4) { animation-delay: 0.6s; }
.contact-item:nth-child(5) { animation-delay: 0.7s; }

/* Focus states pour l'accessibilité */
.contact-form .form-control:focus,
.contact-form .form-select:focus,
.contact-form .form-check-input:focus,
#submitBtn_old:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* États hover pour les champs */
.contact-form .form-control:hover:not(:focus),
.contact-form .form-select:hover:not(:focus) {
    border-color: #ced4da;
}

/* Personnalisation du placeholder */
.contact-form .form-control::placeholder {
    color: #adb5bd;
    opacity: 1;
}

/* Style pour les champs requis */
.form-label::after {
    content: '';
}

.form-label:has(+ .form-control[required])::after,
.form-label:has(+ .form-select[required])::after {
    content: ' *';
    color: #dc3545;
    font-weight: bold;
}

/* Animation de chargement du bouton */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}

/* Amélioration des checkbox et radio */
.form-check-input {
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
}

/* Style pour les liens dans le formulaire */
.contact-form a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-form a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.section-services{
    margin-top: 10em;
    
}

main{
     margin-top:6em;
}
/* Styles spécifiques pour le header */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-green, #2c5234) !important;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--accent-green, #7bc143) !important;
}

.brand-text {
    font-weight: 700;
}

.navbar-nav .nav-link {
    color: var(--text-dark, #2d3436) !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 0.25rem;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    background: var(--light-green, #e8f5e8);
    color: var(--primary-green, #2c5234) !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    background: var(--accent-green, #7bc143);
    color: white !important;
    font-weight: 600;
}

.dropdown-menu {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    margin: 0.25rem 0.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--light-green, #e8f5e8);
    color: var(--primary-green, #2c5234);
}

.btn-primary {
    background: var(--accent-green, #7bc143);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #6ba639;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 193, 67, 0.3);
}

.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1060;
}

.top-banner + .navbar {
    margin-top: 40px;
}

/* Mobile styles */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        text-align: center;
    }
    
    .navbar-collapse {
        background: white;
        border-radius: 15px;
        padding: 1rem;
        margin-top: 1rem;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
}
 