/* ============================================
   Page Parfums (liste) - Mêmes couleurs que Marques
   ============================================ */

/* Fond identique à la page Marques */
body.products-page {
  background: #F5F1E8 !important;
  background-color: #F5F1E8 !important;
  color: var(--color-text-dark);
}

/* Hero : fond bleu nuit (les mood-slides changent par-dessus) */
body.products-page .products-hero {
  background: #020713;
  background-color: #020713;
}

body.products-page .products-hero .hero-content-products,
body.products-page .products-hero .hero-title-products,
body.products-page .products-hero .hero-indice,
body.products-page .products-hero .cta-primary,
body.products-page .products-hero .cta-secondary {
  color: rgba(248, 250, 252, 0.95);
}

body.products-page .products-hero .mood-overlay {
  background: linear-gradient(
    to bottom,
    rgba(2, 7, 19, 0.5) 0%,
    rgba(2, 7, 19, 0.75) 100%
  );
}

/* Bandeau conseils (celui qui change avec les tips) : fond bleu nuit */
body.products-page .top-banner {
  background-color: #020713;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.products-page .top-banner p {
  color: rgba(248, 250, 252, 0.9);
}

body.products-page .products-filters {
  background-color: rgba(255,255,255,0.9);
  border-color: rgba(11, 28, 38, 0.12);
  box-shadow: 0 14px 30px rgba(0,0,0,0.04);
}

/* Bloc filtres tout petit peu rétréci sur desktop */
@media (min-width: 980px) {
  body.products-page .products-filters {
    padding: 12px 14px;
  }
  body.products-page .products-filters .filter-group {
    gap: 12px 16px;
  }
  body.products-page .products-filters .filter-actions {
    margin-top: 10px;
    padding-top: 10px;
  }
  body.products-page .products-section {
    grid-template-columns: 348px 1fr;
  }
}

body.products-page .products-filters label {
  color: var(--color-text-dark);
}

body.products-page .sensation-search {
  background-color: #FBF8F3;
  border-color: var(--color-gray-light);
  color: var(--color-text-dark);
}

body.products-page .sensation-search::placeholder {
  color: var(--color-gray-medium);
}

body.products-page .occasion-btn,
body.products-page .season-btn,
body.products-page .reset-filters-btn,
body.products-page .load-more-products {
  background-color: #F5F1E8;
  border-color: transparent;
  color: var(--color-text-dark);
}

body.products-page .occasion-btn:hover,
body.products-page .season-btn:hover,
body.products-page .reset-filters-btn:hover,
body.products-page .load-more-products:hover {
  background-color: rgba(255,255,255,0.95);
  border-color: rgba(11, 28, 38, 0.12);
}

body.products-page #productsGrid > *,
body.products-page .perfume-card-large {
  background: linear-gradient(180deg, #FAF6EE 0%, #F0E4D5 100%);
  border-color: rgba(11, 28, 38, 0.08);
  box-shadow: 0 14px 30px rgba(0,0,0,0.04);
}

body.products-page #productsGrid > *:hover {
  box-shadow: 0 22px 50px rgba(0,0,0,0.16);
  border-color: rgba(11, 28, 38, 0.12);
}

/* Footer : fond bleu nuit */
body.products-page .main-footer {
  background-color: #020713;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.products-page .main-footer .footer-tagline,
body.products-page .main-footer .footer-title,
body.products-page .main-footer .footer-links a,
body.products-page .main-footer .newsletter-text,
body.products-page .main-footer .footer-copyright,
body.products-page .main-footer .payment-label {
  color: rgba(248, 250, 252, 0.9);
}

body.products-page .main-footer .footer-links a:hover {
  color: var(--color-saffron);
}

body.products-page .main-footer .newsletter-form input {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

body.products-page .main-footer .newsletter-form input::placeholder {
  color: rgba(248, 250, 252, 0.5);
}

body.products-page .main-footer .payment-badge {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(248, 250, 252, 0.9);
}

/* FIX fond bleu nuit : on force la transparence des containers */
html { background: #F5F1E8; }

body.products-page {
  background: #F5F1E8 !important;
  background-color: #F5F1E8 !important;
  color: var(--color-text-dark);
}

/* très important : la zone "produits" ne doit pas avoir son propre fond sombre */
body.products-page main,
body.products-page .products-section,
body.products-page .products-grid-container,
body.products-page .products-grid,
body.products-page #productsGrid {
  background: transparent !important;
}

/* si un overlay/pseudo-element met une couche bleue */
body.products-page .products-section::before,
body.products-page .products-section::after,
body.products-page main::before,
body.products-page main::after {
  content: none !important;
}

/* ============================================
   Section Parfum recherché (remplace Accords & Layering)
   ============================================ */

.parfum-recherche-section {
  padding: 64px var(--spacing-md) 80px;
  background: #ffffff;
}

.parfum-recherche-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.parfum-recherche-header {
  text-align: center;
  margin-bottom: 0;
}

.parfum-recherche-open-btn {
  margin-top: 1.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font-sans);
  color: #ffffff;
  background: var(--color-saffron, #C75B2A);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.parfum-recherche-open-btn:hover {
  background: #b04d24;
  transform: translateY(-1px);
}

/* Overlay */
.parfum-recherche-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.parfum-recherche-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.parfum-recherche-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 28, 38, 0.45);
  cursor: pointer;
}

