/* ==========================================================================
   Darmi Vault - feuille de style principale
   --------------------------------------------------------------------------
   Parti pris graphique :
     - fond papier chaud plutot que blanc pur, pour reposer l oeil ;
     - un vert profond "coffre" en couleur principale, un corail en accent ;
     - titres en serif, interface en sans-serif : le contraste donne une
       identite editoriale plutot qu un rendu de gabarit generique ;
     - aucune police distante (RGPD + performance) : piles systeme uniquement ;
     - trames et illustrations en SVG produits pour le projet.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Jetons
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --paper:        #FAF8F4;
  --surface:      #FFFFFF;
  --surface-sunk: #F2EEE7;
  --surface-ink:  #15171A;

  /* Texte */
  --ink:        #15171A;
  --ink-soft:   #4D5259;
  --ink-mute:   #767C85;
  --ink-invert: #FBF9F6;

  /* Marque */
  --brand:      #0E5C4A;
  --brand-700:  #0A4537;
  --brand-500:  #15785F;
  --brand-100:  #DCEBE6;
  --brand-50:   #EDF5F2;

  /* Accent */
  --accent:     #CC4A24;
  --accent-700: #A93B1B;
  --accent-100: #FBE7DF;

  /* Signaux */
  --gold:    #A9791C;
  --ok:      #1C7A51;
  --ok-bg:   #E4F2EB;
  --warn:    #8A6008;
  --warn-bg: #FBF0D9;
  --danger:  #A62B21;
  --danger-bg: #FBE6E3;
  --info:    #1F5781;
  --info-bg: #E4EFF7;

  /* Traits */
  --line:        #E3DCD1;
  --line-strong: #CFC5B6;
  --line-dark:   #2A2D32;

  /* Rayons : volontairement mixtes (2 / 6 / 14) */
  --r-xs: 2px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* Ombres douces, teintees chaud */
  --shadow-xs: 0 1px 2px rgba(32, 26, 18, .06);
  --shadow-sm: 0 2px 6px rgba(32, 26, 18, .07);
  --shadow-md: 0 8px 22px -8px rgba(32, 26, 18, .18);
  --shadow-lg: 0 24px 48px -20px rgba(32, 26, 18, .28);

  /* Typographie */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
                  Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Rythme */
  --gutter: 20px;
  --max: 1280px;
  --max-narrow: 760px;
  --header-h: 68px;
}

/* --------------------------------------------------------------------------
   2. Reinitialisation
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.012em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.05rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1em; }

a {
  color: var(--brand-700);
  text-decoration: none;
  text-underline-offset: .22em;
  text-decoration-thickness: 1.5px;
}
a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

/* Anneau de focus visible et homogene partout */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: .7rem 1.1rem;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

.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;
}

/* --------------------------------------------------------------------------
   3. Gabarit
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--max-narrow); }
main { flex: 1 0 auto; }
.section { padding-block: clamp(2.2rem, 1.4rem + 3vw, 4rem); }
.section--tight { padding-block: 1.8rem; }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.8rem; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem;
}
.section-head h2 { margin: 0; }
.section-head h2::before {
  content: ""; display: inline-block;
  width: 10px; height: 10px; margin-right: .6rem;
  background: var(--accent);
  transform: translateY(-2px) rotate(45deg);
}
.section-head .link-more { font-size: .92rem; font-weight: 600; white-space: nowrap; }

/* --------------------------------------------------------------------------
   4. Barre utilitaire + en-tete
   -------------------------------------------------------------------------- */
.utility {
  background: var(--surface-ink);
  color: #D9DDD9;
  font-size: .82rem;
}
.utility .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 38px; flex-wrap: wrap;
}
.utility a { color: #EDEFEC; }
.utility__group { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.utility__pitch { display: inline-flex; align-items: center; gap: .45rem; }
.utility__pitch svg { width: 15px; height: 15px; flex: none; opacity: .85; }

.picker {
  display: inline-flex; align-items: center; gap: .35rem;
  background: transparent; border: 1px solid #3A3E44; color: inherit;
  border-radius: var(--r-pill); padding: .18rem .6rem;
  font-size: .8rem; cursor: pointer;
}
.picker:hover { border-color: #5B6066; }
.picker select {
  background: transparent; border: 0; color: inherit;
  font-size: .8rem; cursor: pointer; padding-right: .1rem;
}
.picker select option { color: #15171A; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 248, 244, .96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: .62rem; flex: none; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display); font-size: 1.22rem; font-weight: 600;
  color: var(--ink); letter-spacing: -.015em;
}
.brand__tag {
  font-size: .62rem; text-transform: uppercase; letter-spacing: .13em;
  color: var(--ink-mute); font-weight: 600;
}

/* Recherche */
.search { flex: 1 1 auto; min-width: 0; position: relative; }
.search__form {
  display: flex; align-items: stretch;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--surface); overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.search__form:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-100);
}
.search__scope {
  border: 0; background: var(--surface-sunk); color: var(--ink-soft);
  padding: 0 .7rem; font-size: .84rem; cursor: pointer;
  border-right: 1px solid var(--line); max-width: 42%;
}
.search__input {
  flex: 1 1 auto; min-width: 0; border: 0; background: transparent;
  padding: .62rem .9rem; font-size: .95rem;
}
.search__input::placeholder { color: var(--ink-mute); }
.search__submit {
  border: 0; background: var(--brand); color: #fff;
  padding: 0 1.05rem; cursor: pointer; display: grid; place-items: center;
  transition: background .15s;
}
.search__submit:hover { background: var(--brand-700); }
.search__submit svg { width: 18px; height: 18px; }

.suggestions {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 70;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-md);
  overflow: hidden; display: none;
}
.suggestions[data-open="1"] { display: block; }
.suggestions a {
  display: block; padding: .6rem .9rem; color: var(--ink); font-size: .92rem;
  border-bottom: 1px solid var(--line);
}
.suggestions a:last-child { border-bottom: 0; }
.suggestions a:hover, .suggestions a:focus { background: var(--brand-50); text-decoration: none; }

