/* Styles pour la navbar */
.navbar {
    background-color: #000 !important;
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
}

.navbar-brand-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.navbar-brand {
    display: block;
}

.navbar-brand img {
    max-height: 70px;
    width: auto;
}

/* Styles pour le menu hamburger sur tous les appareils */
.navbar-toggler {
    z-index: 1001;
    margin-left: 1rem;
    display: block !important; /* Toujours afficher le bouton hamburger */
}

#navbarNav {
    z-index: 999;
    width: 100%;
}

.navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #000;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-nav {
    padding-top: 1rem;
}

.nav-item {
    text-align: center;
}

/* Cacher le menu par défaut et l'afficher uniquement lorsqu'il est ouvert */
.navbar-collapse:not(.show) {
    display: none !important;
}

/* Ajustement pour s'assurer que le contenu principal commence après la navbar */
main {
    padding-top: 20px;
    margin-top: 0;
}

/* Styles existants pour les produits */
.product-image-container {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    cursor: pointer;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Styles existants pour le panier */
.cart-item-image {
    max-width: 100px;
    height: auto;
}

/* Styles existants pour l'overlay en plein écran */
.fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Media queries pour les ajustements responsives */
@media (max-width: 767px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .card {
        margin-bottom: 20px;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Styles existants pour le glisser-déposer */
.form-control-file {
    border: 2px dashed #ccc;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
}

.form-control-file.highlight {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.text-muted {
    color: #6c757d !important;
}

@media (max-width: 576px) {
    .table-responsive {
        font-size: 0.8rem;
    }

    .table-responsive th,
    .table-responsive td {
        padding: 0.3rem;
    }

    .form-control {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
}

@keyframes blink {
    0% { background-color: rgba(255, 255, 255, 0.5); }
    50% { background-color: rgba(255, 255, 255, 1); }
    100% { background-color: rgba(255, 255, 255, 0.5); }
}

.navbar-toggler.blink-icon {
    animation: blink 1s infinite;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
    color: #fff !important;
}

.navbar-nav .nav-link:hover {
    color: #007bff !important;
}