/* Klario Couture — C3.1 identite visuelle (DESIGN.md)
   Aucune ressource externe : polices systeme, motifs SVG integres en data URI. */

/* === Design tokens === */
:root {
  --surface-base: #FBF7F0;
  --surface-raised: #FFFFFF;
  --surface-sunk: #F3ECE0;
  --ink: #1E1A16;
  --ink-2: #5F574D;
  --ink-dim: #8A8177;          /* 4.6:1 sur creme (meta) */
  --ink-disabled: #A79F94;
  --accent: #1F3A6E;
  --accent-deep: #162B53;
  --warm: #C2571B;
  --warm-deep: #A4471A;        /* texte terre cuite sur creme >= 4.5:1 */
  --success: #2F6B3F;
  --danger: #B3261E;
  --line: #E6DECF;
  --r-sm: 8px;
  --r-md: 14px;
  --nav-h: 62px;
  --shadow-soft: 0 -6px 24px rgba(30, 26, 22, .10);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Motif « wax » : losanges emboites + pastilles. Tuile 56px. */
  --wax-on-indigo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke-width='2'%3E%3Cpath d='M28 5 51 28 28 51 5 28Z' stroke='%23C2571B'/%3E%3Cpath d='M28 17 39 28 28 39 17 28Z' stroke='%23FBF7F0' stroke-opacity='.28'/%3E%3C/g%3E%3Ccircle cx='28' cy='28' r='3' fill='%23C2571B'/%3E%3Cg fill='%23FBF7F0' fill-opacity='.22'%3E%3Ccircle cx='0' cy='0' r='5'/%3E%3Ccircle cx='56' cy='0' r='5'/%3E%3Ccircle cx='0' cy='56' r='5'/%3E%3Ccircle cx='56' cy='56' r='5'/%3E%3C/g%3E%3C/svg%3E");
  --wax-on-cream: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke-width='1.5'%3E%3Cpath d='M28 5 51 28 28 51 5 28Z' stroke='%23C2571B' stroke-opacity='.28'/%3E%3Cpath d='M28 17 39 28 28 39 17 28Z' stroke='%231F3A6E' stroke-opacity='.18'/%3E%3C/g%3E%3Ccircle cx='28' cy='28' r='2.5' fill='%23C2571B' fill-opacity='.35'/%3E%3Cg fill='%231F3A6E' fill-opacity='.10'%3E%3Ccircle cx='0' cy='0' r='5'/%3E%3Ccircle cx='56' cy='0' r='5'/%3E%3Ccircle cx='0' cy='56' r='5'/%3E%3Ccircle cx='56' cy='56' r='5'/%3E%3C/g%3E%3C/svg%3E");
  /* Liseré tissé (bande de pagne) */
  --weave: repeating-linear-gradient(90deg,
      var(--warm) 0 18px, var(--surface-base) 18px 22px,
      var(--accent) 22px 40px, var(--surface-base) 40px 44px,
      #D9A441 44px 52px, var(--surface-base) 52px 56px);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px; line-height: 1.5;
  background: var(--surface-base); color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 2px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.serif { font-family: var(--serif); }

/* === Header === */
.app-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 247, 240, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.app-header-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px; gap: 12px; min-height: 60px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); min-height: 44px; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; color: var(--accent); }
.brand-sub {
  font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--warm-deep); margin-top: 3px;
}

/* Selecteur langue/devise repliable (sans JavaScript) */
.prefs { position: relative; }
.prefs-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 12px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--surface-raised);
  font-size: .82rem; font-weight: 600; color: var(--ink-2);
}
.prefs-toggle svg { width: 18px; height: 18px; }
.prefs[open] .prefs-toggle { border-color: var(--accent); color: var(--accent); }
.prefs-panel {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: min(280px, calc(100vw - 32px));
  background: var(--surface-raised); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px;
  box-shadow: 0 12px 32px rgba(30, 26, 22, .14);
}
.prefs-group + .prefs-group { margin-top: 14px; }
.prefs-label { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 8px; }
.prefs-options { display: flex; flex-wrap: wrap; gap: 6px; }
.pref-link {
  min-height: 44px; min-width: 56px; padding: 0 12px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 500; color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center;
}
.pref-link:hover { border-color: var(--accent); color: var(--accent); }
.pref-link.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.prefs-note { font-size: .75rem; color: var(--ink-dim); margin-top: 12px; line-height: 1.4; }

