* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
    width: 100%;
    overflow-x: hidden;
}

/* HEADER */
header {
    background-color: #ff9900;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.search-bar {
    flex: 1;
    max-width: 600px;
    display: flex;
}

.search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-bar button {
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.account-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
}

.cart {
    color: white;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* NAVIGATION */
nav {
    background-color: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    gap: 15px;
    overflow-x: auto;
}

.nav-item {
    padding: 10px 15px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.nav-item:hover {
    background-color: #f0f0f0;
}

.nav-item.active {
    background-color: #ff9900;
    color: white;
    font-weight: bold;
}

/* HERO SECTION */
#hero {
    padding: 0;
    margin: 0;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-banner {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    animation: revealImageBackground 6s ease-in-out infinite;
}

/* Animation pour révéler l'image en arrière-plan - Synchronisée avec la disparition du texte */
@keyframes revealImageBackground {
    0%, 100% {
        opacity: 0.85;
        filter: brightness(0.7) contrast(0.9);
        -webkit-filter: brightness(0.7) contrast(0.9);
    }
    25% {
        opacity: 0.9;
        filter: brightness(0.8) contrast(0.95);
        -webkit-filter: brightness(0.8) contrast(0.95);
    }
    50% {
        opacity: 1;
        filter: brightness(1) contrast(1);
        -webkit-filter: brightness(1) contrast(1);
    }
    75% {
        opacity: 0.9;
        filter: brightness(0.8) contrast(0.95);
        -webkit-filter: brightness(0.8) contrast(0.95);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    pointer-events: none;
}

.hero-content-overlay {
    max-width: 600px;
    width: 100%;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    padding: 30px 35px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 153, 0, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 153, 0, 0.2);
    margin: 0 auto;
    animation: revealImageNormal 6s ease-in-out infinite;
}

.hero-content-overlay h1 {
    font-size: 42px;
    color: white;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    animation: revealTextFadeNormal 6s ease-in-out infinite;
}

.hero-content-overlay p {
    font-size: 18px;
    color: white;
    margin-bottom: 20px;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    animation: revealTextFadeNormal 6s ease-in-out infinite;
}

/* Animation pour la bannière normale (pub1.png) */
@keyframes revealImageNormal {
    0%, 100% {
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-color: rgba(255, 153, 0, 0.5);
        opacity: 1;
    }
    25% {
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border-color: rgba(255, 153, 0, 0.3);
        opacity: 0.9;
    }
    50% {
        background: rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
        border-color: rgba(255, 153, 0, 0.05);
        opacity: 0.3;
    }
    75% {
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border-color: rgba(255, 153, 0, 0.3);
        opacity: 0.9;
    }
}

/* Animation du texte pour la bannière normale */
@keyframes revealTextFadeNormal {
    0%, 100% {
        opacity: 1;
        filter: blur(0px);
        -webkit-filter: blur(0px);
        text-shadow: 3px 3px 8px rgba(0,0,0,0.9), 0 0 30px rgba(0,0,0,0.6);
    }
    25% {
        opacity: 0.6;
        filter: blur(2px);
        -webkit-filter: blur(2px);
        text-shadow: 2px 2px 6px rgba(0,0,0,0.7), 0 0 20px rgba(0,0,0,0.4);
    }
    50% {
        opacity: 0;
        filter: blur(8px);
        -webkit-filter: blur(8px);
        text-shadow: 1px 1px 4px rgba(0,0,0,0.5), 0 0 10px rgba(0,0,0,0.2);
    }
    75% {
        opacity: 0.6;
        filter: blur(2px);
        -webkit-filter: blur(2px);
        text-shadow: 2px 2px 6px rgba(0,0,0,0.7), 0 0 20px rgba(0,0,0,0.4);
    }
}

/* Styles spécifiques pour Black Friday - Design élégant et intégré */
.hero-banner.black-friday-active .hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.1) 100%);
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.hero-banner.black-friday-active .hero-content-overlay {
    text-align: center;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.5);
    padding: 30px 35px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.2);
    animation: revealImage 6s ease-in-out infinite;
}

