/* Trendy Bags v18 (clair, vert)  : « le nom comme un monument ».
   Direction tirée du skill design-taste-frontend (name-as-monument, ton luxe, Bodoni Moda + Jost, vert-noir et os).
   Charge après main.css. Un seul rayon (0), une seule paire de marges, pas de dégradé, pas d'ombre au repos, pas de filet. */

:root {
  --lx-dark: #161c1a;
  --lx-dark-2: #1f2725;
  --lx-bone: #e3e4dd;
  --lx-ground: #e9eae5;
  --lx-light: #f2f3ee;
  --lx-plate: #dbddd5;
  --lx-ink: #161c1a;
  --lx-muted: #5d645f;
  --lx-muted-d: #a3a9a2;
  --lx-accent: #9fc7b8;
  --lx-green: #3f6f5f;
  --lx-green-d: #335b4e;
  --lx-band: #e8dcc2;
  --tb-margin: clamp(20px, 3vw, 32px);
  --tb-gap: 8px;
  --tb-display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --tb-font: 'Jost', 'Segoe UI', system-ui, sans-serif;
  --tb-ease: cubic-bezier(.22, .61, .36, 1);
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem);

  /* variables du thème YouCan (zones claires) */
  --color-background: var(--lx-ground);
  --color-surface: var(--lx-ground);
  --color-surface-container-lowest: #f3f4f0;
  --color-surface-container-low: var(--lx-ground);
  --color-surface-container: var(--lx-plate);
  --color-surface-container-high: #d0d3ca;
  --color-surface-container-highest: #d0d3ca;
  --color-on-background: var(--lx-ink);
  --color-on-surface: var(--lx-ink);
  --color-on-surface-variant: var(--lx-muted);
  --color-divider: transparent;
  --color-primary: var(--lx-green);
  --color-button: var(--lx-green);
  --color-on-button: var(--lx-bone);
  --color-button-border: var(--lx-green);
  --color-badge: var(--lx-green);
  --color-star: var(--lx-dark);
}

html { scroll-behavior: smooth; }
body, button, input, select, textarea { font-family: var(--tb-font); }
body { background: var(--lx-ground); color: var(--lx-ink); letter-spacing: 0.01em; line-height: 1.6; }
h1, h2, h3, h4, .heading, [class*="title"], [class*="heading"] { font-family: var(--tb-display); font-weight: 500; letter-spacing: -0.02em; }
img { border-radius: 0 !important; }
button, .btn, [class*="button"] { border-radius: 0 !important; text-transform: none !important; letter-spacing: 0.01em !important; box-shadow: none; }
button:hover, .btn:hover { box-shadow: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lx-accent); outline-offset: 3px; }

/* bandeau du haut et en-tête */
[ui-section=promotion-banner], [ui-section=promotion-banner] * { background: var(--lx-plate) !important; color: var(--lx-ink) !important; }
.announcement-banner, [class*="announcement"] { background: var(--lx-plate) !important; color: var(--lx-ink) !important; letter-spacing: 0.02em !important; text-transform: none !important; font-size: var(--step-small); }
#youcan-section--navbar, ui-navbar[ui-layout=navbar] { background: var(--lx-ground) !important; }
#youcan-section--navbar { position: relative !important; z-index: 51; }
[class*="navbar"] a { text-transform: none; letter-spacing: 0.02em; }

/* boutons : une seule forme, rectangle plein */
.tb-btn { box-sizing: border-box; max-width: 100%; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 36px; background: var(--lx-green); color: var(--lx-bone); font-family: var(--tb-font); font-size: var(--step-body); font-weight: 500; letter-spacing: 0.02em; border: 0; text-decoration: none; cursor: pointer; transition: background .25s var(--tb-ease), color .25s var(--tb-ease), transform .15s var(--tb-ease); }
.tb-btn:hover { background: var(--lx-green-d); }
.tb-btn:active { transform: translateY(1px) scale(.985); }
.tb-btn--accent { background: var(--lx-green); color: var(--lx-bone); }
.tb-btn--accent:hover { background: var(--lx-green-d); }