.parfum-recherche-overlay-content {
  position: relative;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
}

.parfum-recherche-close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: rgba(11, 28, 38, 0.6);
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
  z-index: 2;
}

.parfum-recherche-close-btn:hover {
  color: #0B1C26;
  background: rgba(11, 28, 38, 0.06);
}

.parfum-recherche-modal-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: #0B1C26;
  margin: 0 0 1rem;
  padding-right: 2.5rem;
}

.parfum-recherche-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 500;
  color: #0B1C26;
  margin-bottom: 0.5rem;
}

.parfum-recherche-subtitle {
  font-size: 1.05rem;
  color: var(--color-gray-medium);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

.parfum-recherche-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(11, 28, 38, 0.1);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(11, 28, 38, 0.15);
  padding: 28px 28px 24px;
}

.parfum-recherche-badge {
  position: absolute;
  top: 1rem;
  right: 2.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-saffron);
  font-weight: 500;
}

.parfum-recherche-form {
  margin-top: 0.5rem;
}

.parfum-recherche-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.parfum-recherche-overlay .parfum-recherche-grid .form-group-full {
  grid-column: 1 / -1;
}

.parfum-recherche-overlay .form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #0B1C26;
  margin-bottom: 0.4rem;
}

.parfum-recherche-overlay .form-group input,
.parfum-recherche-overlay .form-group select,
.parfum-recherche-overlay .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: #0B1C26;
  background: rgba(251, 248, 243, 0.9);
  border: 1px solid rgba(11, 28, 38, 0.12);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.parfum-recherche-overlay .form-group input::placeholder,
.parfum-recherche-overlay .form-group textarea::placeholder {
  color: rgba(11, 28, 38, 0.45);
}

.parfum-recherche-overlay .form-group input:focus,
.parfum-recherche-overlay .form-group select:focus,
.parfum-recherche-overlay .form-group textarea:focus {
  outline: none;
  border-color: rgba(199, 91, 42, 0.4);
  box-shadow: 0 0 0 3px rgba(199, 91, 42, 0.08);
}

.parfum-recherche-overlay .form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.parfum-recherche-overlay .form-group-consent {
  margin-bottom: 1.25rem;
}

.parfum-recherche-overlay .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: #0B1C26;
  cursor: pointer;
}

.parfum-recherche-overlay .checkbox-label input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
  accent-color: var(--color-saffron);
}

.parfum-recherche-privacy {
  font-size: 0.8rem;
  color: var(--color-gray-medium);
  margin: 0.4rem 0 0 1.75rem;
}

.parfum-recherche-footer {
  text-align: center;
  padding-top: 0.5rem;
}

.parfum-recherche-cta {
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font-sans);
  color: #0B1C26;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(11, 28, 38, 0.15);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.parfum-recherche-cta:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(199, 91, 42, 0.3);
  transform: translateY(-1px);
}

.parfum-recherche-message {
  margin-top: 1rem;
  font-size: 0.95rem;
  text-align: center;
}

.parfum-recherche-error {
  color: #b91c1c;
}

.parfum-recherche-success {
  color: #059669;
}

@media (max-width: 768px) {
  .parfum-recherche-section {
    padding: 48px var(--spacing-md) 64px;
  }
  .parfum-recherche-grid {
    grid-template-columns: 1fr;
  }
  .parfum-recherche-card {
    padding: 1.5rem 1.25rem;
  }
  .parfum-recherche-badge {
    position: static;
    display: block;
    margin-bottom: 1rem;
    text-align: right;
  }
}