/* === Bottom nav === */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  background: var(--surface-raised);
  border-top: 1px solid var(--line);
  display: flex;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--ink-dim); font-size: .68rem; font-weight: 600;
  padding: 6px 0; position: relative;
}
.nav-item.active { color: var(--accent); }
.nav-item.active::before {
  content: ""; position: absolute; top: 0; left: 30%; right: 30%;
  height: 3px; border-radius: 0 0 3px 3px; background: var(--warm);
}
.nav-item.disabled { color: var(--ink-disabled); cursor: default; }
.nav-icon { width: 22px; height: 22px; flex-shrink: 0; }

/* === Page layout === */
main { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px)); }
.page { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* === Hero === */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 0 -16px; padding: 36px 20px 44px;
  background-color: var(--accent);
  color: var(--surface-base);
}
.hero::before {                       /* motif wax */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--wax-on-indigo); background-size: 56px 56px;
  opacity: .55;
}
.hero::after {                        /* voile pour la lisibilite du texte */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, var(--accent-deep) 0%, rgba(31, 58, 110, .92) 45%, rgba(31, 58, 110, .35) 100%);
}
.hero-weave { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--weave); }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: #F2C9AE; margin-bottom: 14px;
}
.hero-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--warm); }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 8.5vw, 3.4rem);
  font-weight: 600; line-height: 1.06; letter-spacing: -.015em;
  max-width: 14ch; margin-bottom: 14px;
}
.hero-title em { font-style: italic; font-weight: 400; color: #F2C9AE; }
.hero-sub { font-size: 1rem; line-height: 1.55; color: rgba(251, 247, 240, .86); max-width: 34ch; margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--r-sm);
  font-size: .95rem; font-weight: 600; border: 1.5px solid transparent;
}
.btn-light { background: var(--surface-base); color: var(--accent); }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: rgba(251, 247, 240, .55); color: var(--surface-base); }
.btn-ghost:hover { border-color: var(--surface-base); background: rgba(251, 247, 240, .08); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn svg { width: 18px; height: 18px; }

.hero.compact { padding: 22px 20px 28px; }
.hero.compact .hero-title { font-size: clamp(1.5rem, 6vw, 2.2rem); margin-bottom: 6px; max-width: none; }
.hero.compact .hero-sub, .hero.compact .hero-actions { display: none; }

/* === Barre de filtres === */
.toolbar {
  position: sticky; top: 60px; z-index: 20;
  margin: 0 -16px; padding: 12px 16px 10px;
  background: var(--surface-base);
  border-bottom: 1px solid var(--line);
}
.chip-bar {
  overflow-x: auto; white-space: nowrap;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  margin: 0 -16px; padding: 0 16px;
}
.chip-bar::-webkit-scrollbar { display: none; }
.chip-row { display: inline-flex; gap: 8px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: .875rem; font-weight: 600; color: var(--ink-2);
  background: var(--surface-raised); white-space: nowrap;
}
.chip:hover { border-color: var(--ink-2); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.chip-warm .dot { background: var(--warm); }
.chip.active { background: var(--ink); color: var(--surface-base); border-color: var(--ink); }
.chip.active .dot { background: var(--surface-base); }

.filters { margin-top: 10px; }
.filters-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; font-size: .875rem; font-weight: 600; color: var(--accent);
}
.filters-toggle svg { width: 18px; height: 18px; transition: transform .2s; }
.filters[open] .filters-toggle svg { transform: rotate(180deg); }
.filters-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--warm); color: #fff; font-size: .72rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.filter-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 8px 0 6px;
}
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-label { font-size: .78rem; color: var(--ink-2); font-weight: 600; }
.filter-input {
  min-height: 48px; padding: 0 12px; width: 100%;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface-raised); font-size: 1rem; color: var(--ink);
  font-family: inherit;
}
.filter-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.filter-actions { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; }
.filter-actions .btn { flex: 1; }
.filter-reset { min-height: 48px; display: inline-flex; align-items: center; padding: 0 8px; color: var(--ink-2); font-size: .875rem; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* === Sections === */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 24px 0 4px; }
.section-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.section-kicker { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--warm-deep); margin-bottom: 4px; }
.section-note { font-size: .8rem; color: var(--ink-dim); white-space: nowrap; }

