/* Variables de couleur globales */
:root {
  --accent-color: #E53935; /* Couleur par défaut (rouge) */
}

/* --- Styles de base et Arrière-plan --- */
body {
  background-color: #333; 
  height: 100vh;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: #fff;
  overflow: hidden;
}
/* Style pour le fond d'écran IMAGE */
body.image-background {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
/* Le style de la vidéo s'applique au nouvel ID dynamique */
#dynamic-background-video {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100vw;
  min-height: 100vh;
  object-fit: cover;
  z-index: -1;
}

/* --- Écran de chargement --- */
#loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 200;
  color: white;
  text-align: center;
  transition: opacity 0.3s ease;
}
.loader-content h3 {
  margin-top: 10px;
  font-weight: 500;
  letter-spacing: 1px;
}

/* Conteneur principal de l'application */
.app-container {
  background-color: rgba(255, 255, 255, 0.1); 
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  
  height: 100vh;
  width: 100vw;
  overflow-y: auto;
  padding: 20px 15px 120px 15px;
  box-sizing: border-box;
  position: relative; 
}
/* Contenu de la page avec titres */
.page-content {
    color: white;
    padding: 10px;
}
.page-content h2 {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

/* --- Style pour la bannière principale (Remplacement du texte) --- */
.banner-container {
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
}

.main-banner {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0, 0.15);
    display: block;
    margin: 0 auto;
}

/* --- Barre de Navigation "Liquid Glass" --- */
.bottom-nav-bar {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%; 
  max-width: 450px; 
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  border-radius: 50px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 0; 
  z-index: 100;
}
/* Boutons de navigation (avec icônes) */
.nav-item {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 5px 10px;
  border-radius: 20px;
  transition: all 0.2s ease;
  position: relative;
  opacity: 0.8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.nav-item span { display: block; }
.nav-item i { font-size: 16px; margin-bottom: 2px; width: 20px; text-align: center; }
.nav-item span:not(:first-child) { display: none; } /* Cache le texte */
.nav-item:active { transform: scale(0.95); }
.nav-item.active { background-color: rgba(255, 255, 255, 0.3); opacity: 1.0; }
/* Compteur du panier */
.cart-counter {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--accent-color); 
    color: white;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.3s ease;
}
.cart-counter.visible { opacity: 1; }
/* Bouton de son */
#unmute-button {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 101;
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  color: white;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 22px;
  line-height: 45px; 
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0; 
}
#unmute-button:active { transform: scale(0.9); }


/* --- Styles des Composants --- */

/* Conteneur des boutons de filtre */
.filter-toggle-container {
    display: grid;
    grid-template-columns: 1fr 1fr auto; 
    gap: 10px;
    margin-bottom: 20px;
}
.filter-toggle-btn {
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: relative; 
    display: flex; 
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.filter-toggle-btn.active {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}
.filter-toggle-btn:active { transform: scale(0.97); }

/* Bouton Reset (X) */
.filter-toggle-btn.reset-btn {
    width: auto; 
    padding: 14px 16px;
    display: none; 
}
.filter-toggle-btn.reset-btn:hover {
    background-color: rgba(244, 67, 54, 0.4); 
}

/* Compteur de filtre (pastille verte) */
.filter-count {
    background-color: #4CAF50; 
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: none; 
}


/* Styles du menu déroulant de filtre (multi-sélection) */
#filter-dropdown-overlay {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}
.filter-dropdown-menu {
    width: 100%;
    max-width: 400px;
    background-color: rgba(40, 40, 40, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    padding: 0; 
    overflow: hidden; 
}

/* En-tête du menu */
#filter-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.dropdown-header-title {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
}
.dropdown-header-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    padding: 5px;
}
.dropdown-header-btn.clear-btn {
    color: #FF6B6B; 
}
.dropdown-header-btn.apply-btn {
    color: #4CAF50; 
    font-weight: bold;
}

