/* ============================================
   SYSTÈME DARK/LIGHT MODE - COMPLET
============================================ */

:root {
  /* === BACKGROUNDS === */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F7F7F7;
  --bg-tertiary: #F9FAFB;
  --bg-quaternary: #F3F4F6;
  --bg-card: #FFFFFF;
  --bg-input: #FFFFFF;
  --bg-hover: #F8F9FA;
  --bg-active: #EDF2F7;
  --bg-disabled: #E5E7EB;
  
  /* === TEXT COLORS === */
  --text-primary: #1F2937;
  --text-secondary: #2D3748;
  --text-tertiary: #4A5568;
  --text-quaternary: #6B7280;
  --text-muted: #9CA3AF;
  --text-light: #718096;
  --text-dark: #111827;
  --text-inverse: #FFFFFF;
  
  /* === BORDERS === */
  --border-primary: #E5E7EB;
  --border-secondary: #E2E8F0;
  --border-tertiary: #D1D5DB;
  --border-light: rgba(0, 0, 0, 0.1);
  --border-medium: rgba(0, 0, 0, 0.2);
  
  /* === SHADOWS === */
  --shadow-xs: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.5);
  
  /* === OVERLAYS === */
  --overlay-light: rgba(0, 0, 0, 0.5);
  --overlay-medium: rgba(0, 0, 0, 0.75);
  --overlay-dark: rgba(0, 0, 0, 0.9);
  
  /* === SPECIFIC COLORS === */
  --color-gray-50: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-300: #D1D5DB;
  --color-gray-400: #9CA3AF;
  --color-gray-500: #6B7280;
  --color-gray-600: #4B5563;
  --color-gray-700: #374151;
  --color-gray-800: #1F2937;
  --color-gray-900: #111827;
  
  /* Couleurs fixes (ne changent pas) */
  --color-success: #10B981;
  --color-error: #EF4444;
  --color-warning: #F59E0B;
  --color-info: #3B82F6;
}

/* ============================================
   MODE DARK
============================================ */
body.dark-mode {
  /* === BACKGROUNDS === */
  --bg-primary: #1F2937;
  --bg-secondary: #111827;
  --bg-tertiary: #1F2937;
  --bg-quaternary: #374151;
  --bg-card: #374151;
  --bg-input: #4B5563;
  --bg-hover: #4B5563;
  --bg-active: #374151;
  --bg-disabled: #4B5563;
  
  /* === TEXT COLORS === */
  --text-primary: #F9FAFB;
  --text-secondary: #F3F4F6;
  --text-tertiary: #E5E7EB;
  --text-quaternary: #D1D5DB;
  --text-muted: #9CA3AF;
  --text-light: #9CA3AF;
  --text-dark: #F9FAFB;
  --text-inverse: #111827;
  
  /* === BORDERS === */
  --border-primary: #4B5563;
  --border-secondary: #374151;
  --border-tertiary: #6B7280;
  --border-light: rgba(255, 255, 255, 0.1);
  --border-medium: rgba(255, 255, 255, 0.2);
  
  /* === SHADOWS === */
  --shadow-xs: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.9);
  
  /* === OVERLAYS === */
  --overlay-light: rgba(0, 0, 0, 0.7);
  --overlay-medium: rgba(0, 0, 0, 0.85);
  --overlay-dark: rgba(0, 0, 0, 0.95);
  
  /* === SPECIFIC COLORS (inversés) === */
  --color-gray-50: #111827;
  --color-gray-100: #1F2937;
  --color-gray-200: #374151;
  --color-gray-300: #4B5563;
  --color-gray-400: #6B7280;
  --color-gray-500: #9CA3AF;
  --color-gray-600: #D1D5DB;
  --color-gray-700: #E5E7EB;
  --color-gray-800: #F3F4F6;
  --color-gray-900: #F9FAFB;
}

/* ============================================
   APPLICATION DES VARIABLES - TOUS LES ÉLÉMENTS
============================================ */

/* === BODY & CONTAINER === */
body {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  background-color: transparent;
}

/* === MENU CATÉGORIES === */
.category-nav-wrapper {
  background: var(--bg-primary) !important;
  border-bottom: 1px solid var(--border-light) !important;
  box-shadow: var(--shadow-sm) !important;
}

.category-link {
  color: var(--text-quaternary) !important;
  background: transparent !important;
}

.category-link:hover:not(.active) {
  color: var(--text-primary) !important;
  background: var(--bg-hover) !important;
}

