/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import url("https://unpkg.com/trix@2.1.7/dist/trix.css");

.trix-content {
  font-family: inherit;
  font-size: 0.95rem;
  color: #111827;
  min-height: 6rem;
}

.trix-button-group--file-tools {
  display: none !important;
}

.trix-toolbar {
  border-radius: 0.75rem 0.75rem 0 0;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.trix-button {
  color: #1f2937;
}

.trix-button.trix-active {
  background-color: #e0e7ff;
  color: #312e81;
}

.trix-editor {
  border: 1px solid #e5e7eb;
  border-radius: 0 0 0.75rem 0.75rem;
  padding: 1rem;
  background: #fff;
}

@keyframes cart-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-6px);
  }
  55% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-3px);
  }
}

.cart-bounce {
  animation: cart-bounce 0.6s ease;
}

.link {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.link:visited {
  color: #7c3aed;
}

.link:active {
  color: #1e40af;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Pacifico", cursive;
}

.color-primary {
  color: #224246;
}

.color-production {
  color: #acc037;
}

/* Development warning border - travaux style */
.dev-warning-border {
  position: relative;
}

.dev-warning-border::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background-image: repeating-linear-gradient(
    45deg,
    #fbbf24,
    #fbbf24 10px,
    #f59e0b 10px,
    #f59e0b 20px
  );
  background-size: 28px 28px;
  z-index: 9999;
}

/* Public footer - artisanal editorial */
@keyframes footer-reveal {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-reveal-item {
  animation: footer-reveal 0.6s ease-out both;
}

.footer-reveal-item:nth-child(1) { animation-delay: 0.05s; }
.footer-reveal-item:nth-child(2) { animation-delay: 0.12s; }
.footer-reveal-item:nth-child(3) { animation-delay: 0.19s; }
.footer-reveal-item:nth-child(4) { animation-delay: 0.26s; }
.footer-reveal-item:nth-child(5) { animation-delay: 0.33s; }
.footer-reveal-item:nth-child(6) { animation-delay: 0.4s; }

.footer-email-link {
  position: relative;
  transition: color 0.25s ease;
}

.footer-email-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.footer-email-link:hover::after,
.footer-email-link:focus-visible::after {
  width: 100%;
}

.footer-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}