/* =====================================================================
   JOURI — Élégance voilée, voix libre
   Thème enfant de Classic. Chargé après theme.css (parent).
   ===================================================================== */

:root {
  --jr-bordeaux: #6E0D1C;
  --jr-bordeaux-deep: #4C0813; /* fond exact du logo officiel */
  --jr-bordeaux-soft: #8E1428;
  --jr-teal: #0D6E5F;
  --jr-teal-light: #12907D;
  --jr-cream: #F5EFE6;
  --jr-card: #FBF7F0;
  --jr-gold: #C9A24B;
  --jr-ink: #1A1214;
  --jr-line: rgba(110, 13, 28, .18);
  --jr-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --jr-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --jr-ar: 'Amiri', 'Traditional Arabic', serif;
  --jr-radius-arch: 999px 999px 16px 16px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body, #wrapper, main { background: var(--jr-cream); }
body {
  color: var(--jr-ink);
  font-family: var(--jr-sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
#wrapper { padding-top: 1.5rem; }
#index #wrapper { padding-top: 0; }

h1, h2, h3, .h1, .h2, .h3, .page-header h1, .products-section-title,
.block-category h1, .product-title, .card-title {
  font-family: var(--jr-serif);
  font-weight: 700;
  color: var(--jr-bordeaux);
  text-transform: none;
  letter-spacing: 0;
}
a { color: var(--jr-bordeaux); transition: color .2s; }
a:hover, a:focus { color: var(--jr-teal); text-decoration: none; }
em { font-style: italic; color: var(--jr-teal); }
::selection { background: var(--jr-bordeaux); color: var(--jr-cream); }

.container { max-width: 1240px; }

/* ---------- Boutons ---------- */
.btn-primary, .jr-btn, .btn.add-to-cart, #submit-login, .continue {
  background: var(--jr-teal);
  border: 0;
  border-radius: 999px;
  color: var(--jr-cream);
  font-family: var(--jr-sans);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: none;
  padding: .85rem 1.8rem;
  box-shadow: none;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn-primary:hover, .btn-primary:focus, .jr-btn:hover, .btn.add-to-cart:hover {
  background: var(--jr-teal-light);
  color: var(--jr-cream);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(13, 110, 95, .3);
}
.btn-primary.disabled, .btn-primary:disabled { background: #9db8b2; }
.btn-secondary, .btn-tertiary, .jr-btn--ghost {
  background: transparent;
  color: var(--jr-ink);
  border: 1.5px solid var(--jr-gold);
  border-radius: 999px;
  box-shadow: none;
  text-transform: none;
}
.btn-secondary:hover, .btn-tertiary:hover, .jr-btn--ghost:hover {
  background: var(--jr-gold);
  color: var(--jr-ink);
  border-color: var(--jr-gold);
}
.jr-btn { display: inline-block; font-size: 15px; padding: 15px 30px; }
.jr-btn--ghost { background: transparent; color: var(--jr-ink); }

/* ---------- Formulaires ---------- */
.form-control, .custom-select, select.form-control, input[type="text"], input[type="email"],
input[type="password"], input[type="tel"], textarea {
  background: #fff;
  border: 1.5px solid var(--jr-line);
  border-radius: 12px;
  color: var(--jr-ink);
}
.form-control:focus, input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--jr-gold);
  border-color: transparent;
  box-shadow: none;
}
.custom-checkbox input[type=checkbox]+span, .custom-radio { border-color: var(--jr-bordeaux); }
.custom-radio input[type=radio]:checked+span { background-color: var(--jr-bordeaux); }

/* ---------- Bandeau d'annonce ---------- */
.header-banner { background: var(--jr-bordeaux); }
.jr-banner {
  color: var(--jr-cream);
  text-align: center;
  font-size: 13px;
  letter-spacing: .08em;
  padding: 9px 16px;
  border-bottom: 2px solid var(--jr-gold);
}

/* ---------- Header ---------- */
#header {
  background: rgba(245, 239, 230, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none;
  border-bottom: 1px solid var(--jr-line);
  position: sticky;
  top: 0;
  z-index: 50;
}
#header .header-nav { background: transparent; border: 0; max-height: none; margin: 0; }
#header .header-top { padding: 0; }
.jr-header {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 78px;
}
.jr-header__logo { flex: 0 0 auto; }
.jr-header__logo h1 { margin: 0; line-height: 0; }
#header .logo, .jr-header__logo img { max-height: 54px; width: auto; }
.jr-header__menu { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 18px; }
.jr-header__menu > .menu, .jr-header__menu #_desktop_top_menu { padding: 0; }
.jr-header__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.jr-header__actions > div { float: none; }

#header .top-menu[data-depth="0"] { display: flex; flex-wrap: nowrap; justify-content: center; margin: 0; }
#header .top-menu[data-depth="0"] > li { float: none; white-space: nowrap; }
#header .top-menu a[data-depth="0"] {
  font-family: var(--jr-sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--jr-ink);
  padding: 10px 9px;
}
#header .top-menu a[data-depth="0"]:hover { color: var(--jr-teal); }
#header .top-menu .sub-menu {
  background: var(--jr-card);
  border-top: 3px solid var(--jr-gold);
  box-shadow: 0 18px 40px rgba(26, 18, 20, .12);
  border-radius: 0 0 16px 16px;
}
#header .top-menu .sub-menu a { color: var(--jr-ink); }

