/**
 * GLASSMORPHISM COMPONENTS
 * Inspired by Apple/macOS design language
 */

/* ============================================
   GLASS CARDS
   ============================================ */

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-base);
}

.glass-elevated {
  background: var(--color-surface-elevated);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: var(--shadow-xl);
}

.glass:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
}

/* Card Variants */
.card {
  background: var(--color-surface);
  border-radius: 12px;
  padding: var(--space-6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-border);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
  box-shadow: 0 8px 24px rgba(73, 158, 241, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(73, 158, 241, 0.2);
  transform: translateY(-4px);
}

.card-gradient {
  background: var(--gradient-primary-soft);
  border: 1px solid rgba(73, 158, 241, 0.2);
}

/* Standardized card shadows */
.card--shadow-sm {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card--shadow-md {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card--shadow-lg {
  box-shadow: 0 8px 24px rgba(73, 158, 241, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Standardized border-radius */
.rounded-sm { border-radius: 8px; }
.rounded-md { border-radius: 12px; }
.rounded-lg { border-radius: 16px; }
.rounded-xl { border-radius: 20px; }
.rounded-2xl { border-radius: 24px; }
.rounded-full { border-radius: 9999px; }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 24px;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1.5;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
  position: relative;
}

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

/* Button Primary */
.btn-primary {
  background: var(--gradient-primary);
  color: white !important;
  box-shadow: 0 4px 12px rgba(73, 158, 241, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #5aaff5 0%, #8d7bf7 100%);
  color: white !important;
  box-shadow: 0 8px 24px rgba(73, 158, 241, 0.45);
  transform: translateY(-2px) scale(1.02);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
  transition: transform 0.1s;
}

/* Button Primary Reverse - Gradient inversé (violet vers bleu) */
.btn-primary-reverse {
  background: linear-gradient(135deg, #7c6af5 0%, #499ef1 100%);
  color: white !important;
  box-shadow: 0 4px 12px rgba(124, 106, 245, 0.3);
}

.btn-primary-reverse:hover:not(:disabled) {
  background: linear-gradient(135deg, #8d7bf7 0%, #5aaff5 100%);
  color: white !important;
  box-shadow: 0 8px 24px rgba(124, 106, 245, 0.45);
  transform: translateY(-2px) scale(1.02);
}

.btn-primary-reverse:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
  transition: transform 0.1s;
}

/* Pulse animation for primary CTAs */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(73, 158, 241, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(73, 158, 241, 0.5);
  }
}

.btn-primary.pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Button Secondary */
.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--color-background);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-sm);
}

/* Button Outline */
.btn-outline {
  background: white;
  color: var(--color-primary-start);
  border: 2px solid var(--color-primary-start);
  box-shadow: 0 2px 8px rgba(73, 158, 241, 0.15);
}

.btn-outline:hover:not(:disabled) {
  background: var(--gradient-primary-soft);
  border-color: #f7b518;
  color: #f7b518 !important;
  box-shadow: 0 4px 12px rgba(247, 181, 24, 0.3);
  transform: translateY(-1px);
}

/* Button Ghost */
.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--color-surface);
  color: var(--color-text-primary);
}

