:root {
  /* Couleurs principales - Charte FaitMaison */
  --primary: #06C167;
  --primary-dark: #047A45;
  --primary-light: #7AE1B7;
  --primary-soft: #EAFBF3;
  --secondary: #2BB3A3;
  --secondary-dark: #117A73;
  --secondary-light: #DDF8F3;
  --primary-gold: var(--secondary);
  --primary-gold-dark: var(--secondary-dark);
  --primary-gold-light: var(--secondary-light);
  --accent-gold: var(--secondary);
  --accent-red: #E5484D;
  --accent-blue: #2563EB;
  
  /* Couleurs de fond */
  --bg-white: #FFFFFF;
  --bg-light: #F7F8F5;
  --bg-cream: #FFF8EA;
  --bg-dark: #1A1A1A;
  --bg-gray: #F5F5F5;
  
  /* Couleurs de texte */
  --text-dark: #2C2C2C;
  --text-gray: #666666;
  --text-light: #999999;
  --text-white: #FFFFFF;
  
  /* Couleurs de statut */
  --success: #0F9F68;
  --warning: #D97706;
  --error: #DC2626;
  --info: #2563EB;
  
  /* Ombres */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.18);
  
  /* Espacements */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 50%;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Typographie */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 32px;
  --font-size-4xl: 48px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: var(--font-size-base);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  gap: var(--spacing-sm);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--bg-white);
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary-soft);
  color: var(--primary-dark);
}

/* Skip link (navigation clavier) */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-white);
  color: var(--text-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-200%);
  transition: transform var(--transition-fast);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

.btn-sm {
  padding: 8px 16px;
  font-size: var(--font-size-sm);
}

.btn-lg {
  padding: 16px 32px;
  font-size: var(--font-size-lg);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Cards */
.card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-lg);
  transition: all var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

/* Inputs */
.input-group {
  margin-bottom: var(--spacing-md);
}

.input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--text-dark);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 2px solid #E0E0E0;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-family: var(--font-family);
  transition: border-color var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 193, 103, 0.14);
}

/* Accessibilité clavier: focus visible cohérent */
:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid rgba(6, 193, 103, 0.45);
  outline-offset: 2px;
}

/* Réduire les animations si l'utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--spacing-lg);
}

/* Grid */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}

.col {
  flex: 1;
  padding: 0 12px;
}

