/* Coutures Vibes — feuille de style du site
   Idée directrice : le mètre ruban de couturière (jaune, graduations) comme seul élément fort,
   sur une base encre/blanc très calme. */

:root {
  --ink: #1A1D3A;
  --ink-2: #2B2F55;
  --paper: #FFFFFF;
  --chalk: #F3F2F7;
  --tape: #F5C518;
  --tape-deep: #DDAE00;
  --mute: #6E7088;
  --line: #E3E2EC;
  --sale: #C8326B;
  --ok: #1F8A5B;
  --warn: #B86E00;
  --err: #C0392B;

  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;

  --ticks:
    repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 40px) bottom left / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 8px) bottom left / 100% 6px no-repeat;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.02em; }
p { margin: 0 0 .8em; }
:focus-visible { outline: 3px solid var(--tape-deep); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; 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: #fff; padding: 8px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--mute); }
.small { font-size: .875rem; }
.center { text-align: center; margin-top: 2rem; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Ruban d'annonces ---------- */
.tape {
  background: var(--ticks), var(--tape);
  overflow: hidden;
  font-weight: 600;
  font-size: .9rem;
  padding: 9px 0 16px;
}
.tape__track { display: flex; width: max-content; animation: tape 38s linear infinite; }
.tape:hover .tape__track { animation-play-state: paused; }
.tape__group { display: flex; flex: none; }
.tape__item { padding: 0 2.2rem; white-space: nowrap; text-decoration: none; position: relative; }
.tape__item::after { content: ""; position: absolute; right: -4px; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); transform: translateY(-50%); }
a.tape__item:hover { text-decoration: underline; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- En-tête ---------- */
.header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.header__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand__logo { height: 44px; width: auto; }
.brand__name { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; font-stretch: 85%; }
.brand__logo + .brand__name { display: none; }
@media (min-width: 1100px) { .brand__logo + .brand__name { display: inline; } }
.nav { display: flex; gap: 6px; margin: 0 auto; }
.nav__link { text-decoration: none; font-weight: 500; padding: 8px 14px; border-radius: 999px; }
.nav__link:hover { background: var(--chalk); }
.nav__link.is-active { background: var(--ink); color: #fff; }
.nav__mobile-account { display: none; }
.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav + .header__actions { margin-left: 0; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--chalk); }
.dot-count { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--tape); color: var(--ink); font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.dot-count--inline { position: static; display: inline-grid; }
.link-plain { text-decoration: none; font-weight: 500; padding: 8px 10px; }
.link-plain:hover { text-decoration: underline; }
.nav-toggle, .header__login-icon { display: none; }

.account-menu { position: relative; }
.account-menu__trigger { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); }
.account-menu__trigger::-webkit-details-marker { display: none; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--tape); display: grid; place-items: center; font-weight: 700; }
.account-menu__panel { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px; min-width: 210px; box-shadow: 0 18px 40px -18px rgba(26,29,58,.35); display: grid; }
.account-menu__panel a { padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; }
.account-menu__panel a:hover { background: var(--chalk); }

