/* --- STYLES GENERAUX NOURIVOIRE SATISFACTION (CHARTE OFFICIELLE) --- */
:root {
  --primary-color: #E32B1D;      /* Rouge vibrant du logo Nourivoire */
  --primary-dark: #B81D11;       /* Rouge foncé pour survol */
  --primary-light: #FDF2F0;      /* Fond rouge très doux pour badges */
  --accent-orange: #F37023;      /* Orange soleil du logo */
  --accent-yellow: #FFC709;      /* Jaune soleil du logo */
  --gold-star: #FFB800;          /* Or éclatant pour les étoiles */
  --gold-star-dark: #E09F00;
  --dark-sidebar: #3D0E0B;       /* Acajou/Chocolat foncé du contour du logo */
  --text-main: #2B1513;          /* Texte principal chaud et lisible */
  --text-muted: #6E5350;         /* Texte secondaire neutre chaud */
  --bg-main: #FAF6F0;            /* Fond crème naturel très épuré */
  --bg-card: #FFFFFF;
  --border-color: #F0E6DF;
  --border-radius: 12px;
  --box-shadow: 0 10px 25px -5px rgba(227, 43, 29, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --box-shadow-hover: 0 20px 30px -10px rgba(227, 43, 29, 0.18);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: var(--font-family);
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
}

/* Modales & Overlays */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(43, 21, 19, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 540px;
  width: 90%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  text-align: center;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

.modal-icon.success {
  background: #FEF3C7;
  color: #D97706;
}

.modal-icon.danger {
  background: #FEE2E2;
  color: #DC2626;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.modal-text {
  color: var(--text-muted);
  font-size: 0.975rem;
  margin-bottom: 1.75rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-orange) 100%);
  color: #ffffff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #E05D10 100%);
  box-shadow: 0 4px 14px rgba(227, 43, 29, 0.35);
}

.btn-secondary {
  background-color: #EFEBE4;
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: #E2DDD4;
}

.btn-danger {
  background-color: #DC2626;
  color: #ffffff;
}

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

/* Spinner de chargement */
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s ease-in-out infinite;
}

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

/* Utilitaires Responsive */
@media (max-width: 640px) {
  .modal-card {
    padding: 1.5rem;
  }
}