.col-2 { flex: 0 0 16.666%; max-width: 16.666%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-8 { flex: 0 0 66.666%; max-width: 66.666%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* Spacing utilities */
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.p-1 { padding: var(--spacing-sm); }
.p-2 { padding: var(--spacing-md); }
.p-3 { padding: var(--spacing-lg); }
.p-4 { padding: var(--spacing-xl); }

/* Text utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-gold { color: var(--secondary); }
.text-white { color: var(--text-white); }
.text-gray { color: var(--text-gray); }
.text-muted { color: var(--text-gray); }
.text-danger { color: var(--error); }
.text-success { color: var(--success); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-normal { font-weight: 400; }

/* Display utilities */
.d-none { display: none !important; }
.is-hidden { display: none !important; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-grid { display: grid; }

.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-1 { gap: var(--spacing-sm); }
.gap-2 { gap: var(--spacing-md); }
.gap-3 { gap: var(--spacing-lg); }
.gap-4 { gap: var(--spacing-xl); }

.mt-page { margin-top: 96px; }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }
.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.p-card { padding: 20px; }

.stack-xs,
.stack-sm,
.stack-md,
.stack-lg {
  display: grid;
}

.stack-xs { gap: var(--spacing-xs); }
.stack-sm { gap: var(--spacing-sm); }
.stack-md { gap: var(--spacing-md); }
.stack-lg { gap: var(--spacing-lg); }

.form-label,
.fm-field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 700;
}

.form-hint {
  margin-top: 6px;
  color: var(--text-gray);
  font-size: var(--font-size-sm);
}

.form-error {
  margin: 0;
  color: var(--error);
  font-size: var(--font-size-sm);
  font-weight: 700;
}

.static-page-shell {
  margin-top: 96px;
  padding: 24px 0;
}

.static-page-card {
  padding: 24px;
}

.static-page-title {
  margin-bottom: 10px;
}

.static-page-copy {
  color: var(--text-gray);
  margin: 0;
}

.fm-summary-box {
  background: var(--surface-muted, var(--bg-light));
  padding: 14px 16px;
  border: 1px solid var(--border-subtle, #E2E8DD);
  border-radius: 14px;
}

.fm-summary-title {
  margin-bottom: 4px;
  font-weight: 800;
}

.fm-full-width {
  width: 100%;
}

.fm-loading-center {
  display: grid;
  place-items: center;
  gap: var(--spacing-md);
  padding: 100px 0;
  text-align: center;
}

.fm-loading-center .spinner {
  margin: 0 auto;
}

.leaflet-popup-panel {
  min-width: 200px;
  padding: 10px;
}

.leaflet-popup-title {
  margin: 0 0 8px;
  font-size: 16px;
}

.leaflet-popup-meta {
  margin: 4px 0;
  color: var(--text-gray);
}

.leaflet-popup-action {
  margin-top: 8px;
  padding: 8px 16px;
  border: 0;
  border-radius: var(--radius-control, 10px);
  background: var(--primary);
  color: var(--text-white);
  cursor: pointer;
  font-weight: 700;
}

.legend-marker--chef { background: var(--primary); }
.legend-marker--user { background: var(--info); }

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.actions-end {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.catalog-list,
.profile-dish-grid {
  display: grid;
  gap: 14px;
}

.catalog-card {
  padding: 18px;
}

.catalog-card-header,
.catalog-card-actions,
.profile-dish-header,
.message-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.catalog-card-header,
.profile-dish-header,
.message-row {
  justify-content: space-between;
}

.catalog-card-header,
.profile-dish-card {
  align-items: flex-start;
}

.catalog-card-actions {
  margin-top: 12px;
  justify-content: flex-end;
}

.catalog-item-title,
.profile-dish-title,
.message-title,
.message-thread-title {
  font-weight: 900;
}

.catalog-item-title,
.profile-dish-title,
.catalog-card-price,
.profile-dish-price {
  font-size: 18px;
}

.catalog-item-meta,
.profile-dish-meta,
.message-time,
.message-preview,
.inline-state {
  color: var(--text-gray);
}

.catalog-item-meta,
.profile-dish-meta,
.message-preview {
  margin-top: 6px;
}

.catalog-card-price,
.profile-dish-price {
  color: var(--primary-dark);
  font-weight: 900;
}

.status-pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.status-pill--available {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.status-pill--unavailable {
  background: #FFF1F2;
  color: var(--error);
}

.card-error {
  border-left: 4px solid var(--error);
}

.profile-shell {
  margin-top: 96px;
  padding: 24px 0;
}

.profile-card,
.profile-dish-card {
  padding: 18px;
}

.profile-section {
  margin-top: 16px;
}

.profile-section-title {
  margin: 18px 0 12px;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border: 4px solid var(--primary);
  border-radius: 50%;
  object-fit: cover;
}

.profile-copy {
  flex: 1;
  min-width: 240px;
}

.profile-copy h1 {
  margin: 0;
}

.profile-bio {
  margin-top: 10px;
  color: var(--text-gray);
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-dish-card {
  display: flex;
  gap: 14px;
}

.profile-dish-image {
  width: 120px;
  height: 90px;
  border-radius: 14px;
  object-fit: cover;
}

.profile-dish-body {
  flex: 1;
}

.message-conversation {
  width: 100%;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.message-conversation--unread {
  border-left: 4px solid var(--primary);
}

.message-time {
  font-weight: 700;
}

.message-bubble {
  max-width: 75%;
  padding: 12px;
  border-radius: 14px;
}

.message-bubble--mine {
  margin-left: auto;
  background: var(--primary);
  color: var(--text-white);
}

.message-bubble--other {
  margin-right: auto;
  background: var(--surface-muted, var(--bg-light));
  color: var(--text-dark);
}

.message-content {
  white-space: pre-wrap;
}

.message-meta {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.85;
}

.inline-state--error {
  color: var(--error);
  font-weight: 800;
}

@media (max-width: 680px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .profile-dish-card {
    flex-direction: column;
  }

  .profile-dish-image {
    width: 100%;
    height: 180px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .col,
  .col-2,
  .col-3,
  .col-4,
  .col-6,
  .col-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
  
  .container {
    padding: 0 var(--spacing-md);
  }
}

/* Loading spinner */
.spinner {
  border: 3px solid rgba(184, 134, 11, 0.1);
  border-top: 3px solid var(--primary-gold);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  animation: slideIn 0.3s ease;
}

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

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

.toast-success {
  border-left: 4px solid var(--success);
}

.toast-error {
  border-left: 4px solid var(--error);
}

.toast-warning {
  border-left: 4px solid var(--warning);
}

.toast-info {
  border-left: 4px solid var(--info);
}

/* Pages Plats & Cuisiniers */
.page-hero {
  text-align: center;
  padding: 100px 40px;
  margin-bottom: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--secondary-light) 100%);
  background-size: 200% 200%;
  animation: gradient-shift 10s ease infinite;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(6, 193, 103, 0.3);
}

/* Grille d'images de fond pour page-hero */
.page-hero-background-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  z-index: 0;
}

.page-hero-bg-item {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: zoomRotate 25s ease-in-out infinite;
  animation-delay: calc(var(--item-index, 0) * 1.5s);
}

.page-hero-bg-item:nth-child(1) { --item-index: 0; }
.page-hero-bg-item:nth-child(2) { --item-index: 1; }
.page-hero-bg-item:nth-child(3) { --item-index: 2; }
.page-hero-bg-item:nth-child(4) { --item-index: 3; }

.page-hero-bg-chef-1 { background-image: url('/Photos Plats/chef1.jpg'); }
.page-hero-bg-chef-2 { background-image: url('/Photos Plats/chef2.jpg'); }

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 193, 103, 0.66) 0%, rgba(4, 122, 69, 0.64) 58%, rgba(245, 168, 0, 0.54) 100%);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

/* Grille à 2 colonnes pour page devenir cuisinier */
.page-hero-two-images {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr;
}

/* Thème orangé pour page devenir cuisinier */
.page-hero-devenir .page-hero-overlay {
  background: linear-gradient(135deg, rgba(255, 94, 77, 0.6) 0%, rgba(255, 154, 68, 0.6) 100%);
}

/* Thème marketplace pour la page cuisiniers */
.page-cuisiniers .page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 58%, var(--secondary) 100%);
  box-shadow: 0 20px 60px rgba(6, 193, 103, 0.24);
}

