/*
 * Atelier Lueur — boutique de démonstration réalisée par Atrixa
 * Thème clair, tons doux. Polices système uniquement.
 */

:root {
  --creme: #fbf7f1;
  --papier: #fffdf9;
  --sable: #f3ebe1;
  --sable-2: #ebe0d3;
  --bordure: #e3d6c7;
  --encre: #2b2420;
  --encre-2: #5a4f48;
  --terracotta: #9a4a2e;
  --terracotta-f: #7c3920;
  --terracotta-clair: #f6e4da;
  --sauge: #4d5d45;
  --sauge-clair: #e4e9dd;
  --alerte: #8f3a1c;
  --ombre-s: 0 1px 2px rgba(60, 40, 25, .06);
  --ombre: 0 1px 2px rgba(60, 40, 25, .05), 0 10px 30px rgba(60, 40, 25, .08);
  --ombre-l: 0 20px 60px rgba(43, 36, 32, .22);
  --rayon: 20px;
  --rayon-m: 14px;
  --rayon-s: 10px;
  --demo-h: 44px;
  --entete-h: 72px;
  --gouttiere: clamp(16px, 4vw, 40px);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: .25s cubic-bezier(.2, .7, .3, 1);
}

@media (max-width: 720px) {
  :root { --demo-h: 62px; --entete-h: 64px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--demo-h) + var(--entete-h) + 16px);
}

body {
  margin: 0;
  padding-top: var(--demo-h);
  background: var(--creme);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

html.panier-actif, html.panier-actif body { overflow: hidden; }

img, svg { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--encre);
}

p { margin: 0 0 1em; }

a { color: var(--terracotta); text-underline-offset: .18em; }
a:hover { color: var(--terracotta-f); }

button, input, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.conteneur {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}
.conteneur--etroit { max-width: 860px; }

.evitement {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 200;
  padding: .7em 1.1em;
  background: var(--encre);
  color: #fff;
  border-radius: var(--rayon-s);
  transform: translateY(-160%);
  transition: transform var(--transition);
}
.evitement:focus { transform: none; color: #fff; }

[hidden] { display: none !important; }
.insecable { white-space: nowrap; }

/* ---------- Bandeau de démonstration ---------- */
.demo-bandeau {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .25rem 1.25rem;
  min-height: 44px;
  padding: .45rem var(--gouttiere);
  background: var(--encre);
  color: #f7efe6;
  font-size: .875rem;
  line-height: 1.4;
  text-align: center;
}
.demo-bandeau p { margin: 0; }
.demo-bandeau strong { color: #fff; font-weight: 600; }
.demo-liens { display: flex; flex-wrap: wrap; justify-content: center; gap: .15rem 1rem; }
.demo-liens a {
  color: #f6c9a9;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.demo-liens a:hover { color: #fff; }
.demo-bandeau :focus-visible { outline-color: #f6c9a9; }
@media (max-width: 720px) {
  .demo-bandeau { min-height: 0; font-size: .78rem; line-height: 1.3; padding-block: .35rem; gap: .1rem 1rem; }
}

/* ---------- En-tête ---------- */
.entete {
  position: sticky;
  top: var(--demo-h);
  z-index: 100;
  background: rgba(251, 247, 241, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--bordure);
}
.entete-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--encre);
  text-decoration: none;
  margin: 0;
}
.logo:hover { color: var(--encre); }
.logo-icone { flex: none; }
.logo-texte {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.05;
}
.logo-texte small {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--encre-2);
  margin-top: 3px;
}

.nav ul {
  display: flex;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: block;
  padding: .55rem .8rem;
  border-radius: 999px;
  color: var(--encre);
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.nav a:hover { background: var(--sable); color: var(--terracotta-f); }

.entete-actions { display: flex; align-items: center; gap: .35rem; }

.icone-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--encre);
  cursor: pointer;
  transition: background var(--transition);
}
.icone-btn:hover { background: var(--sable); }

