/* Joli Comptoir : feuille de style unique, sans dépendance. */

/* Polices hébergées sur le site : aucune requête vers un service tiers. */
@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/familjen-grotesk.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-600.woff2") format("woff2");
}

:root {
  --ink: #000;
  --white: #fff;
  --brume: #eef0f3;      /* gris froid des fonds de section */
  --line: #d9dce2;
  --muted: #4b5059;
  --atelier: #2a36b8;    /* bleu atelier, seule couleur d'accent */
  --atelier-soft: #e3e6fa;
  --radius-frame: 44px;
  --frame: 14px;
  --notch: 36px;
  --gutter: max(1.5rem, calc((100% - 1240px) / 2));
  --font: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--ink); color: var(--white); padding: .7rem 1rem; border-radius: 999px;
}
.skip:focus { top: 1rem; }

/* Boutons ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: 0 1.6rem;
  border-radius: 999px; border: 1.5px solid var(--ink);
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--atelier); border-color: var(--atelier); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-small { min-height: 42px; padding: 0 1.1rem; font-size: .9375rem; }
.btn:disabled { opacity: .3; cursor: not-allowed; }
.btn-ink:disabled:hover { background: var(--ink); border-color: var(--ink); }
.btn-line:disabled:hover { background: transparent; color: var(--ink); }

/* En-tête ------------------------------------------------------------ */

.site-header {
  position: absolute; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.6rem calc(4vw + var(--frame));
}

.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: 1.375rem; letter-spacing: -.02em; text-decoration: none;
}
.brand-logo { display: block; height: 36px; width: auto; }
.brand-small .brand-logo { height: 26px; }

/* Sélecteur de langue : drapeaux dans un cercle */
.header-actions { display: flex; align-items: center; gap: .8rem; }
.langues { position: relative; }
.langue-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 42px; padding: 0 .7rem 0 .45rem; border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .12); background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-weight: 600; font-size: .875rem; cursor: pointer;
}
.langue-btn:hover { background: var(--white); border-color: var(--ink); }
.langue-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.langue-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.drapeau {
  width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none;
  box-shadow: 0 0 0 1.5px var(--white), 0 0 0 2.5px rgba(0, 0, 0, .14);
}
.langues-menu {
  position: absolute; right: 0; top: calc(100% + .5rem); z-index: 20;
  min-width: 200px; margin: 0; padding: .4rem; list-style: none;
  background: var(--white); border-radius: 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 20px 44px -16px rgba(20, 24, 40, .35);
}
.langues-menu[hidden] { display: none; }
.langues-menu a {
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem .7rem; border-radius: 12px; text-decoration: none; font-weight: 500;
}
.langues-menu a .drapeau { width: 22px; height: 22px; }
.langues-menu a:hover { background: var(--brume); }
.langues-menu a[aria-current="true"] { background: var(--atelier-soft); color: var(--atelier); font-weight: 600; }

/* Chinois : polices du système pour les idéogrammes */
:lang(zh) body, :lang(zh) .scene .ui { font-family: "Familjen Grotesk", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0; }

.site-nav {
  display: flex; gap: 2rem;
  padding: .6rem 1.4rem; border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.site-nav a { text-decoration: none; font-weight: 500; font-size: .9875rem; color: #2b2e33; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }

/* Hero : la vitrine --------------------------------------------------- */

.hero {
  position: relative;
  height: clamp(720px, 100svh, 1000px);
  overflow: hidden;
  isolation: isolate;
}

.hero-photo,
.hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-photo { z-index: -1; }
.hero-photo img { object-fit: cover; object-position: 58% 30%; }

.vitrine {
  position: absolute;
  inset: 104px 4vw 4vw;
  border: var(--frame) solid var(--white);
  border-radius: var(--radius-frame);
}

.vitrine-panel {
  position: absolute; left: 0; bottom: 0;
  width: min(800px, calc(100% - 400px));
  padding: 2.4rem 2.6rem 2.4rem 2.2rem;
  background: var(--white);
  border-top-right-radius: var(--notch);
}
/* Angles concaves qui raccordent le panneau au cadre, comme une découpe. */
.vitrine-panel::before,
.vitrine-panel::after {
  content: ""; position: absolute; width: var(--notch); height: var(--notch);
  background: radial-gradient(circle at 100% 0, transparent calc(var(--notch) - .5px), var(--white) var(--notch));
}
.vitrine-panel::before { left: 0; bottom: 100%; }
.vitrine-panel::after { left: 100%; bottom: 0; }

.hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 5rem);
  line-height: .98;
  font-weight: 600;
  letter-spacing: -.035em;
  max-width: 14ch;
  text-wrap: balance;
}