.tb-h2 { margin: 0 0 32px; font-family: var(--tb-display); font-size: var(--step-head); font-weight: 500; line-height: .98; letter-spacing: -0.02em; }

/* ===== accueil : le nom en monument, une photographie ===== */
.tb-hero { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--tb-gap); padding: var(--tb-margin); background: var(--lx-light); color: var(--lx-ink); min-height: calc(100svh - 120px); }
.tb-hero__copy { grid-column: 1 / 8; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 8px 0; }
.tb-hero__mark { margin: 0; font-family: var(--tb-display); font-weight: 500; font-size: clamp(4.5rem, 11.5vw, 12.5rem); line-height: .86; letter-spacing: -0.03em; text-transform: uppercase; color: var(--lx-ink); }
.tb-hero__mark span { display: block; }
.tb-hero__bottom { display: grid; gap: 24px; justify-items: start; }
.tb-hero__text { margin: 0; max-width: 34ch; font-size: var(--step-body); color: var(--lx-ink); }
.tb-hero__photo { grid-column: 8 / 13; margin: 0; align-self: stretch; overflow: hidden; background: var(--lx-plate); max-height: calc(100svh - 160px); aspect-ratio: 4 / 5; justify-self: end; width: 100%; animation: tb-shutter 1.1s var(--tb-ease) both; }
.tb-hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; animation: tb-settle 1.4s var(--tb-ease) both; }
@keyframes tb-shutter { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes tb-settle { from { transform: scale(1.12); } to { transform: scale(1); } }
@media (max-width: 820px) {
  .tb-hero { display: flex; flex-direction: column; gap: 20px; min-height: 0; }
  .tb-hero__copy { display: contents; }
  .tb-hero__mark { font-size: clamp(3.6rem, 21vw, 6rem); order: 1; }
  .tb-hero__bottom { order: 2; width: 100%; }
  .tb-hero__photo { order: 3; max-height: none; aspect-ratio: 4 / 5; }
  .tb-hero__bottom .tb-btn { width: 100%; }
}

/* ===== rayons ===== */
.tb-cats, .tb-products { padding: clamp(96px, 12vw, 176px) var(--tb-margin) 0; }
.tb-cats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--tb-gap); }
.tb-cat { display: block; background: var(--lx-plate); color: var(--lx-ink); text-decoration: none; }
.tb-cat img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; height: auto; }
.tb-cat__name { display: block; padding: 16px 20px 20px; font-family: var(--tb-display); font-size: var(--step-lead); font-weight: 500; }
.tb-cat:hover .tb-cat__name { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
@media (max-width: 820px) {
  .tb-cats__grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .tb-cat:first-child { grid-column: 1 / -1; }
  .tb-cat:first-child img { aspect-ratio: 4 / 3; }
  .tb-cat:nth-child(n+2) img { aspect-ratio: 1 / 1; }
  .tb-cat__name { padding: 12px 14px 16px; }
}

/* ===== collection : toutes les tuiles ont la même taille ===== */
.tb-products__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 32px; }
.tb-products__head .tb-h2 { margin: 0; }
.tb-budget { display: grid; gap: 10px; width: min(420px, 100%); }
.tb-budget[hidden] { display: none; }
.tb-budget__label { font-size: var(--step-body); }
.tb-budget output { font-weight: 500; }
.tb-budget input[type=range] { width: 100%; height: 44px; accent-color: var(--lx-green); background: transparent; }
.tb-products__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px var(--tb-gap); }
.tb-tile { display: flex; flex-direction: column; gap: 14px; margin: 0; min-width: 0; }
.tb-tile[hidden] { display: none; }
.tb-tile__link { display: block; aspect-ratio: 1 / 1; background: var(--lx-plate); overflow: hidden; transition: transform .15s var(--tb-ease); }
.tb-tile__link img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; filter: contrast(1.12) brightness(1.04); }
.tb-tile__link:active { transform: scale(.985); }
.tb-tile__cap { display: flex; flex-direction: column; gap: 4px; }
.tb-tile__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; font-size: var(--step-body); font-weight: 500; line-height: 1.3; color: var(--lx-ink); text-decoration: none; }
.tb-tile__name:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.tb-tile__price { font-size: var(--step-body); color: var(--lx-muted); font-variant-numeric: tabular-nums; }
.tb-products__empty { margin: 24px 0 0; font-size: var(--step-body); }
.tb-products__more { margin: 48px 0 0; }
@media (max-width: 960px) { .tb-products__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .tb-products__grid { grid-template-columns: repeat(2, 1fr); gap: 24px 6px; }
  .tb-tile__name { font-size: var(--step-small); }
  .tb-tile__price { font-size: var(--step-small); }
  .tb-products__more .tb-btn { width: 100%; }
}