/* Button Glass */
.btn-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  color: var(--color-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-glass:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Button White */
.btn-white {
  background: white;
  color: var(--color-primary-start);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-white:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* Button Gift - Gradient avec icône */
.btn-gift {
  background: linear-gradient(135deg, #f7b518 0%, #f59e0b 100%);
  color: white !important;
  box-shadow: 0 4px 12px rgba(247, 181, 24, 0.3);
  font-weight: var(--weight-semibold);
}

.btn-gift:hover:not(:disabled) {
  background: linear-gradient(135deg, #f8c13a 0%, #f7b518 100%);
  color: white !important;
  box-shadow: 0 8px 24px rgba(247, 181, 24, 0.45);
  transform: translateY(-2px) scale(1.02);
}

.btn-gift:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
  transition: transform 0.1s;
}

/* Button Gift Animated - Effet papier cadeau avec ficelle dorée */
.btn-gift-animated {
  position: relative;
  background: transparent;
  color: var(--gift-ribbon-gold);
  border: 2px solid var(--gift-ribbon-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Ficelle horizontale - centrée sur le bouton */
.btn-gift-animated::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--gift-ribbon-gold-dark) 0%,
    var(--gift-ribbon-gold-light) 20%,
    var(--gift-ribbon-gold) 50%,
    var(--gift-ribbon-gold-light) 80%,
    var(--gift-ribbon-gold-dark) 100%
  );
  background-size: 200% 100%;
  transform: translateX(-50%) scaleX(0);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
  pointer-events: none;
}

/* Ficelle verticale - centrée sur le bouton */
.btn-gift-animated::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 20%;
  width: 4px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--gift-ribbon-gold-dark) 0%,
    var(--gift-ribbon-gold-light) 20%,
    var(--gift-ribbon-gold) 50%,
    var(--gift-ribbon-gold-light) 80%,
    var(--gift-ribbon-gold-dark) 100%
  );
  background-size: 100% 200%;
  transform: translateY(-50%) scaleY(0);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
  pointer-events: none;
}

/* État hover - Transformation wow */
.btn-gift-animated:hover:not(:disabled) {
  background: var(--gradient-primary);
  color: white !important;
  border-color: transparent;
  box-shadow: 0 8px 30px rgba(73, 158, 241, 0.45),
              0 0 40px rgba(212, 175, 55, 0.3);
  transform: translateY(-4px) scale(1.05);
}

/* Animation des ficelles au hover - apparition progressive depuis le centre */
.btn-gift-animated:hover:not(:disabled)::before {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
  animation: ribbon-shimmer 1.5s ease-in-out infinite;
}

.btn-gift-animated:hover:not(:disabled)::after {
  transform: translateY(-50%) scaleY(1);
  opacity: 1;
  animation: ribbon-shimmer 1.5s ease-in-out infinite;
}

/* État actif - Click feedback */
.btn-gift-animated:active:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  transition: transform 0.1s;
}

/* Icône gift à l'intérieur */
.btn-gift-animated img,
.btn-gift-animated svg {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.3));
  transition: filter 0.5s ease;
}

.btn-gift-animated:hover:not(:disabled) img,
.btn-gift-animated:hover:not(:disabled) svg {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

/* Texte du bouton */
.btn-gift-animated > *:not(.gift-ribbon-bow):not(img):not(svg) {
  position: relative;
  z-index: 2;
}

/* Nœud SVG au centre du bouton */
.gift-ribbon-bow {
  position: absolute;
  /*top: 50%;*/
  left: 13%;
  transform: translate(-50%, -50%) scale(0) rotate(-180deg);
  width: 72px;
  height: auto;
  z-index: 3;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.4));
}

/* Animation du nœud au hover */
.btn-gift-animated:hover:not(:disabled) .gift-ribbon-bow {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
  animation: bow-tying 1s ease-out forwards;
  filter: drop-shadow(0 6px 12px rgba(212, 175, 55, 0.6));
}

