/* ===== VARIABLES & RESET ===== */
:root {
  --cuivre: #b87333;
  --cuivre-dark: #8b5a2b;
  --cuivre-light: #d4a76a;
  --ambre: #d4a76a;
  --terre: #5d4037;
  --terre-dark: #3e2723;
  --creme: #fff9f0;
  --ivoire: #fffbf5;
  --blanc: #ffffff;
  --noir: #1a1a1a;
  --gris: #666666;
  --gris-light: #f5f5f5;

  --font-heading: "Cormorant Garamond", serif;
  --font-body: "Montserrat", sans-serif;

  --shadow: 0 4px 20px rgba(93, 64, 55, 0.15);
  --shadow-hover: 0 8px 30px rgba(93, 64, 55, 0.25);
  --transition: transform 0.3s ease;

  --container-padding: 20px;
  --section-padding: 80px 0;
  --border-radius: 12px;
  --border-radius-lg: 16px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--creme); color: var(--terre); line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--container-padding); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; color: var(--terre-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.6rem); }
em { font-style: italic; color: var(--cuivre); }

/* ===== HEADER ===== */
.header { position: sticky; top: 0; background: rgba(255,249,240,0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--ambre); z-index: 1000; padding: 12px 0; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 600; letter-spacing: 2px; color: var(--terre-dark); }
.logo-dot { color: var(--cuivre); }
.nav { display: flex; gap: 24px; }
.nav a { font-size: 0.95rem; font-weight: 500; position: relative; padding: 4px 0; color: var(--terre); }
.nav a::after { content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--cuivre); transition: var(--transition); }
.nav a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--terre); padding: 8px; }

/* ===== HERO ===== */
.hero { position: relative; min-height: 88vh; overflow: hidden; background: linear-gradient(135deg, var(--terre-dark) 0%, #5d3a2a 60%, #7a4a30 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 75% 50%, rgba(184,115,51,0.18) 0%, transparent 70%), radial-gradient(ellipse 40% 60% at 10% 80%, rgba(212,167,106,0.12) 0%, transparent 60%); pointer-events: none; z-index: 1; }
.hero::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 55%; background: radial-gradient(ellipse 100% 100% at 80% 50%, rgba(184,115,51,0.15) 0%, transparent 70%); pointer-events: none; z-index: 1; }
.hero-bg-overlay { display: none; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; padding: 80px 0; position: relative; z-index: 2; min-height: 88vh; }
.hero-text { color: var(--ivoire); }
.hero-text h1 { color: var(--blanc); margin-bottom: 20px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); line-height: 1.15; }
.hero-text p { font-size: 1.1rem; margin-bottom: 36px; opacity: 0.9; color: var(--ivoire); line-height: 1.7; }
.hero-cta { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hero-visual { position: relative; align-self: stretch; min-height: 400px; background: url("img/hero-bg.webp") right center / contain no-repeat; isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, var(--terre-dark) 0%, transparent 30%); pointer-events: none; z-index: 1; }

/* ===== BOUTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 32px; border-radius: 30px; font-weight: 500; font-size: 1rem; cursor: pointer; transition: var(--transition); border: none; white-space: nowrap; font-family: var(--font-body); }
.btn i { font-size: 1.1rem; }
.btn-primary { background: var(--cuivre); color: var(--blanc); }
.btn-primary:hover { background: var(--cuivre-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(184,115,51,0.4); }
.btn-outline { background: transparent; border: 2px solid var(--cuivre); color: var(--cuivre); }
.btn-outline:hover { background: var(--cuivre); color: var(--blanc); }

/* ===== SECTIONS ===== */
.section { padding: var(--section-padding); }
.section-title { text-align: center; margin-bottom: 50px; position: relative; padding-bottom: 16px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.section-title::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: var(--cuivre); border-radius: 2px; }
.section-title-left { text-align: left; justify-content: flex-start; }
.section-title-left::after { left: 0; transform: none; }