/* IMPORTANT: Garde les couleurs actives */
.category-link.active {
  background: var(--fiche-color, #007bff) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(var(--fiche-color-rgb, 0, 123, 255), 0.3) !important;
}

/* === CARTES PRODUITS === */
.card.plat-div {
  background-color: var(--bg-card) !important;
  border: none !important;
  border-left: 7px solid var(--fiche-color, #007bff) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-left-color 0.18s ease;
  will-change: transform, box-shadow;
}

.card.plat-div:hover {
  transform: translateY(-3px);
  background-color: var(--bg-hover) !important;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.10),
    0 0 0 1px rgba(var(--fiche-color-rgb, 0, 123, 255), 0.20),
    0 8px 20px rgba(var(--fiche-color-rgb, 0, 123, 255), 0.18);
}

/* === OPTIONS QUANTITÉ (Modal) === */
.option-qty-item {
  position: relative;
  background: var(--bg-tertiary, #fff) !important;
  border: 1px solid var(--border-secondary, #e5e7eb) !important;
  color: var(--text-primary, #333) !important;
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 140px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.option-qty-item:hover {
  background: var(--bg-hover, #f9fafb) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.option-qty-item.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.15) 100%) !important;
  border-color: #3B82F6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 2px 8px rgba(59, 130, 246, 0.3) !important;
}

.option-qty-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--fiche-color, #007bff);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  z-index: 5;
}

.option-qty-item.active .option-qty-badge {
  display: flex;
}

/* Fix Dark mode pour le texte interne */
body.dark-mode .option-qty-item.active .qty-name {
  color: #60A5FA !important;
}
body.dark-mode .option-qty-item.active .qty-sub {
  color: #93C5FD !important;
}


.plat-titre {
  color: var(--text-primary) !important;
}

.plat-desc {
  color: var(--text-tertiary) !important;
}

.plat-prix {
  color: var(--text-quaternary) !important;
}

/* === HEADER RESTAURANT === */
body.dark-mode .resto-header-wrapper {
  background: linear-gradient(135deg, #1F2937 0%, #111827 100%) !important;
}

body.dark-mode .resto-main-card {
  background: var(--bg-card) !important;
  box-shadow: var(--shadow-md) !important;
}

.resto-title {
  color: var(--text-primary) !important;
}

.resto-info-item {
  background: var(--bg-tertiary) !important;
  border: 1px solid var(--border-primary) !important;
}

.info-value-sm,
.info-value-sm a {
  color: var(--text-secondary) !important;
}

.info-label-sm {
  color: var(--text-muted) !important;
}

.horaires-compact {
  color: var(--text-quaternary) !important;
}

.resto-status-pill {
  background: var(--bg-primary) !important;
}

/* === MODALES === */
.modal-overlay {
  background-color: var(--overlay-medium) !important;
}

.click-collect-modal,
.modal-content,
.mode-choice-content,
.cp-validation-content,
.fidelity-modal,
.restaurant-closed-content {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
}

.modal-title,
.product-modal-title,
.product-title {
  color: var(--text-primary) !important;
}

.product-modal-description,
.product-description {
  color: var(--text-quaternary) !important;
}

.modal-divider {
  background: var(--border-primary) !important;
}

.btn-close {
  background: var(--bg-quaternary) !important;
}

.btn-close:hover {
  background: var(--bg-hover) !important;
}

.btn-close svg {
  color: var(--text-quaternary) !important;
}

/* === CARROUSEL === */
.product-carousel {
  background: var(--bg-tertiary) !important;
}

.carousel-arrow {
  background: var(--overlay-light) !important;
}

.carousel-arrow:hover {
  background: var(--overlay-medium) !important;
}

/* === VARIATIONS & OPTIONS === */
.variations-label,
.options-label {
  color: var(--text-primary) !important;
}

.variation-label,
.option-item label,
.radio-option-item label {
  background: var(--bg-tertiary) !important;
  border-color: var(--border-secondary) !important;
  color: var(--text-primary) !important;
}

.variation-label:hover,
.option-item label:hover,
.radio-option-item label:hover {
  background: var(--bg-hover) !important;
}

.variation-name,
.option-item label span:first-child {
  color: var(--text-primary) !important;
}

.variation-price,
.option-item label span:last-child {
  color: var(--text-quaternary) !important;
}

/* === INPUTS & SELECTS === */
input,
select,
textarea,
.quantity-select,
.quantity-input,
.cp-input {
  background-color: var(--bg-input) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-secondary) !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-info) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.quantity-label {
  color: var(--text-tertiary) !important;
}

/* === PANIER === */
.cart-items,
.cart-summary {
  background: var(--bg-card) !important;
  box-shadow: var(--shadow-md) !important;
}

.cart-item {
  border-bottom: 1px solid var(--border-primary) !important;
}

.cart-item:hover {
  background-color: var(--bg-hover) !important;
}

.item-name,
.item-subtotal {
  color: var(--text-primary) !important;
}

.item-price,
.item-qty {
  color: var(--text-light) !important;
}

.continue-btn {
  background-color: var(--bg-tertiary) !important;
  color: var(--text-tertiary) !important;
  border: 1px solid var(--border-secondary) !important;
}

.continue-btn:hover {
  background-color: var(--bg-hover) !important;
}

/* === CHECKOUT === */
.checkout-form,
.checkout-summary,
.payment-section,
.summary-card {
  background: var(--bg-card) !important;
  box-shadow: var(--shadow-md) !important;
}

.checkout-header h1,
.checkout-form h2,
.section-title {
  color: var(--text-primary) !important;
}

.form-group label {
  color: var(--text-secondary) !important;
}

.order-mode-info {
  background: var(--bg-tertiary) !important;
}

.summary-header {
  border-bottom: 1px solid var(--border-secondary) !important;
}

.summary-header h2 {
  color: var(--text-primary) !important;
}

.order-item {
  border-bottom: 1px solid var(--border-primary) !important;
}

.item-name {
  color: var(--text-tertiary) !important;
}

.item-details {
  color: var(--text-light) !important;
}

.total-label,
.total-amount {
  color: var(--text-primary) !important;
}

.edit-cart-btn {
  background: var(--bg-tertiary) !important;
  color: var(--text-tertiary) !important;
  border: 1px solid var(--border-secondary) !important;
}

.edit-cart-btn:hover {
  background: var(--bg-hover) !important;
}

.timeslot-label {
  background: var(--bg-primary) !important;
  border: 2px solid var(--border-secondary) !important;
  color: var(--text-primary) !important;
}

.timeslot-option:hover .timeslot-label {
  background: var(--bg-tertiary) !important;
}

.payment-icon {
  background: var(--bg-tertiary) !important;
}

.payment-title h2 {
  color: var(--text-primary) !important;
}

.payment-title p {
  color: var(--text-light) !important;
}

.payment-info {
  background: var(--bg-tertiary) !important;
  color: var(--text-light) !important;
}

/* === CONFIRMATION === */
.confirmation-card {
  background: var(--bg-card) !important;
  box-shadow: var(--shadow-lg) !important;
}

.confirmation-content h1 {
  color: var(--text-primary) !important;
}

.order-details {
  background: var(--bg-tertiary) !important;
}

.info-item {
  border-bottom: 1px solid var(--border-primary) !important;
}

.label {
  color: var(--text-quaternary) !important;
}

.value {
  color: var(--text-dark) !important;
}

/* === FIDÉLITÉ === */
.fidelity-section,
.fidelity-module {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-primary) !important;
  box-shadow: var(--shadow-md) !important;
}

.fidelity-header {
  border-bottom: 1px solid var(--border-primary) !important;
}

.fidelity-header h3,
.fidelity-module h4 {
  color: var(--text-primary) !important;
}

.fidelity-info-text {
  color: var(--text-light) !important;
}

.fidelity-card-info {
  background: var(--bg-tertiary) !important;
  border: 1px solid var(--border-secondary) !important;
}

.fidelity-solde-badge {
  color: var(--text-primary) !important;
}

.fidelity-user-name {
  color: var(--text-light) !important;
}

.btn-fidelity-login,
.btn-fidelity-register {
  background: var(--bg-primary) !important;
  color: var(--text-tertiary) !important;
  border: 1px solid var(--border-secondary) !important;
}

.fidelity-info {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border-primary) !important;
}

.fidelity-points {
  color: var(--text-primary) !important;
}

.reduction-item {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-primary) !important;
}

.reduction-item:hover {
  border-color: var(--color-info) !important;
  background: var(--bg-tertiary) !important;
}

.reduction-info strong {
  color: var(--text-primary) !important;
}

.reduction-cost {
  color: var(--text-muted) !important;
}

.fidelity-solde-display {
  background: var(--bg-tertiary) !important;
  border: 1px solid var(--border-primary) !important;
  color: var(--text-primary) !important;
}

/* === MODALES CHOIX MODE === */
.mode-choice-overlay,
.cp-validation-overlay {
  background: var(--overlay-dark) !important;
}

.mode-choice-content h2,
.cp-validation-content h2,
.mode-choice-icon h2 {
  color: var(--text-primary) !important;
}

.mode-choice-content p,
.cp-validation-content p {
  color: var(--text-quaternary) !important;
}

.mode-btn {
  background: var(--bg-card) !important;
  border: 3px solid var(--border-primary) !important;
}

.mode-btn-text strong {
  color: var(--text-primary) !important;
}

.mode-btn-text small {
  color: var(--text-quaternary) !important;
}

.cp-back-btn {
  background: var(--bg-quaternary) !important;
  color: var(--text-quaternary) !important;
}

.cp-back-btn:hover {
  background: var(--bg-hover) !important;
  color: var(--text-secondary) !important;
}

.cp-help {
  color: var(--text-muted) !important;
}

/* === ALERTS === */
.alert-warning {
  background: rgba(255, 193, 7, 0.15) !important;
  border: 1px solid var(--color-warning) !important;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid var(--color-error) !important;
}

.alert-info {
  background: rgba(59, 130, 246, 0.15) !important;
  border: 1px solid var(--color-info) !important;
}

/* === RESTAURANT FERMÉ === */
.restaurant-closed-title {
  color: var(--text-primary) !important;
}

.restaurant-closed-info {
  color: var(--text-tertiary) !important;
}

.restaurant-closed-hours {
  background-color: var(--bg-tertiary) !important;
}

.restaurant-closed-hours h4 {
  color: var(--text-primary) !important;
}

/* === PHONE SECTION === */
.phone-section {
  background-color: var(--bg-tertiary) !important;
  border: 1px solid var(--border-primary) !important;
}

.phone-section label {
  color: var(--text-primary) !important;
}

/* === MODAL HEADERS === */
.modal-header {
  border-bottom: 1px solid var(--border-primary) !important;
}

.modal-header h2 {
  color: var(--text-primary) !important;
}

.modal-footer {
  border-top: 1px solid var(--border-primary) !important;
  background: var(--bg-card) !important;
}

.modal-body {
  background: transparent !important;
}

.fidelity-modal h3 {
  color: var(--text-primary) !important;
}

.fidelity-modal p {
  color: var(--text-quaternary) !important;
}

.fidelity-modal label {
  color: var(--text-primary) !important;
}

.fidelity-modal-buttons .btn-cancel {
  background-color: var(--bg-disabled) !important;
  color: var(--text-secondary) !important;
}

.fidelity-modal-buttons .btn-cancel:hover {
  background-color: var(--bg-hover) !important;
}

/* === STYLES INLINE DU INDEX.PHP === */
body.dark-mode .option-group {
  background-color: var(--bg-card) !important;
}

body.dark-mode .category-nav-wrapper {
  background-color: var(--bg-primary) !important;
}

body.dark-mode .category-link {
  background-color: var(--bg-tertiary) !important;
  color: var(--text-quaternary) !important;
}

body.dark-mode .category-link:hover:not(.active) {
  background-color: var(--bg-hover) !important;
}

body.dark-mode .badge-status {
  background-color: var(--bg-card) !important;
}

/* ============================================
   MODE DARK - STYLES INLINE & SÉLECTION
============================================ */

/* === FIX POUR LES SPANS DANS LES OPTIONS (surcharge styles inline) === */
body.dark-mode .option-group span[style*="color: #333"],
body.dark-mode .option-group span[style*="color:#333"],
body.dark-mode .radio-option-item label span[style*="color: #333"],
body.dark-mode .radio-option-item label span[style*="color:#333"],
body.dark-mode .checkbox-options label span[style*="color: #333"],
body.dark-mode .checkbox-options label span[style*="color:#333"] {
  color: var(--text-primary) !important;
}

body.dark-mode .option-group span[style*="color: #666"],
body.dark-mode .option-group span[style*="color:#666"],
body.dark-mode .radio-option-item label span[style*="color: #666"],
body.dark-mode .radio-option-item label span[style*="color:#666"],
body.dark-mode .checkbox-options label span[style*="color: #666"],
body.dark-mode .checkbox-options label span[style*="color:#666"] {
  color: var(--text-quaternary) !important;
}

/* === FIX POUR LE BACKGROUND DES OPTION-GROUP === */
body.dark-mode .option-group[style*="background-color: rgb(249, 249, 249)"],
body.dark-mode .option-group[style*="background-color:#f9f9f9"],
body.dark-mode .option-group[style*="background-color: #f9f9f9"] {
  background-color: var(--bg-card) !important;
}

/* ============================================
   AMÉLIORATION DES ÉLÉMENTS SÉLECTIONNÉS EN MODE DARK
============================================ */

/* === INPUTS RADIO/CHECKBOX CHECKED === */
body.dark-mode .variation-option input[type="radio"]:checked + .variation-label,
body.dark-mode .option-item input[type="checkbox"]:checked + label,
body.dark-mode .option-item input[type="radio"]:checked + label,
body.dark-mode .radio-option-item input[type="radio"]:checked + label {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.15) 100%) !important;
  border-color: #3B82F6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 2px 8px rgba(59, 130, 246, 0.3) !important;
  transform: scale(1.02);
}

/* Texte des options sélectionnées plus visible */
body.dark-mode .variation-option input[type="radio"]:checked + .variation-label span,
body.dark-mode .option-item input[type="checkbox"]:checked + label span,
body.dark-mode .option-item input[type="radio"]:checked + label span,
body.dark-mode .radio-option-item input[type="radio"]:checked + label span {
  color: #60A5FA !important;
  font-weight: 700 !important;
}

/* === CATEGORY LINK ACTIVE EN MODE DARK === */
body.dark-mode .category-link.active {
  background: var(--fiche-color, #007bff) !important;
  color: white !important;
  box-shadow: 0 2px 12px rgba(var(--fiche-color-rgb, 0, 123, 255), 0.5), 0 0 20px rgba(var(--fiche-color-rgb, 0, 123, 255), 0.3) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-2px) !important;
}

/* === TIMESLOT SÉLECTIONNÉ === */
body.dark-mode .timeslot-option input[type="radio"]:checked + .timeslot-label {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  border-color: #667eea !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5), 0 0 20px rgba(102, 126, 234, 0.3) !important;
  transform: translateY(-3px) !important;
}

/* === VARIATION PRIX SÉLECTIONNÉE === */
body.dark-mode .variation-option input[type="radio"]:checked + .variation-label {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.15) 100%) !important;
  border-color: #3B82F6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 2px 8px rgba(59, 130, 246, 0.3) !important;
}

body.dark-mode .variation-option input[type="radio"]:checked + .variation-label .variation-name {
  color: #60A5FA !important;
  font-weight: 700 !important;
}

body.dark-mode .variation-option input[type="radio"]:checked + .variation-label .variation-price {
  color: #93C5FD !important;
}

/* === HOVER AMÉLIORÉ POUR LES OPTIONS === */
body.dark-mode .variation-label:hover,
body.dark-mode .option-item label:hover,
body.dark-mode .radio-option-item label:hover {
  background: var(--bg-hover) !important;
  border-color: #60A5FA !important;
  transform: translateY(-1px);
}

/* === LABELS DES OPTIONS PLUS VISIBLES === */
body.dark-mode .options-label,
body.dark-mode .variations-label {
  color: var(--text-primary) !important;
  font-weight: 700 !important;
}

/* === MODAL DIVIDER === */
body.dark-mode .modal-divider {
  background: var(--border-primary) !important;
  height: 2px !important;
}

/* === AMÉLIORATION DU CONTRASTE GÉNÉRAL === */
body.dark-mode .product-modal-title {
  color: #F9FAFB !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body.dark-mode .product-main-price {
  color: var(--fiche-color, #3B82F6) !important;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* === CART COUNT BADGE === */
body.dark-mode .cart-count {
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

/* === RÉDUCTION APPLIQUÉE === */
body.dark-mode .reduction-applied {
  background: rgba(16, 185, 129, 0.15) !important;
  border: 2px solid #10B981 !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

/* === MODE BADGE === */
body.dark-mode .mode-badge {
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5), 0 0 20px rgba(102, 126, 234, 0.3);
}

/* === BUTTONS GLOW EFFECT === */
body.dark-mode .add-to-cart-btn,
body.dark-mode .checkout-btn,
body.dark-mode .btn-use-points,
body.dark-mode .btn-full {
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4), 0 0 20px rgba(59, 130, 246, 0.2);
}

body.dark-mode .add-to-cart-btn:hover,
body.dark-mode .checkout-btn:hover,
body.dark-mode .btn-use-points:hover,
body.dark-mode .btn-full:hover {
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5), 0 0 30px rgba(59, 130, 246, 0.3);
}

/* === SUCCESS ELEMENTS === */
body.dark-mode .toast-notification.success {
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4), 0 0 20px rgba(16, 185, 129, 0.2);
}