.jr-header__menu #_desktop_top_menu { flex: 1 1 auto; }
#search_widget { min-width: 0; width: 170px; flex: 0 0 auto; margin: 0; }
#search_widget form input[type=text] {
  background: var(--jr-card);
  border: 1.5px solid var(--jr-line);
  border-radius: 999px;
  padding: 10px 14px 10px 38px;
  min-width: 0;
  width: 100%;
}
@media (max-width: 1199px) { #search_widget { width: 44px; } #search_widget form input[type=text] { padding-right: 0; color: transparent; } #search_widget form input[type=text]:focus { width: 220px; color: var(--jr-ink); position: relative; z-index: 3; } }
#search_widget form i { color: var(--jr-bordeaux); }

#header .header-nav .user-info, #header .blockcart, .jr-header__actions .user-info,
.jr-header__actions .blockcart {
  background: transparent;
  margin: 0;
  padding: 8px 10px;
  height: auto;
}
.jr-header__actions a, .jr-header__actions .material-icons, #header .blockcart .header { color: var(--jr-ink); }
.jr-header__actions .blockcart.active .header a { color: var(--jr-bordeaux); }
.jr-header__actions .cart-products-count {
  background: var(--jr-bordeaux);
  color: var(--jr-cream);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 12px;
}
.jr-header__actions .language-selector, .jr-header__actions .currency-selector { font-size: 13px; }
/* actions en icônes seules : libère la place pour le menu */
.jr-header__actions .user-info .hidden-sm-down,
.jr-header__actions .blockcart .hidden-sm-down { display: none; }
.jr-header__actions .material-icons { font-size: 24px; }
.jr-header__actions #_desktop_language_selector, .jr-header__actions #_desktop_currency_selector { display: none; }

/* Mobile */
#header .header-nav .mobile #menu-icon .material-icons,
#header .header-nav .mobile .material-icons { color: var(--jr-bordeaux); }
#header .header-nav .top-logo img { max-height: 40px; }
#mobile_top_menu_wrapper { background: var(--jr-card); }

/* ---------- Pleine largeur (sections d'accueil) ---------- */
.jr-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}
.jr-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
#index #content.page-home { margin-bottom: 0; }
#index #wrapper .breadcrumb { display: none; }

/* ---------- Typo éditoriale ---------- */
.jr-kicker, .jr-tag {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--jr-teal);
  margin-bottom: 16px;
  font-family: var(--jr-sans);
}
.jr-tag::before { content: "❀ "; color: var(--jr-gold); }
.jr-home h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1.08; }

/* ---------- Logo en masque (recolorable) ---------- */
.jr-logo-mask {
  display: block;
  width: 150px;
  aspect-ratio: 1143 / 374;
  background: currentColor;
  -webkit-mask: url("../img/logo-jouri.png") center / contain no-repeat;
  mask: url("../img/logo-jouri.png") center / contain no-repeat;
}