/* Actions d en-tete */
.header-actions { display: flex; align-items: center; gap: .3rem; flex: none; }
.header-action {
  display: inline-flex; flex-direction: column; align-items: center; gap: 1px;
  padding: .4rem .6rem; border-radius: var(--r-sm);
  color: var(--ink); font-size: .68rem; font-weight: 600;
  letter-spacing: .01em; position: relative; white-space: nowrap;
}
.header-action:hover { background: var(--surface-sunk); text-decoration: none; }
.header-action svg { width: 21px; height: 21px; }
.header-action__badge {
  position: absolute; top: .12rem; right: .22rem;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--accent); color: #fff;
  border-radius: var(--r-pill); font-size: .65rem; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}

/* Navigation par categories */
.catnav { background: var(--surface); border-bottom: 1px solid var(--line); }
.catnav .wrap {
  display: flex; gap: .2rem; align-items: center;
  overflow-x: auto; scrollbar-width: none; min-height: 44px;
}
.catnav .wrap::-webkit-scrollbar { display: none; }
.catnav a {
  padding: .45rem .78rem; border-radius: var(--r-sm);
  font-size: .88rem; font-weight: 500; color: var(--ink-soft);
  white-space: nowrap; position: relative;
}
.catnav a:hover { color: var(--brand-700); background: var(--brand-50); text-decoration: none; }
.catnav a[aria-current="page"] { color: var(--brand-700); font-weight: 650; }
.catnav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .78rem; right: .78rem; bottom: -1px;
  height: 2px; background: var(--accent);
}

.nav-toggle {
  display: none; border: 1px solid var(--line-strong); background: var(--surface);
  border-radius: var(--r-sm); padding: .45rem .55rem; cursor: pointer;
}

/* --------------------------------------------------------------------------
   5. Boutons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  --btn-bd: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .62rem 1.15rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd); border-radius: var(--r-sm);
  font-size: .94rem; font-weight: 600; line-height: 1.2;
  cursor: pointer; text-align: center;
  transition: transform .12s ease, box-shadow .15s, background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .55; cursor: not-allowed; transform: none; box-shadow: none;
}
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--accent  { --btn-bg: var(--accent); --btn-bd: var(--accent); }
.btn--accent:hover { --btn-bg: var(--accent-700); --btn-bd: var(--accent-700); }
.btn--ghost   { --btn-bg: transparent; --btn-fg: var(--brand-700); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bd: var(--brand); background: var(--brand-50); }
.btn--quiet   { --btn-bg: transparent; --btn-fg: var(--ink-soft); --btn-bd: transparent; }
.btn--quiet:hover { background: var(--surface-sunk); box-shadow: none; }
.btn--danger  { --btn-bg: var(--danger); --btn-bd: var(--danger); }
.btn--dark    { --btn-bg: var(--surface-ink); --btn-bd: var(--surface-ink); }
.btn--block   { width: 100%; }
.btn--lg      { padding: .85rem 1.6rem; font-size: 1.02rem; }
.btn--sm      { padding: .38rem .75rem; font-size: .84rem; }

.btn-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }

/* --------------------------------------------------------------------------
   6. Formulaires
   -------------------------------------------------------------------------- */
.field { margin-bottom: 1.05rem; }
.field > label, .label {
  display: block; margin-bottom: .32rem;
  font-size: .86rem; font-weight: 600; color: var(--ink-soft);
}
.field .req { color: var(--accent); margin-left: .15rem; }

