/* Genytri Base : feuille commune. Les variables (--c-*, --font-*, --r-*…) sont posées par layout/theme.liquid
   à partir des réglages du thème. Mobile d'abord ; propriétés logiques pour l'arabe (RTL). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h, 64px) + 12px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--c-bg); color: var(--c-text);
  font-family: var(--font-body); font-weight: var(--fw-body, 400);
  font-size: calc(var(--fs-scale) * 1rem); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}
main { flex: 1 0 auto; }
main:focus { outline: none; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--c-text); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--c-text); color: var(--c-bg); }
[hidden] { display: none !important; }
@media (max-width: 767px) { input, select, textarea { font-size: 16px; } }

/* Titres */
h1, h2, h3, h4, .h0, .h1, .h2, .h3, .h4 {
  font-family: var(--font-heading); font-weight: var(--fw-heading); letter-spacing: var(--ls-heading);
  text-transform: var(--tt-heading); line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; overflow-wrap: break-word;
}
.h0 { font-size: calc(var(--hs-scale) * clamp(2.5rem, 1.6rem + 4.4vw, 5rem)); line-height: 1; }
h1, .h1 { font-size: calc(var(--hs-scale) * clamp(2rem, 1.5rem + 2.4vw, 3.5rem)); line-height: 1.04; }
h2, .h2 { font-size: calc(var(--hs-scale) * clamp(1.6rem, 1.3rem + 1.5vw, 2.6rem)); }
h3, .h3 { font-size: calc(var(--hs-scale) * clamp(1.2rem, 1.1rem + .5vw, 1.5rem)); line-height: 1.2; }
h4, .h4 { font-size: calc(var(--hs-scale) * 1.05rem); line-height: 1.3; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); margin-bottom: .75rem; }
.muted { color: var(--c-muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.rte > * + * { margin-top: .9em; }
.rte > * { margin-bottom: 0; }
.rte a { text-decoration: underline; }
.rte ul, .rte ol { padding-inline-start: 1.25em; }
.rte img { border-radius: var(--r-card); }
.rte table { width: 100%; border-collapse: collapse; }
.rte td, .rte th { border-bottom: 1px solid var(--c-border); padding: .5em 0; text-align: start; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -100px; z-index: 100; background: var(--c-text); color: var(--c-bg); padding: .75rem 1rem; border-radius: var(--r-input); }
.skip-link:focus { top: 12px; }

/* Mise en page */
.container { width: 100%; max-width: calc(var(--page-width) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(760px + 2 * var(--gutter)); }
.container--text { max-width: calc(640px + 2 * var(--gutter)); }
@media (min-width: 768px) { :root { --gutter: 40px; } }
@media (min-width: 1280px) { :root { --gutter: 56px; } }
.section { padding-block: var(--sp); }
.section.pad-none { --sp: 0px; }
.section.pad-small { --sp: calc(var(--gap-section) * .45); }
.section.pad-medium { --sp: calc(var(--gap-section) * .75); }
.section.pad-large { --sp: var(--gap-section); }
@media (max-width: 767px) { .section { --gap-section-m: .7; padding-block: calc(var(--sp) * .7); } }
.bg-alt { background: var(--c-bg-alt); }
.bg-accent { background: var(--c-accent); color: var(--c-accent-text); --c-muted: color-mix(in srgb, var(--c-accent-text) 72%, transparent); --c-border: color-mix(in srgb, var(--c-accent-text) 22%, transparent); }
.bg-inverse { background: var(--c-text); color: var(--c-bg); --c-muted: color-mix(in srgb, var(--c-bg) 70%, transparent); --c-border: color-mix(in srgb, var(--c-bg) 20%, transparent); }
.bg-accent .btn--primary, .bg-inverse .btn--primary { --b-bg: var(--c-bg); --b-fg: var(--c-text); }
.bg-accent .btn--secondary, .bg-inverse .btn--secondary { --b-fg: currentColor; }
@media (max-width: 767px) { .hide-mobile { display: none !important; } }
@media (min-width: 768px) { .hide-desktop { display: none !important; } }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 2rem; margin-bottom: clamp(1.25rem, 1rem + 1.2vw, 2.25rem); }
.section-head > div { max-width: 46rem; }
.section-head h2 { margin-bottom: 0; }
.section-head p { margin-top: .6rem; color: var(--c-muted); }
.section-head--center { justify-content: center; text-align: center; }
.section-head--center > div { margin-inline: auto; }
.stack > * + * { margin-top: var(--stack, 1rem); }
.text-center { text-align: center; }
.text-end { text-align: end; }

/* Grilles */
.grid { display: grid; gap: var(--grid-gap, 12px); grid-template-columns: repeat(var(--cols-m, 2), minmax(0, 1fr)); }
@media (min-width: 768px) { .grid { --grid-gap: 20px; grid-template-columns: repeat(min(var(--cols, 4), 3), minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { --grid-gap: 24px; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); } }
.cols-1 { --cols: 1; } .cols-2 { --cols: 2; } .cols-3 { --cols: 3; } .cols-4 { --cols: 4; } .cols-5 { --cols: 5; } .cols-6 { --cols: 6; }
.cols-m-1 { --cols-m: 1; } .cols-m-2 { --cols-m: 2; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: var(--item-w, 72%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 768px) { .scroller--desktop-grid { display: grid; grid-auto-flow: row; overflow: visible; margin-inline: 0; padding-inline: 0; gap: 24px; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); } }

/* Boutons */
.btn {
  --b-bg: transparent; --b-fg: var(--c-text); --b-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: var(--btn-h); padding: 0 var(--btn-px); border-radius: var(--r-btn);
  background: var(--b-bg); color: var(--b-fg); border: 1px solid var(--b-bd);
  font-family: var(--font-body); font-size: .95rem; font-weight: 500; line-height: 1.2; letter-spacing: var(--btn-ls);
  text-transform: var(--btn-tt); text-decoration: none; text-align: center; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s, opacity .2s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:active:not(:disabled) { transform: scale(.985); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn--primary { --b-bg: var(--c-btn); --b-fg: var(--c-btn-text); --b-bd: var(--c-btn); }
.btn--primary:hover:not(:disabled) { --b-bg: color-mix(in srgb, var(--c-btn) 86%, var(--c-btn-text)); }
.btn--secondary { --b-bd: currentColor; }
.btn--secondary:hover:not(:disabled) { --b-bg: var(--c-text); --b-fg: var(--c-bg); --b-bd: var(--c-text); }
.btn--ghost { --b-bg: var(--c-bg-alt); }
.btn--ghost:hover { --b-bg: color-mix(in srgb, var(--c-bg-alt) 85%, var(--c-text)); }
.btn--whatsapp { --b-bg: #25d366; --b-fg: #0b2e17; --b-bd: #25d366; }
.btn--whatsapp:hover { --b-bg: #1fbe5b; }
.btn--block { width: 100%; }
.btn--lg { min-height: calc(var(--btn-h) + 6px); font-size: 1rem; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn .btn__arrow { transition: transform .2s; }
.btn:hover .btn__arrow { transform: translateX(3px); }
[dir="rtl"] .btn__arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .btn__arrow { transform: scaleX(-1) translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.link-arrow { position: relative; display: inline-flex; align-items: center; gap: .35em; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.link-arrow::before, .hit::before { content: ""; position: absolute; inset: -10px -6px; }
.hit { position: relative; }
.icon { width: 20px; height: 20px; flex: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; border-radius: 999px; position: relative; color: inherit; text-decoration: none; }
.icon-btn:hover { background: color-mix(in srgb, currentColor 7%, transparent); }

/* Formulaires */
.field { display: grid; gap: .4rem; }
.field + .field, .field-row + .field, .field + .field-row { margin-top: 1rem; }
.field-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .field-row--2 { grid-template-columns: 1fr 1fr; } }
.label { font-size: .875rem; font-weight: 500; }
.label .req { color: var(--c-sale); }
.hint { font-size: .8rem; color: var(--c-muted); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: .75rem 1rem; border: 1px solid var(--c-border); border-radius: var(--r-input);
  background: var(--c-bg); color: var(--c-text); transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
.textarea { min-height: 96px; resize: vertical; }
.select { padding-inline-end: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23777' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
[dir="rtl"] .select { background-position: left 1rem center; }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in srgb, var(--c-text) 35%, var(--c-border)); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-text) 12%, transparent); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--c-sale); }
.field-error { font-size: .82rem; color: var(--c-sale); }
.input-group { display: flex; align-items: stretch; border: 1px solid var(--c-border); border-radius: var(--r-input); background: var(--c-bg); }
.input-group:focus-within { border-color: var(--c-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-text) 12%, transparent); }
.input-group .input { border: 0; box-shadow: none; }
.input-group:has([aria-invalid="true"]) { border-color: var(--c-sale); }
.notice:focus { outline: none; }
.notice--error:focus-visible { outline: 2px solid var(--c-sale); outline-offset: 2px; }
.input-group__addon { display: flex; align-items: center; padding-inline: 1rem .25rem; color: var(--c-muted); font-size: .95rem; white-space: nowrap; }
.choice { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem; border: 1px solid var(--c-border); border-radius: var(--r-card); cursor: pointer; transition: border-color .15s, background-color .15s; }
.choice:has(input:checked) { border-color: var(--c-text); background: var(--c-bg-alt); }
.choice input { margin-top: .2rem; accent-color: var(--c-text); width: 18px; height: 18px; flex: none; }
.choice__body { flex: 1; min-width: 0; }
.choice__title { display: flex; justify-content: space-between; gap: 1rem; font-weight: 500; }
.notice { padding: 1rem 1.1rem; border-radius: var(--r-card); background: var(--c-bg-alt); font-size: .92rem; }
.notice--error { background: color-mix(in srgb, var(--c-sale) 9%, var(--c-bg)); color: color-mix(in srgb, var(--c-sale) 80%, var(--c-text)); }
.notice--error ul { margin: .35rem 0 0; padding-inline-start: 1.2em; }
.notice--success { background: color-mix(in srgb, var(--c-success) 10%, var(--c-bg)); }

/* Quantité */
.qty { display: inline-flex; align-items: center; height: 48px; border: 1px solid var(--c-border); border-radius: var(--r-btn-qty); background: var(--c-bg); }
.qty__btn { width: 44px; height: 100%; border: 0; background: none; display: flex; align-items: center; justify-content: center; border-radius: inherit; }
.qty__btn:hover { background: var(--c-bg-alt); }
.qty__btn svg { width: 14px; height: 14px; }
.qty__input { width: 3rem; height: 100%; text-align: center; border: 0; background: none; -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
span.qty__input { display: inline-flex; align-items: center; justify-content: center; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { height: 44px; }
.qty--sm .qty__btn { width: 40px; }
.qty--sm .qty__input { width: 2.2rem; }

/* Médias */
.media { position: relative; overflow: hidden; background: var(--c-bg-alt); border-radius: var(--r-card); aspect-ratio: var(--ratio, auto); }
.media > img, .media > svg, .media > video, .media > iframe { width: 100%; height: 100%; object-fit: cover; }
.media > svg.placeholder { fill: color-mix(in srgb, var(--c-text) 22%, transparent); background: var(--c-bg-alt); }
.media--contain > img { object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.ratio-portrait { --ratio: 4 / 5; } .ratio-square { --ratio: 1 / 1; } .ratio-landscape { --ratio: 4 / 3; } .ratio-tall { --ratio: 2 / 3; } .ratio-wide { --ratio: 16 / 9; }
.placeholder { width: 100%; height: 100%; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: .35em; height: 26px; padding: 0 .65rem; border-radius: 999px; font-size: .75rem; font-weight: 500; line-height: 1; background: var(--c-bg); color: var(--c-text); border: 1px solid var(--c-border); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--in_stock { color: var(--c-success); }
.badge--low, .badge--last { color: var(--c-warning); }
.badge--out { color: var(--c-muted); }
.badge--plain::before { display: none; }

/* Prix */
.price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .55rem; font-variant-numeric: tabular-nums; }
.price__current { font-weight: 500; }
.price__compare { color: var(--c-muted); text-decoration: line-through; font-size: .9em; }
.price--sale .price__current { color: var(--c-sale); }
.price__from { color: var(--c-muted); font-size: .85em; }
.price--lg { font-size: 1.35rem; }

/* Carte produit */
.card { position: relative; display: flex; flex-direction: column; text-align: var(--card-align); color: inherit; }
.card__media { position: relative; display: block; overflow: hidden; background: var(--c-bg-alt); border-radius: var(--r-card); aspect-ratio: var(--card-ratio); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: var(--card-fit); transition: opacity .45s, transform .9s cubic-bezier(.2, .7, .2, 1); }
.card--contain .card__media img { padding: 7%; mix-blend-mode: multiply; }
.card__media .card__img2 { opacity: 0; }
@media (hover: hover) {
  .card:hover .card__img2 { opacity: 1; }
  .card:hover .card__media img:only-of-type, .card:hover .card__media img.card__img1:last-child { transform: scale(1.04); }
}
.card__badges { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; display: flex; gap: 6px; z-index: 1; }
.card__body { padding-top: .75rem; display: grid; gap: .2rem; }
.card--boxed { background: var(--c-bg-alt); border-radius: var(--r-card); }
.card--boxed .card__body { padding: .85rem 1rem 1rem; }
.card__title { font-size: .95rem; font-weight: 400; line-height: 1.35; margin: 0; letter-spacing: 0; text-transform: none; font-family: var(--font-body); }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__meta { font-size: .8rem; color: var(--c-muted); }
.card .price { font-size: .92rem; }
.card__quick { position: relative; z-index: 2; margin-top: .6rem; }
.card--placeholder .card__media svg { position: absolute; inset: 0; }

/* Collections (tuiles) */
.tile { position: relative; display: block; text-decoration: none; color: inherit; }
.tile .media { aspect-ratio: var(--ratio, 1 / 1); }
.tile .media img { transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) { .tile:hover .media img { transform: scale(1.04); } }
.tile__label { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .7rem; font-weight: 500; }
.tile--overlay .tile__label { position: absolute; inset-inline: 12px; bottom: 12px; margin: 0; padding: .7rem 1rem; border-radius: calc(var(--r-card) * .75); background: rgb(255 255 255 / .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #111; }

/* En-tête */
.announcement { background: var(--c-ann-bg); color: var(--c-ann-text); font-size: .82rem; }
.announcement__inner { display: flex; align-items: center; justify-content: center; min-height: 40px; gap: 1rem; text-align: center; }
.announcement__track { display: grid; flex: 1; min-width: 0; }
.announcement__item { grid-area: 1 / 1; display: flex; justify-content: center; align-items: center; gap: .5rem; padding: .45rem 0; transition: opacity .5s, transform .5s; }
.announcement__item[aria-hidden="true"] { opacity: 0; transform: translateY(40%); pointer-events: none; }
.announcement__item { position: relative; }
.announcement__item a { text-decoration: underline; }
.announcement__item a::after { content: ""; position: absolute; inset: 0; }
.announcement__social { display: none; gap: .25rem; }
@media (min-width: 990px) { .announcement__social { display: flex; } .announcement__social .icon-btn { width: 32px; height: 32px; } .announcement__social .icon { width: 16px; height: 16px; } }
.header-wrap { position: relative; z-index: 30; background: var(--c-bg); }
.header-wrap.is-sticky { position: sticky; top: 0; }
.header-wrap.is-scrolled { box-shadow: 0 1px 0 var(--c-border); }
.header { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "toggle logo end"; align-items: center; min-height: var(--header-h); gap: .5rem; }
.header__toggle { grid-area: toggle; display: flex; align-items: center; margin-inline-start: -10px; }
.header__logo { grid-area: logo; justify-self: center; display: inline-flex; align-items: center; text-decoration: none; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; letter-spacing: .02em; margin: 0; line-height: 1; min-height: 44px; }
.header__logo img { width: auto; max-height: var(--logo-h, 32px); max-width: 200px; object-fit: contain; }
.header__nav { grid-area: nav; display: none; }
.header__end { grid-area: end; display: flex; align-items: center; justify-content: flex-end; gap: .1rem; margin-inline-end: -10px; }
.header--bordered .header { border-bottom: 1px solid var(--c-border); }
.header-wrap.header--bordered { border-bottom: 1px solid var(--c-border); }
.header-wrap.header--bordered .header { border-bottom: 0; }
.header__count { position: absolute; top: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--c-text); color: var(--c-bg); font-size: .68rem; font-weight: 600; line-height: 18px; text-align: center; }
.header__count[data-count="0"] { display: none; }
@media (min-width: 990px) {
  .header__toggle { display: none; }
  .header__nav { display: flex; }
  .header--center .header { grid-template-areas: "nav logo end"; }
  .header--left .header { grid-template-columns: auto 1fr auto; grid-template-areas: "logo nav end"; }
  .header--left .header__logo { justify-self: start; }
  .header--left .header__nav { justify-content: center; }
}
.nav { display: flex; gap: .25rem 1.6rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-block; padding: .65rem 0; text-decoration: none; font-size: .95rem; position: relative; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: .45rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.drawer-menu > summary, .search-modal > summary { list-style: none; }
.drawer-menu > summary::-webkit-details-marker, .search-modal > summary::-webkit-details-marker { display: none; }
.menu-panel { position: fixed; inset: 0 0 var(--modo-preview-bar-height, 0px); z-index: 60; display: flex; }
.menu-panel__veil { position: absolute; inset: 0; background: rgb(0 0 0 / .35); }
.menu-panel__inner { position: relative; width: min(88vw, 380px); height: 100%; background: var(--c-bg); padding: 1rem var(--gutter) 2rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1.5rem; animation: slide-in .3s cubic-bezier(.2, .7, .2, 1); }
.menu-panel__head { display: flex; justify-content: space-between; align-items: center; }
.menu-panel .nav { flex-direction: column; gap: 0; }
.menu-panel .nav a { font-size: 1.35rem; font-family: var(--font-heading); padding: .6rem 0; }
.menu-panel .nav a::after { display: none; }
.menu-panel__foot { margin-top: auto; display: grid; gap: .75rem; }
@keyframes slide-in { from { transform: translateX(-100%); } to { transform: none; } }
[dir="rtl"] .menu-panel__inner { animation-name: slide-in-rtl; }
@keyframes slide-in-rtl { from { transform: translateX(100%); } to { transform: none; } }
.search-panel { position: fixed; inset: 0 0 var(--modo-preview-bar-height, 0px); z-index: 60; }
.search-panel__inner { position: relative; background: var(--c-bg); padding: 1rem 0 1.5rem; box-shadow: 0 20px 40px -20px rgb(0 0 0 / .25); animation: fade-down .25s ease-out; }
.search-panel form { display: flex; gap: .5rem; align-items: center; }
.search-panel .input { flex: 1; }
@keyframes fade-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Pied de page */
.footer { background: var(--c-footer-bg); color: var(--c-footer-text); --c-muted: color-mix(in srgb, var(--c-footer-text) 66%, var(--c-footer-bg)); --c-border: color-mix(in srgb, var(--c-footer-text) 16%, var(--c-footer-bg)); padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) 1.5rem; font-size: .92rem; }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
.footer__col--wide { grid-column: 1 / -1; }
@media (min-width: 990px) { .footer__grid { grid-template-columns: 1.6fr repeat(var(--fcols, 3), 1fr); gap: 3rem; } .footer__col--wide { grid-column: auto; } }
.footer h2 { font-size: .8rem; font-family: var(--font-body); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; color: var(--c-muted); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.footer li > a { display: inline-flex; align-items: center; min-height: 44px; }
.footer h2 { margin-bottom: .5rem; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--c-border); color: var(--c-muted); font-size: .82rem; }
.footer__payment { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .8rem; border: 1px solid var(--c-border); border-radius: 999px; color: var(--c-footer-text); }
.footer .select { background-color: transparent; color: inherit; min-height: 44px; padding-block: .4rem; width: auto; border-color: var(--c-border); }
.social { display: flex; flex-wrap: wrap; gap: .25rem; }
.stack > .social, .social { margin-inline-start: -12px; }
.social .icon { width: 20px; height: 20px; }

/* Panier latéral */
.drawer { position: fixed; inset: 0 0 var(--modo-preview-bar-height, 0px); z-index: 70; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__veil { position: absolute; inset: 0; background: rgb(0 0 0 / .35); opacity: 0; transition: opacity .3s; }
.drawer.is-open .drawer__veil { opacity: 1; }
.drawer__panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(100%, 440px); background: var(--c-bg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
[dir="rtl"] .drawer__panel { transform: translateX(-100%); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem .75rem 1.25rem; border-bottom: 1px solid var(--c-border); }
.drawer__head h2 { font-size: 1.15rem; margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.drawer__foot { padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-border); display: grid; gap: .75rem; }
.drawer__empty { text-align: center; padding: 3rem 1rem; display: grid; gap: 1rem; justify-items: center; }
.line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: .9rem; align-items: start; padding-block: 1rem; border-bottom: 1px solid var(--c-border); }
.line:first-child { padding-top: 0; }
.line .media { aspect-ratio: 4 / 5; border-radius: calc(var(--r-card) * .6); }
.line__title { font-weight: 500; text-decoration: none; display: block; line-height: 1.3; }
.line__variant { font-size: .82rem; color: var(--c-muted); margin-top: .15rem; }
.line__actions { display: flex; align-items: center; gap: .75rem; margin-top: .6rem; }
.line__remove { position: relative; font-size: .8rem; color: var(--c-muted); }
.line__remove::before { content: ""; position: absolute; inset: -12px -8px; }
.line__remove:hover { color: var(--c-text); }
.line__price { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.is-loading { opacity: .55; pointer-events: none; transition: opacity .2s; }
.totals { display: grid; gap: .5rem; }
.totals__row { display: flex; justify-content: space-between; gap: 1rem; }
.totals__row--total { font-size: 1.15rem; font-weight: 600; padding-top: .75rem; border-top: 1px solid var(--c-border); margin-top: .25rem; }
.free-ship { display: grid; gap: .5rem; font-size: .88rem; }
.free-ship p { display: flex; align-items: center; gap: .5rem; margin: 0; }
.free-ship .icon { width: 18px; height: 18px; color: var(--c-success); }
.drawer__body > .free-ship { margin-bottom: 1.25rem; }
.free-ship__bar { height: 6px; border-radius: 999px; background: var(--c-bg-alt); overflow: hidden; }
.free-ship__bar > span { display: block; height: 100%; width: var(--p, 0%); background: var(--c-success); border-radius: inherit; transition: width .5s; }
.free-ship progress { width: 100%; height: 6px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; background: var(--c-bg-alt); overflow: hidden; }
.free-ship progress::-webkit-progress-bar { background: var(--c-bg-alt); }
.free-ship progress::-webkit-progress-value { background: var(--c-success); border-radius: 999px; }
.free-ship progress::-moz-progress-bar { background: var(--c-success); }

/* WhatsApp flottant */
.wa-float { position: fixed; z-index: 40; bottom: calc(16px + env(safe-area-inset-bottom) + var(--sticky-h, 0px) + var(--modo-preview-bar-height, 0px)); inset-inline-end: 16px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px -8px rgb(0 0 0 / .35); transition: transform .2s, bottom .3s; }
.wa-float--start { inset-inline-end: auto; inset-inline-start: 16px; }
.wa-float:hover { transform: scale(1.06); }
.wa-float .icon { width: 30px; height: 30px; }

/* Fil d'Ariane, pagination */
.breadcrumbs { font-size: .82rem; color: var(--c-muted); margin-bottom: 1rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-inline-end: .4rem; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-text); }
.pagination { display: flex; justify-content: center; margin-top: 2.5rem; }
.pagination ul { list-style: none; display: flex; gap: .35rem; margin: 0; padding: 0; align-items: center; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 .5rem; border-radius: 999px; text-decoration: none; }
.pagination a:hover { background: var(--c-bg-alt); }
.pagination [aria-current="page"] { background: var(--c-text); color: var(--c-bg); }
[dir="rtl"] .pagination .icon { transform: scaleX(-1); }

/* Accordéons */
.accordion { border-bottom: 1px solid var(--c-border); }
.accordion:first-of-type { border-top: 1px solid var(--c-border); }
.accordion > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding-block: .75rem; cursor: pointer; list-style: none; font-weight: 500; }
.accordion > summary::-webkit-details-marker { display: none; }
.accordion > summary .icon { transition: transform .25s; width: 16px; height: 16px; }
.accordion[open] > summary .icon--plus { transform: rotate(45deg); }
.accordion__content { padding-bottom: 1.25rem; color: var(--c-muted); }

/* Apparition au défilement */
.js .reveal-on .section > .container { transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal-on .section:not(.is-in) > .container { opacity: 0; transform: translateY(24px); }
.js .reveal-on main > :first-child .section > .container, .js .reveal-on main > .section:first-child > .container { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal-on .section:not(.is-in) > .container { opacity: 1; transform: none; }
}

/* Barre collante d'achat (page produit) */
.sticky-buy { position: fixed; inset-inline: 0; bottom: var(--modo-preview-bar-height, 0px); z-index: 35; background: var(--c-bg); border-top: 1px solid var(--c-border); padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: .75rem; transform: translateY(calc(110% + var(--modo-preview-bar-height, 0px))); transition: transform .3s; }
.sticky-buy.is-visible { transform: none; }
.sticky-buy__info { flex: 1; min-width: 0; font-size: .85rem; line-height: 1.3; }
.sticky-buy__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
@media (min-width: 990px) { .sticky-buy { display: none; } }

/* Utilitaires JS/no-JS */
.no-js .js-only { display: none !important; }
.js .no-js-only { display: none !important; }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; inset-inline: 16px; bottom: calc(16px + env(safe-area-inset-bottom) + var(--modo-preview-bar-height, 0px)); z-index: 80; max-width: 420px; margin-inline: auto; padding: .85rem 1rem; border-radius: var(--r-card); background: var(--c-text); color: var(--c-bg); font-size: .9rem; box-shadow: 0 12px 30px -10px rgb(0 0 0 / .4); }
.checkout-foot { padding-block: 2rem; display: grid; gap: .5rem; }
.checkout-foot .icon { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; }
/* Arabe : le contenu saisi en français garde sa ponctuation à la bonne place (direction par paragraphe) */
[dir="rtl"] :is(p, li, h1, h2, h3, h4, summary, .card__title, .tile__label, .line__title) { unicode-bidi: plaintext; }
[dir="rtl"] :is(.price > *, .opt__btn, .line__variant, .line__price, .totals__row > *, [data-sticky-price]) { unicode-bidi: isolate; direction: ltr; }
[dir="rtl"] .icon--chevron-left, [dir="rtl"] .icon--chevron-right, [dir="rtl"] .icon--arrow, [dir="rtl"] .icon--return { transform: scaleX(-1); }

/* Bannières (image-banner, slideshow) */
.banner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border-radius: var(--r-card); isolation: isolate; }
.banner-full .banner { border-radius: 0; }
.banner__media { position: relative; grid-area: 1 / 1; min-height: inherit; background: var(--c-bg-alt); }
.banner__media > img, .banner__media > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner__overlay { position: absolute; inset: 0; background: #000; }
.banner__content { grid-area: 1 / 1; position: relative; z-index: 1; display: flex; padding: clamp(1.5rem, 1rem + 3vw, 4rem); }
.banner__box { max-width: 40rem; display: grid; gap: 1rem; }
.banner__box > * { margin: 0; }
.banner__text { font-size: 1.05rem; }
.banner--text-light .banner__content { color: #fff; --c-muted: rgb(255 255 255 / .8); }
.banner--text-light .btn--primary { --b-bg: #fff; --b-fg: #111; --b-bd: #fff; }
.banner--text-light .btn--secondary { --b-fg: #fff; --b-bd: rgb(255 255 255 / .7); }
.banner--text-light .btn--secondary:hover { --b-bg: #fff; --b-fg: #111; }
.banner--h-small { min-height: 340px; } .banner--h-medium { min-height: 480px; } .banner--h-large { min-height: 620px; }
.banner--h-full { min-height: calc(100svh - var(--header-h) - 40px); }
.banner--h-adapt .banner__media > img { position: static; height: auto; }
@media (min-width: 990px) { .banner--h-small { min-height: 420px; } .banner--h-medium { min-height: 600px; } .banner--h-large { min-height: 760px; } }
.banner--pos-top-start .banner__content { align-items: flex-start; justify-content: flex-start; }
.banner--pos-center-start .banner__content { align-items: center; justify-content: flex-start; }
.banner--pos-bottom-start .banner__content { align-items: flex-end; justify-content: flex-start; }
.banner--pos-center .banner__content { align-items: center; justify-content: center; text-align: center; }
.banner--pos-center .btn-row { justify-content: center; }
.banner--pos-bottom-center .banner__content { align-items: flex-end; justify-content: center; text-align: center; }
.banner--pos-bottom-center .btn-row { justify-content: center; }
.banner__img--desktop { display: none; }
@media (min-width: 750px) { .banner__img--mobile { display: none; } .banner__img--desktop { display: block; } }
/* Disposition « côte à côte » : texte sur fond secondaire, photo à droite */
.banner--split { background: var(--c-bg-alt); min-height: 0; }
.banner--split .banner__media { min-height: 300px; aspect-ratio: 4 / 3; }
.banner--split .banner__content { grid-area: auto; color: inherit; align-items: center; justify-content: flex-start; text-align: start; }
.banner--split .btn-row { justify-content: flex-start; }
.banner--split .h0 { font-size: calc(var(--hs-scale) * clamp(2.25rem, 1.4rem + 3.6vw, 3rem)); }
.banner--split .btn--primary { --b-bg: var(--c-btn); --b-fg: var(--c-btn-text); --b-bd: var(--c-btn); }
.banner--split .btn--secondary { --b-fg: var(--c-text); --b-bd: currentColor; }
@media (max-width: 989px) { .banner--split .banner__media { order: -1; } }
@media (min-width: 990px) {
  .banner--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .banner--split .h0 { font-size: calc(var(--hs-scale) * clamp(2.5rem, 1rem + 2.8vw, 4.25rem)); }
  .banner--split .banner__media { grid-area: auto; aspect-ratio: auto; }
  .banner--split .banner__content { grid-area: auto; order: -1; }
}

/* Produit : options, achat, encart livraison (main-product, featured-product) */
.opt { border: 0; margin: 0 0 1.1rem; padding: 0; min-width: 0; }
.opt__legend { padding: 0; margin-bottom: .6rem; font-size: .9rem; font-weight: 500; }
.opt__values { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 44px; padding: .45rem 1rem; border: 1px solid var(--c-border); border-radius: var(--r-btn-qty); background: var(--c-bg); font-size: .9rem; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; user-select: none; }
.opt__btn:hover { border-color: var(--c-text); }
.opt__input:checked + .opt__btn { border-color: var(--c-text); background: var(--c-text); color: var(--c-bg); }
.opt__input:focus-visible + .opt__btn { outline: 2px solid var(--c-text); outline-offset: 2px; }
.opt__input.is-unavailable + .opt__btn { color: var(--c-muted); text-decoration: line-through; border-style: dashed; }
.opt__input.is-unavailable:checked + .opt__btn { background: var(--c-bg-alt); color: var(--c-text); }
.buy-buttons { display: grid; gap: .6rem; }
.product-form { display: grid; gap: .6rem; }
.buy-buttons__qty { display: flex; }
.product-cod-note { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: var(--c-muted); }
.product-cod-note .icon { width: 18px; height: 18px; }
.delivery-box { display: grid; gap: .9rem; padding: 1.1rem 1.2rem; border-radius: var(--r-card); background: var(--c-bg-alt); font-size: .92rem; }
.delivery-box__row { display: grid; grid-template-columns: 22px 1fr; gap: .75rem; align-items: start; }
.delivery-box__row > .icon { margin-top: 1px; }
.delivery-box .select { min-height: 44px; margin-top: .4rem; background-color: var(--c-bg); }
.delivery-box__result { margin-top: .5rem; font-weight: 500; white-space: pre-line; }
.delivery-box__result:empty { display: none; }
.delivery-box__zones { margin: .4rem 0 0; padding: 0; list-style: none; display: grid; gap: .25rem; color: var(--c-muted); font-size: .85rem; }

/* Pages de liste */
.btn-row--center { justify-content: center; }
.page-title { margin-bottom: 1.5rem; }
.empty-state { display: grid; gap: 1rem; justify-items: center; text-align: center; padding: 3rem 1rem; border-radius: var(--r-card); background: var(--c-bg-alt); }
.empty-state > * { margin: 0; }
.collection-hero { display: grid; gap: 1.25rem; margin-bottom: 1.5rem; }
.collection-hero h1 { margin: 0 0 .5rem; }
.collection-hero .rte { max-width: 44rem; }
@media (min-width: 990px) { .collection-hero--image { grid-template-columns: 1fr minmax(0, .8fr); align-items: center; gap: 3rem; } }
.collection-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding-block: .75rem; margin-bottom: 1.25rem; border-block: 1px solid var(--c-border); }
.collection-toolbar p { margin: 0; }
.collection-sort { display: flex; align-items: center; gap: .6rem; }
.collection-sort .select { min-height: 44px; width: auto; padding-block: .4rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: grid; grid-template-columns: 24px 1fr; gap: .8rem; align-items: start; }
.contact-list a { text-decoration: underline; }
.is-locked, .is-locked body { overflow: hidden; }
.drawer__inner { flex: 1; min-height: 0; display: flex; flex-direction: column; }
/* Modification du panier refusée (snippets/cart-error.liquid) */
.main-cart .cart-error { margin-bottom: 1.5rem; }
.drawer__inner > .cart-error { flex: none; margin: 1rem 1.25rem 0; }
/* L'en-tête collant : l'enveloppe de section (classe du schéma ou enveloppe de l'éditeur) colle aussi */
.section-header:has(> .header-wrap.is-sticky), .gc-section:has(> .header-wrap.is-sticky) { position: sticky; top: 0; z-index: 30; }

/* Code promo (snippets/discount-form.liquid) */
.discount { display: grid; gap: .5rem; }
.discount__row { display: flex; gap: .5rem; }
.discount__row .input { flex: 1; min-width: 0; text-transform: uppercase; }
.discount__codes { display: grid; gap: .4rem; }
.discount__code { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.discount__tag { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--c-success); }
.discount__tag .icon { width: 16px; height: 16px; }
.discount__hint, .discount__ok { margin: 0; }