.menu-btn { display: none; }
.menu-btn path { stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform var(--transition), opacity var(--transition); transform-origin: 12px 12px; }
.menu-btn[aria-expanded="true"] .menu-l1 { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-l2 { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-l3 { transform: translateY(-5px) rotate(-45deg); }

.panier-btn { background: var(--sable); }
.panier-btn:hover { background: var(--sable-2); }
.panier-compteur {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  line-height: 21px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--creme);
}
.panier-btn.rebond { animation: rebond .5s ease; }
@keyframes rebond {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.14); }
  65% { transform: scale(.96); }
}

@media (max-width: 899px) {
  .menu-btn { display: inline-grid; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--papier);
    border-bottom: 1px solid var(--bordure);
    box-shadow: 0 18px 30px rgba(43, 36, 32, .1);
    padding: .5rem var(--gouttiere) 1rem;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition), visibility 0s linear .25s;
    max-height: calc(100vh - var(--demo-h) - var(--entete-h));
    overflow-y: auto;
  }
  .nav.ouvert {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity var(--transition), transform var(--transition);
  }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li + li { border-top: 1px solid var(--sable); }
  .nav a { padding: .9rem .25rem; border-radius: 0; font-size: 1.05rem; }
  .nav a:hover { background: transparent; }
  .entete-in { min-height: 64px; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .65rem 1.3rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn svg { flex: none; }
.btn--plein { background: var(--terracotta); color: #fff; }
.btn--plein:hover { background: var(--terracotta-f); color: #fff; box-shadow: 0 6px 18px rgba(154, 74, 46, .28); }
.btn--plein:active { transform: translateY(1px); }
.btn--contour { border-color: var(--encre); color: var(--encre); background: transparent; }
.btn--contour:hover { background: var(--encre); color: #fff; }
.btn--large { min-height: 52px; padding: .8rem 1.6rem; font-size: 1.02rem; }
.btn--petit { min-height: 40px; padding: .5rem .95rem; font-size: .92rem; }
.btn--inactif, .btn:disabled {
  background: var(--sable-2);
  color: #5a4f48;
  cursor: not-allowed;
  box-shadow: none;
}

.lien-btn {
  padding: .25rem 0;
  border: 0;
  background: none;
  color: var(--terracotta);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
}
.lien-btn:hover { color: var(--terracotta-f); }

/* ---------- Titres de section ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

.surtitre {
  margin: 0 0 .7rem;
  color: var(--terracotta);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-tete { max-width: 680px; margin-bottom: 2rem; }
.section-tete h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-tete h2:focus { outline: none; }
.section-tete h2:focus-visible { outline: 3px solid var(--terracotta); }
.section-intro { color: var(--encre-2); font-size: 1.05rem; }
.section-tete--centre { margin-inline: auto; text-align: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, #f6e1cf 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, var(--sauge-clair) 0%, transparent 70%),
    var(--creme);
}
.hero-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
}
.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
.hero h1 em { font-style: italic; color: var(--terracotta); }
.hero-intro { max-width: 36rem; font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: var(--encre-2); margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.hero-mini { display: flex; align-items: center; gap: .5rem; margin: 0; color: var(--sauge); font-weight: 600; font-size: .95rem; }

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 540px;
  justify-self: center;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 4% 8% 0 8%;
  border-radius: 999px 999px 32px 32px;
  background: linear-gradient(180deg, #f3dcc8 0%, #f8ece0 100%);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .35);
}
.hero-art-principal {
  position: absolute;
  inset: 8% 14% 6% 14%;
}
.hero-art-secondaire {
  position: absolute;
  width: 40%;
  aspect-ratio: 1;
  border-radius: 28px;
  background: var(--papier);
  box-shadow: var(--ombre);
  padding: 2%;
}
.hero-art-secondaire--1 { left: -2%; bottom: 2%; background: #f6e4e0; }
.hero-art-secondaire--2 { right: -2%; top: 2%; width: 31%; background: #e4e8e0; }
.hero-art svg { display: block; width: 100%; height: 100%; }

@media (max-width: 860px) {
  .hero-grille { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 420px; order: -1; width: 88%; }
}

/* ---------- Réassurance ---------- */
.reassurance {
  background: var(--papier);
  border-block: 1px solid var(--bordure);
}
.reassurance-liste {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0 auto;
  padding-block: 1.75rem;
  list-style: none;
}
.reassurance-liste li { display: flex; align-items: flex-start; gap: .85rem; }
.reassurance-icone {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--terracotta-clair);
  color: var(--terracotta);
}
.reassurance h2 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: .1rem 0 .15rem; letter-spacing: 0; }
.reassurance p { margin: 0; color: var(--encre-2); font-size: .9rem; line-height: 1.45; }

@media (max-width: 1000px) { .reassurance-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .reassurance-liste { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; } }

/* ---------- Outils (filtres + tri) ---------- */
.outils {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}
.filtres { display: flex; flex-wrap: wrap; gap: .5rem; }
.filtre {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .5rem 1rem;
  border: 1.5px solid var(--bordure);
  border-radius: 999px;
  background: var(--papier);
  color: var(--encre);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.filtre:hover { border-color: var(--encre-2); }
.filtre-nb {
  min-width: 1.6em;
  padding: .05em .45em;
  border-radius: 999px;
  background: var(--sable);
  color: var(--encre-2);
  font-size: .78rem;
  text-align: center;
}
.filtre[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: #fff; }
.filtre[aria-pressed="true"] .filtre-nb { background: rgba(255, 255, 255, .18); color: #fff; }

.tri { display: flex; align-items: center; gap: .6rem; }
.tri label { font-weight: 600; font-size: .92rem; color: var(--encre-2); white-space: nowrap; }
.tri select {
  min-height: 44px;
  padding: .5rem 2.4rem .5rem 1rem;
  border: 1.5px solid var(--bordure);
  border-radius: 999px;
  background: var(--papier) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232b2420' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 1rem center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  max-width: 100%;
}
.resultat { margin: 0 0 1.5rem; color: var(--encre-2); font-size: .92rem; }

@media (max-width: 560px) {
  .outils { align-items: stretch; flex-direction: column; }
  .filtres { gap: .4rem; }
  .filtre { padding: .45rem .8rem; }
  .tri { justify-content: space-between; }
  .tri select { flex: 1; }
}

/* ---------- Grille & cartes produits ---------- */
.grille {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.9rem, 2vw, 1.6rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.grille > li { display: flex; min-width: 0; }
.grille-noscript { grid-column: 1 / -1; }

@media (max-width: 1100px) { .grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.carte {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--papier);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.carte:hover { box-shadow: var(--ombre); transform: translateY(-3px); border-color: var(--sable-2); }
.carte:focus-within { box-shadow: var(--ombre); }
.carte:has(.carte-nom a:focus-visible) { outline: 3px solid var(--terracotta); outline-offset: 3px; }

.carte-visuel {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--fond, var(--sable));
}
.carte-visuel .visuel-svg {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.carte:hover .visuel-svg { transform: scale(1.04); }
.carte--rupture .visuel-svg { filter: saturate(.55); opacity: .85; }

.badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: var(--sauge);
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.badge--rupture { background: var(--encre-2); }

.carte-corps {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.1rem 1.1rem;
}
.carte-cat {
  margin: 0 0 .25rem;
  color: var(--sauge);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.carte-nom {
  margin: 0 0 .3rem;
  font-size: 1.14rem;
  line-height: 1.25;
}
.carte-nom a { color: var(--encre); text-decoration: none; }
.carte-nom a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.carte-nom a:hover { color: var(--terracotta-f); }
.carte-nom a:focus-visible { outline: none; }
.carte-accroche { margin: 0 0 .5rem; color: var(--encre-2); font-size: .9rem; line-height: 1.45; }

.stock { margin: 0 0 .8rem; font-size: .84rem; font-weight: 600; line-height: 1.35; display: flex; align-items: flex-start; gap: .4rem; }
.stock::before { content: ""; width: 8px; height: 8px; margin-top: calc(.675em - 4px); border-radius: 50%; background: currentColor; flex: none; }
.stock--ok { color: #3f5a37; }
.stock--faible { color: var(--alerte); }
.stock--rupture { color: var(--encre-2); }

.carte-pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin-top: auto;
}
.prix { margin: 0; font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.carte-pied .btn { position: relative; z-index: 2; }

@media (max-width: 560px) {
  .carte-corps { padding: .8rem .8rem .9rem; }
  .carte-nom { font-size: 1rem; }
  .carte-accroche { display: none; }
  .stock { font-size: .78rem; margin-bottom: .6rem; }
  .carte-pied { flex-direction: column; align-items: stretch; gap: .5rem; }
  .carte-pied .btn { width: 100%; }
  .prix { font-size: 1.05rem; }
  .badge { top: .5rem; left: .5rem; font-size: .68rem; padding: .25rem .55rem; }
}

/* ---------- L'atelier ---------- */
.atelier { background: var(--sable); }
.atelier-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.atelier-visuel { position: relative; }
.atelier-mosaique {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.6rem, 1.5vw, 1rem);
}
.mosaique-tuile {
  aspect-ratio: 1;
  border-radius: var(--rayon);
  background: var(--fond);
  overflow: hidden;
}
.mosaique-tuile:nth-child(1) { border-radius: 120px 120px var(--rayon) var(--rayon); }
.mosaique-tuile:nth-child(4) { border-radius: var(--rayon) var(--rayon) 120px 120px; }
.mosaique-tuile svg { display: block; width: 100%; height: 100%; }
.atelier-carte {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-4deg);
  margin: 0;
  padding: .8rem 1.1rem;
  background: var(--papier);
  border-radius: var(--rayon-s);
  box-shadow: var(--ombre);
  font-family: var(--serif);
  font-size: 1rem;
  text-align: center;
  white-space: nowrap;
}
.atelier-carte span { display: block; color: var(--terracotta); font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.atelier-texte h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.atelier-texte > p { color: var(--encre-2); font-size: 1.04rem; }
.chiffres {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 1.25rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--bordure);
  list-style: none;
}
.chiffres strong { display: block; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--terracotta); line-height: 1.1; }
.chiffres span { display: block; color: var(--encre-2); font-size: .88rem; line-height: 1.35; margin-top: .25rem; }
.note-demo { margin: 0; font-size: .85rem; font-style: italic; color: var(--encre-2); }

@media (max-width: 860px) {
  .atelier-grille { grid-template-columns: minmax(0, 1fr); }
  .atelier-visuel { max-width: 460px; width: 100%; margin-inline: auto; }
}

/* ---------- Avis ---------- */
.etiquette-demo {
  display: inline-block;
  margin: .25rem 0 0;
  padding: .35rem .9rem;
  border: 1.5px dashed var(--terracotta);
  border-radius: 999px;
  background: var(--terracotta-clair);
  color: var(--terracotta-f);
  font-size: .85rem;
  font-weight: 700;
}
.avis-grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.avis-carte {
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--papier);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
}
.avis-carte figure { margin: 0; display: flex; flex-direction: column; height: 100%; }
.etoiles { margin: 0 0 .8rem; color: #a2601b; font-size: 1.1rem; letter-spacing: .12em; }
.etoile-vide { color: #cdbfae; }
.avis-carte blockquote { margin: 0 0 1.2rem; flex: 1; }
.avis-carte blockquote p { margin: 0; font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; }
.avis-carte figcaption { color: var(--encre-2); font-size: .9rem; }
.avis-carte figcaption strong { color: var(--encre); }
.avis-fictif { font-style: italic; }

@media (max-width: 900px) { .avis-grille { grid-template-columns: minmax(0, 1fr); max-width: 620px; margin-inline: auto; } }

/* ---------- Encart Atrixa ---------- */
.section-demo { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.demo-encart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}
.demo-encart > div { flex: 1 1 420px; min-width: 0; }
.section-demo .conteneur {
  max-width: calc(1240px - 2 * var(--gouttiere));
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--sauge) 0%, #3c4a36 100%);
  color: #f3f1ea;
}
@media (max-width: 1280px) {
  .section-demo .conteneur { width: calc(100% - 2 * var(--gouttiere)); }
}
.section-demo .surtitre { color: #f2d3b6; }
.section-demo h2 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.section-demo p { margin: 0; color: #eceae2; max-width: 38rem; }
.section-demo .btn--plein { background: var(--creme); color: var(--encre); }
.section-demo .btn--plein:hover { background: #fff; color: var(--encre); }
.section-demo :focus-visible { outline-color: #f2d3b6; }

/* ---------- Pied de page ---------- */
.pied {
  background: var(--encre);
  color: #e9e1d8;
  padding-top: clamp(3rem, 6vw, 4.5rem);
  font-size: .95rem;
}
.pied a { color: #f6c9a9; }
.pied a:hover { color: #fff; }
.pied :focus-visible { outline-color: #f6c9a9; }
.pied-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1.3fr);
  gap: 2.5rem;
}
.pied h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.pied ul { margin: 0; padding: 0; list-style: none; }
.pied li + li { margin-top: .5rem; }
.pied-col a { text-decoration: none; }
.pied-col a:hover { text-decoration: underline; }
.logo--pied { margin-bottom: 1rem; color: #fff; }
.logo--pied .logo-texte { color: #fff; }
.pied address { font-style: normal; color: #d8cfc5; line-height: 1.7; }
.pied-newsletter p { color: #d8cfc5; }
.pied-newsletter label { display: block; margin-bottom: .4rem; font-weight: 600; color: #fff; font-size: .9rem; }
.champ-groupe { display: flex; gap: .5rem; flex-wrap: wrap; }
.champ-groupe input {
  flex: 1 1 180px;
  min-width: 0;
  min-height: 46px;
  padding: .6rem 1rem;
  border: 1.5px solid #6d625b;
  border-radius: 999px;
  background: #3a322d;
  color: #fff;
}
.champ-groupe input::placeholder { color: #b9aea4; }
.champ-groupe input:focus-visible { outline: 3px solid #f6c9a9; outline-offset: 2px; }
.champ-groupe .btn { min-height: 46px; flex: 0 0 auto; }
.pied .btn--plein { background: #f6c9a9; color: var(--encre); }
.pied .btn--plein:hover { background: #fff; color: var(--encre); box-shadow: none; }
.form-message { margin: .6rem 0 0; min-height: 1.5em; color: #fff; font-weight: 600; font-size: .9rem; }
.form-message:not(:empty)::before { content: "ⓘ "; color: #f6c9a9; }
.pied-bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  margin-top: 3rem;
  padding-block: 1.5rem;
  border-top: 1px solid #4a403a;
  color: #cfc5bb;
  font-size: .86rem;
}
.pied-bas p { margin: 0; }

@media (max-width: 1000px) { .pied-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pied-grille { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }

/* ---------- Tiroir panier ---------- */
.panier-voile {
  position: fixed;
  inset: var(--demo-h) 0 0 0;
  z-index: 110;
  background: rgba(43, 36, 32, .45);
  opacity: 0;
  transition: opacity .3s ease;
}
.panier-voile.ouvert { opacity: 1; }

.panier {
  position: fixed;
  top: var(--demo-h);
  right: 0;
  bottom: 0;
  z-index: 115;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  background: var(--papier);
  box-shadow: var(--ombre-l);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.2, .7, .3, 1);
}
.panier.ouvert { transform: none; }

.panier-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 1rem 1.4rem;
  border-bottom: 1px solid var(--bordure);
}
.panier-tete h2 { margin: 0; font-size: 1.45rem; }
.panier-tete .icone-btn { background: var(--sable); }

.panier-livraison { padding: .9rem 1.4rem 1rem; background: var(--sable); }
.panier-livraison-texte { margin: 0 0 .55rem; font-size: .9rem; }
.jauge { height: 6px; border-radius: 999px; background: #e0d3c4; overflow: hidden; }
.jauge-remplie { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--terracotta); transition: width .4s ease; }
.panier-livraison.atteint .jauge-remplie { background: var(--sauge); }

.panier-corps { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: .5rem 1.4rem; }
.panier-lignes { margin: 0; padding: 0; list-style: none; }

.ligne {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: .9rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--sable-2);
}
.ligne:last-child { border-bottom: 0; }
.ligne-visuel { aspect-ratio: 1; border-radius: var(--rayon-s); background: var(--fond); overflow: hidden; }
.ligne-visuel svg { display: block; width: 100%; height: 100%; }
.ligne-infos { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; min-width: 0; }
.ligne-nom { color: var(--encre); font-weight: 600; line-height: 1.3; text-decoration: none; }
.ligne-nom:hover { text-decoration: underline; color: var(--terracotta-f); }
.ligne-pu { color: var(--encre-2); font-size: .84rem; }
.ligne-droite { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.ligne-total { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.panier-vide { padding: 3rem 1rem; text-align: center; color: var(--encre-2); }
.panier-vide svg { color: #b9a893; margin-bottom: .5rem; }

.panier-pied { padding: 1rem 1.4rem 1.2rem; border-top: 1px solid var(--bordure); background: var(--papier); }
.panier-totaux { margin: 0 0 1rem; }
.panier-totaux div { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; }
.panier-totaux dt { color: var(--encre-2); }
.panier-totaux dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.panier-total { margin-top: .35rem; padding-top: .6rem !important; border-top: 1px dashed var(--bordure); }
.panier-total dt, .panier-total dd { color: var(--encre); font-size: 1.15rem; font-weight: 700; }
.panier-pied .btn { width: 100%; }
.panier-message:not(:empty) {
  margin-top: .8rem;
  padding: .8rem 1rem;
  border-radius: var(--rayon-s);
  background: var(--terracotta-clair);
  border-left: 4px solid var(--terracotta);
  color: var(--encre);
  font-size: .9rem;
  line-height: 1.45;
}
.panier-message p { margin: 0; }
.panier-note { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: .8rem 0 0; color: var(--encre-2); font-size: .8rem; }

@media (max-width: 420px) {
  .panier-tete { padding-left: 1rem; }
  .panier-livraison, .panier-corps, .panier-pied { padding-inline: 1rem; }
  .ligne { grid-template-columns: 60px minmax(0, 1fr); }
  .ligne-droite { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Sélecteur de quantité ---------- */
.qte {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--bordure);
  border-radius: 999px;
  background: var(--papier);
}
.qte button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--encre);
  border-radius: 999px;
  cursor: pointer;
}
.qte button:hover { background: var(--sable); }
.qte button[aria-disabled="true"], .qte button:disabled { color: #9b8f86; cursor: not-allowed; background: transparent; }
.qte input {
  width: 3rem;
  height: 48px;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qte input::-webkit-outer-spin-button, .qte input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qte input:focus-visible { outline-offset: -2px; }
.qte--petit { margin-top: .4rem; }
.qte--petit button { width: 36px; height: 36px; }
.qte-valeur { min-width: 1.8rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Fiche produit ---------- */
.page-produit { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 8vw, 6rem); }

.ariane ol {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: .9rem;
  color: var(--encre-2);
}
.ariane li + li::before { content: "/"; margin-right: .5rem; color: #a89a8e; }
.ariane a { color: var(--encre-2); }
.ariane a:hover { color: var(--terracotta-f); }
.ariane [aria-current] { color: var(--encre); font-weight: 600; }

.fiche {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: start;
}
.fiche-visuel {
  position: relative;
  aspect-ratio: 1;
  border-radius: 28px;
  background: var(--fond);
  overflow: hidden;
}
@media (min-width: 861px) {
  .fiche-visuel { position: sticky; top: calc(var(--demo-h) + var(--entete-h) + 1.5rem); }
}
.fiche-visuel .visuel-svg { display: block; width: 100%; height: 100%; }
.fiche-visuel .badge { top: 1.1rem; left: 1.1rem; font-size: .82rem; padding: .4rem .9rem; }

.fiche-titre { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: .35rem; }
.fiche-accroche { color: var(--encre-2); font-size: 1.08rem; margin-bottom: 1rem; }
.fiche-prix { margin: 0 0 .5rem; font-size: 1.9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.fiche-prix span { font-size: .9rem; font-weight: 600; color: var(--encre-2); }
.fiche-infos .stock { font-size: .92rem; margin-bottom: 1.2rem; }
.fiche-desc { font-size: 1.04rem; color: var(--encre-2); margin-bottom: 1.5rem; }

.fiche-achat {
  padding: 1.25rem;
  border-radius: var(--rayon);
  background: var(--sable);
  margin-bottom: 1.4rem;
}
.fiche-achat-ligne { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .9rem; }
.champ-qte label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .9rem; }
.fiche-achat-ligne > .btn { flex: 1 1 240px; }
.fiche-aide { margin: .5rem 0 0; min-height: 1.3em; font-size: .88rem; color: var(--encre-2); }
.fiche-aide:empty { min-height: 0; margin: 0; }
.fiche-dans-panier {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .8rem;
  margin: .7rem 0 0;
  font-size: .92rem;
  color: #3f5a37;
  font-weight: 600;
}

.fiche-garanties {
  display: grid;
  gap: .6rem;
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
  font-size: .94rem;
}
.fiche-garanties li { display: flex; align-items: center; gap: .65rem; }
.fiche-garanties svg { color: var(--terracotta); flex: none; }

.fiche-onglets { border-top: 1px solid var(--bordure); }
.fiche-onglets details { border-bottom: 1px solid var(--bordure); }
.fiche-onglets summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.fiche-onglets summary::-webkit-details-marker { display: none; }
.fiche-onglets summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  transition: transform var(--transition);
}
.fiche-onglets details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.fiche-onglets details > p, .fiche-onglets details > ul { margin: 0 0 1rem; color: var(--encre-2); }
.fiche-onglets details > ul { padding-left: 1.2rem; }

.associes { margin-top: clamp(3rem, 8vw, 5.5rem); }
.associes h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 1.4rem; }

@media (max-width: 860px) {
  .fiche { grid-template-columns: minmax(0, 1fr); }
  .fiche-visuel { max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 420px) {
  .fiche-achat { padding: 1rem; }
  .fiche-achat-ligne > .btn { flex-basis: 100%; }
}

.introuvable {
  max-width: 560px;
  margin: clamp(1rem, 6vw, 4rem) auto;
  text-align: center;
}
.introuvable h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.introuvable h1:focus { outline: none; }
.introuvable p { color: var(--encre-2); margin-bottom: 1.5rem; }
.introuvable svg { margin: 0 auto 1rem; display: block; }

/* ---------- Page texte (mentions) ---------- */
.page-texte { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 8vw, 5rem); }
.page-texte h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
.page-texte section { margin-top: 2.5rem; }
.page-texte section h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); }
.page-texte section p, .page-texte section li { color: var(--encre-2); }
.page-texte section strong { color: var(--encre); }
.page-texte ul { padding-left: 1.2rem; }
.page-texte li + li { margin-top: .4rem; }
.page-texte code { padding: .1em .35em; border-radius: 5px; background: var(--sable); font-size: .9em; }

.alerte-demo {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--rayon-m);
  background: var(--terracotta-clair);
  border: 1.5px solid #e6c3b1;
}
.alerte-demo svg { flex: none; color: var(--terracotta); margin-top: .1rem; }
.alerte-demo p { margin: 0; }
.alerte-demo p + p { margin-top: .6rem; }

.sommaire {
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--rayon-m);
  background: var(--papier);
  border: 1px solid var(--bordure);
}
.sommaire h2 { font-family: var(--sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .6rem; color: var(--encre-2); }
.sommaire ol { margin: 0; padding-left: 1.3rem; columns: 2; column-gap: 2rem; }
.sommaire li { break-inside: avoid; padding: .15rem 0; }
@media (max-width: 560px) { .sommaire ol { columns: 1; } }
.retour-boutique { margin-top: 3rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 130;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: .85rem 1.2rem;
  border-radius: var(--rayon-m);
  background: var(--encre);
  color: #fff;
  font-size: .94rem;
  font-weight: 500;
  box-shadow: var(--ombre-l);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast:empty { padding: 0; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Animation de flamme ---------- */
.flamme { transform-box: fill-box; transform-origin: 50% 100%; animation: vacille 2.6s ease-in-out infinite; }
@keyframes vacille {
  0%, 100% { transform: scale(1, 1) skewX(0); }
  30% { transform: scale(.96, 1.05) skewX(-2deg); }
  60% { transform: scale(1.03, .97) skewX(2deg); }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .carte:hover { transform: none; }
  .carte:hover .visuel-svg { transform: none; }
}
