/* ============================================================
   Maill fine - Feuille de style principale
   Design moderne - glassmorphism + effets hover 3D
   ============================================================ */

:root {
  --bg:        #faf8f6;
  --bg-alt:    #f2ede8;
  --dark:      #16130f;
  --dark-soft: #2a2521;
  --accent:    #b08256;
  --accent-lt: #cfa577;
  --rose:      #d9b8a8;
  --text:      #1c1917;
  --gray:      #8a8279;
  --line:      #e6ded6;
  --white:     #ffffff;
  --success:   #2f7d54;
  --danger:    #b23b3b;
  --radius:    18px;
  --shadow-sm: 0 4px 16px rgba(22,19,15,.06);
  --shadow-md: 0 12px 36px rgba(22,19,15,.10);
  --shadow-lg: 0 24px 64px rgba(22,19,15,.16);
  --ease:      cubic-bezier(.22,.61,.36,1);
}

/* ---------------- Reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 15px;
}
img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: .4px; line-height: 1.2; }

/* ---------------- Utilitaires ---------------- */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 5%; }
.section { padding: 90px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(24px, 4vw, 34px);
  text-transform: uppercase;
  letter-spacing: 4px;
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
}
.section-head h2::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 64px; height: 2px;
  background: var(--accent);
}
.section-head p { color: var(--gray); margin: 14px 0 0; font-size: 14px; letter-spacing: .5px; }
.hidden { display: none !important; }

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
/* Fallback : garantit l'affichage meme si l'observer ne voit pas l'element */
@keyframes revealFallback { to { opacity: 1; transform: translateY(0); } }
.reveal { animation: revealFallback .9s ease .5s forwards; }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; transition: none; }
}

/* ---------------- Boutons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 34px;
  border: 1px solid var(--dark);
  background: transparent;
  color: var(--dark);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  transition: all .35s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--dark); color: var(--white); }
.btn-filled { background: var(--dark); color: var(--white); }
.btn-filled:hover { background: var(--accent); border-color: var(--accent); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--dark); border-color: var(--dark); }
.btn-light { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-light:hover { background: #fff; color: var(--dark); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------------- Header / Navigation ---------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 20px 0;
  transition: all .4s var(--ease);
  background: transparent;
}
.site-header.scrolled {
  padding: 12px 0;
  background: rgba(250,248,246,.82);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 6px 28px rgba(22,19,15,.07);
  border-bottom: 1px solid rgba(230,222,214,.7);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { font-size: 22px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; }
.logo span { color: var(--accent); }
.site-header.on-hero .logo,
.site-header.on-hero .main-nav a,
.site-header.on-hero .header-actions a,
.site-header.on-hero .header-actions button { color: #fff; }
.site-header.on-hero .cart-badge { background: var(--accent); color: #fff; }

.main-nav ul { display: flex; gap: 34px; }
.main-nav a {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: color .3s var(--ease);
}
.main-nav a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width .35s var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-actions a, .header-actions button {
  background: none; border: 0; padding: 0;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  transition: opacity .3s var(--ease);
}
.header-actions a:hover { opacity: .65; }
.cart-link { position: relative; }
.cart-badge {
  position: absolute;
  top: -9px; right: -12px;
  min-width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  line-height: 1;
}
.cart-badge.empty { display: none; }

/* Hamburger */
.burger {
  display: none;
  width: 30px; height: 22px;
  flex-direction: column;
  justify-content: space-between;
  background: none; border: 0; padding: 0;
}
.burger span { display: block; height: 2px; width: 100%; background: var(--dark); transition: all .35s var(--ease); }
.site-header.on-hero .burger span { background: #fff; }
.burger.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* Menu mobile */
.mobile-nav {
  position: fixed;
  top: 0; right: -100%;
  width: min(360px, 86vw);
  height: 100vh;
  background: rgba(250,248,246,.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 950;
  padding: 100px 32px 40px;
  transition: right .45s var(--ease);
  box-shadow: -20px 0 60px rgba(22,19,15,.14);
  overflow-y: auto;
}
.mobile-nav.open { right: 0; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(22,19,15,.45);
  z-index: 940;
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease);
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding: 120px 5% 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.06);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1.16); } }
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,19,15,.55) 0%, rgba(22,19,15,.42) 45%, rgba(22,19,15,.72) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 820px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 22px;
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 40px;
}
.hero h1 {
  font-size: clamp(32px, 6.5vw, 64px);
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero p { font-size: clamp(14px, 2vw, 17px); opacity: .92; max-width: 620px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------------- Grille produits ---------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
}
.product-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.product-card .img-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-alt);
}
.product-card .img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.product-card:hover .img-wrap img { transform: scale(1.07); }
.badge-promo {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 30px;
  z-index: 2;
}
.product-card .info { padding: 20px 18px 22px; display: flex; flex-direction: column; flex: 1; }
.product-card .cat { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); }
.product-card h3 { font-size: 15px; margin: 8px 0 12px; font-weight: 500; }
.product-card .price { font-size: 16px; font-weight: 700; margin-top: auto; }
.product-card .price .old { font-size: 13px; color: var(--gray); text-decoration: line-through; margin-left: 8px; font-weight: 400; }
.product-card .btns { margin-top: 16px; }

