/* ================================================
   Atelier Zoé - Styles
   Reproduction fidèle du site original
   ================================================ */

/* ======================
   CSS VARIABLES
   ====================== */

:root {
  /* Couleurs principales */
  --color-background: #ffffff;
  --color-text: #000000;
  --color-text-light: #4a4a4a;
  --color-border: #000000;
  --color-hover: #666666;

  /* Couleurs neutres */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray: #e5e5e5;
  --color-gray-light: #f9f9f9;
  --color-gray-dark: #666666;

  /* Couleurs de feedback */
  --color-success-bg: #d4edda;
  --color-success-border: #c3e6cb;
  --color-success-text: #155724;
  --color-error-bg: #f8d7da;
  --color-error-border: #f5c6cb;
  --color-error-text: #721c24;

  /* Couleurs avec transparence (overlays) */
  --color-overlay: rgba(0, 0, 0, 0.25);
  --color-overlay-dark: rgba(0, 0, 0, 0.5);
  --color-border-subtle: rgba(0, 0, 0, 0.1);

  /* Typographie */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-size-h1: 3rem;
  --font-size-h2: 2.25rem;
  --font-size-h3: 1.75rem;
  --font-size-h4: 1.25rem;
  --font-size-body: 1rem;
  --font-size-small: 0.875rem;

  /* Espacements */
  --spacing-xs: 0.5rem;
  --spacing-xs-plus: 0.75rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;

  /* Layout */
  --navbar-height: 84px;
  --navbar-padding: 1.2rem;
  --max-width: 1200px;

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Typography */
  --letter-spacing-wide: 2px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);

  /* Transitions */
  --transition: all 0.3s ease;
}

/* ======================
   SKIP LINK (Accessibilité)
   ====================== */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 500;
  z-index: 10000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

/* ======================
   RESET & BASE
   ====================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  position: relative;
  font-size: var(--font-size-body);
  background-color: var(--color-background);
  overflow-x: hidden;
  animation: fadeIn 0.3s ease-in;
}

/* Animation de fondu au chargement de la page */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Transition douce lors du clic sur un lien */
body.page-transitioning {
  animation: fadeOut 0.2s ease-out forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }

.section-bg-image h3 {
  color: white;
}
h4 { font-size: var(--font-size-h4); }

p {
  margin-bottom: var(--spacing-sm);
  line-height: 1.8;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ======================
   LAYOUT
   ====================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
  overflow-x: hidden;
  border-top: 1px solid var(--color-border);
  margin-top: -1px;
}

.section-small {
  padding: var(--spacing-lg) 0;
  border-top: 1px solid var(--color-border);
  margin-top: -1px;
}

/* Smooth scroll offset for fixed nav */
section {
  scroll-margin-top: var(--navbar-height);
}

/* ======================
   UTILITY CLASSES
   ====================== */

/* Hide scrollbar while keeping scroll functionality */
.hide-scrollbar {
  scrollbar-width: none; /* Firefox */
}

.hide-scrollbar::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Disable scroll (for mobile menu and modals) */
body.no-scroll {
  overflow: hidden;
  touch-action: none;
}

/* Page loading state - block animations */
body.page-loading .animate-on-scroll,
body.page-loading .hero-content,
body.page-loading .hero-title,
body.page-loading .hero-subtitle,
body.page-loading .hero-cta {
  animation: none !important;
  opacity: 0;
}

/* ======================
   HEADER & NAVIGATION
   ====================== */

.header {
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-sm) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.logo a {
  color: var(--color-text);
}

.nav-menu {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
  align-items: center;
}

.nav-menu a {
  font-size: 0.95rem;
  color: var(--color-text);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  border-bottom-color: var(--color-text);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: var(--transition);
}

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

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background: var(--color-text);
  color: var(--color-background);
}