/* === Grille de cartes === */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; padding: 14px 0 20px; }
.card { min-width: 0; }
.card-link { display: block; color: inherit; border-radius: var(--r-md); }
.card-media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--r-md); background: var(--surface-sunk);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card-link:hover .card-media img { transform: scale(1.04); }
.card-badge {
  position: absolute; top: 8px; left: 8px;
  min-height: 24px; padding: 0 9px; border-radius: 999px;
  font-size: .64rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; display: inline-flex; align-items: center;
}
.badge-rtw { background: rgba(251, 247, 240, .94); color: var(--accent); }
.badge-mtm { background: var(--warm); color: #fff; }
.card-lead {
  position: absolute; right: 8px; bottom: 8px;
  min-height: 24px; padding: 0 8px; border-radius: 999px;
  background: rgba(30, 26, 22, .72); color: #fff;
  font-size: .7rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}
.card-lead svg { width: 12px; height: 12px; }
.card-pro {
  display: table; margin: 0 0 4px; padding: 1px 6px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #7a4b00; background: #fde7b0; vertical-align: 1px;
}
.card-body { padding: 10px 2px 0; }
.card-workshop {
  font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 3px;
}
.card-name {
  font-family: var(--serif); font-size: 1.02rem; font-weight: 600; line-height: 1.25; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 4px;
}
.card-price { font-size: .95rem; font-weight: 700; color: var(--ink); }

/* Visuel de remplacement (modele sans photo) */
.ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background-color: var(--surface-sunk);
  background-image: var(--wax-on-cream); background-size: 56px 56px;
}
.ph::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--weave); opacity: .85;
}
.ph-initial {
  width: 38%; aspect-ratio: 1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-base); border: 1.5px solid var(--line);
  font-family: var(--serif); font-size: clamp(1.6rem, 7vw, 2.6rem); font-weight: 600; color: var(--accent);
}

/* === Skeleton === */
.skeleton {
  background: linear-gradient(90deg, var(--surface-sunk) 25%, #F8F2E8 50%, var(--surface-sunk) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }
.skel-img { aspect-ratio: 4 / 5; border-radius: var(--r-md); }
.skel-line { height: 12px; margin: 10px 2px 6px; border-radius: 4px; }
.skel-short { width: 55%; }

/* === Pagination === */
.pager { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0 24px; }
.pager a {
  min-height: 48px; padding: 0 20px; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); display: inline-flex; align-items: center;
  font-weight: 600; color: var(--accent); font-size: .9375rem; background: var(--surface-raised);
}
.pager a:hover { border-color: var(--accent); }

/* === Etat vide === */
.empty {
  text-align: center; padding: 40px 20px; margin: 16px 0 24px;
  border: 1.5px dashed var(--line); border-radius: var(--r-md);
  background-image: var(--wax-on-cream); background-size: 56px 56px;
}
.empty-inner { background: var(--surface-base); display: inline-block; padding: 20px; border-radius: var(--r-md); }
.empty-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin-bottom: 6px; }
.empty p { color: var(--ink-2); margin-bottom: 18px; font-size: .9375rem; }

/* === Comment ca marche === */
.how { padding: 28px 0 8px; }
.steps { display: grid; gap: 12px; margin-top: 14px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start;
  padding: 16px; border-radius: var(--r-md);
  background: var(--surface-raised); border: 1px solid var(--line);
}
.step-icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-sunk); color: var(--accent); position: relative;
}
.step-icon svg { width: 24px; height: 24px; }
.step-icon::after {
  counter-increment: step; content: counter(step);
  position: absolute; right: -4px; top: -4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--warm); color: #fff; font-size: .7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-title { font-weight: 700; font-size: 1rem; margin-bottom: 2px; }
.step-text { font-size: .9rem; color: var(--ink-2); line-height: 1.5; }

.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
}

