:root {
  --bg: #f8f4f1;
  --surface: #fcfaf8;
  --text: #2a1d1b;
  --muted: #6b5a54;
  --accent: #7b1e2b;
  --chip-bg: #efe7e3;
  --chip-border: #e2d6cf;
  --shadow: 0 8px 24px rgba(43, 29, 29, .15);
  --glass: rgba(252, 250, 248, .6);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans";
  color: var(--text);
  background: var(--bg);
}
.app { max-width: 100%; margin: 0; min-height: 100vh; padding-bottom: 72px; }
.brandbar { display:none; align-items:center; justify-content:space-between; padding: 12px 24px; position: sticky; top: 0; z-index: 50; backdrop-filter: blur(20px); background: rgba(255, 255, 255, 0.85); border-bottom: 1px solid rgba(0,0,0,0.05); box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.brandbar .logo { text-decoration:none; display: flex; align-items: center; transition: transform 0.3s ease; }
.brandbar .logo:hover { transform: scale(1.05); }
.logo-img { height: 44px; width: auto; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15)); border-radius: 8px; transition: transform 0.3s ease; padding: 2px; background: radial-gradient(circle at 0% 100%, rgba(123, 30, 43, 0.25) 0%, transparent 50%); }
.logo-img:hover { transform: scale(1.05); }
@keyframes brandShine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.brandbar .brand-name {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 28px;
  background: linear-gradient(135deg, #4a0e16 0%, #7b1e2b 50%, #4a0e16 100%);
  background-size: 200% auto;
  animation: brandShine 6s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-left: 0;
  letter-spacing: -0.02em;
  filter: drop-shadow(0 2px 2px rgba(123, 30, 43, 0.15));
}

.brand-right .icon-btn {
  width: 46px;
  height: 46px;
  border: 1px solid #000;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-size: 20px;
  color: var(--muted);
  opacity: 1;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  position: relative;
  cursor: pointer;
}

.brand-right .icon-btn:hover {
  transform: translateY(-3px) scale(1.02);
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 20px rgba(123, 30, 43, 0.25);
  border-color: var(--accent);
}

.brand-right .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  transform: none;
  background: #d32f2f;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 99px;
  border: 2px solid #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  z-index: 10;
}

.brand-right .cart {
  position: relative;
  overflow: visible;
}