body.dark-mode .success-icon {
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.5));
}

/* === ERROR ELEMENTS === */
body.dark-mode .toast-notification.error {
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4), 0 0 20px rgba(239, 68, 68, 0.2);
}

/* === FLOATING CART === */
body.dark-mode .cart-button {
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.5), 0 0 20px rgba(59, 130, 246, 0.3);
}

body.dark-mode .cart-button:hover {
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6), 0 0 30px rgba(59, 130, 246, 0.4);
}

/* === AMÉLIORATION LISIBILITÉ PLAT-TITRE === */
body.dark-mode .plat-tit






/* ============================================
   MODE DARK - CHECKOUT.PHP & PANIER.PHP
============================================ */

/* === PANIER - STRUCTURE GÉNÉRALE === */
body.dark-mode .cart-container {
  background-color: transparent !important;
}

body.dark-mode .cart-items {
  background: var(--bg-card) !important;
  box-shadow: var(--shadow-md) !important;
  border: 1px solid var(--border-primary) !important;
}

body.dark-mode .cart-item {
  border-bottom: 1px solid var(--border-primary) !important;
  background-color: transparent !important;
}

body.dark-mode .cart-item:hover {
  background-color: var(--bg-hover) !important;
}

/* === TEXTES DES ITEMS === */
body.dark-mode .item-name {
  color: var(--text-primary) !important;
}

body.dark-mode .item-price {
  color: var(--text-quaternary) !important;
}

body.dark-mode .item-subtotal {
  color: var(--text-primary) !important;
}

body.dark-mode .item-qty {
  color: var(--text-light) !important;
}

body.dark-mode .item-name small.text-muted {
  color: var(--text-muted) !important;
}

/* === SUMMARY ROW === */
body.dark-mode .summary-row {
  color: var(--text-quaternary) !important;
  border-bottom-color: var(--border-primary) !important;
}

body.dark-mode .summary-row strong {
  color: var(--text-primary) !important;
}

body.dark-mode .summary-total {
  border-top-color: var(--border-primary) !important;
  color: var(--text-primary) !important;
}

body.dark-mode .summary-total strong {
  color: #60A5FA !important;
}

/* === SUMMARY TOTAL CHECKOUT === */
body.dark-mode .summary-total-checkout {
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%) !important;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.5) !important;
}

/* === FORMULAIRES === */
body.dark-mode .form-control,
body.dark-mode .form-control-sm,
body.dark-mode .form-control-lg,
body.dark-mode .form-select {
  background-color: var(--bg-input) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-secondary) !important;
}

body.dark-mode .form-control:focus,
body.dark-mode .form-control-sm:focus,
body.dark-mode .form-control-lg:focus,
body.dark-mode .form-select:focus {
  background-color: var(--bg-input) !important;
  border-color: #4A90E2 !important;
  box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25) !important;
}

body.dark-mode .form-control[readonly],
body.dark-mode .form-control-sm[readonly] {
  background-color: var(--bg-disabled) !important;
  color: var(--text-muted) !important;
}

body.dark-mode .form-label {
  color: var(--text-secondary) !important;
}

body.dark-mode .form-check-label {
  color: var(--text-tertiary) !important;
}

body.dark-mode textarea.form-control {
  background-color: var(--bg-input) !important;
  color: var(--text-primary) !important;
}

/* === CART SUMMARY === */
body.dark-mode .cart-summary {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-primary) !important;
  box-shadow: var(--shadow-md) !important;
}

body.dark-mode .cart-summary h5 {
  color: var(--text-primary) !important;
}

/* === MODE RÉCUPÉRATION INFO === */
body.dark-mode .alert-info {
  background: rgba(59, 130, 246, 0.15) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  color: #93C5FD !important;
}

/* === PAYMENT METHOD CARDS === */
body.dark-mode .payment-method-card {
  background: var(--bg-card) !important;
  border: 2px solid var(--border-primary) !important;
}

body.dark-mode .payment-method-card:hover {
  border-color: #4A90E2 !important;
  background: var(--bg-hover) !important;
}

body.dark-mode .payment-method-card.active {
  border-color: #4A90E2 !important;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%) !important;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3) !important;
}

body.dark-mode .payment-method-title {
  color: var(--text-primary) !important;
}

body.dark-mode .payment-method-card.active .payment-method-title {
  color: #60A5FA !important;
}

body.dark-mode .payment-method-subtitle {
  color: var(--text-quaternary) !important;
}

body.dark-mode .payment-method-icon {
  color: var(--text-muted) !important;
}

body.dark-mode .payment-method-card.active .payment-method-icon {
  color: #60A5FA !important;
}

/* === ACCORDÉON CHECKOUT === */
body.dark-mode .accordion-item {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-primary) !important;
}

body.dark-mode .accordion-body {
  background: var(--bg-tertiary) !important;
}

body.dark-mode .custom-accordion-btn {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-card) 100%) !important;
  color: var(--text-primary) !important;
}

body.dark-mode .custom-accordion-btn:not(.collapsed) {
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.5) !important;
}

body.dark-mode .custom-accordion-btn:hover {
  background: var(--bg-hover) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .step-number {
  background: #4A90E2 !important;
  color: white !important;
}

body.dark-mode .custom-accordion-btn:not(.collapsed) .step-number {
  background: white !important;
  color: #4A90E2 !important;
}

/* === STRIPE PAYMENT FORM === */
body.dark-mode .stripe-payment-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

body.dark-mode .payment-header {
  background: rgba(255, 255, 255, 0.15) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

body.dark-mode #stripe-payment-form {
  background: var(--bg-card) !important;
}

body.dark-mode .modern-label {
  color: var(--text-primary) !important;
}

body.dark-mode .modern-input {
  background-color: var(--bg-input) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-secondary) !important;
}

body.dark-mode .modern-input:focus {
  background: var(--bg-card) !important;
  border-color: #667eea !important;
}

body.dark-mode .stripe-element-modern,
body.dark-mode .stripe-input {
  background: var(--bg-input) !important;
  border-color: var(--border-secondary) !important;
}

body.dark-mode .StripeElement {
  background: var(--bg-input) !important;
  border-color: var(--border-secondary) !important;
  color: var(--text-primary) !important;
}

body.dark-mode .StripeElement--focus {
  background: var(--bg-card) !important;
  border-color: #667eea !important;
}

body.dark-mode .payment-security {
  background: var(--bg-tertiary) !important;
  border-top: 1px solid var(--border-primary) !important;
}

body.dark-mode .security-badge {
  color: var(--text-quaternary) !important;
}

/* === CARD CHECKOUT === */
body.dark-mode .card {
  background: var(--bg-card) !important;
}

body.dark-mode .card-body {
  background: transparent !important;
}

body.dark-mode .card h5 {
  color: var(--text-primary) !important;
}

/* === FLATPICKR CALENDAR === */
body.dark-mode .flatpickr-calendar {
  background: var(--bg-card) !important;
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid var(--border-primary) !important;
}

body.dark-mode .flatpickr-months {
  background: var(--bg-tertiary) !important;
}

body.dark-mode .flatpickr-current-month {
  color: var(--text-primary) !important;
}

body.dark-mode .flatpickr-weekday {
  color: var(--text-quaternary) !important;
}

body.dark-mode .flatpickr-day {
  color: var(--text-primary) !important;
}

body.dark-mode .flatpickr-day:hover:not(.selected) {
  background: var(--bg-hover) !important;
  border-color: #4A90E2 !important;
}

body.dark-mode .flatpickr-day.disabled {
  color: var(--text-muted) !important;
}

/* === FIDÉLITÉ BOX === */
body.dark-mode .fidelity-box {
  background: var(--bg-card) !important;
  border: 2px solid var(--border-primary) !important;
  box-shadow: var(--shadow-md) !important;
}

body.dark-mode .fidelity-box-header {
  background: var(--bg-tertiary) !important;
  border-bottom: 1px solid var(--border-primary) !important;
  color: #60A5FA !important;
}

body.dark-mode .fidelity-box-content {
  background: transparent !important;
}

body.dark-mode .fidelity-box-content p {
  color: var(--text-quaternary) !important;
}

body.dark-mode .btn-fidelity-action {
  background: #4A90E2 !important;
  border-color: #4A90E2 !important;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3) !important;
}

body.dark-mode .btn-fidelity-action:hover {
  background: #3a7bc8 !important;
  box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4) !important;
}

body.dark-mode .btn-fidelity-action.outline {
  background: var(--bg-card) !important;
  color: #60A5FA !important;
  border-color: var(--border-secondary) !important;
}

body.dark-mode .btn-fidelity-action.outline:hover {
  background: var(--bg-hover) !important;
}

body.dark-mode .user-name {
  color: var(--text-primary) !important;
}

body.dark-mode .btn-logout {
  color: var(--text-muted) !important;
}

body.dark-mode .btn-logout:hover {
  color: #EF4444 !important;
}

body.dark-mode .fidelity-points {
  background: rgba(255, 193, 7, 0.2) !important;
  color: #FCD34D !important;
}

body.dark-mode .fidelity-box-content.reduction-active {
  background: rgba(16, 185, 129, 0.15) !important;
}

body.dark-mode .reduction-badge strong {
  color: #6EE7B7 !important;
}

body.dark-mode .reduction-value {
  color: #10B981 !important;
}

body.dark-mode .btn-cancel-reduction {
  background: var(--bg-card) !important;
  border-color: var(--border-secondary) !important;
  color: var(--text-quaternary) !important;
}

body.dark-mode .btn-cancel-reduction:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: #EF4444 !important;
  color: #EF4444 !important;
}

/* === MODALES FIDÉLITÉ === */
body.dark-mode .modal {
  background: var(--overlay-medium) !important;
}

body.dark-mode .modal-content {
  background: var(--bg-card) !important;
  box-shadow: var(--shadow-xl) !important;
}

body.dark-mode .modal-header {
  background: var(--bg-card) !important;
}

body.dark-mode .modal-header h2 {
  color: var(--text-primary) !important;
}

body.dark-mode .modal-body {
  background: transparent !important;
}

body.dark-mode .modal-close {
  color: var(--text-quaternary) !important;
  background: transparent !important;
}

body.dark-mode .modal-close:hover {
  color: var(--text-primary) !important;
}

/* === API ADRESSE SUGGESTIONS === */
body.dark-mode #adresse-suggestions {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-primary) !important;
  box-shadow: var(--shadow-lg) !important;
}

body.dark-mode .list-group-item {
  background: var(--bg-card) !important;
  border-bottom: 1px solid var(--border-primary) !important;
  color: var(--text-primary) !important;
}

body.dark-mode .list-group-item:hover {
  background: var(--bg-hover) !important;
}