.input, .select, .textarea {
  width: 100%;
  padding: .62rem .8rem;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-mute); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234D5259' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 11px;
  padding-right: 2.1rem;
}
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: var(--danger); background: #FFFCFB;
}
.field__error { display: block; margin-top: .3rem; color: var(--danger); font-size: .84rem; font-weight: 500; }
.field__hint  { display: block; margin-top: .3rem; color: var(--ink-mute); font-size: .83rem; }

.check {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .91rem; color: var(--ink-soft); cursor: pointer;
}
.check input { margin-top: .22rem; width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.check--card {
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: .75rem .85rem; background: var(--surface); margin-bottom: .5rem;
  transition: border-color .15s, background .15s;
}
.check--card:hover { border-color: var(--line-strong); }
.check--card:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

fieldset { border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.15rem; margin: 0 0 1.4rem; }
legend { padding: 0 .5rem; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }

/* --------------------------------------------------------------------------
   7. Messages
   -------------------------------------------------------------------------- */
.alert {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .8rem 1rem; border-radius: var(--r-sm);
  border: 1px solid transparent; border-left-width: 3px;
  font-size: .93rem; margin-bottom: .7rem;
}
.alert svg { width: 18px; height: 18px; flex: none; margin-top: .14rem; }
.alert--success { background: var(--ok-bg);     border-color: var(--ok);     color: #115238; }
.alert--error   { background: var(--danger-bg); border-color: var(--danger); color: #7D1F18; }
.alert--warning { background: var(--warn-bg);   border-color: var(--warn);   color: #6B4A06; }
.alert--info    { background: var(--info-bg);   border-color: var(--info);   color: #1A4260; }
.alert p:last-child { margin-bottom: 0; }

.flash-stack { position: sticky; top: calc(var(--header-h) + 8px); z-index: 50; }

.banner-demo {
  background: repeating-linear-gradient(135deg, #2A2D32, #2A2D32 12px, #34373D 12px, #34373D 24px);
  color: #FFE9A8; text-align: center; font-size: .83rem; font-weight: 600;
  padding: .45rem 1rem; letter-spacing: .02em;
}

/* --------------------------------------------------------------------------
   8. Cartes produit
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
}
.product-grid--compact { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: .8rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .16s ease, box-shadow .18s ease, border-color .18s;
  position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }

.card__media {
  position: relative; display: block;
  aspect-ratio: 4 / 5; background: var(--surface-sunk); overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.035); }
.card__media--empty { display: grid; place-items: center; color: var(--ink-mute); }

.card__body { padding: .75rem .85rem .9rem; display: flex; flex-direction: column; gap: .28rem; flex: 1; }
.card__shop {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink-mute); font-weight: 650;
}
.card__title {
  font-family: var(--font-sans); font-size: .95rem; font-weight: 550;
  line-height: 1.35; margin: 0; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__title a { color: inherit; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__price { margin-top: auto; padding-top: .35rem; display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; }

.price {
  font-family: var(--font-display);
  font-size: 1.22rem; font-weight: 650; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.price--lg { font-size: 1.95rem; }
.price--was { font-size: .88rem; color: var(--ink-mute); text-decoration: line-through; font-family: var(--font-sans); font-weight: 400; }
.price--converted { font-size: .8rem; color: var(--ink-mute); font-family: var(--font-sans); font-weight: 400; }

.badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .14rem .5rem; border-radius: var(--r-xs);
  font-size: .7rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  background: var(--surface-sunk); color: var(--ink-soft);
}
.badge--sale   { background: var(--accent); color: #fff; }
.badge--new    { background: var(--brand); color: #fff; }
.badge--stock  { background: var(--warn-bg); color: var(--warn); }
.badge--out    { background: var(--surface-sunk); color: var(--ink-mute); }
.badge--ok     { background: var(--ok-bg); color: var(--ok); }
.badge--danger { background: var(--danger-bg); color: var(--danger); }
.badge--info   { background: var(--info-bg); color: var(--info); }
.badge--demo   { background: #2A2D32; color: #FFE9A8; }

.card__flags { position: absolute; top: .55rem; left: .55rem; display: flex; flex-direction: column; gap: .3rem; z-index: 2; }

.fav-btn {
  position: absolute; top: .5rem; right: .5rem; z-index: 3;
  width: 32px; height: 32px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.92); border: 1px solid var(--line);
  display: grid; place-items: center; cursor: pointer; color: var(--ink-soft);
  transition: color .15s, border-color .15s;
}
.fav-btn:hover { color: var(--accent); border-color: var(--accent); }
.fav-btn[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.fav-btn svg { width: 16px; height: 16px; }

/* Notes */
.rating { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; color: var(--ink-mute); }
.stars { display: inline-flex; gap: 1px; color: var(--gold); }
.stars svg { width: 14px; height: 14px; }
.stars--lg svg { width: 18px; height: 18px; }
.stars .star--empty { color: var(--line-strong); }

/* --------------------------------------------------------------------------
   9. Accueil
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(170deg, #F4F0E8 0%, #EDEBE3 55%, #E7EEEA 100%);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 2.5rem; align-items: center;
  padding-block: clamp(2.4rem, 1.5rem + 4vw, 4.5rem);
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-700); margin-bottom: 1rem;
}
.hero__eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.hero h1 { margin-bottom: .7rem; max-width: 15ch; }
.hero__lede { font-size: clamp(1rem, .95rem + .3vw, 1.14rem); color: var(--ink-soft); max-width: 48ch; margin-bottom: 1.5rem; }
.hero__actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.hero__stats { display: flex; gap: 2rem; flex-wrap: wrap; padding-top: 1.2rem; border-top: 1px solid var(--line-strong); }
.hero__stat b {
  display: block; font-family: var(--font-display); font-size: 1.55rem;
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.hero__stat span { font-size: .78rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

/* Collage decale : composition propre au projet */
.hero__art { position: relative; aspect-ratio: 1 / .92; }
.hero__art figure { position: absolute; margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface); }
.hero__art figure:nth-child(1) { inset: 0 22% 26% 0; z-index: 2; }
.hero__art figure:nth-child(2) { inset: 18% 0 8% 38%; z-index: 1; }
.hero__art figure:nth-child(3) { inset: auto 28% 0 6%; height: 30%; z-index: 3; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero__art { max-width: 480px; margin-inline: auto; width: 100%; }
}

.tile-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.tile {
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1.1rem 1rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .18s;
}
.tile:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.tile__icon { width: 34px; height: 34px; color: var(--brand); }
.tile__name { font-weight: 600; font-size: .96rem; }
.tile__count { font-size: .78rem; color: var(--ink-mute); }

.reassure { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.reassure__item { display: flex; gap: .75rem; align-items: flex-start; }
.reassure__item svg { width: 26px; height: 26px; color: var(--brand); flex: none; }
.reassure__item b { display: block; font-size: .94rem; }
.reassure__item span { font-size: .85rem; color: var(--ink-mute); }

.editorial {
  background: var(--surface-ink); color: var(--ink-invert);
  border-radius: var(--r-lg); padding: clamp(1.8rem, 1.2rem + 2.5vw, 3rem);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center;
}
.editorial h2 { color: var(--ink-invert); }
.editorial p { color: #C8CCC9; }
@media (max-width: 760px) { .editorial { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   10. Catalogue (filtres + resultats)
   -------------------------------------------------------------------------- */
.catalog { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 1.8rem; align-items: start; }
@media (max-width: 900px) { .catalog { grid-template-columns: 1fr; } }

.filters {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1rem 1.05rem;
  position: sticky; top: calc(var(--header-h) + 12px);
}
.filters__group { padding-block: .85rem; border-bottom: 1px solid var(--line); }
.filters__group:last-child { border-bottom: 0; padding-bottom: 0; }
.filters__group:first-child { padding-top: 0; }
.filters__title { font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: var(--ink-mute); margin-bottom: .6rem; }
.filters__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.filters__list a { font-size: .9rem; color: var(--ink-soft); display: flex; justify-content: space-between; gap: .5rem; }
.filters__list a:hover { color: var(--brand-700); }
.filters__list a[aria-current="true"] { color: var(--brand-700); font-weight: 650; }
.filters__list .count { color: var(--ink-mute); font-size: .8rem; font-variant-numeric: tabular-nums; }
.price-range { display: flex; gap: .4rem; align-items: center; }
.price-range .input { padding: .42rem .55rem; font-size: .88rem; }

.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem;
  padding-bottom: .9rem; border-bottom: 1px solid var(--line);
}
.toolbar__count { font-size: .9rem; color: var(--ink-mute); }
.toolbar__count b { color: var(--ink); font-variant-numeric: tabular-nums; }

.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .6rem; background: var(--brand-50); color: var(--brand-700);
  border: 1px solid var(--brand-100); border-radius: var(--r-pill);
  font-size: .82rem; font-weight: 600;
}
.chip a { color: inherit; line-height: 1; font-size: 1.05rem; }

/* Filtre actif. Etait un style en ligne, qui l emportait aussi sur :hover :
   la regle couvre donc les deux etats. aria-current l annonce en plus aux
   lecteurs d ecran, qui ne percoivent pas la couleur. */
.chip.chip--active,
.chip.chip--active:hover { background: var(--brand); color: #fff; }

/* Selecteur de langue du pied de page. */
.btn.lang-switch,
.btn.lang-switch:hover { color: #8E948F; }
.btn.lang-switch--current,
.btn.lang-switch--current:hover { color: #fff; }

/* Repartition des notes sur la fiche produit. */
.rating-bar__fill { display: block; height: 100%; background: var(--gold); }

/* --------------------------------------------------------------------------
   11. Fiche produit
   -------------------------------------------------------------------------- */
.product { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 2.4rem; align-items: start; }
@media (max-width: 920px) { .product { grid-template-columns: 1fr; gap: 1.6rem; } }

.gallery { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: .7rem; }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } .gallery__thumbs { order: 2; display: flex; overflow-x: auto; } }
.gallery__thumbs { display: flex; flex-direction: column; gap: .5rem; }
.gallery__thumb {
  width: 68px; height: 85px; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); overflow: hidden; background: var(--surface-sunk);
  cursor: pointer; padding: 0; flex: none;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-selected="true"] { border-color: var(--brand); }
.gallery__main {
  border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; background: var(--surface); aspect-ratio: 4 / 5;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }

.breadcrumb { font-size: .84rem; color: var(--ink-mute); margin-bottom: 1rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb span[aria-current] { color: var(--ink); }

.buybox {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1.1rem 1.15rem; margin-top: 1.2rem;
}
.buybox__row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: stretch; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; }
.qty button { border: 0; background: var(--surface-sunk); width: 36px; cursor: pointer; color: var(--ink-soft); font-size: 1.1rem; }
.qty button:hover { background: var(--line); }
.qty input { border: 0; width: 52px; text-align: center; font-variant-numeric: tabular-nums; }

.variant-picker { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: .9rem; }
.variant-picker input { position: absolute; opacity: 0; pointer-events: none; }
.variant-picker label {
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  padding: .4rem .8rem; cursor: pointer; font-size: .9rem; background: var(--surface);
  transition: border-color .15s, background .15s;
}
.variant-picker label:hover { border-color: var(--ink-mute); }
.variant-picker input:checked + label { border-color: var(--brand); background: var(--brand-50); font-weight: 600; }
.variant-picker input:disabled + label { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.variant-picker input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; }

.ship-info { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .89rem; color: var(--ink-soft); }
.ship-info__row { display: flex; gap: .55rem; align-items: flex-start; }
.ship-info__row svg { width: 17px; height: 17px; color: var(--brand); flex: none; margin-top: .14rem; }

.prose { max-width: 70ch; }
.prose h2, .prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: .35em; }
.prose table { margin: 1.4em 0; font-size: .93rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; }
.prose th { background: var(--surface-sunk); font-weight: 650; }
.prose blockquote {
  margin: 1.4em 0; padding: .7em 1.1em; border-left: 3px solid var(--accent);
  background: var(--surface-sunk); border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-sunk); padding: .1em .35em; border-radius: var(--r-xs); }

/* --------------------------------------------------------------------------
   12. Panier et commande
   -------------------------------------------------------------------------- */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.8rem; align-items: start; }
@media (max-width: 920px) { .checkout-grid { grid-template-columns: 1fr; } }

.summary {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1.15rem;
  position: sticky; top: calc(var(--header-h) + 12px);
}
.summary__row { display: flex; justify-content: space-between; gap: 1rem; padding-block: .35rem; font-size: .93rem; }
.summary__row span:last-child { font-variant-numeric: tabular-nums; }
.summary__row--total {
  border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .7rem;
  font-size: 1.1rem; font-weight: 700;
}
.summary__row--total span:last-child { font-family: var(--font-display); font-size: 1.4rem; }
.summary__note { font-size: .8rem; color: var(--ink-mute); margin-top: .7rem; }

.line-item {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: .9rem;
  padding: .95rem 0; border-bottom: 1px solid var(--line);
}
.line-item:last-child { border-bottom: 0; }
.line-item__media { width: 88px; height: 110px; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-sunk); }
.line-item__media img { width: 100%; height: 100%; object-fit: cover; }
.line-item__title { font-weight: 550; margin-bottom: .2rem; }
.line-item__meta { font-size: .84rem; color: var(--ink-mute); }
.line-item__right { text-align: right; display: flex; flex-direction: column; gap: .5rem; align-items: flex-end; }
.line-item--unavailable { opacity: .62; }
@media (max-width: 560px) {
  .line-item { grid-template-columns: 68px minmax(0, 1fr); }
  .line-item__media { width: 68px; height: 85px; }
  .line-item__right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

.seller-group {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); margin-bottom: 1.1rem; overflow: hidden;
}
.seller-group__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem 1rem; background: var(--surface-sunk); border-bottom: 1px solid var(--line);
  font-size: .9rem; flex-wrap: wrap;
}
.seller-group__head b { font-weight: 650; }
.seller-group__body { padding: 0 1rem; }
.seller-group__foot { padding: .8rem 1rem; border-top: 1px solid var(--line); background: #FCFBF8; }

.steps { display: flex; gap: .5rem; align-items: center; margin-bottom: 1.8rem; flex-wrap: wrap; font-size: .86rem; }
.steps__item { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink-mute); }
.steps__item b {
  width: 23px; height: 23px; border-radius: var(--r-pill);
  background: var(--surface-sunk); color: var(--ink-mute);
  display: grid; place-items: center; font-size: .78rem;
}
.steps__item--done b { background: var(--brand); color: #fff; }
.steps__item--active { color: var(--ink); font-weight: 650; }
.steps__item--active b { background: var(--accent); color: #fff; }
.steps__sep { width: 22px; height: 1px; background: var(--line-strong); }

#payment-element { margin-block: 1rem; }

/* --------------------------------------------------------------------------
   13. Tableaux de bord (compte / vendeur / admin)
   -------------------------------------------------------------------------- */
.dash { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 1.8rem; align-items: start; }
@media (max-width: 880px) { .dash { grid-template-columns: 1fr; } }

.dash-nav {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: .5rem; position: sticky; top: calc(var(--header-h) + 12px);
}
.dash-nav__title {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-mute); font-weight: 700; padding: .7rem .75rem .35rem;
}
.dash-nav a {
  display: flex; align-items: center; gap: .55rem;
  padding: .5rem .75rem; border-radius: var(--r-sm);
  color: var(--ink-soft); font-size: .92rem; font-weight: 500;
}
.dash-nav a:hover { background: var(--surface-sunk); color: var(--ink); text-decoration: none; }
.dash-nav a[aria-current="page"] { background: var(--brand-50); color: var(--brand-700); font-weight: 650; }
.dash-nav svg { width: 17px; height: 17px; flex: none; }
.dash-nav .pill {
  margin-left: auto; background: var(--accent); color: #fff;
  border-radius: var(--r-pill); font-size: .7rem; font-weight: 700; padding: .05rem .4rem;
}

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1.15rem 1.2rem; margin-bottom: 1.2rem;
}
.panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin: -1.15rem -1.2rem 1.1rem; padding: .85rem 1.2rem;
  border-bottom: 1px solid var(--line); background: #FCFBF8;
  border-radius: var(--r-md) var(--r-md) 0 0; flex-wrap: wrap;
}
.panel__head h2, .panel__head h3 { margin: 0; font-size: 1.05rem; }

.stat-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 1.4rem; }
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: .95rem 1rem;
  border-left: 3px solid var(--brand);
}
.stat--accent { border-left-color: var(--accent); }
.stat--warn   { border-left-color: var(--warn); }
.stat--ok     { border-left-color: var(--ok); }
.stat__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-mute); font-weight: 650; }
.stat__value {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 650;
  line-height: 1.15; font-variant-numeric: tabular-nums; margin-top: .15rem;
}
.stat__hint { font-size: .8rem; color: var(--ink-mute); }