/* Animation pour révéler l'image derrière la carte - Synchronisée avec la disparition du texte */
@keyframes revealImage {
    0%, 100% {
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-color: rgba(212, 175, 55, 0.5);
        opacity: 1;
    }
    25% {
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border-color: rgba(212, 175, 55, 0.3);
        opacity: 0.9;
    }
    50% {
        background: rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
        border-color: rgba(212, 175, 55, 0.05);
        opacity: 0.3;
    }
    75% {
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border-color: rgba(212, 175, 55, 0.3);
        opacity: 0.9;
    }
}

/* Animation du texte pour qu'il devienne flou et disparaisse complètement */
.hero-banner.black-friday-active .hero-content-overlay h1,
.hero-banner.black-friday-active .hero-content-overlay p {
    animation: revealTextFade 6s ease-in-out infinite;
}

@keyframes revealTextFade {
    0%, 100% {
        opacity: 1;
        filter: blur(0px);
        -webkit-filter: blur(0px);
        text-shadow: 3px 3px 8px rgba(0,0,0,0.9), 0 0 30px rgba(0,0,0,0.6);
    }
    25% {
        opacity: 0.6;
        filter: blur(2px);
        -webkit-filter: blur(2px);
        text-shadow: 2px 2px 6px rgba(0,0,0,0.7), 0 0 20px rgba(0,0,0,0.4);
    }
    50% {
        opacity: 0;
        filter: blur(8px);
        -webkit-filter: blur(8px);
        text-shadow: 1px 1px 4px rgba(0,0,0,0.5), 0 0 10px rgba(0,0,0,0.2);
    }
    75% {
        opacity: 0.6;
        filter: blur(2px);
        -webkit-filter: blur(2px);
        text-shadow: 2px 2px 6px rgba(0,0,0,0.7), 0 0 20px rgba(0,0,0,0.4);
    }
}

.hero-banner.black-friday-active .hero-content-overlay h1 {
    font-size: 38px !important;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.9), 0 0 30px rgba(0,0,0,0.6) !important;
    margin-bottom: 15px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.hero-banner.black-friday-active .hero-content-overlay p {
    font-size: 17px !important;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.6) !important;
    margin-bottom: 0 !important;
    line-height: 1.6;
    color: #f5f5f5 !important;
}

.hero-banner.black-friday-active .promo-badge {
    display: none !important;
}

/* Responsive Hero - Tablette */
@media (max-width: 1024px) {
    .hero-content-overlay {
        max-width: 550px;
        padding: 25px 30px;
    }
    
    .hero-content-overlay h1 {
        font-size: 32px;
    }
    
    .hero-content-overlay p {
    font-size: 16px;
    }
    
    .hero-banner.black-friday-active .hero-content-overlay {
        max-width: 550px;
        padding: 25px 30px;
    }
    
    .hero-banner.black-friday-active .hero-content-overlay h1 {
        font-size: 32px !important;
    }
    
    .hero-banner.black-friday-active .hero-content-overlay p {
        font-size: 16px !important;
    }
}