.page-cuisiniers .page-hero-overlay {
  background: linear-gradient(135deg, rgba(4, 122, 69, 0.64) 0%, rgba(6, 193, 103, 0.54) 55%, rgba(245, 168, 0, 0.42) 100%);
}

.page-cuisiniers .page-hero::after {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 248, 230, 0.18) 50%, transparent 100%);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.12) 0%, transparent 50%);
  animation: float-particles 20s ease-in-out infinite;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
  animation: shimmer-hero 3s ease-in-out infinite;
}

@keyframes float-particles {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

@keyframes shimmer-hero {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.page-hero h1 {
  font-size: 56px;
  font-weight: 900;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
  line-height: 1.1;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}

.page-hero p {
  font-size: 20px;
  color: rgba(255,255,255,0.95);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
  font-weight: 400;
}

.filters-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  background: white;
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid rgba(6, 193, 103, 0.08);
}

.search-box {
  flex: 1;
  min-width: 280px;
  position: relative;
}

.search-box::before {
  content: '🔍';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
  z-index: 1;
}

.search-input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fafafa;
  font-weight: 500;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 8px 24px rgba(6, 193, 103, 0.12);
  transform: translateY(-2px);
}

.filter-select {
  padding: 16px 20px;
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  background: #fafafa;
  cursor: pointer;
  min-width: 200px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #333;
}

.filter-select:hover,
.filter-select:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 8px 24px rgba(6, 193, 103, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.plats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.plat-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(0,0,0,0.04);
}

.plat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(6, 193, 103, 0.02) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.plat-content {
  position: relative;
  z-index: 2;
}

.plat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(6, 193, 103, 0.2);
  border-color: rgba(6, 193, 103, 0.1);
}

.plat-card:hover::after {
  background: linear-gradient(to top, rgba(6, 193, 103, 0.04) 0%, transparent 100%);
}

.plat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 50%, var(--secondary-light) 100%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.plat-card:hover::before {
  opacity: 1;
  animation: gradient-slide 2s linear infinite;
}

@keyframes gradient-slide {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.plat-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.plat-card:hover .plat-image {
  transform: scale(1.08);
  filter: brightness(1.05) saturate(1.1);
}

.plat-content {
  padding: 24px;
}

.plat-content h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #1a1a1a;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.plat-description {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}

.plat-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(6, 193, 103, 0.05) 0%, rgba(240, 147, 251, 0.05) 100%);
  border-radius: 12px;
}

.plat-category {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}

.plat-meta .plat-price {
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.plat-chef {
  font-size: var(--font-size-sm);
  color: var(--text-gray);
  margin-bottom: var(--spacing-md);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xl);
}

.pagination-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid var(--primary-gold);
  background: white;
  color: var(--primary-gold);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-normal);
}

.pagination-btn:hover,
.pagination-btn.active {
  background: var(--primary-gold);
  color: white;
}

.cuisiniers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
  padding-top: 20px;
}

.cuisinier-card {
  background: white;
  border-radius: 24px;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0,0,0,0.04);
}

.cuisinier-header {
  height: 160px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--secondary-light) 100%);
  background-size: 200% 200%;
  animation: gradient-shift 12s ease infinite;
  position: relative;
  overflow: hidden;
}

.cuisinier-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.2) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.15) 0%, transparent 50%);
}

.cuisinier-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255,255,255,0.03) 10px,
    rgba(255,255,255,0.03) 20px
  );
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.cuisinier-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(6, 193, 103, 0.2);
  border-color: rgba(6, 193, 103, 0.1);
}

.cuisinier-card:hover .cuisinier-header {
  animation: gradient-shift 3s ease infinite;
}

.cuisinier-card .cuisinier-avatar {
  position: relative;
  margin-top: -80px;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  z-index: 3;
}

.cuisinier-card .cuisinier-avatar img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid white;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.cuisinier-card:hover .cuisinier-avatar img {
  transform: scale(1.08);
  box-shadow: 0 16px 50px rgba(6, 193, 103, 0.3);
}

.cuisinier-card .cuisinier-info {
  padding: 0 32px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.cuisinier-card .cuisinier-info h3 {
  font-size: 26px;
  margin: 0;
  color: #1a1a1a;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.cuisinier-card .cuisinier-specialite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 184, 0, 0.14);
  border: 1px solid rgba(255, 184, 0, 0.22);
  color: #6b4a00;
  font-weight: 800;
  font-size: 14px;
  margin: 8px 0 12px;
}

.cuisinier-card .cuisinier-bio {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 18px;
  min-height: 48px;
  max-width: 46ch;
}

.cuisinier-card .cuisinier-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 28px;
  padding: 24px 0;
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.10) 0%, rgba(4, 122, 69, 0.06) 100%);
  border-radius: 16px;
}

.cuisinier-card .stat {
  text-align: center;
}

.cuisinier-card .stat-value {
  display: block;
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}

.page-cuisiniers .cuisinier-avatar img {
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 44px rgba(184, 134, 11, 0.22);
}

.page-cuisiniers .cuisinier-card:hover .cuisinier-avatar img {
  box-shadow: 0 18px 58px rgba(184, 134, 11, 0.32);
}

.page-cuisiniers .cuisinier-card .btn.btn-primary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  color: #1a1a1a;
  box-shadow: 0 10px 26px rgba(184, 134, 11, 0.22);
}

.page-cuisiniers .cuisinier-card .btn.btn-primary:hover {
  background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
  box-shadow: 0 14px 34px rgba(184, 134, 11, 0.30);
}

