/* Safwa v3 : maison de mode, éditoriale. Palette du cahier des charges, aucune couleur vive. Mobile d'abord. */
:root {
  --ink: #141210;
  --band: #2A211A;
  --cream: #F5F0E8;
  --beige: #D9CDB8;
  --gold: #A8905F;
  --muted: #6B6155;
  --paper: #FFFFFF;
  --line: #E8E0D3;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, -apple-system, sans-serif;
  --ar: 'Noto Naskh Arabic', 'Jost', sans-serif;
  --gut: 16px;
  --max: 1440px;
  --head-h: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul[role=list], ol[role=list] { list-style: none; margin: 0; padding: 0; }
[lang=ar] { font-family: var(--ar); direction: rtl; }
[hidden] { display: none !important; }
::selection { background: var(--beige); color: var(--ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 3px; }

/* ---------- Typographie ---------- */
.eyebrow { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.kicker { font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; }
.section-title { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.mini-title { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; font-weight: 400; }
.rte p + p { margin-top: 10px; }
.rte a { text-decoration: underline; text-underline-offset: 3px; }
.link-underline { position: relative; display: inline-block; background: none; border: 0; padding: 0 0 3px; cursor: pointer; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; }
.link-underline::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform .5s var(--ease-out); }
.link-underline:hover::after { transform: scaleX(0); transform-origin: right; animation: underline-in .5s .25s var(--ease-out) forwards; }
@keyframes underline-in { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
.link-light { position: relative; color: var(--cream); font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; padding-bottom: 5px; }
.link-light::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; opacity: .7; transition: transform .6s var(--ease-out); transform-origin: left; }
.link-light:hover::after { transform: scaleX(.35); }

/* Mots révélés (repris de A02 Titre Révélé) */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .08em .08em 0; margin: 0 -.08em -.08em 0; }
.w > span { display: inline-block; will-change: transform; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 50px; padding: 13px 30px; border: 1px solid var(--ink); background: var(--ink); color: var(--cream); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; cursor: pointer; transition: background .35s, color .35s, transform .35s var(--ease); }
.btn:active { transform: scale(.985); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--cream); }
.btn--order { width: 100%; padding: 15px 18px; font-size: 12px; letter-spacing: .18em; }
.btn--order:hover { background: var(--band); }
.btn--order .btn__ar { font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--beige); }
.btn--order[disabled] { background: var(--cream); border-color: var(--beige); color: var(--muted); cursor: not-allowed; }
.btn--small { min-height: 44px; padding: 8px 20px; font-size: 11px; }

/* ---------- Bandeau ---------- */
.announce { background: var(--band); color: var(--cream); text-align: center; font-size: 11.5px; letter-spacing: .06em; }
.announce__track { display: grid; }
.announce__msg { grid-area: 1 / 1; padding: 8px var(--gut); opacity: 0; transform: translateY(6px); transition: opacity .6s, transform .6s var(--ease-out); pointer-events: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 12px; }
.announce__msg.is-active { opacity: 1; transform: none; pointer-events: auto; }
.announce__msg a { display: contents; }
.announce__ar { font-size: 12.5px; opacity: .85; }