.btn-primary {
  background: var(--color-text);
  color: var(--color-background);
  border-color: var(--color-text);
  padding: 0.875rem 2.5rem;
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--color-hover);
  border-color: var(--color-hover);
  color: var(--color-background);
}

.button-group {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* ======================
   HERO SECTION
   ====================== */

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  margin-top: -1px;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 70vh;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 800px;
  padding: var(--spacing-md);
}

.hero h1 {
  font-size: var(--font-size-h1);
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-md);
  color: white;
}

.hero p {
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
  color: white;
}

.hero .btn {
  border-color: white;
  color: white;
  background: transparent;
}

.hero .btn:hover {
  background: white;
  color: var(--color-text);
}

.hero .btn-primary {
  background: white;
  color: var(--color-text);
  border-color: white;
}

.hero .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  border-color: white;
}

.hero a {
  color: white;
}

/* ======================
   FEATURE ICONS
   ====================== */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.feature-item {
  text-align: center;
  padding: var(--spacing-md);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-sm);
}

.feature-item h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 400;
  margin-top: var(--spacing-sm);
}

/* ======================
   CONTENT SECTIONS
   ====================== */

.content-section {
  padding: var(--spacing-xl) 0;
  border-top: 1px solid var(--color-border);
  margin-top: -1px;
}

.content-section h2 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.content-section p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-md);
  color: var(--color-text-light);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left !important;
  margin-left: 0;
  margin-right: auto;
}

/* ======================
   GRID LAYOUTS
   ====================== */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  align-items: center;
}

.grid-2 img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  max-height: 500px;
  object-fit: cover;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  align-items: stretch;
}

.grid-3 > * {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  align-items: stretch;
}

.grid-4 > * {
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.card {
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: var(--spacing-sm);
  flex-shrink: 0;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.card p {
  color: var(--color-text-light);
  line-height: 1.8;
  flex-grow: 1;
}

.card .btn,
.card .link-discover {
  margin-top: auto;
  padding-top: var(--spacing-sm);
}

.link-discover {
  display: inline-block;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.link-discover:hover {
  color: var(--color-hover);
  text-decoration: underline;
}

/* ======================
   PARFUMS PAGE
   ====================== */

.parfum-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  align-items: stretch;
}

.parfum-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.parfum-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  margin-bottom: var(--spacing-sm);
  flex-shrink: 0;
}

.parfum-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
  flex-shrink: 0;
}

.parfum-card p {
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: var(--spacing-sm);
}

.parfum-card > p:not(.parfum-notes) {
  flex-grow: 1;
}

.parfum-notes {
  font-size: var(--font-size-small);
  margin-top: auto;
  padding-top: var(--spacing-sm);
  flex-shrink: 0;
}

/* ======================
   ŒUVRES D'ART
   ====================== */

.oeuvre-card {
  text-align: left;
  background: var(--color-white);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

/* Note: Les images sont toutes dans des carousels - voir carousel.css */
.oeuvre-card h3 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-xs);
  flex-shrink: 0;
}

.oeuvre-dimensions {
  color: var(--color-text-light);
  font-size: var(--font-size-small);
  margin-bottom: var(--spacing-xs);
  flex-shrink: 0;
}

.oeuvre-price {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
  flex-shrink: 0;
}

.oeuvre-description {
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
  flex-grow: 1;
}

/* Wrapper pour détails + offre + bouton - collé en bas */
.oeuvre-details {
  margin-bottom: var(--spacing-sm);
  flex-shrink: 0;
  margin-top: auto;
}

.oeuvre-details p {
  color: var(--color-text-light);
  font-size: var(--font-size-small);
  line-height: 1.6;
  margin-bottom: var(--spacing-xs);
}

.oeuvre-offer {
  background: var(--color-gray-light);
  padding: var(--spacing-sm);
  border-left: 3px solid var(--color-text);
  font-size: var(--font-size-small);
  color: var(--color-text-light);
  margin-bottom: var(--spacing-sm);
  flex-shrink: 0;
}