.cuisinier-card .stat-label {
  font-size: 13px;
  color: #999;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
  .page-hero h1 {
    font-size: 36px;
  }
  
  .page-hero {
    padding: 40px 20px;
  }
  
  .cuisiniers-grid {
    grid-template-columns: 1fr;
    gap: 60px 0;
  }
  
  .plats-grid {
    grid-template-columns: 1fr;
  }
  
  .filters-bar {
    flex-direction: column;
  }
  
  .filter-select,
  .search-box {
    width: 100%;
    min-width: 100%;
  }
}

/* Page Devenir Cuisinier */
.info-section {
  background: var(--bg-cream);
  padding: var(--spacing-xxl);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-xxl);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
}

.benefit-card {
  background: white;
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.benefit-icon {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--spacing-md);
}

.signup-section {
  margin-bottom: var(--spacing-xxl);
}

.signup-section h2 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xxl);
}

.step {
  text-align: center;
  padding: var(--spacing-xl);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary-gold);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin: 0 auto var(--spacing-md);
}

.cta-section {
  text-align: center;
  padding: var(--spacing-xxl);
  background: var(--bg-light);
  border-radius: var(--radius-lg);
}

.btn-large {
  font-size: var(--font-size-xl);
  padding: var(--spacing-lg) var(--spacing-xxl);
}

.faq-section {
  margin-bottom: var(--spacing-xxl);
}

.faq-section h2 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.faq-item {
  background: white;
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-sm);
}

.faq-item h3 {
  color: var(--primary-gold);
  margin-bottom: var(--spacing-sm);
}

.empty-state {
  text-align: center;
  padding: var(--spacing-xxl);
  color: var(--text-gray);
}

.empty-state h3 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-md);
}

.loading {
  text-align: center;
  padding: var(--spacing-xxl);
  font-size: var(--font-size-xl);
}

.error-message {
  text-align: center;
  padding: var(--spacing-xxl);
  background: #fee;
  border-radius: var(--radius-lg);
  color: var(--error);
}

/* Hero moderne type Uber Eats */
.hero {
  background: #1a1a1a !important;
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
  min-height: 700px;
  display: flex;
  align-items: center;
}

/* Grille d'images en fond */
.hero-background-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 100%;
  opacity: 1;
  z-index: 1;
}

.hero-bg-item {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: all 0.6s ease;
  filter: saturate(1.4);
}

.hero-bg-item:hover {
  transform: scale(1.2);
  filter: saturate(1.6) brightness(1.1);
  z-index: 2;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

/* Léger voile uniquement derrière la zone de texte */
.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1200px;
  height: 60%;
  background: radial-gradient(ellipse at center, 
    rgba(0, 0, 0, 0.5) 0%, 
    rgba(0, 0, 0, 0.35) 40%,
    rgba(0, 0, 0, 0.1) 70%
  );
  z-index: 2;
  pointer-events: none;
}

/* Animation subtile de la grille */
@keyframes gridFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.hero-bg-item {
  animation: gridFloat 6s ease-in-out infinite;
}

/* Contenu hero au-dessus de tout */
.hero-content {
  position: relative;
  z-index: 3;
}

.hero h1 {
  color: white;
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 800;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.05;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.9),
               0 6px 12px rgba(0, 0, 0, 0.7),
               0 10px 20px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 3;
}

.hero p {
  color: rgba(255, 255, 255, 1);
  font-size: 20px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.8), 0 1px 5px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 3;
}

.hero-search {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  background: white;
  padding: 8px;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 3;
}

/* Confort mobile/tablette */
@media (max-width: 768px) {
  .hero {
    min-height: 620px;
    padding: 84px 0 92px;
  }

  .hero-search {
    width: min(92vw, 640px);
    padding: 12px;
    border-radius: 22px;
  }

  .hero-search input {
    padding: 14px 16px;
  }

  .hero-search button {
    padding: 14px 16px;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 580px;
    padding: 76px 0 84px;
  }
}

/* Paysage mobile (hauteur faible) */
@media (max-width: 980px) and (max-height: 520px) {
  .hero {
    min-height: 520px;
    padding: 64px 0 70px;
  }
}

.hero-search input {
  flex: 1;
  border: none;
  padding: 18px 24px;
  font-size: 16px;
  border-radius: 50px;
  outline: none;
}

.hero-search button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 18px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.hero-search button:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* Cards plats style moderne */
.plat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.plat-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  flex: 1;
  line-height: 1.3;
}

.plat-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  background: var(--bg-light);
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  margin-left: 12px;
}

.cuisinier-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cuisinier-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.cuisinier-name {
  font-size: 14px;
  color: var(--text-gray);
  font-weight: 500;
}

.plat-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  background: #FFF8E6;
  padding: 4px 10px;
  border-radius: 12px;
}

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  height: 380px;
  border-radius: 16px;
}

/* Navbar (bandeau) — style moderne "glass" + accent Or */
@keyframes fm-nav-shine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
  border-bottom: 1px solid rgba(6, 193, 103, 0.16);
}

/*
  Navbar FIXE (toujours visible) :
  - Sur certains layouts/containers, sticky peut "disparaître" selon l'overflow.
  - On force un mode fixed via une classe sur <body> + on compense la hauteur.
*/
:root {
  --fm-navbar-height: 84px;
}

body.has-fixed-navbar {
  padding-top: calc(var(--fm-navbar-height) + env(safe-area-inset-top, 0px));
}

body.has-fixed-navbar .navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding-top: env(safe-area-inset-top, 0px);
}