/* === Devenir atelier : formules === */
.plans-section { padding: 28px 0 32px; }
.plans { display: grid; gap: 12px; margin-top: 14px; }
.plan { padding: 18px; border-radius: var(--r-md); background: var(--surface-raised); border: 1px solid var(--line); }
.plan-featured { border: 2px solid var(--accent); }
.plan-name { font-weight: 700; font-size: 1rem; color: var(--accent); }
.plan-price { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin: 4px 0 10px; }
.plan-price span { font-family: inherit; font-size: .9rem; font-weight: 400; color: var(--ink-2); }
.plan-list { display: grid; gap: 6px; padding-left: 18px; font-size: .9rem; color: var(--ink-2); }
.plans-note { font-size: .85rem; color: var(--ink-2); margin-top: 12px; }
.plans-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 18px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1rem; }
.plans-login { font-size: .9rem; font-weight: 600; }
.foot-atelier { display: inline-block; margin-top: 10px; color: #F2C9AE; font-weight: 600; font-size: .9rem; }
.foot-atelier:hover { color: var(--surface-base); }
.foot-mail { color: #F2C9AE; font-weight: 600; }

/* === Confiance === */
.trust {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 24px -16px 0; padding: 28px 20px 32px;
  background: var(--surface-sunk);
}
.trust::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--wax-on-cream); background-size: 56px 56px; opacity: .6;
}
.trust-list { display: grid; gap: 10px; margin-top: 14px; }
.trust-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-base);
}
.trust-item svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--warm); margin-top: 2px; }
.trust-title { font-weight: 700; font-size: .95rem; }
.trust-text { font-size: .875rem; color: var(--ink-2); line-height: 1.45; }

/* === Pied de page === */
.app-foot {
  position: relative; background: var(--ink); color: rgba(251, 247, 240, .78);
  padding: 32px 16px 28px;
}
.app-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--weave); }
.foot-inner { max-width: 1120px; margin: 0 auto; display: grid; gap: 16px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--surface-base); }
.foot-brand .brand-name { color: var(--surface-base); }
.foot-tag { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--surface-base); max-width: 32ch; }
.foot-note { font-size: .78rem; line-height: 1.5; }
.foot-copy { font-size: .72rem; color: rgba(251, 247, 240, .55); }

/* === Fiche modele === */
.detail-back {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; margin: 6px 0 4px; color: var(--ink-2); font-size: .875rem; font-weight: 600;
}
.detail-back svg { width: 18px; height: 18px; }
.detail-back:hover { color: var(--ink); }