/* ---------- En-tête ---------- */
.section-header { position: sticky; top: 0; z-index: 40; }
.header { position: relative; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); transition: background .45s, color .45s, border-color .45s, transform .45s var(--ease); }
.header.is-hidden { transform: translateY(-100%); }
.header__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--head-h); padding: 0 calc(var(--gut) - 10px); max-width: var(--max); margin: 0 auto; }
.header__left { display: flex; align-items: center; }
.header__nav { display: none; }
.header__logo { justify-self: center; display: grid; }
.header__logo-img { grid-area: 1 / 1; height: var(--logo-h, 40px); width: auto; transition: opacity .45s; }
.header__logo-img--light { opacity: 0; }
/* Logo recoloré (réglage « Couleur du logo ») : le fichier sert de masque, la couleur vient du thème */
.header__logo-tint { display: block; height: var(--logo-h, 40px); aspect-ratio: var(--logo-ratio, 1.78); background-color: var(--logo-color, #5A3A26); -webkit-mask: var(--logo-url) center / contain no-repeat; mask: var(--logo-url) center / contain no-repeat; transition: background-color .45s; }
.header__logo-text { font-family: var(--serif); font-size: 25px; letter-spacing: .14em; text-transform: uppercase; }
.header__icons { justify-self: end; display: flex; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: inherit; }
/* Transparent sur la bannière d'accueil */
.section-header:has(.header--overlay) { margin-bottom: calc(var(--head-h) * -1); }
.header--overlay:not(.is-solid) { background: transparent; color: var(--cream); border-color: transparent; }
.header--overlay:not(.is-solid) .header__logo-img--light { opacity: 1; }
.header--overlay:not(.is-solid) .header__logo-img--dark:has(+ .header__logo-img--light) { opacity: 0; }
/* Sans logo clair, le logo foncé passe en crème sur la bannière pour ne pas disparaître */
.header--overlay:not(.is-solid) .header__logo-img--dark:only-child { filter: brightness(0) invert(.94) sepia(.12); }
.header.is-solid { box-shadow: 0 1px 0 var(--line); }

/* Menu ordinateur et menu déroulant à photos */
.nav { display: flex; gap: 30px; }
.nav__link { display: block; padding: 22px 0; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; position: relative; }
.nav__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 16px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.nav__item:hover .nav__link::after, .nav__link[aria-current]::after { transform: scaleX(1); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(20,18,16,.25); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .35s, transform .45s var(--ease-out), visibility 0s .35s; }
.nav__item--mega:hover .mega, .nav__item--mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; transition-delay: .08s, .08s, 0s; }
.mega__inner { max-width: var(--max); margin: 0 auto; padding: 34px 40px 40px; display: grid; grid-template-columns: 1fr 280px 280px; gap: 28px; }
.mega__links li a { display: inline-block; padding: 7px 0; font-family: var(--serif); font-size: 24px; line-height: 1.2; transition: color .3s, transform .4s var(--ease-out); }
.mega__links li a:hover { color: var(--gold); transform: translateX(6px); }
.mega__all a { font-family: var(--sans) !important; font-size: 11px !important; letter-spacing: .22em; text-transform: uppercase; margin-top: 10px; border-bottom: 1px solid currentColor; }
.mega__tile { display: grid; gap: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.mega__tile img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

/* ---------- Panneaux latéraux ---------- */
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(460px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; padding: 0; background: var(--paper); color: var(--ink); transform: translateX(100%); transition: transform .55s var(--ease-out); }
.drawer--left { inset: 0 auto 0 0; transform: translateX(-100%); }
.drawer[open] { transform: none; }
.drawer.is-closing { transform: translateX(100%); }
.drawer--left.is-closing { transform: translateX(-100%); }
.drawer::backdrop { background: rgba(20, 18, 16, .4); backdrop-filter: blur(2px); }
.drawer__inner { padding: 14px var(--gut) 40px; height: 100%; overflow-y: auto; display: flex; flex-direction: column; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; min-height: 48px; }
.drawer__title { font-family: var(--serif); font-size: 26px; }
.drawer__close { width: 44px; height: 44px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; font-weight: 300; }
.mnav__item { border-bottom: 1px solid var(--line); }
.mnav__item > a, .mnav__group summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-family: var(--serif); font-size: 26px; line-height: 1.15; cursor: pointer; list-style: none; }
.mnav__group summary::-webkit-details-marker { display: none; }
.mnav__group summary span { font-family: var(--sans); font-size: 18px; transition: transform .3s; }
.mnav__group[open] summary span { transform: rotate(45deg); }
.mnav__group ul { padding: 0 0 14px; }
.mnav__group li a { display: block; padding: 7px 0; font-size: 14px; letter-spacing: .04em; color: var(--muted); }
.mnav__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 22px 0; }
.mnav__tile { display: grid; gap: 8px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; }
.mnav__tile img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.mnav__foot { margin-top: auto; display: grid; gap: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 20px; }

/* ---------- Recherche plein écran ---------- */
.search { position: fixed; inset: 0 0 auto 0; margin: 0; width: 100%; max-width: 100%; max-height: 100dvh; border: 0; padding: 0; background: var(--paper); color: var(--ink); transform: translateY(-100%); transition: transform .55s var(--ease-out); }
.search[open] { transform: none; }
.search.is-closing { transform: translateY(-100%); }
.search::backdrop { background: rgba(20, 18, 16, .35); }
.search__inner { max-width: 1100px; margin: 0 auto; padding: 14px var(--gut) 34px; }
.search__form { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--ink); }
.search__input { flex: 1; border: 0; background: none; font-family: var(--serif); font-size: 28px; padding: 14px 0; min-width: 0; }
.search__input:focus { outline: none; }
.search__results { padding-top: 20px; display: grid; gap: 14px; }
.search__hint { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.search__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.search__chips a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); font-size: 13px; }
.search__chips a:hover { border-color: var(--ink); }
.search__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.search__item { display: grid; gap: 4px; font-size: 13px; }
.search__item img { aspect-ratio: 3 / 4; object-fit: contain; width: 100%; background: var(--cream); }
.search__price { color: var(--muted); }