.hero-foot {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end;
  margin-top: 1.8rem;
}
.hero-lede { font-size: 1.125rem; line-height: 1.55; color: #24272c; max-width: 38ch; }
.hero-actions { display: grid; gap: .75rem; }

/* Slider des promesses : un seul encart lisible, posé sur la photo */
.promesses {
  position: absolute; right: 1.4rem; bottom: 1.4rem;
  width: 360px;
  padding: 1.5rem 1.5rem 1.1rem;
  border-radius: 26px;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 24px 50px -20px rgba(20, 24, 40, .45);
}
.promesse { display: grid; gap: .55rem; justify-items: start; min-height: 196px; align-content: start; }
.promesse[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .promesse.is-entering { animation: glisse .45s cubic-bezier(.2, .7, .2, 1) both; }
  .promesse.is-entering.from-left { animation-name: glisse-gauche; }
}
@keyframes glisse { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes glisse-gauche { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.promesse-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--tint); margin-bottom: .3rem;
}
.promesse-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.promesse-titre { font-size: 1.45rem; line-height: 1.1; font-weight: 600; letter-spacing: -.025em; }
.promesse p { font-size: 1rem; line-height: 1.45; color: #24272c; }
.promesse-lien { font-weight: 600; font-size: .9375rem; text-underline-offset: 4px; text-decoration-thickness: 1.5px; margin-top: .2rem; }
.promesse-lien:hover { color: var(--atelier); }

.promesse-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line);
}
.promesse-compte { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .9375rem; color: var(--muted); }
.fleche {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: var(--white); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.fleche:hover { background: var(--ink); color: var(--white); }
.fleche svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Unique séquence d'entrée : la photo se pose, la vitrine apparaît. */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo img { animation: photo-pose 1.6s cubic-bezier(.2, .7, .2, 1) both; }
  .vitrine { animation: vitrine-in 1s .25s cubic-bezier(.2, .7, .2, 1) both; }
  .vitrine-panel > * { animation: monte .9s .55s cubic-bezier(.2, .7, .2, 1) both; }
  .vitrine-panel > .hero-foot { animation-delay: .7s; }
  .promesses { animation: monte .8s .95s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes photo-pose { from { transform: scale(1.07); } to { transform: none; } }
@keyframes vitrine-in { from { opacity: 0; transform: scale(1.025); } to { opacity: 1; transform: none; } }
@keyframes monte { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Sections ----------------------------------------------------------- */

section:not(.hero) { padding: clamp(4.5rem, 10vw, 8.5rem) var(--gutter); }

.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head h2,
.chez-vous h2 {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.02; font-weight: 600; letter-spacing: -.03em;
  max-width: 18ch; text-wrap: balance;
}
.section-head p { color: var(--muted); font-size: 1.1875rem; max-width: 52ch; }

/* Le constat */
.constat { display: grid; gap: 1.8rem; }
.constat h2 {
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  line-height: 1.08; font-weight: 500; letter-spacing: -.025em;
  max-width: 24ch; text-wrap: balance;
}
.constat p { font-size: 1.25rem; line-height: 1.55; color: var(--muted); max-width: 58ch; }

/* Une journée -------------------------------------------------------- */

.journee { padding-top: 0; }

.horloge {
  display: flex; gap: 0;
  border-top: 1.5px solid var(--line);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  overflow-x: auto; scrollbar-width: none;
}
.horloge::-webkit-scrollbar { display: none; }
.horloge [role="tab"] {
  position: relative; flex: 1 0 auto;
  display: grid; gap: .2rem; justify-items: start;
  padding: 1.3rem 1.5rem 0 0; margin-top: -1.5px;
  background: none; border: 0; border-top: 3px solid transparent;
  text-align: left; cursor: pointer; color: var(--muted); font-weight: 500;
}
.horloge [role="tab"] .h {
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; color: #9aa0aa; line-height: 1;
}
.horloge [role="tab"]:hover .h { color: var(--ink); }
.horloge [role="tab"][aria-selected="true"] { border-top-color: var(--ink); color: var(--ink); }
.horloge [role="tab"][aria-selected="true"] .h { color: var(--atelier); }

.moment {
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.moment[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .moment:not([hidden]) { animation: apparait .45s ease-out both; }
}
@keyframes apparait { from { opacity: 0; } to { opacity: 1; } }

.moment-visual { position: relative; }
.moment-visual img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px;
}
.moment-visual img.crop-right { object-position: 58% center; }

.mock {
  position: absolute; right: -1.6rem; bottom: 2rem;
  background: var(--white); border-radius: 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 18px 40px -12px rgba(20, 24, 40, .28);
}

.mock-label {
  width: 250px; aspect-ratio: 5 / 3; padding: .9rem 1rem .8rem;
  display: grid; align-content: space-between; border-radius: 8px;
}
.mock-label-title { font-weight: 600; font-size: .9375rem; line-height: 1.2; }
.mock-label-row { display: flex; align-items: end; justify-content: space-between; gap: .6rem; }
.mock-label-price { font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.ean { width: 112px; height: auto; }

.mock-sale {
  display: flex; gap: .85rem; align-items: center;
  padding: .95rem 1.2rem .95rem .95rem; font-size: .9375rem; line-height: 1.35;
}
.mock-sale strong { font-weight: 600; }
.mock-sale-check {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--atelier);
}
.mock-sale-check.is-soft { background: var(--ink); }
.mock-sale-check svg { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.mock-z {
  display: grid; grid-template-columns: auto auto; gap: .3rem 1.6rem;
  padding: 1rem 1.2rem; font-size: .875rem; border-radius: 6px;
}
.mock-z strong { grid-column: 1 / -1; font-size: 1rem; margin-bottom: .3rem; }
.mock-z span:nth-of-type(even) { font-family: var(--mono); text-align: right; }

.moment-text h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem); line-height: 1.08; font-weight: 600; letter-spacing: -.025em;
  max-width: 20ch; margin-bottom: 1.8rem;
}
.moment-text dt { font-weight: 600; font-size: .9375rem; color: var(--muted); }
.moment-text dt:nth-of-type(2) { color: var(--atelier); }
.moment-text dd { font-size: 1.125rem; line-height: 1.55; max-width: 46ch; margin: .3rem 0 1.4rem; }
.moment-text dd:first-of-type { color: var(--muted); }
.moment-result {
  font-weight: 600; font-size: 1.125rem;
  padding-left: 1rem; border-left: 3px solid var(--atelier); max-width: 44ch;
}

/* Démo de caisse ----------------------------------------------------- */

.demo { background: var(--brume); }

.caisse {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  background: var(--white); border-radius: 28px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 30px 60px -30px rgba(20, 24, 40, .35);
  min-height: 580px;
}

.caisse-catalogue { padding: 1.4rem; }
.caisse-bar { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.caisse-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  min-height: 38px; padding: 0 .95rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); cursor: pointer; font-weight: 500; font-size: .9375rem;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

.scan-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 38px; padding: 0 1rem; border-radius: 999px;
  border: 1.5px solid var(--atelier); background: var(--atelier-soft); color: var(--atelier);
  font-weight: 600; font-size: .9375rem; cursor: pointer;
}
.scan-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.scan-btn:hover { background: var(--atelier); color: var(--white); }

.caisse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.produit {
  display: flex; flex-direction: column; gap: .5rem; text-align: left;
  min-height: 190px; padding: 1.1rem; border-radius: 18px; border: 1.5px solid transparent;
  background: #f5f6f8; cursor: pointer; transition: background-color .15s, border-color .15s, transform .1s;
}
.produit:hover { background: #eceef2; }
.produit:active { transform: scale(.98); }
.produit.is-scanned { border-color: var(--atelier); background: var(--atelier-soft); }
.produit-swatch {
  width: 58px; height: 58px; border-radius: 50%; margin-bottom: auto;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .16) 0 2px, transparent 2px 5px),
    var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.produit-nom { font-weight: 500; font-size: .9375rem; line-height: 1.25; }
.produit-prix { font-weight: 600; font-variant-numeric: tabular-nums; }

.caisse-ticket {
  position: relative; display: flex; flex-direction: column;
  padding: 1.4rem; border-left: 1px solid var(--line); background: #fbfbfc;
}
.panier-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .8rem; }
.panier-head h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.chrono { font-family: var(--mono); font-size: .9375rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chrono.is-running { color: var(--atelier); }

.panier { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; overflow-y: auto; max-height: 300px; }
.panier li {
  display: grid; grid-template-columns: 1fr auto auto; gap: .6rem; align-items: center;
  padding: .6rem 0; border-bottom: 1px solid var(--line);
}
.panier-nom { font-size: .9375rem; line-height: 1.25; }
.panier-qte { display: inline-flex; align-items: center; gap: .35rem; font-variant-numeric: tabular-nums; }
.panier-qte button {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); cursor: pointer;
}
.panier-qte button:hover { border-color: var(--ink); }
.panier-qte svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.panier-ligne { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 4.8em; text-align: right; }
.panier-vide { color: var(--muted); font-size: .9375rem; padding: 1.2rem 0; }
.panier-vide[hidden] { display: none; }

