/* =====================
   Base & Typography
   ===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #fff;
  color: #232323;
  overflow-x: hidden;
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =====================
   Utility Classes
   ===================== */
.hidden         { display: none !important; }
.visible        { display: block !important; }
.text-center    { text-align: center; }
.flex           { display: flex; }
.inline-flex    { display: inline-flex; }
.items-center   { align-items: center; }
.justify-center { justify-content: center; }
.gap-1          { gap: .25rem; }
.gap-2          { gap: .5rem; }
.gap-3          { gap: .75rem; }
.mt-1           { margin-top: .25rem; }
.mb-1           { margin-bottom: .25rem; }
.p-1            { padding: .25rem; }
.rounded        { border-radius: .25rem; }

/* =====================
   Promo Header
   ===================== */
#promo-bar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(to right, #a28b5d, #c5b895);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 1rem;
  animation: pulse 2s infinite;
}
#promo-bar i { margin-right: .5rem; }
#promo-bar .tracking-wide {
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: .08em;
}
#promo-bar .font-extrabold { font-size: 1.125rem; }
#promo-bar .line-through { opacity: .75; }
#promo-bar a {
  background: #fff;
  color: #a28b5d;
  padding: .4rem .8rem;
  font-size: .875rem;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  transition: box-shadow .2s;
}
#promo-bar a:hover { box-shadow: 0 4px 12px rgba(0,0,0,.15); }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .8; }
}

/* =====================
   Sticky Navigation
   ===================== */
.sticky-nav {
  position: sticky;
  top: 3rem; /* height of promo-bar */
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 900;
  transition: box-shadow .18s;
}
.sticky-shadow {
  box-shadow: 0 4px 16px rgba(80,70,45,0.07);
}

/* =====================
   Buttons
   ===================== */
.hermes-btn {
  background: #fff;
  border: 1.5px solid #dedede;
  color: #232323;
  border-radius: .5625rem;
  padding: .75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  transition: border-color .13s, background .15s, transform .1s;
  box-shadow: 0 2px 9px rgba(197,184,149,.08);
  cursor: pointer;
}
.hermes-btn:active { transform: scale(.96); }
.hermes-btn:hover,
.hermes-btn:focus {
  border-color: #c5b895;
  background: #faf8f3;
}
.hermes-btn[data-filter].active-filter,
.hermes-btn[data-filter]:focus-visible {
  background: #faf8f3;
  border-color: #a28b5d;
  color: #a28b5d;
  font-weight: 700;
}
/* Cart icon "wahou" */
@keyframes bounce {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.2); }
}
.cart-icon-wow { animation: bounce .6s; }

/* =====================
   Cards & Badge
   ===================== */
.hermes-card {
  border: 1.5px solid #ececec;
  border-radius: .875rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  background: #fff;
  padding: 1.25rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .1s, box-shadow .17s, border-color .12s;
  position: relative;
  min-height: 250px;
  min-width: 200px;
}
.hermes-card:hover {
  border-color: #c5b895;
  box-shadow: 0 8px 32px rgba(190,160,90,0.13);
  transform: translateY(-2px) scale(1.02);
}
.hermes-badge {
  background: #faf8f3;
  color: #a28b5d;
  border-radius: .625rem;
  padding: .2rem .8rem;
  font-size: .875rem;
  font-weight: 700;
  box-shadow: 0 1px 5px rgba(197,184,149,.04);
  margin-bottom: .5rem;
}
.hermes-card .badge-promo {
  position: absolute;
  top: 12px; right: 14px;
  background: #c5b895;
  color: #fff;
  font-size: .76em;
  font-weight: bold;
  padding: .13em .65em;
  border-radius: 8px;
  letter-spacing: 0.06em;
  z-index: 2;
  box-shadow: 0 2px 8px #e2d7b99c;
}
.hermes-card .price-old {
  color: #bdbdbd;
  font-size: .97em;
  text-decoration: line-through;
  margin-left: .3em;
}
.hermes-card .product-size {
  background: #f6f6f6;
  color: #bba454;
  border-radius: 8px;
  font-size: .97em;
  padding: .11em .7em;
  margin: .12em 0 .1em 0;
  font-weight: 600;
}
.hermes-card .flag-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 54px;
  border-radius: 13px;
  border: 2px dashed #e1ddce;
  background: linear-gradient(125deg,#faf8f3 70%,#ede7d5 100%);
  color: #c5b895;
  font-size: 2em;
}
.hermes-card .flag-fallback svg {
  width: 40px; height: 40px;
  opacity: .60;
}