.table-wrap { overflow-x: auto; margin-inline: -1.2rem; padding-inline: 1.2rem; }
.table { font-size: .9rem; min-width: 560px; }
.table th {
  text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink-mute); font-weight: 700; padding: .55rem .6rem;
  border-bottom: 1.5px solid var(--line-strong); white-space: nowrap;
}
.table td { padding: .65rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover { background: #FCFBF8; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .thumb { width: 42px; height: 52px; border-radius: var(--r-xs); object-fit: cover; background: var(--surface-sunk); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1rem 1rem; font-size: .9rem; }
.timeline li::before {
  content: ""; position: absolute; left: -1.42rem; top: .42rem;
  width: 9px; height: 9px; border-radius: var(--r-pill);
  background: var(--surface); border: 2px solid var(--brand);
}
.timeline time { display: block; font-size: .78rem; color: var(--ink-mute); }

/* Graphique en barres (ventes) : pur CSS, sans dependance */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 110px; padding-top: .5rem; }
.bars__bar { flex: 1; background: var(--brand-100); border-radius: var(--r-xs) var(--r-xs) 0 0; min-height: 2px; position: relative; }
.bars__bar:hover { background: var(--brand); }

/* --------------------------------------------------------------------------
   14. Etats vides
   -------------------------------------------------------------------------- */
.empty {
  text-align: center; padding: clamp(2.2rem, 1.5rem + 3vw, 4rem) 1.2rem;
  border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg);
  background: var(--surface);
}
.empty__art { width: 108px; height: 108px; margin: 0 auto 1.2rem; color: var(--line-strong); }
.empty h2, .empty h3 { margin-bottom: .45rem; }
.empty p { color: var(--ink-mute); max-width: 46ch; margin-inline: auto; }
.empty .btn-row { justify-content: center; margin-top: 1.3rem; }