.admin-notice { background: var(--ink); color: #fff; text-align: center; padding: 8px; font-size: .9rem; }
.admin-notice a { color: var(--tape); }

@media (max-width: 860px) {
  .nav-toggle, .header__actions .header__login-icon { display: inline-grid; }
  .nav + .header__actions { margin-left: auto; }
  .header__login, .account-menu { display: none; }
  .header__actions .header__signup { display: none; }
  .nav { visibility: hidden; position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; background: #fff; padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .25s ease; margin: 0; z-index: -1; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__link { padding: 14px; font-size: 1.1rem; }
  .nav__mobile-account { display: grid; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
}

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .15s; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover:not(:disabled) { background: var(--ink-2); }
.btn--tape { background: var(--tape); color: var(--ink); }
.btn--tape:hover { background: #FFD43B; }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--danger { background: transparent; color: var(--err); border-color: currentColor; }
.btn--danger:hover { background: var(--err); color: #fff; border-color: var(--err); }
.btn--sm { padding: 8px 16px; font-size: .9rem; }
.btn--lg { padding: 15px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.link-under { font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.link-back { display: inline-block; margin-bottom: 12px; color: var(--mute); text-decoration: none; }
.link-back::before { content: "‹ "; }

/* ---------- Héros ---------- */
.hero { position: relative; }
.hero--word { padding: clamp(32px, 6vw, 80px) var(--gutter) 0; max-width: var(--wrap); margin: 0 auto; }
.wordmark { font-weight: 800; font-stretch: 78%; font-size: clamp(4.2rem, 17.5vw, 15.5rem); line-height: .8; letter-spacing: -0.055em; margin: 0; }
.wordmark__line { display: block; }
.wordmark__line:nth-child(2) { padding-left: 12vw; }
.hero__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin: clamp(24px, 4vw, 48px) 0 28px; }
.hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 34ch; margin: 0; }
.ruler { height: 46px; background-color: var(--tape); background-image:
    repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 50px),
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10px);
  background-size: 100% 22px, 100% 10px; background-repeat: no-repeat; background-position: top left; margin: 0 calc(-1 * var(--gutter)); border-radius: 0; }
.ruler--light { margin: 28px 0; border-radius: 4px; }

.hero--slides { height: min(88vh, 860px); min-height: 460px; overflow: hidden; background: var(--ink); color: #fff; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(16,18,40,.72)); }
.hero__copy { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(48px, 8vw, 96px); max-width: 920px; }
.hero__title { font-weight: 800; font-stretch: 80%; font-size: clamp(3rem, 9vw, 8.5rem); line-height: .86; letter-spacing: -0.045em; margin-bottom: 18px; }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 46ch; margin-bottom: 24px; opacity: .92; }
.hero__dots { position: absolute; z-index: 3; right: var(--gutter); bottom: 28px; display: flex; gap: 8px; }
.hero__dot { width: 34px; height: 6px; border-radius: 3px; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.hero__dot.is-active { background: var(--tape); }

/* ---------- Sections ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter) 0; }
.section--flush { padding-top: 8px; }
.section--tint { max-width: none; background: var(--chalk); padding-bottom: clamp(48px, 7vw, 96px); margin-top: clamp(48px, 7vw, 96px); }
.section--tint > * { max-width: calc(var(--wrap) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section__title { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 750; font-stretch: 85%; }
.page-head { max-width: var(--wrap); margin: 0 auto; padding: clamp(32px, 5vw, 64px) var(--gutter) 24px; }
.page-title { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; font-stretch: 80%; letter-spacing: -0.045em; }
.page-lead { margin-top: 12px; font-size: 1.1rem; color: var(--mute); max-width: 60ch; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* ---------- Grille produits ---------- */
.grid--products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 45%), 1fr)); gap: clamp(14px, 2vw, 28px) clamp(12px, 2vw, 24px); }
.card__media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--chalk); }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease, transform .6s ease; }
.card__img--alt { opacity: 0; }
.card:hover .card__img--alt { opacity: 1; }
.card:hover .card__img:only-of-type { transform: scale(1.03); }
.card.is-soldout .card__img { filter: grayscale(.7); opacity: .7; }
.card__tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.tag--tape { background: var(--tape); }
.tag--ink { background: var(--ink); color: #fff; }
.tag--sale { background: var(--sale); color: #fff; }
.card__body { padding: 12px 2px 0; }
.card__name { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.card__name a { text-decoration: none; }
.card__name a:hover { text-decoration: underline; }
.card__price { margin: 4px 0 0; font-weight: 500; }
.card__price s, .product__price s { color: var(--mute); font-weight: 400; margin-left: 6px; }
.card__swatches { display: flex; gap: 5px; margin-top: 8px; }
.card__swatches span { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }

/* ---------- À la une ---------- */
.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 20px; }
.news__item, .news__link { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: #fff; min-height: 340px; background: var(--ink); }
.news__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(16,18,40,.8)); pointer-events: none; }
.news__copy { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 22px; }
.news__copy h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 750; font-stretch: 85%; margin-bottom: 6px; }
.news__copy p { margin: 0; opacity: .9; max-width: 50ch; }