.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 120px at 12% 0%, rgba(6, 193, 103, 0.09), transparent 60%),
    radial-gradient(680px 140px at 88% 40%, rgba(245, 168, 0, 0.10), transparent 62%);
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

.navbar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(6, 193, 103, 0.60) 18%,
    rgba(245, 168, 0, 0.55) 50%,
    rgba(6, 193, 103, 0.60) 82%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: fm-nav-shine 6s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

/* Layout: centre + droite (utilisé par la navbar publique injectée) */
.navbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.navbar-center .navbar-menu {
  margin: 0;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Brand */
.navbar-brand a,
.navbar-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  color: var(--text-dark);
  letter-spacing: 0;
}

.navbar-logo {
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(6, 193, 103, 0.10);
  border: 1px solid rgba(6, 193, 103, 0.22);
  box-shadow: 0 10px 24px rgba(6, 193, 103, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.navbar-logo:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(6, 193, 103, 0.15);
}

.navbar-brand a {
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(6, 193, 103, 0.10);
  border: 1px solid rgba(6, 193, 103, 0.22);
  box-shadow: 0 10px 24px rgba(6, 193, 103, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.navbar-brand a:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(6, 193, 103, 0.15);
}

/* Menu */
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0 0 0 6px;
}

.navbar-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-menu a {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  text-decoration: none;
  color: #475569;
  font-weight: 700;
  font-size: 13.5px;
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.navbar-menu a:hover {
  background: rgba(6, 193, 103, 0.10);
  border-color: rgba(6, 193, 103, 0.18);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.navbar-menu a.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-white);
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(6, 193, 103, 0.18);
}

/* Zone utilisateur (bouton déconnexion, etc.) */
.navbar-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-user:empty {
  display: none;
}

.navbar-user .btn,
.navbar-user button,
.navbar-user a.btn {
  padding: 10px 14px;
  border-radius: 14px;
}

/* Chips navbar (utilisées par auth.js) */
.navbar-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  color: var(--primary-dark);
  background: rgba(6, 193, 103, 0.09);
  border: 1px solid rgba(6, 193, 103, 0.22);
  box-shadow: 0 10px 22px rgba(6, 193, 103, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.navbar-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(6, 193, 103, 0.16);
  background: rgba(6, 193, 103, 0.14);
}

.navbar-chip--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: transparent;
  color: var(--text-white);
  box-shadow: 0 14px 30px rgba(6, 193, 103, 0.18);
}

/* Bouton outline premium (ex: Connexion) */
.navbar-chip--outline {
  background: var(--surface-card, #fff);
  border-color: rgba(6, 193, 103, 0.28);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.navbar-chip--outline:hover {
  background: rgba(6, 193, 103, 0.10);
  border-color: rgba(6, 193, 103, 0.44);
}

.navbar-chip--icon {
  width: 44px;
  padding: 10px;
}

.navbar-icon-button {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(6, 193, 103, 0.09);
  border: 1px solid rgba(6, 193, 103, 0.22);
  box-shadow: 0 10px 22px rgba(6, 193, 103, 0.10);
}

.navbar-account {
  position: relative;
}

.navbar-account-trigger {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 10px 5px 6px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-dark);
  background: var(--surface-card, #fff);
  border: 1px solid rgba(6, 193, 103, 0.22);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  list-style: none;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.navbar-account-trigger::-webkit-details-marker {
  display: none;
}

.navbar-account-trigger:hover,
.navbar-account[open] .navbar-account-trigger {
  background: rgba(6, 193, 103, 0.10);
  box-shadow: 0 14px 28px rgba(6, 193, 103, 0.14);
  transform: translateY(-1px);
}

.navbar-account-avatar {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--text-white);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  font-size: 12px;
  font-weight: 900;
}

.navbar-account-name {
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
}

.navbar-account-caret {
  color: var(--text-gray);
  font-weight: 900;
}

.navbar-account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 228px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(6, 193, 103, 0.16);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  z-index: 20;
}

.navbar-account-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  color: #334155;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.navbar-account-link:hover {
  color: var(--primary-dark);
  background: rgba(6, 193, 103, 0.10);
}

.navbar-account-logout {
  color: #b42318;
}

.navbar-account-logout:hover {
  color: #8f1d14;
  background: rgba(220, 53, 69, 0.08);
}

/* Badge notifications (requis sur toutes les pages, pas uniquement components.css) */
.notification-badge {
  position: relative;
}

.notification-badge::after {
  content: attr(data-count);
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ef4444;
  color: white;
  border-radius: 999px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

.notification-badge:not([data-count])::after,
.notification-badge[data-count=""]::after,
.notification-badge[data-count="0"]::after {
  display: none;
}

/* Burger */
.navbar-toggle {
  display: none;
  margin-left: 6px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(6, 193, 103, 0.22);
  background: rgba(6, 193, 103, 0.08);
  cursor: pointer;
  color: var(--primary-dark);
  font-size: 22px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 12px 26px rgba(6, 193, 103, 0.10);
}

.navbar-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #334155;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.navbar-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 720px) {
  .navbar-container {
    padding: 12px 16px;
  }

  .navbar-toggle {
    display: inline-flex;
  }

  .navbar-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    margin: 0;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(6, 193, 103, 0.18);
    border-radius: 18px;
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.16);
  }

  .navbar-menu.active {
    display: flex;
  }

  .navbar-menu a {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .navbar-center {
    justify-content: flex-start;
  }
}