/* ---------- Guide des tailles ---------- */
.sg-wrap { overflow-x: auto; }
.sg { width: 100%; border-collapse: collapse; font-size: 14px; text-align: center; }
.sg thead th { background: var(--ink); color: var(--cream); font-weight: 400; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; padding: 12px 6px; }
.sg tbody th, .sg td { padding: 13px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sg tbody th { font-weight: 500; text-align: left; padding-left: 10px; }
.sg-unit { margin-top: 12px; font-size: 12px; color: var(--muted); }
.sg-note { margin-top: 6px; font-size: 14px; }
.sg-how { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.sg-figure { width: 90px; height: auto; color: var(--muted); }
.sg-steps { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.sg-steps strong { color: var(--ink); font-weight: 500; }

/* ---------- Bannière ---------- */
.hero { position: relative; min-height: 100svh; display: grid; overflow: hidden; background: var(--band); color: var(--cream); isolation: isolate; }
.hero--large { min-height: 72svh; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media picture { display: contents; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.hero__img--empty { background: linear-gradient(160deg, #4a3a2d, var(--band)); }
.hero__media canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__media canvas.is-ready { opacity: 1; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,16,.5) 0%, rgba(20,18,16,.18) 12%, rgba(20,18,16,0) 26%, rgba(20,18,16,0) 45%, rgba(20,18,16,.62) 100%); }
.hero__content { align-self: end; display: grid; justify-items: start; gap: 14px; padding: 0 var(--gut) 64px; max-width: 900px; }
.hero--center .hero__content { align-self: center; justify-self: center; justify-items: center; text-align: center; padding-bottom: 0; }
.hero--center .hero__shade { background: rgba(20,18,16,.42); }
.hero__title { font-family: var(--serif); font-size: clamp(46px, 13.5vw, 118px); line-height: .96; letter-spacing: -.012em; text-shadow: 0 2px 30px rgba(20,18,16,.25); }
.hero__ar { font-size: 17px; color: var(--beige); }
.hero__scroll { position: absolute; left: 50%; bottom: 18px; width: 1px; height: 40px; background: rgba(245,240,232,.35); overflow: hidden; }
.hero__scroll span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--cream); animation: scroll-hint 2.2s var(--ease) infinite; }
@keyframes scroll-hint { to { top: 110%; } }
.hero--center .hero__scroll, .hero--large .hero__scroll { display: none; }

/* ---------- Blocs ---------- */
.block { padding: 56px 0 8px; max-width: var(--max); margin: 0 auto; }
.block-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 0 var(--gut); margin-bottom: 22px; }
.block-head__side { display: flex; align-items: center; gap: 22px; }

/* Vignettes de catégories */
.tiles { display: grid; grid-auto-flow: column; grid-auto-columns: 68vw; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--gut); scroll-padding: 0 var(--gut); }
.tiles::-webkit-scrollbar, .rail::-webkit-scrollbar, .gallery::-webkit-scrollbar { display: none; }
.tiles-section--2 .tiles { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; padding: 0; gap: 2px; }
.tile { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; scroll-snap-align: start; background: var(--band); color: var(--cream); isolation: isolate; }
.tiles-section--2 .tile { aspect-ratio: 4 / 5; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
.tile:hover img { transform: scale(1.045); }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(20,18,16,.5)); z-index: 0; }
.tile__label { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1; font-family: var(--serif); font-size: 28px; line-height: 1.05; display: grid; gap: 6px; }
.tile__label em { font-style: normal; font-family: var(--sans); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; opacity: .85; }
.tile__empty { width: 100%; height: 100%; background: linear-gradient(160deg, #5a4838, #3a2d23); }

/* Carrousel de produits */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 64vw; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--gut); scroll-padding: 0 var(--gut); overscroll-behavior-x: contain; }
.rail > .card { scroll-snap-align: start; }
.carousel__arrows { display: none; gap: 6px; }
.carousel__arrow { width: 42px; height: 42px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 15px; transition: border-color .3s, background .3s, color .3s; }
.carousel__arrow:hover { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.carousel__arrow[disabled] { opacity: .3; pointer-events: none; }
.carousel__progress { margin: 22px var(--gut) 0; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.carousel__progress span { position: absolute; left: 0; top: 0; bottom: 0; width: 20%; background: var(--ink); transition: transform .3s var(--ease); }

/* Cartes produit */
.card { position: relative; }
.card__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--cream); }
.card__img { width: 100%; height: 100%; object-fit: contain; transition: transform 1.4s var(--ease-out), opacity .7s var(--ease); }
.card__img--alt { position: absolute; inset: 0; opacity: 0; background: var(--cream); }
.card__img--empty { background: linear-gradient(160deg, #e9e1d4, #d6cab7); }
@media (hover: hover) {
  .card__link:hover .card__img--alt { opacity: 1; }
  .card__link:hover .card__img { transform: scale(1.03); }
  .card__link:hover .card__cta { opacity: 1; transform: none; }
}
.card__badge { position: absolute; top: 10px; left: 10px; }
.card__cta { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 11px; background: rgba(255,255,255,.94); text-align: center; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease-out); }
.card__info { padding: 12px 2px 20px; display: grid; gap: 2px; }
.card__vendor { font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.card__title { font-size: 14px; line-height: 1.35; font-weight: 400; }
.card__price { font-size: 13.5px; color: var(--muted); }
.card__price s { color: #a99f93; margin-right: 6px; }
.card__swatches { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.card__swatches span { width: 10px; height: 10px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(20,18,16,.15); }
.card__swatches em { font-style: normal; font-size: 11px; color: var(--muted); }

/* Badges : un seul par produit */
.badge { display: inline-block; padding: 5px 9px; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; line-height: 1.2; }
.badge--new { background: var(--paper); color: var(--ink); }
.badge--low { background: var(--gold); color: var(--ink); }
.badge--archives { background: var(--paper); color: var(--muted); border: 1px solid var(--beige); }
.badge--soldout { background: var(--ink); color: var(--cream); }

/* Photo et texte */
.split { display: grid; margin-top: 56px; }
.split--cream { background: var(--cream); }
.split__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--band); }
.split__media img { width: 100%; height: 115%; object-fit: cover; }
.split__body { padding: 40px var(--gut) 52px; display: grid; gap: 18px; align-content: center; justify-items: start; }
.split__title { font-family: var(--serif); font-size: clamp(40px, 11vw, 72px); line-height: 1; letter-spacing: .02em; }
.split__text { color: var(--muted); max-width: 44ch; font-size: 15px; }

/* Lookbook à points */
.lookbook { position: relative; margin-top: 56px; color: var(--cream); isolation: isolate; }
.lookbook__media { position: relative; min-height: 120vw; overflow: hidden; background: var(--band); }
.lookbook__img { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; object-position: 50% 25%; }
.lookbook__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,16,0) 40%, rgba(20,18,16,.6)); pointer-events: none; }
.lookbook__text { position: absolute; left: var(--gut); right: var(--gut); bottom: 40px; display: grid; justify-items: start; gap: 12px; pointer-events: none; }
.lookbook__text a { pointer-events: auto; }
.lookbook__title { font-family: var(--serif); font-size: clamp(36px, 10vw, 76px); line-height: 1; }
.spot { position: absolute; left: var(--x); top: var(--y); z-index: 2; }
.spot__dot { position: relative; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 0; background: rgba(255,255,255,.28); backdrop-filter: blur(4px); cursor: pointer; }
.spot__dot::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: var(--paper); }
.spot__dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.8); animation: spot-pulse 2.4s var(--ease) infinite; }
@keyframes spot-pulse { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.spot__card { position: absolute; left: 22px; top: -30px; display: grid; grid-template-columns: 56px 150px; gap: 10px; align-items: center; padding: 8px; background: var(--paper); color: var(--ink); box-shadow: 0 18px 40px -18px rgba(20,18,16,.45); font-size: 12.5px; line-height: 1.35; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .35s, transform .45s var(--ease-out), visibility 0s .35s; }
.spot__card img { width: 56px; aspect-ratio: 3 / 4; object-fit: cover; }
.spot__card em { display: block; font-style: normal; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.spot__card strong { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }
.spot.is-open .spot__card { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.spot--left .spot__card { left: auto; right: 22px; }

/* Showroom */
.showroom { display: grid; background: var(--cream); margin-top: 56px; }
.showroom__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--band); }
.showroom__media img { width: 100%; height: 100%; object-fit: cover; }
.showroom__body { padding: 36px var(--gut) 44px; display: grid; gap: 12px; align-content: center; }
.showroom__title { font-family: var(--serif); font-size: 44px; line-height: 1; }
.showroom__text, .showroom__hours { color: var(--muted); }
.showroom__links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 8px; }

