/* === Palette de couleurs === */
:root {
    --bordeaux-dark: #5d001e;
    --bordeaux: #8b1538;
    --bordeaux-light: #a5325f;
    --beige: #f5f0e8;
    --beige-dark: #e8dfd3;
    --cream: #fffef2;
    --text-dark: #2c2424;
    --text-muted: #6b5d5d;
}

/* === Body === */
body {
    background-color: var(--beige);
    color: var(--text-dark);
    font-family: 'Georgia', 'Times New Roman', serif;
}

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: transform 0.3s ease-in-out;
    background-color: #1a1a1a !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar-hidden {
    transform: translateY(-100%);
}

/* Desktop - navbar et logo grands */
@media (min-width: 992px) {
    .navbar {
        height: 80px !important;
        min-height: 80px !important;
        padding: 0 !important;
    }

    .navbar .container {
        height: 100%;
        display: flex;
        align-items: center;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .navbar-brand {
        height: 100%;
        display: flex;
        align-items: center;
        padding: 3px 0;
    }

    .navbar-logo {
        height: 120px;
        width: auto;
        transition: transform 0.3s ease;
        object-fit: contain;
    }

    body {
        padding-top: 80px;
    }

    .navbar-nav.mx-auto {
        position: absolute;
        left: 45%;
        transform: translateX(-50%);
    }
}

/* Mobile - comportement normal */
@media (max-width: 991px) {
    .navbar {
        min-height: 70px;
        padding: 0.5rem 0 !important;
    }

    .navbar-logo {
        height: 110px;
    }

    body {
        padding-top: 70px;
    }

    .navbar-nav.mx-auto {
        position: static;
        transform: none;
    }
}

/* Styles navbar communs */
.navbar-brand {
    font-family: 'Georgia', serif;
    font-weight: bold;
    letter-spacing: 1px;
    color: #FFD700 !important;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.nav-link {
    color: #e0e0e0 !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #FFD700 !important;
}

.btn-link.nav-link {
    color: #e0e0e0 !important;
}

.btn-link.nav-link:hover {
    color: #FFD700 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.navbar .navbar-collapse {
    position: relative;
}

/* === Buttons === */
.btn-primary {
    background-color: var(--bordeaux);
    border-color: var(--bordeaux);
    color: var(--cream);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--bordeaux-dark);
    border-color: var(--bordeaux-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 21, 56, 0.3);
}

.btn-outline-primary {
    color: var(--bordeaux);
    border-color: var(--bordeaux);
}

.btn-outline-primary:hover {
    background-color: var(--bordeaux);
    border-color: var(--bordeaux);
    color: var(--cream);
}

.btn-success {
    background-color: var(--bordeaux);
    border-color: var(--bordeaux);
}

.btn-success:hover {
    background-color: var(--bordeaux-dark);
    border-color: var(--bordeaux-dark);
}

.btn-warning {
    background-color: #c8963e;
    border-color: #c8963e;
}

.btn-warning:hover {
    background-color: #a77d32;
    border-color: #a77d32;
}

/* === Cards === */
.card {
    background-color: var(--cream);
    border: 1px solid var(--beige-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(93, 0, 30, 0.15);
    cursor: pointer;
}

/* Images dans les cartes */
.img-container {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--beige);
}

.img-container img {
    height: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .img-container img {
    transform: scale(1.08);
}

.price-tag {
    color: var(--bordeaux);
    font-size: 1.1rem;
}

/* === Bouton Quick Add sur les cards === */
.product-card {
    position: relative;
}

.quick-add-form {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
}

.btn-quick-add {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--bordeaux);
    color: white;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-quick-add:hover {
    background-color: var(--bordeaux-dark);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 15px rgba(139, 21, 56, 0.5);
}

.btn-quick-add:active {
    transform: scale(0.95) rotate(90deg);
}

/* Éviter que le lien de la card interfère avec le bouton */
.product-card a {
    display: block;
    height: calc(100% - 55px);
}

/* === Hero Section === */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('/images/hero-section.png') center/cover no-repeat fixed;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: -2rem -12px 3rem -12px;
    padding: 80px 20px;
    position: relative;
}