/* ===== CATÉGORIES ===== */
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.category-card { background: var(--blanc); padding: 32px 24px; border-radius: var(--border-radius); text-align: center; box-shadow: var(--shadow); transition: var(--transition); border: 2px solid transparent; }
.category-card:hover { transform: translateY(-6px); border-color: var(--cuivre); box-shadow: var(--shadow-hover); }
.cat-icon { width: 64px; height: 64px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--cuivre); background: var(--creme); border-radius: 50%; }
.category-card h4 { margin-bottom: 8px; color: var(--terre-dark); font-size: 1.2rem; }
.category-card p { font-size: 0.9rem; color: var(--gris); }

/* ===== COUPS DE CŒUR ===== */
.section-favoris { background: var(--terre-dark); position: relative; overflow: hidden; }
.section-favoris::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 10% 50%, rgba(184,115,51,0.12) 0%, transparent 60%), radial-gradient(ellipse 50% 60% at 90% 20%, rgba(212,167,106,0.1) 0%, transparent 60%); pointer-events: none; }
.section-favoris .section-title { color: var(--ivoire); }
.section-favoris .section-title::after { background: var(--ambre); }
.section-subtitle { text-align: center; color: rgba(255,251,245,0.7); font-size: 1rem; margin-top: -32px; margin-bottom: 50px; }
.favoris-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; z-index: 1; }
.favori-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(212,167,106,0.2); border-radius: var(--border-radius-lg); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; backdrop-filter: blur(4px); }
.favori-card:hover { transform: translateY(-8px); border-color: var(--ambre); background: rgba(255,255,255,0.08); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.favori-image { position: relative; height: 260px; overflow: hidden; background: linear-gradient(135deg, rgba(62,39,35,0.8), rgba(184,115,51,0.2)); }
.favori-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; transition: opacity 0.4s ease, transform 0.4s ease; }
.favori-image img:last-of-type { opacity: 0; }
.favori-card:hover .favori-image img:first-of-type { opacity: 0; transform: scale(1.05); }
.favori-card:hover .favori-image img:last-of-type { opacity: 1; transform: scale(1.05); }
.favori-badge { position: absolute; top: 12px; left: 12px; background: var(--cuivre); color: var(--blanc); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.5px; padding: 4px 10px; border-radius: 20px; display: flex; align-items: center; gap: 5px; z-index: 2; text-transform: uppercase; }
.favori-badge--new { background: #2d7a4f; }
.favori-badge--promo { background: #c07a2a; }
.favori-info { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex-grow: 1; }
.favori-marque { font-size: 0.8rem; font-weight: 600; color: var(--ambre); letter-spacing: 1px; text-transform: uppercase; }
.favori-info h4 { font-family: var(--font-heading); font-size: 1.3rem; color: var(--ivoire); margin: 2px 0 4px; }
.favori-notes { font-size: 0.82rem; color: rgba(255,251,245,0.5); flex-grow: 1; }
.favori-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.favori-prix { font-weight: 700; font-size: 1.05rem; color: var(--ambre); font-family: var(--font-heading); }

/* ===== FEATURES ===== */
.features { background: var(--blanc); padding: 4rem 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; max-width: 1200px; margin: 0 auto; padding: 0 var(--container-padding); }
.feature { text-align: center; padding: 2rem 1rem; }
.feature i { font-size: 2.5rem; color: var(--cuivre); margin-bottom: 1rem; display: block; }
.feature h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--terre-dark); }
.feature p { font-size: 0.95rem; color: var(--gris); }