/* Réassurance */
.reassure-section { background: var(--cream); }
.reassure { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--cream); }
.reassure__item { text-align: center; padding: 20px 6px; display: grid; justify-items: center; align-content: start; gap: 6px; }
.reassure__item + .reassure__item { border-left: 1px solid var(--line); }
.reassure__icon { color: var(--gold); font-size: 14px; line-height: 1; }
.reassure__title { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; line-height: 1.45; }
.reassure__text { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.reassure__ar { font-size: 14px; color: var(--muted); }
.reassure--detail { grid-template-columns: 1fr; }
.reassure--detail .reassure__item + .reassure__item { border-left: 0; border-top: 1px solid var(--line); }
.reassure--detail .reassure__title { font-size: 11.5px; }

/* Étapes et FAQ */
.steps { counter-reset: s; display: grid; padding: 52px var(--gut); max-width: var(--max); margin: 0 auto; }
.steps__title, .faq__title { font-family: var(--serif); font-size: 32px; text-align: center; margin-bottom: 22px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); width: 34px; height: 34px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 18px; color: var(--gold); }
.step strong { display: block; font-weight: 500; font-size: 14.5px; }
.step span { color: var(--muted); font-size: 14px; }
.faq { max-width: 760px; margin: 0 auto; padding: 20px var(--gut) 56px; }
.accordion { border-bottom: 1px solid var(--line); }
.accordion:first-of-type { border-top: 1px solid var(--line); }
.accordion__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 0; cursor: pointer; list-style: none; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; }
.faq .accordion__head { text-transform: none; letter-spacing: .01em; font-size: 15.5px; }
.accordion__head::-webkit-details-marker { display: none; }
.accordion__head span { transition: transform .35s var(--ease); font-size: 17px; font-weight: 300; }
.accordion[open] .accordion__head span { transform: rotate(45deg); }
.accordion__body { padding-bottom: 18px; font-size: 14.5px; color: var(--muted); }

/* Lien archives (ancien bloc, toujours disponible) */
.archives-cta { background: var(--cream); text-align: center; padding: 38px var(--gut); display: grid; justify-items: center; gap: 10px; margin-top: 30px; }
.archives-cta__text { color: var(--muted); }
.feature { background: var(--cream); scroll-margin-top: 80px; }
.feature__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--band); }
.feature__img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { padding: 32px var(--gut) 36px; }
.feature__brand { font-family: var(--serif); font-size: 42px; letter-spacing: .08em; line-height: 1.1; margin-bottom: 14px; }
.feature__text { color: var(--muted); margin-bottom: 24px; }
.grid-section { padding: 48px 0 8px; max-width: var(--max); margin: 0 auto; }
.grid-section > .section-title { text-align: center; margin-bottom: 22px; }