/* Liste des items (avec checkboxes) */
#filter-dropdown-list {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px 0;
}
.filter-dropdown-item {
    display: flex; 
    align-items: center;
    gap: 15px; 
    padding: 15px 25px; 
    font-size: 16px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.filter-dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}
.filter-dropdown-item span {
    flex-grow: 1; 
}
.filter-dropdown-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0; 
    accent-color: var(--accent-color); 
}
.filter-dropdown-item .color-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid white;
    flex-shrink: 0;
}


/* Grille de produits */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* --- Carte Produit (MODIFIÉ: Optimisé pour la performance GPU) --- */
.product-card {
  position: relative; 
  border-radius: 20px; 
  overflow: hidden; 
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  
  /* Supprimé: backdrop-filter: blur(5px); pour éviter le ralentissement GPU */
  /* Utilisation d'un fond sombre uni semi-transparent très fluide */
  background-color: rgba(35, 35, 35, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.product-card:active { transform: scale(0.98); }
.product-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}
.product-title {
  padding: 12px 10px;
  text-align: center;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-title h3 { margin: 0; font-size: 14px; }

/* Badge Produit (affiche la catégorie) */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--accent-color); 
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease;
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Page Détail Produit */
.product-detail-view { color: white; }
.video-container {
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 15px;
  background-color: #000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.video-container video { width: 100%; display: block; }
/* Conteneur des 3 badges (page détail) */
.detail-badges-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}
.detail-badge {
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.detail-badge span { font-size: 16px; }
.product-detail-view h2 { margin-top: 0; }
.price-options h4 { margin-bottom: 10px; }
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}


/* --- Boutons & Formulaires "Liquid Glass" --- */

/* Style de base pour tous les boutons */
.btn {
  display: block;
  width: 100%;
  padding: 15px;
  margin-top: 10px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  box-sizing: border-box; 
}
.btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* Bouton "Option de Prix" */
.price-btn {
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  text-align: center;
  margin-top: 0;
}
.price-btn:hover { background-color: rgba(255, 255, 255, 0.4); }
/* Boutons primaires (Vert Glass) */
.btn-primary {
  background-color: rgba(76, 175, 80, 0.4);
  color: white;
  border: 1px solid rgba(76, 175, 80, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.btn-primary:hover { background-color: rgba(76, 175, 80, 0.6); }
/* Boutons secondaires (Gris/Verre) */
.btn-secondary {
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-secondary:hover { background-color: rgba(255, 255, 255, 0.4); }

/* Bouton "Modifier" (Bleu Glass) */
.btn-edit {
  background-color: rgba(0, 123, 255, 0.4);
  color: white;
  border: 1px solid rgba(0, 123, 255, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.btn-edit:hover { background-color: rgba(0, 123, 255, 0.6); }


/* Boutons danger (Rouge Glass) */
.btn-danger {
  background-color: rgba(244, 67, 54, 0.4);
  color: white;
  border: 1px solid rgba(244, 67, 54, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.btn-danger:hover { background-color: rgba(244, 67, 54, 0.6); }

/* --- Styles de Formulaire --- */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.glass-input, .glass-textarea, select.glass-input {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    box-sizing: border-box;
    color: white;
    font-size: 16px; 
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    
    appearance: none;
    -webkit-appearance: none;
}
input.glass-input, textarea.glass-textarea {
    background-image: none; 
}

/* Style pour le select */
select.glass-input {
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position-x: 98%;
    background-position-y: 50%;
}
select.glass-input option { background-color: #333; color: white; }
/* Style spécifique pour l'input[type=color] */
.glass-input[type="color"] { padding: 5px; height: 50px; }
.glass-input::placeholder, .glass-textarea::placeholder { color: rgba(255, 255, 255, 0.7); }
.glass-input:focus, .glass-textarea:focus, select.glass-input:focus {
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}
/* Style pour les <input type="file"> */
.file-input-label {
  display: block;
  padding: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.file-input-label:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
}
.file-input-label input[type="file"] { display: none; }
.file-preview { font-size: 13px; margin-top: 5px; font-style: italic; opacity: 0.8; }

/* --- Page Panier --- */
.cart-item {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.cart-item-info { display: flex; flex-direction: column; gap: 2px; }
.cart-item-info strong { font-size: 1.1em; font-weight: 600; }
.cart-item-info span { font-size: 0.9em; opacity: 0.8; }
.cart-item-price { font-size: 1.2em; font-weight: 600; }
.cart-total { 
    padding: 20px;
    border-radius: 12px;
    margin-top: 25px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.4em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.cart-total span { font-weight: 500; opacity: 0.8; font-size: 0.9em; }


/* Styles pour les options de livraison (Panier) */

.delivery-options-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 25px; 
    margin-bottom: 15px;
}

.delivery-option-btn {
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: all 0.2s ease;
    
    background-color: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.delivery-option-btn.active {
    background-color: #4CAF50; 
    color: white;
    border: 1px solid rgba(76, 175, 80, 0.8);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.delivery-option-btn:active {
    transform: scale(0.97);
}

/* Conteneur pour les champs de saisie (heure/adresse) */
.delivery-details {
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}


/* --- Page Avis --- */
.review-item { 
  position: relative;
  background-color: rgba(0, 0, 0, 0.4); 
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 15px 20px;
  border-radius: 16px;
  margin-top: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Header de l'avis (Nom + Date) */
.review-header {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    font-size: 14px;
    padding-bottom: 8px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); 
}
.review-header-user {
    font-weight: 600;
}
.review-header-time {
    font-size: 13px;
    opacity: 0.7;
    white-space: nowrap;
    margin-left: 10px; 
}

/* Contenu de l'avis (le texte) */
.review-content {
    padding-top: 10px; 
    font-size: 15px;
    line-height: 1.5;
    white-space: normal;
    word-wrap: break-word;
    text-align: left; 
}

/* Média (Image/Vidéo) */
.review-item .review-media {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 15px; 
}


/* --- Conteneur Liquid Glass pour Info & Réseaux --- */
.info-reseaux-container {
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px; 
    padding: 20px;
    margin-top: 15px;
    line-height: 1.5;
}

/* --- Styles pour la page Réseaux --- */
.info-reseaux-container h4.reseau-heading {
    text-align: center;
    font-size: 1.25em; 
    margin-top: 20px; 
    margin-bottom: 10px; 
    font-weight: 600;
}

/* Style pour les boutons de lien réseau */
.info-reseaux-container a.reseau-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 0; 
    margin-bottom: 15px; 
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    box-sizing: border-box; 
    text-decoration: none; 
    text-align: center; 

    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.info-reseaux-container a.reseau-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}
.info-reseaux-container a.reseau-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.info-reseaux-container p {
    margin: 0;
}
.info-reseaux-container p a {
    color: white;
    text-decoration: underline;
    font-weight: 500;
    display: inline;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: none;
}


/* --- UI Profil, Roue de la Fortune & Parrainage --- */
.profile-balance-card {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.6), rgba(0, 150, 136, 0.4));
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 15px; 
    padding: 20px; 
    text-align: center; 
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2); 
    backdrop-filter: blur(10px);
}
.profile-balance-amount { 
    font-size: 2.5em; 
    font-weight: 800; 
    margin: 10px 0; 
    text-shadow: 0 2px 5px rgba(0,0,0,0.3); 
}

.wheel-container {
    background-color: rgba(0,0,0,0.3); 
    padding: 20px; 
    border-radius: 15px;
    text-align: center; 
    margin-bottom: 20px; 
    border: 1px solid rgba(255,255,255,0.1);
}
.wheel-btn {
    background: linear-gradient(45deg, #FF9800, #F44336); 
    color: white; 
    font-size: 1.2em;
    padding: 15px 30px; 
    border-radius: 30px; 
    border: none; 
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.4); 
    cursor: pointer; 
    transition: 0.2s;
}
.wheel-btn:disabled { 
    background: gray; 
    box-shadow: none; 
    cursor: not-allowed; 
    opacity: 0.7;
}
.wheel-btn:active:not(:disabled) { 
    transform: scale(0.95); 
}

/* Animation roue qui tourne */
.spinning-anim { 
    animation: spinPulse 0.5s infinite alternate; 
}
@keyframes spinPulse {
    0% { transform: scale(1); filter: hue-rotate(0deg); }
    100% { transform: scale(1.05); filter: hue-rotate(45deg); }
}

.referral-container {
    background-color: rgba(255,255,255,0.1); 
    padding: 15px; 
    border-radius: 15px;
    margin-bottom: 20px; 
    border: 1px solid rgba(255,255,255,0.2);
}
.ref-code-box {
    background-color: rgba(0,0,0,0.4); 
    padding: 10px; 
    border-radius: 8px;
    font-family: monospace; 
    font-size: 1.2em; 
    text-align: center; 
    letter-spacing: 2px;
}


/* --- Panel Admin --- */

/* Item Produit Admin */
.admin-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0,0,0,0.2);
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: background-color 0.2s ease;
}
/* Styles pour Drag-and-Drop */
.admin-product-item[draggable="true"] {
    cursor: grab;
}
.admin-product-item.dragging {
    opacity: 0.5;
    background-color: rgba(255, 255, 255, 0.2);
}
.admin-product-item.drag-over {
    border-top: 2px solid var(--accent-color); 
}
/* Info et actions */
.admin-product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    pointer-events: none; 
}
.admin-product-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.admin-product-actions button {
    width: auto;
    font-size: 12px;
    padding: 8px 12px;
    margin-top: 0;
}

/* Bouton Admin Suppression Avis */
.admin-delete-review-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px; 
  height: 40px;
  padding: 0;
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  z-index: 5;
  line-height: 40px;
  text-align: center;
}

/* Style pour la liste des catégories/farms admin */
.admin-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0,0,0,0.2);
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 10px;
}
.admin-category-color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    margin-right: 15px;
}
.admin-category-info {
    display: flex;
    align-items: center;
    flex-grow: 1;
}
.admin-category-item button {
  width: auto;
  font-size: 12px;
  padding: 8px 12px;
  margin-top: 0;
}


/* --- Indicateur de Chargement --- */
.loader {
  width: 40px;
  height: 40px;
  border: 4px solid #fff;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  margin: 10px auto;
  display: none;
}
#loader-overlay .loader { display: inline-block; }
@keyframes rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- Styles des Icônes (Blanches) --- */
.fa-solid, .fa-regular, .fa-brands { color: white; }
.page-content h2 i { margin-right: 10px; opacity: 0.9; }
.page-content h4 i { margin-right: 8px; }
.btn i { margin-right: 8px; }
.file-input-label span i { margin-right: 8px; }

/* --- Page Admin Stats --- */
.admin-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0,0,0,0.2);
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 14px;
}
.admin-stat-info { display: flex; flex-direction: column; }
.admin-stat-info strong { font-size: 1.1em; }
.admin-stat-info span { opacity: 0.7; font-size: 0.9em; }
.admin-stat-time { font-size: 12px; opacity: 0.8; text-align: right; }

/* --- Rupture de Stock --- */

/* Carte produit en rupture */
.product-card.out-of-stock img {
    opacity: 0.5;
    filter: grayscale(100%); 
}

/* Badge RUPTURE sur la carte */
.rupture-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background-color: rgba(229, 57, 53, 0.9); 
    color: white;
    padding: 10px 20px;
    border: 2px solid white;
    font-weight: 900;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border-radius: 5px;
}

/* Message dans la page détail */
.rupture-message-box {
    background-color: rgba(229, 57, 53, 0.2);
    border: 1px solid #E53935;
    color: #FF6B6B;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 15px;
    backdrop-filter: blur(5px);
}
.rupture-message-box i {
    font-size: 1.5em;
    display: block;
    margin-bottom: 10px;
}

/* --- ANIMATIONS ET TOAST --- */
@keyframes pop-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}
.pop {
    animation: pop-animation 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification {
    position: fixed;
    bottom: 90px; 
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}