/* ---------- HERO ---------- */
.jr-hero { padding: 64px 0 90px; overflow: hidden; }
.jr-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.jr-hero__title { font-size: clamp(46px, 7vw, 96px); line-height: 1.04; margin: 0; }
.jr-hero__text { max-width: 480px; margin: 26px 0 36px; font-size: 19px; }
.jr-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.jr-arches { position: relative; height: clamp(380px, 50vw, 560px); }
.jr-arch {
  position: absolute; bottom: 0;
  border-radius: 999px 999px 0 0;
  background-size: cover; background-position: 50% 18%;
  animation: jr-rise 1.2s cubic-bezier(.2, .8, .2, 1) both;
}
.jr-arch--1 { left: 0; width: 46%; height: 78%; background-color: var(--jr-teal); animation-delay: .1s; }
.jr-arch--2 {
  left: 27%; width: 50%; height: 100%;
  background-color: var(--jr-bordeaux);
  border: 3px solid var(--jr-gold);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: 0 6% 8%;
  animation-delay: .3s;
}
.jr-arch--2 .jr-logo-mask { width: 72%; color: var(--jr-cream); }
.jr-arch--3 { right: 0; width: 34%; height: 62%; background-color: var(--jr-gold); animation-delay: .5s; }
.jr-badge { position: absolute; right: -6px; top: 6%; width: 128px; height: 128px; animation: jr-spin 18s linear infinite; }
.jr-badge text { font: 600 10.5px var(--jr-sans); letter-spacing: .2em; fill: var(--jr-bordeaux); }
@keyframes jr-rise { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes jr-spin { to { transform: rotate(360deg); } }

/* Pétales */
.jr-petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.jr-petal { position: absolute; top: -30px; border-radius: 100% 0 100% 0; opacity: 0; animation: jr-fall linear infinite; }
@keyframes jr-fall {
  0% { transform: translate(0, -30px) rotate(0); opacity: 0; }
  10% { opacity: .75; }
  100% { transform: translate(var(--dx), 760px) rotate(560deg); opacity: 0; }
}

/* Décors floraux */
.jr-hero, .jr-manifesto, .jr-quote { position: relative; overflow: hidden; }
.jr-deco {
  position: absolute; pointer-events: none; z-index: 0;
  color: var(--jr-gold); opacity: .3;
  width: clamp(170px, 26vw, 380px); height: auto; aspect-ratio: 1;
  animation: jr-sway 9s ease-in-out infinite alternate;
}
.jr-deco--wide { aspect-ratio: 2 / 1; width: clamp(220px, 34vw, 460px); }
.jr-deco--hero { right: -70px; top: -60px; color: var(--jr-bordeaux); opacity: .08; width: clamp(260px, 40vw, 560px); }
.jr-deco--tr { right: -50px; top: -30px; }
.jr-deco--bl { left: -40px; bottom: -10px; }
@keyframes jr-sway { to { transform: rotate(7deg) translateY(10px); } }

/* ---------- Ruban ---------- */
.jr-marquee {
  background: var(--jr-bordeaux); color: var(--jr-cream);
  overflow: hidden; white-space: nowrap;
  padding: 16px 0; border-block: 3px solid var(--jr-gold);
}
.jr-marquee > div { display: inline-block; animation: jr-slide 28s linear infinite; font-family: var(--jr-serif); font-style: italic; font-size: 22px; }
.jr-marquee i { color: var(--jr-gold); font-style: normal; margin: 0 26px; }
@keyframes jr-slide { to { transform: translateX(-50%); } }

/* ---------- Manifeste ---------- */
.jr-manifesto { background: var(--jr-bordeaux); color: var(--jr-cream); padding: 100px 0; }
.jr-manifesto h2 { color: var(--jr-cream); max-width: 900px; }
.jr-manifesto h2 em { color: var(--jr-gold); }
.jr-manifesto .jr-tag { color: var(--jr-gold); }
.jr-lead { max-width: 640px; margin-top: 28px; font-size: 19px; }
.jr-manifesto p, .jr-manifesto .jr-lead { color: rgba(245, 239, 230, .92); }
.jr-hero__text { color: #3d3033; }
.jr-hero__title em, .jr-home h2 em { color: var(--jr-teal); }
.jr-manifesto h2 em { color: var(--jr-gold); }
.jr-vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.jr-vals div { border-top: 1px solid rgba(201, 162, 75, .6); padding-top: 20px; }
.jr-vals h3 { color: var(--jr-gold); font-size: 24px; margin-bottom: 8px; }
.jr-vals p { margin: 0; font-size: 16px; }

/* ---------- Séparateur ---------- */
.jr-divider { display: flex; justify-content: center; color: var(--jr-gold); padding: 34px 0 0; }
.jr-divider svg { width: min(340px, 80%); height: 46px; }

/* ---------- Collections ---------- */
.jr-collections, .jr-lookbook { padding: 70px 0; }
.jr-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 48px; }
.jr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.jr-card { display: block; color: var(--jr-ink); }
.jr-card__img {
  aspect-ratio: 3 / 4;
  border-radius: 170px 16px 170px 16px;
  background: linear-gradient(160deg, var(--jr-bordeaux-soft), var(--jr-bordeaux)) center / cover no-repeat;
  background-position: 50% 15%;
  background-size: cover;
  position: relative; overflow: hidden;
  transition: transform .5s, box-shadow .5s;
}
.jr-card:hover .jr-card__img { transform: translateY(-10px); box-shadow: 0 22px 40px rgba(110, 13, 28, .25); }
.jr-card__img svg {
  position: absolute; left: calc(50% - 24px); bottom: 16px; width: 48px;
  color: var(--jr-cream); filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .55));
  transition: transform .8s;
}
.jr-card:hover .jr-card__img svg { transform: rotate(14deg) scale(1.08); }
.jr-card h3 { font-size: 24px; margin: 18px 0 4px; }
.jr-card span { font-size: 14px; opacity: .75; display: block; }
.jr-card em { display: block; font-size: 14px; font-style: normal; font-weight: 600; margin-top: 8px; color: var(--jr-teal); letter-spacing: .06em; }