/* Responsive Hero - Mobile */
@media (max-width: 768px) {
    .hero-overlay {
        padding: 30px 20px;
    }
    
    .hero-content-overlay {
        max-width: 100%;
        padding: 25px 20px;
        border-radius: 12px;
        border-width: 1.5px;
    }
    
    .hero-content-overlay h1 {
        font-size: 26px;
        margin-bottom: 12px;
        letter-spacing: 0.3px;
    }
    
    .hero-content-overlay p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .hero-banner.black-friday-active .hero-overlay {
        padding: 30px 20px;
    }
    
    .hero-banner.black-friday-active .hero-content-overlay {
        max-width: 100%;
        padding: 25px 20px;
        border-radius: 12px;
        border-width: 1.5px;
    }
    
    .hero-banner.black-friday-active .hero-content-overlay h1 {
        font-size: 26px !important;
        margin-bottom: 12px !important;
        letter-spacing: 0.3px;
    }
    
    .hero-banner.black-friday-active .hero-content-overlay p {
        font-size: 14px !important;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .hero-overlay {
        padding: 25px 15px;
    }
    
    .hero-content-overlay {
        padding: 20px 18px;
        border-radius: 10px;
    }
    
    .hero-content-overlay h1 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .hero-content-overlay p {
        font-size: 13px;
    }
    
    .hero-banner.black-friday-active .hero-overlay {
        padding: 25px 15px;
    }
    
    .hero-banner.black-friday-active .hero-content-overlay {
        padding: 20px 18px;
        border-radius: 10px;
    }
    
    .hero-banner.black-friday-active .hero-content-overlay h1 {
        font-size: 22px !important;
        margin-bottom: 10px !important;
    }
    
    .hero-banner.black-friday-active .hero-content-overlay p {
        font-size: 13px !important;
    }
}

.hero-content-overlay h1 {
    font-size: 42px;
    color: white;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    animation: revealTextFadeNormal 6s ease-in-out infinite;
}

.hero-content-overlay p {
    font-size: 18px;
    color: white;
    margin-bottom: 20px;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    animation: revealTextFadeNormal 6s ease-in-out infinite;
}

/* Animation pour la bannière normale (pub1.png) */
@keyframes revealImageNormal {
    0%, 100% {
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-color: rgba(255, 153, 0, 0.5);
        opacity: 1;
    }
    25% {
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border-color: rgba(255, 153, 0, 0.3);
        opacity: 0.9;
    }
    50% {
        background: rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
        border-color: rgba(255, 153, 0, 0.05);
        opacity: 0.3;
    }
    75% {
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border-color: rgba(255, 153, 0, 0.3);
        opacity: 0.9;
    }
}

/* Animation du texte pour la bannière normale */
@keyframes revealTextFadeNormal {
    0%, 100% {
        opacity: 1;
        filter: blur(0px);
        -webkit-filter: blur(0px);
        text-shadow: 3px 3px 8px rgba(0,0,0,0.9), 0 0 30px rgba(0,0,0,0.6);
    }
    25% {
        opacity: 0.6;
        filter: blur(2px);
        -webkit-filter: blur(2px);
        text-shadow: 2px 2px 6px rgba(0,0,0,0.7), 0 0 20px rgba(0,0,0,0.4);
    }
    50% {
        opacity: 0;
        filter: blur(8px);
        -webkit-filter: blur(8px);
        text-shadow: 1px 1px 4px rgba(0,0,0,0.5), 0 0 10px rgba(0,0,0,0.2);
    }
    75% {
        opacity: 0.6;
        filter: blur(2px);
        -webkit-filter: blur(2px);
        text-shadow: 2px 2px 6px rgba(0,0,0,0.7), 0 0 20px rgba(0,0,0,0.4);
    }
}

.promo-badge {
    display: inline-block;
    background-color: #ff9900;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    text-shadow: none;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .hero-banner {
        min-height: 300px;
    }
    
    .hero-content-overlay h1 {
        font-size: 28px;
    }
    
    .hero-content-overlay p {
        font-size: 16px;
    }
    
    .hero-overlay {
        padding: 20px 15px;
    }
}

/* PRODUCTS SECTION */
#products {
    padding: 40px 20px;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

#products h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-category {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.current-price {
    font-size: 20px;
    font-weight: bold;
    color: #ff9900;
}

.old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    background-color: #ff3333;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.stars {
    color: #ff9900;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-add-cart,