body.dark-mode .list-group-item strong {
  color: var(--text-primary) !important;
}

body.dark-mode .list-group-item small {
  color: var(--text-quaternary) !important;
}

/* === REDUCTIONS LIST === */
body.dark-mode .reductions-list {
  background: transparent !important;
}

body.dark-mode .reduction-item {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-primary) !important;
}

body.dark-mode .reduction-item:hover {
  border-color: #4A90E2 !important;
  background: var(--bg-hover) !important;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3) !important;
}

body.dark-mode .reduction-info strong {
  color: var(--text-primary) !important;
}

body.dark-mode .reduction-value-badge {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #6EE7B7 !important;
}

body.dark-mode .reduction-cost {
  color: var(--text-muted) !important;
}

body.dark-mode .reduction-select-btn {
  color: #60A5FA !important;
}

body.dark-mode .fidelity-solde-display {
  background: var(--bg-tertiary) !important;
  border: 1px solid var(--border-primary) !important;
  color: var(--text-primary) !important;
}

body.dark-mode .no-reductions,
body.dark-mode .error-message {
  color: var(--text-muted) !important;
}

/* === BUTTONS === */
body.dark-mode .btn-secondary,
body.dark-mode .btn-outline-secondary {
  background: var(--bg-tertiary) !important;
  color: var(--text-tertiary) !important;
  border-color: var(--border-secondary) !important;
}

body.dark-mode .btn-secondary:hover,
body.dark-mode .btn-outline-secondary:hover {
  background: var(--bg-hover) !important;
  color: var(--text-primary) !important;
}

body.dark-mode .btn-validate {
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4) !important;
}

body.dark-mode .btn-confirm-on-site {
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4) !important;
}

/* === TEXT HELPERS === */
body.dark-mode .text-muted,
body.dark-mode small.text-muted {
  color: var(--text-muted) !important;
}

body.dark-mode .text-danger {
  color: #FCA5A5 !important;
}

body.dark-mode .text-success {
  color: #6EE7B7 !important;
}

/* === CHECKOUT ENTRY OVERLAY === */
body.dark-mode .checkout-entry-overlay {
  background: rgba(31, 41, 55, 0.97) !important;
}

body.dark-mode .checkout-entry-content {
  color: #60A5FA !important;
}

body.dark-mode .checkout-entry-content p {
  color: var(--text-quaternary) !important;
}

/* === QUANTITY INPUT === */
body.dark-mode .quantity-input {
  background: var(--bg-input) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-secondary) !important;
}

body.dark-mode .quantity-input:focus {
  border-color: #4A90E2 !important;
  box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25) !important;
}

/* === BADGES === */
body.dark-mode .badge {
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
}

body.dark-mode .badge.bg-secondary {
  background: var(--bg-tertiary) !important;
}

/* === PAYMENT ERROR === */
body.dark-mode .payment-error,
body.dark-mode #card-errors {
  background: rgba(239, 68, 68, 0.0) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: #FCA5A5 !important;
}

/* === MODAL ERROR === */
body.dark-mode .modal-header.bg-danger {
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%) !important;
}

body.dark-mode .modal-footer {
  background: var(--bg-card) !important;
  border-top: 1px solid var(--border-primary) !important;
}

/* === LIENS === */
body.dark-mode a:not(.btn) {
  color: #FFFFFF !important; /*avant 60A5FA*/
}

body.dark-mode a:not(.btn):hover {
  color: #93C5FD !important;
}

/* === HR === */
body.dark-mode hr {
  border-color: var(--border-primary) !important;
  opacity: 1 !important;
}

/* === SPINNER === */
body.dark-mode .spinner-border {
  border-color: rgba(96, 165, 250, 0.3) !important;
  border-top-color: #60A5FA !important;
}

/* === ORDER MODE INFO (style inline dans checkout.php) === */
body.dark-mode div[style*="background: linear-gradient(135deg, #4A90E2"] {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.3) 0%, rgba(53, 122, 189, 0.3) 100%) !important;
  border: 1px solid rgba(74, 144, 226, 0.4) !important;
}

/* === CORRECTIONS STYLES INLINE GÉNÉRAUX === */
body.dark-mode [style*="color: #2c3e50"],
body.dark-mode [style*="color:#2c3e50"],
body.dark-mode [style*="color: #2c3748"],
body.dark-mode [style*="color:#2c3748"] {
  color: var(--text-primary) !important;
}

body.dark-mode [style*="color: #6c757d"],
body.dark-mode [style*="color:#6c757d"],
body.dark-mode [style*="color: #666"],
body.dark-mode [style*="color:#666"] {
  color: var(--text-quaternary) !important;
}

body.dark-mode [style*="background: white"],
body.dark-mode [style*="background-color: white"],
body.dark-mode [style*="background: #fff"],
body.dark-mode [style*="background-color: #fff"],
body.dark-mode [style*="background-color: #ffffff"] {
  background-color: var(--bg-card) !important;
}

body.dark-mode [style*="border: 1px solid #e5e7eb"],
body.dark-mode [style*="border-color: #e5e7eb"] {
  border-color: var(--border-primary) !important;
}

/* === LOADING SPINNER FIDELITY === */
body.dark-mode .fidelity-loading::after {
  border-color: var(--border-primary) !important;
  border-top-color: #60A5FA !important;
}

/* === FORM-CHECK === */
body.dark-mode .form-check-input {
  background-color: var(--bg-input) !important;
  border-color: var(--border-secondary) !important;
}

body.dark-mode .form-check-input:checked {
  background-color: #4A90E2 !important;
  border-color: #4A90E2 !important;
}

body.dark-mode .form-check-input:focus {
  border-color: #4A90E2 !important;
  box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25) !important;
}

/* === AMÉLIORATION LISIBILITÉ H1-H6 === */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
  color: var(--text-primary) !important;
}

/* === SMALL TEXT === */
body.dark-mode small {
  color: var(--text-quaternary) !important;
}

/* === RESPONSIVE MOBILE FIXES === */
@media (max-width: 768px) {
  body.dark-mode .cart-item {
    background-color: transparent !important;
  }
  
  body.dark-mode .delete-btn {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #EF4444 !important;
  }
}


/* ============================================
   CORRECTIONS SPÉCIFIQUES - PANIER & CHECKOUT
============================================ */

/* === BOUTON INSCRIPTION FIDÉLITÉ (PANIER) === */
body.dark-mode .btn-fidelity-action.outline {
  background: var(--bg-card) !important;
  color: #60A5FA !important;
  border: 2px solid var(--border-secondary) !important;
}

body.dark-mode .btn-fidelity-action.outline:hover {
  background: var(--bg-hover) !important;
  border-color: #4A90E2 !important;
  color: #93C5FD !important;
  transform: translateY(-1px) !important;
}

body.dark-mode .btn-fidelity-action.outline i {
  color: #60A5FA !important;
}

/* === DIV COMMENTAIRE DE COMMANDE (CHECKOUT) === */
body.dark-mode div[style*="background: #f8f9fa"],
body.dark-mode div[style*="background:#f8f9fa"] {
  background: var(--bg-tertiary) !important;
}

body.dark-mode div[style*="color: #2c3e50"][style*="font-style: italic"],
body.dark-mode div[style*="color:#2c3e50"][style*="font-style: italic"] {
  color: var(--text-primary) !important;
  background: var(--bg-tertiary) !important;
  border-left-color: #4A90E2 !important;
}

/* Plus général pour tous les éléments avec ce style */
body.dark-mode [style*="background: #f8f9fa"] {
  background: var(--bg-tertiary) !important;
}

body.dark-mode [style*="background-color: #f8f9fa"],
body.dark-mode [style*="background-color:#f8f9fa"] {
  background-color: var(--bg-tertiary) !important;
}

/* Correction pour les divs avec font-style italic et couleur sombre */
body.dark-mode div[style*="font-style: italic"][style*="color: #2c3e50"],
body.dark-mode div[style*="font-style: italic"][style*="color:#2c3e50"] {
  color: var(--text-primary) !important;
}

/* === AMÉLIORATION GÉNÉRALE DES BOUTONS OUTLINE === */
body.dark-mode .btn-outline-primary {
  color: #60A5FA !important;
  border-color: #4A90E2 !important;
}

body.dark-mode .btn-outline-primary:hover {
  background: #4A90E2 !important;
  color: white !important;
}

/* === CORRECTION POUR TOUS LES ÉLÉMENTS AVEC BORDER-LEFT BLEU === */
body.dark-mode [style*="border-left: 3px solid #4A90E2"],
body.dark-mode [style*="border-left:3px solid #4A90E2"] {
  border-left-color: #60A5FA !important;
}

/* === FIX SPÉCIFIQUE POUR LA ZONE COMMENTAIRE === */
body.dark-mode div[style*="padding: 0.75rem"][style*="border-radius: 6px"][style*="border-left"] {
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
  border-left-color: #60A5FA !important;
}


/* ============================================
   MODE DARK - CAC-HEADER.PHP
============================================ */

/* === NAVBAR === */
body.dark-mode .navbar {
  background: var(--bg-card) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
  border-bottom: 1px solid var(--border-primary) !important;
}

body.dark-mode .navbar.navbar-light {
  background: var(--bg-card) !important;
}

body.dark-mode .navbar.bg-white {
  background: var(--bg-card) !important;
}

/* === NAVBAR BRAND & LOGO === */
body.dark-mode .navbar-brand {
  color: var(--text-primary) !important;
}

body.dark-mode .navbar-brand img {
  filter: brightness(1.1) contrast(0.95);
}

/* Si vous avez un logo spécifique pour le dark mode */
body.dark-mode .navbar-brand img[src*="logo-dark.webp"] {
  /* Option 1: Inverser les couleurs du logo dark */
  filter: invert(1) brightness(1.2);
}

/* OU Option 2: Remplacer par un logo light via JavaScript (voir plus bas) */

/* === BOUTON QUITTER LA BOUTIQUE === */
body.dark-mode .btn-outline-secondary {
  background: transparent !important;
  color: var(--text-tertiary) !important;
  border-color: var(--border-secondary) !important;
}

body.dark-mode .btn-outline-secondary:hover {
  background: var(--bg-hover) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-primary) !important;
}

body.dark-mode .btn-outline-secondary i {
  color: var(--text-tertiary) !important;
}

/* === NAV-LINK === */
body.dark-mode .nav-link {
  color: var(--text-tertiary) !important;
}

body.dark-mode .nav-link:hover {
  color: #60A5FA !important;
}

/* === CONTAINER === */
body.dark-mode header .container {
  background: transparent !important;
}

/* === TOAST NOTIFICATIONS === */
body.dark-mode .toast-container {
  z-index: 9999;
}

body.dark-mode .toast {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-primary) !important;
  box-shadow: var(--shadow-lg) !important;
}

body.dark-mode .toast-header {
  background: var(--bg-tertiary) !important;
  border-bottom: 1px solid var(--border-primary) !important;
  color: var(--text-primary) !important;
}