/* --------------------------------------------------------------------------
   15. Pagination
   -------------------------------------------------------------------------- */
.pagination { display: flex; gap: .3rem; justify-content: center; align-items: center; margin-top: 2rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; padding: 0 .6rem;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink-soft);
  font-size: .9rem; font-variant-numeric: tabular-nums;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand-700); text-decoration: none; }
.pagination [aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 650; }
.pagination .gap { border: 0; background: transparent; }

/* --------------------------------------------------------------------------
   16. Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--surface-ink); color: #B9BEBB;
  margin-top: 3.5rem; padding-block: 2.6rem 1.4rem; font-size: .9rem;
}
.site-footer a { color: #E2E6E3; }
.site-footer a:hover { color: #fff; text-decoration-color: var(--accent); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h3 {
  color: #fff; font-family: var(--font-sans); font-size: .76rem;
  text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin-bottom: .85rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__tag { color: #8E948F; }
.footer-legal {
  margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid #2E3238;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .82rem; color: #8E948F;
}

/* --------------------------------------------------------------------------
   17. Bandeau cookies
   -------------------------------------------------------------------------- */
.cookie-bar {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200;
  max-width: 620px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.2rem;
}
.cookie-bar h2 { font-size: 1.05rem; margin-bottom: .4rem; }
.cookie-bar p { font-size: .88rem; color: var(--ink-soft); margin-bottom: .9rem; }
.cookie-bar .btn-row { justify-content: flex-end; }
.cookie-bar[hidden] { display: none; }