/* ---------- Catégories ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 46%), 1fr)); gap: 16px; }
.cat { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r-md); overflow: hidden; text-decoration: none; background: #fff; }
.cat__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat:hover .cat__img { transform: scale(1.04); }
.cat__label { position: absolute; left: 10px; right: 10px; bottom: 10px; background: #fff; border-radius: var(--r-sm); padding: 10px 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cat__name { font-weight: 700; font-size: 1.1rem; }
.cat__n { color: var(--mute); font-size: .85rem; white-space: nowrap; }
@media (max-width: 560px) { .cat__label { flex-direction: column; gap: 0; padding: 8px 10px; } .cat__name { font-size: 1rem; } }

/* ---------- Lookbook ---------- */
.lookbook { columns: 3 260px; column-gap: 16px; }
.lookbook__item { margin: 0 0 16px; break-inside: avoid; position: relative; border-radius: var(--r-md); overflow: hidden; }
.lookbook__item img { width: 100%; min-height: 160px; background: var(--chalk); }
.lookbook__item figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(255,255,255,.92); padding: 5px 12px; border-radius: 999px; font-size: .88rem; font-weight: 600; }

/* ---------- Bandeau contact ---------- */
.contact-band { margin-top: clamp(64px, 9vw, 120px); background: var(--ink); color: #fff; padding: clamp(48px, 7vw, 88px) var(--gutter); text-align: center; }
.contact-band__title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 750; font-stretch: 85%; max-width: 22ch; margin: 0 auto 28px; }
.contact-band__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- Catalogue ---------- */
.toolbar { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 20px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip { white-space: nowrap; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.toolbar__filters { display: flex; gap: 10px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; background: #fff; }
.search input { border: 0; outline: 0; padding: 10px 0; min-width: 200px; background: transparent; }
.search:focus-within { border-color: var(--ink); }
.toolbar select, .field select { border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; background: #fff; }
.count-line { margin-bottom: 16px; }

/* ---------- Fiche produit ---------- */
.crumbs { max-width: var(--wrap); margin: 0 auto; padding: 24px var(--gutter) 0; color: var(--mute); display: flex; gap: 8px; font-size: .92rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--ink); }
.product { max-width: var(--wrap); margin: 0 auto; padding: 20px var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 12px; }
.gallery__main { aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--chalk); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 10px; overflow-x: auto; }
.gallery__thumb { flex: none; width: 78px; aspect-ratio: 4 / 5; padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; cursor: pointer; background: var(--chalk); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--ink); }
.product__name { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; font-stretch: 82%; letter-spacing: -0.04em; }
.product__price { font-size: 1.5rem; font-weight: 600; margin: 12px 0 28px; }
.opt { border: 0; padding: 0; margin: 0 0 22px; }
.opt legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.opt__value { color: var(--mute); font-weight: 400; margin-left: 6px; }
.swatches, .sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch input, .size input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span { display: block; width: 38px; height: 38px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); cursor: pointer; outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .15s; }
.swatch input:checked + span { outline-color: var(--ink); }
.swatch input:focus-visible + span { outline-color: var(--tape-deep); }
.size span { display: grid; place-items: center; min-width: 54px; height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-weight: 600; cursor: pointer; }
.size span:hover { border-color: var(--ink); }
.size input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.size input:focus-visible + span { outline: 3px solid var(--tape-deep); outline-offset: 2px; }
.buy__row { display: flex; gap: 12px; align-items: stretch; margin-top: 8px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; }
.qty button { width: 42px; height: 100%; min-height: 48px; border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; }
.qty button:hover { background: var(--chalk); }
.qty input { width: 44px; text-align: center; border: 0; outline: 0; -moz-appearance: textfield; background: transparent; font-weight: 600; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm button { min-height: 38px; width: 34px; }
.stock-line { margin-top: 14px; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.stock-line::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.stock-line.is-ok { color: var(--ok); }
.stock-line.is-low { color: var(--warn); }
.stock-line.is-out { color: var(--err); }
.link-wa { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 28px; font-weight: 600; color: var(--ok); }
.product__desc { border-top: 1px solid var(--line); padding-top: 24px; max-width: 62ch; }
.product__facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; color: var(--mute); }
.product__facts li { display: flex; gap: 10px; align-items: center; }

@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  .gallery { position: static; }
}