body.dark-mode .toast-header strong {
  color: var(--text-primary) !important;
}

body.dark-mode .toast-body {
  background: var(--bg-card) !important;
  color: var(--text-secondary) !important;
}

body.dark-mode .btn-close {
  filter: invert(1) brightness(1.5);
}

/* === THEME TOGGLE BUTTON === */
body.dark-mode .theme-toggle-btn {
  background: var(--bg-card) !important;
  border: 2px solid var(--border-primary) !important;
  box-shadow: var(--shadow-md) !important;
}

body.dark-mode .theme-toggle-btn:hover {
  box-shadow: var(--shadow-lg) !important;
  border-color: #60A5FA !important;
}

/* === HEADER === */
body.dark-mode header {
  background: transparent !important;
}

/* === SHADOW SM (utilisé dans la navbar) === */
body.dark-mode .shadow-sm {
  box-shadow: 0 .125rem .25rem rgba(0,0,0,.5) !important;
}

/* === CORRECTIONS POUR LES STYLES INLINE === */
body.dark-mode .navbar-brand img[style*="max-width"] {
  /* Le filtre s'applique même avec style inline */
  filter: brightness(1.1) contrast(0.95) !important;
}

/* === AMÉLIORATION RESPONSIVE === */
@media (max-width: 768px) {
  body.dark-mode .navbar {
    padding: 0.5rem 0 !important;
  }
  
  body.dark-mode .theme-toggle-btn {
    background: var(--bg-card) !important;
    border-color: var(--border-primary) !important;
  }
}


/* ============================================
   MODE DARK - CONFIRMATION.PHP
============================================ */

/* === PAGE CONTAINER === */
body.dark-mode .confirmation-container {
  background-color: transparent !important;
}

/* === SUCCESS BANNER === */
body.dark-mode .success-banner {
  background: linear-gradient(135deg, #28a745 0%, #20883a 100%) !important;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.5) !important;
}

body.dark-mode .success-banner h3,
body.dark-mode .success-banner p {
  color: white !important;
}

/* === BANNIÈRE REFUND/ANNULATION === */
body.dark-mode .refund-banner,
body.dark-mode .cancel-banner {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.5) !important;
}

/* === ORDER REFERENCE CARD (Numéro de commande) === */
body.dark-mode .order-reference-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5) !important;
}

body.dark-mode .order-reference-label,
body.dark-mode .order-reference-number,
body.dark-mode .order-reference-subtitle {
  color: white !important;
}

/* === ORDER AMOUNT (Montant total) === */
body.dark-mode .order-amount {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 100%) !important;
  border: 2px solid var(--border-primary) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .order-amount:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .order-amount-label {
  color: var(--text-tertiary) !important;
}

body.dark-mode .order-amount-label i {
  color: #667eea !important;
}

body.dark-mode .order-amount-value {
  color: var(--text-primary) !important;
}

body.dark-mode .order-discount {
  color: #6EE7B7 !important;
}

/* === INFO CARDS === */
body.dark-mode .info-card {
  background: var(--bg-card) !important;
  border: 2px solid var(--border-primary) !important;
  box-shadow: var(--shadow-md) !important;
}

body.dark-mode .info-card-header {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-quaternary) 100%) !important;
  border-bottom: 2px solid var(--border-primary) !important;
}

body.dark-mode .info-card-header h5 {
  color: var(--text-primary) !important;
}

body.dark-mode .info-card-header h5 i {
  color: #60A5FA !important;
}

body.dark-mode .info-card-body {
  background: transparent !important;
}

/* === UPDATE INDICATOR === */
body.dark-mode .update-circle {
  border-color: var(--border-primary) !important;
  border-top-color: #60A5FA !important;
}

body.dark-mode .update-indicator i {
  color: #60A5FA !important;
}

body.dark-mode .update-time-text {
  color: var(--text-quaternary) !important;
}

/* === INFO ROWS === */
body.dark-mode .info-row {
  border-bottom: 1px solid var(--border-primary) !important;
}

body.dark-mode .info-label {
  color: var(--text-quaternary) !important;
}

body.dark-mode .info-value {
  color: var(--text-primary) !important;
}

/* === STATUS CARDS (Préparation, Prêt, etc.) === */
body.dark-mode .status-card {
  background: var(--bg-card) !important;
  border: 2px solid var(--border-primary) !important;
}

body.dark-mode .status-card.pending {
  border-color: rgba(255, 193, 7, 0.5) !important;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.05) 100%) !important;
}

body.dark-mode .status-card.validated {
  border-color: rgba(59, 130, 246, 0.5) !important;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%) !important;
}

body.dark-mode .status-card.ready {
  border-color: rgba(40, 167, 69, 0.5) !important;
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(40, 167, 69, 0.05) 100%) !important;
}

body.dark-mode .status-card.done {
  border-color: rgba(16, 185, 129, 0.5) !important;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%) !important;
}

body.dark-mode .status-icon {
  background: var(--bg-tertiary) !important;
}

body.dark-mode .status-title {
  color: var(--text-primary) !important;
}

body.dark-mode .status-description {
  color: var(--text-quaternary) !important;
}

body.dark-mode .status-time {
  color: var(--text-muted) !important;
}

/* === TIMELINE / STEPPER === */
body.dark-mode .timeline-step {
  background: var(--bg-card) !important;
  border: 2px solid var(--border-primary) !important;
}

body.dark-mode .timeline-step.active {
  border-color: #60A5FA !important;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%) !important;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
}

body.dark-mode .timeline-step.completed {
  border-color: rgba(16, 185, 129, 0.5) !important;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%) !important;
}

body.dark-mode .timeline-connector {
  background: var(--border-primary) !important;
}

body.dark-mode .timeline-connector.completed {
  background: #10B981 !important;
}

body.dark-mode .step-number {
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
  border: 2px solid var(--border-secondary) !important;
}

body.dark-mode .timeline-step.active .step-number {
  background: #60A5FA !important;
  color: white !important;
  border-color: #60A5FA !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5) !important;
}

body.dark-mode .timeline-step.completed .step-number {
  background: #10B981 !important;
  color: white !important;
  border-color: #10B981 !important;
}

body.dark-mode .step-title {
  color: var(--text-primary) !important;
}

body.dark-mode .step-subtitle {
  color: var(--text-quaternary) !important;
}

/* === PRODUITS COMMANDÉS === */
body.dark-mode .product-list {
  background: transparent !important;
}

body.dark-mode .product-item {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-primary) !important;
}

body.dark-mode .product-item:hover {
  background: var(--bg-hover) !important;
}

body.dark-mode .product-name {
  color: var(--text-primary) !important;
}

body.dark-mode .product-details {
  color: var(--text-quaternary) !important;
}

body.dark-mode .product-price {
  color: var(--text-primary) !important;
}

body.dark-mode .product-quantity {
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
}

/* === ADRESSE LIVRAISON === */
body.dark-mode .delivery-address-card {
  background: var(--bg-card) !important;
  border: 2px solid var(--border-primary) !important;
}

body.dark-mode .delivery-address-card .address-text {
  color: var(--text-secondary) !important;
}

/* === CONTACT RESTAURANT === */
body.dark-mode .contact-card {
  background: var(--bg-card) !important;
  border: 2px solid var(--border-primary) !important;
}

body.dark-mode .contact-item {
  color: var(--text-secondary) !important;
}

body.dark-mode .contact-item i {
  color: #60A5FA !important;
}

body.dark-mode .contact-link {
  color: #60A5FA !important;
}

body.dark-mode .contact-link:hover {
  color: #93C5FD !important;
}

/* === FIDÉLITÉ CARD === */
body.dark-mode .fidelity-card {
  background: var(--bg-card) !important;
  border: 2px solid var(--border-primary) !important;
}

body.dark-mode .fidelity-earned {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 193, 7, 0.1) 100%) !important;
  border: 2px solid rgba(255, 193, 7, 0.4) !important;
}

body.dark-mode .fidelity-earned i {
  color: #FCD34D !important;
}

body.dark-mode .fidelity-earned .points-value {
  color: #FCD34D !important;
}

body.dark-mode .fidelity-potential {
  background: linear-gradient(135deg, rgba(156, 163, 175, 0.2) 0%, rgba(156, 163, 175, 0.1) 100%) !important;
  border: 2px solid var(--border-primary) !important;
}

body.dark-mode .fidelity-message {
  color: var(--text-quaternary) !important;
}

/* === BOUTONS === */
body.dark-mode .btn-return {
  background: var(--bg-tertiary) !important;
  color: var(--text-tertiary) !important;
  border: 1px solid var(--border-secondary) !important;
}

body.dark-mode .btn-return:hover {
  background: var(--bg-hover) !important;
  color: var(--text-primary) !important;
}

body.dark-mode .btn-contact {
  background: #4A90E2 !important;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4) !important;
}

body.dark-mode .btn-contact:hover {
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5) !important;
}

/* === BADGES === */
body.dark-mode .badge {
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
}

body.dark-mode .badge.badge-success {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #6EE7B7 !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
}

body.dark-mode .badge.badge-warning {
  background: rgba(255, 193, 7, 0.2) !important;
  color: #FCD34D !important;
  border: 1px solid rgba(255, 193, 7, 0.4) !important;
}

body.dark-mode .badge.badge-info {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #93C5FD !important;
  border: 1px solid rgba(59, 130, 246, 0.4) !important;
}

body.dark-mode .badge.badge-danger {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #FCA5A5 !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
}

/* === ALERTS === */
body.dark-mode .alert {
  background: var(--bg-card) !important;
  border: 2px solid var(--border-primary) !important;
  color: var(--text-primary) !important;
}

body.dark-mode .alert-success {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: #6EE7B7 !important;
}

body.dark-mode .alert-warning {
  background: rgba(255, 193, 7, 0.15) !important;
  border-color: rgba(255, 193, 7, 0.4) !important;
  color: #FCD34D !important;
}

body.dark-mode .alert-info {
  background: rgba(59, 130, 246, 0.15) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
  color: #93C5FD !important;
}

body.dark-mode .alert-danger {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #FCA5A5 !important;
}

/* === QRCODE CARD === */
body.dark-mode .qrcode-card {
  background: var(--bg-card) !important;
  border: 2px solid var(--border-primary) !important;
}

body.dark-mode .qrcode-card img {
  background: white !important;
  padding: 10px !important;
  border-radius: 8px !important;
}

/* === DIVIDERS === */
body.dark-mode .divider,
body.dark-mode hr {
  border-color: var(--border-primary) !important;
  opacity: 1 !important;
}

/* === TEXT HELPERS === */
body.dark-mode .text-muted {
  color: var(--text-muted) !important;
}

body.dark-mode .text-secondary {
  color: var(--text-quaternary) !important;
}

body.dark-mode .text-success {
  color: #6EE7B7 !important;
}

body.dark-mode .text-warning {
  color: #FCD34D !important;
}

body.dark-mode .text-danger {
  color: #FCA5A5 !important;
}