/* Animations pour le nœud et les ficelles */
@keyframes bow-tying {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    opacity: 0;
  }
  60% {
    transform: translate(-50%, -50%) scale(1.1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes ribbon-shimmer {
  0%, 100% {
    background-position: 0% 50%;
    filter: brightness(1);
  }
  50% {
    background-position: 100% 50%;
    filter: brightness(1.3);
  }
}

/* Button Success */
.btn-success {
  background: var(--color-success);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

/* Button Danger */
.btn-danger {
  background: var(--color-error);
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

/* Button Accent */
.btn-accent {
  background: var(--color-accent);
  color: var(--color-text-primary);
  box-shadow: 0 4px 12px rgba(247, 181, 24, 0.3);
}

.btn-accent:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(247, 181, 24, 0.4);
  transform: translateY(-1px);
}

/* Button Sizes */
.btn-xs {
  padding: 6px 12px;
  font-size: var(--text-xs);
}

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

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

.btn-icon {
  padding: 12px;
  aspect-ratio: 1;
}

/* Button focus states for accessibility */
.btn:focus-visible {
  outline: 3px solid rgba(73, 158, 241, 0.4);
  outline-offset: 2px;
}

/* Button width modifiers */
.btn-block {
  width: 100%;
  display: flex;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .btn {
    padding: 10px 20px;
    font-size: var(--text-sm);
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: var(--text-base);
  }

  .btn-block-mobile {
    width: 100%;
    display: flex;
  }
}

/* ============================================
   INPUTS & FORMS
   ============================================ */

.input,
.textarea,
.select {
  width: 100%;
  padding: 12px 16px;
  font-size: var(--text-base);
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background: white;
  border: 2.5px solid #D1D5DB;
  border-radius: var(--radius-base);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.input:hover,
.textarea:hover,
.select:hover {
  border-color: #3B82F6;
  border-width: 2.5px;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25), 0 4px 8px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: #2563EB;
  border-width: 2.5px;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.25), 0 8px 16px rgba(37, 99, 235, 0.2);
  background: white;
  transform: translateY(-2px);
}

.input::placeholder,
.textarea::placeholder {
  color: #6B7280;
}

.textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
}

/* Label styling for better accessibility */
.label,
label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.input-group {
  position: relative;
}

.input-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-tertiary);
  pointer-events: none;
}

.input-group .input {
  padding-left: var(--space-10);
}

/* Checkbox & Radio */
.checkbox,
.radio {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--color-primary-start);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
}

.form-help {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.form-error {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-error);
}

/* ============================================
   BADGES & TAGS
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-primary {
  background: var(--gradient-primary-soft);
  color: var(--color-primary-start);
  border: 1px solid rgba(73, 158, 241, 0.2);
}

.badge-success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-warning {
  background: var(--color-warning-bg);
  color: var(--color-warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-error {
  background: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-info {
  background: var(--color-info-bg);
  color: var(--color-info);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-neutral {
  background: var(--color-background);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

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

.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid;
}

.alert-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}

.alert-success {
  background: var(--color-success-bg);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--color-success);
}

.alert-warning {
  background: var(--color-warning-bg);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--color-warning);
}

.alert-error {
  background: var(--color-error-bg);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--color-error);
}

.alert-info {
  background: var(--color-info-bg);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--color-info);
}

/* ============================================
   TABLES
   ============================================ */

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  padding: var(--space-4);
  text-align: left;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-secondary);
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
}

.table tbody td {
  padding: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-border);
}

.table tbody tr {
  transition: background var(--transition-fast);
}

.table tbody tr:hover {
  background: var(--color-background);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================
   LOADING STATES
   ============================================ */

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary-start);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-background) 0%,
    var(--color-surface) 50%,
    var(--color-background) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

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

/* ============================================
   TOOLTIPS
   ============================================ */

.tooltip {
  position: relative;
}

.tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  padding: var(--space-2) var(--space-3);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
  z-index: var(--z-tooltip);
}

.tooltip::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
  z-index: var(--z-tooltip);
}

.tooltip:hover::before,
.tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ============================================
   DIVIDER
   ============================================ */

.divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-6) 0;
}

.divider-vertical {
  width: 1px;
  height: 100%;
  background: var(--color-border);
  margin: 0 var(--space-4);
}

/* ============================================
   AVATAR
   ============================================ */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: var(--text-xs);
}

.avatar-lg {
  width: 56px;
  height: 56px;
  font-size: var(--text-lg);
}

.avatar-xl {
  width: 72px;
  height: 72px;
  font-size: var(--text-2xl);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

/* Elements start invisible and animate in when scrolled into view */
.step,
.use-case,
.testimonial,
.partner__card,
.trust__item,
.comparison__table,
.pricing-card,
.feature-card,
.case-card,
.faq-item {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--animation-delay, 0s);
}