[data-open-filter] {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-btn[data-open-filter] {
  width: auto;
  min-width: 44px;
  padding: 0 12px;
  height: 43px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #222);
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

[data-open-filter]::before {
  content: "Filtres";
  letter-spacing: 0.02em;
  font-size: 14px;
}

[data-open-filter] i {
  font-size: 14px;
  margin-left: 6px;
  padding-left: 8px;
  border-left: 1px solid rgba(0,0,0,0.12);
}

[data-open-filter].has-filters::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  background: #d32f2f;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  animation: pulseDot 2s infinite;
  z-index: 20;
}

/* Rating UI Styles */
.rating-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}
.rating-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.rating-label:hover {
  color: var(--accent);
  text-decoration: underline;
}
@keyframes pulseDot {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(123, 30, 43, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(123, 30, 43, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(123, 30, 43, 0); }
}
.section-header { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 0 16px; 
  margin-top: 32px; 
  margin-bottom: 16px; 
  flex-wrap: wrap; 
  gap: 12px; 
  position: relative;
}

.section-header h2 { 
  font-size: 22px; 
  font-weight: 700; 
  margin: 0; 
  color: #2a0a10;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #2a0a10, #7b1e2b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent; 
}

.marketing-text {
  flex: 1 1 100%;
  order: 3;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15px;
  color: #4a3b3b;
  margin: 4px 0 0;
  line-height: 1.6;
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(255, 248, 240, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
  border-left: 3px solid #d4af37;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
}

.see-all { 
  font-size: 13px; 
  font-weight: 600;
  color: #b00020; 
  text-decoration: none; 
  white-space: nowrap; 
  padding: 6px 14px;
  background: rgba(176, 0, 32, 0.06);
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(176, 0, 32, 0.1);
}

.see-all:hover {
  background: #b00020;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(176, 0, 32, 0.25);
  border-color: #b00020;
}

.hero { position: relative; border-radius: 18px; margin: 0 16px 12px; min-height: 280px; padding: 24px; overflow: hidden; background: radial-gradient(1000px 300px at 20% -100px, rgba(180, 75, 92, 0) 0%, transparent 70%), linear-gradient(135deg, #341a16, #7b1e2b); }
.hero::before { content:""; position:absolute; inset:0; background-image:url('https://source.unsplash.com/1600x900/?wine-cellar'); background-size: cover; background-position:center; opacity:.35; }
.hero-content { position: relative; z-index: 1; color:#fff; display:flex; flex-direction:column; gap:10px; max-width: 680px; }
.hero h1 { 
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 22px; 
  letter-spacing:.3px; 
}
.hero p { opacity:.9; }
.hero-actions { display:flex; gap:10px; margin-top:6px; flex-wrap: wrap; }
.cta-primary { background:#fff; color: var(--accent); padding:10px 14px; border-radius:12px; text-decoration:none; box-shadow: var(--shadow); }
.cta-secondary { background: transparent; border:1px solid #fff; color:#fff; padding:10px 14px; border-radius:12px; }

.chips.categories { padding: 0 16px; margin-bottom: 8px; }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 16px 16px; }
.card { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.image-placeholder { height: 140px; background: linear-gradient(135deg, #7b1e2b 0%, #341a16 100%); position: relative; }
.image-placeholder::after { content: ""; position:absolute; inset:0; background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.15), transparent 40%), radial-gradient(ellipse at 70% 80%, rgba(255,255,255,0.08), transparent 40%); }
.card img { width:100%; height: 180px; object-fit: cover; display:block; }
.info { padding: 12px; }
.name { font-size: 14px; margin-bottom: 6px; }
.meta { display:flex; align-items:center; justify-content: space-between; gap:8px; }
.price { font-size: 13px; color: var(--text); }
.heart-btn { border: none; background: transparent; color: var(--muted); font-size: 18px; }
.add-btn { border:none; background: var(--accent); color:#fff; padding:8px 10px; border-radius:10px; box-shadow: var(--shadow); }

.card { transform: translateY(10px); opacity:0; animation: cardIn .5s ease forwards; }
.card:hover { transform: translateY(-4px); }
.card:hover img { transform: scale(1.03); filter: saturate(1.05); }
.card img { transition: transform .3s ease, filter .3s ease; }
@keyframes cardIn { from { transform: translateY(10px); opacity:0; } to { transform: translateY(0); opacity:1; } }

.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--chip-border); height: 64px; display:flex; justify-content: center; }
.bottom-nav .nav-item { width: 25%; display:flex; align-items:center; justify-content:center; color: var(--muted); text-decoration: none; }
.bottom-nav .nav-item .icon { width: 36px; height: 36px; border-radius: 18px; display:flex; align-items:center; justify-content:center; }
.bottom-nav .nav-item.active .icon { background: var(--accent); color: #fff; }

.filter-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.25); opacity:0; pointer-events:none; transition: opacity .25s ease; }
.filter-backdrop.open { opacity: 1; pointer-events: auto; }
.filter-sheet { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top-left-radius: 20px; border-top-right-radius: 20px; box-shadow: 0 -12px 24px rgba(0,0,0,.15); transform: translateY(110%); transition: transform .3s ease; width: 100%; }
.filter-sheet.open { transform: translateY(0); transition: transform .45s cubic-bezier(.2, .9, .35, 1.2); }
.sheet-handle { width: 40px; height: 4px; background: #ddd; border-radius: 2px; margin: 8px auto; }
.filter-sheet .sheet-body { padding: 16px; }
.filter-sheet h3 { font-size: 18px; margin-bottom: 12px; }
.field { margin-bottom: 16px; }
.label { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.chips { display:flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 12px; border-radius: 9999px; background: var(--chip-bg); border: 1px solid var(--chip-border); color: var(--text); }
.chip.selected { background: var(--accent); color: #fff; border-color: var(--accent); }

.range-slider { position: relative; height: 54px; }
.slider-track { position:absolute; left: 8px; right: 8px; top: 22px; height: 24px; background: #fff; border: 1px solid var(--accent); border-radius: 6px; }
.slider-track::after { content: "››››››››››"; position:absolute; left:0; right:0; top:50%; transform: translateY(-50%); color: var(--accent); letter-spacing: 6px; text-align:center; font-size: 18px; }
.range-fill { position:absolute; height: 4px; top: 12px; background: var(--accent); border-radius: 2px; }
.range-slider input[type="range"] { position:absolute; left:8px; right:8px; top:0; width:calc(100% - 16px); height:54px; appearance: none; background: transparent; pointer-events: none; }
.range-slider input[type="range"]::-webkit-slider-thumb { appearance: none; width: 26px; height: 26px; background: #fff; border: 2px solid var(--accent); border-radius: 50%; box-shadow: var(--shadow); pointer-events: auto; }
.range-slider input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; background: #fff; border: 2px solid var(--accent); border-radius: 50%; box-shadow: var(--shadow); pointer-events: auto; }
.range-slider input[type="range"]::-webkit-slider-runnable-track { background: transparent; }
.range-slider input[type="range"]::-moz-range-track { background: transparent; }

.bubble { position:absolute; top: 0; transform: translate(-50%, -60%); background: #fff; border: 1px solid var(--text); color: var(--text); padding: 4px 8px; border-radius: 8px; box-shadow: var(--shadow); font-size: 12px; display: none; }
.bubble::after { content:""; position:absolute; left:50%; bottom: -6px; transform: translateX(-50%); width: 10px; height: 10px; background: #fff; border-left:1px solid var(--text); border-bottom:1px solid var(--text); transform: translateX(-50%) rotate(45deg); }

.sheet-footer { display:flex; align-items:center; justify-content: space-between; margin-top: 8px; }
.reset-btn { border: none; background: transparent; color: var(--accent); font-weight: 600; }
.close-btn { border: none; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow); }

.catalog-layout { display:grid; grid-template-columns: 1fr; gap: 12px; padding: 0 16px; }
.filters-desktop { display:none; position:sticky; top:72px; align-self:start; background: var(--surface); border: 1px solid var(--chip-border); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.filters-desktop .desktop { margin-top: 6px; }
.products-section { min-height: 400px; }

@media (min-width: 768px) {
  .brandbar { display:flex; }
  .topbar { padding: 16px 16px 0; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .image-placeholder { height: 160px; }
}
@media (min-width: 1024px) {
  .catalog-layout { grid-template-columns: 280px 1fr; }
  .filters-desktop { display:block; }
  .bottom-nav { display:none; }
  .card-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Footer Styles */
.site-footer {
  background: linear-gradient(135deg, #2a0a10 0%, #4a0e16 100%);
  color: #fff;
  padding: 48px 24px 24px;
  margin-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: 100%;
  padding: 0 48px;
  margin: 0 auto;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  margin-bottom: 12px;
}

.footer-brand .footer-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #fff, #e2d6cf);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.footer-logo-img {
  height: 56px;
  width: auto;
  background: rgba(255,255,255,0.9);
  padding: 6px 8px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.footer-desc {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.footer-links h4, .footer-contact h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  margin-bottom: 20px;
  color: #e2d6cf;
}

.footer-links ul, .footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li, .footer-contact li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-contact li {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-contact i {
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  margin: 0;
}

.payment-methods {
  display: flex;
  gap: 16px;
  font-size: 24px;
  color: rgba(255,255,255,0.5);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4000;
  padding: 12px 16px 20px;
  display: none;
  pointer-events: none;
}

.cookie-banner-inner {
  max-width: 960px;
  margin: 0 auto;
  background: rgba(26, 5, 8, 0.96);
  color: #fff;
  border-radius: 16px;
  padding: 14px 16px 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
}

.cookie-banner-text {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cookie-btn {
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  border: none;
}

.cookie-btn.primary {
  background: #ffd700;
  color: #2a0a10;
}

.cookie-btn.secondary {
  background: transparent;
  color: #ffd700;
  border: 1px solid rgba(255,215,0,0.6);
}

.cookie-btn.ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.25);
}

.cookie-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 3990;
  background: linear-gradient(
    to bottom,
    rgba(248, 244, 241, 0) 0%,
    rgba(123, 30, 43, 0.15) 50%,
    rgba(123, 30, 43, 0.35) 100%
  );
  display: none;
  pointer-events: none;
}

@media (max-width: 767px) {
  .cookie-banner {
    padding: 8px 10px 12px;
  }
  .cookie-banner-inner {
    width: 100%;
    margin: 0;
    border-radius: 14px 14px 0 0;
  }
  .cookie-banner-actions {
    justify-content: flex-start;
  }
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (max-width: 767px) {
  /* Mobile Footer Redesign */
  .site-footer {
    padding: 40px 20px 80px;
    background: linear-gradient(180deg, #2a0a10 0%, #1a0508 100%);
    border-top: 4px solid var(--accent);
  }

  .footer-content {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 40px;
  }

  /* 1. Brand Section Centered */
  .footer-brand {
    align-items: center;
    text-align: center;
    order: 1;
  }

  .footer-brand .footer-logo-text {
    font-size: 26px;
    margin-bottom: 16px;
  }
  
  .footer-logo-img {
    height: 64px;
    padding: 8px 10px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  }

  .footer-desc {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.05);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.05);
  }

  /* 2. Contact Section Prominent */
  .footer-contact {
    order: 3;
    background: rgba(255, 215, 0, 0.05);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.2);
  }

  .footer-contact h4 {
    text-align: center;
    color: #FFD700;
    font-size: 20px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
  }

  .footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .footer-contact li {
    font-size: 16px;
    color: #fff;
  }

  .footer-contact i {
    font-size: 20px;
    width: 30px;
    text-align: center;
  }

  /* 3. Links as Structured Grid */
  .footer-links {
    order: 2;
    width: 100%;
  }

  .footer-links h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
    margin-left: 20px;
    margin-right: 20px;
  }

  .footer-links ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 10px;
  }

  .footer-links li {
    margin: 0;
  }

  .footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(255,255,255,0.03);
    padding: 12px 8px;
    border-radius: 8px;
    color: rgba(255,255,255,0.9);
    font-weight: 400;
    font-size: 13px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: background 0.2s;
    height: 100%;
  }

  .footer-links a:active {
    background: rgba(255,255,255,0.1);
  }

  /* 4. Social Links Big */
  .social-links {
    justify-content: center;
    gap: 24px;
    margin-top: 12px;
  }

  .social-links a {
    width: 48px;
    height: 48px;
    font-size: 20px;
    background: var(--accent);
    box-shadow: 0 4px 12px rgba(123, 30, 43, 0.4);
  }

  .footer-bottom {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px dashed rgba(255,255,255,0.2);
  }

  /* Mobile Bottom Nav Redesign */
.bottom-nav-animated {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px; /* Reduced height */
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.08);
  border-top: 1px solid rgba(255,255,255,0.4);
}

.bottom-nav-animated .nav-item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8e8e93;
  text-decoration: none;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-animated .nav-item .icon {
  position: relative;
  font-size: 20px;
  margin-bottom: 2px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.bottom-nav-animated .nav-item .label {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.7;
  transform: scale(0.9);
  transition: all 0.3s ease;
}

.bottom-nav-animated .nav-item.active {
  color: var(--accent);
}

.bottom-nav-animated .nav-item.active .icon {
  transform: translateY(-4px);
  color: var(--accent);
}

.bottom-nav-animated .nav-item.active .label {
  opacity: 1;
  transform: scale(1);
  font-weight: 700;
}

/* Sliding Indicator - Circle Style */
.nav-indicator {
  position: absolute;
  /* Top is set by JS now */
  height: 40px;
  width: 40px;
  background: rgba(123, 30, 43, 0.12); /* Round circle background */
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
  pointer-events: none;
  opacity: 0; 
}

/* Badge Style */
.nav-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 700;
  height: 22px;
  min-width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transform: scale(1);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Active State Animation for Badge */
.nav-item.active .nav-badge {
  animation: badgeBounce 0.6s ease;
}

@keyframes badgeBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Ripple Effect */
.nav-item::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  padding-bottom: 100%;
  border-radius: 50%;
  background: rgba(123, 30, 43, 0.1);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0s, opacity 0s;
  pointer-events: none;
}

.nav-item:active::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}
}

/* Floating Chat */
.chat-fab {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  z-index: 1200;
  border: none;
  cursor: pointer;
  transform: scale(1);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.chat-fab:active { transform: scale(0.96); }

.chat-panel {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 320px;
  max-width: 92%;
  height: 420px;
  background: rgba(20,20,20,0.96);
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1201;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.35s ease;
}
.chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.chat-title {
  font-weight: 700;
  letter-spacing: 0.2px;
}
.chat-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: none;
  cursor: pointer;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 85%;
  animation: chatIn 0.35s ease both;
}
.msg .bubble {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  display: inline-block;
  position: relative;
  top: auto;
  transform: none;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.msg .bubble::after { content: none; }
.msg .time {
  font-size: 11px;
  line-height: 1;
  color: rgba(255,255,255,0.6);
  padding: 0 4px;
}
.msg.user {
  align-self: flex-end;
}
.msg.user .bubble {
  background: var(--accent);
  color: #fff;
}
.msg.user .time {
  align-self: flex-end;
  color: rgba(255,255,255,0.85);
}
.msg.bot {
  align-self: flex-start;
}
.msg.bot .bubble {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.06);
}
.msg.bot .time {
  align-self: flex-start;
}
.msg.typing .bubble {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.06);
  min-width: 48px;
}
.typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  height: 12px;
}
.typing-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  animation: dotBounce 1s infinite ease-in-out;
}
@keyframes dotBounce {
  0% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(-3px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.6; }
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.chat-input-row input {
  flex: 1;
  height: 38px;
  border-radius: 12px;
  border: none;
  outline: none;
  padding: 0 12px;
}
.chat-input-row button {
  width: 44px;
  height: 38px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

@keyframes chatIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.quick-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 10px 10px 10px;
}
.qs-title {
  width: 100%;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  padding: 0 2px;
  margin-bottom: 4px;
}
.qs-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
  animation: chipIn .3s ease both;
}
.qs-chip:active { transform: scale(0.97); }

.msg.suggestions .bubble {
  display: block;
  animation: suggIn .35s ease both;
}
.sugg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 8px;
}
.sugg-toggle {
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  cursor: pointer;
  transition: transform .2s ease;
}
.sugg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.msg.suggestions.collapsed .sugg-chips {
  display: none;
}
.msg.suggestions.collapsed .sugg-toggle {
  transform: rotate(180deg);
}
@keyframes chipIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes suggIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

  /* Animated "Voir plus" button */
.see-all.animated-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), #9b2c3a);
  color: #fff;
  padding: 8px 16px;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 12px rgba(123, 30, 43, 0.2);
}
.see-all.animated-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(123, 30, 43, 0.3);
  padding-right: 20px;
}
.see-all.animated-btn i {
  font-size: 12px;
  transition: transform 0.3s ease;
}
.see-all.animated-btn:hover i {
  transform: translateX(4px);
}
.see-all.animated-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(123, 30, 43, 0.2);
}

@media (max-width: 768px) {
  .chat-fab { bottom: 100px; right: 16px; }
  .chat-panel { bottom: 100px; right: 16px; width: 94%; height: 60vh; }
}

@media (min-width: 1024px) {
  .bottom-nav-animated { display: none; }
}

#mobileAccountBtn.connected .icon {
    position: relative;
    color: #8e8e93;
}

#mobileAccountBtn.connected .icon::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #4caf50;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#mobileAccountBtn.connected .label {
    color: #8e8e93;
    font-weight: 600;
}
