.hero-section {
    background: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    padding: 0;
    text-align: left;
    min-height: calc(100vh - 120px);
    position: relative;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    margin-top: 0;
}

.hero-section .btn-light {
    background: rgb(205, 43, 93);
    border: 2px solid rgb(205, 43, 93);
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(205, 43, 93, 0.3);
}

.hero-section .btn-light:hover {
    background: rgb(185, 33, 83);
    border-color: rgb(185, 33, 83);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(205, 43, 93, 0.4);
}

/* Optimisation pour écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section {
        background-image: url('../images/hero-bg.jpg');
        background-size: cover;
        background-position: center;
    }
}

/* Styles pour la distinction des packs et produits dans l'admin */
.table-info {
    background-color: #e3f2fd !important;
    border-left: 4px solid #2196f3 !important;
}

.table-light {
    background-color: #f8f9fa !important;
    border-left: 4px solid #6c757d !important;
}

.badge.fs-6 {
    font-size: 0.875rem !important;
    padding: 0.5em 0.75em;
}

.pack-indicator {
    background: linear-gradient(45deg, #2196f3, #1976d2);
    color: white;
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}

.product-indicator {
    background: linear-gradient(45deg, #6c757d, #495057);
    color: white;
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

/* Styles pour les cartes de packs groupés */
.card.border-primary {
    border-left: 4px solid #0d6efd !important;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.15);
}

.card.border-secondary {
    border-left: 4px solid #6c757d !important;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.15);
}

.card-header.bg-primary {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7) !important;
}

.card-header.bg-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
}

.pack-group-title {
    font-weight: 600;
    font-size: 1rem;
}

.pack-count-badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

/* Styles pour l'administration - Thème blanc et rose */
.admin-header {
    background: linear-gradient(135deg, #cd2b5d, #e91e63);
    box-shadow: 0 2px 10px rgba(205, 43, 93, 0.3);
}

.admin-header h1 {
    color: white !important;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Sidebar admin */
.admin-sidebar {
    background: linear-gradient(180deg, #ffffff, #f8f9fa);
    border-right: 3px solid #cd2b5d;
    box-shadow: 2px 0 10px rgba(205, 43, 93, 0.1);
}

.admin-sidebar .nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 5px 10px;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover {
    background: linear-gradient(135deg, #cd2b5d, #e91e63);
    color: white !important;
    transform: translateX(5px);
}

.admin-sidebar .nav-link.active {
    background: linear-gradient(135deg, #cd2b5d, #e91e63);
    color: white !important;
    box-shadow: 0 4px 15px rgba(205, 43, 93, 0.3);
}

/* Contenu principal admin */
.admin-content {
    background: #ffffff;
    min-height: 100vh;
}

/* Cartes admin */
.admin-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(205, 43, 93, 0.1);
    transition: all 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(205, 43, 93, 0.2);
}

.admin-card .card-header {
    background: linear-gradient(135deg, #cd2b5d, #e91e63);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    border: none;
    font-weight: 600;
}

/* Tableaux admin */
.admin-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(205, 43, 93, 0.1);
}

.admin-table thead {
    background: linear-gradient(135deg, #cd2b5d, #e91e63);
    color: white;
}

.admin-table tbody tr:hover {
    background-color: rgba(205, 43, 93, 0.05);
}

/* Boutons admin */
.btn-admin-primary {
    background: linear-gradient(135deg, #cd2b5d, #e91e63);
    border: none;
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-admin-primary:hover {
    background: linear-gradient(135deg, #b51d4d, #d81b60);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(205, 43, 93, 0.3);
}

.btn-admin-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    border: none;
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-admin-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #343a40);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

/* Badges admin */
.badge-admin-pack {
    background: linear-gradient(135deg, #cd2b5d, #e91e63);
    color: white;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(205, 43, 93, 0.3);
}

.badge-admin-product {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

/* Lignes de commande */
.table-info {
    background: linear-gradient(135deg, rgba(205, 43, 93, 0.1), rgba(233, 30, 99, 0.05)) !important;
    border-left: 4px solid #cd2b5d !important;
}

.table-light {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8), rgba(255, 255, 255, 0.9)) !important;
    border-left: 4px solid #6c757d !important;
}

/* Cartes de packs groupés - Version admin */
.card.border-primary {
    border-left: 4px solid #cd2b5d !important;
    box-shadow: 0 4px 20px rgba(205, 43, 93, 0.15);
}

.card.border-secondary {
    border-left: 4px solid #6c757d !important;
    box-shadow: 0 4px 20px rgba(108, 117, 125, 0.15);
}

.card-header.bg-primary {
    background: linear-gradient(135deg, #cd2b5d, #e91e63) !important;
}

.card-header.bg-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
}

/* Styles pour les listes déroulantes */
.form-label i.fas.fa-chevron-down {
    color: #cd2b5d;
    font-size: 0.9rem;
}

.form-control:focus {
    border-color: #cd2b5d;
    box-shadow: 0 0 0 0.2rem rgba(205, 43, 93, 0.25);
}

/* Style pour les optgroups */
optgroup {
    font-weight: 600;
    color: #cd2b5d;
    background-color: #f8f9fa;
}

optgroup option {
    font-weight: normal;
    color: #333;
    padding: 8px 12px;
}

/* Amélioration visuelle des sélecteurs */
select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23cd2b5d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    padding-right: 40px;
}

.hero-section h1 {
    font-size: 3rem;
    margin-top: 60px;
    margin-bottom: 20px;
    color: rgb(205, 43, 93);
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgb(205, 43, 93);
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.7);
    font-weight: 500;
    line-height: 1.6;
}

.card {
    transition: transform 0.3s;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

footer {
    margin-top: 50px;
}

.btn-primary {
    background-color: #333;
    border-color: #333;
}

.btn-primary:hover {
    background-color: #555;
    border-color: #555;
}

.btn-outline-dark:hover {
    background-color: #333;
    color: white;
}

/* Bouton rose pour la cohérence visuelle */
.btn-outline-rose {
    color: rgb(205, 43, 93);
    border-color: rgb(205, 43, 93);
    background-color: transparent;
}

.btn-outline-rose:hover {
    background-color: rgb(205, 43, 93);
    border-color: rgb(205, 43, 93);
    color: white;
}

.categorie-card-img {
    height: 500px;
    object-fit: cover;
    width: 100%;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.nos-categories-title {
    margin-top: 0px !important;
    position: relative;
  top: -10px;
}

body, h1, h2, h3, h4, h5, h6, .btn, .nav, .card, .form-label, .form-control {
    font-family: Cambria, 'Times New Roman', Times, serif;
}

/* Style du titre "Nos Catégories" identique à la bannière */
.category-title {
    color: rgb(205, 43, 93) !important;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 2.5rem;
}

/* Styles pour les cartes de catégories */
.category-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-content {
    padding: 20px;
}

.category-content h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
    font-weight: 400;
} 