body.dark-mode .text-info {
  color: #93C5FD !important;
}

/* === CONFIRMATION CARD PRINCIPALE === */
body.dark-mode .confirmation-card {
  background: var(--bg-card) !important;
  box-shadow: var(--shadow-lg) !important;
}

/* === AMÉLIORATION LISIBILITÉ === */
body.dark-mode .confirmation-content h1,
body.dark-mode .confirmation-content h2,
body.dark-mode .confirmation-content h3,
body.dark-mode .confirmation-content h4 {
  color: var(--text-primary) !important;
}

body.dark-mode .confirmation-content p {
  color: var(--text-secondary) !important;
}

/* === SPINNER/LOADER === */
body.dark-mode .spinner-border {
  border-color: rgba(96, 165, 250, 0.3) !important;
  border-top-color: #60A5FA !important;
}

/* === PROGRESS BAR === */
body.dark-mode .progress {
  background: var(--bg-tertiary) !important;
}

body.dark-mode .progress-bar {
  background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%) !important;
}

/* === CORRECTIONS STYLES INLINE === */
body.dark-mode [style*="background: white"],
body.dark-mode [style*="background-color: white"],
body.dark-mode [style*="background: #fff"],
body.dark-mode [style*="background-color: #fff"] {
  background-color: var(--bg-card) !important;
}

body.dark-mode [style*="color: #2c3e50"],
body.dark-mode [style*="color:#2c3e50"] {
  color: var(--text-primary) !important;
}

body.dark-mode [style*="color: #6b7280"],
body.dark-mode [style*="color:#6b7280"],
body.dark-mode [style*="color: #495057"],
body.dark-mode [style*="color:#495057"] {
  color: var(--text-quaternary) !important;
}

body.dark-mode [style*="border: 2px solid #e0e0e0"],
body.dark-mode [style*="border:2px solid #e0e0e0"] {
  border-color: var(--border-primary) !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  body.dark-mode .order-reference-card {
    padding: 1.5rem !important;
  }
  
  body.dark-mode .order-amount {
    padding: 1rem 1.25rem !important;
  }
  
  body.dark-mode .info-card-header {
    padding: 0.875rem 1.25rem !important;
  }
}

/* ============================================
   CHECKOUT.PHP
   Tracking Info & Product Items
============================================ */

/* === TRACKING INFO ITEM (Adresse restaurant) === */
body.dark-mode .tracking-info-item {
  background: var(--bg-tertiary) !important;
  padding: 1rem !important;
  border-radius: 8px !important;
  border: 1px solid var(--border-primary) !important;
}

body.dark-mode .tracking-info-item i {
  color: #60A5FA !important;
}

body.dark-mode .tracking-info-item div {
  color: var(--text-primary) !important;
}

body.dark-mode .tracking-info-phone {
  color: var(--text-secondary) !important;
  margin-top: 0.5rem !important;
}

body.dark-mode .tracking-info-phone i {
  color: #60A5FA !important;
}

/* === PRODUCT ITEM (Produits commandés) === */
body.dark-mode .product-item {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-primary) !important;
  padding: 1rem !important;
  border-radius: 8px !important;
  margin-bottom: 0.75rem !important;
}

body.dark-mode .product-item:hover {
  background: var(--bg-hover) !important;
}

/* Titre du produit - surcharge style inline color: #212529 */
body.dark-mode .product-item strong[style*="color: #212529"],
body.dark-mode .product-item strong[style*="color:#212529"] {
  color: var(--text-primary) !important;
}

/* Variante - surcharge style inline color: #6c757d */
body.dark-mode .product-item span[style*="color: #6c757d"],
body.dark-mode .product-item span[style*="color:#6c757d"] {
  color: var(--text-quaternary) !important;
}

/* Options - surcharge divs avec color: #6c757d */
body.dark-mode .product-item div[style*="color: #6c757d"],
body.dark-mode .product-item div[style*="color:#6c757d"] {
  color: var(--text-quaternary) !important;
}

/* Prix des options - surcharge span color: #495057 */
body.dark-mode .product-item span[style*="color: #495057"],
body.dark-mode .product-item span[style*="color:#495057"] {
  color: var(--text-tertiary) !important;
}

/* Prix total - surcharge style inline color: #212529 */
body.dark-mode .product-item .fw-bold[style*="color: #212529"],
body.dark-mode .product-item .fw-bold[style*="color:#212529"],
body.dark-mode .product-item div[style*="color: #212529"][style*="font-size: 1.1rem"],
body.dark-mode .product-item div[style*="color:#212529"][style*="font-size: 1.1rem"] {
  color: var(--text-primary) !important;
}

/* Badge quantité */
body.dark-mode .product-item .badge.bg-secondary {
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-secondary) !important;
}

/* === AMÉLIORATION GÉNÉRALE PRODUCT ITEMS === */
body.dark-mode .product-item .flex-grow-1 {
  color: var(--text-primary) !important;
}

body.dark-mode .product-item .text-end {
  color: var(--text-primary) !important;
}

/* === CORRECTION POUR LES STRONG EN GÉNÉRAL === */
body.dark-mode strong[style*="color: #212529"],
body.dark-mode strong[style*="color:#212529"] {
  color: var(--text-primary) !important;
}

/* === TRACKING SECTION COMPLÈTE === */
body.dark-mode .tracking-section {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-primary) !important;
}

body.dark-mode .tracking-header {
  background: var(--bg-tertiary) !important;
  border-bottom: 1px solid var(--border-primary) !important;
}

body.dark-mode .tracking-header h5,
body.dark-mode .tracking-header h6 {
  color: var(--text-primary) !important;
}

body.dark-mode .tracking-body {
  background: transparent !important;
}

/* === CORRECTIONS SUPPLÉMENTAIRES POUR TEXT-END === */
body.dark-mode .text-end div,
body.dark-mode .text-end span {
  color: inherit !important;
}

body.dark-mode .text-end .fw-bold {
  color: var(--text-primary) !important;
}

/* === SURCHARGE ULTRA-SPÉCIFIQUE POUR LES COULEURS INLINE === */
body.dark-mode [style*="font-size: 0.95rem"][style*="color: #212529"] {
  color: var(--text-primary) !important;
}

body.dark-mode [style*="font-size: 1.1rem"][style*="color: #212529"] {
  color: var(--text-primary) !important;
}

body.dark-mode [style*="font-size: 0.85rem"][style*="color: #6c757d"] {
  color: var(--text-quaternary) !important;
}

body.dark-mode [style*="font-weight: normal"][style*="color: #6c757d"] {
  color: var(--text-quaternary) !important;
}

/* === AMÉLIORATION LISIBILITÉ BADGES === */
body.dark-mode .badge[style*="font-size: 0.8rem"] {
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
}




/**
*	FIN DU MODE DARK ****
**/




/**/
/* BARRE DE MENU - CATEGORIE DES PLATS */
/**/
h1,h2,h3,h4,h5 {
    width: 100%;
}
.card {
    min-height : 0px !important;
}
.category-nav-wrapper {
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0px; /* Ajustez cette valeur selon la hauteur de votre navbar principale */
    z-index: 1020;
}

.category-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
}

.category-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.category-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.category-menu {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.category-item {
    display: inline-block;
}

.category-link {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
}

.category-link:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.category-link.active {
  background: var(--fiche-color, #007bff);
  color: white;
  box-shadow: 0 2px 8px rgba(var(--fiche-color-rgb, 0, 123, 255), 0.3);
}

/* Animation au survol */
.category-link {
    transform: translateY(0);
}

.category-link:hover {
    transform: translateY(-1px);
}


/**/
/* Bulle panier */
/**/
.floating-cart {
    position: fixed;
    right: 2rem;
    top: 15rem;
    z-index: 1025;
}

.cart-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #3B82F6;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    transition: all 0.3s ease;
    position: relative;
}

.cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
    background: #2563EB;
}