/* Petits téléphones (320–420px) : éviter les débordements */
@media (max-width: 420px) {
  :root {
    --fm-navbar-height: 76px;
  }

  .navbar-container {
    gap: 8px;
    padding: 10px 12px;
  }

  .navbar-center {
    flex: 0;
  }

  .navbar-right {
    gap: 6px;
    min-width: 0;
  }

  .navbar-user {
    gap: 4px;
    margin-left: 0;
    min-width: 0;
  }

  .navbar-logo,
  .navbar-brand a {
    gap: 6px;
    font-size: 15px;
    padding: 7px 8px;
    border-radius: 14px;
  }

  .navbar-toggle {
    width: 40px;
    height: 40px;
  }

  .navbar-chip {
    padding: 7px 9px;
    font-size: 12px;
    box-shadow: none;
  }

  .navbar-chip--icon {
    width: 40px;
    padding: 9px;
  }

  .navbar-account-name {
    display: none;
  }

  .navbar-account-trigger {
    padding-right: 8px;
  }

  .navbar-account-menu {
    right: -4px;
    min-width: min(232px, calc(100vw - 24px));
  }
}

@media (max-width: 360px) {
  .navbar-chip {
    padding: 7px 8px;
    font-size: 11.5px;
  }
}

/* Catégories grid moderne */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.category-card {
  background: white;
  padding: 32px 24px;
  border-radius: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Images de fond pour chaque catégorie */
.category-plats-traditionnels {
  background-image: url('/Photos Plats/plat2.jpg');
}

.category-patisseries {
  background-image: url('/Photos Plats/macarons.jpg');
}

.category-gateaux {
  background-image: url('/Photos Plats/gateaux-algeriens.jpg');
}

.category-specialites {
  background-image: url('/Photos Plats/plat12.jpg');
}

.category-plats-jour {
  background-image: url('/Photos Plats/plat6.jpg');
}

.category-cuisine-monde {
  background-image: url('/Photos Plats/plat16.jpg');
}

/* Overlay pour lisibilité */
.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.35) 0%, 
    rgba(0, 0, 0, 0.45) 100%
  );
  transition: all 0.3s ease;
  z-index: 1;
}

/* Contenu au-dessus de l'overlay */
.category-content {
  position: relative;
  z-index: 2;
}

.category-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-gold);
}

.category-card:hover .category-overlay {
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.25) 0%, 
    rgba(0, 0, 0, 0.35) 100%
  );
}

.category-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
  transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
  transform: scale(1.2) rotate(5deg);
}

.category-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.category-card p {
  font-size: 13px;
  color: white;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  font-weight: 600;
}

/* Boutons moderne */
.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(6, 193, 103, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 193, 103, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Section title */
.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 32px;
  text-align: center;
}

/* Favoris badge */
.favorite-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  z-index: 10;
}

.favorite-badge:hover {
  transform: scale(1.1);
}

.favorite-badge.active {
  background: var(--accent-red);
}

.favorite-badge svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  color: #ccc;
}

.favorite-badge.active svg {
  color: white;
}

/* Filtres avancés */
.filters-container {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
}

.filter-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: white;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 193, 103, 0.1);
}

/* Badge disponibilité */
.availability-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.availability-badge.unavailable {
  background: var(--text-gray);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .hero-search {
    flex-direction: column;
    gap: 12px;
  }
  
  .plats-grid {
    grid-template-columns: 1fr;
  }
  
  .filters-container {
    flex-direction: column;
  }
  
  .filter-group {
    width: 100%;
  }
}

/* ================================
   Cartes premium (style dashboard)
   Scope: uniquement sur ces pages
   ================================ */

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

@keyframes fm-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Plats (page-plats) */
.page-plats .plats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.page-plats .plat-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
  animation: fm-card-entrance 0.6s ease-out backwards;
}

.page-plats .plat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
  transform: scaleX(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

.page-plats .plat-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 60px rgba(255, 184, 0, 0.20);
}

.page-plats .plat-card:hover::before {
  transform: scaleX(1);
}

.page-plats .plat-image-container {
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.18) 0%, rgba(255, 214, 102, 0.18) 100%);
}

.page-plats .plat-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

.page-plats .plat-card:hover .plat-image {
  transform: scale(1.12) rotate(1deg);
  filter: brightness(1.05) contrast(1.05);
}

.page-plats .plat-image-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.06) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.page-plats .plat-card:hover .plat-image-container::after {
  opacity: 1;
}

.page-plats .plat-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-plats .plat-info {
  padding: 20px;
}

.page-plats .plat-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-plats .plat-description {
  color: var(--text-gray);
  font-size: 14px;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-plats .plat-chef {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-plats .plat-price {
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  display: inline-block;
}

.page-plats .plat-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #EEEEEE;
}

.page-plats .plat-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-gray);
  font-weight: 700;
}

.page-plats .plat-actions {
  margin-top: 14px;
}

/* Cuisiniers (page-cuisiniers) */
.page-cuisiniers .cuisiniers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.page-cuisiniers .chef-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.95) 100%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  animation: fm-card-entrance 0.6s ease-out backwards;
}

.page-cuisiniers .chef-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.page-cuisiniers .chef-card:hover::before {
  opacity: 0.06;
}

.page-cuisiniers .chef-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(255, 184, 0, 0.18);
  border-color: rgba(255, 184, 0, 0.30);
}

