/* SBstore — indigo, jasmin, encre — boutique de mode.
   Polices : Inter / Inter Display (licence OFL), hébergées sur le site. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap;
  src: url("../fonts/Inter-Regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap;
  src: url("../fonts/Inter-SemiBold.woff") format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 700; font-display: swap;
  src: url("../fonts/InterDisplay-Bold.woff") format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 800; font-display: swap;
  src: url("../fonts/InterDisplay-ExtraBold.woff") format("woff"); }

:root {
  --ink: #1c1b22;
  --blue: #7a5238;
  --blue-deep: #4f3322;
  --jasmine: #e8c872;
  --jasmine-dark: #d4b05a;
  --paper: #faf7f2;
  --white: #ffffff;
  --line: #e6dfd3;
  --muted: #6b665d;
  --ok: #17724a;
  --low: #8a5200;
  --out: #b3261e;
  --radius: 4px;
  --radius-sm: 3px;
  --gutter: 16px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.55 var(--font-body); font-feature-settings: "tnum";
  min-height: 100vh; display: flex; flex-direction: column;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--jasmine-dark); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- Bandeau et en-tête ---------- */
.topbar { background: var(--ink); color: #dfe6f5; font-size: .84rem; }
.topbar .wrap { display: flex; gap: 6px 22px; flex-wrap: wrap; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: var(--jasmine); text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; color: var(--jasmine); }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-row { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.logo { font: 800 1.55rem/1 var(--font-head); letter-spacing: -.04em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: baseline; }
.logo:hover { color: var(--ink); }
.logo-mark { background: var(--blue); color: #fff; padding: 3px 6px 4px; border-radius: 6px; margin-right: 3px; }
.search { flex: 1; display: flex; max-width: 520px; margin-left: auto; }
.search input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); padding: 10px 12px; font: inherit; background: var(--paper); }
.search input:focus { background: #fff; border-color: var(--blue); outline: none; }
.search button { border: 0; background: var(--ink); color: #fff; padding: 0 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; cursor: pointer; display: grid; place-items: center; }
.search button:hover { background: var(--blue-deep); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 10px; border-radius: var(--radius-sm); }
.cart-link:hover { background: var(--paper); color: var(--ink); }
.cart-count { background: var(--jasmine); color: var(--ink); font-size: .78rem; font-weight: 700; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-grid; place-items: center; }
.cart-count.is-empty { background: var(--line); color: var(--muted); }
.cat-nav { border-top: 1px solid var(--line); background: var(--white); }
.cat-nav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cat-nav a { white-space: nowrap; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .94rem; border-bottom: 3px solid transparent; }
.cat-nav a:hover { color: var(--blue); }
.cat-nav a[aria-current="page"] { border-bottom-color: var(--blue); color: var(--blue); }

@media (max-width: 640px) {
  .topbar { font-size: .8rem; }
  .topbar span:nth-child(2) { display: none; }
  .header-row { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
  .cart-link { margin-left: auto; }
  .cart-link .label { display: none; }
}

/* ---------- Boutons et formulaires ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem/1 var(--font-body);
  padding: 14px 22px; border-radius: var(--radius-sm); border: 2px solid transparent; cursor: pointer; text-decoration: none; min-height: 48px; }
.btn-primary { background: var(--jasmine); color: var(--ink); }
.btn-primary:hover { background: var(--jasmine-dark); color: var(--ink); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); color: #fff; }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 9px 14px; min-height: 38px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; text-decoration: underline; cursor: pointer; text-underline-offset: 3px; }
.link-btn:hover { color: var(--blue-deep); }
.link-btn.danger { color: var(--out); }

.field { margin-bottom: 16px; }
.field label, .label-text { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { color: var(--muted); font-size: .88rem; margin-top: 5px; }
.field .error { color: var(--out); font-size: .92rem; margin-top: 5px; font-weight: 600; }
input[type=text], input[type=tel], input[type=number], input[type=password], input[type=search], input[type=email], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #b9c4da; border-radius: var(--radius-sm); padding: 12px; min-height: 46px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 3px solid rgba(31,79,209,.18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--out); }
.row-2 { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--blue); }

/* ---------- Messages ---------- */
.flashes { margin-top: 16px; display: grid; gap: 8px; }
.flash { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid; font-weight: 600; }
.flash-success { background: #e5f4ec; border-color: #9ed1b5; color: #0f5a38; }
.flash-error { background: #fdeceb; border-color: #efb1ad; color: #8f1d17; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 600; z-index: 60;
  transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: var(--out); }

/* ---------- Accueil ---------- */
.hero { position: relative; background: var(--blue-deep); color: #fff; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0 0 0 38%; pointer-events: none;
  background-image: radial-gradient(circle, rgba(244,196,48,.4) 2.2px, transparent 2.8px);
  background-size: 30px 30px; background-position: 0 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 60%); mask-image: linear-gradient(to right, transparent, #000 60%); }
@media (max-width: 720px) {
  .hero::after { inset: auto 0 0 0; height: 56px; -webkit-mask-image: none; mask-image: none; opacity: .8; }
  .hero .wrap { padding-bottom: 84px; }
}
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(36px, 7vw, 76px); padding-bottom: clamp(36px, 7vw, 72px); }
.hero h1 { font-weight: 800; font-size: clamp(2.2rem, 7.2vw, 4.4rem); line-height: 1.02; letter-spacing: -.04em; max-width: 14em; margin-bottom: .45em; }
.hero p { font-size: clamp(1.02rem, 2.2vw, 1.2rem); max-width: 34em; color: var(--muted); margin-bottom: 1.6em; }
.hero-search { display: flex; max-width: 560px; }
.hero-search input { flex: 1; min-width: 0; border: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); padding: 16px; font-size: 1.05rem; min-height: 56px; }
.hero-search input:focus { outline: 3px solid var(--jasmine); outline-offset: -3px; }
.hero-search button { border: 0; background: var(--jasmine); color: var(--ink); font: 700 1rem var(--font-body); padding: 0 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; cursor: pointer; }
.hero-search button:hover { background: var(--jasmine-dark); }

.promises { background: var(--white); border-bottom: 1px solid var(--line); }
.promises ul { list-style: none; margin: 0; padding: 18px 0; display: grid; gap: 14px 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .promises ul { grid-template-columns: repeat(3, 1fr); } }
.promises strong { display: block; font-family: var(--font-head); font-size: 1.02rem; }
.promises span { color: var(--muted); font-size: .94rem; }

.section { padding: clamp(28px, 5vw, 52px) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

.cat-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.cat-list li + li { border-top: 1px solid var(--line); }
.cat-list a { display: flex; align-items: center; gap: 16px; padding: 18px 20px; color: var(--ink); text-decoration: none; }
.cat-list a:hover { background: #f2ece1; color: var(--ink); }
.cat-list .cat-name { font: 700 1.2rem var(--font-head); letter-spacing: -.02em; flex: 0 0 auto; min-width: 11em; }
.cat-list .cat-blurb { color: var(--muted); flex: 1; }
.cat-list .cat-count { color: var(--blue); font-weight: 600; white-space: nowrap; }
@media (max-width: 720px) { .cat-list a { flex-wrap: wrap; gap: 2px 12px; } .cat-list .cat-name { min-width: 0; } .cat-list .cat-blurb { flex-basis: 100%; order: 3; } .cat-list .cat-count { margin-left: auto; } }

/* ---------- Produits ---------- */
.grid { display: grid; gap: 22px 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; } }
@media (min-width: 1020px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.pcard { display: flex; flex-direction: column; min-width: 0; }
.pcard-img { display: block; border-radius: var(--radius); overflow: hidden; background: #e8edf6; aspect-ratio: 4 / 3; position: relative; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.pcard-name { font: 600 1rem/1.3 var(--font-body); margin: 10px 0 4px; }
.pcard-name a { color: var(--ink); text-decoration: none; }
.pcard-name a:hover { text-decoration: underline; color: var(--ink); }
.pcard-desc { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.pcard-buy { margin-top: auto; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.price { font: 800 1.12rem var(--font-head); letter-spacing: -.01em; }
.price-old { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: .9rem; margin-left: 6px; }
.tag { position: absolute; left: 8px; top: 8px; background: var(--jasmine); color: var(--ink); font-weight: 700; font-size: .78rem; padding: 3px 8px; border-radius: 5px; }
.tag-out { background: var(--ink); color: #fff; }
.stock { font-weight: 600; font-size: .92rem; }
.stock-ok { color: var(--ok); } .stock-low { color: var(--low); } .stock-out { color: var(--out); }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.sort { display: flex; gap: 8px; align-items: center; }
.sort select { width: auto; min-height: 40px; padding: 8px 10px; }
.empty { background: #fff; border: 1px dashed #b9c4da; border-radius: var(--radius); padding: 36px 20px; text-align: center; }
.empty p { color: var(--muted); }

.crumbs { font-size: .9rem; color: var(--muted); padding: 18px 0 6px; }
.crumbs a { color: var(--muted); }
.product { display: grid; gap: 24px; padding: 12px 0 36px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .product { grid-template-columns: 1.05fr 1fr; gap: 44px; } }
.product-img { border-radius: var(--radius); overflow: hidden; background: #e8edf6; aspect-ratio: 4 / 3; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product h1 { margin-bottom: .3em; }
.product-price { font: 800 1.9rem var(--font-head); letter-spacing: -.02em; margin: 10px 0 4px; }
.product-price .price-old { font-size: 1.05rem; }
.buy { display: grid; gap: 10px; margin: 18px 0; grid-template-columns: 1fr; max-width: 480px; }
.buy .qty { justify-self: start; }
@media (min-width: 1100px) { .buy { grid-template-columns: 1fr 1fr; max-width: none; } .buy .qty { grid-column: 1 / -1; } }
.qty { display: inline-flex; border: 1.5px solid #b9c4da; border-radius: var(--radius-sm); background: #fff; }
.qty button { width: 44px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--paper); }
.qty input { width: 52px; text-align: center; border: 0; border-left: 1.5px solid var(--line); border-right: 1.5px solid var(--line); border-radius: 0; padding: 0; min-height: 48px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.assure { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
.assure li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.assure svg { flex: 0 0 20px; margin-top: 2px; color: var(--ok); }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.3rem; }
.prose li { margin-bottom: .35em; }

/* ---------- Panier et commande ---------- */
.page-title { padding: 26px 0 8px; }
.cart-layout { display: grid; gap: 24px; padding-bottom: 44px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1fr 380px; gap: 36px; } }
.lines { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.line { display: grid; grid-template-columns: 76px 1fr; gap: 6px 14px; padding: 16px; }
.line + .line { border-top: 1px solid var(--line); }
.line-img { width: 76px; height: 76px; border-radius: var(--radius-sm); overflow: hidden; background: #e8edf6; grid-row: span 2; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-name { font-weight: 600; }
.line-name a { color: var(--ink); text-decoration: none; }
.line-ctl { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.line-ctl form { display: flex; gap: 8px; align-items: center; }
.line-ctl input[type=number] { width: 70px; min-height: 40px; padding: 6px 8px; }
.line-total { margin-left: auto; font: 800 1.05rem var(--font-head); }

/* Bon de commande : l'encadré pointillé rappelle le bon de livraison remis au client */
.slip { background: #fff; border: 2px dashed #9fb0d3; border-radius: var(--radius); padding: 20px; }
.slip h2 { font-size: 1.15rem; margin-bottom: 12px; }
.slip dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; }
.slip dt { color: var(--muted); }
.slip dd { margin: 0; text-align: right; font-weight: 600; }
.slip .slip-total { border-top: 2px solid var(--ink); margin: 12px 0 16px; padding-top: 12px; font: 800 1.25rem var(--font-head); display: flex; justify-content: space-between; gap: 12px; }
.slip .note { font-size: .9rem; color: var(--muted); margin: 12px 0 0; }
.slip-items { list-style: none; margin: 0 0 14px; padding: 0 0 14px; border-bottom: 1px dashed #9fb0d3; }
.slip-items li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.free-ship { background: #fff6d6; border: 1px solid #ecd37a; padding: 10px 12px; border-radius: var(--radius-sm); font-size: .92rem; margin-top: 12px; }
.form-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.form-box h2 { font-size: 1.15rem; }
.pay-note { background: #f2ece1; border: 1px solid #e0d3bb; padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .95rem; }

.done { max-width: 640px; margin: 0 auto; padding: 36px 0 52px; }
.done-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin-bottom: 14px; }
.done-mark svg { width: 30px; height: 30px; stroke-width: 3; }
.ref { font: 800 1.4rem var(--font-head); letter-spacing: .02em; background: var(--jasmine); padding: 2px 10px; border-radius: 6px; display: inline-block; }
.done .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #c9d3ea; margin-top: auto; }
.site-footer .wrap { padding-top: 36px; padding-bottom: 28px; display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .7em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: #c9d3ea; text-decoration: none; }
.site-footer a:hover { color: var(--jasmine); text-decoration: underline; }
.site-footer .logo { color: #fff; margin-bottom: 10px; }
.legal { border-top: 1px solid rgba(255,255,255,.14); font-size: .86rem; color: #9eabc9; }
.legal .wrap { display: block; padding-top: 14px; padding-bottom: 14px; }

.todo { background: #fff6d6; border-radius: 4px; padding: 0 4px; }

/* ---------- Administration ---------- */
.admin-bar { background: var(--ink); color: #fff; }
.admin-bar .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.admin-bar a { color: #dfe6f5; text-decoration: none; font-weight: 600; }
.admin-bar a:hover, .admin-bar a[aria-current="page"] { color: var(--jasmine); }
.admin-bar form { margin-left: auto; }
.admin-bar .link-btn { color: #dfe6f5; }
.admin-main { padding: 24px 0 48px; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-bottom: 22px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font: 800 1.6rem var(--font-head); }
.stat span { color: var(--muted); font-size: .9rem; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.data th, table.data td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data th { background: var(--paper); font-weight: 600; white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data .num { text-align: right; white-space: nowrap; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: var(--line); color: var(--ink); }
.badge-nouvelle { background: var(--jasmine); }
.badge-confirmée { background: #ece3d3; color: #4f3322; }
.badge-expédiée { background: #e2dccf; color: #3a3330; }
.badge-livrée { background: #d4efe0; color: #0f5a38; }
.badge-annulée { background: #f6d6d3; color: #8f1d17; }
.badge-off { background: #e4e7ee; color: var(--muted); }
.admin-grid { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .admin-grid { grid-template-columns: 1fr 1fr; } }
.login-box { max-width: 400px; margin: 60px auto; }
.inline-form { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form select { width: auto; }
.thumb { width: 56px; height: 42px; object-fit: cover; border-radius: 5px; background: #e8edf6; }

/* ---------- Arabe (fiches produits) ---------- */
.ar { font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Naskh Arabic", "Geeza Pro", Arial, sans-serif; line-height: 1.85; }
.ar-title { font-size: 1.2rem; font-weight: 600; color: var(--blue-deep); margin: 0 0 .6em; }
.pcard-ar { font-size: .95rem; color: var(--muted); margin: 0 0 4px; line-height: 1.6; }
.pcard-actions { display: grid; gap: 8px; margin-top: 10px; }
.pcard-actions .btn { width: 100%; }
.desc-grid { display: grid; gap: 8px 44px; grid-template-columns: 1fr; padding-bottom: 20px; }
@media (min-width: 860px) { .desc-grid.is-bilingual { grid-template-columns: 1fr 1fr; } }
.ar-block { max-width: none; }
.ar-block h2 { margin-top: 1.6em; font-family: var(--font-body); letter-spacing: 0; }
.ar-lead { font-weight: 600; font-size: 1.05rem; }
.ar-assure { margin-top: 14px; }
.ar-fields { border: 1.5px dashed #b9c4da; border-radius: var(--radius-sm); padding: 14px 16px 2px; margin: 0 0 16px; }
.ar-fields legend { font-weight: 600; padding: 0 8px; }
.ar-fields .field label { text-align: right; }
.ar-fields input.ar, .ar-fields textarea.ar { font-size: 1.05rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast { transition: none; }
}
@media print {
  .topbar, .site-header, .site-footer, .done .actions, .toast { display: none; }
  body { background: #fff; }
}
/* pastilles de couleur (générées depuis COLOR_HEX) */
.sw-noir{background:#1a1a1f}
.sw-blanc{background:#ffffff}
.sw-ecru{background:#efe6d2}
.sw-beige{background:#d8c3a5}
.sw-camel{background:#b98a52}
.sw-marron{background:#6b4a32}
.sw-gris{background:#8e939c}
.sw-gris-clair{background:#c9ccd3}
.sw-anthracite{background:#3a3d49}
.sw-bleu{background:#3b6fd1}
.sw-bleu-marine{background:#1f2f5c}
.sw-bleu-ciel{background:#9cc3ee}
.sw-bleu-nuit{background:#14204a}
.sw-rouge{background:#c0392b}
.sw-bordeaux{background:#6e1f2e}
.sw-rose{background:#f0b3bb}
.sw-rose-poudre{background:#dda5a8}
.sw-fuchsia{background:#c2185b}
.sw-orange{background:#e07b39}
.sw-jaune{background:#f0c030}
.sw-moutarde{background:#d4a017}
.sw-vert{background:#3d7a55}
.sw-vert-sapin{background:#2f4a3c}
.sw-kaki{background:#6b6b3c}
.sw-turquoise{background:#2aa7a1}
.sw-violet{background:#7b5ea7}
.sw-lilas{background:#b9a3d6}
.sw-multicolore{background:#c8ccd6}
.sw-autre{background:#c8ccd6}

/* ================= Boutique de mode ================= */
h1, h2, h3 { font-weight: 700; }
.logo { font: 800 1.45rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; }
.header-row { gap: 14px; }
.cat-nav { display: none; border: 0; background: none; }
.cat-nav a { text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; border-bottom: 2px solid transparent; padding: 8px 10px; }
.cat-nav .nav-promo { color: #a3331f; }
.search-desk { display: none; }
.cart-link { margin-left: auto; }
.menu { position: static; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-sm); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--paper); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 18px; display: grid; gap: 0; box-shadow: 0 14px 24px rgba(28,27,34,.12); max-height: calc(100vh - 110px); overflow-y: auto; }
.menu-panel > a { padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 700 1.05rem var(--font-head); letter-spacing: .06em; text-transform: uppercase; }
.menu-panel > a.menu-sub { font: 400 .98rem var(--font-body); text-transform: none; letter-spacing: 0; color: var(--muted); padding: 11px 4px; }
.menu-panel .search { display: flex; max-width: none; margin: 8px 0 8px; }
.site-header .wrap { position: relative; }
@media (min-width: 900px) {
  .menu { display: none; }
  .cat-nav { display: flex; gap: 4px; margin-left: 22px; }
  .search-desk { display: flex; max-width: 240px; margin-left: auto; }
  .cart-link { margin-left: 0; }
  .header-row { padding-top: 16px; padding-bottom: 16px; }
}
@media (max-width: 640px) {
  .header-row { flex-wrap: nowrap; padding-top: 6px; padding-bottom: 6px; }
  .logo { font-size: 1.2rem; }
  .cart-link { margin-left: auto; }
  .cart-link .label { display: none; }
  .topbar .wrap { justify-content: center; }
  .topbar span:nth-child(2), .topbar a { display: none; }
}
.btn { text-transform: uppercase; letter-spacing: .08em; font-size: .88rem; border-radius: 2px; }
.btn-sm { font-size: .8rem; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-blue { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-blue:hover { background: var(--ink); color: #fff; }

/* Accueil */
.hero { background: #efe7da; color: var(--ink); }
.hero::after { display: none; }
.hero .wrap { padding-bottom: clamp(28px, 5vw, 56px); }
.hero-grid { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1.25fr; gap: 56px; } }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600; color: var(--blue); margin: 0 0 12px; }
.hero h1 { font-weight: 700; font-size: clamp(2rem, 6.4vw, 3.6rem); line-height: 1.05; letter-spacing: -.03em; max-width: 13em; }
.hero p.hero-sub { color: var(--muted); }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile a { display: block; position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px; color: #fff; text-decoration: none; background: #ddd; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile a:hover img { transform: scale(1.04); }
.tile a::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(20,20,30,.62)); }
.tile-name, .tile-count { position: absolute; left: 10px; z-index: 1; }
.tile-name { bottom: 28px; font: 700 clamp(.95rem, 3.4vw, 1.3rem) var(--font-head); text-transform: uppercase; letter-spacing: .1em; }
.tile-count { bottom: 10px; font-size: .78rem; opacity: .9; }
.promises { background: var(--white); }
.promises a { color: var(--blue); }
.band { background: #f2ece1; }
.size-teaser { text-align: center; max-width: 560px; }

/* Grille et cartes */
.grid { gap: 26px 12px; }
@media (min-width: 760px) { .grid { gap: 36px 20px; } }
.pcard-img { aspect-ratio: 3 / 4; background: #eee8dc; border-radius: 2px; }
.pcard-img img { transition: transform .4s; }
.pcard:hover .pcard-img img { transform: scale(1.03); }
.pcard-name { font: 600 .95rem/1.3 var(--font-body); margin: 10px 0 2px; }
.pcard .price { font: 700 1rem var(--font-body); margin: 2px 0 6px; display: block; }
.price-old { font-size: .85rem; }
.pcard .price-old { margin-left: 8px; }
.tag { background: #a3331f; color: #fff; border-radius: 2px; letter-spacing: .04em; }
.tag-out { background: var(--ink); }
.swatches { display: flex; gap: 5px; margin: 0 0 4px; }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); display: inline-block; }
.pcard-sizes { font-size: .78rem; color: var(--muted); margin: 0; letter-spacing: .03em; }
.chips-kind { margin-top: 0; }
.toolbar { display: grid; gap: 10px; grid-template-columns: 1fr; }
.chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); }
.chip { white-space: nowrap; border-radius: 2px; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.chip-sm { text-transform: none; letter-spacing: 0; font-size: .86rem; font-weight: 400; background: transparent; }
.chip[aria-current="true"] { background: var(--ink); }
@media (min-width: 900px) { .chips { flex-wrap: wrap; margin: 0; padding: 2px 0; } .toolbar { grid-template-columns: 1fr auto; } .chips-kind { grid-column: 1; } .sort { grid-column: 2; grid-row: 1; } }

/* Fiche produit */
.product { gap: 20px; }
.product-img { aspect-ratio: 4 / 5; background: #eee8dc; border-radius: 2px; position: relative; }
.product-img .tag { left: 12px; top: 12px; }
@media (min-width: 860px) { .product { grid-template-columns: 1fr 1fr; align-items: start; } .product-img { position: sticky; top: 90px; } }
.product h1 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); }
.product-price { font: 700 1.5rem var(--font-body); margin: 6px 0 2px; }
.buy { display: block; max-width: 520px; margin: 18px 0; }
.opt { border: 0; padding: 0; margin: 0 0 18px; }
.opt legend { font-weight: 600; margin-bottom: 8px; padding: 0; display: flex; gap: 6px; width: 100%; }
.legend-link { font-weight: 400; font-size: .88rem; margin-left: auto; }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.color-opt, .size-opt { position: relative; cursor: pointer; }
.color-opt input, .size-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.color-dot { display: block; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(0,0,0,.22); box-shadow: inset 0 0 0 3px #fff; }
.color-opt input:checked + .color-dot { outline: 2px solid var(--ink); outline-offset: 2px; }
.color-opt input:focus-visible + .color-dot, .size-opt input:focus-visible + span { outline: 3px solid var(--jasmine-dark); outline-offset: 2px; }
.size-opt span { display: grid; place-items: center; min-width: 52px; min-height: 46px; padding: 0 12px; border: 1.5px solid #cfc6b6; border-radius: 2px; background: #fff; font-weight: 600; }
.size-opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.size-opt.is-out span, .color-opt.is-out .color-dot { opacity: .35; text-decoration: line-through; }
.size-opt.is-out { cursor: not-allowed; }
.buy-row { margin-bottom: 12px; }
.buy-btns { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .buy-btns { grid-template-columns: 1fr 1fr; } }
.qty { border-radius: 2px; }
.buybar { display: none; }
@media (max-width: 859px) {
  .buy-btns { display: none; }
  .buybar { display: flex; align-items: center; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 18px rgba(28,27,34,.1); }
  .buybar-price { font: 700 1rem var(--font-body); margin-right: auto; white-space: nowrap; }
  .buybar .btn { padding: 10px 12px; min-height: 44px; font-size: .74rem; letter-spacing: .04em; }
  body:has(.buybar) { padding-bottom: 70px; }
  body:has(.buybar) .toast { bottom: 84px; }
}

/* Pied de page, bon de commande */
.site-footer { background: #1c1b22; }
.slip { border-color: #cdbfa6; }
.slip-items { border-bottom-color: #cdbfa6; }
.pay-note { background: #f2ece1; border-color: #e0d3bb; }
.free-ship { background: #f2ece1; border-color: #e0d3bb; }
.line-img { background: #eee8dc; }
.line-img img { object-position: center; }
.prose table { margin: 0 0 1.4em; }
.prose .table-wrap { margin-bottom: 1.4em; max-width: 760px; }
.logo-mark { all: unset; }

.lbl-ar { font-weight: 600; float: right; color: var(--muted); }
.form-box h2 .lbl-ar { font-size: 1rem; }
.h1-ar { display: block; font-size: .6em; font-weight: 600; color: var(--muted); margin-top: 4px; }
.pay-note .ar, .hint .ar { display: block; }
.btn .ar { font-weight: 600; letter-spacing: 0; text-transform: none; margin-left: 8px; }

/* Accueil : photo principale et bannière des rayons */
.hero { position: relative; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.has-photo { color: #fff; }
.hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20,18,22,.7), rgba(20,18,22,.15) 80%); }
.hero.has-photo .hero-inner { position: relative; z-index: 2; }
.hero.has-photo .eyebrow, .hero.has-photo p.hero-sub { color: #f3ede2; }
.hero.has-photo .btn-primary { background: #fff; color: var(--ink); }
.hero.has-photo .btn-line { border-color: #fff; color: #fff; }
.hero.has-photo .btn-line:hover { background: #fff; color: var(--ink); }
.hero-inner { padding-top: clamp(48px, 9vw, 120px); padding-bottom: clamp(48px, 9vw, 120px); }
.hero:not(.has-photo) .hero-inner { max-width: 1180px; }
.cat-banner ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 3px; }
.cat-banner a { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #eee8dc; color: #fff; text-decoration: none; }
.cat-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-banner a:hover img { transform: scale(1.04); }
.cat-banner a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,18,22,.62), rgba(20,18,22,0) 55%); }
.cat-banner-text { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cat-banner-name { font: 700 clamp(1.5rem, 5vw, 2.2rem) var(--font-head); text-transform: uppercase; letter-spacing: .12em; }
.cat-banner-more { font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.8); padding-bottom: 2px; }
@media (min-width: 760px) { .cat-banner ul { grid-template-columns: repeat(3, 1fr); } .cat-banner a { aspect-ratio: 4 / 5; } .cat-banner-text { flex-direction: column; align-items: flex-start; gap: 6px; } }
.thumb-lg { width: 120px; height: 80px; }

.hero p.eyebrow { color: var(--blue); }
.hero.has-photo p.eyebrow { color: #f3ede2; }