/* =====================
   Sections & Layout
   ===================== */
.hermes-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* =====================
   Form Inputs
   ===================== */
.hermes-input {
  width: 100%;
  padding: .75rem 1rem;
  font-size: 1rem;
  border: 1.5px solid #e0e0e0;
  border-radius: .5rem;
  transition: border .14s, box-shadow .13s;
}
.hermes-input:focus {
  border-color: #c5b895;
  box-shadow: 0 0 0 2px #f9eec9;
}
.hermes-input.error {
  border-color: #ff5252;
  background: #fff6f6;
}

/* =====================
   Links
   ===================== */
.hermes-link {
  color: #232323;
  text-decoration: none;
  border-bottom: 1px solid #dedede;
  transition: border-color .13s;
}
.hermes-link:hover,
.hermes-link:focus {
  border-color: #c5b895;
  color: #a28b5d;
}

/* =====================
   Modals
   ===================== */
.hermes-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(30,30,30,0.17);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn .16s ease;
  overscroll-behavior: contain;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.hermes-modal {
  background: #fff;
  border: 1.5px solid #ececec;
  border-radius: 1.125rem;
  padding: 2rem 1.5rem;
  width: 90vw;
  max-width: 370px;
  box-shadow: 0 9px 46px rgba(0,0,0,.13);
  animation: fadeInModal .16s cubic-bezier(.55,1.5,.35,1.05);
  max-height: 92vh;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================
   Feedback Toast
   ===================== */
.feedback {
  position: fixed;
  top: 4rem;
  left: 50%;
  transform: translateX(-50%);
  background: #fffbe5;
  color: #ad8712;
  border: 1.5px solid #ffe08a;
  border-radius: .875rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 30px rgba(184,155,76,.08);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.feedback.visible {
  opacity: 1;
  pointer-events: auto;
  animation: popFeedback .47s ease;
}
@keyframes popFeedback {
  from { transform: translate(-50%,-1rem); opacity: 0; }
  to   { transform: translate(-50%, 0);   opacity: 1; }
}

/* =====================
   Sticky Cart (Mobile)
   ===================== */
.sticky-cart-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 2px solid #ececec;
  box-shadow: 0 -1px 18px rgba(197,184,149,.07);
  z-index: 999;
  display: none;
}
.sticky-cart-mobile .hermes-btn {
  width: 100%;
  border-radius: 0 0 1rem 1rem;
}

/* =====================
   Hero Video
   ===================== */
.hero-video-outer {
  position: relative;
  width: 100vw;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #faf8f3;
  overflow: hidden;
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.91);
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,.97) 70%, #fff 100%);
}
.hero-video-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero-video-headline {
  text-shadow: 0 2px 12px rgba(0,0,0,.14);
}

/* =====================
   Star Ratings & Carousel
   ===================== */