.cart-icon {
    width: 24px;
    height: 24px;
    color: white;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #EF4444;
    color: white;
    font-size: 12px;
    font-weight: 600;
    height: 22px;
    width: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Animation d'entrée */
@keyframes slideIn {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.floating-cart {
    animation: slideIn 0.5s ease-out;
}

/* Animation au clic */
.cart-button:active {
    transform: scale(0.95);
}

/* Media Query pour mobile */
@media (max-width: 768px) {
    .floating-cart {
        right: 1rem;
        top: auto;
        bottom: 5rem;
    }

    .cart-button {
        width: 50px;
        height: 50px;
    }

    .cart-icon {
        width: 20px;
        height: 20px;
    }
}




/**/
/* Plat - Item */
/**/
.plat-titre {
    font-weight:bold;
    text-transform:uppercase;
    margin-bottom: 0rem;
    font-size: 18px;
}

.plat-prix {
    font-weight:bold;
    color: #808080;
}

.plat-desc {
    color: #323232;
    font-size: 12px;
}

.plat-image {
  overflow: hidden;
    margin: 0;
}

.plat-image img {
  transition: transform 0.3s;
}

.plat-image img:hover {
  transform: scale(1.1);
}


/**/
/* Modal de confirmation d'ajout au panier */
/**/
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none; /* Caché par défaut */
    z-index: 9999; /* S'assure que le modal est au-dessus de tout */
    pointer-events: none; /* Désactive les interactions par défaut */
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto; /* Réactive les interactions quand visible */
    display: block;
}

.click-collect-modal {
    /*position: fixed;*/
    z-index: 10000; /* Un z-index plus élevé que l'overlay */
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 560px;
    opacity: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.click-collect-modal.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    margin-top: -10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: flex-end;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.btn-close {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-close:hover {
    transform: rotate(90deg);
}

.btn-close svg {
    width: 24px;
    height: 24px;
    color: #6b7280;
}

.modal-body {
    padding: 1.5rem;
}

.product-container {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.product-image {
    flex: 0 0 120px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.02);
}

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

.product-info {
    flex: 1;
    min-width: 200px;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #059669;
    display: block;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.footer-content {
    width: 100%;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.quantity-selector {
    max-width: 100px;
    width: 20%;
    flex: 0 0 120px;
}

.quantity-label {
    display: block;
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.quantity-select {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background-color: white;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    cursor: pointer;
}

.quantity-select:focus {
    outline: none;
    border-color: #3b82f6;
}

.add-to-cart-btn {
    flex: 1;
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 50%;
}

.add-to-cart-btn:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .modal-header, .modal-body, .modal-footer {
        padding: 1rem;
    }

    .product-image {
        flex: 0 0 100px;
    }

    .product-image img {
        height: 100px;
    }

    .quantity-selector {
        flex: 1;
    }

    .footer-content {
        align-items: stretch;
    }

    .add-to-cart-btn {
        padding: 1rem;
    }
}


/**/
/* Page Panier */
/**/
.cart-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.cart-items {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.cart-item {
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

.item-details {
    flex: 1;
    min-width: 0; /* Pour gérer les textes longs */
}

.item-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-price {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-input {
    width: 70px;
    padding: 0.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
    transition: border-color 0.3s ease;
}

.quantity-input:focus {
    outline: none;
    border-color: #4299e1;
}

.update-btn, .delete-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.update-btn {
    color: #4299e1;
}

.delete-btn {
    color: #e53e3e;
}

.update-btn:hover, .delete-btn:hover {
    transform: scale(1.1);
}

.item-subtotal {
    font-weight: 600;
    color: #2d3748;
    min-width: 80px;
    text-align: right;
    margin-bottom: 1rem;
}

.cart-summary {
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    font-size: 1.2rem;
}

.cart-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.continue-btn, .checkout-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.continue-btn {
    background-color: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.checkout-btn {
    background-color: #4299e1;
    color: white;
}

.continue-btn:hover {
    background-color: #edf2f7;
    text-decoration: none;
}

.checkout-btn:hover {
    background-color: #3182ce;
    transform: translateY(-1px);
    text-decoration: none;
}

@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: stretch;
    }

    .item-actions {
        justify-content: space-between;
        margin-top: 1rem;
    }

    .cart-actions {
        flex-direction: column;
    }

    .continue-btn, .checkout-btn {
        width: 100%;
        justify-content: center;
    }
}



/**/
/* Barre indiquant le delai d'attente prévisionnel */
/**/

.alert {
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border: none;
    transition: all 0.3s ease;
}

/* Couleurs selon le temps d'attente */
.alert.time-short {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.alert.time-medium {
    background-color: rgba(255, 193, 7, 0.1);
    color: #cc9a06;
}

.alert.time-long {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}


/**/
/* Page Checkout */
/**/

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 5rem;
}

.checkout-header {
    margin-bottom: 3rem;
}

.checkout-header h1 {
    font-size: 2rem;
    color: #1a202c;
    font-weight: 600;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Section Paiement */
.payment-section {
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.payment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-icon {
    width: 48px;
    height: 48px;
    background: #ebf8ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3182ce;
}

.payment-icon i {
    font-size: 24px;
}

.payment-title h2 {
    font-size: 1.25rem;
    color: #2d3748;
    margin: 0 0 0.5rem;
}

.payment-title p {
    color: #718096;
    margin: 0;
}

.paypal-container {
    min-height: 150px;
}

/* Récapitulatif */
.order-summary {
    position: static;
    top: 2rem;
}

.summary-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.summary-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.summary-header h2 {
    font-size: 1.25rem;
    color: #2d3748;
    margin: 0;
}

.summary-content {
    padding: 1.5rem;
}

.order-items {
    margin-bottom: 1.5rem;
}

.order-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f7fafc;
}

.order-item:last-child {
    border-bottom: none;
}

.item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-name {
    color: #4a5568;
    font-size: 0.95rem;
    flex: 1;
    margin-right: 1rem;
}

.item-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #718096;
    font-size: 0.9rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.total-label {
    font-weight: 600;
    color: #2d3748;
}

.total-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
}

.summary-actions {
    margin-top: 1.5rem;
}

.edit-cart-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    justify-content: center;
}

.edit-cart-btn:hover {
    background: #edf2f7;
    text-decoration: none;
}

@media (max-width: 768px) {
    .checkout-content {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }

    .payment-section {
        order: 2;
    }

    .order-summary {
        order: 1;
    }
}

#phoneNumber:invalid {
    border-color: #dc3545;
}

#phoneNumber:valid {
    border-color: #198754;
}

.timeslot-selector {
    max-width: 600px;
    margin: 0 auto;
}



/**/
/* Page Confirmation */
/**/

.confirmation-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1rem 5rem;
}

.confirmation-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 3rem;
    text-align: center;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    color: #10B981;
    animation: scaleIn 0.5s ease-out 0.2s both;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

.confirmation-content h1 {
    color: #1F2937;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.order-details {
    background: #F9FAFB;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-item.total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #E5E7EB;
    font-weight: 600;
}

.label {
    color: #6B7280;
    font-size: 0.95rem;
}

.value {
    color: #111827;
    font-weight: 500;
}

.total .value {
    color: #059669;
    font-size: 1.25rem;
}

.confirmation-actions {
    margin-top: 2rem;
}

.return-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #3B82F6;
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.return-btn:hover {
    background: #2563EB;
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

.return-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

@media (max-width: 640px) {
    .confirmation-card {
        padding: 2rem 1.5rem;
    }

    .confirmation-content h1 {
        font-size: 1.5rem;
    }

    .order-details {
        padding: 1.5rem;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .value {
        font-size: 1.1rem;
    }
}

/* ============================================
   NOTIFICATIONS TOAST - RÉUTILISABLE
   ============================================ */

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.toast-notification {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast-notification.closing {
    animation: slideOut 0.3s ease-out;
}

/* Types de notifications */
.toast-notification.success {
    background-color: #10B981;
    color: white;
}

.toast-notification.error {
    background-color: #EF4444;
    color: white;
}

.toast-notification.warning {
    background-color: #F59E0B;
    color: white;
}

.toast-notification.info {
    background-color: #3B82F6;
    color: white;
}

.toast-icon {
    flex-shrink: 0;
    font-size: 18px;
}

.toast-message {
    flex: 1;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

/* ============================================
   MODAL FIDÉLITÉ - VÉRIFICATION DATE
   ============================================ */

.fidelity-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.fidelity-modal-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fidelity-modal {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.fidelity-modal h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 20px;
}

.fidelity-modal p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 14px;
}

.fidelity-modal .form-group {
    margin-bottom: 20px;
}

.fidelity-modal label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.fidelity-modal input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.fidelity-modal input[type="date"]:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.fidelity-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.fidelity-modal-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.fidelity-modal-buttons .btn-cancel {
    background-color: #e5e7eb;
    color: #374151;
}

.fidelity-modal-buttons .btn-cancel:hover {
    background-color: #d1d5db;
}

.fidelity-modal-buttons .btn-confirm {
    background-color: #3B82F6;
    color: white;
}

.fidelity-modal-buttons .btn-confirm:hover {
    background-color: #2563eb;
}

.fidelity-modal-buttons .btn-confirm:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* ============================================
   MODULE FIDÉLITÉ - PANIER
   ============================================ */

.fidelity-module {
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.fidelity-module h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.fidelity-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.fidelity-input-group input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.fidelity-input-group input:focus {
    outline: none;
    border-color: #3B82F6;
}

.fidelity-input-group button {
    padding: 10px 20px;
    background-color: #3B82F6;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.fidelity-input-group button:hover {
    background-color: #2563eb;
}

.fidelity-info {
    display: none;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.fidelity-info.show {
    display: block;
}

.fidelity-points {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.fidelity-points strong {
    color: #10B981;
    font-size: 20px;
}

.fidelity-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fidelity-buttons button {
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    width: 100%;
}

.fidelity-buttons .btn-cadeaux {
    background-color: #10B981;
    color: white;
}

.fidelity-buttons .btn-cadeaux:hover {
    background-color: #059669;
}

.fidelity-buttons .btn-register {
    background-color: #f59e0b;
    color: white;
}

.fidelity-buttons .btn-register:hover {
    background-color: #d97706;
}

.fidelity-reductions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.fidelity-reductions h5 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.reduction-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.reduction-item:last-child {
    margin-bottom: 0;
}

.reduction-item:hover {
    background-color: #fef08a;
}

.reduction-item input[type="radio"] {
    margin-right: 12px;
    cursor: pointer;
}

.reduction-item label {
    flex: 1;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reduction-emoji {
    font-size: 16px;
    margin-right: 8px;
}

.reduction-name {
    color: #333;
    font-weight: 500;
}

.reduction-value {
    color: #10B981;
    font-weight: 600;
    font-size: 14px;
}

/* ============================================
   INPUT TÉLÉPHONE - PANIER BAS
   ============================================ */

.phone-section {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.phone-section label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.phone-section input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.phone-section input:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.phone-section input.error {
    border-color: #EF4444;
    background-color: #FEF2F2;
}

/* ============================================
   BOUTON RESET PANIER
   ============================================ */

.btn-reset-cart {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.btn-reset-cart:hover {
    background-color: #dc2626;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .notification-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .fidelity-modal {
        width: 95%;
        padding: 20px;
    }
    
    .fidelity-input-group {
        flex-direction: column;
    }
    
    .fidelity-modal-buttons {
        justify-content: stretch;
    }
    
    .fidelity-modal-buttons button {
        flex: 1;
    }
}
/* ========================================
   SYSTÈME DE FIDÉLITÉ
======================================== */

/* ========================================
   SYSTÈME DE FIDÉLITÉ - STYLE COHÉRENT
======================================== */

/* Section fidélité dans le panier - Style neutre comme cart-summary */
.fidelity-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.fidelity-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.fidelity-header i {
    font-size: 1.25rem;
    color: #3B82F6;
}

.fidelity-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

/* Non connecté */
.fidelity-disconnected {
    text-align: center;
}

.fidelity-info-text {
    margin: 1rem 0;
    color: #718096;
    font-size: 0.95rem;
}

.fidelity-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-fidelity-login,
.btn-fidelity-register {
    padding: 0.75rem 1.5rem;
    border: 1px solid #e2e8f0;
    background: white;
    color: #4a5568;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-fidelity-login:hover,
.btn-fidelity-register:hover {
    background: #3B82F6;
    color: white;
    border-color: #3B82F6;
    transform: translateY(-1px);
}

/* Connecté */
.fidelity-connected,
.fidelity-reduction-active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fidelity-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.fidelity-solde-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.fidelity-solde-badge i {
    color: #f59e0b;
    font-size: 1.25rem;
}

.fidelity-user-name {
    margin: 0;
    color: #718096;
    font-size: 0.875rem;
}

.btn-use-points {
    width: 100%;
    padding: 0.875rem;
    background: #3B82F6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-use-points:hover {
    background: #2563EB;
    transform: translateY(-1px);
}

/* Réduction appliquée */
.reduction-applied {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    border-radius: 8px;
}

.reduction-icon {
    font-size: 1.5rem;
    color: #10b981;
}

.reduction-details {
    flex: 1;
}

.reduction-details strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: #065f46;
}

.reduction-value {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #10b981;
}

.btn-cancel-reduction {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.btn-cancel-reduction:hover {
    transform: scale(1.1);
}

/* Récapitulatif avec réduction */
.summary-discount {
    color: #10b981 !important;
    font-weight: 600;
}

.discount-value {
    color: #10b981 !important;
}

/* Modales - Style cohérent */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
	max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #1f2937;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.5rem;
}

.modal-close:hover {
    color: #4b5563;
}

.modal-body {
    padding: 1.5rem;
}

/* Formulaires modales */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-full {
    width: 100%;
    padding: 0.875rem;
    font-size: 0.95rem;
    background: #3B82F6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-full:hover {
    background: #2563EB;
}

/* Liste des réductions */
.fidelity-solde-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f7fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.fidelity-solde-display i {
    color: #f59e0b;
    font-size: 1.25rem;
}

.reductions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reduction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reduction-item:hover {
    border-color: #3B82F6;
    background: #f0f9ff;
    transform: translateX(3px);
}

.reduction-emoji {
    font-size: 2rem;
    flex-shrink: 0;
}

.reduction-info {
    flex: 1;
}

.reduction-info strong {
    display: block;
    color: #1f2937;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.reduction-value-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #d1fae5;
    color: #065f46;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0.25rem 0;
}

.reduction-cost {
    margin: 0.25rem 0 0 0;
    color: #9ca3af;
    font-size: 0.875rem;
}

.reduction-select-btn {
    font-size: 1.25rem;
    color: #3B82F6;
}

.no-reductions,
.error-message {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
}

.no-reductions i,
.error-message i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: #3B82F6;
}

.loading-spinner i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .fidelity-buttons {
        flex-direction: column;
    }
    
    .btn-fidelity-login,
    .btn-fidelity-register {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   CHECKOUT - MODE DE COMMANDE
======================================== */

.order-mode-info {
    background: #f7fafc;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
}

.mode-badge i {
    font-size: 1.25rem;
}

.waiting-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 600;
}

.waiting-time.time-short {
    background: #d4edda;
    color: #155724;
}

.waiting-time.time-medium {
    background: #fff3cd;
    color: #856404;
}

.waiting-time.time-long {
    background: #f8d7da;
    color: #721c24;
}

/* ========================================
   CHECKOUT - FORMULAIRES
======================================== */

.checkout-form {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checkout-form h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    color: #2d3748;
}

.section-title {
    font-size: 1.25rem;
    color: #2d3748;
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-group {
    margin: 1.25rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    cursor: pointer;
}

.checkbox-label a {
    color: #667eea;
    text-decoration: underline;
}

/* ========================================
   CHECKOUT - CRÉNEAUX
======================================== */

.timeslots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.timeslot-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.timeslot-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.timeslot-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.timeslot-option input[type="radio"]:checked + .timeslot-label {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.timeslot-option:hover .timeslot-label {
    border-color: #667eea;
    background: #f7fafc;
}

.timeslot-option input[type="radio"]:checked + .timeslot-label:hover {
    background: #667eea;
}

/* ========================================
   CHECKOUT - RÉCAPITULATIF
======================================== */

.checkout-summary {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checkout-summary h2 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: #2d3748;
}

.summary-items {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.item-name {
    flex: 1;
    color: #2d3748;
}

.item-qty {
    color: #718096;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.item-price {
    font-weight: 600;
    color: #2d3748;
}

.summary-totals {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.summary-row.summary-discount {
    color: #48bb78;
    font-weight: 600;
}

.summary-row.summary-total {
    font-size: 1.25rem;
    font-weight: 700;
    padding-top: 0.75rem;
    border-top: 2px solid #e2e8f0;
    margin-top: 0.5rem;
}

.total-value {
    color: #667eea;
}

/* ========================================
   CHECKOUT - PAYPAL
======================================== */

#paypal-button-container {
    margin: 1.5rem 0;
}

.payment-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 12px;
    color: #718096;
    font-size: 0.9rem;
}

.payment-info i {
    font-size: 1.25rem;
    color: #48bb78;
}

/* ========================================
   ALERTS
======================================== */

.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert i {
    font-size: 1.5rem;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ========================================
   RESPONSIVE - CHECKOUT
======================================== */

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .timeslots-container {
        grid-template-columns: 1fr;
    }
    
    .checkout-form,
    .checkout-summary {
        padding: 1rem;
    }
    
    .order-mode-info {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .mode-badge {
        width: 100%;
        justify-content: center;
    }
    
    .summary-row {
        font-size: 0.9rem;
    }
    
    .summary-row.summary-total {
        font-size: 1.1rem;
    }
}


/* =========================================================
   MODAL CHOIX DU MODE (GLOBAL POUR INDEX ET PANIER)
   ========================================================= */

.mode-choice-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.mode-choice-content {
    background: white;
    border-radius: 24px;
    padding: 35px 25px;
    width: 100%;
    max-width: 450px;   /* Taille Smartphone/Tablette */
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    text-align: center;
    animation: slideUp 0.4s ease;
    position: relative;
}

/* Sur écran large : On élargit la box pour aligner les boutons */
@media (min-width: 768px) {
    .mode-choice-content {
        max-width: 750px;
        padding: 50px;
    }
}

/* --- ANIMATION SCÈNE URBAINE --- */
.mode-choice-scene {
    position: relative;
    height: 110px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 15px 15px 15px;
    margin-bottom: 30px;
    overflow: hidden;
}

.scene-bg {
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    font-size: 1.8rem;
    opacity: 0.3;
    z-index: 1;
}

.scene-restaurant, .scene-client {
    font-size: 2.8rem;
    z-index: 3;
    line-height: 1;
}

.scene-road {
    flex: 1;
    position: relative;
    height: 40px;
    margin: 0 15px;
    border-bottom: 3px dashed #9ca3af;
    z-index: 2;
}

.scene-scooter, .scene-bike {
    position: absolute;
    font-size: 1.8rem;
    bottom: -12px;
}

.scene-scooter {
    /* Le scaleX(-1) fait pivoter le scooter de gauche vers la droite */
    animation: driveRight 3.5s ease-in-out infinite;
}

.scene-bike {
    animation: rideLeft 3.5s ease-in-out infinite;
    animation-delay: 1.75s; /* Décalage pour créer un chassé-croisé fluide */
}

.scene-question {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: var(--fiche-color, #007bff);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 4;
    animation: pulseQuestion 2s infinite ease-in-out;
}

@keyframes driveRight {
    0%   { left: 0; transform: scaleX(-1) translateY(0); opacity: 0; }
    10%  { opacity: 1; }
    35%  { left: 38%; transform: scaleX(-1) translateY(-3px); opacity: 1; }
    45%  { left: 45%; transform: scaleX(-1) translateY(0); opacity: 0; }
    100% { left: 45%; transform: scaleX(-1) translateY(0); opacity: 0; }
}

@keyframes rideLeft {
    0%   { right: 0; transform: translateY(0); opacity: 0; }
    10%  { opacity: 1; }
    35%  { right: 38%; transform: translateY(-3px); opacity: 1; }
    45%  { right: 45%; transform: translateY(0); opacity: 0; }
    100% { right: 45%; transform: translateY(0); opacity: 0; }
}

@keyframes pulseQuestion {
    0%, 100% { transform: translateX(-50%) scale(1); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
    50% { transform: translateX(-50%) scale(1.15); box-shadow: 0 6px 16px rgba(0,0,0,0.25); }
}

/* --- BOUTONS ADAPTATIFS --- */
.mode-choice-content h2 { margin: 0 0 10px 0; font-size: 1.6rem; color: #1f2937; }
.mode-choice-content p { color: #6b7280; font-size: 1rem; margin-bottom: 25px; }

.mode-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 768px) {
    .mode-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
}

.mode-btn {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

@media (min-width: 768px) {
    .mode-btn {
        flex: 1;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px 15px;
    }
}

.mode-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.mode-btn-asap:hover   { border-color: #f59e0b; background: #fffbeb; }
.mode-btn-creneaux:hover { border-color: #3b82f6; background: #eff6ff; }
.mode-btn-delivery:hover { border-color: #667eea; background: #f0f5ff; }

.mode-btn-icon {
    width: 55px; height: 55px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.mode-btn-asap .mode-btn-icon { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: white; }
.mode-btn-creneaux .mode-btn-icon { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); color: white; }
.mode-btn-delivery .mode-btn-icon { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }

.mode-btn-text strong { display: block; font-size: 1.1rem; color: #1f2937; margin-bottom: 4px; }


/* Options multi-quantité (modal produit) */
.option-qty-item{
  position: relative;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 140px;
  cursor: pointer;
  background: #fff;
  user-select: none;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.option-qty-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}
.option-qty-item.active{
  border-color: var(--fiche-color, #007bff);
  box-shadow: 0 0 0 3px rgba(var(--fiche-color-rgb, 0, 123, 255), .18);
}
.option-qty-badge{
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--fiche-color, #007bff);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(0,0,0,.15);
}
.option-qty-item.active .option-qty-badge{
  display: flex;
}
.option-qty-sub{
  display:block;
  font-size:.8rem;
  color:#6b7280;
  margin-top:2px;
}

/* =========================================================
   STYLES MODERNES POUR LES BOUTONS DE MODE (NOUVEAU THEME)
   ========================================================= */

/* Réinitialiser l'opacité et les styles par défaut */
.mode-btn:disabled, 
.mode-btn[disabled],
body.dark-mode .mode-btn:disabled,
html[data-bs-theme="dark"] .mode-btn:disabled {
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Base du texte à l'intérieur des cartes */
.mode-btn-text strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #ffffff !important;
}

.mode-sub-status {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.95) !important;
}

.mode-btn-text small {
    display: block;
    font-size: 0.75rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.75) !important;
}

/* ----------------------------------
   1. DISPONIBLE (VERT FONCÉ)
   ---------------------------------- */
.mode-btn:not(:disabled),
.mode-btn.mode-btn-advance {
    border: 2px solid #22c55e !important;
    background: rgba(22, 101, 52, 0.2) !important;
}
.mode-btn:not(:disabled):hover,
.mode-btn.mode-btn-advance:hover {
    background: rgba(20, 83, 45, 0.9) !important;
    border-color: #4ade80 !important;
}
.mode-btn:not(:disabled) .mode-btn-icon,
.mode-btn.mode-btn-advance .mode-btn-icon { 
    background: rgba(255, 255, 255, 0.15) !important; 
    color: #ffffff !important; 
}

/* ----------------------------------
   2. EN PAUSE / SURCHARGE (ORANGE FONCÉ)
   ---------------------------------- */
.mode-btn.mode-btn-paused {
    border: 2px solid #ea580c !important;
    background: rgba(154, 52, 18, 0.2) !important;
}
.mode-btn.mode-btn-paused .mode-btn-icon { 
    background: rgba(255, 255, 255, 0.15) !important; 
    color: #ffffff !important; 
}

/* ----------------------------------
   3. FERMÉ (ROUGE FONCÉ)
   ---------------------------------- */
.mode-btn.mode-btn-closed {
    border: 2px solid #ef4444 !important;
    background: rgba(127, 29, 29, 0.2) !important; /* 80% d'opacité */
    backdrop-filter: blur(8px);
}
.mode-btn.mode-btn-closed .mode-btn-icon { 
    background: rgba(255, 255, 255, 0.15) !important; 
    color: #ffffff !important; 
}

/* Ajustement pour le texte sans icône (centrage parfait) */
.mode-btn {
    justify-content: center !important;
    text-align: center !important;
    padding: 15px 10px !important;
}

.mode-btn-text {
    width: 100%;
}

/* Nettoyage : On force la disparition des anciens emojis/alertes s'il en reste */
.status-alert { display: none !important; }