/* ===== questions (zone sombre) ===== */
.tb-faq { display: grid; grid-template-columns: 4fr 8fr; gap: 24px var(--tb-gap); align-items: start; margin-top: clamp(96px, 12vw, 176px); padding: clamp(96px, 12vw, 176px) var(--tb-margin); background: var(--lx-plate); color: var(--lx-ink); }
.tb-faq__title { position: sticky; top: 96px; margin: 0; color: var(--lx-ink); }
.tb-faq__list { display: grid; gap: var(--tb-gap); }
.tb-qa { background: var(--lx-light); transition: background .25s var(--tb-ease), color .25s var(--tb-ease); }
.tb-qa summary { position: relative; display: flex; align-items: center; min-height: 72px; padding: 16px 64px 16px 24px; list-style: none; cursor: pointer; font-family: var(--tb-display); font-size: var(--step-lead); font-weight: 500; line-height: 1.2; }
.tb-qa summary::-webkit-details-marker { display: none; }
.tb-qa summary::before, .tb-qa summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 16px; height: 2px; margin-top: -1px; background: currentColor; transition: transform .25s var(--tb-ease); }
.tb-qa summary::after { transform: rotate(90deg); }
.tb-qa[open] { background: var(--lx-accent); color: var(--lx-dark); }
.tb-qa[open] summary::after { transform: rotate(0deg); }
.tb-qa p { margin: 0; padding: 0 24px 24px; max-width: 52ch; font-size: var(--step-body); }
.tb-qa a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 820px) {
  .tb-faq { grid-template-columns: 1fr; }
  .tb-faq__title { position: static; }
  .tb-faq__list { gap: 6px; }
  .tb-qa summary { min-height: 64px; font-size: var(--step-body); }
  .tb-qa p { padding: 0 20px 20px; }
}

/* ===== pied de page : le nom revient, à l'envers des couleurs du début ===== */
.tb-mark { background: var(--lx-ground); color: var(--lx-ink); padding: 0 var(--tb-margin) var(--tb-margin); overflow: hidden; }
.tb-mark__name { margin: 0; font-family: var(--tb-display); font-weight: 500; font-size: clamp(4.5rem, 17.5vw, 19rem); line-height: .84; letter-spacing: -0.03em; text-transform: uppercase; }
.tb-mark__name span { display: block; }
.tb-mark__name span::before { content: attr(data-t); }
@media (max-width: 820px) { .tb-mark__name { font-size: clamp(3.6rem, 22vw, 6.5rem); } }
[ui-layout=footer] { border: 0 !important; background: var(--lx-ground) !important; color: var(--lx-ink) !important; }


/* ===== pages collection et produit (thème de base, repeint) ===== */
[ui-section=single-collection] .cover-area img { display: none !important; }
[ui-section=single-collection] .cover-area, [ui-section=single-collection] .cover-area:has(img) { min-height: 0; padding: 28px 8px 8px; background: transparent; text-align: left; align-items: flex-start; }
[ui-section=single-collection] .cover-area, [ui-section=single-collection] .cover-area .heading, [ui-section=single-collection] .cover-area .description { color: var(--lx-ink) !important; }
[ui-section=single-collection] .cover-area .heading { font-size: var(--step-head); line-height: .98; letter-spacing: -0.02em; }
[ui-block=product] .media { background: var(--lx-plate) !important; border-radius: 0 !important; aspect-ratio: 1 / 1 !important; }
[ui-block=product] .media img { box-sizing: border-box; mix-blend-mode: multiply; filter: contrast(1.12) brightness(1.04); object-fit: contain !important; width: 100%; height: 100%; }
@media (max-width: 820px) {
  [ui-section=single-product] [ui-box=media] img { max-height: 52vh; object-fit: contain; width: 100%; }
}