.btn-details {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-add-cart {
    background-color: #ff9900;
    color: white;
}

.btn-add-cart:hover {
    background-color: #ff6600;
}

.btn-details {
    background-color: #333;
    color: white;
}

.btn-details:hover {
    background-color: #555;
}

.btn-add-cart:active,
.btn-details:active {
    transform: scale(0.98);
}

/* FILTERS SECTION */
.filters {
    padding: 20px;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.filters label {
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

.filters select,
.filters input[type="number"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filters select {
    min-width: 150px;
}

.filters input[type="number"] {
    width: 100px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ADMIN PANEL */
.admin-panel {
    display: none; /* Caché par défaut */
    padding: 40px 20px;
    max-width: 100%;
    margin: 0 auto;
    background-color: #f8f8f8;
    border-top: 2px solid #ff9900;
    width: 100%;
}

.admin-panel.visible {
    display: block;
}

.admin-link {
    color: #fff8e1;
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
    margin-left: 10px;
    opacity: 0.9;
    display: none; /* Caché par défaut, affiché seulement si l'utilisateur est authentifié */
}

.admin-link:hover {
    text-decoration: underline;
    opacity: 1;
}

/* Bouton de déconnexion client */
.btn-logout-small {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s;
    font-family: Arial, sans-serif;
}

.btn-logout-small:hover {
    background-color: #e0e0e0;
}

#account-link {
    color: #fff8e1;
    text-decoration: none;
    font-size: 12px;
    margin-left: 10px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

#account-link:hover {
    text-decoration: underline;
    opacity: 1;
}

#my-orders-link {
    color: #fff8e1;
    text-decoration: none;
    font-size: 12px;
    margin-left: 10px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

#my-orders-link:hover {
    text-decoration: underline;
    opacity: 1;
}

/* MES COMMANDES - Page client */
.my-order-item {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.my-order-header {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.my-order-header strong {
    color: #ff9900;
    font-size: 18px;
}

.my-order-details-btn {
    background-color: #ff9900;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.my-order-details-btn:hover {
    background-color: #e68900;
}

.my-order-items-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.my-order-items-list li {
    padding: 10px;
    background-color: #f8f8f8;
    margin-bottom: 5px;
    border-radius: 4px;
    border-left: 3px solid #ff9900;
}

.admin-panel h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.admin-form {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.form-group label .required {
    color: #ff3333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff9900;
}

.submit-btn {
    background-color: #ff9900;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #ff6600;
}

.submit-btn:active {
    transform: scale(0.98);
}

/* MEDIA QUERIES - RESPONSIVE */
@media (max-width: 768px) {
    /* HEADER - Mobile */
    header {
        flex-wrap: wrap;
        padding: 12px 15px;
        gap: 12px;
    }

    .logo {
        font-size: 20px;
    }

    .search-bar {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
        margin-top: 5px;
    }

    .header-right {
        gap: 12px;
        font-size: 12px;
    }

    .account-link,
    .cart {
        font-size: 12px;
    }

    /* NAVIGATION - Mobile */
    nav {
        padding: 8px 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    nav::-webkit-scrollbar {
        height: 4px;
    }

    .nav-item {
        padding: 8px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* HERO - Mobile */
    #hero {
        flex-direction: column;
        padding: 30px 15px;
        gap: 20px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .hero-visual {
        max-width: 100%;
        height: 150px;
    }

    .hero-visual h2 {
        font-size: 24px;
        letter-spacing: 1px;
    }

    /* FILTERS - Mobile */
    .filters {
        padding: 15px;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }

    .filters select,
    .filters input[type="number"] {
        width: 100%;
    }

    /* PRODUCTS - Mobile */
    #products {
        padding: 20px 10px;
    }

    #products h2 {
        font-size: 22px;
        margin-bottom: 15px;
        padding: 0 5px;
    }

    /* Grille produits vedette ET savons & douche */
    .products-grid,
    #products-grid,
    #savons-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 5px !important;
    }

    .product-card {
        padding: 10px;
        border-radius: 6px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    }

    .product-card:hover {
        transform: none;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }

    .product-image {
        height: 140px;
        margin-bottom: 10px;
        border-radius: 4px;
    }

    .product-category {
        font-size: 10px;
        margin-bottom: 4px;
        display: none; /* Masquer la catégorie sur mobile pour plus de compacité */
    }

    .product-name {
        font-size: 13px;
        margin-bottom: 8px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 32px;
    }

    .product-price {
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 8px;
        align-items: baseline;
    }

    .current-price {
        font-size: 16px;
        font-weight: bold;
        color: #ff9900;
    }

    .old-price {
        font-size: 11px;
    }

    .discount-badge {
        font-size: 11px;
        padding: 3px 6px;
        background-color: #ff9900;
        color: white;
        border-radius: 3px;
        font-weight: bold;
    }

    .product-rating {
        font-size: 11px;
        margin-bottom: 8px;
        display: none; /* Masquer la note sur mobile pour plus de compacité */
    }

    .product-actions {
        flex-direction: column;
        gap: 6px;
    }

    .btn-add-cart,
    .btn-details {
        width: 100%;
        padding: 8px;
        font-size: 12px;
        border-radius: 4px;
    }

    .product-stock-badge {
        font-size: 10px;
        padding: 3px 6px;
    }

    /* ADMIN PANEL - Mobile */
    .admin-panel {
        padding: 30px 15px;
    }

    .admin-panel h2 {
        font-size: 20px;
    }

    .admin-form {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .submit-btn {
        width: 100%;
        padding: 14px;
    }

    /* SAVONS HIGHLIGHT - Mobile */
    .savons-highlight {
        padding: 20px 10px;
    }

    .savons-highlight-header {
        padding: 0 5px;
        margin-bottom: 15px;
    }

    .savons-highlight-header h2 {
        font-size: 20px;
    }

    /* Les styles pour #savons-products-grid sont déjà appliqués via .products-grid ci-dessus */
    /* Pas besoin de dupliquer, les styles .products-grid s'appliquent automatiquement */

    /* PRODUCT DETAIL PAGE - Mobile */
    #product-detail {
        padding: 20px 10px !important;
        max-width: 100% !important;
    }

    #product-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        grid-template-columns: 1fr !important;
    }

    #product-image-container {
        width: 100% !important;
        aspect-ratio: 1 !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        background-color: #f8f8f8 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }

    #product-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    #product-info {
        width: 100% !important;
        padding: 0 5px !important;
    }

    #product-category {
        font-size: 11px !important;
        margin-bottom: 8px !important;
    }

    #product-name {
        font-size: 24px !important;
        margin-bottom: 15px !important;
        line-height: 1.3 !important;
    }

    #product-price-section {
        margin-bottom: 15px !important;
    }

    #product-price {
        font-size: 28px !important;
    }

    #product-old-price {
        font-size: 16px !important;
    }

    #product-discount {
        font-size: 12px !important;
        padding: 3px 6px !important;
    }

    #product-rating-section {
        margin-bottom: 20px !important;
    }

    #product-stars {
        font-size: 18px !important;
    }

    #product-rating-text {
        font-size: 14px !important;
    }

    #product-description-section {
        margin-bottom: 20px !important;
    }

    #product-description-section h2 {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }

    #product-description {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    #add-to-cart-btn {
        padding: 14px 30px !important;
        font-size: 16px !important;
        width: 100% !important;
        border-radius: 8px !important;
    }

    #similar-products-btn {
        padding: 10px 15px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
    }
}