.star-bg   { color: #e4e5e9; position: absolute; left: 0; top: 0; z-index: 1; }
.star-fill { color: #FFD600; position: absolute; left: 0; top: 0; transition: width .54s cubic-bezier(.7,1.9,.35,1.01), filter .21s; z-index: 2; }
.star-fill.animated { animation: star-jitter .46s cubic-bezier(.53,2.2,.43,.93); }
@keyframes star-jitter {
  0%   { filter: drop-shadow(0 0 0 #ffe10055); transform: scale(.98) rotate(-2deg); }
  23%  { filter: drop-shadow(0 0 14px #ffe100ee); transform: scale(1.04) rotate(1deg); }
  50%  { filter: drop-shadow(0 0 8px #ffe100cc); transform: scale(.99) rotate(-1.3deg); }
  70%  { filter: drop-shadow(0 0 10px #ffe100ee); transform: scale(1.01) rotate(.8deg); }
  100% { filter: drop-shadow(0 0 0 #ffe10055); transform: scale(1) rotate(0); }
}
.star-outer {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 28px;
  cursor: pointer;
  vertical-align: middle;
  margin-right: 2px;
  background: none;
  z-index: 1;
}
.star-outer:last-child { margin-right: 0; }
@media (max-width:650px) { .star-outer { width:20px; height:20px; } }
.avis-carousel { position: relative; max-width:420px; margin:auto; }
.avis-slide { opacity:0; pointer-events:none; position:absolute; inset:0; transition:opacity .7s; }
.avis-slide.active { opacity:1; pointer-events:auto; position:relative; }
.avis-photo { width:56px; height:56px; object-fit:cover; border-radius:50%; border:3px solid #c5b895; margin-bottom:7px; }
.avis-pagination { display:flex; justify-content:center; gap:7px; margin-top:10px; }
.avis-pagination span { width:10px; height:10px; border-radius:50%; background:#ececec; transition:background .3s; cursor:pointer; }
.avis-pagination .active { background:#c5b895; }

/* =====================
   Flag Animation
   ===================== */
@keyframes flagwave { 0% { transform: rotateZ(-10deg); } 100% { transform: rotateZ(10deg); } }
.flag-anim { animation: flagwave 1.5s infinite alternate cubic-bezier(.64,1.8,.28,.76); }

/* =====================
   Product Suggestions
   ===================== */
#product-suggest {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: #fff;
  border: 1px solid #ececec;
  border-top: none;
  border-radius: 0 0 .75rem .75rem;
  box-shadow: 0 4px 18px rgba(0,0,0,.1);
  max-height: 260px;
  overflow-y: auto;
  z-index: 30;
}
#product-suggest li {
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  border-bottom: 1px solid #f2f2f2;
  cursor: pointer;
  transition: background .12s, color .13s;
}
#product-suggest li:last-child { border-bottom: none; }
#product-suggest li:hover,
#product-suggest li.suggestion-active {
  background: #c5b895;
  color: #fff;
}

/* =====================
   FAQ Accordion
   ===================== */
.faq-accordion { margin-bottom: 1rem; }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #faf8f3;
  border: 1.5px solid #ececec;
  border-radius: .5625rem;
  padding: .75rem 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .13s;
}
.faq-question:hover,
.faq-question:focus { border-color: #c5b895; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(90deg); }
.faq-answer {
  display: none;
  padding: 1rem;
  background: #fff;
  border: 1.5px solid #ececec;
  border-radius: .5625rem;
  margin-top: .5rem;
}
.faq-accordion.open .faq-answer { display: block; }
.faq-accordion.open .faq-question { border-color: #c5b895; }

/* =====================
   Responsive Tweaks
   ===================== */
@media (max-width: 900px) {
  .hermes-section { padding: 0 .5rem; }
}
@media (max-width: 650px) {
  #promo-bar {
    position: relative;
    flex-wrap: wrap;
    justify-content: center;
    padding: .75rem .5rem;
    text-align: center;
  }
  #promo-bar .tracking-wide,
  #promo-bar .font-extrabold,
  #promo-bar .line-through,
  #promo-bar .text-xs {
    font-size: .85rem;
  }
  .sticky-nav { top: 0; }
  .sticky-cart-mobile { display: block; }
  #btn-cart { display: none; }
  .hermes-btn { width: 100%; }
  .hermes-card {
    padding: .75rem;
    border-radius: .625rem;
    min-width: unset;
    min-height: 200px;
  }
  .faq-question, .faq-answer { font-size: .95rem; padding: .75rem; }
  .feedback { top: 5vw; font-size: .95rem; }
  #product-suggest { max-height: 180px; }
  .hermes-modal { padding: 1.2rem .7rem; }
}
@media (max-width: 480px) {
  .hermes-card { padding: .5rem; }
  .hermes-section { padding: 0 .25rem; }
  #promo-bar { font-size: .85rem; }
  .hermes-modal { padding: 1rem .2rem; }
}

/* =====================
   Corrections Diverses
   ===================== */
#contact-fab-menu { min-width:170px; box-shadow:0 8px 32px rgba(190,160,90,0.17); border-radius:1.2em; }
#contact-fab-menu.opacity-100 { opacity:1 !important; pointer-events:auto !important; transform:scale(1) !important; }
#contact-fab-menu.opacity-0   { opacity:0 !important; pointer-events:none !important; transform:scale(.95) !important; }
[data-microcopy] { position:relative; cursor:help; }
[data-microcopy]:hover::after {
  content:attr(data-microcopy);
  position:absolute; bottom:100%; left:50%; transform:translateX(-50%);
  background:#232323; color:#fff; padding:.3em .6em;
  border-radius:4px; white-space:nowrap; font-size:.85em; opacity:.9;
  pointer-events:none;
}

/* =====================
   Overrides: hide fallback & promo badges
   ===================== */
.flag-fallback {
  display: none !important;
}
.hermes-card .flag-img-ctr img,
.hermes-card img {
  border: none !important;
  box-shadow: none !important;
}
.hermes-card .badge-promo {
  display: none !important;
}
