/* === 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;
    font-size: 16px;
    line-height: 1.6;
}

/* Liens généraux */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* === Typographie responsive === */
/* Mobile (base) */
h1 {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 0.875rem;
}

h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.125rem;
    line-height: 1.4;
}

p, .lead {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Tablette */
@media (min-width: 768px) {
    h1 {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    h3 {
        font-size: 1.5rem;
        margin-bottom: 0.875rem;
    }
}

/* Desktop */
@media (min-width: 992px) {
    h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    h2 {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }
    
    h3 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    h4 {
        font-size: 1.5rem;
    }
}

/* === Boutons responsive === */
.btn {
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

@media (max-width: 767px) {
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1.0625rem;
    }
}

/* === Formulaires responsive === */
.form-control, .form-select {
    font-size: 1rem;
    padding: 0.625rem 0.875rem;
    border-radius: 0.375rem;
}

.form-label {
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

@media (max-width: 767px) {
    .form-control, .form-select {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .form-label {
        font-size: 1rem;
    }
}

/* === 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 réduit */
@media (min-width: 992px) {
    .navbar {
        height: 65px !important;
        min-height: 65px !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: 2px 0;
    }

    .navbar-logo {
        height: 90px;
        width: auto;
        transition: transform 0.3s ease;
        object-fit: contain;
    }

    body {
        padding-top: 65px;
    }

    .navbar-nav.mx-auto {
        position: absolute;
        left: 45%;
        transform: translateX(-50%);
    }
}

/* Mobile - navbar plus compact */
@media (max-width: 991px) {
    .navbar {
        min-height: 56px;
        padding: 0.25rem 0 !important;
    }

    .navbar-logo {
        height: 70px;
    }

    body {
        padding-top: 56px;
    }

    .navbar-nav.mx-auto {
        position: static;
        transform: none;
    }

    /* Icônes mobiles */
    .mobile-icons {
        gap: 0.5rem;
    }

    .mobile-icons .btn-link {
        position: relative;
        padding: 0.5rem;
    }

    .mobile-icons .badge {
        font-size: 0.65rem;
        padding: 0.2em 0.4em;
        border-radius: 50%;
        min-width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* 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;
    font-size: 1.25rem;
    padding: 0.75rem 1rem;
}

/* Desktop: Taille normale */
@media (min-width: 992px) {
    .nav-link {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

.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;
}

/* Ic\u00f4nes Bootstrap - plus grandes sur mobile */
.bi {
    font-size: 1.5rem;
}

/* Desktop: Taille normale */
@media (min-width: 992px) {\n    .bi {\n        font-size: 1rem;\n    }\n}

.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;
}

/* Cartes de formulaire (login, register) */
.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

/* Desktop: Padding normal */
@media (min-width: 992px) {
    .card-body {
        padding: 1.5rem;
    }
    
    .card-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}

.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.5rem;
    font-weight: bold;
}

/* Titre des cartes plus grand sur mobile */
.card-title {
    font-size: 1.35rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.card-text {
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Desktop: Réduction */
@media (min-width: 992px) {
    .price-tag {
        font-size: 1.1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-text {
        font-size: 0.95rem;
    }
}

/* === 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: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--bordeaux);
    color: white;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Desktop: Bouton plus petit */
@media (min-width: 992px) {
    .btn-quick-add {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

.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);
}

/* Badges Vendu / Réservé */
.sold-badge,
.reserved-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.sold-badge {
    background-color: #28a745;
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.4);
}

.reserved-badge {
    background-color: var(--bordeaux);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 21, 56, 0.4);
}

.reserved-badge.reserved-other {
    background-color: #6c757d;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.4);
}

/* É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;
    padding: 80px 20px;
    position: relative;
    margin-top: -65px;
    padding-top: 145px;
}

@media (max-width: 991px) {
    .hero-section {
        margin-top: -56px;
        padding-top: 136px;
    }
}

.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%;
    font-size: 1.125rem;
}

/* Desktop: Taille normale */
@media (min-width: 992px) {
    .feature-box {
        font-size: 1rem;
        padding: 1.5rem;
    }
}

.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;
    font-size: 1.125rem;
}

.footer-custom a {
    font-size: 1.125rem;
}

.footer-custom p {
    font-size: 1.125rem;
}

/* Desktop: Tailles normales */
@media (min-width: 992px) {
    .footer-custom small,
    .footer-custom a,
    .footer-custom p {
        font-size: 0.95rem;
    }
}

/* 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;
}

/* Liens dans les formulaires */
a.text-muted {
    font-size: 1.125rem;
    text-decoration: none;
}

a.text-muted:hover {
    color: var(--bordeaux) !important;
    text-decoration: underline;
}

/* .small dans les formulaires */
.small, small {
    font-size: 1.125rem;
}

/* Desktop: Tailles normales */
@media (min-width: 992px) {
    a.text-muted, .small, small {
        font-size: 0.875rem;
    }
}

/* === 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);
    font-size: 1.125rem;
}

/* Desktop: Taille normale */
@media (min-width: 992px) {
    .table {
        font-size: 1rem;
    }
}

.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;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

/* Desktop: Taille normale */
@media (min-width: 992px) {
    .form-label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
}

/* === 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);
}

/* D-grid gap pour les boutons */
.d-grid {
    gap: 0.75rem;
}

/* Desktop: Gap normal */
@media (min-width: 992px) {
    .d-grid {
        gap: 0.5rem;
    }
}

/* === Pages d'authentification === */
/* Mobile First - Utiliser toute la largeur disponible */
.auth-container {
    min-height: calc(100vh - 56px);
    width: 100%;
    padding: 0;
}

.auth-card {
    background: white;
    width: 100%;
    padding: 1rem;
    border-radius: 0;
    box-shadow: none;
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.auth-card .form-group {
    margin-bottom: 0.875rem;
}

.auth-card .form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.auth-card .form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    border: 2px solid var(--beige-dark);
    border-radius: 8px;
    background: white;
    transition: all 0.2s ease;
}

.auth-card .form-control:focus {
    border-color: var(--bordeaux);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(139, 21, 56, 0.1);
}

.auth-card .btn {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
}

.auth-card .btn-primary {
    background: var(--bordeaux);
    border-color: var(--bordeaux);
}

.auth-card .divider {
    text-align: center;
    margin: 1rem 0;
    position: relative;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-card .divider::before,
.auth-card .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: var(--beige-dark);
}

.auth-card .divider::before {
    left: 0;
}

.auth-card .divider::after {
    right: 0;
}

.auth-card .auth-footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.auth-card .auth-footer a {
    font-weight: 600;
    color: var(--bordeaux);
    text-decoration: none;
}

.auth-card .auth-footer a:hover {
    text-decoration: underline;
}

/* Bouton afficher/masquer mot de passe - position absolute à droite */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-control {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--bordeaux);
}

.password-toggle i {
    font-size: 1.1rem;
}

/* Tablette - Ajouter max-width et centrage */
@media (min-width: 768px) {
    .auth-container {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem;
    }
    
    .auth-card {
        max-width: 480px;
        min-height: auto;
        padding: 2.5rem 2rem;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }
    
    .auth-card h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .auth-card .form-group {
        margin-bottom: 1.5rem;
    }
}

/* Desktop - Augmenter légèrement la largeur */
@media (min-width: 992px) {
    .auth-card {
        max-width: 520px;
        padding: 3rem 2.5rem;
    }
    
    .auth-card h1 {
        font-size: 2.25rem;
    }
}

/* === 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 {
    min-height: 52px;
    font-size: 1.25rem;
}

.input-group .btn:focus {
    z-index: 3;
}

/* Desktop: Taille normale pour les boutons input-group */
@media (min-width: 992px) {
    .input-group .btn {
        min-height: auto;
        font-size: 1rem;
    }
}

/* === 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;
    font-size: 1.125rem;
}

.breadcrumb-item a {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.breadcrumb-item.active {
    color: var(--bordeaux);
    font-size: 1.125rem;
}

/* Desktop: Taille normale */
@media (min-width: 992px) {
    .breadcrumb,
    .breadcrumb-item a,
    .breadcrumb-item.active {
        font-size: 0.95rem;
    }
}

/* === 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 === */

/* Tablettes et petits écrans */
@media (max-width: 991px) {
    .product-title {
        font-size: 1.8rem;
    }
    
    .price-value {
        font-size: 1.6rem;
    }
    
    .product-guarantees {
        justify-content: center;
    }
    
    /* Augmenter la taille du texte général */
    body {
        font-size: 1rem;
    }
    
    /* Cartes produits */
    .card-title {
        font-size: 1.1rem;
    }
    
    .price-tag {
        font-size: 1.2rem;
    }
    
    /* Hero section */
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.2rem;
    }
    
    /* Boutons plus grands */
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
    
    .btn-quick-add {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Texte lisible mais pas excessif */
    body {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Container avec padding raisonnable */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    main.container {
        padding-top: 5rem;
        padding-bottom: 1rem;
    }
    
    /* Barre de recherche mobile - pleine largeur */
    .col-md-6.mx-auto {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .col-md-6 .input-group {
        flex-wrap: nowrap;
    }
    
    .col-md-6 .input-group .form-control {
        flex: 1;
        min-width: 0;
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
        border: 2px solid var(--beige-dark);
        background: white;
    }
    
    .col-md-6 .input-group .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    /* Cacher le texte "Rechercher" sur mobile */
    .col-md-6 .input-group .btn .bi-search + span,
    .col-md-6 .input-group .btn:not(.btn-outline-secondary) {
        font-size: 0;
    }
    
    .col-md-6 .input-group .btn .bi-search {
        font-size: 1rem;
    }
    
    /* Cartes produits en 2 colonnes sur mobile */
    .col-md-4, .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }
    
    .card {
        margin-bottom: 0.75rem;
    }
    
    .card-body {
        padding: 0.5rem;
    }
    
    .card-title {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
        font-weight: 600;
        line-height: 1.2;
    }
    
    .card-text {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }
    
    .card-text.small {
        font-size: 0.7rem;
    }
    
    .img-container {
        height: 140px;
    }
    
    .price-tag {
        font-size: 0.9rem;
    }
    
    /* Formulaires */
    .form-control, .form-select {
        font-size: 1rem;
        padding: 0.65rem 0.85rem;
        min-height: 44px;
    }
    
    /* Champ de recherche avec bordure visible */
    .input-group .form-control {
        border: 2px solid var(--beige-dark) !important;
        background-color: #fff;
    }
    
    .input-group-text {
        font-size: 1rem;
        padding: 0.65rem;
    }
    
    /* Labels */
    .form-label {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }
    
    /* Boutons tactiles */
    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 1rem;
        min-height: 44px;
        font-weight: 600;
    }
    
    .btn-quick-add {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        bottom: 5px;
        right: 5px;
    }
    
    .quick-add-form {
        bottom: 5px;
        right: 5px;
    }
    
    /* Prix plus visible */
    .price-tag {
        font-size: 1.6rem;
        font-weight: 700;
    }
    
    /* Hero section */
    .hero-section {
        min-height: 70vh;
        padding: 60px 20px;
        background-attachment: scroll !important;
        width: 100%;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 1.4rem;
    }
    
    /* Page détail produit */
    .product-title {
        font-size: 2.2rem;
        margin-bottom: 1.25rem;
        font-weight: 700;
    }
    
    .price-value {
        font-size: 2.4rem;
        font-weight: 800;
    }
    
    .product-main-image {
        max-height: 400px;
        margin-bottom: 1.5rem;
    }
    
    .product-description {
        font-size: 1.25rem;
        line-height: 1.8;
    }
    
    .product-info-item {
        font-size: 1.2rem;
    }
    
    /* Panier */
    .cart-item {
        padding: 1.25rem;
    }
    
    .cart-item-image {
        height: 120px;
        width: 120px;
        margin-right: 1.25rem;
    }
    
    .cart-item-title {
        font-size: 1.4rem;
        font-weight: 600;
    }
    
    .cart-item-price {
        font-size: 1.6rem;
        font-weight: 700;
    }
    
    /* Quantité */
    .qty-input {
        width: 70px;
        height: 50px;
        font-size: 1.4rem;
        font-weight: 600;
    }
    
    .btn-qty {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    /* Footer */
    .footer-custom {
        padding: 2rem 0;
        font-size: 1.15rem;
    }
    
    .footer-title {
        font-size: 1.6rem;
    }
    
    .footer-subtitle {
        font-size: 1.4rem;
    }
    
    .footer-links a {
        font-size: 1.15rem;
    }
    
    /* Tables responsive */
    .table {
        font-size: 1.2rem;
    }
    
    /* Badges */
    .badge {
        font-size: 1.1rem;
        padding: 0.5em 0.8em;
    }
    
    /* Alerts */
    .alert {
        font-size: 1.25rem;
        padding: 1.25rem;
    }
    
    /* Offcanvas panier */
    .offcanvas-title {
        font-size: 1.75rem;
    }
    
    .offcanvas-body {
        font-size: 1.125rem;
    }
    
    .offcanvas-body .btn {
        font-size: 1.125rem;
        min-height: 52px;
    }
}

/* Petits mobiles */
@media (max-width: 576px) {
    body {
        font-size: 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
        font-weight: 700;
    }
    
    h2 {
        font-size: 1.35rem;
    }
    
    /* Padding supérieur augmenté pour que le titre soit visible */
    main.container {
        padding-top: 5.5rem;
    }
    
    /* Barre de recherche - correction affichage */
    .col-md-6.mx-auto {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .col-md-6 .input-group {
        flex-wrap: nowrap !important;
        display: flex !important;
    }
    
    .col-md-6 .input-group .form-control {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        border: 2px solid var(--beige-dark) !important;
        background: white !important;
        font-size: 0.85rem;
        padding: 0.5rem;
    }
    
    .col-md-6 .input-group .btn {
        flex: 0 0 auto !important;
        width: auto !important;
        padding: 0.5rem 0.75rem;
    }
    
    /* Garder 2 colonnes sur petits mobiles aussi */
    .col-md-4, .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    
    .card {
        margin-bottom: 0.5rem;
    }
    
    .card-body {
        padding: 0.4rem;
    }
    
    .img-container {
        height: 120px;
    }
    
    .card-title {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .card-text {
        font-size: 0.7rem;
    }
    
    .price-tag {
        font-size: 0.85rem;
    }
    
    /* Boutons adaptés */
    .btn-block-mobile {
        width: 100%;
        display: block;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
        min-height: 42px;
    }
    
    .d-grid {
        gap: 0.75rem;
    }
    
    /* Navigation breadcrumb */
    .breadcrumb {
        font-size: 1.1rem;
    }
    
    /* Hero */
    .hero-section {
        background-attachment: scroll !important;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1.3rem;
    }
    
    /* Panier */
    .cart-item {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .cart-item-image {
        height: 150px;
        width: 100%;
        max-width: 200px;
        margin: 0 auto 1rem;
    }
    
    .quantity-form {
        flex-direction: column;
        align-items: flex-start !important;
        width: 100%;
    }
    
    .quantity-controls {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.75rem;
    }
    
    /* Prix dans le panier */
    .cart-summary {
        margin-top: 1.5rem;
    }
    
    .cart-summary h4 {
        font-size: 1.3rem;
    }
    
    .cart-summary .h3 {
        font-size: 1.6rem;
    }
    
    /* Modal */
    .modal-title {
        font-size: 1.2rem;
    }
    
    .modal-body {
        font-size: 1.25rem;
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.75rem;
    }
    
    .modal-footer .btn {
        min-height: 52px;
        font-size: 1.125rem;
    }
    
    /* Desktop: Tailles normales */
    @media (min-width: 992px) {
        .modal-body {
            font-size: 1rem;
            padding: 1rem;
        }
        
        .modal-title {
            font-size: 1.25rem;
        }
        
        .modal-footer .btn {
            min-height: auto;
            font-size: 1rem;
        }
    }
    
    /* Navbar toggle */
    .navbar-toggler {
        padding: 0.5rem 0.75rem;
        font-size: 1.5rem;
    }
    
    /* Forms en pleine largeur */
    .form-control,
    .form-select,
    .btn {
        width: 100%;
    }
    
    /* Recherche */
    .input-group {
        flex-wrap: nowrap;
    }
    
    .input-group .btn {
        white-space: nowrap;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}