/* ── Page d'une boutique (/boutique/{slug}) ──────────────────────────────────
   Maquette « Web - Public », canvas/Main.dc.html, validée le 2026-11-11.
   Couleurs de la maquette, reprises de l'app ; la tuile du type arrive en
   variables (--tile-bg, --tile-mid, --tile-fg) posées par le gabarit. */

.shop-page { --shop-line: #E4DCCF; --shop-soft: #4F4841; --shop-sand: #ECE5D9; --shop-muted: #675F55; --shop-white: #FFFFFF; --shop-live: #3FB27F;
    display: flex; flex-direction: column; gap: 20px; max-width: var(--page-width); margin: 0 auto; padding: clamp(12px, 3vw, 32px) var(--gutter) clamp(48px, 8vw, 96px); }

.icon { display: block; flex: none; }
.live-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--shop-live, #3FB27F); }

/* Bandeau : couverture 3:1, photo de profil à cheval (22,35 % de la largeur, 128 au plus). */
.shop-banner { position: relative; }
.shop-banner__cover { position: relative; overflow: hidden; aspect-ratio: 3 / 1; border-radius: clamp(20px, 2.4vw, 28px); background: var(--tile-bg); }
.shop-banner__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shop-banner__disc { position: absolute; right: -8%; top: 6%; width: 48%; aspect-ratio: 1; border-radius: 50%; background: var(--tile-mid); }
.shop-banner__glyph { position: absolute; right: 9%; top: 16%; color: var(--tile-fg); }
.shop-banner__glyph .icon { width: clamp(56px, 9vw, 120px); height: auto; }
.shop-banner__type { position: absolute; left: 16px; bottom: 14px; color: var(--tile-fg); font-size: 14px; font-weight: 600; }
.shop-banner__live { position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--shop-white); color: #1B7049; font-size: 13px; font-weight: 600; }
.shop-banner__avatar { position: absolute; left: 4.47%; bottom: 0; width: min(22.35%, 128px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: var(--tile-bg); box-shadow: 0 0 0 4px var(--color-cream); transform: translateY(50%); }

.shop-identity { display: flex; flex-direction: column; gap: 8px; }
.shop-banner--avatar + .shop-identity { padding-top: calc(min(11.175vw, 64px) + 8px); }
.shop-identity__name { margin: 0; font-family: var(--font-title); font-size: clamp(34px, 5vw, 56px); font-weight: 900; line-height: .98; letter-spacing: -.04em; text-wrap: balance; }
.shop-identity__place { color: var(--shop-soft); font-size: 16px; line-height: 1.45; }
.shop-identity__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2px; }
.shop-chip { display: flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px 0 9px; border: 1px solid var(--shop-line); border-radius: 999px; background: var(--shop-white); font-size: 14px; font-weight: 600; box-sizing: border-box; }
.shop-chip__soft { color: var(--shop-soft); font-weight: 400; }
.shop-chip--reliable { border-color: transparent; background: var(--shop-sand); color: #3A342E; }

/* Deux colonnes sur ordinateur, l'appel vers l'app à droite ; sur mobile, il passe avant les articles. */
.shop-layout { display: flex; flex-direction: row-reverse; flex-wrap: wrap; align-items: flex-start; gap: 24px; margin-top: 4px; }
.shop-app { display: flex; flex: 1 1 320px; flex-direction: column; gap: 14px; min-width: 0; padding: 22px; border-radius: 24px; background: var(--color-peach); box-sizing: border-box; }
.shop-app__title { font-family: var(--font-title); font-size: 26px; font-weight: 900; line-height: 1.02; letter-spacing: -.03em; }
.shop-app__text { font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.shop-app__text a { font-weight: 600; text-underline-offset: 3px; }
.shop-app__open { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 999px; background: var(--color-ink); color: var(--color-cream); font-size: 16px; font-weight: 600; text-decoration: none; }
.shop-app__open:hover { color: var(--color-cream); }
.shop-app__open[hidden] { display: none; }
.shop-app .store-badges { justify-content: center; }

.shop-main { display: flex; flex: 999 1 560px; flex-direction: column; gap: 16px; min-width: 0; }
.shop-title { margin: 0; font-family: var(--font-title); font-size: clamp(26px, 3vw, 34px); font-weight: 900; line-height: 1; letter-spacing: -.03em; }

.shop-drop__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.shop-drop__until { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.shop-drop__left { color: var(--shop-soft); font-family: var(--font-mono); font-size: 14px; }

.shop-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.shop-article { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--shop-line); border-radius: 20px; background: var(--shop-white); }
.shop-article--sold-out { opacity: .55; }
.shop-article--sold-out .shop-article__name { text-decoration: line-through; }
.shop-article__media { position: relative; aspect-ratio: 4 / 3; background: var(--tile-bg); }
.shop-article__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shop-article__glyph { position: absolute; left: 50%; top: 50%; color: var(--tile-fg); transform: translate(-50%, -50%); }
.shop-article__stock { position: absolute; left: 10px; top: 10px; display: flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: #FBEBC9; color: #7F5300; font-family: var(--font-mono); font-size: 12px; }
.shop-article__stock--out { background: var(--shop-sand); color: #3A342E; }
.shop-article__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 14px 16px 16px; }
.shop-article__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.shop-article__title { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.shop-article__kind { color: var(--shop-muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .8px; text-transform: uppercase; }
.shop-article__name { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.25; }
.shop-article__price { display: flex; flex: none; flex-direction: column; align-items: flex-end; }
.shop-article__price span { font-family: var(--font-title); font-size: 22px; font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.shop-article__price s { color: var(--shop-muted); font-family: var(--font-mono); font-size: 12px; }
.shop-article__contents { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.shop-article__contents li { display: flex; align-items: center; gap: 8px; color: var(--shop-soft); font-size: 14px; }
.shop-article__contents li span:nth-child(2) { flex: 1; }
.shop-article__bullet { flex: none; width: 4px; height: 4px; border-radius: 2px; background: #857C71; }
.shop-article__qty { color: var(--color-ink); font-family: var(--font-mono); font-size: 13px; }
.shop-article__note { color: var(--shop-soft); font-size: 14px; line-height: 1.45; }
.shop-article__facts { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: 10px; border-top: 1px solid #F1EBE1; color: var(--shop-soft); font-size: 13px; line-height: 1.4; }
.shop-article__facts b { color: var(--color-ink); }

.shop-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--shop-line); border-radius: 24px; background: var(--shop-white); }
.shop-card__text { color: #3A342E; font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.shop-card__label { margin: 0; font-size: 17px; font-weight: 600; }

.shop-reviews { gap: 18px; padding: 22px 24px; }
.shop-reviews__top { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 40px; }
.shop-reviews__score { display: flex; flex: none; flex-direction: column; gap: 4px; }
.shop-reviews__value { display: flex; align-items: center; gap: 8px; font-family: var(--font-title); font-size: 48px; font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.shop-reviews__count { color: var(--shop-soft); font-size: 14px; }
.shop-reviews__criteria { display: flex; flex: 1 1 260px; flex-direction: column; gap: 8px; min-width: 0; }
.shop-criterion { display: grid; grid-template-columns: 96px minmax(0, 1fr) 32px; align-items: center; gap: 10px; font-size: 14px; }
.shop-criterion__bar { overflow: hidden; height: 8px; border-radius: 4px; background: var(--shop-sand); }
.shop-criterion__bar span { display: block; height: 100%; border-radius: 4px; background: var(--color-ink); }
.shop-criterion__value { font-family: var(--font-mono); font-size: 13px; text-align: right; }
.shop-reviews__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.shop-review { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid #F1EBE1; border-radius: 16px; background: #FBF8F3; }
.shop-review__head { display: flex; align-items: center; gap: 10px; }
.shop-review__initials { display: flex; flex: none; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--shop-sand); font-family: var(--font-title); font-size: 14px; font-weight: 900; }
.shop-review__who { display: flex; flex: 1; flex-direction: column; gap: 1px; min-width: 0; }
.shop-review__name { font-size: 15px; font-weight: 600; }
.shop-review__date { color: var(--shop-soft); font-size: 13px; }
.shop-review__rating { display: flex; flex: none; align-items: center; gap: 3px; font-size: 14px; font-weight: 600; }
.shop-review__text { margin: 0; font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.shop-review__reply { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; background: var(--shop-sand); color: #3A342E; font-size: 14px; line-height: 1.45; }
.shop-review__reply-who { color: var(--color-ink); font-size: 13px; font-weight: 600; }
.shop-reviews__note { color: var(--shop-soft); font-size: 13px; line-height: 1.45; }

.shop-hours { gap: 6px; padding: 20px 24px; }
.shop-hours .shop-card__label { margin-bottom: 4px; }
.shop-hours__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; font-size: 15px; }
.shop-hours__row--today { font-weight: 600; }
.shop-hours__time { font-family: var(--font-mono); font-size: 14px; text-align: right; }

/* Boutique fermée ou introuvable. */
.shop-gone { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 720px; margin: 0 auto; padding: clamp(56px, 10vw, 120px) var(--gutter); text-align: center; }
.shop-gone__title { margin: 0; font-family: var(--font-title); font-size: clamp(34px, 5vw, 52px); font-weight: 900; line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.shop-gone__text { max-width: 480px; margin: 0; color: #3A342E; font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.shop-gone .btn { margin-top: 6px; }