/* --------------------------------------------------------------------------
   18. Divers
   -------------------------------------------------------------------------- */
.muted { color: var(--ink-mute); }
.small { font-size: .85rem; }
.tiny  { font-size: .78rem; }
.strong { font-weight: 650; }
.nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.6rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.6rem; }
.flex { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.flex-between { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grow { flex: 1 1 auto; }

.notice-box {
  border: 1px solid var(--line); border-left: 3px solid var(--info);
  background: var(--info-bg); border-radius: var(--r-sm);
  padding: .85rem 1rem; font-size: .9rem; margin-bottom: 1rem;
}
.notice-box--warn { border-left-color: var(--warn); background: var(--warn-bg); }
.notice-box--danger { border-left-color: var(--danger); background: var(--danger-bg); }
.notice-box h3 { font-size: .98rem; margin-bottom: .3rem; }
.notice-box p:last-child { margin-bottom: 0; }

details.accordion { border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: .6rem; background: var(--surface); }
details.accordion > summary {
  padding: .75rem 1rem; cursor: pointer; font-weight: 600; font-size: .94rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
details.accordion > summary::-webkit-details-marker { display: none; }
details.accordion > summary::after { content: "+"; font-size: 1.2rem; color: var(--ink-mute); }
details.accordion[open] > summary::after { content: "\2212"; }
details.accordion > div { padding: 0 1rem 1rem; }

.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: var(--r-pill); margin-right: .35rem; }
.status-dot--ok { background: var(--ok); }
.status-dot--warn { background: var(--warn); }
.status-dot--fail { background: var(--danger); }
.status-dot--idle { background: var(--line-strong); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .brand__tag { display: none; }
  .header-action span { display: none; }
  .utility__pitch { display: none; }
}
@media (max-width: 680px) {
  .search__scope { display: none; }
  .site-header .wrap { flex-wrap: wrap; padding-block: .6rem; }
  .search { order: 3; flex-basis: 100%; }
}

@media print {
  .site-header, .utility, .catnav, .site-footer, .cookie-bar, .btn, .dash-nav { display: none !important; }
  body { background: #fff; }
  .panel, .card { border-color: #ccc; box-shadow: none; }
}

/* ==========================================================================
   Refonte editoriale
   Texte d abord, aucune illustration decorative, peu d effets. Les regles
   ci-dessous surchargent les jetons et composants d origine.
   ========================================================================== */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-italic.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
}

:root {
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --paper: #F7F4EE;                 /* blanc casse chaud */
  --surface-sunk: #EFEAE1;
  /* Coins nets, ombres quasi absentes */
  --r-sm: 2px; --r-md: 3px; --r-lg: 4px;
  --shadow-xs: none;
  --shadow-sm: none;
  --shadow-md: 0 1px 3px rgba(32, 26, 18, .10);
  --shadow-lg: 0 4px 14px rgba(32, 26, 18, .12);   /* menus deroulants seulement */
  --measure: 65ch;
}
body { background: var(--paper); }

/* Titres : serif editoriale, interlignage serre, tailles franches */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.012em; line-height: 1.08; }
h1 { font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4.2rem); line-height: 1.02; }
h2 { font-size: clamp(1.65rem, 1.25rem + 1.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); }
main p { max-width: var(--measure); }
.section-head h2::before { content: none; }

/* Un seul style de bouton principal ; le secondaire est un lien souligne */
.btn:hover { transform: none; box-shadow: none; }
.btn--accent { --btn-bg: var(--brand); --btn-bd: var(--brand); }
.btn--accent:hover { --btn-bg: var(--brand-700); --btn-bd: var(--brand-700); }
.link-cta {
  font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em;
}
.link-cta:hover { color: var(--brand); text-decoration-thickness: 2px; }
.link-cta--light { color: var(--ink-invert); }
.link-cta--light:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.band :focus-visible { outline-color: #fff; }

.section--sunk { background: var(--surface-sunk); }
.section--last { padding-top: 0; }

/* Ouverture de page : texte aligne a gauche, photo seulement si fournie */
.lead { padding-block: clamp(2.8rem, 1.6rem + 6vw, 7rem) clamp(2rem, 1.4rem + 3vw, 4rem); }
.lead--compact { padding-bottom: clamp(1.6rem, 1rem + 2vw, 2.6rem); }
.lead__grid { display: grid; gap: clamp(1.8rem, 1rem + 3vw, 4rem); }
.lead__grid--photo { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
.lead h1 { max-width: 16ch; margin-bottom: 1.1rem; }
.lead__lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); line-height: 1.6; color: var(--ink-soft); max-width: 54ch; }
.lead__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.6rem; margin: 1.6rem 0 0; }
.lead__photo { margin: 0; }
.lead__photo img { width: 100%; height: auto; display: block; border-radius: var(--r-md); }
.lead__stats { display: flex; flex-wrap: wrap; gap: .4rem 2.4rem; margin: 2.2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line-strong); }
.lead__stats div { display: flex; align-items: baseline; gap: .45rem; }
.lead__stats dt { font-family: var(--font-display); font-size: 1.6rem; }
.lead__stats dd { margin: 0; color: var(--ink-mute); font-size: .92rem; }