/* ======================
   FAQ
   ====================== */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid #000000;
  margin-bottom: var(--spacing-sm);
}

.faq-question {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  background: white;
  border: none;
  text-align: left;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  color: var(--color-text);
  font-family: inherit;
}

.faq-question:hover {
  background: #f9f9f9;
}

.faq-answer {
  padding: 0 var(--spacing-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: var(--spacing-md);
  max-height: 500px;
}

.faq-icon {
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* ======================
   FOOTER
   ====================== */

.footer {
  background: var(--color-background);
  border-top: 1px solid #000000;
  padding: var(--spacing-lg) 0;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-sm);
  font-size: 0.9rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ======================
   UTILITY CLASSES
   ====================== */

.section-border {
  border-top: 1px solid #000000;
}

.centered-content {
  max-width: 800px;
  margin: 0 auto;
}

.img-full {
  width: 100%;
}

.img-centered-small {
  width: 250px;
  margin: 0 auto;
}

.overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.relative-z1 {
  position: relative;
  z-index: 1;
}

.section-bg-image {
  position: relative;
  color: white;
  text-align: center;
}

.section-bg-image h2,
.section-bg-image p {
  color: white;
}

.section-bg-bougies {
  position: relative;
  background: url('/images/bougies-meches-bois-artisanales-provence.webp') center/cover;
}

.text-white {
  color: white !important;
}

.text-white h2,
.text-white h3,
.text-white p,
.text-white li {
  color: white !important;
}

.list-spacious {
  line-height: 2;
  padding-left: var(--spacing-md);
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-6 { margin-bottom: var(--spacing-xl); }

.gap-lg {
  gap: var(--spacing-lg);
}

.align-start {
  align-items: flex-start;
}

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

/* Animation principale fadeInUp */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Classes d'animation - initialement invisibles */
.animate-on-scroll {
  opacity: 0;
}

/* Animation appliquée lors de l'apparition */
.animate-on-scroll.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Animation initiale du hero au chargement */
.hero-content {
  animation: fadeIn 1.2s ease-out;
}

.hero-title {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta {
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* ======================
   BANNIÈRE DE CONSENTEMENT COOKIES (RGPD)
   ====================== */

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-top: 1px solid var(--color-border-subtle);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  padding: var(--spacing-md);
  z-index: 10000;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease,
              visibility 0.4s;
}

.cookie-consent-banner.visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.cookie-consent-text {
  flex: 1;
  min-width: 280px;
}

.cookie-consent-text p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
}

.cookie-consent-text a {
  color: var(--color-text);
  text-decoration: underline;
}

.cookie-consent-text a:hover {
  color: var(--color-hover);
}

.cookie-consent-actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}

.cookie-consent-actions .btn {
  white-space: nowrap;
  padding: var(--spacing-xs-plus) var(--spacing-md);
  font-size: 0.95rem;
}

/* ======================
   MODALES LÉGALES
   ====================== */

/* Overlay pour les modales - au-dessus de la bannière cookies */
.legal-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease-out,
              visibility 0.25s;
  z-index: 11000; /* Au-dessus de la bannière cookies (10000) */
}

.legal-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modale */
.legal-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11001; /* Au-dessus de l'overlay (11000) */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease-out,
              visibility 0.25s;
  padding: var(--spacing-md);
}

.legal-modal.active {
  opacity: 1;
  visibility: visible;
}

/* Container de la modale - Style minimaliste */
.legal-modal-container {
  background: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.legal-modal.active .legal-modal-container {
  transform: scale(1) translateY(0);
}

/* Header de la modale */
.legal-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--color-border-subtle);
  background: var(--color-gray-light);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.legal-modal-header h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-text);
  margin: 0;
}

.legal-modal-close {
  background: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text);
  transition: var(--transition);
  flex-shrink: 0;
}

.legal-modal-close:hover {
  background: var(--color-gray-light);
  transform: rotate(90deg);
}