/* ===== COLLECTION ===== */
.section-collection { background: var(--ivoire); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.product-card { background: var(--blanc); border-radius: var(--border-radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.carte-image { position: relative; height: 280px; overflow: hidden; background: linear-gradient(135deg, var(--creme), var(--ambre)); }
.carte-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s ease, transform 0.4s ease; }
.carte-image img:last-child { opacity: 0; }
.product-card:hover .carte-image img:first-child { opacity: 0; transform: scale(1.05); }
.product-card:hover .carte-image img:last-child { opacity: 1; transform: scale(1.05); }
.carte-info { padding: 20px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; }
.carte-info h4 { font-size: 1.2rem; margin-bottom: 4px; color: var(--terre-dark); }
.marque { font-size: 0.9rem; color: var(--cuivre); font-weight: 500; margin-bottom: 6px; }
.notes { font-size: 0.85rem; color: var(--gris); margin-bottom: 16px; flex-grow: 1; }
.carte-action { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.carte-prix { font-weight: 600; color: var(--terre-dark); font-size: 1.1rem; padding: 6px 14px; border: 2px solid var(--cuivre); border-radius: 20px; }
.bouton-whatsapp { background: #25d366; color: white; padding: 10px 16px; border-radius: 30px; font-weight: 500; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); white-space: nowrap; flex-shrink: 0; }
.bouton-whatsapp:hover { background: #128c7e; transform: scale(1.05); }

/* ===== FILTRES ===== */
.filters { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 40px; padding: 20px; background: var(--blanc); border-radius: var(--border-radius); box-shadow: var(--shadow); }
.filter-group { display: flex; align-items: center; gap: 10px; }
.filter-group label { font-weight: 500; font-size: 0.95rem; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.filter-group select,
.filter-group input { padding: 10px 16px; border: 2px solid var(--ambre); border-radius: 8px; font-family: var(--font-body); font-size: 0.95rem; background: var(--creme); color: var(--terre); min-width: 160px; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.filter-group select:focus,
.filter-group input:focus { outline: none; border-color: var(--cuivre); box-shadow: 0 0 0 3px rgba(184,115,51,0.2); }
.search-group { flex: 1; min-width: 200px; max-width: 280px; }
.search-group input { width: 100%; }
.no-results { display: none; text-align: center; padding: 40px; color: var(--gris); background: var(--blanc); border-radius: var(--border-radius); margin-top: 20px; box-shadow: var(--shadow); }
.no-results.active { display: block; }
.no-results i { font-size: 2rem; color: var(--cuivre); margin-bottom: 12px; display: block; }

/* ===== ABOUT & CONTACT ===== */
.section-about-contact { background: var(--blanc); }
.about-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-text p { margin-bottom: 16px; color: var(--terre); line-height: 1.75; }
.about-list { list-style: none; margin-top: 24px; }
.about-list li { padding: 8px 0 8px 32px; position: relative; font-size: 0.95rem; }
.about-list li i { position: absolute; left: 0; color: var(--cuivre); top: 11px; }
.about-contact { background: var(--creme); padding: 40px; border-radius: var(--border-radius-lg); box-shadow: var(--shadow); text-align: center; border: 1px solid rgba(212,167,106,0.3); }
.about-contact h4 { font-size: 1.5rem; margin-bottom: 16px; color: var(--terre-dark); display: flex; align-items: center; justify-content: center; gap: 10px; }
.about-contact h4 i { color: var(--cuivre); }
.about-contact p { margin-bottom: 24px; color: var(--gris); }
.about-contact .btn { margin-bottom: 24px; width: 100%; }
.contact-info { padding-top: 24px; border-top: 1px solid var(--ambre); text-align: left; }
.contact-info p { margin: 10px 0; font-size: 0.95rem; display: flex; align-items: center; gap: 10px; color: var(--terre); }
.contact-info i { color: var(--cuivre); width: 20px; text-align: center; }
.contact-info a { color: var(--terre); }
.contact-info a:hover { color: var(--cuivre); }

/* ===== FOOTER ===== */
.footer { background: var(--terre-dark); color: var(--ivoire); padding: 60px 0 20px; border-top: 3px solid var(--cuivre); }
.footer-content { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-section h3 { color: var(--ambre); font-size: 1.3rem; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--cuivre); display: inline-block; }
.footer-section p { margin: 10px 0; opacity: 0.9; font-size: 0.95rem; }
.footer-section a { color: var(--ivoire); transition: var(--transition); }
.footer-section a:hover { color: var(--ambre); }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); transition: var(--transition); }
.social-links a:hover { background: var(--cuivre); transform: translateY(-3px); }
.delivery-note { margin-top: 1rem !important; color: var(--ambre); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; opacity: 0.8; }

/* ===== WHATSAPP FLOTTANT ===== */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px; background: #25d366; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: 0 4px 20px rgba(37,211,102,0.4); z-index: 999; transition: var(--transition); animation: pulse 2s infinite; }
.whatsapp-float:hover { transform: scale(1.1); animation: none; background: #128c7e; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
  70%  { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) and (min-width: 769px) {
  .categories-grid, .features-grid, .favoris-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-content { grid-template-columns: repeat(2, 1fr); }
  .about-contact-grid { gap: 40px; }
  .filters { gap: 12px; }
}

@media (max-width: 768px) {
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--blanc); flex-direction: column; padding: 20px; gap: 16px; border-bottom: 1px solid var(--ambre); display: none; box-shadow: var(--shadow); }
  .nav.active { display: flex; }
  .nav-toggle { display: block; }
  .section { padding: 60px 0; }
  .hero { min-height: auto; }
  .hero-content { grid-template-columns: 55% 45%; gap: 0; padding: 50px 0 40px; min-height: auto; align-items: stretch; }
  .hero-text h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .hero-text p { font-size: 0.95rem; margin-bottom: 24px; }
  .hero-visual { min-height: 300px; background-size: contain; background-position: right center; }
  .hero-visual::before { background: linear-gradient(to right, var(--terre-dark) 0%, transparent 40%); }
  .filters { flex-direction: column; align-items: stretch; }
  .filter-group { flex-direction: column; align-items: flex-start; }
  .filter-group select, .filter-group input { width: 100%; min-width: auto; }
  .search-group { max-width: 100%; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product-card { font-size: 0.85rem; }
  .carte-image { height: 200px; }
  .carte-info { padding: 16px 12px; }
  .carte-info h4 { font-size: 1rem; }
  .notes { font-size: 0.8rem; }
  .carte-action { flex-direction: column; gap: 8px; }
  .carte-prix { font-size: 1rem; padding: 4px 10px; }
  .bouton-whatsapp { width: 100%; justify-content: center; padding: 8px 12px; font-size: 0.85rem; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .favoris-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .favori-image { height: 200px; }
  .favori-info { padding: 14px 16px 16px; }
  .favori-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
  .favori-footer .bouton-whatsapp { width: 100%; justify-content: center; }
  .cat-icon { width: 48px; height: 48px; font-size: 1.4rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .feature i { font-size: 2rem; }
  .feature h3 { font-size: 1.1rem; }
  .about-contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-contact { padding: 30px 20px; }
  .footer-content { grid-template-columns: repeat(2, 1fr); text-align: left; }
}

@media (max-width: 480px) {
  .hero-content { grid-template-columns: 1fr; padding: 40px 0 0; gap: 0; }
  .hero-text { order: 1; text-align: center; }
  .hero-cta { align-items: center; }
  .hero-visual { order: 2; min-height: 240px; background-position: center bottom; background-size: contain; }
  .hero-visual::before { background: linear-gradient(to bottom, var(--terre-dark) 0%, transparent 40%); }
  .hero-text h1 { font-size: 1.8rem; }
  .hero-text p { font-size: 0.95rem; }
  .hero-cta .btn { width: 100%; max-width: 100%; }
  .footer-content { grid-template-columns: 1fr; text-align: center; }
  .footer-section { text-align: center; }
  .social-links { justify-content: center; }
  .contact-info { text-align: center; }
  .contact-info p { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}