/* Composants luxe Karma Beach — étend Tailwind avec @apply via classes "directives". */

@layer components {
  /* fallback */
}

/* Card luxe : fond blanc, ombre douce, padding généreux, transition */
.card {
  background: #fff;
  border: 1px solid rgba(26, 40, 55, 0.05);
  border-radius: 16px;
  padding: 1.25rem 1.25rem;
  box-shadow: 0 1px 2px rgba(26, 40, 55, 0.03), 0 8px 24px rgba(26, 40, 55, 0.04);
  transition: box-shadow 200ms ease;
}
.card:hover {
  box-shadow: 0 1px 3px rgba(26, 40, 55, 0.05), 0 12px 32px rgba(26, 40, 55, 0.06);
}
@media (min-width: 640px) {
  .card { padding: 1.5rem 1.75rem; }
}

/* Inputs */
.field-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(26, 40, 55, 0.55);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.field-input {
  display: block;
  width: 100%;
  background: #FAF7F2;
  border: 1px solid rgba(26, 40, 55, 0.08);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  color: #1A2837;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
  outline: none;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}
.field-input:focus {
  background: #fff;
  border-color: #C8794C;
  box-shadow: 0 0 0 3px rgba(200, 121, 76, 0.18);
}
textarea.field-input {
  resize: vertical;
}
.field-hint {
  font-size: 0.72rem;
  color: rgba(26, 40, 55, 0.5);
  margin-top: 0.5rem;
  line-height: 1.5;
}
.field-hint code {
  background: rgba(26, 40, 55, 0.05);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.7rem;
}

/* Boutons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #1A2837;
  color: #FAF7F2;
  border-radius: 10px;
  padding: 0.7rem 1.3rem;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(26, 40, 55, 0.12);
  cursor: pointer;
  transition: transform 100ms ease, background 150ms ease, box-shadow 150ms ease;
}
.btn-primary:hover {
  background: #101A26;
  box-shadow: 0 4px 12px rgba(26, 40, 55, 0.18);
}
.btn-primary:active {
  transform: translateY(1px);
}

/* Toast slide-in */
@keyframes slide-in {
  from { transform: translateX(16px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.animate-slide-in {
  animation: slide-in 200ms ease-out;
}

/* Details sans la flèche par défaut */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* Selection */
::selection { background: rgba(200, 121, 76, 0.25); color: #1A2837; }