/* Contenu de la modale */
.legal-modal-content {
  padding: var(--spacing-md);
  overflow-y: auto;
  flex: 1;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Scrollbar custom pour la modale */
.legal-modal-content::-webkit-scrollbar {
  width: 8px;
}

.legal-modal-content::-webkit-scrollbar-track {
  background: var(--color-gray-light);
  border-radius: 10px;
}

.legal-modal-content::-webkit-scrollbar-thumb {
  background: var(--color-text);
  border-radius: 10px;
}

.legal-modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--color-hover);
}

/* Sections dans la modale */
.legal-modal-content .legal-section {
  margin-bottom: var(--spacing-md);
}

.legal-modal-content .legal-section:last-child {
  margin-bottom: 0;
}

.legal-modal-content .legal-section h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
  margin-top: 0;
}

.legal-modal-content .legal-section h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.legal-modal-content .legal-section p {
  line-height: 1.7;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
}

.legal-modal-content .legal-section p:last-child {
  margin-bottom: 0;
}

.legal-modal-content .legal-section ul {
  list-style: disc;
  margin-left: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.legal-modal-content .legal-section li {
  line-height: 1.7;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text);
}

.legal-modal-content .legal-section strong {
  color: var(--color-text);
  font-weight: 600;
}

.legal-modal-content .legal-date {
  font-style: italic;
  color: var(--color-text-light);
  margin-top: var(--spacing-md);
}

/* ===================================
   CAROUSEL COMPONENT
   =================================== */

.oeuvre-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 1rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Navigation Arrows */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
    left: 16px;
}

.carousel-btn-next {
    right: 16px;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
    stroke: #333;
    stroke-width: 2.5;
    fill: none;
}

/* Dots Indicators */
.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 1);
    width: 24px;
    border-radius: 4px;
}

/* Hide controls if only one image */
.oeuvre-carousel[data-slides="1"] .carousel-btn,
.oeuvre-carousel[data-slides="1"] .carousel-dots {
    display: none;
}

/* ======================
   RESPONSIVE
   ====================== */