.panier-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: auto; padding-top: 1.2rem;
}
.panier-total span { font-weight: 500; }
.panier-total strong { font-size: 2.2rem; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.panier-pay { display: grid; grid-template-columns: 1.4fr 1fr; gap: .6rem; margin-top: 1rem; }
.panier-pay .btn { padding: 0 1rem; }

/* L'imprimante ticket qui recouvre le panier après paiement */
/* Après paiement, le ticket remplace le panier et le panneau grandit avec lui. */
.caisse-ticket:has(.imprimante:not([hidden])) > :not(.imprimante) { display: none; }
.imprimante {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
}
.imprimante[hidden] { display: none; }
.imprimante-fente {
  width: 290px; max-width: 100%; height: 12px; border-radius: 999px; background: #1c1e22;
  box-shadow: inset 0 -3px 0 #3a3d44; position: relative; z-index: 2;
}
.recu-wrap { width: 270px; max-width: 94%; overflow: hidden; margin-top: -6px; }
.recu {
  margin: 0; padding: 1.4rem 1rem 1.6rem;
  background: var(--white);
  font-family: var(--mono); font-size: 11.5px; line-height: 1.5; color: #15171a;
  white-space: pre; overflow: hidden;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .35);
  /* bord dentelé du papier thermique */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat,
    conic-gradient(from -45deg at bottom, transparent, #000 1deg 89deg, transparent 90deg) bottom / 12px 8px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat,
    conic-gradient(from -45deg at bottom, transparent, #000 1deg 89deg, transparent 90deg) bottom / 12px 8px repeat-x;
}
.recu.is-printing { animation: imprime 1.5s steps(14, end) both; }
@media (prefers-reduced-motion: reduce) { .recu.is-printing { animation: none; } }
@keyframes imprime { from { transform: translateY(-100%); } to { transform: none; } }

.imprimante-fin { display: grid; justify-items: center; gap: .7rem; margin-top: auto; padding-top: 1.2rem; text-align: center; }
.imprimante-msg { font-weight: 600; font-size: 1.0625rem; }
.imprimante-msg em { font-style: normal; color: var(--atelier); }

.demo-note { margin-top: 1.2rem; font-size: .9375rem; color: var(--muted); max-width: 70ch; }

/* Le comptoir animé ------------------------------------------------- */

.comptoir {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 5fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start;
}
.comptoir-scene { margin: 0; background: var(--brume); border-radius: 28px; padding: 1.2rem 1.2rem 1rem; }
.scene { display: block; width: 100%; height: auto; }
.scene .ui { font-family: var(--font); font-size: 10px; fill: #15171a; }
.scene .ui-head { font-weight: 600; font-size: 9.5px; fill: #4b5059; }
.scene .ui-num { font-variant-numeric: tabular-nums; }
.scene .ui-total { font-size: 16px; font-weight: 600; }
.scene .ui-badge { font-size: 11px; font-weight: 600; fill: #fff; }
.scene .ui-tiny { font-size: 6.5px; }
.scene .ui-strong { font-size: 8px; font-weight: 700; }

/* Câbles : les données circulent quand l'appareil travaille */
.cable { fill: none; stroke: #b7bcc5; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 7; transition: stroke .3s; }
.s-c-scan .c-scan, .s-c-print .c-print, .s-c-label .c-label, .s-c-drawer .c-drawer { stroke: var(--atelier); animation: flux .7s linear infinite; }
@keyframes flux { to { stroke-dashoffset: -18; } }

/* États de l'écran */
.scene .l1, .scene .l2, .scene .l3, .scene .tot, .scene .badge, .scene .tpe-ok { opacity: 0; transition: opacity .35s; }
.s-l1 .l1, .s-l2 .l2, .s-l3 .l3 { opacity: 1; }
.scene .tot0 { opacity: 1; }
.s-l1 .tot0, .s-l3 .tot0 { opacity: 0; }
.s-l1:not(.s-l2) .tot1, .s-l2 .tot2, .s-l3 .tot3 { opacity: 1; }
.scene .badge { transform-box: fill-box; transform-origin: center; transform: scale(.9); transition: opacity .35s, transform .35s; }
.s-paid-cash .badge-cash, .s-paid-card .badge-card { opacity: 1; transform: none; }
.s-tpe-ok .tpe-ok { opacity: 1; }

/* Ticket, tiroir, carte, étiquette */
.scene .receipt { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .3s ease-in; }
.s-receipt .receipt { transform: scaleY(1); transition: transform 1.3s steps(12, end); }
.scene .drawer-front { transition: transform .5s cubic-bezier(.3, .7, .2, 1); }
.s-drawer .drawer-front { transform: translateY(34px); }
.scene .card { opacity: 0; transform: translateY(-34px); transition: opacity .4s, transform .6s cubic-bezier(.3, .7, .2, 1); }
.s-card .card, .s-tpe-ok .card { opacity: 1; transform: none; }
.scene .label-out { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); transition: transform .3s ease-in; }
.s-label .label-out { transform: scaleY(1); transition: transform 1.2s steps(10, end); }

/* Effets ponctuels : faisceau et bip */
.scene .beam { opacity: 0; }
.scene .beam.go { animation: faisceau .8s ease-out; }
@keyframes faisceau { 0% { opacity: 0; } 25% { opacity: .8; } 100% { opacity: 0; } }
.scene .ring { opacity: 0; transform-box: fill-box; transform-origin: center; }
.scene .ring.go { animation: bip .8s ease-out; }
@keyframes bip { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.2); } }

/* Un appareil choisi dans la légende passe au premier plan */
.scene .dev, .scene .article, .scene .cables { transition: opacity .3s; }
.scene[data-focus] .dev, .scene[data-focus] .article, .scene[data-focus] .cables { opacity: .22; }
.scene[data-focus="screen"] .dev-screen,
.scene[data-focus="scanner"] .dev-scanner, .scene[data-focus="scanner"] .article,
.scene[data-focus="drawer"] .dev-drawer,
.scene[data-focus="tpe"] .dev-tpe,
.scene[data-focus="printer"] .dev-printer,
.scene[data-focus="labels"] .dev-labels { opacity: 1; }

.scene-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .6rem; }
.scene-caption { font-weight: 500; min-height: 3em; display: flex; align-items: center; }

.appareils { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.appareils button {
  display: grid; gap: .2rem; width: 100%; text-align: left;
  padding: .9rem 1.1rem; border-radius: 16px; border: 1.5px solid transparent;
  background: transparent; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.appareils button:hover { background: var(--brume); }
.appareils button.is-active { border-color: var(--atelier); background: var(--atelier-soft); }
.appareils strong { font-size: 1.0625rem; font-weight: 600; }
.appareils span { color: var(--muted); font-size: .9375rem; line-height: 1.45; }

@media (max-width: 960px) {
  .comptoir { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .comptoir-scene { padding: .5rem .5rem .9rem; border-radius: 20px; }
  .scene-bar { padding: 0 .5rem; }
  .scene-caption { font-size: .9375rem; }
}

/* Outils ------------------------------------------------------------- */

.outils-liste { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 6vw, 5rem); }
.outils-liste > div { padding: 1.4rem 0 1.6rem; border-top: 1px solid var(--line); }
.outils-liste dt { font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; margin-bottom: .35rem; }
.outils-liste dd { color: var(--muted); max-width: 48ch; }

/* Chez vous ---------------------------------------------------------- */

.chez-vous { background: var(--atelier); color: var(--white); }
.chez-vous h2 { margin-bottom: clamp(2.2rem, 5vw, 3.5rem); max-width: 16ch; }
.chez-vous-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.chez-vous-cols > div { border-top: 1px solid rgba(255, 255, 255, .4); padding-top: 1.3rem; }
.chez-vous h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.015em; margin-bottom: .6rem; }
.chez-vous p { color: rgba(255, 255, 255, .86); max-width: 40ch; }
.chez-vous :focus-visible { outline-color: var(--white); }

/* Contact ------------------------------------------------------------ */

.contact { display: grid; gap: 1.4rem; }
.contact h2 { font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: .98; font-weight: 600; letter-spacing: -.04em; }
.contact p { font-size: 1.25rem; color: var(--muted); max-width: 52ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .6rem; }

/* Pied de page ------------------------------------------------------- */

.site-footer {
  display: flex; flex-wrap: wrap; gap: .8rem 2.5rem; align-items: center;
  padding: 2rem var(--gutter) 2.6rem; border-top: 1px solid var(--line);
  font-size: .9375rem; color: var(--muted);
}
.site-footer .brand { color: var(--ink); }
.site-footer a { color: var(--ink); text-underline-offset: 4px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-left: auto; }

/* Pages légales ------------------------------------------------------ */

.legal-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.4rem var(--gutter); border-bottom: 1px solid var(--line);
}
.legal-header a:not(.brand) { font-weight: 500; text-underline-offset: 5px; }

.legal { padding: clamp(3rem, 7vw, 5.5rem) var(--gutter) clamp(4rem, 8vw, 6rem); }
.legal-inner { max-width: 74ch; }
.legal h1 {
  font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1; font-weight: 600; letter-spacing: -.035em;
  text-wrap: balance;
}
.legal-date { margin-top: 1rem; color: var(--muted); }
.legal-intro { margin-top: 1.6rem; font-size: 1.1875rem; line-height: 1.55; color: #24272c; }
.legal h2 {
  font-size: 1.5rem; line-height: 1.15; font-weight: 600; letter-spacing: -.02em;
  margin: 2.8rem 0 .9rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  scroll-margin-top: 1.5rem;
}
.legal h3 { font-size: 1.125rem; font-weight: 600; margin: 1.6rem 0 .5rem; }
.legal p, .legal li { line-height: 1.65; color: #24272c; }
.legal p + p { margin-top: .8rem; }
.legal ul, .legal ol { margin: .6rem 0 0; padding-left: 1.3rem; }
.legal li + li { margin-top: .35rem; }
.legal a { text-underline-offset: 4px; }

.fiche { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.6rem; margin-top: .4rem; }
.fiche dt { color: var(--muted); }
.fiche dd { font-weight: 500; }

.sommaire { margin-top: 2rem; padding: 1.3rem 1.5rem; background: var(--brume); border-radius: 18px; }
.sommaire p { font-weight: 600; margin-bottom: .5rem; }
.sommaire ol { columns: 2; column-gap: 2rem; margin: 0; }
.sommaire li { break-inside: avoid; }

@media (max-width: 640px) {
  .fiche { grid-template-columns: 1fr; gap: .1rem; }
  .fiche dd { margin-bottom: .6rem; }
  .sommaire ol { columns: 1; }
}

/* Adaptations -------------------------------------------------------- */

@media (max-width: 1180px) {
  .promesses { width: 300px; padding: 1.2rem 1.2rem .9rem; }
  .promesse-titre { font-size: 1.25rem; }
  .promesse p { font-size: .9375rem; }
  .vitrine-panel { width: calc(100% - 330px); }
  .hero-foot { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero-actions { display: flex; flex-wrap: wrap; }
}

@media (max-width: 960px) {
  .caisse { grid-template-columns: 1fr; }
  .caisse-ticket { border-left: 0; border-top: 1px solid var(--line); min-height: 460px; }
  .moment { grid-template-columns: 1fr; }
  .moment-visual { max-width: 520px; }
  .mock { right: 1rem; }
  .chez-vous-cols { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --frame: 10px; --radius-frame: 32px; --notch: 26px; }
  .site-header { padding: 1.1rem 1.6rem; }
  .site-nav { display: none; }

  .hero { height: auto; }
  .vitrine { position: relative; inset: auto; margin: 76px 1rem 1rem; padding-top: 52svh; }
  .vitrine-panel { position: relative; width: 100%; padding: 1.8rem 1.4rem 1.4rem; }
  .vitrine-panel::after { display: none; }
  .hero h1 { font-size: clamp(2.3rem, 10vw, 3.4rem); }
  .hero-lede { font-size: 1.0625rem; }

  .promesses {
    position: static; width: auto; padding: .4rem 1.4rem 1.2rem;
    background: var(--white); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    border-radius: 0 0 calc(var(--radius-frame) - var(--frame)) calc(var(--radius-frame) - var(--frame));
  }
  .promesses > .promesse { padding-top: 1.2rem; border-top: 1px solid var(--line); }
  .promesse { min-height: 0; }

  .outils-liste { grid-template-columns: 1fr; }
  .footer-legal { margin-left: 0; }
}

@media (max-width: 520px) {
  .site-header .btn-small { display: none; }
  .brand-logo { height: 30px; }
  .hero-actions .btn { width: 100%; }
  .panier-pay { grid-template-columns: 1fr; }
  .mock-label { width: 220px; }
  .mock-label .ean { width: 92px; }
  .mock-label-price { font-size: 1.3rem; }
  .caisse-catalogue, .caisse-ticket { padding: 1rem; }
  .caisse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .produit { min-height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Pages légales traduites : rappel que le français fait foi */
.legal-note {
  margin-top: 1.4rem; padding: .9rem 1.1rem; border-radius: 14px;
  background: var(--atelier-soft); color: var(--atelier); font-weight: 500;
}