/* ---------- Lookbook ---------- */
.jr-lb { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.jr-lbi {
  position: relative; aspect-ratio: 3 / 4;
  border-radius: var(--jr-radius-arch);
  background-size: cover; background-position: 50% 18%;
  overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
  border: 3px solid var(--jr-gold);
}
.jr-lbi:nth-child(2) { margin-top: 56px; }
.jr-lbi::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(to top, rgba(26, 18, 20, .8), transparent); }
.jr-lbi span { position: relative; z-index: 1; color: var(--jr-cream); font: italic 500 20px var(--jr-serif); padding-bottom: 22px; }

/* ---------- Citation ---------- */
.jr-quote { text-align: center; padding: 100px 0; }
.jr-quote blockquote {
  font-family: var(--jr-serif); font-style: italic;
  font-size: clamp(28px, 4.2vw, 50px); line-height: 1.25;
  color: var(--jr-bordeaux); max-width: 900px; margin: 0 auto;
  border: 0; padding: 0;
}
.jr-quote cite { display: block; margin-top: 26px; font-style: normal; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--jr-teal); }
.jr-dots { color: var(--jr-gold); letter-spacing: .6em; margin-bottom: 24px; font-size: 20px; }

/* ---------- Apparition au scroll ---------- */
.jr-js .jr-rv { opacity: 0; transform: translateY(34px); transition: opacity .9s, transform .9s; }
.jr-js .jr-rv.jr-in { opacity: 1; transform: none; }

/* ---------- Sections produits (accueil) ---------- */
.featured-products, .product-accessories, .product-miniature-list, #index .new-products { margin: 40px 0; }
.products-section-title, section.featured-products .products-section-title,
#content-wrapper .products-section-title {
  font-family: var(--jr-serif);
  font-size: clamp(30px, 4vw, 46px);
  text-transform: none;
  text-align: center;
  margin: 30px 0 32px;
}
.products-section-title::before {
  content: "❀ JOURI"; display: block;
  font: 600 13px var(--jr-sans); letter-spacing: .28em; color: var(--jr-teal); margin-bottom: 12px;
}
.all-product-link { color: var(--jr-teal); font-weight: 600; }