@media (max-width: 768px) {
  /* Grilles avec scroll horizontal - Expérience mobile moderne */
  /* UTILISATION DE GRID pour forcer les hauteurs égales */
  .grid-3,
  .grid-4,
  .parfum-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 280px;
    gap: var(--spacing-md);
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: var(--spacing-xs) var(--spacing-md) var(--spacing-md) var(--spacing-md);
    margin: 0 calc(-1 * var(--spacing-md));
    scroll-padding-left: var(--spacing-md);
    scroll-padding-right: var(--spacing-md);
  }

  .grid-3 > *,
  .grid-4 > *,
  .parfum-grid > * {
    scroll-snap-align: start;
  }

  /* Grid-2 reste en colonne unique sur mobile */
  .grid-2 {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  /* Images dans grid-2 sur mobile */
  .grid-2 img {
    width: 100%;
    height: auto;
    min-height: 300px;
    max-height: 400px;
    object-fit: cover;
  }

  /* Centrage du contenu sur mobile */
  .grid-2 p,
  .grid-2 ul,
  .grid-2 h2,
  .grid-2 h3,
  .grid-2 .text-left {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .grid-2 .btn {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Listes centrées sur mobile */
  .grid-2 ul {
    list-style-position: inside;
    padding-left: 0;
  }

  /* Sections avec image de fond - centrer le contenu */
  .section-bg-image h2,
  .section-bg-image h3,
  .section-bg-image p,
  .section-bg-image ul {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .section-bg-image ul {
    list-style-position: inside;
    padding-left: 0;
    max-width: 600px;
  }

  /* Amélioration de l'espacement */
  .container {
    padding: 0 var(--spacing-md);
  }

  .section,
  .content-section {
    padding: var(--spacing-xl) 0;
  }

  .section-small {
    padding: var(--spacing-lg) 0;
  }

  /* Boutons en pleine largeur sur mobile */
  .button-group {
    flex-direction: column;
    width: 100%;
  }

  .button-group .btn {
    width: 100%;
    max-width: 350px;
  }

  /* Espacement amélioré pour les marges */
  .mb-6 {
    margin-bottom: var(--spacing-lg) !important;
  }

  .mt-2 {
    margin-top: var(--spacing-md) !important;
  }

  /* Liste spacieuse centrée sur mobile */
  .list-spacious {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
    padding-left: var(--spacing-md);
  }

  /* Centrage des contenus */
  .centered-content {
    padding: 0 var(--spacing-sm);
    text-align: center;
  }

  /* Hero section mobile */
  .hero-content {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Features mobile */
  .features {
    gap: var(--spacing-lg);
    padding: 0 var(--spacing-sm);
  }

  .feature-item {
    padding: var(--spacing-sm);
  }

  /* Text alignment helpers */
  .text-center {
    text-align: center !important;
  }

  /* Menu hamburger - Style Popover moderne */
  .nav-menu {
    position: fixed;
    top: calc(var(--navbar-height) + 0.5rem);
    right: 1rem;
    width: 180px;
    max-width: calc(100vw - 2rem);
    background: var(--color-white);
    border: 1px solid var(--color-border-subtle);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs-plus);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1001;

    /* Animation initiale - invisible et petit */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.3);
    transform-origin: top right;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.3s;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
    border-radius: var(--radius-sm);
    transition: background 0.3s ease;
  }

  .nav-menu li:hover {
    background: var(--color-gray-light);
  }

  /* Style pour l'élément actif */
  .nav-menu li:has(a.active) {
    background: var(--color-gray);
  }

  .nav-menu a {
    padding: var(--spacing-xs-plus) var(--spacing-xs-plus);
    font-size: 1rem;
    display: block;
    transition: color 0.3s ease;
    border-radius: 0;
    border-bottom: none;
  }

  .nav-menu a:hover {
    color: var(--color-hover);
  }

  .nav-menu a.active {
    color: var(--color-text);
  }

  .nav-toggle {
    display: block;
    z-index: 1002;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* Overlay pour le menu mobile - plus subtil pour le popover */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.3s;
    z-index: 999;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .parfum-card img {
    height: 250px;
    object-fit: cover;
  }

  .card-image {
    height: 250px;
    object-fit: cover;
  }

  /* Centrage du contenu des cartes sur mobile */
  .parfum-card,
  .oeuvre-card {
    text-align: center;
  }

  /* Les cards gardent leur structure flexbox interne */
  .grid-3 > .oeuvre-card,
  .grid-4 > *,
  .parfum-grid > * {
    display: flex;
    flex-direction: column;
  }

  .oeuvre-card h3,
  .oeuvre-dimensions,
  .oeuvre-price,
  .oeuvre-description,
  .oeuvre-details {
    text-align: center;
  }

  .oeuvre-details p {
    text-align: center;
  }

  /* Bouton en pleine largeur sur mobile */
  .oeuvre-card .btn {
    width: 100%;
    max-width: 100%;
  }

  /* FAQ responsive */
  .faq-list {
    padding: 0;
  }

  .faq-question {
    font-size: 0.95rem;
    padding: var(--spacing-sm);
  }

  .faq-answer {
    font-size: 0.95rem;
  }

  /* Footer empilé sur mobile */
  .footer-links {
    flex-direction: column;
    gap: var(--spacing-xs);
  }

  /* Carousel responsive */
  .carousel-container {
    height: 350px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .carousel-btn-prev {
    left: 12px;
  }

  .carousel-btn-next {
    right: 12px;
  }

  .carousel-dot {
    width: 7px;
    height: 7px;
  }

  .carousel-dot.active {
    width: 20px;
  }

  /* Responsive bannière cookies */
  .cookie-consent-banner {
    padding: var(--spacing-sm);
  }

  .cookie-consent-content {
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-sm);
  }

  .cookie-consent-text {
    text-align: center;
    min-width: auto;
  }

  .cookie-consent-actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-consent-actions .btn {
    width: 100%;
  }

  /* Responsive modales légales */
  .legal-modal {
    padding: var(--spacing-sm);
  }

  .legal-modal-container {
    max-height: 90vh;
    border-radius: var(--radius-md);
  }

  .legal-modal-header {
    padding: var(--spacing-sm);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .legal-modal-header h2 {
    font-size: 1.5rem;
  }

  .legal-modal-content {
    padding: var(--spacing-sm);
  }

  .legal-modal-content .legal-section h2 {
    font-size: 1.1rem;
  }

  .legal-modal-content .legal-section h3 {
    font-size: 1rem;
  }

  .legal-modal-close {
    width: 36px;
    height: 36px;
  }

}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
    letter-spacing: 0.05em;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  .section,
  .content-section {
    padding: var(--spacing-lg) 0;
  }

  .section-small {
    padding: var(--spacing-md) 0;
  }

  /* Grilles sur très petits écrans - cartes plus larges */
  .grid-3,
  .grid-4,
  .parfum-grid {
    padding: var(--spacing-xs) var(--spacing-sm) var(--spacing-md) var(--spacing-sm);
    margin: 0 calc(-1 * var(--spacing-sm));
    scroll-padding-left: var(--spacing-sm);
    scroll-padding-right: var(--spacing-sm);
  }

  .grid-3 > *,
  .grid-4 > *,
  .parfum-grid > * {
    flex: 0 0 90%;
    min-width: 260px;
  }

  /* Hero et boutons */
  .hero-content {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
  }

  .btn-primary {
    padding: 0.8rem 2rem;
  }

  /* Features */
  .features {
    gap: var(--spacing-md);
  }

  .feature-icon {
    width: 60px;
    height: 60px;
  }

  /* Centered content */
  .centered-content {
    padding: 0;
  }

  /* Images sur très petits écrans */
  .grid-2 img {
    min-height: 250px;
    max-height: 350px;
  }

  /* Responsive bannière cookies sur très petits écrans */
  .cookie-consent-text p {
    font-size: 0.9rem;
  }

  .cookie-consent-actions .btn {
    font-size: 0.9rem;
    padding: var(--spacing-xs-plus) var(--spacing-sm);
  }

  /* Responsive modales sur très petits écrans */
  .legal-modal {
    padding: var(--spacing-xs);
  }

  .legal-modal-container {
    max-height: 95vh;
  }

  .legal-modal-header h2 {
    font-size: 1.25rem;
  }

  .legal-modal-content .legal-section h2 {
    font-size: 1rem;
  }

  .legal-modal-content .legal-section h3 {
    font-size: 0.95rem;
  }
}

/* ======================
   VERY LARGE SCREENS (≥1400px)
   ====================== */

@media (min-width: 1400px) {
  /* Hero - limiter la hauteur sur très grands écrans */
  .hero {
    max-height: 900px;
  }

  /* Grilles - optimisation pour très grands écrans */
  .grid-3,
  .grid-4,
  .parfum-grid {
    gap: var(--spacing-xl);
  }
}

/* ======================
   UTILITY CLASSES
   ====================== */

/* Margin top utilities */
.mt-3 {
  margin-top: 3rem;
}

/* Legal content styling */
.legal-content {
  max-width: 800px;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content ul {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--color-text);
  text-decoration: underline;
  transition: var(--transition);
}

.legal-content a:hover {
  color: var(--color-hover);
}

/* ======================
   PAGE 404
   ====================== */

.section-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.error-404-number {
  font-size: 8rem;
  font-weight: 700;
  color: var(--color-text);
  opacity: 0.2;
  margin-bottom: 1rem;
}

.error-404-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.error-404-text {
  font-size: 1.125rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.error-404-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