/* Animated in state */
.step.animate-in,
.use-case.animate-in,
.testimonial.animate-in,
.partner__card.animate-in,
.trust__item.animate-in,
.comparison__table.animate-in,
.pricing-card.animate-in,
.feature-card.animate-in,
.case-card.animate-in,
.faq-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Alternative animation: Fade in from side */
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-left.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-right.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* Scale animation */
.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-in.animate-in {
  opacity: 1;
  transform: scale(1);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .step,
  .use-case,
  .testimonial,
  .partner__card,
  .trust__item,
  .comparison__table,
  .pricing-card,
  .feature-card,
  .case-card,
  .faq-item,
  .fade-in-left,
  .fade-in-right,
  .scale-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   SYMFONY DEBUG TOOLBAR - VISIBILITY FIX
   ============================================ */

/* Fix pour la Symfony Web Debug Toolbar - améliore la visibilité sans casser le style de l'app */
.sf-toolbar {
  /* Force un fond clair pour la toolbar */
  background: #222 !important;
}

.sf-toolbar * {
  /* Force le texte à être visible sur fond sombre */
  color: #fff !important;
}

.sf-toolbar a {
  color: #4fc1e9 !important;
}

.sf-toolbar a:hover {
  color: #5dceef !important;
}

/* Fix pour les icônes et badges */
.sf-toolbar .sf-toolbar-icon,
.sf-toolbar .sf-toolbar-value {
  color: #fff !important;
}

/* Fix pour le statut (vert, rouge, etc.) */
.sf-toolbar .sf-toolbar-status {
  opacity: 1 !important;
}

/* Fix pour les compteurs */
.sf-toolbar .sf-toolbar-info {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

/* Fix pour les boutons */
.sf-toolbar button {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.sf-toolbar button:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

/* Fix pour les menus déroulants */
.sf-toolbar .sf-toolbar-block:hover .sf-toolbar-info-piece {
  background: #333 !important;
  border-color: #444 !important;
}

.sf-toolbar .sf-toolbar-info-piece-additional {
  background: #2a2a2a !important;
  color: #fff !important;
}

/* Fix pour le texte dans les menus */
.sf-toolbar .sf-toolbar-info-piece * {
  color: #fff !important;
}

/* Fix pour les liens dans les menus */
.sf-toolbar .sf-toolbar-info-piece a {
  color: #4fc1e9 !important;
}

/* Fix pour les séparateurs */
.sf-toolbar .sf-toolbar-info-piece hr {
  border-color: #444 !important;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

/* Container fixed en haut à droite */
.notification-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

/* Notification card */
.notification {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 320px;
  max-width: 420px;
  padding: 16px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
  border-left: 4px solid;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animation d'entrée */
.notification-show {
  opacity: 1;
  transform: translateX(0);
}

/* Animation de sortie */
.notification-hide {
  opacity: 0;
  transform: translateX(400px) scale(0.9);
  transition: all 0.2s ease-out;
}

/* Icône notification */
.notification-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Message */
.notification-message {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-primary);
  font-weight: 500;
}

/* Bouton close */
.notification-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-text-tertiary);
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.notification-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text-primary);
}

/* Types de notifications */
.notification-success {
  border-left-color: var(--color-success);
}

.notification-success .notification-icon {
  color: var(--color-success);
}

.notification-error {
  border-left-color: var(--color-error);
}

.notification-error .notification-icon {
  color: var(--color-error);
}

.notification-warning {
  border-left-color: var(--color-warning);
}

.notification-warning .notification-icon {
  color: var(--color-warning);
}

.notification-info {
  border-left-color: var(--color-info);
}

.notification-info .notification-icon {
  color: var(--color-info);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .notification-container {
    top: 70px;
    right: 16px;
    left: 16px;
  }

  .notification {
    min-width: auto;
    max-width: 100%;
    transform: translateY(-100px);
  }

  .notification-show {
    transform: translateY(0);
  }

  .notification-hide {
    transform: translateY(-100px) scale(0.9);
  }
}