@media (max-width: 480px) {
    /* HEADER - Très petit mobile */
    .logo {
        font-size: 18px;
    }

    .search-bar input {
        font-size: 13px;
        padding: 8px 12px;
    }

    .search-bar button {
        padding: 8px 15px;
        font-size: 12px;
    }

    /* HERO - Très petit mobile */
    .hero-content h1 {
        font-size: 24px;
    }

    .hero-visual h2 {
        font-size: 20px;
    }

    /* PRODUCTS - Très petit mobile */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    #products h2 {
        font-size: 20px;
    }

    /* PRODUCT DETAIL PAGE - Très petit mobile */
    #product-detail {
        padding: 15px 8px !important;
    }

    #product-container {
        gap: 15px !important;
    }

    #product-image-container {
        border-radius: 10px !important;
    }

    #product-name {
        font-size: 20px !important;
        margin-bottom: 12px !important;
    }

    #product-price {
        font-size: 24px !important;
    }

    #product-old-price {
        font-size: 14px !important;
    }

    #product-description-section h2 {
        font-size: 16px !important;
    }

    #product-description {
        font-size: 13px !important;
    }

    #add-to-cart-btn {
        padding: 12px 25px !important;
        font-size: 15px !important;
    }

    #similar-products-btn {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
}

/* PRODUCT DETAIL PAGE - Styles de base */
#product-detail {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

#product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

#product-image-container {
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    font-size: 16px;
    padding: 20px;
}

#product-info {
    display: flex;
    flex-direction: column;
}

#product-name {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

#product-price {
    font-size: 36px;
    font-weight: bold;
    color: #ff9900;
}

#add-to-cart-btn {
    background-color: #ff9900;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

#add-to-cart-btn:hover {
    background-color: #e68900;
}

/* Bouton Voir des produits similaires */
#similar-products-btn {
    background-color: #fff;
    color: #ff9900;
    padding: 12px 20px;
    border: 2px solid #ff9900;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

#similar-products-btn:hover {
    background-color: #ff9900;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 153, 0, 0.3);
}

#similar-products-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 153, 0, 0.2);
}

/* Bouton Voir des produits similaires */
#similar-products-btn {
    background-color: #fff;
    color: #ff9900;
    padding: 15px 40px;
    border: 2px solid #ff9900;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

#similar-products-btn:hover {
    background-color: #ff9900;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

/* Section Produits similaires */
#similar-products-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

#similar-products-section h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

#similar-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablette */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    #hero {
        padding: 35px 20px;
    }

    /* PRODUCT DETAIL PAGE - Tablette */
    #product-container {
        gap: 30px;
    }

    #product-name {
        font-size: 28px;
    }

    #product-price {
        font-size: 32px;
    }
}