/* ---------- Panier / commande ---------- */
.checkout-grid { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } }
.cart-lines { display: grid; gap: 0; }
.line { display: grid; grid-template-columns: 88px 1fr auto auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line__img img { width: 88px; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-sm); background: var(--chalk); }
.line__name { font-weight: 600; text-decoration: none; }
.line__info p { margin: 2px 0 0; }
.line__total { font-weight: 600; margin: 0; min-width: 80px; text-align: right; }
.cart-lines > .btn { justify-self: start; margin-top: 16px; }
@media (max-width: 640px) {
  .line { grid-template-columns: 72px 1fr auto; }
  .line .qty { grid-column: 2; }
  .line__total { grid-column: 3; grid-row: 1; }
}
.summary, .panel { background: var(--chalk); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.panel { background: #fff; border: 1px solid var(--line); }
.summary { position: sticky; top: calc(var(--header-h) + 16px); }
.summary__title, .panel__title { font-size: 1.35rem; font-weight: 700; margin-bottom: 18px; }
.summary__rows { margin: 16px 0; display: grid; gap: 10px; }
.summary__rows > div { display: flex; justify-content: space-between; }
.summary__rows dt { color: var(--mute); }
.summary__rows dd { margin: 0; font-weight: 600; }
.summary__total { border-top: 1px solid var(--line); padding-top: 12px; font-size: 1.2rem; }
.summary__total dt { color: var(--ink); font-weight: 700; }
.hint { font-size: .9rem; color: var(--mute); margin: 12px 0; }
.mini-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.mini-lines li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; }
.mini-lines img { width: 52px; aspect-ratio: 4/5; object-fit: cover; border-radius: 6px; background: #fff; }
.mini-lines small { display: block; color: var(--mute); }
.mini-lines--lg li { grid-template-columns: 72px 1fr auto; }
.mini-lines--lg img { width: 72px; }
.steps-info { background: var(--chalk); border-radius: var(--r-md); padding: 18px 20px; margin: 8px 0 20px; }
.steps-info h3 { font-size: 1rem; margin-bottom: 8px; }
.steps-info ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: .92rem; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.field select { border-radius: var(--r-sm); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(245,197,24,.45); }
.field small { color: var(--mute); }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }

.alert { padding: 12px 16px; border-radius: var(--r-sm); font-size: .95rem; border-left: 4px solid; background: #fff; }
.alert--success { border-color: var(--ok); background: #EAF6F0; }
.alert--error { border-color: var(--err); background: #FCEDEB; }
.alert--info { border-color: var(--ink); background: var(--chalk); }
.flash-stack { max-width: var(--wrap); margin: 16px auto 0; padding: 0 var(--gutter); display: grid; gap: 8px; }

/* ---------- Auth ---------- */
.auth { display: grid; place-items: center; padding: clamp(32px, 6vw, 72px) var(--gutter); }
.auth__card { width: 100%; max-width: 440px; display: grid; gap: 16px; }
.auth--wide .auth__card { max-width: 640px; }
.auth__title { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; font-stretch: 82%; letter-spacing: -0.04em; }
.auth__alt { text-align: center; margin: 0; }
.auth-page { background: var(--chalk); min-height: 100vh; }
.auth-page .auth__card { background: #fff; padding: 32px; border-radius: var(--r-lg); }

/* ---------- Compte ---------- */
.tabs { max-width: var(--wrap); margin: 0 auto 28px; padding: 0 var(--gutter); display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs__item { padding: 12px 16px; text-decoration: none; font-weight: 600; color: var(--mute); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.tabs__item:hover { color: var(--ink); }
.tabs__item.is-active { color: var(--ink); border-color: var(--tape-deep); }
.account-grid { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .account-grid { grid-template-columns: 1fr; } }
.role-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; background: color-mix(in srgb, var(--rc) 14%, white); color: var(--rc); font-weight: 700; font-size: .85rem; }
.role-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rc); }

.order-list { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 10px; }
.order-row { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 18px; align-items: center; padding: 14px 18px 14px 14px; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; transition: border-color .15s; }
.order-row:hover { border-color: var(--ink); }
.order-row__img { width: 64px; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); background: var(--chalk); }
.order-row__main, .order-row__status { display: grid; gap: 4px; justify-items: start; }
@media (max-width: 640px) { .order-row { grid-template-columns: 56px 1fr; } .order-row__status, .order-row__total { grid-column: 2; } }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--amber { background: #FFF4D1; color: #8A5A00; }
.badge--blue { background: #E4ECFF; color: #2848A8; }
.badge--violet { background: #EFE6FF; color: #6234B5; }
.badge--green { background: #E2F5EB; color: #17704A; }
.badge--red { background: #FCE6E4; color: #A8302A; }
.badge--grey { background: var(--chalk); color: var(--mute); }

/* Paiement + progression : la commande comme un ruban gradué */
.pay-card { max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 0 auto 28px; background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
@media (max-width: 1400px) { .pay-card { margin-left: var(--gutter); margin-right: var(--gutter); } }
.pay-card h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 750; margin-bottom: 8px; }
.pay-card p { margin: 0; max-width: 60ch; opacity: .9; }
.progress { list-style: none; max-width: var(--wrap); margin: 0 auto 32px; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.progress__step { position: relative; display: grid; justify-items: start; gap: 4px; padding-top: 30px; }
.progress__step::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 6px; background: var(--line); }
.progress__step.is-done::before, .progress__step.is-current::before { background: var(--tape); background-image: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 8px); background-size: 100% 3px; background-repeat: no-repeat; }
.progress__step:first-child::before { border-radius: 3px 0 0 3px; }
.progress__step:last-child::before { border-radius: 0 3px 3px 0; }
.progress__mark { position: absolute; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: var(--mute); }
.progress__mark .ico { width: 14px; height: 14px; }
.progress__step.is-done .progress__mark { background: var(--ink); border-color: var(--ink); color: #fff; }
.progress__step.is-current .progress__mark { background: var(--tape); border-color: var(--ink); color: var(--ink); }
.progress__label { font-weight: 600; font-size: .95rem; padding-right: 8px; }
.progress__step:not(.is-done):not(.is-current) .progress__label { color: var(--mute); }
.progress small { color: var(--mute); }
@media (max-width: 640px) { .progress__label { font-size: .8rem; } }
.ship-box { display: grid; gap: 10px; background: #fff; border-radius: var(--r-md); padding: 16px; margin: 16px 0; }
.ship-box p { margin: 0; display: flex; justify-content: space-between; gap: 10px; }

/* ---------- Messagerie ---------- */
.chat { max-width: 860px; margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 12px; }
.chat__log { height: min(58vh, 560px); overflow-y: auto; background: var(--chalk); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.chat__empty { margin: auto; color: var(--mute); text-align: center; max-width: 36ch; }
.bubble { max-width: 78%; align-self: flex-start; background: #fff; border-radius: 18px 18px 18px 6px; padding: 10px 14px; }
.bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble small { display: block; margin-top: 4px; font-size: .75rem; color: var(--mute); }
.bubble--mine { align-self: flex-end; background: var(--ink); color: #fff; border-radius: 18px 18px 6px 18px; }
.bubble--mine small { color: rgba(255,255,255,.65); }
.chat__form { display: flex; gap: 10px; align-items: end; }
.chat__form textarea { flex: 1; resize: none; border: 1.5px solid var(--line); border-radius: 22px; padding: 12px 18px; max-height: 160px; }
.chat__form textarea:focus { outline: 0; border-color: var(--ink); }
@media (max-width: 480px) { .chat__send-label { display: none; } }

/* ---------- Contact ---------- */
.contact-cards { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.contact-card { display: grid; gap: 6px; padding: 28px; border-radius: var(--r-lg); border: 1.5px solid var(--line); text-decoration: none; transition: border-color .15s, transform .15s; }
.contact-card:hover { border-color: var(--ink); }
.contact-card .ico { width: 34px; height: 34px; margin-bottom: 12px; }
.contact-card__name { font-size: 1.5rem; font-weight: 750; }
.contact-card__handle { font-weight: 600; font-size: 1.1rem; }
.contact-card__note { color: var(--mute); }
.contact-card--wa { background: var(--tape); border-color: var(--tape); }
.contact-card--wa .contact-card__note { color: var(--ink); opacity: .75; }

/* ---------- Vides ---------- */
.empty { text-align: center; padding: 48px 24px; background: var(--chalk); border-radius: var(--r-lg); display: grid; gap: 16px; justify-items: center; max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 0 auto; }
.empty p { margin: 0; color: var(--mute); font-size: 1.05rem; max-width: 44ch; }
.empty--page { margin: clamp(32px, 6vw, 80px) var(--gutter); }
@media (min-width: 1400px) { .empty--page { margin-left: auto; margin-right: auto; } }

/* ---------- Pied de page ---------- */
.footer { background: var(--ink); color: #fff; padding: clamp(48px, 6vw, 80px) var(--gutter) 28px; margin-top: clamp(64px, 9vw, 120px); }
main:has(> .contact-band:last-child) + .footer { margin-top: 0; border-top: 1px solid rgba(255,255,255,.12); }
.footer__inner { max-width: var(--wrap); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer__logo { height: 64px; width: auto; margin-bottom: 14px; }
.footer__word { font-weight: 800; font-stretch: 78%; font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: .85; letter-spacing: -0.05em; margin: 0; max-width: 7ch; }
.footer__cols { display: flex; gap: clamp(32px, 6vw, 96px); }
.footer__cols h3 { font-size: .95rem; color: var(--tape); margin-bottom: 14px; font-weight: 600; letter-spacing: 0; }
.footer__cols a { display: flex; align-items: center; gap: 8px; text-decoration: none; padding: 5px 0; opacity: .85; }
.footer__cols a:hover { opacity: 1; text-decoration: underline; }
.footer__legal { max-width: var(--wrap); margin: 48px auto 0; font-size: .85rem; opacity: .6; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px -8px rgba(0,0,0,.45); }
.wa-float .ico { width: 28px; height: 28px; }

/* ---------- Maintenance ---------- */
.maint { min-height: 100vh; display: grid; place-items: center; background: var(--ink); color: #fff; padding: var(--gutter); }
.maint__box { max-width: 680px; width: 100%; text-align: center; }
.maint__logo { height: 96px; width: auto; margin: 0 auto 24px; }
.maint__title { font-weight: 800; font-stretch: 78%; font-size: clamp(3rem, 10vw, 6rem); letter-spacing: -0.05em; line-height: .9; margin-bottom: 16px; }
.maint__msg { font-size: 1.15rem; opacity: .9; }
.maint__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.maint__social { display: flex; justify-content: center; gap: 22px; margin-top: 28px; }
.maint__social a { display: inline-flex; align-items: center; gap: 6px; opacity: .8; text-decoration: none; }
.maint__social a:hover { opacity: 1; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .tape { overflow-x: auto; }
}