/* WhatsApp et bouton Commander fixes : plats */
.tb-wa { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 8px; background: var(--lx-green); color: var(--lx-bone); text-decoration: none; padding: 12px 18px; border-radius: 999px; font-weight: 500; font-size: var(--step-body); box-shadow: none; transition: background .2s var(--tb-ease), transform .15s var(--tb-ease); }
.tb-wa svg { width: 22px; height: 22px; fill: currentColor; }
.tb-wa:hover { background: var(--lx-green-d); }
.tb-wa:active { transform: scale(.96); }
@media (max-width: 560px) { .tb-wa span { display: none; } .tb-wa { padding: 14px; } }
.tb-sticky-order { position: fixed; left: 12px; right: 84px; bottom: 14px; z-index: 55; display: none; align-items: center; justify-content: center; background: var(--lx-green); color: var(--lx-bone); border: 0; padding: 15px 10px; font-family: var(--tb-font); font-size: var(--step-body); font-weight: 500; box-shadow: none; cursor: pointer; }
.tb-sticky-order.is-visible { display: flex; }
@media (min-width: 821px) { .tb-sticky-order { display: none !important; } }

/* ===== mouvement : chaque partie entre à son tour, une seule fois ; jamais de contenu caché si le script échoue ===== */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--tb-ease), transform .7s var(--tb-ease); transition-delay: var(--tb-delay, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .tb-hero__photo, .tb-hero__photo img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== page « Autres sacs sur commande » ===== */
.tb-order { padding: 0 var(--tb-margin) clamp(64px, 8vw, 120px); }
.tb-order__intro { margin: 0 0 40px; max-width: 52ch; font-size: var(--step-lead); line-height: 1.4; }
.tb-order__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px var(--tb-gap); }
.tb-order__item { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tb-order__plate { background: var(--lx-plate); aspect-ratio: 4 / 5; overflow: hidden; }
.tb-order__plate img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; filter: contrast(1.12) brightness(1.04); }
.tb-order__name { margin: 0; font-family: var(--tb-display); font-size: var(--step-lead); font-weight: 500; line-height: 1.2; }
.tb-order__item .tb-btn { width: 100%; }
.tb-order__other { margin: 40px 0 0; font-size: var(--step-body); }
.tb-order__other a { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 820px) {
  .tb-order__grid { grid-template-columns: repeat(2, 1fr); gap: 24px 6px; }
  .tb-order__name { font-size: var(--step-body); }
}
@media (max-width: 480px) { .tb-order__grid { grid-template-columns: 1fr; } }

/* les lettres du nom restent en Bodoni (le thème de base imposait une autre police aux <span>) */
.tb-hero__mark, .tb-hero__mark span, .tb-mark__name, .tb-mark__name span, .tb-mark__name span::before { font-family: var(--tb-display) !important; font-weight: 500 !important; }

/* v18 : boutons verts, jamais noirs ; bandeau du haut de la même couleur que la page */
.tb-btn, .tb-btn--accent { background: var(--lx-green) !important; color: var(--lx-bone) !important; }
.tb-btn:hover, .tb-btn--accent:hover { background: var(--lx-green-d) !important; }
.tb-wa, .tb-sticky-order { background: var(--lx-green) !important; color: var(--lx-bone) !important; }
[ui-section=promotion-banner], [ui-section=promotion-banner] *, .announcement-banner, [class*="announcement"] { background: var(--lx-band) !important; color: var(--lx-ink) !important; }
.tb-hero { background: var(--lx-ground) !important; }
.tb-products__more .tb-btn, .tb-order__item .tb-btn { color: var(--lx-bone) !important; }