/* ADMIN ORDERS PAGE */
#admin-orders {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

#orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#orders-table thead {
    background-color: #f8f8f8;
}

#orders-table thead th {
    padding: 12px;
    text-align: left;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #ddd;
}

#orders-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

#orders-table tbody tr:hover {
    background-color: #f8f8f8;
}

#orders-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

#orders-table tbody tr:nth-child(even):hover {
    background-color: #f0f0f0;
}

#orders-table tbody td {
    padding: 12px;
    font-size: 14px;
    color: #333;
}

.btn-view-details {
    padding: 6px 12px;
    background-color: #ff9900;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-view-details:hover {
    background-color: #ff6600;
}

.btn-view-details:active {
    transform: scale(0.98);
}

#order-details {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 30px;
}

#order-details h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #ff9900;
    padding-bottom: 10px;
}

#order-details h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    margin-top: 20px;
}

#order-details p {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.6;
}

#order-details strong {
    color: #333;
    font-weight: bold;
}

/* Bouton de déconnexion */
.btn-logout {
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-left: 10px;
}

.btn-logout:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.btn-logout:active {
    transform: scale(0.98);
}

/* Responsive pour la page admin */
@media (max-width: 768px) {
    #admin-orders {
        padding: 20px;
        overflow-x: auto;
    }

    #orders-table {
        font-size: 12px;
    }

    #orders-table thead th,
    #orders-table tbody td {
        padding: 8px;
    }

    #order-details {
        padding: 20px;
    }

    #order-details h2 {
        font-size: 20px;
    }

    #order-details h3 {
        font-size: 16px;
    }
}

/* MÉTHODES DE PAIEMENT */
.payment-methods {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.payment-methods legend {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    padding: 0 10px;
    margin-bottom: 15px;
}

.payment-methods label {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.payment-methods label:hover {
    background-color: #f0f0f0;
}

.payment-methods input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

.payment-methods label:last-child {
    margin-bottom: 0;
}

/* SAVONS & DOUCHE HIGHLIGHT SECTION */
.savons-highlight {
    background: #fff;
    border-radius: 8px;
    padding: 30px 20px;
    margin: 30px auto;
    max-width: 100%;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.savons-highlight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.savons-highlight-header h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 8px;
}

.savons-highlight-header p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.savons-link {
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid #ff9900;
    color: #ff9900;
    white-space: nowrap;
    transition: all 0.3s;
}

.savons-link:hover {
    background: #ff9900;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 153, 0, 0.3);
}

@media (max-width: 600px) {
    .savons-highlight-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .savons-link {
        align-self: flex-start;
    }
}

/* PROFILE SECTION */
.profile-section {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-section h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.profile-section > p {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-field label {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.profile-field input,
.profile-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.profile-field input:focus,
.profile-field textarea:focus {
    outline: none;
    border-color: #ff9900;
}

.profile-field input:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.profile-field textarea {
    resize: vertical;
    min-height: 100px;
}

.profile-message {
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.profile-message.error {
    background-color: #ffe6e6;
    color: #cc0000;
    border: 1px solid #ffcccc;
}

.profile-message.success {
    background-color: #e6f7e6;
    color: #006600;
    border: 1px solid #ccffcc;
}

.profile-message:not(:empty) {
    display: block;
}

@media (max-width: 600px) {
    .profile-section {
        margin: 20px;
        padding: 20px;
    }
}

/* ADDRESSES SECTION */
.addresses-section {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.addresses-section h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.addresses-section > p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

#profile-map {
    width: 100%;
    height: 260px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #ddd;
}

.map-btn {
    margin-bottom: 15px;
    width: 100%;
}

.address-form {
    margin-bottom: 20px;
}

.profile-addresses-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-address-item {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 15px;
    background: #fafafa;
}

.profile-address-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.profile-address-main strong {
    font-size: 16px;
    color: #333;
}

.address-default-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 10px;
    background: #ff9900;
    color: #fff;
    font-weight: bold;
}

.profile-address-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 6px;
}

.profile-address-meta {
    font-size: 0.8rem;
    color: #999;
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.profile-address-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.btn-small {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger {
    border: 1px solid #c0392b;
    color: #c0392b;
    background: #fff;
}

.btn-danger:hover {
    background: #c0392b;
    color: #fff;
}

@media (max-width: 600px) {
    .addresses-section {
        margin: 20px;
        padding: 20px;
    }
}

/* MY ORDERS ADDRESS */
.my-order-address {
    font-size: 0.9rem;
    color: #666;
    margin: 8px 0;
    padding: 8px;
    background-color: #f8f8f8;
    border-radius: 4px;
    border-left: 3px solid #ff9900;
}

/* ORDER ADDRESS SELECTION */
#order-address-wrapper {
    margin-bottom: 10px;
}

#order-address-select {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-bottom: 4px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

#order-address-select:focus {
    outline: none;
    border-color: #ff9900;
}

#order-address-selected-info {
    font-size: 0.8rem;
    color: #666;
    display: block;
    margin-top: 4px;
}

/* TOAST NOTIFICATIONS */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid;
}

.toast.success {
    border-left-color: #00aa00;
}

.toast.success .toast-icon {
    color: #00aa00;
    font-size: 20px;
}

.toast.error {
    border-left-color: #ff3333;
}

.toast.error .toast-icon {
    color: #ff3333;
    font-size: 20px;
}

.toast.warning {
    border-left-color: #ff9900;
}

.toast.warning .toast-icon {
    color: #ff9900;
    font-size: 20px;
}

.toast.info {
    border-left-color: #0066cc;
}

.toast.info .toast-icon {
    color: #0066cc;
    font-size: 20px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #333;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.hiding {
    animation: slideOutRight 0.3s ease-out forwards;
}

@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

/* ADMIN FILTERS */
.admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    align-items: flex-end;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 8px;
}

.admin-filter {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
    flex: 1;
}

.admin-filter label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

#admin-address-filter,
#admin-city-filter {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

#admin-address-filter:focus,
#admin-city-filter:focus {
    outline: none;
    border-color: #ff9900;
}