.hero-title-img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(3px 3px 6px rgba(255, 193, 75, 0.5));
}

.hero-section .btn {
    background-color: var(--cream);
    color: var(--bordeaux-dark);
    border: none;
    padding: 12px 40px;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-section .btn:hover {
    background-color: var(--beige);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* === Feature Boxes === */
.feature-box {
    background-color: var(--cream);
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid var(--beige-dark);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    border-color: var(--bordeaux-light);
    box-shadow: 0 5px 20px rgba(139, 21, 56, 0.15);
}

.feature-box h4 {
    color: var(--bordeaux-dark);
    font-family: 'Georgia', serif;
    margin-bottom: 1rem;
}

/* === Section Dividers === */
.section-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--bordeaux-light), transparent);
    margin: 3rem 0;
}

/* === Footer === */
.footer-custom {
    background-color: var(--bordeaux-dark) !important;
    color: var(--beige) !important;
    margin-top: 4rem;
}

.footer-title {
    color: var(--cream);
    font-family: 'Georgia', serif;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-subtitle {
    color: var(--cream);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--beige);
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--beige);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--cream);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--bordeaux-light);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 1.5rem 0;
}

.footer-custom small {
    color: var(--beige) !important;
}

/* Modals personnalisées */
.modal-content {
    border-radius: 8px;
}

.modal-header {
    background-color: var(--bordeaux);
    color: white;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body h6 {
    color: var(--bordeaux-dark);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.modal-body h6:first-child {
    margin-top: 0;
}

/* === Links === */
a {
    color: var(--bordeaux);
    text-decoration: none;
}

a:hover {
    color: var(--bordeaux-dark);
}

a.text-decoration-none:hover {
    text-decoration: none;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    color: var(--text-dark);
}

.text-muted {
    color: var(--text-muted) !important;
}

/* === Google Button === */
.btn-google-custom {
    background-color: white;
    color: #3c4043;
    border: 1px solid var(--beige-dark);
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.btn-google-custom:hover {
    background-color: var(--beige);
    border-color: var(--bordeaux-light);
}

/* === Tables === */
.table {
    background-color: var(--cream);
}

.table-dark {
    background-color: var(--bordeaux-dark) !important;
    color: var(--cream) !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--beige);
}

/* === Forms === */
.form-control:focus {
    border-color: var(--bordeaux-light);
    box-shadow: 0 0 0 0.25rem rgba(139, 21, 56, 0.15);
}

.form-label {
    color: var(--text-dark);
    font-weight: 500;
}

/* === Pagination === */
.pagination {
    margin-top: 2rem;
}

.pagination .page-link {
    color: var(--bordeaux);
    border-color: var(--beige-dark);
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    color: var(--bordeaux-dark);
    background-color: var(--beige);
    border-color: var(--bordeaux);
}

.pagination .page-item.active .page-link {
    background-color: var(--bordeaux);
    border-color: var(--bordeaux);
    color: var(--cream);
    font-weight: 600;
}

.pagination .page-item.disabled .page-link {
    color: var(--text-muted);
    background-color: var(--beige);
}

/* === Barre de recherche === */
.input-group .form-control:focus {
    border-color: var(--bordeaux);
    box-shadow: 0 0 0 0.25rem rgba(139, 21, 56, 0.25);
    z-index: 3;
}

.input-group .btn:focus {
    z-index: 3;
}

/* === Page About === */
.value-card {
    background-color: var(--cream);
    border: 2px solid var(--beige-dark);
    border-radius: 8px;
    height: 100%;
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: var(--bordeaux-light);
    box-shadow: 0 5px 20px rgba(139, 21, 56, 0.15);
    transform: translateY(-5px);
}

.process-step {
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--bordeaux);
    color: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto;
}

.engagement-list i {
    flex-shrink: 0;
}

/* === Cookie Consent Banner === */
.cookie-consent {
    position: fixed;
    bottom: -300px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--bordeaux-dark) 0%, var(--bordeaux) 100%);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
}