/* ---------- Grilles ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 6px; padding: 0 6px; }
.grid__empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px var(--gut); }
.grid[data-cols="1"] { grid-template-columns: 1fr; padding: 0; }
.grid[data-cols="1"] .card__info { padding: 12px var(--gut) 26px; }
.grid__insert { grid-column: 1 / -1; position: relative; aspect-ratio: 4 / 5; overflow: hidden; color: var(--cream); background: var(--band); margin: 10px -6px; }
.grid__insert img { width: 100%; height: 100%; object-fit: cover; }
.grid__insert-text { position: absolute; left: 20px; bottom: 22px; font-family: var(--serif); font-size: 34px; line-height: 1.05; display: grid; gap: 6px; }
.grid__insert-text em { font-style: normal; font-family: var(--sans); font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; }

/* ---------- Collection ---------- */
.collection { max-width: var(--max); margin: 0 auto; }
.collection__hero { position: relative; padding: 34px var(--gut) 26px; }
.collection__hero--image { min-height: 46svh; display: grid; align-items: end; color: var(--cream); padding: 0; overflow: hidden; background: var(--band); }
.collection__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.collection__hero--image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,16,.05), rgba(20,18,16,.55)); }
.collection__hero--image .collection__intro { position: relative; z-index: 1; padding: 0 var(--gut) 28px; }
.collection__title { font-family: var(--serif); font-size: clamp(42px, 12vw, 88px); line-height: 1; }
.collection__desc { max-width: 52ch; margin-top: 12px; font-size: 14.5px; opacity: .9; }
.crumbs { font-size: 11px; letter-spacing: .08em; color: inherit; opacity: .7; margin-bottom: 14px; }
.crumbs a:hover { text-decoration: underline; }
.toolbar { position: sticky; top: var(--head-h); z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 var(--gut); height: 52px; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.toolbar__btn { background: none; border: 0; padding: 0; cursor: pointer; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; }
.toolbar__count { font-size: 12px; color: var(--muted); }
.toolbar__view { display: flex; gap: 4px; }
.toolbar__view button { display: flex; gap: 2px; align-items: center; height: 30px; padding: 0 6px; background: none; border: 0; cursor: pointer; opacity: .35; }
.toolbar__view button.is-active { opacity: 1; }
.toolbar__view span { width: 6px; height: 12px; border: 1px solid var(--ink); }
.toolbar__view [data-cols="4"] { display: none; }
.filters { gap: 0; }
.filters__group { border: 0; border-bottom: 1px solid var(--line); padding: 16px 0; margin: 0; }
.filters__group legend, .filters__group summary { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; padding: 0; margin-bottom: 10px; list-style: none; }
.filters__group summary::-webkit-details-marker { display: none; }
.filters__values { display: grid; gap: 4px; }
.filters__opt { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; }
.filters__opt input { accent-color: var(--ink); width: 16px; height: 16px; }
.filters__opt small { color: var(--muted); margin-left: auto; }
.filters__opt.is-empty { opacity: .4; }
.filters__price { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13px; }
.filters__actions { margin-top: auto; padding-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; position: sticky; bottom: 0; background: var(--paper); }
.filters__actions .btn { flex: 1; }
.pager { display: flex; justify-content: center; align-items: center; gap: 24px; padding: 40px 0; font-size: 13px; }

/* ---------- Fiche produit ---------- */
.product { max-width: var(--max); margin: 0 auto; }
.product__gallery { position: relative; background: var(--cream); }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 3 / 4; overflow: hidden; border: 0; padding: 0; background: none; cursor: zoom-in; display: block; }
.landing__gallery .gallery__slide { aspect-ratio: 4 / 5; cursor: default; }
.gallery__img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.gallery__img--empty { background: linear-gradient(160deg, #e9e1d4, #d6cab7); }
.gallery__count { position: absolute; right: 12px; bottom: 12px; padding: 4px 9px; background: rgba(255,255,255,.9); font-size: 11px; letter-spacing: .12em; }
.gallery__dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.gallery__dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(20,18,16,.25); transition: background .3s, transform .3s; }
.gallery__dot.is-active { background: var(--ink); transform: scale(1.3); }
.product__info { padding: 22px var(--gut) 10px; }
.product__title { font-family: var(--serif); font-size: 34px; line-height: 1.1; }
.product__price { font-size: 17px; margin: 8px 0 12px; letter-spacing: .03em; }
.product__badge:empty { display: none; }
.product__badge { margin-bottom: 18px; }
.product__badge .badge--new { border: 1px solid var(--line); }
.product__ask { margin-top: 16px; }
.product__reassure { margin: 22px calc(var(--gut) * -1) 0; }
.product__details { margin-top: 26px; }
.product__app { margin-top: 14px; }
.opt { border: 0; padding: 0; margin: 0 0 22px; }
.opt__legend { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0; }
.opt__legend span { color: var(--ink); }
.opt__values { display: flex; flex-wrap: wrap; gap: 8px; }
.opt__input { position: absolute; opacity: 0; pointer-events: none; }
.opt__pill { min-width: 50px; height: 46px; padding: 0 14px; display: grid; place-items: center; border: 1px solid var(--line); font-size: 13px; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.opt__pill:hover { border-color: var(--ink); }
.opt__input:checked + .opt__pill { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.opt__input.is-unavailable + .opt__pill { color: #b8aea1; background: linear-gradient(to top left, transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px)); }
.opt__swatch { width: 36px; height: 36px; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(20,18,16,.12); cursor: pointer; outline: 1px solid transparent; outline-offset: 3px; transition: outline-color .25s; }
.opt__input:checked + .opt__swatch { outline-color: var(--ink); }
.opt__input:focus-visible + .opt__pill, .opt__input:focus-visible + .opt__swatch { outline: 1.5px solid var(--gold); outline-offset: 3px; }
.sg-link { margin-top: 14px; }
.notify { margin-top: 14px; }
.notify summary { list-style: none; cursor: pointer; }
.notify summary::-webkit-details-marker { display: none; }
.notify__form { display: grid; gap: 10px; margin-top: 14px; }
.notify__ok { margin-top: 10px; font-size: 14px; color: var(--muted); }
.field { display: grid; gap: 6px; }
.field__label { font-size: 12px; color: var(--muted); }
.field__input { width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--beige); background: var(--paper); font: inherit; font-size: 16px; border-radius: 0; }
.field__input:focus { outline: none; border-color: var(--ink); }

/* Zoom plein écran */
.zoom { position: fixed; inset: 0; margin: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; padding: 0; background: var(--paper); }
.zoom::backdrop { background: var(--paper); }
.zoom[open] { animation: zoom-in .45s var(--ease-out); }
@keyframes zoom-in { from { opacity: 0; transform: scale(.98); } }
.zoom__close { position: fixed; top: 10px; right: 10px; z-index: 2; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); font-size: 28px; cursor: pointer; }
.zoom__track { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; }
.zoom__slide { min-height: 100dvh; scroll-snap-align: start; display: grid; place-items: center; overflow: auto; }
.zoom__slide img { width: 100%; height: auto; max-width: 1400px; cursor: zoom-out; }

/* Barre de commande collée en bas du téléphone */
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; gap: 12px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .5s var(--ease-out); }
.sticky-buy.is-on { transform: none; }
.sticky-buy__info { flex: 0 1 auto; min-width: 0; line-height: 1.25; }
.sticky-buy__name { font-size: 12px; color: var(--muted); max-width: 34vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy__price { font-size: 15px; }
.sticky-buy .btn { flex: 1; min-height: 50px; padding: 6px 10px; }
.sticky-buy .btn__ar { font-size: 12px; }
body:has(.sticky-buy.is-on) .wa-float { bottom: calc(86px + env(safe-area-inset-bottom)); }

/* Vues récemment */
.recent { padding-top: 40px; }

/* ---------- Pages de texte ---------- */
.page-text { max-width: 720px; margin: 0 auto; padding: 48px var(--gut) 64px; }
.page-text__title { font-family: var(--serif); font-size: 44px; line-height: 1.05; margin-bottom: 26px; }
.page-text__h2 { font-family: var(--serif); font-size: 26px; margin: 34px 0 10px; scroll-margin-top: 90px; }
.page-text__p { font-size: 15.5px; }
.page-text__p + .page-text__p { margin-top: 10px; }
.page-text__todo { display: inline-block; margin: 12px 0; padding: 4px 10px; background: #F6EBD3; color: #8A6A2E; font-weight: 500; }
.misc__list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.misc__search { display: flex; gap: 8px; margin-bottom: 26px; }

/* ---------- Page de publicité ---------- */
.template-landing main { max-width: 640px; margin: 0 auto; }
.landing__intro { padding: 24px var(--gut) 4px; text-align: center; }
.landing__title { font-family: var(--serif); font-size: 36px; line-height: 1.08; }
.landing__buy { padding: 14px var(--gut) 28px; text-align: center; }
.landing__price { font-family: var(--serif); font-size: 40px; line-height: 1.1; }
.landing__stock { font-size: 13px; color: var(--muted); margin: 4px 0 22px; }
.landing__buy .opt { text-align: left; }
.landing__text { background: var(--cream); text-align: center; color: var(--muted); padding: 28px var(--gut); font-size: 14.5px; }
.landing__sg { margin-top: 14px; }
.landing-foot { background: var(--ink); color: var(--cream); text-align: center; padding: 30px var(--gut) 100px; font-size: 13px; display: grid; justify-items: center; gap: 6px; }
.landing-foot__logo { height: 28px; width: auto; margin-bottom: 8px; }
.landing-foot__name { font-family: var(--serif); font-size: 22px; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Pied de page ---------- */
.footer { background: var(--ink); color: var(--cream); padding: 52px var(--gut) 28px; margin-top: 64px; overflow: hidden; }
.footer__top { max-width: var(--max); margin: 0 auto; display: grid; gap: 40px; }
.footer__head { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer__news-text { font-family: var(--serif); font-size: 26px; line-height: 1.2; max-width: 22ch; margin-bottom: 20px; }
.footer__form { display: flex; border-bottom: 1px solid rgba(245,240,232,.5); max-width: 440px; flex-wrap: wrap; }
.footer__input { flex: 1; min-width: 0; background: none; border: 0; color: var(--cream); font: inherit; font-size: 16px; padding: 12px 0; }
.footer__input::placeholder { color: rgba(245,240,232,.5); }
.footer__input:focus { outline: none; }
.footer__submit { background: none; border: 0; color: var(--cream); font-size: 20px; cursor: pointer; padding: 0 4px; transition: transform .3s var(--ease); }
.footer__submit:hover { transform: translateX(4px); }
.footer__ok, .footer__err { font-size: 13px; color: var(--beige); padding: 10px 0; width: 100%; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 18px; }
.footer__list li { margin: 8px 0; font-size: 14px; }
.footer__btn { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; color: inherit; }
.footer__list a, .footer__btn { transition: color .3s; }
.footer__list a:hover, .footer__btn:hover { color: var(--beige); }
.footer__addr { color: #9c9286; font-size: 13px !important; }
.footer__brand { max-width: var(--max); margin: 40px auto 0; font-family: var(--serif); font-size: 30vw; line-height: .78; letter-spacing: -.02em; color: rgba(245,240,232,.08); text-transform: uppercase; white-space: nowrap; user-select: none; }
.footer__legal { max-width: var(--max); margin: 14px auto 0; padding-top: 18px; border-top: 1px solid #2e2924; font-size: 12px; color: #9c9286; display: grid; gap: 4px; }
.footer__top-btn { justify-self: start; margin-top: 10px; background: none; border: 0; padding: 0; color: var(--cream); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }

/* Bouton WhatsApp flottant */
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--cream); box-shadow: 0 12px 30px rgba(20, 18, 16, .25); transition: transform .4s var(--ease-out), bottom .5s var(--ease-out); }
.wa-float:hover { transform: translateY(-3px); }

/* ---------- Mouvements (activés par safwa-motion.js) ---------- */
.motion [data-fade] { opacity: 0; transform: translateY(18px); }
.motion [data-reveal-img] { clip-path: inset(100% 0 0 0); }
.motion [data-reveal-img] img { transform: scale(1.18); }
.motion .w > span { transform: translateY(110%); }
/* Titres cachés jusqu'à leur découpe en mots, photo de bannière déjà zoomée : rien n'apparaît puis ne disparaît */
.motion [data-split]:not(.is-split) { opacity: 0; }
.motion [data-hero] .hero__img { transform: scale(1.14); }
.motion .card { opacity: 0; transform: translateY(26px); }
.motion .reassure__item { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Tablette ---------- */
@media (min-width: 750px) {
  :root { --gut: 32px; }
  .section-title { font-size: 38px; }
  .tiles { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(4, 1fr); }
  .tiles-section--2 .tiles { grid-template-columns: 1fr 1fr; }
  .rail { grid-auto-columns: calc((100% - 2 * var(--gut) - 2 * 14px) / 3); gap: 14px; }
  .carousel__arrows { display: flex; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 8px 14px; padding: 0 var(--gut); }
  .grid[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
  .grid[data-cols="2"] { grid-template-columns: repeat(3, 1fr); }
  .grid[data-cols="1"] { grid-template-columns: repeat(2, 1fr); padding: 0 var(--gut); }
  .grid__insert { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; margin: 0; }
  .split { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .split--rev .split__media { order: 2; }
  .split__media { aspect-ratio: auto; min-height: 80vh; }
  .split__media img { position: absolute; inset: 0; }
  .split__body { padding: 60px 8%; }
  .lookbook__media { min-height: 92vh; }
  .lookbook__text { left: 6%; bottom: 8%; }
  .showroom { grid-template-columns: 1.4fr 1fr; }
  .showroom__media { aspect-ratio: auto; min-height: 70vh; }
  .showroom__body { padding: 60px 12%; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
  .steps__title { grid-column: 1 / -1; margin-bottom: 30px; }
  .reassure--detail { grid-template-columns: repeat(3, 1fr); }
  .reassure--detail .reassure__item + .reassure__item { border-top: 0; border-left: 1px solid var(--line); }
  .reassure__title { font-size: 11px; }
  .footer__top { grid-template-columns: 1.2fr 2fr; gap: 60px; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { font-size: 18vw; }
  .search__grid { grid-template-columns: repeat(6, 1fr); }
  .toolbar__view [data-cols="4"] { display: flex; }
  .sticky-buy { display: none; }
  .hero__content { padding-bottom: 9vh; padding-left: 5vw; }
}

/* ---------- Ordinateur ---------- */
@media (min-width: 990px) {
  :root { --head-h: 72px; }
  .header__burger { display: none; }
  .header__nav { display: block; }
  .header__bar { padding: 0 32px; }
  .rail { grid-auto-columns: calc((100% - 2 * var(--gut) - 3 * 14px) / 4); }
  .grid[data-cols="2"] { grid-template-columns: repeat(4, 1fr); }
  .grid[data-cols="1"] { grid-template-columns: repeat(3, 1fr); }
  .product { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(380px, 1fr); gap: 0 56px; padding: 0 0 0 0; align-items: start; }
  .gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; overflow: visible; }
  .gallery__slide:first-child { grid-column: 1 / -1; width: 100%; max-height: calc(100vh - 120px); }
  .gallery__count, .gallery__dots { display: none; }
  .product__info { padding: 34px 40px 40px 0; }
  .product__sticky { position: sticky; top: calc(var(--head-h) + 24px); max-width: 460px; }
  .product__reassure { margin: 24px 0 0; }
  .product__title { font-size: 42px; }
  .spot__card { grid-template-columns: 64px 170px; }
  .footer { padding-top: 80px; }
}

/* Pièce épuisée : on retire la mention arabe « paiement après vérification » du bouton */
.btn--order:disabled .btn__ar { display: none; }

/* EasySell a sa propre barre collée : on n'en affiche pas deux */
body:has(#es-st) .sticky-buy { display: none; }

/* ---------- Formulaire EasySell aux couleurs de la maison ----------
   EasySell écrit ses couleurs (rose #ea27b7) en ligne : on les recouvre ici, sans toucher au formulaire lui-même. */
#es-popup-button, #es-st .es-popup-button, #es-st button, #es-st a,
.es-popup-button, .es-popup-button-product,
#es-form button, #es-form [type="submit"], #es-form .es-button,
[class*="es-"] [style*="ea27b7" i], [class*="es-"] [style*="234, 39, 183"],
[id^="es-"][style*="ea27b7" i], [id^="es-"][style*="234, 39, 183"] {
  background: var(--band) !important;
  background-color: var(--band) !important;
  background-image: none !important;
  color: var(--cream) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--sans) !important;
  font-weight: 500 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  font-size: 13px !important;
  transition: background-color .3s var(--ease) !important;
}
#es-popup-button *, .es-popup-button *, #es-form button *, #es-st button * { color: inherit !important; fill: currentColor !important; }
#es-popup-button svg path, .es-popup-button svg path, #es-form button svg path { fill: currentColor !important; stroke: none; }
#es-popup-button:hover, .es-popup-button:hover, #es-form button:hover, #es-form [type="submit"]:hover { background-color: var(--ink) !important; }
#es-popup-button, .es-popup-button { min-height: 54px; display: flex !important; align-items: center; justify-content: center; gap: 10px; }
/* pas de secousse : une maison ne supplie pas qu'on clique */
.es-animation-active, .cart-shaker, [class*="es-animation-"] { animation: none !important; }

/* La fenêtre */
.es-form-container, #es-form-container { font-family: var(--sans) !important; }
#es-form, .es-form {
  border-radius: 0 !important; background: var(--paper) !important; color: var(--ink) !important;
  font-family: var(--sans) !important; box-shadow: 0 30px 80px rgba(20, 18, 16, .18) !important;
}
#es-form .es-form-header, #es-form .es-form-header p:first-child {
  font-family: var(--serif) !important; font-weight: 500 !important; font-size: 24px !important; line-height: 1.2 !important; color: var(--ink) !important;
}
#es-form .es-form-header p + p { font-family: var(--sans) !important; color: var(--muted) !important; }
#es-form .es-input, #es-form .es-form-control, #es-form .es-select, #es-form input:not([type="checkbox"]):not([type="radio"]), #es-form select, #es-form textarea {
  border: 1px solid var(--line) !important; border-radius: 0 !important; background: var(--paper) !important;
  color: var(--ink) !important; font-family: var(--sans) !important; font-size: 15px !important; box-shadow: none !important;
}
#es-form .es-input:focus, #es-form input:focus, #es-form select:focus, #es-form textarea:focus { border-color: var(--gold) !important; outline: none !important; }
#es-form .es-input-group-text, #es-form [class*="input-group-text"], #es-form [class*="icon"] {
  background: var(--cream) !important; border-color: var(--line) !important; border-radius: 0 !important; color: var(--muted) !important;
}
#es-form [class*="icon"] svg, #es-form [class*="icon"] svg path { fill: var(--muted) !important; }
#es-form input[type="radio"], #es-form input[type="checkbox"] { accent-color: var(--band); }
/* récapitulatif, compte à rebours, livraison : fond crème, filet fin, plus de rose */
#es-form [class*="summary"], #es-form [class*="timer"], #es-form [class*="shipping"], #es-form [class*="cart"],
#es-form [style*="fdf6f6" i], #es-form [style*="253, 246, 246"], #es-form [style*="ffacac" i], #es-form [style*="255, 172, 172"] {
  background-color: var(--cream) !important; border-color: var(--line) !important; border-radius: 0 !important;
}
#es-form [style*="8a1300" i], #es-form [style*="138, 19, 0"], #es-form [style*="f4553b" i], #es-form [style*="244, 85, 59"] { color: var(--ink) !important; }
#es-form a { color: var(--ink) !important; }

/* Taille épuisée : EasySell ne regarde pas le stock, on masque son bouton et sa barre */
.btn--soldout { display: none; }
[data-product-form][data-soldout] .btn--soldout { display: flex; opacity: .55; cursor: not-allowed; }
[data-product-form][data-soldout] #es-popup-button, [data-product-form][data-soldout] .es-popup-button,
body:has([data-product-form][data-soldout]) #es-st { display: none !important; }
.pform:has([data-order-button]) .btn--soldout { display: none !important; }

/* Réseaux dans le pied de page */
.footer__socials { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.footer__social { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid currentColor; border-radius: 50%; opacity: .8; transition: opacity .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease); }
.footer__social:hover { opacity: 1; background: var(--cream); color: var(--band); }

/* Réseaux en bas du menu mobile */
.mnav__socials { display: flex; gap: 12px; padding-top: 6px; }
.mnav__social { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.mnav__social:hover { background: var(--band); border-color: var(--band); color: var(--cream); }

/* Réseaux juste après les liens du menu mobile */
.mnav + .mnav__socials { padding: 18px 0 4px; }

/* Showroom sans photo : pas de carré, le texte seul, centré */
.showroom--text { text-align: center; justify-items: center; }
@media (min-width: 750px) { .showroom.showroom--text { grid-template-columns: 1fr; } }
.showroom--text .showroom__links { justify-content: center; }

/* Bande Instagram, bord à bord, en bas de page */
.igwall { padding: 64px 0 0; }
.igwall__head { display: flex; justify-content: center; margin: 0 var(--gut) 26px; }
.igwall__btn { flex-direction: row; gap: 12px; }
.igwall__frame { position: relative; }
.igwall__rail { display: grid; grid-auto-flow: column; grid-auto-columns: 50%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.igwall__rail::-webkit-scrollbar { display: none; }
@media (min-width: 750px) { .igwall__rail { grid-auto-columns: 25%; } }
.igwall__item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--band); scroll-snap-align: start; }
.igwall__item img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 1.2s var(--ease-out); }
.igwall__over { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(42,33,26,.4); color: var(--cream); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; opacity: 0; transition: opacity .4s var(--ease); }
.igwall__item:hover img { transform: scale(1.04); }
.igwall__item:hover .igwall__over, .igwall__item:focus-visible .igwall__over { opacity: 1; }
.igwall__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(245,240,232,.92); color: var(--ink); cursor: pointer; transition: opacity .3s var(--ease); }
.igwall__arrow--prev { left: 14px; } .igwall__arrow--next { right: 14px; }
.igwall__arrow:disabled { opacity: 0; pointer-events: none; }

/* Bouton sous une grille de produits */
.grid-section__more { display: flex; justify-content: center; padding: 28px var(--gut) 0; }
/* Photo et texte sans photo : texte seul, centré */
.split--solo { grid-template-columns: 1fr !important; }
.split--solo .split__body { justify-items: center; text-align: center; max-width: 640px; margin: 0 auto; padding-top: 72px; padding-bottom: 72px; }
/* En-tête transparent : le logo et le menu suivent la diapositive affichée (écru sur photo foncée, couleur du logo sur photo claire) */
.header--overlay:not(.is-solid) .header__logo-tint { background-color: var(--cream); }
body:has(.slides[data-tone=dark]) .header--overlay:not(.is-solid) { color: var(--ink); }
body:has(.slides[data-tone=dark]) .header--overlay:not(.is-solid) .header__logo-tint { background-color: var(--logo-color, #5A3A26); }
