/* ============================================
   Variables & Design System
   ============================================ */

:root {
  /* Fonds */
  --color-bg-primary: #FDFBF9;
  --color-bg-secondary: #F5F0EB;
  
  /* Textes */
  --color-text-primary: #2D2926;
  --color-text-secondary: #6B5B4F;
  
  /* Accents */
  --color-accent: #C9A86C;
  --color-accent-hover: #B8956A;
  
  /* Utilitaires */
  --color-border: #E8E2DC;
  --color-white: #FFFFFF;
  --color-footer-bg: #2D2926;
  --color-footer-text: #FDFBF9;

  /* Espacements */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 80px;

  --container-max: 1200px;
  --container-padding: 24px;
}

/* ============================================
   Reset & Base
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============================================
   Container
   ============================================ */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ============================================
   Typographie
   ============================================ */

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: 32px;
  font-weight: 600;
}

h2 {
  font-size: 26px;
  font-weight: 500;
}

h3 {
  font-size: 20px;
  font-weight: 400;
  font-family: 'Playfair Display', serif;
}

@media (min-width: 1024px) {
  h1 {
    font-size: 48px;
  }
  h2 {
    font-size: 36px;
  }
  h3 {
    font-size: 24px;
  }
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* ============================================
   Boutons
   ============================================ */

.btn {
  padding: 14px 32px;
  font-size: 14px;
  font-family: 'Lato', sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-ghost {
  background: transparent;
  color: var(--color-accent);
  padding: 14px 16px;
}

.btn-ghost:hover {
  text-decoration: underline;
}

/* ============================================
   Header
   ============================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg-primary);
  height: 72px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(45, 41, 38, 0.05);
}

.header.scrolled {
  backdrop-filter: blur(10px);
  background: rgba(253, 251, 249, 0.95);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
  background: transparent;
  border-radius: 50%;
  /* Supprime le fond blanc du logo si présent */
  mix-blend-mode: multiply;
  /* Alternative : si le logo a un fond blanc, on peut utiliser cette technique */
  image-rendering: -webkit-optimize-contrast;
}

/* Si le logo a un fond blanc carré, on peut le masquer */
.logo-img {
  background: var(--color-bg-primary);
  padding: 0;
  border: none;
}

.logo-text {
  display: none;
}

@media (min-width: 768px) {
  .logo-text {
    display: inline;
  }
}

.nav {
  display: none;
  gap: var(--space-lg);
}

.nav a {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: var(--color-accent);
}

.social-link {
  display: flex;
  align-items: center;
  color: var(--color-text-primary);
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--color-accent);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: var(--color-bg-primary);
  padding-bottom: var(--space-3xl);
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(45, 41, 38, 0.4) 0%,
    rgba(45, 41, 38, 0.2) 50%,
    rgba(253, 251, 249, 0.3) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  max-width: 700px;
  padding: var(--space-xl);
  text-shadow: 0 2px 8px rgba(45, 41, 38, 0.3);
  margin-top: auto;
  padding-bottom: var(--space-3xl);
  padding-top: var(--space-2xl);
}

.hero-title {
  font-size: 32px;
  margin-bottom: var(--space-md);
  color: var(--color-white);
  text-shadow: 0 2px 12px rgba(45, 41, 38, 0.4);
}

.hero-subtitle {
  font-size: 18px;
  margin-bottom: var(--space-xl);
  color: var(--color-white);
  opacity: 0.95;
  text-shadow: 0 1px 6px rgba(45, 41, 38, 0.3);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .hero {
    min-height: 100vh;
    padding-bottom: var(--space-3xl);
  }
  
  .hero-content {
    padding: var(--space-2xl);
    margin-bottom: var(--space-3xl);
  }
  
  .hero-title {
    font-size: 42px;
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 56px;
  }
  .hero-subtitle {
    font-size: 24px;
  }
  
  .hero-overlay {
    background: linear-gradient(
      135deg,
      rgba(45, 41, 38, 0.5) 0%,
      rgba(45, 41, 38, 0.25) 50%,
      rgba(253, 251, 249, 0.4) 100%
    );
  }
}

/* ============================================
   Section
   ============================================ */

.section {
  padding: var(--space-3xl) 0;
}

/* ============================================
   Créations Section
   ============================================ */

.filters-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  align-items: center;
}

.filters-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
}

