/* Public showcase (vitrine) — navy theme, mobile first, no framework.
   Colours checked for WCAG AA: text on --sand and white >= 7:1, white on --navy 15:1, --brass on --navy 6.6:1. */
:root {
  --navy: #0f2340;
  --navy-2: #1b365d;
  --sea: #2c5d8a;
  --sand: #f6f2ea;
  --paper: #fff;
  --ink: #16202e;
  --muted: #4d5869;
  --line: #ddd5c6;
  --brass: #d9b45a;
  --red: #a3201c;
  --ok: #1f6a3a;
  --radius: 10px;
  --shadow: 0 1px 2px rgb(15 35 64 / .08), 0 4px 16px rgb(15 35 64 / .07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-title: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-underline-offset: .15em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-title); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); }
h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: .5rem; top: -3rem; z-index: 10; background: var(--brass); color: var(--navy); padding: .5rem 1rem; border-radius: 0 0 6px 6px; font-weight: 700; }
.skip-link:focus { top: 0; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.15rem; }
.icon { flex: none; vertical-align: -.2em; }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 5;
  /* thin "marinière" stripe under the header */
  border-bottom: 4px solid transparent;
  border-image: repeating-linear-gradient(90deg, #fff 0 10px, var(--sea) 10px 20px) 4;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; flex-wrap: wrap; }
.site-brand { display: inline-flex; align-items: center; gap: .5rem; color: #fff; font-family: var(--font-title); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.site-brand .icon { color: var(--brass); width: 24px; height: 24px; }
.site-brand:hover { color: #fff; }
.site-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .45rem .75rem; color: #fff; text-decoration: none; border-radius: 6px; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { background: var(--navy-2); color: #fff; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--brass); border-radius: 6px 6px 0 0; }

.site-main { flex: 1; outline: none; padding-bottom: 3rem; }

/* ---------- buttons, tags ---------- */
.button {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--brass); color: var(--navy);
  font-weight: 700; text-decoration: none;
  padding: .7rem 1.2rem; border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
.button:hover { color: var(--navy); background: #e6c675; transform: translateY(-1px); }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; padding: .15rem .55rem; border-radius: 4px; }
.tag-out { background: var(--red); color: #fff; }
.tag-in { background: #e3f1e7; color: var(--ok); }

/* ---------- home ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero-text { position: relative; padding-top: 3rem; padding-bottom: 3rem; }
.hero h1 { color: #fff; margin-bottom: .25em; }
.tagline { font-size: clamp(1.1rem, 3.5vw, 1.4rem); color: #f1e3bf; max-width: 36rem; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo { min-height: min(70vh, 34rem); display: flex; align-items: flex-end; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(15 35 64 / .15) 0%, rgb(15 35 64 / .55) 50%, rgb(15 35 64 / .92) 100%); }
.hero-photo .hero-text { z-index: 1; text-shadow: 0 1px 3px rgb(0 0 0 / .45); }
.hero:not(.hero-photo) { background: radial-gradient(120% 140% at 0% 0%, var(--navy-2) 0%, var(--navy) 60%); }

.intro { padding: 2.5rem 0 .5rem; max-width: 44rem; }
.lead { font-size: 1.15rem; color: var(--ink); }

section.featured, section.gallery, section.follow, section.cat { padding-top: 2rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }

.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.social a { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.social-big a { background: var(--navy); color: #fff; padding: .65rem 1.1rem; }
.social-big a:hover { background: var(--sea); color: #fff; }

.order-note {
  display: flex; gap: .85rem; align-items: flex-start;
  margin: 2.5rem 0 0; padding: 1rem 1.15rem;
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--brass); border-radius: var(--radius);
}
.order-note .icon { color: var(--sea); margin-top: .2rem; }
.order-note p:last-child { margin-bottom: 0; }

/* ---------- cards ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgb(15 35 64 / .1), 0 10px 24px rgb(15 35 64 / .12); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-link:hover .card-title { text-decoration: underline; }
.card-media { position: relative; aspect-ratio: 1; background: #e9e3d6; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .tag { position: absolute; top: .6rem; left: .6rem; }
.card-out .card-media img { filter: grayscale(.7); opacity: .75; }
.card-noimg { display: grid; place-items: center; height: 100%; color: #b9ad94; }
.card-noimg .icon { width: 40%; height: 40%; stroke-width: 1.2; }
.card-body { padding: .7rem .85rem .9rem; }
.card-title { font-family: var(--font); font-size: 1rem; font-weight: 700; margin: 0 0 .25rem; color: var(--navy); }
.card-meta { display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: baseline; margin: 0; }
.card-cat { color: var(--muted); font-size: .85rem; }
.price { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- catalogue ---------- */
.page-head { padding: 2rem 0 .5rem; max-width: 46rem; }
.cat-nav { position: sticky; top: 3.75rem; z-index: 4; background: var(--sand); padding: .5rem 0; margin: 0 -1.15rem; padding-left: 1.15rem; overflow-x: auto; }
.cat-nav ul { list-style: none; display: flex; gap: .5rem; margin: 0; padding: 0; white-space: nowrap; }
.cat-nav a { display: inline-flex; gap: .4rem; align-items: center; padding: .4rem .85rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; }
.cat-nav a:hover { border-color: var(--navy); }
.count { font-size: .8rem; color: var(--muted); font-weight: 400; }
section.cat { scroll-margin-top: 7rem; }
.empty { padding: 2rem 0; font-size: 1.1rem; color: var(--muted); }

/* ---------- product sheet ---------- */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 1rem 0; font-size: .92rem; }
.breadcrumb li + li::before { content: "›"; margin-right: .35rem; color: var(--muted); }
.breadcrumb [aria-current] { color: var(--muted); }

.product { display: grid; gap: 1.5rem; }
.product-photos { min-width: 0; }
.photo-strip { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .5rem; border-radius: var(--radius); scrollbar-width: thin; }
.photo-strip li { flex: 0 0 100%; scroll-snap-align: start; }
.photo-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: #e9e3d6; }
.photo-thumbs { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.photo-thumbs a { display: block; border-radius: 6px; overflow: hidden; border: 2px solid transparent; }
.photo-thumbs a:hover, .photo-thumbs a:focus-visible { border-color: var(--sea); }
.photo-thumbs img { width: 4rem; height: 4rem; object-fit: cover; }
.photo-none { display: grid; place-items: center; aspect-ratio: 1; background: #e9e3d6; border-radius: var(--radius); color: #b9ad94; }
.photo-none .icon { width: 35%; height: 35%; stroke-width: 1.2; }

.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--sea); margin-bottom: .35rem; }
.product-price { font-size: 1.6rem; margin-bottom: 1rem; }
.variants-title { font-family: var(--font); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .5rem; }
.variant-list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.variant { display: inline-flex; align-items: baseline; gap: .35rem; padding: .45rem .85rem; background: var(--paper); border: 2px solid var(--navy); border-radius: 8px; font-weight: 700; color: var(--navy); }
.variant-out { border-color: var(--line); color: var(--muted); background: transparent; }
.variant-out .variant-label { text-decoration: line-through; }
.variant-state { font-size: .8rem; font-weight: 700; color: var(--red); text-transform: uppercase; }
.availability { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.description { margin-top: 1rem; }
.product-info .order-note { margin-top: 1.5rem; }
.back { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.5rem; font-weight: 600; }

.not-found { padding-top: 3rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #dfe6f0; padding: 2rem 0 1.5rem; font-size: .95rem; }
.footer-inner { display: grid; gap: 1rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-title); font-weight: 700; color: #fff; margin: 0; }
.footer-brand .icon { color: var(--brass); }
.site-footer .social a { color: #fff; border: 1px solid rgb(255 255 255 / .35); }
.site-footer .social a:hover { background: var(--navy-2); color: #fff; }
.footer-note { margin: 0; color: #c4cfdd; font-size: .85rem; }

/* ---------- larger screens ---------- */
@media (min-width: 40rem) {
  .wrap { padding: 0 1.75rem; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-nav { margin: 0 -1.75rem; padding-left: 1.75rem; }
}

@media (min-width: 60rem) {
  body { font-size: 1.0938rem; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .hero-text { padding-top: 5rem; padding-bottom: 4rem; }
  .product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
  .product-photos { position: sticky; top: 5rem; }
  .footer-inner { grid-template-columns: auto 1fr; align-items: center; }
  .footer-inner nav { justify-self: end; }
  .footer-note { grid-column: 1 / -1; }
}