/* Garanties : une ligne de texte, separateurs fins */
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.facts li { padding: .95rem 1.2rem; border-left: 1px solid var(--line); font-size: .86rem; line-height: 1.5; color: var(--ink-soft); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; color: var(--ink); font-weight: 600; }

/* Colonnes asymetriques : titre a gauche, contenu a droite */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 1.2rem 3rem; align-items: start; }
.split > h2 { margin: 0; max-width: 14ch; }

/* Ouverture du catalogue */
.launch { padding-block: clamp(2.4rem, 1.6rem + 3.5vw, 4.6rem); }
.launch__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 2rem 3.5rem; align-items: start; }
.launch h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); margin-bottom: .8rem; }
.launch p { font-size: 1.08rem; line-height: 1.6; }
.launch .launch__aside { color: var(--ink-soft); font-size: 1rem; }
.launch__form { background: var(--surface); border: 1px solid var(--line-strong); padding: 1.4rem 1.5rem; }
.launch__form h3 { margin-bottom: .9rem; }
.launch__form label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .35rem; }
.launch__row { display: flex; gap: .5rem; }
.launch__row .input { flex: 1; min-width: 0; }
.launch .launch__note { font-size: .84rem; color: var(--ink-mute); margin: .7rem 0 0; }

/* Index des categories : liste de liens, pas de cartes */
.cat-index { list-style: none; margin: 0; padding: 0; columns: 3 12rem; column-gap: 2rem; }
.cat-index li { break-inside: avoid; display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem 0; border-bottom: 1px solid var(--line); }
.cat-index a { color: var(--ink); font-weight: 600; }
.cat-index span { color: var(--ink-mute); font-variant-numeric: tabular-nums; }