/* formulaire de commande : pays et region caches (toujours le Maroc), on garde la ville */
ui-linked-fields[data-all-cities] label:has(select[name=country]),
ui-linked-fields[data-all-cities] label:has(select[name=region]) { display: none !important; }
/* v20 : boutons principaux du theme (Passer la commande, etc.) en vert, jamais noirs */
[ui-slot=button][data-variant=primary][data-mode=filled] { background: var(--lx-green) !important; color: var(--lx-bone) !important; border-color: var(--lx-green) !important; }
[ui-slot=button][data-variant=primary][data-mode=filled]:hover { background: var(--lx-green-d) !important; }

/* ===== avis de clientes ===== */
.tb-quotes { padding: clamp(96px, 12vw, 176px) var(--tb-margin) 0; }
.tb-quotes--page { padding-top: 0; }
.tb-quotes__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--tb-gap); }
.tb-quote { margin: 0; padding: 28px 24px; background: var(--lx-plate); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.tb-quote blockquote { margin: 0; font-family: var(--tb-display); font-size: var(--step-lead); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.tb-quote__name { margin: 0; font-size: var(--step-body); color: var(--lx-muted); }
.tb-quotes__note { margin: 24px 0 0; font-size: var(--step-small); color: var(--lx-muted); }
.tb-quotes__more { margin: 32px 0 0; }
@media (max-width: 960px) { .tb-quotes__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tb-quotes__grid { grid-template-columns: 1fr; gap: 6px; } .tb-quote { padding: 22px 18px; } .tb-quotes__more .tb-btn { width: 100%; } }

/* v22 : avis de clientes en liste simple, compacts, sur un fond vert clair */
.tb-quotes { background: #ecd5d0; margin-top: clamp(72px, 10vw, 128px); padding: clamp(36px, 5vw, 64px) var(--tb-margin); }
.tb-quotes--page { margin-top: 0; }
.tb-quotes .tb-h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); margin-bottom: 20px; }
.tb-quotes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; list-style: none; margin: 0; padding: 0; }
.tb-quote { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 16px; background: #faf5f3; }
.tb-quote__head { display: flex; align-items: center; gap: 12px; }
.tb-quote__av { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50% !important; background: var(--lx-green); color: var(--lx-bone); font-family: var(--tb-display); font-size: 1.125rem; font-weight: 500; }
.tb-quote__name { margin: 0; font-size: 0.9375rem; font-weight: 500; line-height: 1.2; color: var(--lx-ink); }
.tb-quote__sub { margin: 2px 0 0; font-size: 0.8125rem; line-height: 1.2; color: var(--lx-muted); }
.tb-quote__stars { margin: 0; font-size: 0.9375rem; line-height: 1; letter-spacing: 2px; color: #b8893c; }
.tb-quote blockquote { margin: 0; font-family: var(--tb-font); font-size: 0.9375rem; font-weight: 400; line-height: 1.5; letter-spacing: 0; color: var(--lx-ink); }
.tb-quotes__more { margin: 16px 0 0; }
.tb-quotes--page .tb-quotes__grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .tb-quotes__grid, .tb-quotes--page .tb-quotes__grid { grid-template-columns: 1fr; } .tb-quotes__more .tb-btn { width: 100%; } }

/* v22b : prix en rouge (comme sur Farfetch) */
:root { --lx-price: #c1272d; }
.tb-tile__price, [ui-block=product] .price, [ui-block=product] .price .original-price, [ui-section=single-product] .price, [ui-section=single-product] .price .original-price, [ui-section=single-product] [class*="price"] { color: var(--lx-price) !important; font-weight: 500; }

/* v22c : prix d'avant barré + prix actuel rouge + pourcentage */
.tb-pricebox { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.tb-pricebox .tb-was { color: var(--lx-muted) !important; font-weight: 400 !important; text-decoration: line-through; font-size: 0.9em; order: 1; }
.tb-pricebox > [data-tb-sale] { order: 2; }
.tb-pricebox .tb-off { order: 3; flex-basis: 100%; color: var(--lx-price); font-size: 0.875rem; font-weight: 500; }

/* v23 : prix actuel en rouge ET en gras */
.tb-pricebox > [data-tb-sale], .tb-tile__price, [ui-block=product] .price .original-price, [ui-section=single-product] [ui-product-item=price] { font-weight: 700 !important; color: var(--lx-price) !important; }