.cookie-consent.show {
    bottom: 0;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
}

.cookie-text p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-consent .btn {
    white-space: nowrap;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
}

.cookie-consent .btn-success {
    background-color: white;
    color: var(--bordeaux-dark);
    border: none;
}

.cookie-consent .btn-success:hover {
    background-color: var(--cream);
    color: var(--bordeaux-dark);
    transform: none;
    box-shadow: none;
}

.cookie-consent .btn-outline-light {
    border-color: white;
    color: white;
}

.cookie-consent .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
}

/* Mobile */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-consent .btn {
        width: 100%;
    }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.animate-slideIn {
    animation: slideIn 0.3s ease forwards;
}

.animate-fadeOut {
    animation: fadeOut 0.3s ease forwards;
}

/* === PAGE DÉTAIL PRODUIT === */
.product-image-container {
    position: relative;
    background: var(--cream);
    border-radius: 12px;
    padding: 1rem;
    border: 2px solid var(--beige-dark);
    overflow: hidden;
}

.product-main-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.product-image-container:hover .product-main-image {
    transform: scale(1.02);
}

.btn-zoom {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bordeaux);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.btn-zoom:hover {
    opacity: 1;
    transform: scale(1.1);
    background: var(--bordeaux-dark);
}

.product-details {
    padding: 1rem 0;
}

.product-artist {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.product-title {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.2;
}

.product-price {
    padding: 1rem 0;
    border-top: 1px solid var(--beige-dark);
    border-bottom: 1px solid var(--beige-dark);
}

.price-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bordeaux);
}

.product-description h6 {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Sélecteur de quantité */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--beige-dark);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--beige);
    color: var(--bordeaux);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: var(--bordeaux);
    color: white;
}

.qty-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    background: white;
}

.qty-input:focus {
    outline: none;
}

/* Bouton ajout panier */
.btn-add-cart {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 21, 56, 0.35);
}

/* Garanties produit */
.product-guarantees {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--beige);
    border-radius: 8px;
    margin-top: 1.5rem;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.guarantee-item i {
    color: var(--bordeaux);
    font-size: 1.2rem;
}

/* Admin actions */
.admin-actions {
    padding: 1rem;
    background: #fff3cd;
    border-radius: 8px;
    border: 1px solid #ffc107;
}

/* === PAGE PANIER === */
.cart-header {
    border-bottom: 2px solid var(--beige-dark);
    padding-bottom: 1rem;
}

.empty-cart i {
    opacity: 0.3;
}

.cart-item {
    transition: all 0.3s ease;
    border: 1px solid var(--beige-dark);
}

.cart-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.cart-item-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px 0 0 8px;
}

.cart-item-subtotal {
    font-size: 1.1rem;
    color: var(--bordeaux);
}

/* Sélecteur quantité petit */
.quantity-selector-sm {
    display: flex;
    align-items: center;
    border: 1px solid var(--beige-dark);
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn-sm {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--beige);
    color: var(--bordeaux);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn-sm:hover {
    background: var(--bordeaux);
    color: white;
}

.qty-input-sm {
    width: 45px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    background: white;
}

.cart-summary {
    border: 2px solid var(--beige-dark);
}

.cart-summary .card-header {
    background: var(--bordeaux);
    color: white;
    border-bottom: none;
}

/* === BREADCRUMB === */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--bordeaux);
}

/* === TOAST NOTIFICATIONS === */
.toast {
    background: white;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.toast-header {
    background: var(--beige);
    border-bottom: 1px solid var(--beige-dark);
}

.toast-body {
    padding: 1rem;
    font-weight: 500;
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
    .product-title {
        font-size: 1.8rem;
    }
    
    .price-value {
        font-size: 1.6rem;
    }
    
    .product-guarantees {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .cart-item-image {
        height: 120px;
    }
    
    .quantity-form {
        flex-direction: column;
        align-items: flex-start !important;
    }
}