.gallery-wrap { position: relative; }
.gallery {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: var(--r-md);
}
.gallery::-webkit-scrollbar { display: none; }
.gallery-item {
  position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always;
  aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--surface-sunk);
}
.gallery-item:only-child { flex-basis: 100%; }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; display: block; background: #111; }
.gallery-video-badge { position: absolute; left: 10px; top: 10px; background: rgba(20, 20, 20, .72); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; pointer-events: none; }
.gallery-item.is-video video { object-fit: contain; }
.gallery-count {
  position: absolute; right: 10px; bottom: 10px;
  min-height: 26px; padding: 0 10px; border-radius: 999px;
  background: rgba(30, 26, 22, .72); color: #fff; font-size: .75rem; font-weight: 600;
  display: inline-flex; align-items: center;
}
.gallery-hint { font-size: .75rem; color: var(--ink-dim); text-align: center; margin-top: 8px; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 999px; border: 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18); transition: opacity .15s ease;
}
.gallery-nav[hidden] { display: none; }
.gallery-nav svg { width: 22px; height: 22px; }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-nav:disabled { opacity: 0; pointer-events: none; }
.gallery-nav:focus-visible { outline: 3px solid var(--accent, #1F3A6E); outline-offset: 2px; }
.gallery-item.is-video .gallery-count { bottom: 56px; }

.detail-info { padding-top: 18px; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tag {
  min-height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 5px;
}
.tag svg { width: 13px; height: 13px; }
.tag-rtw { background: #E4E9F2; color: var(--accent); }
.tag-mtm { background: var(--warm); color: #fff; }
.tag-lead { background: var(--surface-sunk); color: var(--ink-2); }
.detail-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 7vw, 2.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -.015em;
  margin-bottom: 10px;
}
.detail-price { font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.detail-price-note { font-size: .78rem; color: var(--ink-dim); margin-top: 2px; }

.workshop {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; padding: 14px; border-radius: var(--r-md);
  background: var(--surface-raised); border: 1px solid var(--line);
}
.workshop-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background-color: var(--accent); background-image: var(--wax-on-indigo); background-size: 28px 28px;
  color: var(--surface-base); font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
  box-shadow: inset 0 0 0 26px rgba(22, 43, 83, .55);
}
.workshop-label { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }
.workshop-name { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.workshop-meta { display: flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--success); font-weight: 600; margin-top: 2px; }
.workshop-meta svg { width: 14px; height: 14px; }

.detail-section + .detail-section { margin-top: 22px; }
.detail-h2 { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.detail-desc { color: var(--ink); line-height: 1.7; white-space: pre-line; }
.variants-list { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-chip {
  min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-size: .875rem; color: var(--ink); background: var(--surface-raised);
}
.variant-chip.out { color: var(--ink-disabled); text-decoration: line-through; }

.mtm-box {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md);
  background: #FBEDE4; border-left: 4px solid var(--warm);
}
.mtm-box svg { width: 24px; height: 24px; color: var(--warm-deep); flex-shrink: 0; }
.mtm-title { font-weight: 700; font-size: .95rem; color: var(--ink); }
.mtm-text { font-size: .875rem; color: var(--ink-2); line-height: 1.5; }

.pb-cta { padding-bottom: 96px; }

/* Barre d'action collante */
.sticky-cta {
  position: fixed; left: 0; right: 0; z-index: 25;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  background: var(--surface-raised);
  box-shadow: var(--shadow-soft);
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.sticky-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.sticky-price { flex: 1; min-width: 0; }
.sticky-label { font-size: .72rem; color: var(--ink-dim); font-weight: 600; letter-spacing: .04em; }
.sticky-amount { font-size: 1.15rem; font-weight: 700; white-space: nowrap; }
.btn-soon {
  min-height: 52px; padding: 6px 16px; flex-shrink: 1; max-width: 52%;
  line-height: 1.25; text-align: center;
  background: var(--surface-sunk); color: var(--ink-2);
  border: 1.5px dashed var(--line); border-radius: var(--r-sm);
  font-size: .9rem; font-weight: 600; cursor: default;
}

/* === Panier (C4.1) === */
.nav-icon-wrap { position: relative; display: inline-flex; }
.nav-badge {
  position: absolute; top: -6px; right: -10px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--warm); color: #fff; font-size: .65rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--surface-raised);
}
.btn-cta { min-height: 52px; flex-shrink: 1; max-width: 60%; }
.btn-outline { border-color: var(--line); color: var(--accent); background: var(--surface-raised); }
.btn-outline:hover { border-color: var(--accent); }
.btn-block { width: 100%; }
.link-btn {
  background: none; border: none; padding: 0 4px; min-height: 44px;
  color: var(--ink-2); font-size: .85rem; font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center;
}
.link-btn:hover { color: var(--danger); }

.notice {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-radius: var(--r-sm); margin: 8px 0 4px;
  font-size: .9rem; line-height: 1.4;
}
.notice svg { width: 18px; height: 18px; flex-shrink: 0; }
.notice-ok { background: #E7F1EA; color: var(--success); }
.notice-warn { background: #FBEDE4; color: var(--warm-deep); }

/* Choix de variante (radios stylisees, sans JS) */
.variant-picker { border: none; }
.variant-picker legend { padding: 0; }
.variant-option { cursor: pointer; gap: 8px; position: relative; }
.variant-option:hover { border-color: var(--accent); }
.variant-option:has(input:checked) { border-color: var(--accent); background: #E4E9F2; color: var(--accent); font-weight: 600; box-shadow: inset 0 0 0 1px var(--accent); }
.variant-option:has(input:focus-visible) { outline: 3px solid var(--warm); outline-offset: 2px; }
.variant-option.out { cursor: not-allowed; color: var(--ink-disabled); text-decoration: line-through; background: var(--surface-sunk); }
.variant-stock { font-size: .7rem; font-weight: 600; color: var(--warm-deep); text-decoration: none; }

.cart-shop {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; margin: 12px 0 4px; border-radius: var(--r-md);
  background: var(--surface-raised); border: 1px solid var(--line);
}
.cart-shop .workshop-avatar { width: 40px; height: 40px; font-size: 1.05rem; box-shadow: inset 0 0 0 20px rgba(22, 43, 83, .55); }
.cart-lines { display: grid; gap: 0; margin-top: 8px; }
.cart-line {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 12px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.cart-line.is-gone { opacity: .7; }
.cart-thumb { position: relative; display: block; width: 84px; aspect-ratio: 4 / 5; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-sunk); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .ph-initial { width: 56%; font-size: 1.2rem; }
.cart-thumb .ph::after { height: 4px; }
.cart-info { min-width: 0; }
.cart-name { display: block; font-family: var(--serif); font-size: 1.02rem; font-weight: 600; line-height: 1.25; color: var(--ink); }
.cart-variant { font-size: .82rem; color: var(--ink-2); margin-top: 2px; }
.cart-unit { font-size: .82rem; color: var(--ink-dim); margin-top: 2px; }
.cart-unit span { font-size: .75rem; }
.cart-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.cart-total { font-weight: 700; font-size: .95rem; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface-raised); }
.qty-btn {
  width: 44px; height: 44px; border: none; background: none;
  font-size: 1.2rem; font-weight: 600; color: var(--accent);
}
.qty-btn:disabled { color: var(--ink-disabled); cursor: not-allowed; }
.qty-value { min-width: 28px; text-align: center; font-weight: 700; }

.cart-summary { margin: 20px 0 8px; padding: 16px; border-radius: var(--r-md); background: var(--surface-raised); border: 1px solid var(--line); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .95rem; }
.sum-row dt { color: var(--ink-2); }
.sum-row dd { font-weight: 700; text-align: right; }
.sum-row.muted dd { font-weight: 500; color: var(--ink-dim); font-size: .85rem; }

/* Conflit d'atelier */
.conflict {
  max-width: 520px; margin: 24px auto; padding: 28px 20px; text-align: center;
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--r-md);
}
.conflict-icon {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #FBEDE4; color: var(--warm-deep);
}
.conflict-icon svg { width: 28px; height: 28px; }
.conflict-text { margin-top: 10px; color: var(--ink); line-height: 1.55; }
.conflict-why { margin-top: 10px; font-size: .9rem; color: var(--ink-2); line-height: 1.55; }
.conflict-actions { display: grid; gap: 10px; margin-top: 22px; justify-items: center; }
.conflict-actions form { width: 100%; }

/* === Commande (C4.2 - C4.5) === */
.checkout-steps { display: flex; gap: 6px; margin: 4px 0 12px; counter-reset: cs; }
.checkout-steps li {
  flex: 1; font-size: .72rem; font-weight: 600; color: var(--ink-dim); text-align: center;
  padding-top: 8px; border-top: 3px solid var(--line);
}
.checkout-steps li.on { color: var(--accent); border-top-color: var(--accent); }
.checkout-block { margin: 18px 0; }
.country-form { display: flex; gap: 8px; }
.country-form select { flex: 1; min-height: 48px; }
.sum-lines { border-bottom: 1px dashed var(--line); margin-bottom: 6px; padding-bottom: 6px; }
.sum-lines .sum-row { font-size: .88rem; color: var(--ink-2); }
.sum-lines .sum-row span:last-child { white-space: nowrap; font-weight: 600; color: var(--ink); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-size: 1.05rem; }
.sum-row.total dt { color: var(--ink); font-weight: 700; }
.contact-form { display: grid; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.btn-lg { min-height: 54px; font-size: 1rem; }

.confirm-hero { text-align: center; padding: 28px 12px 8px; }
.confirm-icon {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #E4E9F2; color: var(--accent);
}
.confirm-hero.is-paid .confirm-icon { background: #E7F1EA; color: var(--success); }
.confirm-icon svg { width: 30px; height: 30px; }
.confirm-pay { max-width: 420px; margin: 20px auto 6px; }
.order-steps { display: flex; justify-content: space-between; margin: 20px 0 8px; position: relative; }
.order-steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 7px; height: 2px; background: var(--line); }
.order-steps li { position: relative; flex: 1 1 0; min-width: 0; text-align: center; font-size: .66rem; line-height: 1.2; font-weight: 600; color: var(--ink-dim); overflow-wrap: anywhere; }
.ship-track { margin: 14px 0 6px; padding: 14px 14px 4px; border: 1px solid var(--line); border-radius: 12px; }
.ship-track .detail-h2 { margin: 0 0 4px; }
.order-steps .dot { display: block; width: 16px; height: 16px; margin: 0 auto 6px; border-radius: 50%; background: var(--surface-base); border: 2px solid var(--line); }
.order-steps li.done { color: var(--ink); }
.order-steps li.done .dot { background: var(--success); border-color: var(--success); }
.order-steps small { font-weight: 500; color: var(--ink-dim); font-size: .62rem; }
.order-steps li.current .dot { box-shadow: 0 0 0 4px rgba(47, 107, 63, .18); }

/* === Guide de prise de mesures (silhouette 2D) === */
.mtm-measures { display: grid; gap: 14px; }
.measure-guide {
  position: sticky; top: 68px; z-index: 3; display: grid; grid-template-columns: 92px 1fr; gap: 6px 12px; align-items: start;
  background: var(--surface-base); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; box-shadow: 0 6px 16px -12px rgba(30, 26, 22, .35);
}
.mg-svg { grid-column: 1; grid-row: 1 / 3; width: 92px; height: 161px; display: block; }
.mg-switch { grid-column: 2; grid-row: 1; }
.mg-tips { grid-column: 2; grid-row: 2; }
.mg-body { fill: #EADFCD; stroke: #CDBEA6; stroke-width: 1.2; }
.mg-k { opacity: 0; transition: opacity .2s; }
.mg-k ellipse, .mg-k line { fill: none; stroke: var(--warm); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.mg-k .mg-end { fill: var(--warm); stroke: none; }
.mg-switch { display: inline-flex; justify-self: start; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: .78rem; font-weight: 600; }
.mg-switch label { padding: 6px 12px; cursor: pointer; color: var(--ink-dim); }
.mg-switch label:has(input:checked) { background: var(--accent); color: #fff; }
.mg-switch label:has(input:focus-visible) { outline: 3px solid var(--warm); outline-offset: -3px; }
.measure-guide:has(#mg-f:checked) .mg-fig-h, .measure-guide:has(#mg-h:checked) .mg-fig-f { display: none; }
.mg-tips { min-height: 4.2em; align-self: start; }
.mg-tip { display: none; margin: 0; font-size: .84rem; line-height: 1.35; color: var(--ink); }
.mg-tip strong { color: var(--warm); }
.mg-tip-idle { display: block; color: var(--ink-dim); }
.mtm-measures:has(.mtm-fields input[id^="m-"]:focus) .mg-tip-idle { display: none; }
@keyframes mg-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes mg-pulse { 50% { stroke-width: 4.6; } }
@keyframes mg-pop { from { transform: scale(0); } to { transform: scale(1); } }
.mg-end { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) { .mg-k * { animation: none !important; } }
@media (min-width: 760px) {
  .mtm-measures { grid-template-columns: 240px 1fr; align-items: start; }
  .measure-guide { top: 76px; grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .mg-svg { grid-column: 1; grid-row: 2; width: 200px; height: 350px; }
  .mg-switch { grid-column: 1; grid-row: 1; justify-self: center; }
  .mg-tips { grid-column: 1; grid-row: 3; }
}

/* === Responsive === */
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; }
  .steps, .trust-list { grid-template-columns: repeat(3, 1fr); }
  .step { grid-template-columns: 1fr; }
  .trust-item { flex-direction: column; }
  .filter-form { grid-template-columns: 1fr 1fr auto; align-items: end; }
  .filter-actions { grid-column: auto; }
}
@media (min-width: 960px) {
  .hero { margin: 16px 0 0; border-radius: var(--r-md); padding: 64px 56px 72px; }
  .hero.compact { padding: 28px 40px 34px; }
  .toolbar, .trust { margin-left: 0; margin-right: 0; }
  .toolbar { padding-left: 0; padding-right: 0; }
  .chip-bar { margin: 0; padding: 0; }
  .trust { border-radius: var(--r-md); padding: 36px 32px; margin-bottom: 32px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-inner { grid-template-columns: 1fr 1fr; align-items: end; }
  .plans { grid-template-columns: 1fr 1fr; }
  .steps-4 { grid-template-columns: repeat(4, 1fr); }

  .detail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .gallery-hint { display: none; }
  .detail-info { position: sticky; top: 76px; padding-top: 0; }
}

/* === Accessibilite === */
@media (prefers-reduced-motion: reduce) {
  .card-media img, .filters-toggle svg { transition: none; }
  .card-link:hover .card-media img { transform: none; }
  .skeleton { animation: none; background: var(--surface-sunk); }
  .gallery { scroll-behavior: auto; }
}