/* ---------------- Carrousel vedettes ---------------- */
.carousel-wrap { position: relative; }
.carousel {
  display: flex;
  gap: 24px;
  overflow: hidden;
  padding: 6px;
}
.carousel-item { flex: 0 0 calc((100% - 48px) / 3); }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  transition: all .3s var(--ease);
}
.carousel-btn:hover { background: var(--dark); border-color: var(--dark); color: #fff; }
.carousel-btn.prev { left: -22px; }
.carousel-btn.next { right: -22px; }

/* ---------------- Collections ---------------- */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.collection-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: block;
  transition: transform .5s var(--ease);
}
.collection-card:hover { transform: translateY(-8px); }
.collection-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.collection-card:hover img { transform: scale(1.08); }
.collection-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,19,15,0) 45%, rgba(22,19,15,.7) 100%);
}
.collection-card .cc-label {
  position: absolute;
  left: 26px; bottom: 26px;
  z-index: 2;
  color: #fff;
}
.collection-card .cc-label h3 { font-size: 20px; text-transform: uppercase; letter-spacing: 2px; }
.collection-card .cc-label span { font-size: 12px; letter-spacing: 1px; opacity: .9; }

/* ---------------- Réassurance ---------------- */
.reassurance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 70px 5%;
  background: var(--bg-alt);
}
.reassurance-item {
  background: rgba(255,255,255,.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 14px;
  padding: 30px 20px;
  text-align: center;
  transition: all .35s var(--ease);
}
.reassurance-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.reassurance-item svg { color: var(--accent); margin: 0 auto 14px; }
.reassurance-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.reassurance-item p { font-size: 13px; color: var(--gray); margin: 0; }

/* ---------------- Catégories / filtres ---------------- */
.page-head {
  padding: 150px 5% 40px;
  text-align: center;
  background: var(--bg-alt);
}
.page-head h1 { font-size: clamp(26px, 5vw, 40px); text-transform: uppercase; letter-spacing: 4px; }
.page-head p { color: var(--gray); margin-top: 10px; font-size: 14px; }
.breadcrumb { font-size: 12px; letter-spacing: 1px; color: var(--gray); margin-top: 12px; }
.breadcrumb a:hover { color: var(--accent); }

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: var(--white);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all .3s var(--ease);
}
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--dark); border-color: var(--dark); color: #fff; }
.sort-select {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: var(--white);
  font-size: 13px;
  cursor: pointer;
}

