/* Variables CSS */
:root {
    --primary-color: #2c5530;
    --secondary-color: #d4a574;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    background-color: #fff;
}

/* Typographie */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Header */
.header-top {
    font-size: 0.9rem;
}

.header-main {
    z-index: 1000;
}

.navbar-brand img {
    height: 60px;
    transition: var(--transition);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow);
}

/* Cart badge */
.cart-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Hero Slider */
.hero-slider .carousel-item {
    height: 600px;
    background-color: #000;
}

.hero-slider .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    opacity: 0.7;
}

.hero-slider .carousel-caption {
    bottom: 30%;
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: var(--border-radius);
}

/* Product Cards */
.product-card {
    border: 1px solid #eaeaea;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.badge-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.badge-container .badge {
    margin-right: 5px;
    font-size: 0.8rem;
    padding: 5px 10px;
}

.product-card .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1rem 0;
}

.price-old {
    font-size: 0.9rem;
    text-decoration: line-through;
}

.price-new {
    color: var(--danger-color);
    font-weight: bold;
}

.price {
    color: var(--primary-color);
    font-weight: bold;
}

/* Promotion Cards */
.promotion-card {
    border: 2px solid var(--danger-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.promotion-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.promotion-card .badge {
    font-size: 1rem;
    padding: 8px 12px;
}

/* Review Cards */
.review-card {
    border: none;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stars {
    color: var(--warning-color);
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #244627;
    border-color: #244627;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Product Gallery */
.product-gallery {
    position: relative;
}

.main-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid #eaeaea;
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tabs */
.nav-tabs {
    border-bottom: 2px solid #eaeaea;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--dark-color);
    padding: 1rem 2rem;
    font-weight: 500;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    background-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background-color: transparent;
    border-bottom: 3px solid var(--primary-color);
}

.tab-content {
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Forms */
.form-control,
.form-select {
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(44, 85, 48, 0.25);
}

/* Quantity input */
.input-group .btn {
    padding: 0.5rem 1rem;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.flash-message {
    animation: slideIn 0.3s ease-out;
    box-shadow: var(--box-shadow);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Footer */
footer {
    margin-top: 5rem;
}

footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

footer a:hover {
    color: var(--secondary-color) !important;
}

.social-icons a {
    display: inline-block;
    transition: var(--transition);
}

.social-icons a:hover {
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slider .carousel-item {
        height: 400px;
    }

    .hero-slider .carousel-caption {
        bottom: 20%;
        padding: 1rem;
    }

    .hero-slider .display-4 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar-brand .brand-text {
        display: none;
    }

    .flash-messages {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

@media (max-width: 576px) {
    .hero-slider .carousel-item {
        height: 300px;
    }

    .product-card .card-img-top {
        height: 200px;
    }
}

/* Hero Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slider .carousel-item {
    height: 80vh;
    min-height: 600px;
    background: #000;
}

.hero-slider .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.hero-slider .carousel-caption {
    bottom: 15%;
    text-align: left;
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.hero-slider .carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-slider .carousel-caption .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-slider .carousel-caption .btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Savoir-Faire */
.info-production-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.info-production-image .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(47, 79, 79, 0.3), transparent);
    border-radius: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slider .carousel-item {
        height: 60vh;
        min-height: 400px;
    }

    .hero-slider .carousel-caption h1 {
        font-size: 2rem;
    }

    .hero-slider .carousel-caption .lead {
        font-size: 1.1rem;
    }

    .hero-slider .carousel-caption {
        bottom: 10%;
        padding: 1rem;
    }
}