.page-cuisiniers .chef-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.page-cuisiniers .chef-avatar {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 50%, var(--accent-gold) 100%);
  background-size: 200% 200%;
  animation: fm-gradient-shift 8s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(255, 184, 0, 0.28);
  border: 3px solid white;
  overflow: hidden;
  flex: 0 0 auto;
  transition: transform 0.4s ease;
}

.page-cuisiniers .chef-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-cuisiniers .chef-card:hover .chef-avatar {
  transform: scale(1.08) rotate(3deg);
}

.page-cuisiniers .chef-info {
  min-width: 0;
}

.page-cuisiniers .chef-info h3 {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-cuisiniers .chef-location {
  font-size: 14px;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-cuisiniers .chef-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #EEEEEE;
  position: relative;
  z-index: 1;
}

.page-cuisiniers .chef-stat {
  flex: 1;
  text-align: center;
}

.page-cuisiniers .chef-stat-value {
  display: block;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.page-cuisiniers .chef-stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-gray);
  font-weight: 700;
}

.page-cuisiniers .chef-bio {
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page-cuisiniers .chef-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.page-cuisiniers .chef-badge {
  padding: 6px 12px;
  background: #FFF8E1;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-gold-dark);
}

.page-cuisiniers .chef-actions {
  margin-top: 16px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 768px) {
  .page-cuisiniers .chef-card {
    padding: 22px;
  }
}

/* =====================================================
   FaitMaison Premium Design System
   Couche de convergence visuelle publique/client/cuisinier
   ===================================================== */

:root {
  --primary: #06C167;
  --primary-dark: #047A45;
  --primary-light: #7AE1B7;
  --primary-soft: #EAFBF3;
  --secondary: #2BB3A3;
  --secondary-dark: #117A73;
  --secondary-light: #DDF8F3;
  --primary-gold: var(--secondary);
  --primary-gold-dark: var(--secondary-dark);
  --primary-gold-light: var(--secondary-light);
  --accent-gold: var(--secondary);
  --accent-red: #E5484D;
  --accent-blue: #2563EB;
  --success: #0F9F68;
  --warning: #D97706;
  --error: #DC2626;
  --info: #2563EB;
  --surface-page: #F7F8F5;
  --surface-card: #FFFFFF;
  --surface-muted: #F1F4EE;
  --surface-warm: #FFF8EA;
  --border-subtle: #E2E8DD;
  --border-strong: #C7D1C0;
  --text-dark: #17211B;
  --text-gray: #5F6F66;
  --text-light: #8B9A90;
  --radius-control: 10px;
  --radius-card: 12px;
  --radius-panel: 16px;
  --shadow-sm: 0 1px 2px rgba(23, 33, 27, 0.06);
  --shadow-md: 0 10px 24px rgba(23, 33, 27, 0.08);
  --shadow-lg: 0 18px 42px rgba(23, 33, 27, 0.12);
  --shadow-xl: 0 28px 64px rgba(23, 33, 27, 0.16);
  --shadow-premium: 0 18px 48px rgba(23, 33, 27, 0.10);
  --shadow-focus-soft: 0 0 0 4px rgba(6, 193, 103, 0.14);
  --transition-fast: 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-normal: 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-slow: 0.36s cubic-bezier(0.2, 0.8, 0.2, 1);
  --fm-content-max: 1180px;
}

html {
  background: var(--surface-page);
}

body {
  background: var(--surface-page);
  color: var(--text-dark);
  accent-color: var(--primary);
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

.container {
  max-width: var(--fm-content-max);
}

.page-shell {
  margin-top: 24px;
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-xxl);
}

.page-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-lg);
}

.page-header-row h1 {
  margin-bottom: 6px;
}

.page-header-row p {
  color: var(--text-gray);
  margin: 0;
}

.fm-card,
.fm-panel,
.fm-state-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
}

.fm-card,
.fm-panel {
  padding: var(--spacing-lg);
}

.fm-panel {
  display: grid;
  gap: var(--spacing-md);
}

.fm-kicker {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fm-muted {
  color: var(--text-gray);
}

.fm-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.fm-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-md);
}

.fm-dashboard-card {
  min-height: 138px;
  padding: var(--spacing-lg);
  display: grid;
  gap: 8px;
  align-content: start;
}

.fm-dashboard-card strong {
  color: var(--text-dark);
  font-size: var(--font-size-lg);
}

.fm-dashboard-card p {
  margin: 0;
  color: var(--text-gray);
}

.fm-state-card {
  min-height: 180px;
  padding: var(--spacing-xl);
  display: grid;
  place-items: center;
  gap: var(--spacing-sm);
  text-align: center;
}

.fm-state-card--error {
  border-color: rgba(220, 38, 38, 0.25);
  background: #FFF1F2;
}

.fm-state-card--success {
  border-color: rgba(15, 159, 104, 0.25);
  background: var(--primary-soft);
}

.fm-state-card h3,
.fm-state-card p {
  margin: 0;
}

.map-section-copy {
  color: var(--text-gray);
  margin-bottom: 20px;
}

.notifications-page {
  margin-top: 24px;
  padding: 24px 0 var(--spacing-xxl);
}

.notifications-actions,
.notification-card-header,
.notification-card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.notifications-actions {
  align-items: center;
}

.notifications-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.notification-card {
  padding: 16px;
}

.notification-empty-card {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 36px 24px;
}

.notification-empty-icon {
  width: 56px;
  height: 56px;
  display: inline-grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: rgba(6, 193, 103, 0.10);
  color: var(--primary-dark);
  font-size: 26px;
}