/* ---------------- Fiche produit ---------------- */
.product-detail {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  padding: 140px 5% 80px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: start;
}
.gallery-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 3 / 4;
  cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  transition: all .3s var(--ease);
}
.gallery-arrow:hover { background: var(--dark); color: #fff; }
.gallery-arrow.prev { left: 16px; }
.gallery-arrow.next { right: 16px; }
.gallery-thumbs { display: flex; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.gallery-thumbs img {
  width: 84px; height: 106px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.gallery-thumbs img.active, .gallery-thumbs img:hover { border-color: var(--accent); }

.detail-cat { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--gray); }
.detail-title { font-size: clamp(24px, 3.5vw, 34px); margin: 12px 0 16px; font-weight: 400; letter-spacing: 1px; }
.detail-price { font-size: 26px; font-weight: 700; }
.detail-price .old { font-size: 18px; color: var(--gray); text-decoration: line-through; margin-left: 12px; font-weight: 400; }
.detail-desc { color: #4d4741; margin: 22px 0; font-size: 15px; line-height: 1.8; }

.size-block { margin: 22px 0; }
.size-block .sb-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.size-block .sb-head span { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.size-options { display: flex; flex-wrap: wrap; gap: 10px; }
.size-btn {
  min-width: 52px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  font-size: 13px;
  transition: all .3s var(--ease);
}
.size-btn:hover { border-color: var(--dark); }
.size-btn.active { background: var(--dark); border-color: var(--dark); color: #fff; }
.size-btn.sold-out { opacity: .4; text-decoration: line-through; cursor: not-allowed; }

.stock-info { font-size: 13px; margin: 12px 0; color: var(--success); }
.stock-info.low { color: var(--danger); }

.qty-row { display: flex; align-items: center; gap: 18px; margin: 22px 0; flex-wrap: wrap; }
.qty-picker { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 40px; overflow: hidden; background: var(--white); }
.qty-picker button { width: 44px; height: 46px; border: 0; background: none; font-size: 18px; transition: background .3s; }
.qty-picker button:hover { background: var(--bg-alt); }
.qty-picker input { width: 54px; height: 46px; border: 0; text-align: center; font-size: 15px; background: none; }

.product-reassurance {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
}
.product-reassurance div { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #4d4741; }
.product-reassurance svg { color: var(--accent); flex-shrink: 0; }
.product-reassurance a { color: var(--accent); text-decoration: underline; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(12,10,8,.94);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity .3s var(--ease);
  padding: 24px;
}
.lightbox.active { opacity: 1; }
.lightbox img { max-width: 92%; max-height: 92%; object-fit: contain; border-radius: 8px; }
.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

/* ---------------- Panier ---------------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; align-items: start; }
.cart-list { display: flex; flex-direction: column; gap: 18px; }
.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.cart-item img { width: 100px; height: 126px; object-fit: cover; border-radius: 10px; }
.cart-item h4 { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.cart-item .ci-meta { font-size: 12px; color: var(--gray); letter-spacing: 1px; }
.cart-item .ci-price { font-weight: 700; margin-top: 8px; }
.ci-remove { background: none; border: 0; color: var(--gray); font-size: 12px; text-decoration: underline; margin-top: 8px; padding: 0; }
.ci-remove:hover { color: var(--danger); }

.cart-summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  position: sticky;
  top: 100px;
}
.cart-summary h3 { font-size: 16px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 22px; }
.sum-row { display: flex; justify-content: space-between; padding: 11px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.sum-row.total { border-bottom: 0; font-size: 19px; font-weight: 700; padding-top: 20px; }
.cart-empty { text-align: center; padding: 70px 20px; color: var(--gray); }

/* ---------------- Formulaires ---------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray); }
.form-field input, .form-field select, .form-field textarea {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(176,130,86,.14);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.auth-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 40px;
  box-shadow: var(--shadow-sm);
}
.auth-switch { display: flex; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.auth-switch button {
  flex: 1;
  padding: 14px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  transition: all .3s var(--ease);
}
.auth-switch button.active { color: var(--dark); border-bottom-color: var(--accent); }

/* Autocomplete adresse */
.addr-suggestions {
  position: relative;
}
.addr-list {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  z-index: 60;
  max-height: 260px;
  overflow-y: auto;
  margin-top: 4px;
}
.addr-list div { padding: 12px 16px; font-size: 13px; cursor: pointer; border-bottom: 1px solid var(--line); }
.addr-list div:last-child { border-bottom: 0; }
.addr-list div:hover { background: var(--bg-alt); }

/* ---------------- Compte client ---------------- */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.account-tabs { display: flex; flex-direction: column; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: sticky; top: 100px; }
.account-tabs button {
  text-align: left;
  padding: 13px 16px;
  border: 0;
  border-radius: 10px;
  background: none;
  font-size: 13px;
  letter-spacing: 1px;
  transition: all .3s var(--ease);
}
.account-tabs button.active { background: var(--dark); color: #fff; }
.account-tabs button:hover:not(.active) { background: var(--bg-alt); }
.order-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 20px; }
.order-card-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.order-card-head h4 { font-size: 15px; }
.order-date { font-size: 12px; color: var(--gray); }
.badge { display: inline-block; padding: 6px 14px; border-radius: 30px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; }
.badge.en_attente { background: #fdf1dc; color: #9a6b1a; }
.badge.payee     { background: #e2f0e8; color: var(--success); }
.badge.expediee  { background: #e0ecf8; color: #2b6ca3; }
.badge.livree    { background: #e2f0e8; color: var(--success); }
.badge.annulee   { background: #f8e3e3; color: var(--danger); }
.order-items { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
.order-items th { text-align: left; padding: 8px 10px; background: var(--bg-alt); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--gray); }
.order-items td { padding: 10px; border-bottom: 1px solid var(--line); }
.order-total { display: flex; justify-content: flex-end; gap: 24px; font-weight: 700; margin-top: 10px; }
.track-btn {
  display: inline-block;
  padding: 11px 26px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 40px;
  margin-top: 14px;
}

/* ---------------- Contact ---------------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.contact-info h3 { font-size: 16px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 24px; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.contact-line:last-of-type { border-bottom: 0; }
.contact-line svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-line strong { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--gray); font-weight: 600; }
.map-frame { width: 100%; height: 280px; border: 0; border-radius: 14px; margin-top: 24px; }

/* ---------------- FAQ / accordéon ---------------- */
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; padding: 20px 24px; background: none; border: 0; font-size: 15px; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-q svg { flex-shrink: 0; transition: transform .3s var(--ease); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { padding: 0 24px 22px; margin: 0; color: #4d4741; font-size: 14px; line-height: 1.8; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.72); padding: 70px 5% 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; max-width: 1280px; margin: 0 auto 40px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.site-footer p { font-size: 14px; line-height: 1.8; }
.site-footer ul { display: flex; flex-direction: column; gap: 11px; }
.site-footer a { font-size: 14px; transition: color .3s var(--ease); }
.site-footer a:hover { color: var(--accent-lt); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 26px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
  max-width: 1280px;
  margin: 0 auto;
}
.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s var(--ease);
}
.social-row a:hover { background: var(--accent); }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translate(-50%, 120px);
  background: var(--dark);
  color: #fff;
  padding: 15px 28px;
  border-radius: 40px;
  font-size: 13px;
  z-index: 9000;
  box-shadow: var(--shadow-lg);
  transition: transform .45s var(--ease);
  max-width: 90vw;
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }

/* ---------------- Bannière cookies ---------------- */
.cookie-bar {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  background: rgba(22,19,15,.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 18px 24px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  z-index: 8000;
  font-size: 13px;
  transition: opacity .4s var(--ease);
}
.cookie-bar.hidden { display: none; }
.cookie-bar a { color: var(--accent-lt); text-decoration: underline; }
.cookie-bar .ck-actions { display: flex; gap: 10px; }
.cookie-bar button { padding: 10px 22px; border-radius: 30px; border: 1px solid rgba(255,255,255,.4); background: none; color: #fff; font-size: 12px; letter-spacing: 1px; }
.cookie-bar button.accept { background: var(--accent); border-color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .carousel-item { flex: 0 0 calc((100% - 24px) / 2); }
  .product-detail { gap: 36px; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .account-layout { grid-template-columns: 1fr; }
  .account-tabs { position: static; flex-direction: row; overflow-x: auto; }
  .account-tabs button { flex-shrink: 0; }
  .contact-layout { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; padding-top: 120px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .collections-grid { grid-template-columns: repeat(2, 1fr); }
  .reassurance { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .collections-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item img { width: 80px; height: 100px; }
  .gallery-arrow { display: none; }
  .page-head { padding: 120px 5% 32px; }
  .product-detail { padding: 110px 5% 60px; gap: 28px; }
  .order-items { font-size: 12px; }
  .order-items th:nth-child(3), .order-items td:nth-child(3) { display: none; }
  .auth-card { padding: 32px 24px; }

  /* Carrousel : uniquement le scroll natif sur mobile */
  .carousel {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 14px;
    transform: none !important;
    scrollbar-width: none;
  }
  .carousel::-webkit-scrollbar { display: none; }
  .carousel-item { flex: 0 0 46vw; scroll-snap-align: start; }
  .carousel-btn { display: none; }
}

@media (max-width: 560px) {
  .reassurance { grid-template-columns: 1fr; padding: 44px 5%; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero { min-height: 88vh; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .shop-toolbar { flex-direction: column; align-items: stretch; }
  .product-card .info { padding: 14px 12px 16px; }
  .product-card h3 { font-size: 13px; }
  .cart-item { grid-template-columns: 1fr; }
  .cart-item img { width: 100%; height: 220px; }
  .qty-row { gap: 12px; }
  .cookie-bar { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-bar .ck-actions { justify-content: center; }
}

/* ---------------- Ajustements en-tete mobile ---------------- */
@media (max-width: 900px) {
  .auth-desktop { display: none; }
  .header-actions { gap: 16px; }
}
@media (max-width: 420px) {
  .logo { font-size: 17px; letter-spacing: 2.5px; }
}

/* ---------------- Modale ---------------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(22,19,15,.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9500;
  padding: 20px;
}
.modal-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 34px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.modal-card h3 { font-size: 17px; text-transform: uppercase; letter-spacing: 1.5px; }
.modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none; border: 0;
  font-size: 26px; line-height: 1;
  color: var(--gray);
}
.modal-close:hover { color: var(--dark); }

/* ---------------- Etat connexion panier ---------------- */
.state-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 30px;
  background: var(--bg-alt); font-size: 12px; letter-spacing: 1px;
}

/* ---------------- Pages légales ---------------- */
.legal-content h2 {
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 34px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 16px; margin: 24px 0 10px; }
.legal-content p { color: #4d4741; line-height: 1.9; margin: 0 0 16px; font-size: 15px; }
.legal-content ul { margin: 0 0 18px; padding-left: 22px; }
.legal-content li { color: #4d4741; line-height: 1.9; position: relative; padding-left: 14px; }
.legal-content li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.legal-content strong { color: var(--text); }
