/* 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);
  /* [MODIFIÉ] Flou réduit */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  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); 
  /* [MODIFIÉ] Flou principal réduit de 15px à 10px */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
  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;
}

/* --- 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);
  /* [MODIFIÉ] Flou réduit */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  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; }


/* --- Styles des Composants --- */

/* [MODIFIÉ] Conteneur des boutons de filtre */
.filter-toggle-container {
    display: grid;
    /* Grille 1fr 1fr auto (pour le bouton X) */
    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; /* Pour la pastille de compteur */
    display: flex; /* Pour centrer le compteur */
    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); }

/* [MODIFIÉ] Bouton Reset (X) */
.filter-toggle-btn.reset-btn {
    width: auto; /* Ajuste la largeur au contenu (l'icône X) */
    padding: 14px 16px;
    display: none; /* [AJOUT] Caché par défaut */
}
.filter-toggle-btn.reset-btn:hover {
    background-color: rgba(244, 67, 54, 0.4); /* Rouge au survol */
}

/* [NOUVEAU] Compteur de filtre (pastille verte) */
.filter-count {
    background-color: #4CAF50; /* Vert */
    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; /* Caché par défaut */
}


/* [MODIFIÉ] 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);
    /* [MODIFIÉ] Flou réduit */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    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; /* Le padding sera dans l'en-tête et la liste */
    overflow: hidden; /* Pour les coins arrondis */
}

/* [NOUVEAU] En-tête du menu (inspiré de image_57c0fb.png) */
#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; /* Rouge */
}
.dropdown-header-btn.apply-btn {
    color: #4CAF50; /* Vert */
    font-weight: bold;
}

/* [NOUVEAU] Liste des items (avec checkboxes) */
#filter-dropdown-list {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px 0;
}
.filter-dropdown-item {
    display: flex; /* Aligne la checkbox et le texte */
    align-items: center;
    gap: 15px; /* Espace entre checkbox et texte */
    padding: 15px 25px; /* Padding de l'item */
    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; /* Le texte prend la place restante */
}
.filter-dropdown-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0; /* Empêche la checkbox de rétrécir */
    accent-color: var(--accent-color); /* Colore la checkbox avec la couleur d'accent */
}
.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 */
.product-card {
  position: relative; 
  border-radius: 20px; 
  overflow: hidden; 
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(0,0,0, 0.15);
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0, 0.2);
}
.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); /* Couleur par défaut */
    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; /* [AJOUT] Pour éviter les dépassements */
}
.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); }

/* [AJOUT] 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: 15px;
    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);
}
/* Style pour le select */
select.glass-input {
    appearance: none;
    -webkit-appearance: none;
    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; }


/* --- [AJOUT] Styles pour les options de livraison (Panier) --- */

.delivery-options-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 25px; /* Se place avant le total */
    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;
    
    /* Style Inactif (Gris foncé, comme "Meet Up" dans l'image) */
    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 {
    /* Style Actif (Vert, comme "Livraison" dans l'image) */
    background-color: #4CAF50; /* Vert */
    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; /* Utilise l'animation existante */
}


/* --- [MODIFIÉ] Page Avis (Style "OG Spleen" / "VitamineH") --- */
.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; /* <-- Nom à gauche, Date à droite */
    align-items: center;
    font-size: 14px;
    padding-bottom: 8px; /* Espace pour la ligne */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* La ligne de séparation */
}
.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; /* Espace sous la ligne */
    font-size: 15px;
    line-height: 1.5;
    white-space: normal;
    word-wrap: break-word;
    text-align: left; /* [IMPORTANT] Force l'alignement à gauche */
}

/* Média (Image/Vidéo) */
.review-item .review-media {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 15px; /* S'assure qu'il est après le texte */
}


/* --- [AJOUT] 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; /* Bords arrondis */
    padding: 20px;
    margin-top: 15px;
    line-height: 1.5;
}

/* --- [MODIFIÉ] Styles pour la page Réseaux --- */
.info-reseaux-container h4.reseau-heading {
    text-align: center;
    font-size: 1.25em; /* Un peu plus gros */
    margin-top: 20px; /* Espace avant le titre */
    margin-bottom: 10px; /* Espace avant le bouton */
    font-weight: 600;
}

/* Style pour les boutons de lien réseau */
.info-reseaux-container a.reseau-btn {
    /* Copié de .btn et .btn-secondary */
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 0; /* Géré par le h4 */
    margin-bottom: 15px; /* Espace avant le prochain h4 */
    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; /* Enlève le soulignement */
    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);
}

/* On s'assure que le <p> initial n'a pas de style de lien */
.info-reseaux-container p {
    margin: 0;
}
.info-reseaux-container p a {
    /* Style de lien standard, au cas où */
    color: white;
    text-decoration: underline;
    font-weight: 500;
    /* Réinitialise les styles de bouton */
    display: inline;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: none;
}
/* --- Fin des styles Réseaux --- */


/* --- Panel Admin --- */

/* [MODIFIÉ] Item Produit Admin (pour drag-and-drop et modif) */
.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;
}
/* [AJOUT] 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 {
    /* Indique où l'élément sera lâché */
    border-top: 2px solid var(--accent-color); 
}
/* Info et actions */
.admin-product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Empêche le texte de capturer les événements de drag */
    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;
}
/* --- Fin des modifs --- */


/* [MODIFIÉ] Bouton Admin Suppression Avis */
.admin-delete-review-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px; /* Taille fixe pour l'icône */
  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; }

/* ========================================= */
/* --- NOUVEAU STYLE POUR BANNIÈRE MENU --- */
/* ========================================= */
.menu-banner-image {
    display: block;
    /* Calcul : 100% + (Padding AppContainer 15px + Padding PageContent 10px) * 2 */
    width: calc(100% + 50px); 
    
    /* Annuler les marges gauches (15px + 10px) */
    margin-left: -25px; 
    
    /* Annuler la marge du haut (20px + 10px) */
    margin-top: -30px; 
    
    /* Marge en bas pour séparer des filtres */
    margin-bottom: 20px; 
    
    /* S'assure que l'image ne soit pas contrainte */
    max-width: none; 
    
    /* Esthétique : Arrondir uniquement le bas */
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    
    /* Remplissage propre */
    object-fit: cover; 
}

/* --- POP-UP STARTUP STYLE --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999; /* Au-dessus de tout */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    animation: fadeInPopup 0.3s ease;
}

.popup-card {
    background-color: rgba(30, 30, 30, 0.85); /* Fond sombre semi-transparent */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px;
    width: 100%;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(1);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popup-header h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--accent-color);
    font-size: 1.5em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.popup-body p {
    color: #eee;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    white-space: pre-wrap; /* Garde les sauts de ligne */
}

@keyframes fadeInPopup {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}