/* ==========================================================================
   Composants — Boutons, Cartes, Chips, Formulaires
   ========================================================================== */

/* ==========================================================================
   Boutons
   ========================================================================== */

.lpc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background var(--t-base), color var(--t-base), transform var(--t-fast), box-shadow var(--t-base);
  white-space: nowrap;
}

.lpc-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Primaire */
.lpc-btn--primary {
  padding: 15px 36px;
  background: var(--primary);
  color: var(--white);
}

.lpc-btn--primary:hover {
  background: var(--bg3);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(44, 31, 20, .2);
}

/* Ghost */
.lpc-btn--ghost {
  padding: 0;
  background: none;
  color: var(--primary);
  gap: 8px;
}

.lpc-btn--ghost::after {
  content: '→';
  display: inline-block;
  transition: transform var(--t-base);
}

.lpc-btn--ghost:hover::after {
  transform: translateX(4px);
}

/* Ghost clair (sur fond sombre) */
.lpc-btn--ghost-light {
  padding: 0;
  background: none;
  color: var(--white);
  gap: 8px;
}

.lpc-btn--ghost-light::after {
  content: '→';
  display: inline-block;
  transition: transform var(--t-base);
}

.lpc-btn--ghost-light:hover::after {
  transform: translateX(4px);
}

/* Outline */
.lpc-btn--outline {
  padding: 13px 34px;
  background: none;
  color: var(--white);
  border: 1px solid rgba(255, 253, 249, .4);
}

.lpc-btn--outline:hover {
  background: rgba(255, 253, 249, .08);
  border-color: var(--white);
}

/* ==========================================================================
   Chips / Filtres
   ========================================================================== */

.lpc-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  border: 1px solid var(--border);
  background: transparent;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.lpc-chip:hover,
.lpc-chip--active,
.lpc-chip[aria-pressed="true"] {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.lpc-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ==========================================================================
   Formulaires
   ========================================================================== */

.lpc-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lpc-form-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text);
}

.lpc-form-field {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  transition: border-color var(--t-fast);
  appearance: none;
}

.lpc-form-field:focus {
  outline: none;
  border-color: var(--primary);
}

.lpc-form-field::placeholder {
  color: var(--text-light);
}

textarea.lpc-form-field {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

/* ==========================================================================
   Carte produit
   ========================================================================== */

.lpc-product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.lpc-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(44, 31, 20, .1);
}

/* Conteneur image */
.lpc-product-card__image-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg2);
}

.lpc-product-card__image-wrap img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow);
}

.lpc-product-card--catalog .lpc-product-card__image-wrap img {
  height: 240px;
}

.lpc-product-card:hover .lpc-product-card__image-wrap img {
  transform: scale(1.04);
}

/* Placeholder si pas d'image */
.lpc-product-card__image-placeholder {
  width: 100%;
  height: 260px;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
}

/* Infos produit */
.lpc-product-card__info {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.lpc-product-card__famille {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--accent);
}

.lpc-product-card__name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.25;
}

.lpc-product-card__price {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  margin-top: 4px;
}

.lpc-product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Overlay floral (hover produit)
   ========================================================================== */

.lpc-floral-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 16, 8, .87);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.lpc-product-card:hover .lpc-floral-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Fleurs SVG */
.lpc-floral-overlay__flowers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lpc-floral-overlay__flower {
  position: absolute;
  transform: scale(0) rotate(-15deg);
  transition: transform .55s cubic-bezier(.34, 1.56, .64, 1);
}

.lpc-product-card:hover .lpc-floral-overlay__flower {
  transform: scale(1) rotate(0deg);
}

.lpc-product-card:hover .lpc-floral-overlay__flower:nth-child(1) { transition-delay: 0s; }
.lpc-product-card:hover .lpc-floral-overlay__flower:nth-child(2) { transition-delay: .07s; }
.lpc-product-card:hover .lpc-floral-overlay__flower:nth-child(3) { transition-delay: .14s; }
.lpc-product-card:hover .lpc-floral-overlay__flower:nth-child(4) { transition-delay: .21s; }

/* Positionnement aux coins */
.lpc-floral-overlay__flower--tl { top: 8px;    left: 8px; }
.lpc-floral-overlay__flower--tr { top: 8px;    right: 8px; }
.lpc-floral-overlay__flower--br { bottom: 8px; right: 8px; }
.lpc-floral-overlay__flower--bl { bottom: 8px; left: 8px; }

/* Contenu overlay */
.lpc-floral-overlay__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.lpc-floral-overlay__label {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--accent);
  margin-bottom: 12px;
}

.lpc-floral-overlay__notes {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lpc-floral-overlay__note {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  line-height: 1.4;
}