/* Bandeau editorial pleine largeur */
.band { background: var(--surface-ink); color: var(--ink-invert); padding-block: clamp(2.6rem, 1.8rem + 3.5vw, 4.8rem); }
.band h2 { color: var(--ink-invert); }
.band p { color: #D3D6D2; font-size: 1.08rem; line-height: 1.65; }

/* Devenir vendeur */
.terms { margin: 0; }
.terms div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.terms div:first-child { border-top: 1px solid var(--line-strong); }
.terms dt { font-weight: 600; }
.terms dd { margin: 0; color: var(--ink-soft); }
.path { list-style: none; margin: 0; padding: 0; }
.path li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .6rem; padding: .85rem 0; border-bottom: 1px solid var(--line-strong); }
.path li:first-child { border-top: 1px solid var(--line-strong); }
.path li p { margin: 0; }
.path__n { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; color: var(--ink-mute); }
.path li.is-current .path__n { color: var(--brand); }
.path li .path__now { margin-top: .35rem; font-weight: 600; color: var(--brand-700); }
.docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2.4rem; }
.docs h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.docs ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); }

/* Catalogue sans filtres quand il n y a rien a filtrer */
.catalog--full { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 900px) {
  .lead__grid--photo, .launch__grid, .split { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts li { border-left: 0; padding-left: 0; padding-right: 0; }
  .facts li + li { border-top: 1px solid var(--line); }
  .launch__row { flex-direction: column; }
  .docs { grid-template-columns: minmax(0, 1fr); }
  .terms div { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
}