.notification-empty-card h3 {
  margin-bottom: 6px;
}

.notification-empty-card p {
  color: var(--text-gray);
  margin: 0;
}

.notification-card--unread {
  border-left: 4px solid var(--primary);
}

.notification-card--error {
  border-left: 4px solid var(--error);
}

.notification-card--read {
  opacity: 0.8;
}

.notification-card-header {
  align-items: flex-start;
  justify-content: space-between;
}

.notification-title {
  font-weight: 900;
}

.notification-time,
.notification-message {
  color: var(--text-gray);
}

.notification-time {
  font-weight: 700;
}

.notification-message {
  margin-top: 8px;
}

.notification-card-actions {
  margin-top: 10px;
  justify-content: flex-end;
}

:where(.btn, .navbar-chip, .btn-action, .btn-icon, .btn-ghost, .btn-notifications, .navbar-cuisinier-logout, button[type="submit"]) {
  border-radius: var(--radius-control);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

:where(.btn, .btn-action, .navbar-chip, button[type="submit"]):not(:disabled):hover {
  transform: translateY(-1px);
}

.btn-primary,
.navbar-chip--primary,
.btn-confirm,
.btn-chef-primary,
.btn-admin-primary,
.btn-admin-login {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-white);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(6, 193, 103, 0.22);
}

.btn-primary:hover,
.navbar-chip--primary:hover,
.btn-confirm:hover,
.btn-chef-primary:hover,
.btn-admin-primary:hover,
.btn-admin-login:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 14px 32px rgba(6, 193, 103, 0.26);
}

.btn-secondary,
.navbar-chip--outline,
.btn-timeline,
.btn-modify,
.btn-ghost {
  background: var(--surface-card);
  color: var(--primary-dark);
  border: 1px solid rgba(6, 193, 103, 0.35);
}

.btn-secondary:hover,
.navbar-chip--outline:hover,
.btn-timeline:hover,
.btn-modify:hover,
.btn-ghost:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: var(--primary);
}

.btn-cancel,
.btn-danger,
.btn-delete-conversation {
  background: #FFF1F2;
  color: var(--error);
  border-color: rgba(220, 38, 38, 0.28);
}

.btn-cancel:hover,
.btn-danger:hover,
.btn-delete-conversation:hover {
  background: var(--error);
  color: var(--text-white);
}

:where(.card, .plat-card, .chef-card, .commande-card, .stat-card, .stats-card, .search-card, .auth-card, .messages-container, .conversation-item, .admin-card, .dashboard-card) {
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

:where(.card, .plat-card, .chef-card, .commande-card, .stat-card, .stats-card, .search-card, .conversation-item, .dashboard-card):hover {
  box-shadow: var(--shadow-lg);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
textarea,
select {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  background: var(--surface-card);
  color: var(--text-dark);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-focus-soft);
}

:where(.badge, .status-badge, .chef-badge, .pill-count, .unread-badge, .notification-badge, .notifications-badge) {
  border-radius: 999px;
  font-weight: 800;
}

.status-badge,
.unread-badge,
.notifications-badge {
  background: var(--primary);
  color: var(--text-white);
}

.empty-state,
.loading-state,
.fm-empty-state {
  display: grid;
  place-items: center;
  gap: var(--spacing-sm);
  min-height: 220px;
  padding: var(--spacing-xl);
  color: var(--text-gray);
  text-align: center;
  background: var(--surface-card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-card);
}

.fm-skeleton,
.skeleton-line,
.skeleton-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #EEF3EC 0%, #F8FAF6 45%, #EEF3EC 90%);
  background-size: 240% 100%;
  animation: fm-skeleton-shimmer 1.2s ease-in-out infinite;
  border-radius: var(--radius-control);
}

.skeleton-card {
  min-height: 180px;
  border-radius: var(--radius-card);
}

@keyframes fm-skeleton-shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

.fm-page-enter {
  animation: fm-page-enter 0.22s ease-out both;
}

@keyframes fm-page-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  max-width: min(400px, calc(100vw - 32px));
  padding: 16px 20px;
  border-radius: var(--radius-control);
  color: var(--text-white);
  font-weight: 700;
  z-index: 10000;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.24s ease-out;
}

.toast-success { background: var(--success); }
.toast-error { background: var(--error); }
.toast-warning { background: var(--warning); }
.toast-info { background: var(--info); }

.empty-state-copy-lg {
  color: var(--text-gray);
  font-size: var(--font-size-lg);
}

.empty-state-copy-sm {
  color: var(--text-gray);
  font-size: var(--font-size-sm);
}

.empty-state-error {
  color: var(--error);
  font-size: var(--font-size-lg);
}

.plat-inline-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.distance-badge {
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
}

.map-user-marker {
  width: 20px;
  height: 20px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--info);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.notification-toast-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-toast-icon {
  font-size: 24px;
}

.notification-toast-body {
  flex: 1;
}

.notification-toast-title {
  margin-bottom: 4px;
  font-weight: 700;
}

.notification-toast-message {
  color: var(--text-gray, #666);
  font-size: 14px;
}

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

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

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .container,
  .container-fluid {
    padding-left: 16px;
    padding-right: 16px;
  }

  :where(.btn, .btn-action, .navbar-chip, button[type="submit"]) {
    min-height: 44px;
  }

  :where(.commande-actions, .modal-actions, .conversation-actions) {
    gap: 8px;
  }
}