.filters-label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.filters {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.filters-collections {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  font-size: 14px;
  font-family: 'Lato', sans-serif;
  font-weight: 500;
  background: transparent;
  border: 1.5px solid var(--color-border);
  border-radius: 24px;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .filters-container {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-xl);
  }
  
  .filters-group {
    align-items: flex-start;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   Product Card
   ============================================ */

.product-card {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(45, 41, 38, 0.06);
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(45, 41, 38, 0.12);
  transform: translateY(-4px);
}

.product-card img {
  aspect-ratio: 1/1;
  object-fit: cover;
  width: 100%;
}

.product-card-content {
  padding: 20px;
}

.product-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.product-card-description {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  gap: 12px;
}

.product-card-price {
  font-family: 'Lato', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--color-accent);
}

.product-card .btn {
  padding: 10px 20px;
  font-size: 13px;
  white-space: nowrap;
}

/* ============================================
   About Section
   ============================================ */

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-image {
  width: 100%;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(45, 41, 38, 0.1);
}

.about-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.about-text h2 {
  text-align: left;
  margin-bottom: var(--space-lg);
}

.about-text p {
  margin-bottom: var(--space-md);
}

@media (min-width: 1024px) {
  .about-content {
    grid-template-columns: 40% 60%;
  }
}

/* ============================================
   Contact Section
   ============================================ */

.contact {
  background: var(--color-bg-secondary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
  display: block;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-white);
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.contact-info {
  text-align: center;
}

.contact-info p {
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.contact-link {
  color: var(--color-accent);
  font-weight: 500;
  display: inline-block;
  margin-bottom: var(--space-md);
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-email:hover {
  background: var(--color-accent);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 155, 0.3);
}

.contact-location {
  color: var(--color-text-secondary);
}

@media (min-width: 1024px) {
  .contact-content {
    grid-template-columns: 1fr 1fr;
  }
  .contact-info {
    text-align: left;
  }
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: var(--space-xl) 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.footer-logo .logo {
  color: var(--color-footer-text);
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo .logo-img {
  filter: brightness(0) invert(1);
}

.footer-nav {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: var(--color-footer-text);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-copyright {
  font-size: 14px;
  opacity: 0.7;
  margin-top: var(--space-sm);
}

/* ============================================
   Cart
   ============================================ */

.cart-icon-container {
  position: relative;
}

.cart-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  position: relative;
  padding: 8px;
  color: var(--color-text-primary);
  transition: color 0.3s ease;
}

.cart-toggle:hover {
  color: var(--color-accent);
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--color-accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  display: none;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  right: 0;
}

.cart-sidebar-header {
  padding: 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-sidebar-header h2 {
  font-size: 24px;
  margin: 0;
}

.cart-close {
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--color-text-secondary);
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-close:hover {
  color: var(--color-text-primary);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-empty {
  text-align: center;
  color: var(--color-text-secondary);
  padding: 48px 0;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 14px;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quantity-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-border);
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.quantity-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.quantity-value {
  font-weight: 500;
  min-width: 24px;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s ease;
}

.cart-item-remove:hover {
  color: #d32f2f;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
}

.cart-total {
  font-size: 18px;
  margin-bottom: 16px;
  text-align: center;
  color: var(--color-text-primary);
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(45, 41, 38, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   Checkout Modal
   ============================================ */

.checkout-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(45, 41, 38, 0.7);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow-y: auto;
}

.checkout-modal.active {
  opacity: 1;
  visibility: visible;
}

.checkout-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.checkout-modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}

.checkout-modal-header h2 {
  font-size: 24px;
  margin: 0;
}

.checkout-close {
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--color-text-secondary);
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-close:hover {
  color: var(--color-text-primary);
}

.checkout-form {
  padding: 24px;
}

.checkout-summary {
  background: var(--color-bg-secondary);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.checkout-summary h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.checkout-item:last-child {
  border-bottom: none;
}

.checkout-total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--color-border);
  font-size: 18px;
  text-align: right;
}

.checkout-fields {
  margin-bottom: 24px;
}

.checkout-fields h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.checkout-payment {
  margin-bottom: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.checkout-payment h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.payment-option {
  display: block;
  cursor: pointer;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s ease;
}

.payment-option:hover {
  border-color: var(--color-accent);
  background: var(--color-bg-secondary);
}

.payment-option input[type="radio"] {
  display: none;
}

.payment-option input[type="radio"]:checked + .payment-option-content {
  color: var(--color-accent);
}

.payment-option:has(input[type="radio"]:checked) {
  border-color: var(--color-accent);
  background: var(--color-bg-secondary);
}

.payment-option-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.payment-icon {
  font-size: 32px;
  line-height: 1;
}

.payment-option-content strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--color-text-primary);
}

.payment-option-content p {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 0;
}

.payment-instructions {
  background: var(--color-bg-secondary);
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid var(--color-accent);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-line;
}

.payment-instructions strong {
  color: var(--color-text-primary);
}

.checkout-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }
  
  .checkout-modal-content {
    max-width: 100%;
    border-radius: 0;
    max-height: 100vh;
  }
  
  .checkout-actions {
    flex-direction: column;
  }
  
  .checkout-actions .btn {
    width: 100%;
  }
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ============================================
   Animations
   ============================================ */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Mobile Menu
   ============================================ */

@media (max-width: 1023px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-bg-primary);
    flex-direction: column;
    padding: var(--space-lg);
    box-shadow: 0 4px 12px rgba(45, 41, 38, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

