/* ============================================================
   Tapis Kriche — feuille de style
   ============================================================ */
:root {
  --red: #d0102f;
  --price: #9b1b30;
  --cta: #f0164a;
  --black: #111;
  --mustard: #f5b82e;
  --ink: #2a1d17;
  --line: #2f3e3a;
  --grey: #8a8a8a;
  --pink-bg: #fde8ea;
  --serif: "Libre Baskerville", Georgia, serif;
  --menu: "Caudex", Georgia, serif;
  --sans: "Open Sans", Arial, sans-serif;
  --script: "Dancing Script", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: #222;
  background: #f3f3f1 url("../img/marble.svg") center / cover fixed;
  min-height: 100vh;
}
body.no-marble { background: #fff; }
body.bg-cart { background: #7d0b22 url("../img/cart-bg.svg") center / cover fixed; }
body.bg-pink { background: var(--pink-bg); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 2%; background: rgba(255,255,255,.55);
  font-family: var(--serif); font-size: 11px; text-transform: uppercase; letter-spacing: .02em;
}
.topbar div { display: flex; align-items: center; gap: 8px; }
.topbar svg { width: 26px; height: 26px; flex: none; color: #333; }

/* ---------- Brand row ---------- */
.brand-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
  padding: 18px 1% 10px; gap: 16px;
}
.logo { display: block; text-decoration: none; text-align: center; }
.logo svg { width: 250px; height: auto; }
.search { position: relative; max-width: 260px; }
.search input {
  width: 100%; padding: 9px 12px 9px 34px; border: 1px solid #c9c2b2;
  background: #f2eee4; font-family: var(--serif); font-style: italic; font-size: 13px;
}
.search > svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; }
.search-results {
  position: absolute; z-index: 60; top: 100%; left: 0; right: 0; background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.15); max-height: 320px; overflow: auto; display: none;
}
.search-results.open { display: block; }
.search-results a {
  display: flex; gap: 10px; align-items: center; padding: 8px 10px; text-decoration: none; font-size: 13px;
}
.search-results a:hover { background: #f6f2ea; }
.search-results img { width: 38px; height: 50px; object-fit: cover; }
.search-results .empty { padding: 12px; font-size: 13px; color: var(--grey); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 28px; }
.cart-btn { position: relative; background: none; border: 0; padding: 4px; }
.cart-btn svg { width: 34px; height: 34px; }
.cart-count {
  position: absolute; top: -4px; left: 50%; transform: translateX(-30%);
  color: var(--red); font-size: 13px; font-weight: 700;
}
.cart-count.bump { animation: bump .5s ease; }
@keyframes bump { 0%,100% { transform: translateX(-30%) scale(1); } 40% { transform: translateX(-30%) scale(1.8); } }
.login-btn { display: flex; align-items: center; gap: 8px; background: none; border: 0; font-size: 12px; }
.login-btn span.ico { width: 22px; height: 22px; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.login-btn span.ico svg { width: 13px; fill: #fff; }
.menu-btn { display: none; }

/* ---------- Main nav ---------- */
.mainnav {
  position: relative; z-index: 40;
  border-top: 1px solid #555; box-shadow: 0 4px 6px -2px rgba(0,0,0,.45);
  background: rgba(255,255,255,.25);
}
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.mainnav li { flex: 1 1 0; min-width: 0; position: relative; }
.mainnav ul.measure li { flex: none; }.mainnav a, .mainnav .more-btn {
  display: block; padding: 6px 10px; text-decoration: none; background: none; border: 0;
  font-family: var(--menu); font-style: italic; font-weight: 700; font-size: clamp(14px, 1.4vw, 18px); color: #333;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; text-align: left;
}
.mainnav a.active { background: rgba(255,255,255,.9); }
.mainnav a:hover, .mainnav .more-btn:hover { color: var(--red); }
.more-menu {
  position: absolute; right: 0; top: 100%; min-width: 230px; background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.18); display: none;
}
.more-menu.open { display: block; }
.more-menu a { font-size: 16px; padding: 10px 16px; border-bottom: 1px solid #eee; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; background: #fff;
  transform: translateX(100%); transition: transform .35s ease;
  display: flex; flex-direction: column; padding: 70px 30px 30px;
}
.mobile-menu.open { transform: none; }
.mobile-menu a {
  font-family: var(--menu); font-style: italic; font-size: 24px; text-decoration: none;
  padding: 12px 0; border-bottom: 1px solid #eee;
}
.mobile-menu .close { position: absolute; top: 18px; right: 22px; font-size: 34px; background: none; border: 0; }

/* ---------- Hero slider ---------- */
.hero {
  position: relative; height: 380px; overflow: hidden; margin-top: 2px;
}
.slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 0 12%; opacity: 0; pointer-events: none; transform: scale(.4);
  transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}
.slide.active { opacity: 1; transform: scale(1); pointer-events: auto; }
.slide.leaving { opacity: 0; transform: scale(2.6); }
.slide h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3.2vw, 42px); margin: 0 0 22px; }
.btn-dark {
  display: inline-block; background: #111; color: #fff; text-decoration: none; border: 0;
  padding: 10px 18px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.btn-dark:hover { background: #333; }
.slide .poster { height: 300px; width: auto; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.hero-dots {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 9px; z-index: 5;
}
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: #9a9a9a; }
.hero-dots button.on { background: #111; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; border: 0;
  background: rgba(255,255,255,.6); width: 40px; height: 40px; border-radius: 50%; font-size: 20px;
  opacity: 0; transition: opacity .3s;
}
.hero:hover .hero-arrow { opacity: 1; }
.hero-arrow.prev { left: 2%; } .hero-arrow.next { right: 2%; }

/* ---------- Product grid ---------- */
.section { padding: 36px 0 50px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  position: relative; background: rgba(255,255,255,.55); border: 1px solid var(--line);
  text-align: center; transition: opacity .25s linear;
}
.card .media-wrap { position: relative; overflow: hidden; }
.card .media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: rgba(255,255,255,.35); }
.card .media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  transition: opacity .45s ease, transform .6s ease;
}
.card .media img.second { opacity: 0; object-fit: cover; }
.card.s-ready:hover .media img.first { opacity: 0; }
.card.s-ready:hover .media img.second { opacity: 1; transform: scale(1.04); }
.ribbon {
  position: absolute; top: 0; left: 0; z-index: 2; background: #c43b55; color: #fff;
  font-size: 12px; padding: 3px 10px;
}
.quick-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; border: 0;
  background: rgba(255,255,255,.85); padding: 9px; font-size: 13px; color: #222;
  transform: translateY(100%); transition: transform .3s ease;
}
.card:hover .quick-bar, .card:focus-within .quick-bar { transform: none; }
.card .info { display: block; padding: 14px 10px 16px; text-decoration: none; }
.card .name { font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: 15px; margin: 0; }
.card .sep { width: 50px; height: 2px; background: #999; margin: 9px auto 14px; }
.card .ppm { font-family: var(--serif); font-size: 19px; color: var(--price); }
.card .old { display: block; font-family: var(--serif); font-size: 13px; color: #888; text-decoration: line-through; margin-bottom: 2px; }
.more-wrap { text-align: center; margin-top: 34px; }
.btn-outline {
  background: rgba(255,255,255,.35); border: 1px solid #555; padding: 11px 90px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
}
.btn-outline:hover { background: #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Category page ---------- */
.cat-head { padding: 30px 0 4px; }
.cat-head h1 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0 0 6px; }
.cat-head p { margin: 0; color: #555; font-size: 14px; }
.cat-layout { display: grid; grid-template-columns: 220px 1fr; gap: 34px; padding: 26px 0 60px; }
.filters h2 { font-family: Arial, sans-serif; font-weight: 400; font-size: 22px; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid #bbb; }
.filter { border-bottom: 1px solid #bbb; padding: 12px 0; }
.filter-title { display: flex; justify-content: space-between; width: 100%; background: none; border: 0; padding: 0; font-size: 14px; }
.filter-body { padding-top: 12px; display: none; }
.filter.open .filter-body { display: block; }
.range { position: relative; height: 24px; }
.range input { position: absolute; width: 100%; pointer-events: none; appearance: none; background: none; top: 4px; margin: 0; }
.range input::-webkit-slider-thumb { pointer-events: auto; appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #222; cursor: pointer; }
.range input::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: #222; border: 0; }
.range .track { position: absolute; top: 10px; left: 0; right: 0; height: 2px; background: #222; }
.range-vals { display: flex; justify-content: space-between; font-size: 11px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #aaa; padding: 0; }
.swatch.on { outline: 2px solid #111; outline-offset: 2px; }
.check-list { max-height: 240px; overflow: auto; font-size: 13px; }
.check-list label { display: flex; gap: 8px; padding: 3px 0; cursor: pointer; }
.cat-tabs, .filter.open .filter-body.cat-tabs { display: flex; flex-direction: column; gap: 6px; font-size: 13px; align-items: flex-start; }
.filter:not(.open) .filter-body.cat-tabs { display: none; }
.cat-tabs button { background: none; border: 0; text-align: left; padding: 2px 0; }
.cat-tabs button.on { font-weight: 700; text-decoration: underline; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; }
.toolbar select { padding: 8px 10px; border: 1px solid #999; background: rgba(255,255,255,.7); min-width: 170px; }
.toolbar .count { font-size: 13px; color: #555; }
.filter-toggle { display: none; }
.cat-layout .grid { grid-template-columns: repeat(3, 1fr); }
.empty-msg { padding: 40px; text-align: center; background: rgba(255,255,255,.6); }

/* ---------- Product page ---------- */
.product-wrap { background: rgba(255,255,255,.92); margin: 30px auto 50px; padding: 50px 4%; }
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; }
.gallery .main-img { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #f7f5f0; cursor: zoom-in; }
.gallery .main-img img { width: 100%; height: 100%; object-fit: contain; transition: opacity .3s ease, transform .15s ease; }
.gallery .main-img.zoom img { transform: scale(2.2); }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { width: 70px; height: 70px; padding: 0; border: 1px solid #ddd; background: #f7f5f0; }
.thumbs button.on { border-color: #111; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.p-info h1 { font-family: var(--sans); font-weight: 400; font-size: 28px; margin: 0 0 16px; }
.p-total { font-size: 20px; margin: 0; }
.p-total.tick { animation: tick .35s ease; }
@keyframes tick { 50% { color: var(--red); } }
.p-old { color: #888; text-decoration: line-through; font-size: 15px; margin-right: 8px; }
.p-ppm { font-size: 12px; color: #555; margin: 4px 0 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; margin-bottom: 6px; }
.field select, .field input, .field textarea {
  width: 100%; padding: 10px; border: 1px solid #999; background: #fff; font: inherit; font-size: 14px;
}
.qty { display: inline-flex; border: 1px solid #999; }
.qty button { width: 32px; border: 0; background: #fff; font-size: 18px; }
.qty input { width: 40px; border: 0; text-align: center; font: inherit; }
.p-actions { display: flex; gap: 10px; margin-top: 8px; }
.btn-cta { flex: 1; background: var(--cta); color: #fff; border: 0; padding: 12px; font-size: 14px; }
.btn-cta:hover { filter: brightness(.92); }
.wish { width: 44px; border: 1px solid var(--cta); background: #fff; color: var(--cta); border-radius: 50%; font-size: 18px; }
.wish.on { background: var(--cta); color: #fff; }
.btn-black { display: block; width: 100%; background: #111; color: #fff; border: 0; padding: 12px; margin-top: 10px; font-size: 14px; text-align: center; text-decoration: none; }
.specs { margin-top: 40px; font-size: 14px; line-height: 1.8; }
.specs .desc { overflow: hidden; max-height: 4.8em; transition: max-height .4s ease; }
.specs .desc.open { max-height: 40em; }
.read-more { background: none; border: 0; padding: 0; text-decoration: underline; margin-top: 6px; }
.similar { margin-top: 60px; }
.similar h2 { font-family: var(--sans); font-weight: 400; font-size: 22px; text-align: center; }
.carousel { position: relative; }
.carousel-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 8px; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .card { flex: 0 0 calc(25% - 15px); scroll-snap-align: start; }
.car-arrow { position: absolute; top: 40%; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #999; background: #fff; }
.car-arrow.prev { left: -18px; } .car-arrow.next { right: -18px; }

/* ---------- Modal (quick view) ---------- */
.overlay { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.45); display: none; align-items: center; justify-content: center; padding: 20px; }
.overlay.open { display: flex; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.modal {
  position: relative; background: #fff; border: 1px solid var(--cta); width: min(820px, 100%);
  max-height: 92vh; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 30px;
  animation: pop .3s ease;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.modal .close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 26px; }
.qv-img { aspect-ratio: 4 / 5; background: #f7f5f0; }
.qv-img img { width: 100%; height: 100%; object-fit: contain; }
.qv-dots { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.qv-dots button { width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; background: #bbb; }
.qv-dots button.on { background: #333; }
.modal h3 { font-size: 26px; font-weight: 400; margin: 10px 0 14px; }
.modal .more-link { display: inline-block; margin-top: 14px; font-size: 13px; }

/* ---------- Side cart ---------- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 170; width: min(400px, 100%);
  background: var(--pink-bg); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s ease;
}
.drawer.open { transform: none; }
.drawer-head { background: #000; color: #fff; padding: 18px 16px; display: flex; justify-content: space-between; align-items: center; }
.drawer-head h3 { margin: 0; font-weight: 400; font-size: 20px; }
.drawer-head h3 small { font-size: 12px; }
.drawer-head button { background: none; border: 0; color: #fff; font-size: 24px; }
.drawer-body { flex: 1; overflow: auto; padding: 12px 14px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f3c9cf; font-size: 13px; }
.line img { width: 64px; height: 80px; object-fit: cover; background: #fff; }
.line .meta { color: #555; font-size: 12px; margin: 3px 0 8px; }
.line .right { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.line .del { background: none; border: 0; font-size: 16px; color: #555; }
.drawer-foot { padding: 14px 16px 20px; border-top: 1px solid #ddd; }
.promo-link { background: none; border: 0; color: #c9a227; font-size: 13px; padding: 0; }
.total-row { display: flex; justify-content: space-between; font-size: 17px; margin: 14px 0; }
.btn-mustard { display: block; width: 100%; background: var(--mustard); color: #fff; border: 0; padding: 12px; text-align: center; text-decoration: none; font-size: 14px; }
.backdrop { position: fixed; inset: 0; z-index: 160; background: rgba(0,0,0,.35); display: none; }
.backdrop.open { display: block; }

/* ---------- Cart page ---------- */
.cart-card { background: rgba(255,255,255,.88); margin: 50px auto 70px; padding: 30px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; }
.cart-card h2 { font-weight: 400; font-size: 18px; padding-bottom: 14px; border-bottom: 1px solid #ccc; margin: 0 0 4px; }
.cart-card .line { border-color: #ddd; grid-template-columns: 80px 1fr auto auto; align-items: start; }
.cart-card .line img { width: 80px; height: 100px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin: 12px 0; }
.summary-row.big { font-size: 20px; border-top: 1px solid #ccc; padding-top: 16px; }
.promo-box { display: none; gap: 6px; margin-top: 10px; }
.promo-box.open { display: flex; }
.promo-box input { flex: 1; padding: 8px; border: 1px solid #999; }
.promo-box button { background: #111; color: #fff; border: 0; padding: 0 14px; }
.promo-msg { font-size: 12px; margin-top: 6px; }
.note-box { display: none; margin-top: 10px; }
.note-box.open { display: block; }
.note-box textarea { width: 100%; height: 70px; padding: 8px; border: 1px solid #999; }
.link-btn { background: none; border: 0; padding: 0; font-size: 13px; text-decoration: underline; margin: 14px 20px 0 0; }
.secure { text-align: center; font-size: 12px; margin-top: 8px; color: #444; }

/* ---------- Checkout ---------- */
.co-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 12%; border-bottom: 1px solid #ddd; background: #fff; }
.co-header .brand { display: flex; align-items: center; gap: 14px; text-decoration: none; letter-spacing: .12em; }
.co-header .brand svg { width: 70px; }
.co-header a.back { font-size: 13px; }
.checkout { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 70px); }
.co-left { padding: 26px 8% 60px 24%; border-right: 1px solid #ddd; }
.co-right { padding: 26px 24% 60px 4%; }
.co-step { border-bottom: 1px solid #ddd; padding: 18px 0; }
.co-step h3 { font-size: 17px; font-weight: 400; margin: 0; display: flex; justify-content: space-between; }
.co-step h3 button { background: none; border: 0; text-decoration: underline; font-size: 13px; }
.co-step .body { display: none; padding-top: 16px; }
.co-step.open .body { display: block; }
.co-step.done .summary { display: block; }
.co-step .summary { display: none; font-size: 13px; color: #555; margin-top: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.phone-field { display: flex; border: 1px solid #999; }
.phone-field span { padding: 10px; background: #f4f4f4; border-right: 1px solid #ddd; font-size: 14px; }
.phone-field input { border: 0 !important; }
.radio-card { display: flex; gap: 10px; align-items: center; border: 1px solid #111; padding: 14px; font-size: 14px; }
.err { color: var(--red); font-size: 12px; margin-top: 4px; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select { border-color: var(--red); }
.login-hint { background: #f1f1f1; padding: 12px; font-size: 13px; margin-bottom: 18px; }

/* ---------- Thank you ---------- */
.thanks { background: rgba(255,255,255,.92); margin: 60px auto; padding: 50px 6%; text-align: center; max-width: 680px; }
.thanks h1 { font-family: var(--serif); font-weight: 400; }
.wa-btn { display: inline-flex; align-items: center; gap: 10px; background: #25d366; color: #fff; text-decoration: none; padding: 12px 22px; margin-top: 16px; font-weight: 600; }

/* ---------- Text pages ---------- */
.page-card { background: rgba(255,255,255,.9); margin: 40px auto 60px; padding: 44px 6%; line-height: 1.75; font-size: 15px; }
.page-card h1 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin-top: 0; }
.page-card h2 { font-size: 17px; margin-top: 28px; }

/* Contact */
.contact-title { text-align: center; padding-top: 40px; }
.contact-title span { background: var(--red); color: #fff; padding: 4px 8px; font-family: var(--serif); font-size: 18px; }
.contact-grid { display: grid; grid-template-columns: 80px 1.4fr 1fr; gap: 30px; padding: 50px 0 70px; align-items: start; }
.contact-form input, .contact-form textarea { width: 100%; border: 2px solid var(--cta); padding: 8px; margin-bottom: 10px; font: inherit; font-size: 13px; background: #fff; }
.contact-form textarea { height: 110px; }
.contact-form button { float: right; background: var(--cta); color: #fff; border: 0; padding: 7px 14px; font-size: 13px; }
.contact-info h3 { margin: 0 0 4px; font-size: 18px; }
.contact-info p { margin: 0 0 18px; font-size: 13px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 30px; height: 30px; border-radius: 50%; background: #111; display: grid; place-items: center; }
.socials svg { width: 15px; fill: #fff; }
.form-ok { clear: both; padding-top: 10px; color: #1c7a3b; display: none; }
.form-ok.show { display: block; }

/* Bureau landing */
.bureau-hero { background: rgba(255,255,255,.85); padding: 50px 6%; margin-top: 30px; }
.bureau-hero h1 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0 0 14px; }
.benefits { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 30px 0; }
.benefit { background: rgba(255,255,255,.85); padding: 20px 14px; text-align: center; font-size: 13px; }
.benefit .ico { font-size: 26px; display: block; margin-bottom: 8px; }
.h-gallery { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.h-gallery img { flex: 0 0 340px; height: 230px; object-fit: cover; scroll-snap-align: start; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 10px; }
.chips span { background: #111; color: #fff; padding: 8px 14px; font-size: 13px; }
.devis { background: rgba(255,255,255,.9); padding: 36px 6%; margin: 30px 0 60px; }
.devis form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.devis form .full { grid-column: 1 / -1; }
.devis input, .devis textarea { width: 100%; padding: 10px; border: 1px solid #999; font: inherit; font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid #999; margin-top: 30px; padding: 40px 3% 14px; }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 20px; align-items: start; }
.foot-logo svg { width: 170px; }
.foot-contact { margin-top: 30px; font-size: 13px; }
.foot-contact a { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 8px; }
.foot-contact svg { width: 18px; fill: #1b4e9b; }
.foot-links { list-style: disc; padding-left: 16px; margin: 70px 0 0; font-size: 12px; line-height: 2.4; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.follow { text-align: center; }
.follow h4 { font-family: var(--script); font-weight: 400; font-style: italic; font-size: 26px; margin: 10px 0 70px; }
.follow .socials { justify-content: center; gap: 16px; }
.follow .socials a { width: 34px; height: 34px; }
.copy { text-align: center; font-size: 11px; margin-top: 26px; }

/* ---------- Floating contact ---------- */
.float-contact {
  position: fixed; right: 18px; bottom: 18px; z-index: 120; background: #25d366; color: #fff;
  display: flex; align-items: center; gap: 10px; border-radius: 40px;
  font-family: var(--menu); font-weight: 700; text-decoration: none; padding: 12px 20px 12px 16px; font-size: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.float-contact svg { width: 26px; height: 26px; flex: none; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 300; transform: translate(-50%, 30px); opacity: 0; background: #111; color: #fff; padding: 10px 18px; font-size: 14px; transition: all .3s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 404 ---------- */
.nf { padding: 80px 6%; }
.nf .big { font-size: 120px; font-weight: 400; margin: 10px 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cat-layout .grid { grid-template-columns: repeat(2, 1fr); }
  .carousel-track .card { flex-basis: calc(33.333% - 14px); }
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .co-left { padding: 26px 5% 60px; } .co-right { padding: 26px 5% 60px; }
}

@media (max-width: 760px) {
  .topbar { font-size: 7px; padding: 5px 2%; gap: 4px; }
  .topbar svg { width: 16px; height: 16px; }
  .brand-row { grid-template-columns: auto 1fr auto; grid-template-areas: "logo logo logo" "cart search menu"; padding: 16px 3% 12px; gap: 12px 10px; align-items: center; }
  .logo { grid-area: logo; } .logo svg { width: 230px; margin: 0 auto; }
  .search { grid-area: search; max-width: none; }
  .search input { padding: 12px 12px 12px 36px; font-size: 15px; border-radius: 6px; }
  .header-actions { display: contents; }
  .cart-btn { grid-area: cart; }
  .login-btn { display: none; }
  .menu-btn {
    grid-area: menu; display: block; width: 58px; height: 52px; border: 0; border-radius: 8px;
    background: var(--red); color: #fff; font-weight: 700; font-size: 13px; line-height: 1.25; letter-spacing: .2em;
    box-shadow: 0 3px 6px rgba(0,0,0,.25);
  }
  .mainnav { display: none; }
  .hero { height: 300px; }
  .slide { justify-content: center; padding: 0 6%; }
  .slide .txt { display: none; }
  .slide .poster { height: 240px; }
  .grid, .cat-layout .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card .name { font-size: 15px; }
  .card .ppm { font-size: 18px; }
  .quick-bar { display: none; }
  .cat-layout { grid-template-columns: 1fr; gap: 0; }
  .filters { position: fixed; left: 0; right: 0; bottom: 0; z-index: 180; background: #fff; max-height: 75vh; overflow: auto; padding: 22px; transform: translateY(100%); transition: transform .35s ease; box-shadow: 0 -10px 30px rgba(0,0,0,.2); }
  .filters.open { transform: none; }
  .filter-toggle { display: inline-block; background: #111; color: #fff; border: 0; padding: 8px 16px; }
  .product, .modal, .cart-card, .checkout { grid-template-columns: 1fr; }
  .product-wrap { padding: 24px 4%; }
  .carousel-track .card { flex-basis: calc(50% - 10px); }
  .car-arrow { display: none; }
  .co-left { border-right: 0; order: 2; } .co-right { order: 1; border-bottom: 1px solid #ddd; }
  .contact-grid { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .devis form { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-links { margin-top: 10px; }
  .follow h4 { margin-bottom: 16px; }
  .float-contact { width: 56px; height: 56px; border-radius: 50%; padding: 0; justify-content: center; right: 14px; bottom: 14px; }
  .float-contact svg { width: 30px; height: 30px; }
  .float-contact .label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Essayer chez moi
   ============================================================ */
.try-card { background: rgba(255,255,255,.94); margin: 30px auto 50px; padding: 30px 4%; max-width: 1000px; }
.try-head { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid #ddd; }
.try-head img { width: 56px; height: 72px; object-fit: cover; background: #f7f5f0; }
.try-head h1 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0 0 4px; }
.try-head p { margin: 0; font-size: 14px; color: #444; }
.try-backlink { margin-left: auto; font-size: 13px; white-space: nowrap; }
.try-start { text-align: center; padding: 30px 0 10px; }
.try-steps { list-style: none; padding: 0; margin: 0 auto 28px; max-width: 560px; text-align: left; }
.try-steps li { display: flex; gap: 14px; align-items: center; padding: 10px 0; font-size: 15px; }
.try-steps span:not([data-i18n]) { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; }
.try-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.try-btn { flex: 0 1 240px; display: block; padding: 14px; cursor: pointer; margin: 0; }
.try-private { font-size: 12px; color: #666; margin-top: 18px; }
.try-hint { text-align: center; background: #111; color: #fff; padding: 10px; margin: 18px 0 10px; font-size: 14px; transition: background .3s; }
.try-hint.done { background: #1c7a3b; }
.try-stage { position: relative; user-select: none; -webkit-user-select: none; cursor: crosshair; line-height: 0; }
.try-stage canvas { width: 100%; height: auto; display: block; background: #eee; }
.try-handles { position: absolute; inset: 0; pointer-events: none; }
.handle {
  position: absolute; width: 48px; height: 48px; margin: -24px 0 0 -24px; pointer-events: auto;
  touch-action: none; cursor: grab; display: grid; place-items: center;
}
.handle span {
  width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid rgba(0,0,0,.18);
  box-shadow: 0 1px 4px rgba(0,0,0,.45); transition: transform .15s;
}
.handle.active span, .handle:hover span { transform: scale(1.4); }
.try-outline { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.try-outline polygon { fill: none; stroke: rgba(255,255,255,.85); stroke-width: 1.5; stroke-dasharray: 6 5; filter: drop-shadow(0 0 1px rgba(0,0,0,.6)); }
.try-handles > * { transition: opacity .35s; }
.try-handles.hide > * { opacity: 0; pointer-events: none; }
.try-tools { margin-top: 16px; }
.try-tools:not(.ready) .needs-quad { opacity: .35; pointer-events: none; }
.try-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: flex-end; }
.tool { background: #fff; border: 1px solid #999; padding: 9px 12px; font-size: 13px; }
.tool:hover { border-color: #111; }
.try-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.try-field select { padding: 8px; border: 1px solid #999; min-width: 140px; }
.try-label { font-size: 13px; margin: 6px 0; }
.try-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.try-strip button { flex: none; width: 62px; height: 80px; padding: 0; border: 2px solid transparent; background: #f7f5f0; }
.try-strip button.on { border-color: var(--cta); }
.try-strip img { width: 100%; height: 100%; object-fit: cover; }
.try-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.try-actions button { margin: 0; padding: 13px; font-size: 14px; }
.btn-whatsapp { background: #25d366; color: #fff; border: 0; font-weight: 600; }
.try-note { font-size: 12px; color: #666; margin-top: 14px; }
.btn-try { display: block; width: 100%; margin-top: 10px; padding: 12px; text-align: center; text-decoration: none; border: 1px solid #111; color: #111; background: #fff; font-size: 14px; }
.btn-try:hover { background: #111; color: #fff; }
@media (max-width: 760px) {
  .try-card { padding: 18px 4%; margin-top: 14px; }
  .try-head h1 { font-size: 19px; }
  .try-backlink { display: none; }
  .try-actions { grid-template-columns: 1fr; }
  .tool { flex: 1 1 45%; }
}

/* Vraies photos : remplir le cadre (les dessins restent entiers) */
.card .media img[src^="img/"], .card .media img[src^="http"] { object-fit: cover; }
.slide .poster[src^="img/"], .slide .poster[src^="http"] { max-width: 46vw; object-fit: cover; }

/* ---------- Commande WhatsApp & localisation ---------- */
.btn-wa {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #25d366; color: #fff; border: 0; padding: 15px 18px; font-size: 16px; font-weight: 700; cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,.18); transition: transform .15s, background .2s;
}
.btn-wa:hover { background: #1ebe5b; }
.btn-wa:active { transform: scale(.98); }
.btn-wa svg { width: 22px; flex: none; }
.p-note { font-size: 13px; color: #444; margin: 10px 0 4px; }
.head-wa { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #25d366; padding: 0; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.head-wa svg { width: 26px !important; height: 26px !important; }
.login-btn { text-decoration: none; color: inherit; }
.foot-contact a svg { fill: currentColor; }
.shop-map { background: rgba(255,255,255,.92); padding: 30px 5%; margin: 0 0 70px; text-align: center; scroll-margin-top: 20px; }
.shop-map h2 { font-family: var(--serif); font-weight: 400; margin: 0 0 18px; }
.map-frame { position: relative; aspect-ratio: 16 / 9; max-height: 420px; width: 100%; margin-bottom: 14px; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.map-btns .wa-btn, .btn-map { margin: 0; }
.btn-map { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #222; border: 1px solid #222; text-decoration: none; padding: 12px 22px; font-weight: 600; }
.btn-map svg { width: 20px; fill: var(--red); }
.map-btns svg { width: 20px; }
@media (max-width: 760px) { .map-frame { aspect-ratio: 1 / 1; } .map-btns a { width: 100%; justify-content: center; } }

.head-map { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red); padding: 0; box-shadow: 0 2px 6px rgba(0,0,0,.25); animation: pin-bob 2.4s ease-in-out infinite; }
.head-map svg { width: 24px !important; height: 24px !important; fill: #fff; }
@keyframes pin-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* ---------- Page Notre magasin ---------- */
.store-page { background: rgba(255,255,255,.94); max-width: 900px; margin: 40px auto 70px; padding: 34px 5% 40px; text-align: center; }
.store-page h1 { font-family: var(--serif); font-weight: 400; margin: 0; font-size: 30px; }
.store-name { margin: 4px 0 20px; color: var(--red); font-family: var(--serif); font-size: 20px; }
.store-map { position: relative; aspect-ratio: 16 / 10; width: 100%; background: #eee; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.store-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.store-address { font-size: 17px; font-weight: 600; margin: 20px 0 4px; }
.store-hours { margin: 4px 0 0; color: #444; }
.btn-route { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; background: var(--red); color: #fff; text-decoration: none; padding: 15px 34px; font-size: 17px; font-weight: 700; box-shadow: 0 3px 8px rgba(0,0,0,.2); }
.btn-route:active { transform: scale(.98); }
@media (max-width: 760px) { .store-page { margin: 18px auto 40px; } .store-map { aspect-ratio: 1 / 1.05; } .btn-route { width: 100%; } }

/* ---------- Essayez chez vous : mise en avant ---------- */
.try-promo { display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px; align-items: center; margin-top: 34px; margin-bottom: 6px;
  background: #fff; padding: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.try-promo-demo { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #efe9df; border-radius: 6px; }
.demo-frame { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s ease; }
.demo-frame.on { opacity: 1; }
.demo-loading { position: absolute; inset: 0; display: grid; place-items: center; font-size: 42px; opacity: .4; }
.demo-tag { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.72); color: #fff; font-size: 13px; padding: 6px 12px; border-radius: 20px; transition: background .4s; }
.demo-tag.after { background: var(--cta); }
.try-kicker { display: inline-block; background: var(--mustard); color: #111; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; }
.try-promo-txt h2 { font-family: var(--serif); font-size: 28px; line-height: 1.25; margin: 12px 0 16px; }
.try-steps { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.try-steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.try-steps b { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; font-size: 14px; }
.btn-try-big { display: inline-block; background: var(--cta); color: #fff; text-decoration: none; font-weight: 700; padding: 15px 22px; border-radius: 6px; font-size: 16px;
  box-shadow: 0 6px 16px rgba(240,22,74,.35); animation: try-pulse 2.4s ease-in-out 3; }
.btn-try-big:hover { filter: brightness(1.08); }
@keyframes try-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

/* badge sur les cartes */
.try-chip { position: absolute; top: 8px; right: 8px; z-index: 3; display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.94); color: #111;
  text-decoration: none; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.try-chip:hover { background: var(--cta); color: #fff; }
.try-chip .s { display: none; }

/* page produit */
.img-try { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2; background: rgba(17,17,17,.82); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 30px; white-space: nowrap; cursor: pointer; }
.img-try:hover { background: var(--cta); }
.btn-try.btn-try-strong { background: #111; color: #fff; border-color: #111; padding: 13px 12px; border-radius: 4px; animation: try-pulse 2.4s ease-in-out 1s 2; }
.btn-try-strong b { display: block; font-size: 16px; }
.btn-try-strong small { display: block; font-size: 12px; opacity: .8; margin-top: 2px; }
.btn-try.btn-try-strong:hover { background: var(--cta); border-color: var(--cta); }
#modal .btn-try { margin-top: 10px; }

/* petit message (une seule fois) */
.try-tip { position: fixed; left: 16px; bottom: 18px; z-index: 125; width: min(330px, calc(100vw - 100px)); background: #111; color: #fff; padding: 14px 16px; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.3); transform: translateY(140%); transition: transform .4s ease; }
.try-tip.show { transform: none; }
.try-tip p { margin: 0 18px 10px 0; font-size: 14px; line-height: 1.4; }
.try-tip-go { display: inline-block; background: var(--cta); color: #fff; text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 6px; font-size: 14px; }
.try-tip-x { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }

@media (max-width: 760px) {
  .try-promo { grid-template-columns: 1fr; gap: 16px; padding: 14px; margin-top: 22px; }
  .try-promo-txt h2 { font-size: 22px; margin: 10px 0 12px; }
  .btn-try-big { display: block; text-align: center; }
  .try-chip { top: 6px; right: 6px; padding: 5px 7px; }
  .try-chip .l { display: none; }
  .try-chip .s { display: inline; }
}

/* page Essayer : boutons WhatsApp déjà présents */
body[data-page="tryon"] .float-contact { display: none; }

/* ---------- Numéro du tapis ---------- */
.rug-num { display: inline-block; background: #111; color: #fff; font: 700 12px/1 var(--sans); padding: 4px 8px; border-radius: 4px; margin-bottom: 6px; letter-spacing: .03em; }
.rug-num.big { font-size: 15px; padding: 6px 12px; margin-bottom: 8px; }
.card .info .rug-num { margin-bottom: 6px; }
.try-cam-tip { font-size: 13px; color: #555; margin: 12px auto 0; max-width: 420px; text-align: center; line-height: 1.45; }

/* ---------- Page TikTok ---------- */
.tt-body { background: #f4efe7; }
.tt-body .float-contact { display: none; }
.tt { max-width: 460px; margin: 0 auto; padding: 22px 18px 40px; text-align: center; }
.tt-logo { display: block; width: 190px; margin: 0 auto 6px; }
.tt-logo svg { width: 100%; height: auto; }
.tt-tag { font-size: 14px; color: #333; margin: 0 0 20px; }
.tt-btn { display: block; text-decoration: none; font-weight: 700; font-size: 19px; padding: 18px 14px; border-radius: 14px; margin: 0 0 14px; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.tt-wa { background: #25d366; color: #fff; font-size: 21px; padding: 20px 14px; }
.tt-dark { background: #111; color: #fff; }
.tt-light { background: #fff; color: #111; border: 2px solid #111; }
.tt-num { background: #fff; border: 3px solid var(--cta); border-radius: 14px; padding: 16px 14px; margin: 0 0 14px; }
.tt-num label { display: block; font-weight: 700; font-size: 19px; margin-bottom: 10px; }
.tt-num label small { font-weight: 400; font-size: 14px; color: #555; }
.tt-num-row { display: flex; align-items: center; gap: 8px; }
.tt-num-row span { font-weight: 700; font-size: 22px; }
.tt-num-row input { flex: 1; min-width: 0; font-size: 26px; font-weight: 700; text-align: center; padding: 10px; border: 2px solid #ccc; border-radius: 10px; }
.tt-num-row button { background: var(--cta); color: #fff; border: 0; border-radius: 10px; font-size: 19px; font-weight: 700; padding: 14px 18px; cursor: pointer; }
.tt-num-msg { margin: 12px 0 0; font-size: 15px; }
.tt-num-msg a { color: #128c4a; font-weight: 700; }
.tt-h { font-family: var(--serif); font-size: 20px; margin: 28px 0 12px; }
.tt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tt-grid a { display: block; text-decoration: none; color: #111; background: #fff; border-radius: 8px; overflow: hidden; font-size: 12px; }
.tt-grid img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.tt-grid span { display: block; padding: 5px 4px; }
.tt-grid b { display: block; font-size: 13px; }

/* ============================================================
   v20 — Langue, avis clients, arabe (RTL)
   ============================================================ */
.topbar .tb-wa svg { fill: #25d366; }
.brand-row { position: relative; }
.lang-btn {
  border: 1px solid #c9c2b2; background: #fff; color: #222; border-radius: 20px;
  padding: 6px 14px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: "Tajawal", var(--sans);
}
.lang-btn:hover { border-color: var(--red); color: var(--red); }
.mm-lang { margin-top: 18px; align-self: flex-start; background: #f2eee4; border: 0; border-radius: 22px; padding: 10px 18px; font-size: 17px; font-family: "Tajawal", var(--sans); }
@media (max-width: 760px) {
  .lang-btn { position: absolute; top: 10px; right: 3%; padding: 5px 12px; font-size: 13px; }
}

/* ---------- Avis & réalisations ---------- */
.stars { color: #f5a623; letter-spacing: 1px; font-size: 16px; white-space: nowrap; }
.stars .off { color: #ddd; }
.rv-summary { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; font-size: 15px; }
.rv-summary .rv-avg { font-size: 30px; font-weight: 700; font-family: var(--serif); }
.rv-summary .stars { font-size: 22px; }
.rv-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 18px; }
.rv-filters button { background: rgba(255,255,255,.7); border: 1px solid #bbb; border-radius: 20px; padding: 7px 16px; cursor: pointer; }
.rv-filters button.on { background: #111; color: #fff; border-color: #111; }
.rv-share { margin-inline-start: auto; color: var(--red); font-weight: 700; text-decoration: none; }
.rv-grid { columns: 3 280px; column-gap: 18px; }
.rv-grid .rv-card { break-inside: avoid; margin-bottom: 18px; }
.rv-card { background: #fff; border: 1px solid #e6e0d4; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.rv-owner { border-color: var(--red); }
.rv-photo { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #eee; cursor: zoom-in; }
.rv-photo img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; }
.rv-more { position: absolute; bottom: 8px; inset-inline-end: 8px; background: rgba(0,0,0,.7); color: #fff; font-size: 13px; padding: 3px 9px; border-radius: 12px; }
.rv-body { padding: 14px 16px 16px; }
.rv-badge { display: inline-block; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 10px; text-transform: uppercase; letter-spacing: .03em; }
.rv-text { margin: 8px 0; line-height: 1.6; font-size: 14.5px; white-space: pre-line; }
.rv-who { margin: 6px 0 0; font-size: 13px; color: #444; }
.rv-date { display: block; color: #999; font-size: 12px; margin-top: 2px; }
.rv-link { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--red); font-weight: 600; text-decoration: none; }
.rv-strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; }
.rv-strip .rv-card { flex: 0 0 min(260px, 72%); scroll-snap-align: start; }
.rv-strip .rv-photo img { height: 240px; }
.home-reviews h2, .product-reviews h2 { font-family: var(--sans); font-weight: 400; font-size: 22px; text-align: center; }
.product-reviews { margin: 40px 0 10px; }
.rv-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; margin-top: 10px; }
.rv-zoom { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.92); display: grid; place-items: center; }
.rv-zoom img { max-width: 94vw; max-height: 88vh; object-fit: contain; }
.rv-zoom .rv-x { position: absolute; top: 12px; inset-inline-end: 16px; background: none; border: 0; color: #fff; font-size: 38px; cursor: pointer; }
.rv-zoom .rv-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); border: 0; color: #fff; font-size: 40px; width: 50px; height: 70px; cursor: pointer; }
.rv-zoom .prev { left: 8px; } .rv-zoom .next { right: 8px; }
.rv-form-box { background: #fff; margin: 40px auto 70px; max-width: 720px; padding: 28px 5%; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.08); scroll-margin-top: 20px; }
.rv-form-box h2 { font-family: var(--serif); font-weight: 400; margin: 0 0 6px; }
.rv-form-box > p { color: #555; margin: 0 0 18px; }
#rv-form { display: grid; gap: 12px; }
#rv-form input:not([type=checkbox]), #rv-form textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 6px; font: inherit; font-size: 15px; box-sizing: border-box; }
.rv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rv-rate-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rv-rate button { background: none; border: 0; font-size: 34px; color: #ddd; cursor: pointer; padding: 0 2px; line-height: 1; }
.rv-rate button.on { color: #f5a623; }
.rv-upload { display: grid; gap: 8px; }
.rv-previews { display: flex; gap: 8px; flex-wrap: wrap; }
.rv-prev { position: relative; width: 86px; height: 86px; }
.rv-prev img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.rv-prev button { position: absolute; top: -6px; inset-inline-end: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #111; color: #fff; cursor: pointer; }
.rv-add { justify-self: start; cursor: pointer; }
.rv-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #444; }
.rv-consent input { margin-top: 3px; }
.rv-hp { position: absolute !important; width: 1px !important; height: 1px; padding: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.rv-msg { margin: 0; font-size: 14px; }
.rv-msg.ok { color: #1b7f3b; font-weight: 700; }
.rv-msg.bad { color: var(--red); font-weight: 600; }
#rv-form .btn-dark { justify-self: start; border: 0; cursor: pointer; }
#rv-form .btn-dark:disabled { opacity: .6; }
@media (max-width: 760px) {
  .rv-row { grid-template-columns: 1fr; }
  .rv-grid { columns: 2 150px; column-gap: 10px; }
  .rv-grid .rv-card { margin-bottom: 10px; }
  .rv-body { padding: 10px 11px 12px; }
  .rv-text { font-size: 13.5px; }
  .rv-share { margin-inline-start: 0; width: 100%; }
}

/* ---------- Arabe : police et sens de lecture (droite → gauche) ---------- */
html[lang="ar"] {
  --serif: "Tajawal", "Libre Baskerville", Georgia, serif;
  --menu: "Tajawal", "Caudex", Georgia, serif;
  --sans: "Tajawal", "Open Sans", Arial, sans-serif;
}
html[lang="ar"] body { font-family: var(--sans); }
html[lang="ar"] .topbar { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
html[lang="ar"] .mainnav a, html[lang="ar"] .mobile-menu a { font-style: normal; text-align: right; }
html[lang="ar"] .search input { font-style: normal; padding: 9px 34px 9px 12px; }
html[lang="ar"] .search > svg { left: auto; right: 10px; }
html[lang="ar"] .header-actions { justify-content: flex-start; }
html[lang="ar"] .more-menu { right: auto; left: 0; }
html[lang="ar"] .mobile-menu { transform: translateX(-100%); }
html[lang="ar"] .mobile-menu.open { transform: none; }
html[lang="ar"] .mobile-menu .close { right: auto; left: 22px; }
html[lang="ar"] .mm-lang { align-self: flex-end; }
html[lang="ar"] .hero-arrow.prev { left: auto; right: 2%; }
html[lang="ar"] .hero-arrow.next { right: auto; left: 2%; }
html[lang="ar"] .cat-tabs button { text-align: right; }
html[lang="ar"] .p-old { margin-right: 0; margin-left: 8px; }
html[lang="ar"] .car-arrow.prev { left: auto; right: -18px; }
html[lang="ar"] .car-arrow.next { right: auto; left: -18px; }
html[lang="ar"] .modal .close { right: auto; left: 14px; }
html[lang="ar"] .demo-tag { left: auto; right: 12px; }
html[lang="ar"] .card .name { font-family: var(--sans); }
html[lang="ar"] .card .ppm, html[lang="ar"] .card .old, html[lang="ar"] .p-total, html[lang="ar"] .p-ppm { direction: ltr; unicode-bidi: isolate; }
html[lang="ar"] .p-total, html[lang="ar"] .p-ppm { text-align: right; }
html[lang="ar"] .rv-zoom .prev { left: auto; right: 8px; }
html[lang="ar"] .rv-zoom .next { right: auto; left: 8px; }
html[lang="ar"] .page-card { line-height: 1.9; font-size: 16px; }
@media (max-width: 760px) {
  html[lang="ar"] .topbar { font-size: 9.5px; }
  html[lang="ar"] .search input { padding: 12px 36px 12px 12px; }
  html[lang="ar"] .lang-btn { right: auto; left: 3%; }
  html[lang="ar"] .menu-btn { letter-spacing: 0; font-size: 13px; }
  html[lang="ar"] .float-contact { right: auto; left: 14px; }
}
html[lang="ar"] .try-steps { text-align: right; }

/* ---------- Modes de vente : pièce / sur mesure ---------- */
.piece-size { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.custom-size .cs-row { display: flex; align-items: center; gap: 8px; }
.custom-size .cs-row input { width: 110px; padding: 10px; font-size: 17px; border: 1px solid #bbb; text-align: center; }
.custom-size .cs-fixed { padding: 10px 12px; background: #f2eee4; font-size: 16px; font-weight: 700; }
.custom-size .cs-hint { display: block; color: #666; margin-top: 6px; font-size: 12.5px; }
.field.invalid .cs-row input { border-color: var(--red); }
.ppm .from, .p-total .from { font-size: .62em; color: #666; font-weight: 400; }
html[lang="ar"] .custom-size .cs-row { justify-content: flex-end; }

/* ============================================================
   v23 — En-tête compact, bandeau qui défile, bannière qui vend
   ============================================================ */
.topbar { background: #111; color: #fff; font-family: var(--sans); font-size: 12.5px; text-transform: none; letter-spacing: 0;
  justify-content: center; gap: 46px; padding: 7px 2%; }
.topbar svg { width: 20px; height: 20px; color: #fff; }
html[lang="ar"] .topbar { font-size: 13px; }
.head-map { animation: none; }
.logo svg { width: 200px; }
.search-btn { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; place-items: center; cursor: pointer; }
.search-btn svg { width: 23px; height: 23px; }

/* Bannière */
.hero { height: min(70vh, 500px); margin-top: 0; background: #2a1d17; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.75), rgba(0,0,0,.3) 60%, rgba(0,0,0,.1)); }
html[lang="ar"] .hero::after { background: linear-gradient(270deg, rgba(0,0,0,.75), rgba(0,0,0,.3) 60%, rgba(0,0,0,.1)); }
.hero .slide { padding: 0; transform: none; transition: opacity 1s ease; }
.hero .slide.leaving { opacity: 0; transform: none; }
.hero .slide .poster, .hero .slide .poster[src] { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; box-shadow: none; }
.slide-tag { position: absolute; top: 16px; right: 3%; z-index: 4; background: rgba(255,255,255,.92); color: #111; text-decoration: none;
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; }
html[lang="ar"] .slide-tag { right: auto; left: 3%; }
.hero-intro { position: absolute; z-index: 3; left: 7%; top: 50%; transform: translateY(-50%); max-width: 540px; color: #fff; }
html[lang="ar"] .hero-intro { left: auto; right: 7%; }
.hero-h { font-family: var(--serif); font-size: clamp(28px, 4vw, 48px); line-height: 1.15; margin: 0 0 12px; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.hero-sub { font-size: 15px; margin: 0 0 22px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.hb-main, .hb-wa { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 6px; font-weight: 700; font-size: 15px; text-decoration: none; }
.hb-main { background: #fff; color: #111; }
.hb-wa { background: #25d366; color: #fff; }
.hb-wa svg { width: 20px; }
.hero .hero-dots { z-index: 5; }
.hero .hero-dots button { background: rgba(255,255,255,.45); }
.hero .hero-dots button.on { background: #fff; }

/* Ronds des catégories */
.cat-bubbles { margin-top: 18px; }
.bubbles { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.bubbles::-webkit-scrollbar { display: none; }
.bubbles > :first-child { margin-inline-start: auto; }
.bubbles > :last-child { margin-inline-end: auto; }
.bubble { flex: none; width: 84px; text-align: center; text-decoration: none; color: #222; }
.b-img { width: 74px; height: 74px; margin: 0 auto 6px; border-radius: 50%; overflow: hidden; border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--red); background: #f2eee4; display: grid; place-items: center; }
.b-img img { width: 100%; height: 100%; object-fit: cover; }
.b-img i { font-style: normal; font-size: 30px; }
.bubble.promo .b-img { box-shadow: 0 0 0 2px #f5b82e; }
.b-name { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.25; }

@media (max-width: 760px) {
  /* bandeau : un message à la fois */
  .topbar { position: relative; height: 32px; padding: 0; overflow: hidden; font-size: 13px; }
  html[lang="ar"] .topbar { font-size: 13.5px; }
  .topbar > div { position: absolute; inset: 0; justify-content: center; opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .45s; }
  .topbar > div.on { opacity: 1; transform: none; }
  .topbar svg { width: 18px; height: 18px; }
  /* en-tête collé en haut pendant le défilement (le bandeau, lui, part) */
  #site-header { position: sticky; top: -32px; z-index: 150; }
  .brand-row { grid-template-columns: auto 1fr auto auto; grid-template-areas: "menu logo sbtn lang" "search search search search";
    padding: 6px 3%; gap: 0 6px; background: rgba(255,255,255,.97); box-shadow: 0 2px 10px rgba(0,0,0,.08); align-items: center; }
  .logo { grid-area: logo; } .logo svg { width: 128px; margin: 0 auto; display: block; }
  .search { grid-area: search; display: none; margin: 8px 0 4px; }
  .brand-row.search-open .search { display: block; }
  .search-btn { grid-area: sbtn; display: grid; }
  .menu-btn, html[lang="ar"] .menu-btn { grid-area: menu; width: 44px; height: 44px; padding: 0; background: none; color: #111; box-shadow: none; display: grid; place-items: center; }
  .menu-btn svg { width: 28px; height: 28px; }
  .lang-btn, html[lang="ar"] .lang-btn { grid-area: lang; position: static; }
  .head-map { display: none; }
  /* bannière */
  .hero { height: 440px; }
  .hero::after, html[lang="ar"] .hero::after { background: linear-gradient(0deg, rgba(0,0,0,.82), rgba(0,0,0,.35) 55%, rgba(0,0,0,.08)); }
  .hero-intro, html[lang="ar"] .hero-intro { left: 5%; right: 5%; top: auto; bottom: 44px; transform: none; max-width: none; }
  .hero-h { font-size: 29px; }
  .hero-sub { font-size: 13.5px; margin-bottom: 16px; }
  .hb-main, .hb-wa { flex: 1; justify-content: center; padding: 12px 8px; font-size: 14px; }
  .hero .hero-dots { bottom: 16px; }
  .hero-arrow { display: none; }
}
.hb-s { display: none; }
@media (max-width: 760px) { .hb-l { display: none; } .hb-s { display: inline; } }

/* ---------- Vitrine "Chez nos clients" (photos choisies par le magasin) ---------- */
.showcase .sc-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: #2a1d17; cursor: zoom-in; }
.sc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.sc-img.on { opacity: 1; }
.sc-who { position: absolute; left: 12px; bottom: 12px; z-index: 2; background: rgba(0,0,0,.72); color: #fff; font-size: 13px; padding: 6px 12px; border-radius: 20px; }
html[lang="ar"] .sc-who { left: auto; right: 12px; }
.sc-who:empty { display: none; }
.sc-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; border: 0; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.8); font-size: 22px; cursor: pointer; }
.sc-nav.prev { left: 10px; } .sc-nav.next { right: 10px; }
html[lang="ar"] .sc-nav.prev { left: auto; right: 10px; } html[lang="ar"] .sc-nav.next { right: auto; left: 10px; }
.sc-dots { position: absolute; bottom: 14px; right: 14px; z-index: 2; display: flex; gap: 6px; }
html[lang="ar"] .sc-dots { right: auto; left: 14px; }
.sc-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.5); }
.sc-dots button.on { background: #fff; }
.sc-cap { min-height: 24px; margin: 4px 0 14px; }
.sc-cap .stars { font-size: 18px; }
.sc-cap p { margin: 6px 0 0; font-style: italic; color: #444; line-height: 1.55; }
.sc-btns { display: grid; gap: 10px; }
.sc-btns .btn-try-big { text-align: center; }
.sc-btns .btn-try-big[hidden] { display: none; }
.sc-link { color: var(--red); font-weight: 700; text-decoration: none; font-size: 14.5px; }
@media (max-width: 760px) { .showcase .sc-media { aspect-ratio: 1 / 1; } }

/* Téléphone : toutes les catégories visibles d'un coup (lignes de 4), sans glisser */
@media (max-width: 760px) {
  .bubbles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; overflow: visible; padding: 4px 0 6px; }
  .bubbles > :first-child, .bubbles > :last-child { margin: 0; }
  .bubble { width: auto; }
  .b-img { width: 64px; height: 64px; }
  .b-name { font-size: 12px; }
}

/* ============================================================
   v27 — Bloc "Voyez le tapis chez vous" : pastilles + guide photo
   ============================================================ */
/* Taille fixe dès le départ (plus de saut de la page), reflet pendant le chargement */
.try-promo .try-promo-demo { aspect-ratio: 3 / 2; background: #e9e1d4; cursor: pointer; }
.try-promo-demo .demo-loading { position: absolute; inset: 0; background: linear-gradient(100deg, #e9e1d4 30%, #f6f1e8 50%, #e9e1d4 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; font-size: 0; opacity: 1; }
@keyframes shimmer { to { background-position: -150% 0; } }
.try-promo-demo .demo-frame { transition: opacity .7s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.try-promo-demo .demo-frame.rug { transform: scale(1.025); }
.try-promo-demo .demo-frame.rug.on { transform: scale(1); }
.try-sw-label { margin: 10px 0 6px; font-size: 13px; color: #555; }
.try-swatches { display: flex; gap: 10px; }
.try-swatches:empty, .try-promo-media:not(:has(.try-swatches button)) .try-sw-label { display: none; }
.try-swatches button { flex: 1; max-width: 76px; aspect-ratio: 1; padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; background: #eee; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.15); transition: transform .2s, border-color .2s; }
.try-swatches button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.try-swatches button.on { border-color: var(--cta); transform: translateY(-3px); }
.try-cap { margin: 8px 0 0; font-size: 14px; min-height: 20px; }
.try-cap a { color: var(--cta); font-weight: 700; text-decoration: none; white-space: nowrap; }
.try-icons { display: flex; align-items: flex-start; gap: 6px; margin: 4px 0 18px; }
.try-icons span { flex: 1; text-align: center; }
.try-icons b { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 6px; border-radius: 50%; background: #f6efe4; font-size: 22px; }
.try-icons small { display: block; font-size: 12.5px; line-height: 1.3; color: #333; }
.try-icons i { font-style: normal; color: #bbb; font-size: 22px; margin-top: 10px; }
html[lang="ar"] .try-icons i { transform: scaleX(-1); }
.try-guide-link { display: block; margin-top: 12px; text-align: center; color: #333; font-weight: 600; font-size: 14px; text-decoration: underline; }

/* ---------- Guide photo (page Essayer) ---------- */
.guide { text-align: start; background: #fbf7f0; border: 1px solid #eee3d2; border-radius: 12px; padding: 18px 16px 14px; margin: 4px auto 22px; max-width: 640px; scroll-margin-top: 80px; }
.guide h2 { font-family: var(--serif); font-size: 20px; margin: 0 0 4px; }
.guide > p { margin: 0 0 12px; color: #555; font-size: 14px; }
.guide-rooms { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.guide-rooms button { border: 1px solid #d9cdb9; background: #fff; border-radius: 20px; padding: 7px 12px; font-size: 14px; cursor: pointer; }
.guide-rooms button.on { background: #111; color: #fff; border-color: #111; }
.guide-room-tip { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 14.5px; line-height: 1.45; }
.guide-room-tip .phone-ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; }
.guide-room-tip .phone-ico svg { width: 30px; height: 30px; }
.guide-cards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.guide-card { flex: 0 0 min(260px, 78%); scroll-snap-align: start; background: #fff; border-radius: 12px; padding: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.guide-card h3 { font-size: 15px; margin: 0 0 8px; line-height: 1.35; }
.guide-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.guide-pair figure { margin: 0; }
.guide-pair svg { width: 100%; height: auto; display: block; border-radius: 6px; }
.guide-pair figcaption { font-size: 12px; text-align: center; margin-top: 4px; font-weight: 700; }
.guide-pair .ok figcaption { color: #1b7f3b; }
.guide-pair .no figcaption { color: #c0122f; }
.guide-more { font-size: 12px; color: #777; margin: 8px 0 0; }
@media (max-width: 760px) {
  .try-swatches { gap: 8px; }
  .try-icons small { font-size: 11.5px; }
}