@media (max-width: 768px) {
    .admin-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-filter {
        min-width: 100%;
    }
}

/* ADMIN PRODUCTS LIST */
#admin-products-section {
    margin-top: 25px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

#admin-products-section h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.admin-products-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-product-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fafafa;
    transition: background-color 0.2s;
}

.admin-product-item:hover {
    background: #f5f5f5;
}

.admin-product-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.admin-product-name {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.admin-product-meta {
    font-size: 0.85rem;
    color: #666;
}

.admin-product-status {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 600;
    width: fit-content;
}

.admin-product-status.available {
    background: #2ecc71;
    color: #fff;
}

.admin-product-status.out_of_stock {
    background: #e74c3c;
    color: #fff;
}

.admin-product-status.coming_soon {
    background: #f1c40f;
    color: #333;
}

.admin-product-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.admin-product-actions .btn-small {
    font-size: 0.8rem;
    padding: 6px 12px;
    white-space: nowrap;
}

/* PRODUCT STOCK BADGE */
.product-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e74c3c;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.product-stock-badge.coming-soon {
    background-color: #f1c40f;
    color: #333;
}

.product-image {
    position: relative;
}

/* ADMIN PANEL - Caché par défaut, visible seulement pour les admins */
.admin-panel {
    display: none;
    margin-top: 40px;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 100%;
    width: 100%;
}

.admin-panel.visible {
    display: block;
}

.product-card .btn-primary:disabled,
.btn-add-cart:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ============================================
   AMÉLIORATIONS UI - NOTIFICATIONS TEMPS RÉEL
   ============================================ */

/* Badge pour les commandes en attente */
.pending-orders-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff3333;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Position relative pour le lien admin avec badge */
a[href="admin.html"] {
    position: relative;
}

/* Notification en temps réel */
.realtime-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.realtime-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.realtime-notification-content {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 12px;
}

.realtime-notification-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.realtime-notification-text {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.realtime-notification-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.realtime-notification-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* ============================================
   AMÉLIORATIONS UI - RACCOURCIS CLAVIER
   ============================================ */

/* Indicateur visuel pour les raccourcis (optionnel) */
.keyboard-shortcut-hint {
    font-size: 11px;
    color: #999;
    margin-left: 8px;
}

/* ============================================
   RESPONSIVE - NOTIFICATIONS
   ============================================ */

@media (max-width: 768px) {
    .realtime-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .realtime-notification.show {
        transform: translateY(0);
    }
}