/* ---------- Miniatures produit (arche) ---------- */
.product-miniature .thumbnail-container {
  background: transparent;
  box-shadow: none;
  margin-bottom: 1.8rem;
}
.product-miniature .thumbnail-container:hover, .product-miniature .thumbnail-container:focus { box-shadow: none; }
.product-miniature .thumbnail-top {
  border-radius: var(--jr-radius-arch);
  overflow: hidden;
  background: var(--jr-card);
}
.product-miniature .product-thumbnail img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  transition: transform .6s ease;
}
.product-miniature:hover .product-thumbnail img { transform: scale(1.04); }
.product-miniature .product-description {
  background: transparent; position: static; height: auto; width: auto;
  padding: 14px 4px 0; text-align: left;
}
.product-miniature .product-title { text-align: left; }
.product-miniature .product-title a {
  font-family: var(--jr-serif); font-size: 20px; font-weight: 700;
  color: var(--jr-bordeaux); text-transform: none;
}
.product-miniature .product-price-and-shipping { text-align: left; color: var(--jr-teal); font-weight: 600; font-size: 16px; }
.product-miniature .regular-price { color: #8a7d7f; }
.product-miniature .highlighted-informations { background: rgba(245, 239, 230, .92); box-shadow: none; }
.product-miniature .highlighted-informations .quick-view { color: var(--jr-bordeaux); }
.product-flags li.product-flag {
  background: var(--jr-bordeaux); color: var(--jr-cream);
  border-radius: 999px; font-size: 11px; letter-spacing: .1em;
  padding: 4px 12px; margin-top: 12px; box-shadow: none;
}
.product-flags li.product-flag.discount, .product-flags li.product-flag.on-sale { background: var(--jr-gold); color: var(--jr-ink); }
.product-flags li.product-flag.new { background: var(--jr-teal); }
.variant-links .color { border-radius: 50%; }

/* ---------- Catalogue / catégories ---------- */
.block-category {
  background: var(--jr-card);
  border: 1px solid var(--jr-line);
  border-radius: 24px;
  box-shadow: none;
  padding: 32px;
  min-height: 0;
}
.block-category h1 { font-size: clamp(32px, 4vw, 48px); }
.block-category .category-cover img { border-radius: var(--jr-radius-arch); }
#left-column .block-categories, #search_filters, #search_filter_controls {
  background: var(--jr-card);
  border: 1px solid var(--jr-line);
  border-radius: 20px;
  box-shadow: none;
}
#left-column .block-categories .category-top-menu a.h6,
#search_filters .h6, #search_filters .facet .facet-title {
  font-family: var(--jr-serif); color: var(--jr-bordeaux); text-transform: none; font-size: 18px;
}
#search_filters .facet .facet-label a { color: var(--jr-ink); }
.products-selection .sort-by, .products-selection .total-products p { color: var(--jr-ink); }
.products-sort-order .select-title { border-radius: 999px; border-color: var(--jr-line); background: #fff; }
.pagination .current a { color: var(--jr-bordeaux); font-weight: 700; }
.breadcrumb { background: transparent; padding-left: 0; }
.breadcrumb li a, .breadcrumb li span { color: #7a6a6d; font-size: 13px; }
.subcategory-image a { border-radius: var(--jr-radius-arch); }

/* ---------- Fiche produit ---------- */
#product #content { max-width: none; }
.product-cover { border-radius: var(--jr-radius-arch); overflow: hidden; }
.product-cover img { aspect-ratio: 3 / 4; object-fit: cover; box-shadow: none; }
.product-cover .layer { background: rgba(110, 13, 28, .25); }
.product-images > li.thumb-container .thumb { border-radius: 12px; }
.product-images > li.thumb-container .thumb.selected, .product-images > li.thumb-container .thumb:hover { border: 2px solid var(--jr-gold); }
#product h1.h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; margin-bottom: 12px; }
.product-prices .current-price { color: var(--jr-teal); font-size: 26px; font-weight: 600; }
.product-prices .tax-shipping-delivery-label { color: #7a6a6d; }
.product-information, #product-description-short { color: var(--jr-ink); }
.product-variants > .product-variants-item .control-label { font-family: var(--jr-sans); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.product-variants > .product-variants-item select { border-radius: 999px; background-color: #fff; border: 1.5px solid var(--jr-line); }
.product-variants > .product-variants-item ul li .input-radio:checked + span,
.product-variants > .product-variants-item ul li .input-color:checked + span { border: 2px solid var(--jr-bordeaux); }
.product-variants .radio-label { border-radius: 999px; box-shadow: none; border: 1.5px solid var(--jr-line); background: #fff; min-width: 46px; text-align: center; }
.input-radio:checked + .radio-label { background: var(--jr-bordeaux); color: var(--jr-cream); border-color: var(--jr-bordeaux); }
.product-variants .color { border-radius: 50%; width: 30px; height: 30px; }
.product-quantity .qty .input-group { border-radius: 999px; }
.bootstrap-touchspin .btn-touchspin { border-color: var(--jr-line); }
.product-add-to-cart .add-to-cart { padding: .9rem 2.2rem; }
.product-actions .add-to-cart .material-icons { line-height: inherit; }
.tabs { background: var(--jr-card); border: 1px solid var(--jr-line); border-radius: 20px; box-shadow: none; }
.tabs .nav-tabs .nav-link { color: var(--jr-ink); font-family: var(--jr-serif); font-size: 18px; }
.tabs .nav-tabs .nav-link.active { color: var(--jr-bordeaux); border-bottom: 3px solid var(--jr-gold); }
.blockreassurance_product { margin-top: 1rem; }
.product-additional-info { margin-top: 1rem; }

/* Infos Jouri (guide des tailles, réassurance) */
.jr-pinfo { margin: 18px 0 8px; }
.jr-sizeguide-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 0; padding: 0;
  color: var(--jr-bordeaux); font-weight: 600; text-decoration: underline;
  text-underline-offset: 4px; cursor: pointer;
}
.jr-sizeguide-btn svg { width: 22px; height: 22px; }
.jr-reassure { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; font-size: 14px; }
.jr-reassure span { color: var(--jr-gold); margin-right: 6px; }
.jr-dialog {
  border: 0; border-radius: 24px; padding: 34px; max-width: 720px; width: calc(100% - 32px);
  background: var(--jr-cream); color: var(--jr-ink);
  box-shadow: 0 30px 80px rgba(26, 18, 20, .35);
}
.jr-dialog::backdrop { background: rgba(26, 18, 20, .55); }
.jr-dialog h3 { font-size: 30px; margin: 0 0 10px; }
.jr-dialog__close { position: absolute; right: 18px; top: 12px; }
.jr-dialog__close button { background: none; border: 0; font-size: 30px; line-height: 1; color: var(--jr-bordeaux); cursor: pointer; }
.jr-table-wrap { overflow-x: auto; margin: 18px 0; }
.jr-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.jr-table th { background: var(--jr-bordeaux); color: var(--jr-cream); font-weight: 600; padding: 10px; text-align: left; }
.jr-table td { padding: 10px; border-bottom: 1px solid var(--jr-line); }
.jr-table tr:nth-child(even) td { background: var(--jr-card); }
.jr-small { font-size: 13px; color: #6d5f61; margin: 0; }

/* ---------- Panier / tunnel ---------- */
.card, .cart-grid-body .card, .cart-summary, #js-checkout-summary, .checkout-step, .page-content.card {
  background: var(--jr-card);
  border: 1px solid var(--jr-line);
  border-radius: 20px;
  box-shadow: none;
}
.checkout-step .step-title { font-family: var(--jr-serif); color: var(--jr-bordeaux); text-transform: none; }
.checkout-step.-current .step-title { color: var(--jr-bordeaux); }
.cart-summary-line .value, .cart-total .value { color: var(--jr-teal); font-weight: 600; }
#blockcart-modal .modal-header { background: var(--jr-bordeaux); }
#blockcart-modal .modal-content { border-radius: 20px; overflow: hidden; }
#blockcart-modal .product-name { color: var(--jr-bordeaux); font-family: var(--jr-serif); }

/* ---------- Pages CMS / compte ---------- */
.page-content.page-cms, #content.page-content { background: var(--jr-card); border-radius: 20px; padding: 32px; }
.page-my-account #content .links a span.link-item { background: var(--jr-card); border-radius: 20px; box-shadow: none; border: 1px solid var(--jr-line); color: var(--jr-bordeaux); }
.page-my-account #content .links a i { color: var(--jr-gold); }

/* ---------- Newsletter (« Rejoignez le cercle ») ---------- */
.jr-prefooter { background: var(--jr-card); border-top: 1px solid var(--jr-line); padding: 70px 0; margin-top: 40px; }
.block_newsletter {
  background: transparent; max-width: none; width: 100%;
  padding: 0 15px; margin: 0; font-size: 16px;
}
.block_newsletter #block-newsletter-label {
  font-family: var(--jr-serif); font-weight: 700; color: var(--jr-bordeaux);
  font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; text-transform: none;
}
.block_newsletter #block-newsletter-label::before {
  content: "❀ REJOIGNEZ LE CERCLE"; display: block;
  font: 600 13px var(--jr-sans); letter-spacing: .28em; color: var(--jr-teal); margin-bottom: 14px;
}
.block_newsletter form input[type=email] {
  border-radius: 999px; border: 1.5px solid var(--jr-line); padding: 14px 20px; height: auto; background: #fff;
}
.block_newsletter form input[type=email]:focus { outline: 2px solid var(--jr-gold); }
.block_newsletter form .input-wrapper { margin-right: 10px; }
.block_newsletter form input.btn { border-radius: 999px; padding: 14px 28px; height: auto; }
.block_newsletter p { color: #6d5f61; }

/* ---------- Footer ---------- */
#footer { background: var(--jr-ink); padding-top: 0; }
.footer-container { background: var(--jr-ink); color: var(--jr-cream); margin-top: 0; padding: 60px 0 30px; box-shadow: none; overflow: visible; }
.jr-footer-brand { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; margin-bottom: 36px; }
.jr-footer-brand .jr-logo-mask { width: 170px; color: var(--jr-cream); }
.jr-footer-brand p { margin: 0; opacity: .7; max-width: 460px; }
.footer-container li a, .footer-container .h3, .footer-container .h4, .footer-container .block-contact,
.footer-container .block-contact a, .footer-container p { color: rgba(245, 239, 230, .78); }
.footer-container li a:hover { color: var(--jr-gold); }
.footer-container .h3, .footer-container .h4, .footer-container .block-contact .block-contact-title,
.footer-container .links .h3, .footer-container .title .h3 {
  font-family: var(--jr-serif); color: var(--jr-gold); text-transform: none; font-size: 19px; font-weight: 700;
}
.footer-container .links .collapse { background: transparent; }
.footer-container .links .title { border-color: rgba(245, 239, 230, .15); }
.footer-container .material-icons, .footer-container .float-xs-right .material-icons { color: var(--jr-gold); }
.block-social ul li { background-color: var(--jr-gold); border-radius: 50%; }
.block-social ul li:hover { background-color: var(--jr-cream); }
.jr-copyright { border-top: 1px solid rgba(245, 239, 230, .15); padding-top: 24px; margin-top: 16px; opacity: .65; }

/* ---------- Divers ---------- */
.alert-info { background: rgba(13, 110, 95, .08); border-color: var(--jr-teal); color: var(--jr-ink); }
.alert-success { background: rgba(13, 110, 95, .12); border-color: var(--jr-teal); color: var(--jr-teal); }
.label, label { color: var(--jr-ink); }
.page-header h1 { font-size: clamp(30px, 4vw, 44px); }
.modal-content { border-radius: 20px; }
.quickview .modal-content { background: var(--jr-cream); }

/* ---------- PWA : bouton d'installation ---------- */
.jr-install-wrap { margin-left: auto; text-align: right; }
.jr-install {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--jr-gold);
  border: 1.5px solid var(--jr-gold); border-radius: 999px;
  padding: 10px 18px; font: 600 14px var(--jr-sans); cursor: pointer;
  transition: background .2s, color .2s;
}
.jr-install:hover { background: var(--jr-gold); color: var(--jr-ink); }
.jr-install svg { width: 18px; height: 18px; }
.jr-install[hidden], .jr-install-ios[hidden] { display: none !important; }
.jr-install-ios { margin-top: 10px !important; font-size: 13px; opacity: .85 !important; }

/* ---------- Mobile & application installée ---------- */
body { -webkit-tap-highlight-color: rgba(201, 162, 75, .25); }
#header { padding-top: env(safe-area-inset-top, 0); }
.footer-container { padding-bottom: calc(30px + env(safe-area-inset-bottom, 0)); }
@media (display-mode: standalone) {
  .header-banner { display: none; }   /* l'app installée affiche une interface épurée */
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .jr-grid { grid-template-columns: repeat(2, 1fr); }
  .jr-header__menu { justify-content: flex-end; }
}
@media (max-width: 860px) {
  .jr-hero__grid { grid-template-columns: 1fr; }
  .jr-badge { width: 100px; height: 100px; }
}
@media (max-width: 767px) {
  body { font-size: 15px; }
  .jr-banner { font-size: 11.5px; letter-spacing: .04em; padding: 7px 12px; }
  #header .header-nav { padding: 8px 0; }
  #header .header-nav .mobile { display: flex; align-items: center; min-height: 48px; }
  #header .header-nav .mobile #menu-icon { order: 0; }
  #header .header-nav .mobile .top-logo { order: 1; flex: 1; text-align: center; }
  #header .header-nav .mobile #_mobile_user_info { order: 2; }
  #header .header-nav .mobile #_mobile_cart { order: 3; }
  #header .header-nav .mobile > div { float: none !important; }
  #header .header-nav .mobile .clearfix { display: none; }
  #header .header-nav #menu-icon, #header .header-nav .user-info, #header .header-nav .blockcart {
    min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 0;
  }
  #header .header-nav .blockcart, #header .header-nav .blockcart.active { background: transparent; }
  #header .header-nav .blockcart .header > span:not(.cart-products-count), #header .header-nav .user-info .hidden-sm-down { display: none; }
  #header .header-nav .cart-products-count { background: var(--jr-bordeaux); color: var(--jr-cream); border-radius: 999px; padding: 0 6px; font-size: 11px; margin-left: 2px; }
  #header .header-top { padding: 0 0 10px; }
  #header .header-top .jr-header__menu { width: 100%; }
  #search_widget { width: 100%; }
  #search_widget form input[type=text] { color: var(--jr-ink); padding-right: 14px; }
  #mobile_top_menu_wrapper { margin: 0; padding: 10px 0 18px; border-top: 1px solid var(--jr-line); }
  #mobile_top_menu_wrapper .top-menu a { font-family: var(--jr-serif); font-size: 19px; color: var(--jr-bordeaux); padding: 12px 16px; }
  .jr-header { min-height: 0; padding: 6px 0; }
  .jr-hero__title { font-size: 44px; }
  .jr-hero__text { font-size: 16px; margin: 18px 0 26px; }
  .jr-cta .jr-btn { flex: 1 1 100%; text-align: center; }
  .jr-arches { height: 360px; margin-top: 10px; }
  .jr-badge { width: 86px; height: 86px; right: 0; }
  .jr-marquee > div { font-size: 18px; }
  .jr-collections, .jr-lookbook { padding: 46px 0; }
  .jr-head { margin-bottom: 28px; }
  .jr-footer-brand { flex-direction: column; align-items: flex-start; }
  .jr-install-wrap { margin-left: 0; text-align: left; }
  .block_newsletter form .input-wrapper { margin: 0 0 10px; overflow: visible; }
  .block_newsletter form input.btn { width: 100%; float: none !important; display: block; }
  .block_newsletter form .row > div, .block_newsletter form .col-xs-12 { float: none; width: 100%; }
  .block_newsletter form .col-xs-12:first-child { display: flex; flex-direction: column; }
  .block_newsletter form .input-wrapper { order: -1; }
  /* fiche produit : bouton d'achat bien visible et confortable au pouce */
  .product-add-to-cart .product-quantity { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; }
  .product-add-to-cart .product-quantity .qty { flex: 0 0 auto; margin: 0; }
  .product-add-to-cart .product-quantity .add { flex: 1 1 auto; min-width: 0; margin: 0; }
  .product-add-to-cart .product-quantity .wishlist-button-add { flex: 0 0 44px; margin: 0 !important; }
  .product-add-to-cart .add-to-cart { width: 100%; min-height: 52px; padding-left: 12px; padding-right: 12px; }
  .product-variants .radio-label { min-width: 48px; min-height: 44px; line-height: 30px; }
  /* produits en grille 2 colonnes sur mobile */
  #products .products, .featured-products .products, .product-accessories .products { margin: 0 -6px; }
  #products .product, .featured-products .product, .product-accessories .product, .new-products .product {
    width: 50%; flex: 0 0 50%; max-width: 50%; padding: 0 6px;
  }
  .product-miniature .product-title a { font-size: 16px; }
  .product-miniature .highlighted-informations { display: none; }
  .jr-vals { grid-template-columns: 1fr; }
  .jr-lb { grid-template-columns: 1fr; }
  .jr-lbi:nth-child(2) { margin-top: 0; }
  .jr-hero { padding: 36px 0 60px; }
  .jr-manifesto, .jr-quote { padding: 70px 0; }
  #search_widget { width: 100%; min-width: 0; }
}
@media (max-width: 520px) {
  .jr-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .jr-home *, .jr-marquee > div, .jr-badge { animation: none !important; transition: none !important; }
  .jr-js .jr-rv { opacity: 1; transform: none; }
}
